:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fc;
  --surface: #ffffff;
  --text: #1c2333;
  --muted: #545d70;
  --heading: #12296b;
  --border: #dfe4ee;
  --accent: #1f3c88;
  --link: #1f3c88;
  --link-hover: #0f2560;
  --focus: #c8902a;

  --cta: #1f3c88;
  --cta-hover: #142b68;
  --cta-text: #ffffff;

  --header-bg: #12296b;
  --header-text: #ffffff;
  --header-muted: rgba(255, 255, 255, 0.85);
  --header-hover: rgba(255, 255, 255, 0.12);
  --header-border: rgba(255, 255, 255, 0.18);
  --header-border-width: 0;

  --hero-bg: #ffffff;
  --hero-text: #1c2333;
  --hero-heading: #12296b;
  --hero-muted: #545d70;

  --th-bg: #f4f6fc;
  --th-text: #12296b;
  --row-alt: #ffffff;

  --info-bg: #eef2fb;
  --info-text: #1c2333;
  --warn-bg: #fdf6ea;
  --warn-text: #5c3e08;
  --warn-border: #c8902a;

  --footer-bg: #0f1f4d;
  --footer-text: rgba(255, 255, 255, 0.86);
  --footer-heading: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.62);
  --footer-border: rgba(255, 255, 255, 0.16);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);
  --heading-weight: 700;
  --fs-base: 1.0625rem;

  --container: 1200px;
  --content: none;
  --gutter: clamp(16px, 3.5vw, 40px);
  --radius: 10px;
  --radius-lg: 12px;
  --nav-radius: 6px;
  --btn-radius: 8px;
  --shadow: 0 2px 14px rgba(18, 41, 107, 0.09);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: 1.2;
  color: var(--heading);
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  letter-spacing: -0.01em;
}

h3 {
  margin-top: 2rem;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
}

p {
  margin: 0 0 1.1rem;
}

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

li {
  margin-bottom: 0.5rem;
  padding-left: 0.2rem;
}

li::marker {
  color: var(--accent);
  font-weight: 700;
}

strong {
  color: var(--heading);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--cta);
  color: var(--cta-text);
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  background: var(--header-bg);
  border-bottom: var(--header-border-width) solid var(--header-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.site-logo {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  width: auto;
  height: 36px;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li {
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: var(--nav-radius);
  color: var(--header-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
  background: var(--header-hover);
  color: var(--header-text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--header-border);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--header-text);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 880px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 1rem;
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--header-border);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding-block: 0.5rem;
  }

  .site-nav__list a {
    padding: 0.8rem 0.5rem;
    font-size: 1rem;
  }
}

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem);
}

.hero h1 {
  color: var(--hero-heading);
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__subtitle {
  max-width: 50rem;
  margin-bottom: 1.25rem;
  color: var(--hero-muted);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
}

.post-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1.75rem;
  color: var(--hero-muted);
  font-size: 0.9rem;
}

.post-dates time {
  color: var(--hero-text);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.75rem 1.6rem;
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--cta);
  color: var(--cta-text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--cta-hover);
  color: var(--cta-text);
}

.btn:active {
  transform: translateY(1px);
}

.page {
  padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) 0;
}

.content {
  min-width: 0;
  max-width: var(--content);
}

.section > :last-child {
  margin-bottom: 0;
}

.toc__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.toc__title::-webkit-details-marker {
  display: none;
}

.toc__title::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.toc__details[open] > .toc__title::after {
  transform: translateY(2px) rotate(-135deg);
}

.toc ol {
  margin: 0;
}

.toc li {
  margin-bottom: 0.35rem;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover,
.toc a.is-active {
  color: var(--link);
}

.toc a.is-active {
  font-weight: 700;
}

.toplist {
  margin-block: 1.75rem 0;
}

.toplist:empty {
  display: none;
}

.callout {
  margin-block: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--info-bg);
  color: var(--info-text);
}

.callout__title {
  margin: 0 0 0.4rem;
  color: inherit;
  font-weight: 700;
}

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

