/* ============================================================
   ARCH 50/50 — legal pages template (page.legal)
   WCAG 2.0 AA: all text contrast ≥ 4.5:1, focus outline ≥ 2px,
   footer font ≥ 14px, readable at 200% zoom.
   ============================================================ */

:root {
  --paper: #FBF8F1;
  --paper-deep: #F4EEDF;
  --card: #FFFFFF;
  --ink: #26312B;        /* vs paper ≈ 12:1 */
  --ink-soft: #49564D;   /* vs paper ≈ 7:1  */
  --accent: #2E6B4F;     /* vs paper ≈ 5.9:1 */
  --accent-deep: #1D4A35;
  --rule: #E4DDCB;
  --pine: #20342A;       /* footer bg */
  --pine-ink: #EFEBDD;   /* vs pine ≈ 11:1  */
  --pine-link: #CDE4D4;  /* vs pine ≈ 9:1   */
  --pine-muted: #C0CDC3; /* vs pine ≈ 7:1   */
  --todo-bg: #FFF1C6;
  --todo-ink: #6A4E00;   /* vs todo-bg ≥ 5:1 */
  --focus: #1D4A35;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', 'Segoe UI', Tahoma, sans-serif;
  --radius-xs: 4px;   /* inline chips, code, small marks */
  --radius-sm: 8px;   /* buttons, inputs */
  --radius-md: 12px;  /* cards, panels, dialogs */
  --radius-lg: 16px;  /* photos */
  --cc-h: 0px; /* set by JS while the cookie banner is visible */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;             /* spec: 16–18px */
  line-height: 1.6;            /* spec: 1.6 */
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-deep) 0, var(--paper) 340px);
  padding-bottom: var(--cc-h); /* keep footer 18+/Ontario block visible above the banner */
}

/* ---------- focus & skip link ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--pine);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  position: fixed;
}

/* ---------- layout ---------- */
.wrap        { max-width: 1040px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 700px;  margin-inline: auto; padding-inline: 24px; } /* spec: 680–720px */

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand-text { white-space: nowrap; } /* the wordmark must never break mid-name */
.brand-text b { color: var(--accent); font-weight: 700; }
.header-link {
  color: var(--accent);
  font-size: 15px;
}

/* ---------- animated brand mark ---------- */
.logo-mark { display: block; flex: none; }
.logo-rotor,
.logo-heart,
.logo-heart-wrap { transform-box: fill-box; transform-origin: center; }
.logo-arc { animation: logo-draw 1s cubic-bezier(0.6, 0, 0.3, 1) both; }
.logo-arc-2 { animation-delay: 0.12s; }
@keyframes logo-draw {
  from { stroke-dashoffset: 119.4; opacity: 0; }
  25%  { opacity: 1; }
  to   { stroke-dashoffset: 0; opacity: 1; }
}
.logo-heart-wrap { animation: logo-pop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) 0.55s both; }
@keyframes logo-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.logo-heart { animation: logo-heartbeat 5.5s ease-in-out 2.2s infinite; }
@keyframes logo-heartbeat {
  0%, 18%, 100% { transform: scale(1); }
  5%  { transform: scale(1.14); }
  10% { transform: scale(0.98); }
  14% { transform: scale(1.08); }
}
.logo-rotor { transition: transform 0.7s cubic-bezier(0.6, 0, 0.25, 1); }
.brand:hover .logo-rotor,
.brand:focus-visible .logo-rotor { transform: rotate(180deg); }

/* large hero emblem: slow rotation of the split ring,
   anchored to the content column (not the viewport) */
.hero .wrap { position: relative; }
.logo-hero {
  position: absolute;
  right: 24px;
  top: 50%;
  margin-top: -145px;
  filter: drop-shadow(0 20px 44px rgba(32, 52, 42, 0.20));
}
.logo-hero .logo-rotor {
  transition: none;
  animation: logo-spin 70s linear 1.4s infinite;
}
@keyframes logo-spin { to { transform: rotate(360deg); } }
@media (max-width: 1060px) { .logo-hero { display: none; } }

/* ---------- legal article ---------- */
main { display: block; }
.legal { padding-block: 40px 72px; text-align: left; }

.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.doc-meta {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.doc-meta .dot { margin-inline: 6px; }

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 2.2em 0 0.6em;
  scroll-margin-top: 24px;
}
.legal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin: 1.6em 0 0.4em;
}
.legal p  { margin: 0 0 1em; }
.legal ul, .legal ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.legal li { margin-bottom: 0.45em; }
.legal li::marker { color: var(--accent); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }

code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.92em;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
}

