:root {
  color-scheme: light;
  --navy: #101b2c;
  --navy-dark: #0c1625;
  --gold: #ffcf4c;
  --gold-hover: #ffe085;
  --white: #f8fafc;
  --paper: #fff;
  --mist: #eaf0f6;
  --line: #c6cfdb;
  --muted: #435269;
  --ink: #172338;
  --gutter: clamp(18px, 3.4vw, 48px);
  --system: system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Arial Narrow", var(--system);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--white); }
body { margin: 0; color: var(--ink); font: 1rem/1.65 var(--system); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { color: var(--navy); font-family: var(--display); line-height: 1.08; letter-spacing: -.038em; }
a { color: inherit; text-underline-offset: .21em; text-decoration-thickness: .075em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #1973ae;
  outline-offset: 3px;
}
::selection { background: var(--gold); color: var(--navy); }
.frame { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: .6rem 1rem;
  background: var(--gold);
  color: var(--navy);
}
.skip:focus { transform: none; }
.site-header { color: var(--white); background: var(--navy-dark); }
.utility { border-bottom: 1px solid var(--gold); }
.utility-inner {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  font-size: .86rem;
}
.utility a { white-space: nowrap; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility strong { color: var(--gold); margin-right: .25rem; }
.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.15rem, 3.3vw, 3rem);
  min-height: 86px;
}
.brand {
  width: fit-content;
  font: italic 900 clamp(2.2rem, 3.7vw, 3.46rem)/1 var(--display);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -.07em;
}
.brand span { color: var(--gold); }
.primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(.9rem, 3.2vw, 3.3rem);
}
.primary a {
  display: inline-flex;
  align-items: center;
  min-height: 49px;
  padding-inline: .04em;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-weight: 720;
  text-decoration: none;
}
.primary a[aria-current="page"], .primary a:hover { border-bottom-color: var(--gold); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  min-height: 48px;
  width: fit-content;
  max-width: 100%;
  border: 1.5px solid transparent;
  border-radius: 3px;
  padding: .72rem 1.2rem;
  font: 800 1rem/1.22 var(--system);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button--gold { color: var(--navy-dark); background: var(--gold); }
.button--gold:hover { background: var(--gold-hover); }
.button--outline { color: var(--white); background: #101b2c66; border-color: var(--white); }
.button--outline:hover { background: var(--navy); }
.site-header a:focus-visible, .hero a:focus-visible, .footer a:focus-visible { outline-color: var(--gold); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(435px, 34vw, 530px);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero-art, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; object-fit: cover; object-position: 50% 62%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #0c1625 0%, #0c1625f2 26%, #0c1625b8 43%, #0c162534 65%, #0c162510 100%);
}
.hero-inner { width: 100%; padding-block: 3.1rem 3.45rem; }
.hero h1 {
  max-width: min(660px, 58%);
  color: var(--white);
  font-size: clamp(2.65rem, 4.65vw, 4.35rem);
  font-weight: 900;
  font-style: italic;
  line-height: .99;
  letter-spacing: -.054em;
  text-wrap: balance;
}
.hero p {
  max-width: min(54ch, 52%);
  margin-top: 1rem;
  color: #f0f3f8;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .72rem 1rem; margin-top: 1.42rem; }
.hero-actions .button { min-height: 52px; }

.shortcuts { padding-block: clamp(1.55rem, 3vw, 2.45rem); }
.shortcuts h2, .online h2 {
  font-size: clamp(1.65rem, 3vw, 2.48rem);
  font-weight: 900;
}
.shortcuts h2 { border-left: 6px solid var(--gold); padding-left: .72rem; }
.shortcuts > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.55rem, 1.5vw, 1.3rem);
  margin-top: 1.15rem;
}
.shortcuts a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  gap: .62rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: .74rem clamp(.62rem, 1.4vw, 1.1rem);
  color: var(--navy);
  font-size: clamp(1rem, 1.55vw, 1.31rem);
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
}
.shortcuts a span { font-size: 1.3em; font-weight: 450; }
.shortcuts a:hover { background: var(--mist); }

