/* iulia's coral: the salmon of her jacket (photo 2026-10-27, corrected for indoor light).
   A trial layer loaded after styles.css. Button frames and hover effects only; focus outlines stay indigo.
   To revert: ACCENT_CORAL = false in generator/build.mjs, rebuild, deploy. Nothing in styles.css changed. */
:root {
  --coral: #F2A08C;       /* the jacket in daylight: fills, frames on indigo */
  --coral-tint: #FDEDE8;  /* hover backgrounds */
}

/* buttons: indigo with a coral frame; hover turns coral */
.btn.btn-primary:not([disabled]):not([aria-disabled="true"]) { border-color: var(--coral); }
.btn.btn-primary:not([disabled]):not([aria-disabled="true"]):hover { background: var(--coral); border-color: var(--primary-dark); color: var(--primary-dark); }
.btn.btn-primary:not([disabled]):not([aria-disabled="true"]):active { background: var(--coral); color: var(--primary-dark); }
.btn.btn-secondary:not([disabled]):not([aria-disabled="true"]), .btn.btn-voice:not([aria-pressed="true"]) { border-color: var(--coral); }
.btn.btn-secondary:not([disabled]):not([aria-disabled="true"]):hover, .btn.btn-voice:not([aria-pressed="true"]):hover { background: var(--coral-tint); border-color: var(--coral); color: var(--primary-dark); }
.site-footer .btn.btn-secondary:hover { color: var(--primary-dark); }

/* the Match: answer pills and picture tiles get a coral edge on hover; the chosen one stays indigo */
.mq-opt span:hover { border-color: var(--coral); background: var(--coral-tint); }
.mq-opt input:checked + span:hover { background: var(--primary); border-color: var(--coral); }
.mq-opt.mq-img span:hover { outline: 3px solid var(--coral); outline-offset: -3px; background: var(--white); }
.mq-opt.mq-img input:checked + span:hover { outline-color: var(--primary); }
.cg-chip:hover { border-color: var(--coral); background: var(--coral-tint); }
.cg-mode:not([aria-pressed="true"]):hover { background: var(--coral-tint); }
.cg-mode[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--coral); }

/* navigation and smaller controls */
.nav-list a:hover { box-shadow: inset 0 -3px 0 var(--coral); }
.toc-grid a:hover { background: var(--coral-tint); border-color: var(--coral); }
.to-top:hover { background-color: var(--coral); color: var(--primary-dark); }
.intro-btn:hover, .lf-btn:hover { box-shadow: inset 0 0 0 2px var(--coral); }

/* ---------- round 2 (2026-10-27): coral you can see without hovering ----------
   The site's second rule (the slate hairline beside the indigo one) becomes coral everywhere:
   card frames, header/footer rules, photo frames, number boxes, the ribbon, the page-head edge.
   The later button style has no border (border: 0), so button frames are drawn as rings instead. */
:root {
  --double-rule-top: inset 0 2px 0 #112A58, inset 0 5px 0 #FFFFFF, inset 0 7px 0 var(--coral);
  --double-rule-bottom: inset 0 -2px 0 #112A58, inset 0 -5px 0 #FFFFFF, inset 0 -7px 0 var(--coral);
  --double-rule-left: inset 2px 0 0 #112A58, inset 5px 0 0 #FFFFFF, inset 7px 0 0 var(--coral);
  --ds-rule: 0 0 0 2px var(--coral), 0 0 0 5px #fff, 0 0 0 6px #112A58;
  --ds-edge: inset 0 0 0 2px var(--coral), inset 0 0 0 3px #fff;
}

/* buttons: a coral ring outside and a coral hairline inside */
.btn.btn-primary:not([disabled]):not([aria-disabled="true"]) { box-shadow: 0 0 0 2px var(--coral), 0 10px 22px -14px rgba(11,28,62,.9); }
.btn.btn-primary:not([disabled]):not([aria-disabled="true"])::after { border-color: var(--coral); }
.btn.btn-secondary:not([disabled]):not([aria-disabled="true"]), .btn.btn-voice:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 2px var(--coral); }
.btn.btn-secondary:not([disabled]):not([aria-disabled="true"])::after, .btn.btn-voice:not([aria-pressed="true"])::after { border-color: var(--coral); }
.page-head .btn.btn-secondary { box-shadow: inset 0 0 0 2px var(--coral); }
.page-head .btn.btn-secondary::after { border-color: var(--coral); }

/* card title bands: the number box gets a coral inner line, the band a coral underline */
.card-h::before { box-shadow: inset 0 0 0 3px var(--ds-ink), inset 0 0 0 5px var(--coral); }
.cb-no { box-shadow: inset 0 0 0 3px var(--primary-dark), inset 0 0 0 5px var(--coral); }
.card > .card-h, .card > h2.card-h, .card > h3.card-h, .cb-titlebar { box-shadow: inset 0 -3px 0 var(--coral); }
.cta-band h2 { box-shadow: inset 0 -3px 0 var(--coral); }

/* page heads, the ribbon, photo and map frames, sub-panels, tables */
/* 2026-11-20 (principal): the coral line at the foot of the head panel was a straight 4px bar laid across a panel with
   22px corners, so its ends ran past the curve and over the frame on every page. It is now drawn as an inset shadow, which
   is clipped to the panel's own rounded shape and so always stays inside the frame. */
.page-head > .wrap::after { content: none; }
.page-head > .wrap { box-shadow: inset 0 -4px 0 var(--coral), var(--ds-rule), var(--ds-lift); }
.ribbon { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 0 var(--primary), inset 0 -5px 0 #fff, inset 0 -7px 0 var(--coral); }
.map, .gmap, .gallery figure, .animation-box { box-shadow: 0 0 0 2px var(--coral), 0 0 0 5px #fff, 0 0 0 6px var(--primary); }
.cb-sub { border-color: var(--coral); }
.cb-sub > h3:first-child { border-bottom: 2px solid var(--coral); }
.table-wrap { border-color: var(--coral); }
.compare thead th { box-shadow: inset 0 -3px 0 var(--coral); }

/* the Match's chosen answer: indigo fill with a coral edge */
.mq-opt input:checked + span { box-shadow: inset 0 0 0 2px var(--coral); }
.toc-grid a { border-color: var(--coral); }

/* ---------- Site Agent page (principal, 2026-10-28): every button in the page body is coral ---------- */
body[data-page="/site-agent/"] main .btn:not([disabled]):not([aria-disabled="true"]) {
  background: var(--coral); color: var(--primary-dark);
  box-shadow: inset 0 0 0 2px var(--primary-dark), 0 10px 22px -14px rgba(11,28,62,.6);
}
body[data-page="/site-agent/"] main .btn:not([disabled]):not([aria-disabled="true"])::after { border-color: rgba(17,42,88,.45); }
body[data-page="/site-agent/"] main .btn:not([disabled]):not([aria-disabled="true"]) .icon { color: currentColor; }
body[data-page="/site-agent/"] main .btn:not([disabled]):not([aria-disabled="true"]):hover {
  background: var(--primary-dark); color: #fff; box-shadow: inset 0 0 0 2px var(--coral);
}
body[data-page="/site-agent/"] main .btn:not([disabled]):not([aria-disabled="true"]):hover::after { border-color: var(--coral); }