/* client-fill placeholders — flagged in dev, must never ship */
mark.client-todo {
  overflow-wrap: anywhere; /* long tokens must not cause horizontal scroll */
  background: var(--todo-bg);
  color: var(--todo-ink);
  border: 1px dashed #C9A227;
  border-radius: var(--radius-xs);
  padding: 0 5px;
  font-size: 0.95em;
}
a.client-todo { background: var(--todo-bg); border: 1px dashed #C9A227; border-radius: var(--radius-xs); padding: 0 4px; }

/* ---------- table of contents ---------- */
.toc {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 6px 20px;
  margin: 0 0 8px;
}
.toc summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 12px 0;
  list-style-position: inside;
}
.toc ol { list-style: none; margin: 0 0 14px; padding-left: 0.35em; } /* headings carry their own numbering */
.toc li { margin: 5px 0; }
.toc a  { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.legal th, .legal td {
  border: 1px solid var(--rule);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--paper-deep); font-weight: 700; }
.legal tbody tr:nth-child(even) td { background: #FDFBF6; }

/* ---------- footer (5 blocks, on every page) ---------- */
.site-footer {
  background: var(--pine);
  color: var(--pine-ink);
  font-size: 15px;   /* spec: ≥ 14px */
  margin-top: 40px;
}
.site-footer .wrap { padding-block: 8px 26px; }
.f-block {
  padding: 20px 0;
  border-bottom: 1px solid rgba(239, 235, 221, 0.16);
}
.f-block p { margin: 0 0 6px; }
.f-block p:last-child { margin-bottom: 0; }

/* Block 1 — age/geo restrictions: always visible, never collapsed */
.f-restrictions p {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}
.f-restrictions { border-top: 3px solid var(--accent); }

.site-footer a { color: var(--pine-link); }
.site-footer a:hover { color: #FFFFFF; }

.f-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--pine-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.linklike:hover { color: #FFFFFF; }

.f-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  color: var(--pine-muted);
  border-bottom: none;
}
.f-socials { display: flex; gap: 18px; }

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--cc-h));
  z-index: 40;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(32, 52, 42, 0.28);
}
.back-to-top:hover { background: var(--accent-deep); }
.back-to-top[hidden] { display: none; }

/* ---------- cookie banner ---------- */
.cc-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  background: var(--card);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -12px 24px -8px rgba(32, 52, 42, 0.12); /* negative spread: no double-rule at the top edge */
}
.cc-banner .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-block: 16px;
  padding-right: 56px; /* room for the X */
}
.cc-banner p { margin: 0; flex: 1 1 320px; font-size: 15.5px; }

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 15.5px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  cursor: pointer;
}
/* Accept all and Reject non-essential: identical size and contrast (spec) */
.btn-solid { background: var(--accent); color: #FFFFFF; }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--accent-deep); }
.btn-ghost:hover { background: var(--paper-deep); }

.cc-x {
  position: absolute;
  top: 10px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 8px;
}
.cc-x:hover { color: var(--ink); }

/* ---------- preferences modal (native <dialog>) ---------- */
dialog.cc-modal {
  background: #FFFFFF;
  color: var(--ink);
  border: none;
  width: calc(100% - 40px);
  max-width: 540px;
  max-height: 85vh;
  overflow: auto;
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: 0 18px 48px rgba(32, 52, 42, 0.3);
}
dialog.cc-modal::backdrop { background: rgba(32, 52, 42, 0.45); }
.cc-modal h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 6px;
}
.cc-modal > p { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; }
.cc-cat {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.cc-cat-label { font-weight: 700; display: block; margin-bottom: 3px; }
.cc-cat-desc  { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* switch */
.switch {
  appearance: none;
  -webkit-appearance: none;
  width: 48px;
  height: 27px;
  flex: none;
  margin-top: 2px;
  border: none;
  border-radius: 999px;
  background: #8A8471; /* off state, ≥3:1 vs white */
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3.5px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.15s;
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- home (landing) ---------- */
.wrap-mid { max-width: 860px; margin-inline: auto; padding-inline: 24px; }

.site-nav { display: flex; flex-wrap: wrap; column-gap: 22px; }
.site-nav a {
  display: inline-block;
  padding: 10px 0; /* >= 44px tap target with line-height */
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 700;
}
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-nav a[hidden] { display: none; } /* explicit display must not defeat [hidden] */

/* below ~1000px the nav drops under the brand as a full-width row —
   the wordmark never wraps and links keep their tap size */
@media (max-width: 1000px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-block: 12px 4px;
  }
  .site-nav { width: 100%; column-gap: 18px; }
}

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(46, 107, 79, 0.14), transparent 70%),
    radial-gradient(700px 380px at 0% 110%, rgba(201, 162, 39, 0.12), transparent 70%),
    var(--paper-deep);
  border-bottom: 1px solid var(--rule);
  padding-block: 64px 56px;
}
.hero-kicker {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  max-width: 17ch;
}
.hero-lead { font-size: 19px; max-width: 58ch; margin: 0 0 26px; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.btn-lg { font-size: 17px; padding: 14px 26px; text-decoration: none; display: inline-block; }
a.btn { text-decoration: none; }
.hero-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges li {
  border: 1.5px solid var(--accent);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 999px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.6);
}