.online {
  display: grid;
  grid-template-columns: minmax(0, .38fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(1.5rem, 3vw, 2.35rem);
}
.online h2 {
  display: flex;
  align-items: center;
  padding: .87rem 1.15rem;
  border-left: 7px solid var(--gold);
  color: var(--white);
  background: var(--navy);
  font-size: clamp(1.3rem, 2.45vw, 2.05rem);
}
.online p { align-self: center; max-width: 83ch; }

.sub-intro { background: var(--mist); border-bottom: 1px solid var(--line); }
.sub-intro .frame { padding-block: clamp(1.5rem, 3.5vw, 3rem); }
.sub-intro nav { display: flex; flex-wrap: wrap; gap: .42rem .65rem; color: var(--muted); font-size: .88rem; }
.sub-intro h1, .utility-page h1 {
  margin-top: .65rem;
  font-size: clamp(2.3rem, 4.65vw, 4.05rem);
  font-weight: 900;
  line-height: 1.04;
  text-wrap: balance;
  max-width: 27ch;
}
.sub-intro p { margin-top: .9rem; max-width: 78ch; font-size: clamp(1rem, 1.4vw, 1.19rem); }
.sub-intro--calculator { background: var(--white); border-bottom: 0; }
.sub-intro--calculator .frame { padding-block: clamp(1.35rem, 2.7vw, 2.4rem) .55rem; }
.sub-intro--calculator h1 { max-width: none; }
.sub-intro .notes, .notes { color: var(--muted); font-size: .91rem; }
.sub-intro .notes a { font-weight: 650; }

.contents { display: flex; gap: .6rem 1.5rem; border-block: 1px solid var(--line); padding-block: .72rem; }
.contents strong { font-size: .92rem; color: var(--navy); white-space: nowrap; }
.contents ul { display: flex; flex-wrap: wrap; gap: .45rem 1.28rem; list-style: none; padding: 0; }
.contents a { display: block; font-size: .92rem; }
.article { padding-block: .4rem 3.5rem; }
.article section { padding-block: clamp(1.35rem, 3.4vw, 2.7rem); }
.article section + section { border-top: 1px solid var(--line); }
.article section:last-child { padding-bottom: 0; }
.article h2 { margin-bottom: .67rem; scroll-margin-top: 1.25rem; font-size: clamp(1.79rem, 3.25vw, 2.75rem); font-weight: 900; }
.article h3 { margin-top: 1.17rem; margin-bottom: .36rem; font-size: clamp(1.18rem, 2.2vw, 1.45rem); font-weight: 800; }
.article p, .article ul, .article ol { max-width: 78ch; margin-bottom: .74rem; overflow-wrap: anywhere; }
.article ul, .article ol { padding-left: 1.35rem; }
.article li + li { margin-top: .28rem; }
.article p:last-child { margin-bottom: 0; }
table { margin-block: 1rem 1.25rem; width: min(100%, 980px); border-collapse: collapse; line-height: 1.48; font-size: .93rem; }
caption { padding-bottom: .46rem; font-weight: 750; text-align: left; }
th, td { padding: .62rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--navy); color: var(--white); }
tbody tr:nth-child(even) { background: var(--mist); }

