/* Shared styling for NulaCare policy pages — mirrors the landing page tokens. */
:root {
  --bg: #f7f2e9; --bg-2: #efe7d8; --surface: #fffdf8; --surface-2: #f9f4ea;
  --ink: #101b2b; --ink-2: #2b3646; --muted: #5d6670;
  --line: rgba(16,27,43,.10); --line-2: rgba(16,27,43,.16);
  --teal: #1f8a80; --teal-2: #2faea2; --teal-soft: #dcefeb;
  --gold: #f3bd43; --gold-soft: #fbecc4; --coral: #ec6f57; --coral-soft: #fadbd2;
  --shadow-sm: 0 1px 2px rgba(16,27,43,.06), 0 2px 8px rgba(16,27,43,.05);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1520; --bg-2: #121d2b; --surface: #152232; --surface-2: #1a2a3d;
    --ink: #f5efe3; --ink-2: #d9d3c8; --muted: #a3adb7;
    --line: rgba(245,239,227,.10); --line-2: rgba(245,239,227,.18);
    --teal: #5cc3b8; --teal-2: #7fd6cc; --teal-soft: #173b3b;
    --gold: #f5c75e; --gold-soft: #3d3320; --coral: #f28b76; --coral-soft: #43282a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 0% -10%, var(--teal-soft), transparent 65%),
    radial-gradient(700px 420px at 110% 15%, var(--gold-soft), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-2); }

/* Nav — same shape as the landing page */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
  border-radius: 10px; background: linear-gradient(145deg, #1f4e8c, #0b1d38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--shadow-sm);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-word { font-family: var(--display); font-size: 20px; font-weight: 560; letter-spacing: -.02em; line-height: 1; }
.brand-word span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { color: var(--bg); opacity: .9; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

/* Content */
.wrap { max-width: 820px; margin: 0 auto; padding: 52px 24px 80px; }
header .eyebrow {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
h1 {
  font-family: var(--display); font-weight: 440; font-variation-settings: "opsz" 120;
  font-size: clamp(40px, 6vw, 58px); line-height: 1.05; letter-spacing: -.022em;
  margin: 10px 0 8px; text-wrap: balance;
}
.dates { color: var(--muted); font-size: 14px; }
h2 {
  font-family: var(--display); font-weight: 480; font-size: 25px;
  letter-spacing: -.01em; margin: 42px 0 10px;
}
h3 { font-size: 16.5px; font-weight: 650; margin: 22px 0 6px; }
p, li { color: var(--ink-2); }
.lede { color: var(--muted); font-size: 17px; margin: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 6px;
}
nav.toc { margin: 26px 0 4px; font-size: 13.5px; }
nav.toc a { display: inline-block; margin: 0 14px 6px 0; color: var(--muted); text-decoration: none; }
nav.toc a:hover { color: var(--teal); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px; margin: 26px 0;
  box-shadow: var(--shadow-sm);
}
.summary { border-left: 4px solid var(--teal); }
.note { background: var(--teal-soft); border-radius: var(--r-sm); padding: 14px 16px; font-size: 15px; }
.note.urgent { border-left: 4px solid var(--coral); background: var(--coral-soft); }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.contact .label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact a { display: inline-block; margin-top: 6px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
td:first-child { width: 38%; color: var(--ink); }
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 14px 16px; margin: 10px 0;
}
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 10px 0 0; }

/* Footer — same structure as the landing page */
.footer {
  margin-top: 40px; padding: 36px 24px 48px;
  border-top: 1px solid var(--line);
  max-width: 1040px; margin-left: auto; margin-right: auto;
}
.footer-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-tag { color: var(--muted); font-size: 13px; }
.footer-copy {
  max-width: 62ch; margin: 18px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6;
}
.footer-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; color: var(--muted); font-size: 13.5px;
}
.footer-row a { color: var(--muted); }
.footer-links { display: flex; gap: 16px; margin-top: 10px; font-size: 13.5px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }


/* Footer columns — matches the landing page */
.footer-grid { display:grid; gap:24px; grid-template-columns:repeat(2,1fr); margin-top:24px; }
.footer-col h4 { margin:0 0 8px; font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.footer-col a { display:block; padding:3px 0; color:var(--ink-2); font-size:14px; text-decoration:none; }
.footer-col a:hover { color:var(--ink); }
@media (min-width:760px) { .footer-grid { grid-template-columns:1.4fr repeat(3,1fr); } }

@media (max-width: 560px) {
  .wrap { padding: 36px 18px 64px; }
  .footer { padding: 28px 18px 40px; }
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { display: none; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; color: var(--ink); }
}
@media print {
  body { background: #fff; }
  .nav, nav.toc, .footer-links { display: none; }
  .wrap { padding: 0; }
}
