*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: #17243a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: var(--navy-700);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0a326a;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 0.7rem;
  color: var(--navy-950);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

h3 {
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(calc(100% - 32px), 1140px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy-950);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(3, 15, 36, 0.18);
}

.topbar {
  min-height: 90px;
  background: var(--navy-950);
  color: var(--white);
}

.topbar-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border: 2px solid rgba(244, 196, 45, 0.72);
  border-radius: 50%;
  background: var(--white);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 0.38rem;
}

.brand-word {
  color: var(--white);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand-sub {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand-tagline {
  grid-column: 1 / -1;
  color: #b8c8dd;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.account-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.12rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--gold);
  color: var(--navy-950);
}

.button-primary:hover {
  background: #ffda59;
  color: var(--navy-950);
}

.button-secondary {
  border-color: #8fa7c7;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.button-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.nav-shell {
  min-height: 52px;
  display: flex;
  align-items: center;
  background: var(--navy-800);
}

.desktop-nav ul,
.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav ul {
  min-height: 52px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.desktop-nav li {
  display: flex;
}

.desktop-nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.82rem;
  border-bottom: 3px solid transparent;
  color: #e8eff8;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-align: center;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.mobile-nav {
  display: none;
  color: var(--white);
}

.mobile-nav summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.mobile-nav summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.35rem;
}

.mobile-nav[open] summary::after {
  content: "−";
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  padding-bottom: 0.75rem;
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #eef5ff;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

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

.hero-wrap {
  padding: 1.5rem 0 0;
  background: linear-gradient(180deg, #dce7f4 0%, var(--paper) 100%);
}

.hero-banner {
  overflow: hidden;
  border: 1px solid #aebed1;
  border-radius: 14px;
  background: var(--navy-900);
  box-shadow: 0 16px 36px rgba(10, 32, 70, 0.16);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.page-heading {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.page-heading > p:not(.eyebrow) {
  max-width: 780px;
  margin: 0.8rem auto 1.1rem;
  color: #3f5068;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--navy-700);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-notice {
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0.78rem 1rem;
  border: 1px solid #d8b24f;
  border-radius: 9px;
  background: #fff8df;
  color: #55451a;
  font-size: 0.88rem;
}

.breadcrumbs {
  padding-top: 1.1rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #66758b;
  font-size: 0.82rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: #9aa7b7;
}

.review-date {
  margin: 0.55rem 0 0;
  color: #68778c;
  font-size: 0.78rem;
}

.content-shell {
  padding: 1rem 0 4.5rem;
}

.content-section,
.prose-sections {
  margin-top: 1.4rem;
}

.content-section,
.prose-sections > section {
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid #d5deea;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(10, 32, 70, 0.07);
}

.prose-sections {
  display: grid;
  gap: 1rem;
}

.prose-sections p:last-child,
.content-section > p:last-child {
  margin-bottom: 0;
}

.section-lead {
  max-width: 780px;
  color: #516178;
  font-size: 1.03rem;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-heading-row p:last-child {
  margin: 0;
  color: #6a7890;
  font-size: 0.82rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 226px));
  justify-content: center;
  gap: 1rem;
}

.category-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 11px;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(5, 24, 54, 0.18);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(2, 12, 29, 0.96));
  pointer-events: none;
}

.category-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 226 / 300;
  object-fit: contain;
  background: #10284d;
}

.category-card:hover {
  transform: translateY(-3px);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(5, 24, 54, 0.23);
}

.card-label {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.1rem 0.9rem 0.9rem;
}

.card-label strong,
.card-label span {
  display: block;
}

.card-label span {
  margin-top: 0.2rem;
  color: #cbd7e8;
  font-size: 0.72rem;
}

.feature-stack {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.3rem;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.1rem, 4vw, 2.4rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid #d6e0ec;
  border-radius: 13px;
  background: #f8fafc;
}

.feature-row-reverse figure {
  order: 2;
}

.feature-row figure {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe7f1;
}

.feature-row figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.module-number {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
}

.feature-copy p {
  color: #43536a;
}

.text-link {
  font-weight: 850;
  text-decoration-thickness: 2px;
}

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

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d4deea;
  border-radius: 11px;
  background: var(--white);
}

.article-image-link {
  display: block;
  background: #dfe7f1;
}

.article-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.article-card-copy {
  padding: 1rem;
}

.article-card-copy h3 a {
  color: var(--navy-950);
  text-decoration-thickness: 1px;
}

.article-card-copy p:not(.eyebrow) {
  color: #4d5d73;
  font-size: 0.9rem;
}