.home-sec { padding-block: 56px; }
.home-sec-alt { background: var(--paper-deep); border-block: 1px solid var(--rule); }
.home-sec h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 20px;
}
.home-sec p { max-width: 62ch; }

.prize-box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin: 0 0 20px;
  box-shadow: 0 8px 26px rgba(32, 52, 42, 0.06);
}
.prize-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1;
  color: var(--accent-deep);
  margin: 0 0 4px;
}
.prize-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.prize-widget { margin: 0; }

.pkg-grid {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.pkg-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(32, 52, 42, 0.05);
}
.pkg-numbers {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.05;
  margin: 0;
}
.pkg-numbers span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.pkg-price { font-size: 1.5rem; font-weight: 700; color: var(--accent-deep); margin: 0 0 10px; }
.pkg-price span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }
.pkg-card .btn { margin-top: auto; }

.notice {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 0 18px;
  box-shadow: 0 4px 14px rgba(32, 52, 42, 0.05);
}
.notice p { margin: 0 0 6px; font-weight: 700; }
.notice p:last-child { margin-bottom: 0; font-weight: 400; color: var(--ink-soft); }
.fine { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 8px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 22px; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin: 0 0 12px;
}
.step h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 8px; }
.step p { margin: 0; font-size: 15.5px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 14px 0;
  cursor: pointer;
}
.faq-item p { margin: 0 0 14px; }

/* section with a photo beside the text */
.sec-cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: center;
}
.sec-photo { margin: 0; }
.sec-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: 0 14px 36px rgba(32, 52, 42, 0.14);
}
@media (max-width: 820px) {
  .sec-cols { grid-template-columns: 1fr; }
  .sec-photo { order: -1; }
}

.strip { background: var(--pine); color: var(--pine-ink); padding-block: 48px; }
.strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: #FFFFFF;
  margin: 0 0 12px;
}
.strip p { max-width: 62ch; margin: 0 0 10px; }
.strip a { color: var(--pine-link); }
.strip a:hover { color: #FFFFFF; }
.strip-connex { font-size: 17px; }
.strip-link { font-weight: 700; }

/* lead photo on content pages */
.page-photo { margin: 4px 0 26px; }
.page-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: 0 14px 36px rgba(32, 52, 42, 0.14);
}

/* AGCO logo in the licence footer block (light-on-pine SVG) */
.agco-logo {
  display: inline-block;
  margin-top: 12px;
  border-radius: var(--radius-xs);
}
.agco-logo img { display: block; max-width: 100%; height: auto; }
.agco-logo:hover { opacity: 0.85; }

/* ConnexOntario wordmark (white version — for dark surfaces only) */
.connex-logo {
  display: inline-block;
  margin: 6px 0 10px;
  border-radius: var(--radius-xs);
}
.connex-logo img { display: block; max-width: 100%; height: auto; }
.connex-logo:hover { opacity: 0.85; }

/* ---------- auth & account ---------- */
.auth-lead { color: var(--ink-soft); margin-top: -6px; }
.auth-form { max-width: 440px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.field input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid #8A8471; /* >= 3:1 vs white (WCAG 1.4.11) */
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.check input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--accent);
}
.form-error {
  background: #FDECEA;
  color: #8A1F11;
  border: 1px solid #E5B4AC;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 700;
}
/* failed submit also cues the inputs themselves, not just the banner */
.auth-form.has-error input[aria-invalid="true"] { border-color: #8A1F11; }
.auth-form .btn { margin-top: 6px; }
.auth-alt { margin-top: 16px; }

.profile { margin: 0 0 8px; }
.profile div { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.profile dt { flex: 0 0 140px; font-weight: 700; }
.profile dd { margin: 0; }

.order-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.order-head { margin: 0 0 10px; }
.num-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.num-grid li {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 14px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
}
.num-details summary { cursor: pointer; font-weight: 700; color: var(--accent-deep); margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .cc-banner .wrap { padding-right: 48px; }
  .cc-banner .cc-buttons { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
  .f-bottom { flex-direction: column; }
}

/* ---------- print ---------- */
@media print {
  body { background: #FFFFFF; color: #000000; padding-bottom: 0; }
  .site-header,
  .cc-banner,
  .cc-overlay,
  .back-to-top,
  .skip-link,
  .f-nav,
  .f-bottom { display: none !important; }
  .site-footer { background: none; color: #000000; }
  .site-footer a { color: #000000; }
  a { color: #000000; }
  .toc { border: none; padding: 0; }
  /* <details> are force-opened by JS on beforeprint */
}