.tool-frame { padding-block: 1.6rem; }
.calculator { border: 1px solid #7d8ba1; background: var(--paper); padding: clamp(1rem, 2.2vw, 1.75rem); }
.calculator h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); font-weight: 890; }
.calculator p { margin-top: .45rem; max-width: 75ch; }
.calculator form { margin-top: 1.2rem; }
.calc-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .72rem 1rem; }
.calculator label { display: grid; min-width: 0; gap: .23rem; font-size: .94rem; font-weight: 680; }
.calculator input:not([type="checkbox"]), .calculator select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border-radius: 3px;
  border: 1px solid #8794a7;
  padding: .49rem .64rem;
  color: var(--navy);
  background: var(--paper);
  font: 500 1rem/1.3 var(--system);
}
.calculator input:disabled, .calculator select:disabled { background: var(--mist); color: var(--muted); }
.calc-options { display: flex; flex-wrap: wrap; gap: .8rem 1.65rem; margin-top: .85rem; align-items: center; }
.calculator .inline-label { display: inline-flex; gap: .5rem; align-items: center; }
.calculator input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--navy); }
.calculator .hint { margin-top: .55rem; color: var(--muted); font-size: .88rem; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .68rem; margin-block: .95rem 1.14rem; }
.pick:first-child:not(:has(+ .pick:not([hidden]))) { grid-column: 1 / -1; }
.pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .72rem;
  min-width: 0;
  margin: 0;
  padding: .55rem .7rem .75rem;
  border: 1px solid var(--line);
}
.pick legend { padding-inline: .24rem; font-weight: 770; }
.pick:not(:has(.pick-place:enabled)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  background: var(--mist);
  padding: .75rem 1rem;
}
.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  color: var(--navy);
}
.results > div { min-width: 0; padding-inline: .8rem; }
.results > div + div { border-left: 1px solid var(--line); }
.results dt { font-size: .88rem; font-weight: 725; }
.results dd { font-size: clamp(.95rem, 2vw, 1.4rem); font-weight: 850; overflow-wrap: anywhere; }

.footer { background: var(--navy-dark); color: #eaf0f8; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(1rem, 3vw, 2.55rem); padding-block: 2rem; }
.footer-intro { border-left: 5px solid var(--gold); padding-left: .88rem; }
.footer-intro .brand { margin-bottom: .38rem; font-size: clamp(1.85rem, 3.6vw, 2.65rem); }
.footer p, .footer a { font-size: .9rem; }
.footer h2 { color: var(--white); font-size: 1.16rem; margin-bottom: .45rem; }
.footer h2 a { font-size: inherit; }
.footer-nav { border-inline: 1px solid #56667c; padding-inline: 1.12rem; }
.footer-nav div { display: flex; flex-wrap: wrap; gap: .25rem .82rem; margin-bottom: .43rem; }
.footer-help { display: flex; align-items: flex-start; gap: .75rem; }
.age { background: var(--gold); color: var(--navy); padding: .37rem .49rem; border-radius: 3px; font-size: 1.35rem; font-weight: 900; }
.utility-page { min-height: 49vh; padding-block: 3rem; }
.utility-page p { margin-block: .8rem .67rem; }

@media (max-width: 920px) {
  .masthead { gap: .65rem 1rem; min-height: 75px; }
  .primary { gap: 0 .85rem; }
  .primary a { font-size: .91rem; }
  .masthead-action { padding-inline: .65rem; font-size: .9rem; }
  .footer-inner { grid-template-columns: .8fr 1.2fr 1fr; }
}

@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr auto; row-gap: 0; padding-top: .63rem; }
  .primary { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .primary a { font-size: .85rem; min-height: 42px; }
  .masthead-action { grid-column: 2; grid-row: 1; min-height: 42px; }
  .hero { min-height: 0; }
  .hero-art { object-position: 72% 59%; }
  .hero::after { background: linear-gradient(90deg, #0c1625f6 0%, #0c1625d9 54%, #0c162590 100%); }
  .hero-inner { padding-block: 2.48rem 2.61rem; }
  .hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 7.9vw, 3.35rem); }
  .hero p { max-width: 56ch; }
  .hero-actions .button { min-height: 46px; }
  .shortcuts > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcuts a { min-height: 54px; }
  .online { grid-template-columns: 1fr; gap: .7rem; }
  .online h2 { width: fit-content; }
  .contents { flex-direction: column; gap: .4rem; }
  .contents ul { gap: .34rem .85rem; }
  .calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-summary { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav { border-right: 0; padding-left: .85rem; padding-right: 0; }
  .footer-help { grid-column: 1 / -1; }
  th, td { padding: .47rem .5rem; overflow-wrap: anywhere; }
}

@media (max-width: 400px) {
  .primary { gap: 0 .35rem; }
  .primary a { font-size: .79rem; }
  .utility-inner { font-size: .77rem; }
  .button { padding-inline: .72rem; }
  .calc-summary { padding-inline: .55rem; }
  .results > div { padding-inline: .38rem; }
  .pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