.article-card-copy time {
  color: #68778d;
  font-size: 0.77rem;
}

.published-badge,
.status-label {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid #b9cce1;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--navy-800);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.action-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.status-panel {
  padding: 1.2rem;
  border: 1px solid #d6c07b;
  border-radius: 11px;
  background: #fff9e8;
}

.status-panel .status-label {
  margin-bottom: 0.75rem;
  border-color: #e2bb56;
  background: #fff1bd;
  color: #684c00;
}

code {
  overflow-wrap: anywhere;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: #e8edf4;
  color: #193454;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid #d4deea;
  border-radius: 9px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.89rem;
}

caption {
  padding: 0.75rem;
  background: #edf3f9;
  color: var(--navy-950);
  font-weight: 850;
  text-align: left;
}

th,
td {
  padding: 0.75rem;
  border-top: 1px solid #dfe6ee;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--navy-900);
  color: var(--white);
}

.step-panel {
  border-left: 5px solid var(--gold);
}

.steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 2.5rem;
  padding: 0.5rem 0 0.8rem 3.1rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.faq-list details {
  border: 1px solid #d5dfeb;
  border-radius: 9px;
  background: #f9fbfd;
}

.faq-list summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  color: var(--navy-900);
  cursor: pointer;
  font-weight: 850;
}

.faq-list summary::after {
  content: "+";
  color: var(--navy-700);
  font-size: 1.15rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: #4d5d73;
}

.faq-answer p {
  margin: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.related-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.8rem;
  border: 1px solid #b8c8da;
  border-radius: 999px;
  background: #f5f8fc;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.article-shell {
  padding: 1.4rem 0 4.5rem;
}

.template-article {
  max-width: 900px;
  margin: 1.1rem auto 0;
  padding: clamp(1.2rem, 4vw, 2.7rem);
  border: 1px solid #d3ddea;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(10, 32, 70, 0.1);
}

.template-article > h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
}

.article-meta {
  color: #68778c;
  font-size: 0.83rem;
}

.article-cover {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.4rem 0;
  border-radius: 11px;
  object-fit: contain;
}

.article-introduction {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  background: #fff9e8;
  color: #34455d;
  font-size: 1.08rem;
}

.template-article .content-section,
.template-article .prose-sections > section {
  box-shadow: none;
}

.responsible-note {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e1ba59;
  border-radius: 10px;
  background: #fff7dc;
  color: #514317;
}

.redirect-shell {
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.redirect-card {
  width: min(100%, 720px);
  padding: clamp(1.4rem, 5vw, 3rem);
  border: 1px solid #d4deea;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(10, 32, 70, 0.12);
  text-align: center;
}

.redirect-card .button {
  margin: 0.5rem 0 1rem;
}

.status-message {
  padding: 0.9rem 1rem;
  border: 1px solid #e1ba59;
  border-radius: 8px;
  background: #fff7dc;
}

.not-found {
  min-height: 55vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 4rem 0;
  text-align: center;
}

.site-footer {
  background: var(--navy-950);
  color: #c6d2e2;
}

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

.footer-column h2 {
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 0.45rem;
}

.footer-column a {
  color: #d9e3f0;
}

.footer-column p,
.footer-column li {
  font-size: 0.86rem;
}

.age-badge {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 950;
}

.footer-bottom {
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 226px));
  }

  .article-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15.5px;
  }

  .container {
    width: min(calc(100% - 22px), 1140px);
  }

  .topbar,
  .topbar-inner {
    min-height: 84px;
  }

  .topbar-inner {
    gap: 0.55rem;
    padding: 0.62rem 0;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-word {
    font-size: 1.45rem;
  }

  .brand-sub {
    font-size: 0.62rem;
  }

  .brand-tagline {
    display: none;
  }

  .account-actions {
    gap: 0.35rem;
  }

  .button {
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    font-size: 0.68rem;
  }

  .hero-wrap {
    padding-top: 0.8rem;
  }

  .page-heading {
    padding-top: 1.7rem;
  }

  .page-heading .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.075em;
    overflow-wrap: anywhere;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
  }

  .feature-row-reverse figure {
    order: 0;
  }

  .action-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-sub {
    display: none;
  }

  .brand-copy {
    display: block;
  }

  .card-grid {
    gap: 0.68rem;
  }

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

  .content-section,
  .prose-sections > section,
  .template-article {
    border-radius: 10px;
  }
}

@media (max-width: 370px) {
  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-word {
    font-size: 1.18rem;
  }

  .button {
    padding-inline: 0.55rem;
    font-size: 0.63rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
