@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=Inter:wght@400;500&display=swap');

:root {
  --page: #fbfcfe;
  --surface: #ffffff;
  --surface-blue: #edf6ff;
  --surface-soft: #f5f8fb;
  --navy: #042c53;
  --navy-soft: #0d3e6f;
  --blue: #185fa5;
  --blue-mid: #85b7eb;
  --blue-light: #e6f1fb;
  --green: #227a55;
  --green-dark: #165b3e;
  --ink: #101418;
  --muted: #59636f;
  --quiet: #87919c;
  --rule: rgba(4, 44, 83, 0.16);
  --rule-strong: rgba(4, 44, 83, 0.26);
  --shadow: 0 18px 46px rgba(4, 44, 83, 0.08);
  --max-width: 1120px;
  --text-width: 728px;
  --font-heading: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(230, 241, 251, 0.58) 0, rgba(255, 255, 255, 0) 520px),
    var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--blue-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-soft);
  text-decoration-color: currentColor;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(133, 183, 235, 0.75);
  outline-offset: 3px;
}

p,
li,
td,
th,
summary,
nav,
label,
button,
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
}

p {
  margin: 0 0 1rem;
}

strong,
b {
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: 2.8rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.15;
}

h3 {
  margin-top: 1.35rem;
  font-size: 1.14rem;
  line-height: 1.35;
}

h4 {
  font-size: 1rem;
  line-height: 1.4;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin: 0.28rem 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  border-bottom: 3px solid var(--blue-mid);
  box-shadow: 0 8px 22px rgba(4, 44, 83, 0.12);
}

.header-inner,
.content-narrow,
.content-wide,
.footer-inner,
.wrap {
  width: min(100% - 64px, var(--max-width));
  margin: 0 auto;
}

.header-inner {
  min-height: 66px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-name {
  display: inline-flex;
  align-items: center;
  color: var(--blue-light);
  border-bottom: 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-name:hover {
  color: var(--surface);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  padding: 0 0.55rem;
  border: 1px solid rgba(191, 219, 246, 0.38);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--surface);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.nav-group {
  position: relative;
}

.nav-group::after {
  content: "";
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 19;
  height: 0.6rem;
}

.nav-group:hover::after,
.nav-group:focus-within::after {
  display: block;
}

.nav-link,
.nav-summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  color: #bfdbf6;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  text-decoration: none;
}

.nav-summary::after {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  margin-left: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-summary.is-current,
.nav-group:hover .nav-summary,
.nav-group:focus-within .nav-summary {
  background: rgba(133, 183, 235, 0.16);
  color: var(--surface);
}

.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 20;
  min-width: 250px;
  padding: 0.7rem;
  border: 1px solid rgba(133, 183, 235, 0.34);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 22px 54px rgba(4, 44, 83, 0.22);
}

.nav-group:hover .nav-panel,
.nav-group:focus-within .nav-panel {
  display: grid;
}

.nav-group:nth-child(1) .nav-panel,
.nav-group:nth-child(2) .nav-panel {
  left: 0;
  right: auto;
}

.nav-panel a,
.site-nav a {
  border-bottom: 0;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.nav-panel a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  color: var(--navy);
  white-space: nowrap;
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  background: var(--surface-blue);
  color: var(--navy);
}

.site-nav a:hover {
  color: var(--surface);
}

.site-nav a[aria-current="page"] {
  color: var(--surface);
}

.site-nav .nav-panel a:hover,
.site-nav .nav-panel a[aria-current="page"] {
  background: var(--surface-blue);
  color: var(--navy);
}

.site-nav .register-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-left: 0.8rem;
  padding: 7px 16px;
  background: var(--blue-mid);
  border: 1px solid var(--blue-mid);
  border-radius: 8px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav .register-link:hover {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--navy);
}

main {
  background: transparent;
}

.hero,
main > section:first-child {
  position: relative;
  padding: 78px 0 62px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.76) 58%, rgba(237, 246, 255, 0.82) 100%);
  border-bottom: 1px solid var(--rule);
}

.hero .content-narrow {
  max-width: var(--max-width);
  padding: 0;
}

.hero p {
  max-width: 680px;
  color: #334252;
  font-size: 1.08rem;
  line-height: 1.76;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  margin-bottom: 1.05rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 122, 85, 0.12);
}

.actions {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.button,
.btn,
.btn-primary,
a.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: var(--surface);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button:hover,
.btn:hover,
.btn-primary:hover,
a.button:hover,
input[type="submit"]:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--surface);
  transform: translateY(-1px);
}

.text-button {
  color: var(--navy-soft);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--blue-mid);
  text-underline-offset: 0.22em;
}

.text-button:hover {
  color: var(--blue);
}

.register-button {
  background: var(--green);
  border-color: var(--green);
}

.register-button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.section {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--rule);
}

.section:nth-of-type(odd) {
  background: rgba(245, 248, 251, 0.72);
}

.content-narrow {
  max-width: var(--text-width);
  padding: 48px 0;
}

.content-wide {
  padding: 54px 0;
}

.content-narrow > h2:first-child,
.content-wide > h2:first-child,
.official-sources h2 {
  margin-bottom: 1.05rem;
}

.home-overview,
.home-start {
  padding: 62px 0;
}

.home-overview .content-wide {
  width: min(100% - 64px, 1280px);
}

.home-overview .grid-two {
  grid-template-columns: minmax(680px, 1.45fr) minmax(260px, 0.55fr);
}

.home-overview table {
  min-width: 0;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
  gap: clamp(2rem, 5vw, 4.2rem);
  align-items: start;
}

.intro-note {
  max-width: 640px;
  color: var(--muted);
  font-size: 0.98rem;
}

