/* Ocean theme — Inter font */
@font-face {
 font-family: 'Inter';
 src: url('/assets/fonts/inter.woff2') format('woff2');
 font-weight: 100 900;
 font-style: normal;
 font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
 font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
 font-weight: 400;
 font-size: 17px;
 line-height: 1.65;
 color: #0b2030;
 background: #ffffff;
 text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 min-height: 100vh;
 display: flex;
 flex-direction: column;
}

.site-header {
 background: linear-gradient(180deg, #0b3d5c 0%, #0a5278 100%);
 color: #ffffff;
}
.site-header__inner {
 max-width: 64rem;
 margin: 0 auto;
 padding: 1.4rem 1.75rem;
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 1rem 2.25rem;
}
.site-brand {
 font-weight: 700;
 font-size: 1.15rem;
 letter-spacing: -0.015em;
 color: #ffffff;
 text-decoration: none;
 border: none;
}
.site-brand strong { font-weight: 700; }
.site-nav {
 display: flex;
 gap: 1.5rem;
 flex-wrap: wrap;
 font-size: 0.94rem;
 margin-left: auto;
}
.site-nav a {
 color: rgba(255,255,255,0.85);
 text-decoration: none;
 border: none;
 font-weight: 500;
 transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: #ffffff; }

main {
 flex: 1;
 max-width: 44rem;
 width: 100%;
 margin: 0 auto;
 padding: clamp(2.5rem, 6vh, 4rem) 1.75rem 4rem;
}
main.hub { max-width: 46rem; }

h1 {
 font-weight: 700;
 font-size: clamp(2.1rem, 5vw, 2.85rem);
 letter-spacing: -0.025em;
 line-height: 1.1;
 color: #0b2030;
 margin: 0 0 1.1rem;
}
.lead {
 font-size: 1.15rem;
 color: #3a5469;
 margin: 0 0 3rem;
 line-height: 1.55;
}
h2 {
 font-weight: 700;
 font-size: 1.45rem;
 letter-spacing: -0.015em;
 line-height: 1.25;
 color: #0b2030;
 margin: 3rem 0 1rem;
 scroll-margin-top: 2rem;
}
h3 {
 font-weight: 600;
 font-size: 1.1rem;
 color: #0b2030;
 margin: 2rem 0 0.5rem;
}
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }
li::marker { color: #5ab8d5; }
strong { font-weight: 600; color: #0b2030; }
em { font-style: italic; }

a {
 color: #0077a8;
 text-decoration: none;
 border-bottom: 1px solid #b8dde9;
 font-weight: 500;
 transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: #004966; border-bottom-color: #0077a8; }

/* HUB topic list */
.topic-list {
 list-style: none;
 padding: 0;
 margin: 0 0 2rem;
}
.topic-list li {
 margin: 0;
 border-top: 1px solid #cee0e7;
}
.topic-list li:last-child { border-bottom: 1px solid #cee0e7; }
.topic-list a {
 display: block;
 padding: 1.3rem 0;
 border: none;
}
.topic-list a:hover .topic-title { color: #0077a8; }
.topic-title {
 display: block;
 font-size: 1.1rem;
 font-weight: 600;
 color: #0b2030;
 margin-bottom: 0.2rem;
 transition: color 0.15s ease;
}
.topic-desc {
 display: block;
 font-size: 0.95rem;
 color: #4a6678;
 line-height: 1.5;
 font-weight: 400;
}

.toc {
 margin: 0 0 2.5rem;
 padding: 1.1rem 1.4rem;
 background: #e8f4f8;
 border-left: 3px solid #0077a8;
 font-size: 0.95rem;
}
.toc__title {
 font-size: 0.78rem;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: #4a6678;
 margin: 0 0 0.5rem;
 font-weight: 600;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0.15rem 0; }
.toc li::before {
 content: counter(toc) ".";
 display: inline-block;
 width: 1.6rem;
 color: #5ab8d5;
}
.toc a { color: #0b2030; border: none; font-weight: 400; }
.toc a:hover { color: #0077a8; }

.note {
 margin: 2.5rem 0;
 padding: 1.2rem 1.4rem;
 border-left: 3px solid #5ab8d5;
 background: #e8f4f8;
 font-size: 0.95rem;
 color: #3a5469;
}
.note p:last-child { margin-bottom: 0; }

.data-table {
 width: 100%;
 border-collapse: collapse;
 margin: 1.25rem 0 2rem;
 font-size: 0.94rem;
}
.data-table th, .data-table td {
 padding: 0.7rem 0.9rem;
 text-align: left;
 border-bottom: 1px solid #cee0e7;
 vertical-align: top;
}
.data-table th {
 font-weight: 600;
 color: #0b2030;
 border-bottom: 2px solid #0077a8;
 font-size: 0.85rem;
 letter-spacing: 0.04em;
 text-transform: uppercase;
}

.related {
 margin-top: 3.5rem;
 padding-top: 1.5rem;
 border-top: 1px solid #cee0e7;
}
.related__title {
 font-size: 0.78rem;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: #4a6678;
 font-weight: 600;
 margin: 0 0 1rem;
}
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 0.5rem; padding-left: 0; }
.related li::before {
 content: "\2192";
 display: inline-block;
 width: 1.4rem;
 color: #5ab8d5;
}

/* Resources */
.resources {
 margin: 3rem 0 2.5rem;
 padding: 1.4rem 1.6rem;
 background: #e8f4f8;
 border-left: 3px solid #0077a8;
 font-size: 0.94rem;
}
.resources h2 {
 font-size: 1.05rem;
 font-weight: 600;
 margin: 0 0 1rem;
 scroll-margin-top: 2rem;
}
.resources ul { margin: 0; padding-left: 1.25rem; }
.resources li { margin-bottom: 0.8rem; line-height: 1.5; }
.resources li:last-child { margin-bottom: 0; }
.resources .source {
 display: block;
 font-size: 0.85rem;
 color: #4a6678;
 font-style: italic;
 margin-top: 0.15rem;
 border: none;
}

/* FAQ */
.faq { margin: 1.5rem 0 0; padding: 0; }
.faq dt {
 font-weight: 600;
 color: #0b2030;
 font-size: 1.05rem;
 line-height: 1.4;
 margin: 0 0 0.55rem;
}
.faq dd {
 margin: 0 0 1.7rem;
 padding: 0;
 color: #0b2030;
}
.faq dd p { margin: 0 0 0.7rem; }
.faq dd p:last-child { margin-bottom: 0; }
.faq dd + dt {
 border-top: 1px solid #cee0e7;
 padding-top: 1.7rem;
}

/* Glossary */
.glossary dt {
 font-weight: 600;
 color: #0b2030;
 margin: 1.4rem 0 0.3rem;
}
.glossary dd {
 margin: 0 0 0.5rem;
 padding: 0;
 color: #3a5469;
}

/* Figure */
.page-figure {
 margin: 2rem 0 2.5rem;
 padding: 0;
 text-align: center;
}
.page-figure img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.page-figure figcaption {
 margin-top: 0.7rem;
 font-size: 0.85rem;
 color: #4a6678;
 font-style: italic;
}

/* Footer */
.site-footer {
 border-top: 1px solid #cee0e7;
 background: #f0f7fa;
 font-size: 0.92rem;
 color: #4a6678;
 padding: 2.5rem 1.75rem 1.75rem;
 margin-top: auto;
}
.site-footer__inner {
 max-width: 64rem;
 margin: 0 auto;
 display: grid;
 gap: 1.75rem 3rem;
 grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.site-footer h3 {
 font-size: 0.78rem;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: #0a5278;
 margin: 0 0 0.75rem;
 font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #4a6678; border: none; font-weight: 400; }
.site-footer a:hover { color: #0b2030; }
.site-footer__bottom {
 max-width: 64rem;
 margin: 2.25rem auto 0;
 padding-top: 1.3rem;
 border-top: 1px solid #cee0e7;
 font-size: 0.8rem;
 color: #4a6678;
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem 1.5rem;
 justify-content: space-between;
}

@media (max-width: 640px) {
  .site-header__inner { gap: 0.6rem 1.25rem; }
  .site-nav { margin-left: 0; gap: 1rem; font-size: 0.9rem; }
 main { padding: 2.25rem 1.4rem 3rem; }
 h2 { margin-top: 2.5rem; }
  .site-footer { padding: 2.25rem 1.4rem 1.5rem; }
}
