:root {
  --navy: #0f2b4a;
  --navy-deep: #071a2e;
  --blue: #0f6fbf;
  --accent: #008f78;
  --gold: #c98612;
  --ink: #172033;
  --muted: #5d6d83;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --surface-soft: #edf3f8;
  --border: #d4e0eb;
  --shadow: 0 16px 42px rgba(15, 43, 74, .10);
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
}

[data-theme="dark"] {
  --navy: #e8eef8;
  --navy-deep: #f4f8ff;
  --blue: #62b6ff;
  --accent: #22d1ad;
  --gold: #f4b64e;
  --ink: #e8eef8;
  --muted: #9aaec9;
  --bg: #0c1420;
  --surface: #141f2d;
  --surface-soft: #1b2a3d;
  --border: #2d4058;
  --shadow: 0 18px 52px rgba(0, 0, 0, .34);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 40px, 1120px); margin: 0 auto; }
.skip-link { position: fixed; top: 10px; left: 14px; z-index: 1000; transform: translateY(-150%); padding: 9px 12px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 900; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); }
.nav-shell { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-family: var(--serif); font-size: 1.35rem; font-weight: 900; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0f2b4a, #0f6fbf 72%, #008f78); font-family: var(--serif); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: .86rem; font-weight: 800; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface-soft); color: var(--ink); text-decoration: none; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-soft); color: var(--muted); cursor: pointer; }
.theme-icon { width: 18px; height: 18px; }
.theme-icon .sun, .theme-icon .moon { transform-origin: center; transition: opacity .18s ease, transform .18s ease; }
.theme-icon .sun { opacity: 0; transform: scale(.72) rotate(-18deg); }
.theme-icon .moon { opacity: 1; }
[data-theme="dark"] .theme-icon .sun { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="dark"] .theme-icon .moon { opacity: 0; transform: scale(.72) rotate(18deg); }
.page-hero { padding: 62px 0 50px; color: #fff; background: #0f2b4a; border-bottom: 4px solid #008f78; }
.eyebrow { margin: 0 0 8px; color: #78d9c8; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.page-hero h1 { max-width: 820px; margin: 0; font-family: var(--serif); font-size: clamp(2.35rem, 6vw, 4.3rem); line-height: 1.04; font-weight: 700; }
.page-hero p { max-width: 760px; margin: 15px 0 0; color: #c7d7ea; font-size: 1.05rem; }
.page-content { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 54px; padding: 54px 0 72px; }
.page-content--single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.page-nav { align-self: start; position: sticky; top: 94px; display: grid; gap: 5px; }
.page-nav strong { margin-bottom: 8px; color: var(--ink); font-size: .78rem; text-transform: uppercase; }
.page-nav a { padding: 8px 10px; border-left: 2px solid var(--border); color: var(--muted); font-size: .86rem; font-weight: 800; }
.page-nav a:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.prose { min-width: 0; }
.prose section { padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--border); }
.prose section:last-child { border-bottom: 0; }
.prose h2 { margin: 0 0 12px; color: var(--navy); font-family: var(--serif); font-size: 1.75rem; line-height: 1.16; }
.prose h3 { margin: 22px 0 8px; color: var(--ink); font-size: 1rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.notice { padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: 0 6px 6px 0; background: var(--surface-soft); color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--ink); font-weight: 900; }
.button:hover { text-decoration: none; border-color: var(--blue); }
.button--primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.contact-item { min-height: 190px; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.contact-item span { color: var(--accent); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.contact-item h2 { margin: 9px 0 8px; color: var(--navy); font-family: var(--serif); font-size: 1.35rem; }
.contact-item p { margin: 0; color: var(--muted); font-size: .92rem; }
.contact-item a { display: inline-flex; margin-top: 16px; font-weight: 900; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-shell { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); font-weight: 800; }

@media (max-width: 820px) {
  .site-nav a:not([aria-current="page"]) { display: none; }
  .page-content { grid-template-columns: 1fr; gap: 26px; }
  .page-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-nav strong { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1120px); }
  .brand { font-size: 1.18rem; }
  .page-hero { padding: 46px 0 38px; }
  .page-content { padding: 38px 0 54px; }
  .page-nav { grid-template-columns: 1fr; }
  .footer-shell { align-items: flex-start; flex-direction: column; padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