.callout--warning {
  border-left-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.table-wrap {
  margin-block: 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.data-table caption {
  padding: 0.9rem 1.1rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  border-top: 0;
  background: var(--th-bg);
  color: var(--th-text);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: var(--row-alt);
}

.data-table td:first-child {
  color: var(--heading);
  font-weight: 700;
}

@media (max-width: 640px) {
  .table-wrap {
    overflow: hidden;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td,
  .data-table caption {
    display: block;
    width: 100%;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tr {
    padding-block: 0.6rem;
    border-top: 1px solid var(--border);
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 1rem;
    border: 0;
    text-align: right;
  }

  .data-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
  }

  .data-table td:first-child {
    justify-content: flex-start;
    padding-block: 0.35rem 0.5rem;
    font-size: 1.05rem;
    text-align: left;
  }

  .data-table td:first-child::before {
    display: none;
  }
}

.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.glossary > div {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.glossary dt {
  margin-bottom: 0.25rem;
  color: var(--heading);
  font-weight: 700;
}

.glossary dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat;
}

.faq-item summary:hover {
  color: var(--link);
}

.faq-item__answer {
  padding-bottom: 1.15rem;
  color: var(--muted);
}

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

.site-footer {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 2rem;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand__name {
  margin-bottom: 0.5rem;
  color: var(--footer-heading);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand p:last-child {
  color: var(--footer-muted);
  font-size: 0.9rem;
}

.footer-grid__title {
  margin: 0 0 0.75rem;
  color: var(--footer-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.footer-grid li {
  margin: 0;
  padding: 0;
}

.footer-grid a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--footer-text);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--footer-heading);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
  color: var(--footer-muted);
  font-size: 0.85rem;
}

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

.footer-slogan {
  margin-bottom: 0.5rem;
  color: var(--footer-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-age-badge {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--footer-heading);
  border-radius: 50%;
  color: var(--footer-heading);
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 560px) {
  .site-footer__bottom {
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .toc,
  .site-footer,
  .btn {
    display: none;
  }
}

main [id] {
  scroll-margin-top: 24px;
}

@media (min-width: 881px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-logo {
    padding-block: 16px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin: 0;
    background: #0f1f4d;
    box-shadow: 0 0 0 100vmax #0f1f4d;
    clip-path: inset(0 -100vmax);
  }

  .site-nav__list {
    gap: 0.25rem;
    padding-block: 0.4rem;
  }

  .site-nav__list a {
    padding-inline: 0.85rem;
    color: #ffffff;
  }
}

.site-nav__list a.is-active {
  background: var(--header-hover);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--focus);
}

.hero {
  padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) 0.5rem;
  text-align: center;
}

.hero__inner {
  max-width: 1000px;
}

.hero__updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero__updated svg {
  flex-shrink: 0;
  color: var(--accent);
}

.hero__updated time {
  color: var(--heading);
  font-weight: 700;
}

.hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  letter-spacing: -0.01em;
}

.hero__meta {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__meta time {
  color: var(--heading);
  font-weight: 600;
}

.hero__subtitle {
  margin-inline: auto;
  margin-bottom: 0;
}

.page {
  padding-top: 1.5rem;
}

.toc {
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.toc__title {
  padding: 1rem 1.4rem;
  color: var(--heading);
  font-size: 1.05rem;
}

.toc ol {
  padding: 0 1.4rem 1.25rem 2.9rem;
}

.toc li::marker {
  font-weight: 600;
}

@media (min-width: 700px) {
  .toc ol {
    columns: 2;
    column-gap: 3rem;
  }

  .toc li {
    break-inside: avoid;
  }
}

.section {
  padding-top: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
}

.section h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem);
  text-align: center;
}

.section h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
}

.callout {
  border-left-width: 4px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.callout__title {
  color: var(--accent);
}

.callout--warning .callout__title {
  color: #8a5a0c;
}

.table-wrap {
  border-radius: 0;
}

.data-table caption {
  border-bottom: 1px solid var(--border);
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.data-table tr > :first-child {
  border-left: 0;
}

.data-table tr > :last-child {
  border-right: 0;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table thead th {
  border-top: 0;
  font-size: 0.9rem;
  white-space: normal;
}

.data-table td:first-child {
  font-weight: 600;
}

@media (max-width: 640px) {
  .table-wrap {
    border-radius: var(--radius);
  }

  .data-table td,
  .data-table td:first-child {
    border: 0;
  }

  .data-table td {
    text-align: right;
  }

  .data-table td:first-child {
    text-align: left;
  }
}

.glossary > div {
  border: 0;
  box-shadow: var(--shadow);
}

.faq {
  display: grid;
  gap: 1rem;
  border-top: 0;
}

.faq-item {
  padding: 0 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.faq-item summary {
  justify-content: flex-start;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.faq-item summary::before {
  content: "?";
  display: inline-flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  height: 26px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.faq-item summary::after {
  margin-left: auto;
}

.faq-item__answer {
  padding-left: calc(26px + 0.75rem);
  color: var(--text);
}
