:root {
  --ink: #14212b;
  --muted: #475766;
  --brand: #0b5d66;
  --brand-dark: #072f36;
  --accent: #d6f23c;
  --soft: #f1f6f5;
  --line: #d3dfdf;
  --white: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--brand-dark); line-height: 1.2; font-weight: 700; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid #1d7ce0; outline-offset: 2px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--accent); color: var(--ink); padding: 12px 16px; font-weight: 600;
  min-height: 44px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.header-main { display: flex; justify-content: space-between; align-items: center; min-height: 72px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--brand-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid var(--brand); display: inline-block; flex: none; }
.nav-toggle { display: none; background: var(--white); border: 1px solid var(--line); min-width: 44px; min-height: 44px; font-size: 0.95rem; font-weight: 600; color: var(--brand-dark); cursor: pointer; padding: 0 14px; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 0.92rem; font-weight: 600; color: var(--brand-dark); text-decoration: none; border-bottom: 3px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--accent); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--brand); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; border: 2px solid var(--accent); font-size: 1rem; }
.btn:hover { background: var(--white); color: var(--brand-dark); border-color: var(--brand); }
.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost:hover { background: var(--brand); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* hero */
.hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 56px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.9rem; margin-bottom: 20px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); }
.hero figure img { width: 100%; border: 1px solid var(--line); }
.hero figcaption, figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 14px; max-width: 860px; }
.page-hero p { font-size: 1.12rem; color: var(--muted); max-width: 760px; }
.meta-line { font-size: 0.86rem; color: var(--muted); margin-top: 14px; }

.breadcrumbs { padding: 10px 0; font-size: 0.88rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.breadcrumbs a { display: inline-block; padding: 8px 2px; }

/* statement strip */
.strip { background: var(--brand-dark); color: var(--white); padding: 34px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.strip h2 { color: var(--accent); font-size: 1.15rem; margin-bottom: 6px; font-family: var(--sans); }
.strip p { color: #d4e4e6; font-size: 0.97rem; }

.section { padding: 60px 0; }
.section.alt { background: var(--soft); }
.section h2 { font-size: 2rem; margin-bottom: 18px; }
.section .intro { max-width: 760px; color: var(--muted); font-size: 1.08rem; margin-bottom: 30px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 16px; flex-grow: 1; }
.card a.more { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

.note { border-left: 5px solid var(--accent); background: var(--soft); padding: 18px 22px; margin: 28px 0; }
.note strong { color: var(--brand-dark); }
.warn { border-left-color: #b4570a; }

/* prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.75rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.28rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; font-size: 1.04rem; }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; font-size: 1.04rem; }
.prose figure { margin: 28px 0; }
.prose figure img { border: 1px solid var(--line); width: 100%; }
.prose .jp { font-weight: 400; }

table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: 0.96rem; }
caption { text-align: left; font-weight: 700; padding-bottom: 8px; color: var(--brand-dark); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--brand-dark); font-size: 0.88rem; }
.table-wrap { overflow-x: auto; }

dl.glossary dt { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--brand-dark); margin-top: 24px; }
dl.glossary dd { margin: 4px 0 0; max-width: 760px; }
dl.facts { display: grid; grid-template-columns: 170px 1fr; gap: 10px 20px; margin: 20px 0; }
dl.facts dt { font-weight: 700; color: var(--brand-dark); }
dl.facts dd { margin: 0; }

.link-list { list-style: none; margin: 0; }
.link-list li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.link-list a { font-weight: 700; font-size: 1.08rem; display: inline-block; padding: 6px 0; min-height: 32px; }
.link-list p { margin: 4px 0 0; color: var(--muted); font-size: 0.97rem; }

/* footer */
.site-footer { background: var(--brand-dark); color: #d4e4e6; padding: 52px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-title { font-family: var(--sans); font-weight: 700; color: var(--white); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer p { font-size: 0.93rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; color: #d4e4e6; font-size: 0.93rem; }
.site-footer a { color: #d4e4e6; }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 20px; font-size: 0.85rem; color: #b9cfd2; }

@media (max-width: 960px) {
  .hero-grid, .grid-2, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .strip-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .page-hero h1 { font-size: 2rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
  .js .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .site-header .container { position: relative; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 12px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
