/* ==========================================================================
   DocChiaro — brand layer
   Shared header, footer, tokens and simple page layout used on every page.
   Colours: Ligurian navy (primary) + warm amber (accent) on warm paper.
   Type: Source Serif 4 (headings), Inter (interface + body), JetBrains Mono (figures).
   ========================================================================== */

:root {
  --dc-primary: #1b3a5c;
  --dc-primary-600: #27507d;
  --dc-primary-50: #eef3f9;
  --dc-primary-100: #e3ebf4;
  --dc-accent: #d8a23a;
  --dc-accent-600: #c08a26;
  --dc-ink: #16181d;
  --dc-ink-2: #3d424a;
  --dc-muted: #5e636b;
  --dc-border: #e3e1db;
  --dc-paper: #f6f5f1;
  --dc-white: #ffffff;
  --dc-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --dc-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --dc-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --dc-header-h: 64px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.dc-header {
  all: unset;
  display: block;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--dc-header-h);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--dc-border);
  font-family: var(--dc-sans);
}
.dc-header nav {
  all: unset;
  box-sizing: border-box;
  display: flex; align-items: center; gap: 28px;
  max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px;
}
.dc-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--dc-ink); flex-shrink: 0;
}
.dc-logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--dc-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--dc-serif); font-weight: 700; font-size: 17px; line-height: 1;
  position: relative;
}
.dc-logo-mark::after {
  content: ''; position: absolute; right: 5px; bottom: 5px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--dc-accent);
}
.dc-logo-word {
  font-family: var(--dc-serif); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; line-height: 1;
}
.dc-logo-word b { font-weight: 700; color: var(--dc-primary); }
.dc-links { display: flex; align-items: center; gap: 24px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.dc-links a {
  font-size: 14px; font-weight: 500; color: var(--dc-ink-2); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.dc-links a:hover { color: var(--dc-primary); }
.dc-links a[aria-current="page"] { color: var(--dc-primary); border-bottom-color: var(--dc-accent); }
.dc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  background: var(--dc-primary); color: #fff !important; text-decoration: none;
  font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s;
}
.dc-cta:hover { background: var(--dc-primary-600); }

/* mobile menu (no JavaScript: <details>) */
.dc-menu { display: none; margin-left: auto; position: relative; }
.dc-menu > summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--dc-border); background: #fff;
}
.dc-menu > summary::-webkit-details-marker { display: none; }
.dc-menu-panel {
  position: absolute; right: 0; top: 48px; width: 240px; padding: 8px;
  background: #fff; border: 1px solid var(--dc-border); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(22, 24, 29, 0.12);
}
.dc-menu-panel a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--dc-ink); text-decoration: none;
}
.dc-menu-panel a:hover, .dc-menu-panel a[aria-current="page"] { background: var(--dc-primary-50); color: var(--dc-primary); }
.dc-menu-panel .dc-cta { display: flex; justify-content: center; margin-top: 6px; }

@media (max-width: 900px) {
  .dc-links, .dc-header nav > .dc-cta { display: none; }
  .dc-menu { display: block; }
}

/* spacer for pages whose content starts at the top of the page */
.dc-spacer { height: var(--dc-header-h); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.dc-footer {
  all: unset;
  display: block;
  background: var(--dc-ink); color: rgba(255, 255, 255, 0.62);
  font-family: var(--dc-sans); font-size: 14px; line-height: 1.6;
  padding: 64px 24px 32px; margin: 0;
}
.dc-footer * { box-sizing: border-box; }
.dc-footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.dc-footer .dc-logo { color: #fff; }
.dc-footer .dc-logo-word b { color: var(--dc-accent); }
.dc-footer p { margin: 14px 0 0; font-size: 14px; max-width: 320px; color: rgba(255, 255, 255, 0.62); text-align: left; }
.dc-footer h4 {
  margin: 0 0 14px; font-family: var(--dc-sans); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9);
}
.dc-footer-col a {
  display: block; margin: 0 0 9px; color: rgba(255, 255, 255, 0.62);
  text-decoration: none; font-size: 14px; transition: color .15s;
}
.dc-footer a:hover { color: #fff; }
.dc-footer-bottom {
  max-width: 1200px; margin: 48px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.45);
}
.dc-footer-bottom a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
@media (max-width: 900px) {
  .dc-footer-grid { grid-template-columns: 1fr 1fr; }
  .dc-footer-brand { grid-column: 1 / -1; }
}

/* ── Simple page layout (about, legal) ─────────────────────────────────── */
.dc-body { margin: 0; background: var(--dc-paper); color: var(--dc-ink); font-family: var(--dc-sans); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.dc-page { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.dc-eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 99px;
  background: var(--dc-primary-100); color: var(--dc-primary);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.dc-page h1 { font-family: var(--dc-serif); font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -0.015em; margin: 18px 0 12px; }
.dc-page .dc-lead { font-size: 1.15rem; color: var(--dc-muted); margin: 0 0 32px; }
.dc-card { background: #fff; border: 1px solid var(--dc-border); border-radius: 18px; padding: 40px; }
.dc-card h2 { font-family: var(--dc-serif); font-size: 1.35rem; margin: 32px 0 8px; color: var(--dc-ink); }
.dc-card h2:first-child { margin-top: 0; }
.dc-card p, .dc-card li { font-size: 15.5px; color: var(--dc-ink-2); }
.dc-card p { margin: 0 0 12px; }
.dc-card ul { padding-left: 20px; margin: 0 0 12px; }
.dc-card a { color: var(--dc-primary); }
.dc-note { padding: 14px 18px; border-radius: 12px; background: #fff8ea; border: 1px solid #f1d9a6; color: #7a5310; font-size: 14px; margin: 0 0 20px; }
.dc-updated { font-size: 13px; color: var(--dc-muted); margin: 0 0 28px; }
@media (max-width: 640px) { .dc-card { padding: 26px 20px; } }