.side-stack {
  display: grid;
  gap: 1.7rem;
}

.plain-block {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-strong);
}

.plain-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.plain-block p {
  color: #334252;
}

.plain-block a {
  font-weight: 700;
}

.link-list {
  margin-top: 0.75rem;
}

.link-list li {
  margin: 0.38rem 0;
}

.guide-list {
  counter-reset: guide-list;
  list-style: none;
  margin: 1.25rem 0 0;
  padding-left: 0;
}

.content-narrow > ol {
  counter-reset: guide-list;
  list-style: none;
  padding-left: 0;
}

.guide-list li,
.content-narrow > ol > li {
  position: relative;
  counter-increment: guide-list;
  padding: 1rem 0 1rem 3.2rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

.guide-list li:first-child,
.content-narrow > ol > li:first-child {
  border-top: 1px solid var(--rule);
}

.guide-list li::before,
.content-narrow > ol > li::before {
  content: counter(guide-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  min-width: 2.25rem;
  padding: 0.18rem 0.35rem;
  border: 1px solid rgba(24, 95, 165, 0.18);
  border-radius: 4px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.guide-list a,
.content-narrow > ol > li > a {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.28;
  text-decoration: none;
}

.guide-list a:hover,
.content-narrow > ol > li > a:hover {
  color: var(--blue);
}

.guide-list p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.registration {
  padding: 1.35rem 1.45rem 1.45rem;
  border: 1px solid rgba(34, 122, 85, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(241, 249, 245, 0.94), rgba(255, 255, 255, 0.94));
  box-shadow: var(--shadow);
}

.registration p {
  color: #334252;
}

.callout-box {
  padding: 1.35rem 1.45rem 1.45rem;
  border: 1px solid rgba(24, 95, 165, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(237, 246, 255, 0.96), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow);
}

.callout-box h2 {
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.callout-box p {
  color: #334252;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.callout-box a {
  font-weight: 700;
}

.registration .actions,
.registration .button-row {
  margin-top: 1rem;
}

.small,
.source-line {
  color: var(--quiet);
  font-size: 0.86rem;
}

.table-wrap {
  margin-top: 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(4, 44, 83, 0.06);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-blue);
  color: var(--navy);
  font-weight: 800;
}

td:first-child {
  width: 36%;
  color: var(--muted);
  font-weight: 600;
}

td:last-child {
  color: var(--ink);
}

tbody tr:nth-child(even) td {
  background: rgba(237, 246, 255, 0.36);
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

.source-note {
  width: min(100% - 64px, var(--text-width));
  margin: 0 auto;
  padding: 24px 0 48px;
  color: var(--muted);
}

.content-narrow .source-note {
  width: 100%;
  margin-top: 1.35rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
}

.source-note p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.last-reviewed {
  width: min(100% - 64px, var(--text-width));
  margin: 0 auto 48px;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.last-reviewed p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.related ul {
  columns: 2;
}

.faq details {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.question {
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
}

.question:last-child {
  border-bottom: 1px solid var(--rule);
}

.question ol {
  list-style: none;
  padding-left: 0;
}

.question li {
  color: var(--ink);
}

.register-small {
  background: var(--surface);
  border-bottom: 0;
}

.site-footer,
footer {
  background: #f0f4f7;
  border-top: 1px solid var(--rule);
  padding: 44px 0 34px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-inner {
  padding: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.footer-brand {
  max-width: 430px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--blue);
}

.footer-inner p {
  max-width: 880px;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-group {
  display: grid;
  gap: 0.48rem;
}

.footer-group h2 {
  margin: 0 0 0.2rem;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-group a,
.footer-links a {
  color: var(--navy-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.footer-group a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

.official-sources {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

.official-sources h2 {
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.official-sources li {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .header-inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding: 0.75rem 0;
  }

  .site-name {
    white-space: normal;
  }

  .site-nav {
    justify-content: flex-start;
    width: auto;
    gap: 0.15rem;
  }

  .nav-group {
    position: relative;
  }

  .nav-link,
  .nav-summary {
    justify-content: center;
    min-height: 32px;
    padding: 0.35rem 0.45rem;
    font-size: 0.86rem;
  }

  .site-nav .register-link {
    min-height: 34px;
    margin-left: 0.25rem;
    padding: 6px 13px;
    font-size: 0.86rem;
  }

  .nav-panel,
  .nav-group:nth-child(1) .nav-panel,
  .nav-group:nth-child(2) .nav-panel {
    position: absolute;
    left: 0;
    right: auto;
    width: max-content;
    max-width: calc(100vw - 32px);
    min-width: 220px;
    margin: 0;
    box-shadow: 0 20px 50px rgba(4, 44, 83, 0.16);
  }

  .home-overview .content-wide {
    width: min(100% - 64px, var(--max-width));
  }

  .home-overview .grid-two {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  main > section:first-child {
    padding: 56px 0 46px;
  }

  .grid-two {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .home-overview,
  .home-start {
    padding: 46px 0;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .content-narrow,
  .content-wide,
  .footer-inner,
  .wrap,
  .source-note,
  .last-reviewed {
    width: min(100% - 32px, var(--max-width));
  }

  .hero p {
    font-size: 1rem;
  }

  .content-narrow,
  .content-wide {
    padding: 38px 0;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .text-button {
    width: 100%;
    text-align: center;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
  }

  tr:last-child {
    border-bottom: 0;
  }

  th,
  td,
  td:first-child {
    border-bottom: 0;
    padding: 0.2rem 0.9rem;
  }

  td:first-child {
    color: var(--navy);
  }

  tbody tr:nth-child(even) td {
    background: transparent;
  }

  .related ul {
    columns: 1;
  }

  .registration {
    padding: 1.15rem;
  }
}
