/* ============================================================
   Coverage guide components (long-form coverage pages)
   Shared by /coverages/*. Built on the tokens in styles.css.
   ============================================================ */
.cg { max-width: 1100px; margin: 0 auto; padding: 0 40px 40px; }
.cg-read { max-width: 820px; }
.cg-section { padding: 56px 0 0; scroll-margin-top: 110px; }
.cg-kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.cg h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 16px; }
.cg h2 em { color: var(--accent); font-style: normal; }
.cg p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.8; font-weight: 300; margin: 0 0 18px; }
.cg p strong, .cg li strong { color: var(--ink); font-weight: 600; }
.cg a.cg-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Byline + on-this-page */
.cg-byline { display: flex; align-items: center; gap: 14px; padding: 18px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.cg-byline-mark { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--accent-border); display: grid; place-items: center; flex: none; background: var(--accent-light); }
.cg-byline-mark img { width: 22px; height: 22px; }
.cg-byline-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cg-byline-text strong { color: var(--ink); font-weight: 600; }
.cg-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0; }
.cg-toc a { font-size: 13px; color: var(--ink-soft); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; transition: border-color .2s, color .2s, background .2s; }
.cg-toc a:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-glow); }

/* TL;DR */
.cg-tldr { position: relative; overflow: hidden; margin-top: 40px; border: 1px solid var(--accent-border); border-radius: var(--radius-lg); padding: 32px 34px; background: linear-gradient(135deg, rgba(203,163,95,0.10), rgba(37,11,12,0.85) 55%); }
.cg-tldr::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(203,163,95,0.18); box-shadow: 0 0 0 26px rgba(203,163,95,0.04), 0 0 0 52px rgba(203,163,95,0.03); pointer-events: none; }
.cg-tldr dl { display: grid; grid-template-columns: 180px 1fr; gap: 14px 26px; margin: 0; position: relative; z-index: 1; }
.cg-tldr dt { color: var(--accent); font-weight: 600; font-size: 15px; }
.cg-tldr dd { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }

/* Covered / not covered */
.cg-cov { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.cg-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 32px 26px; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s; }
.cg-panel:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.8), 0 0 40px rgba(203,163,95,0.06); }
.cg-panel h3 { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--ink); margin: 0 0 20px; }
.cg-panel h3 svg { flex: none; }
.cg-panel .cg-intro { font-weight: 600; color: var(--ink); font-size: 15.5px; margin: 0 0 14px; }
.cg-panel ul { list-style: none; margin: 0; padding: 0; }
.cg-panel li { position: relative; padding-left: 28px; margin: 0 0 13px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.cg-panel li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.cg-panel.is-out li::before { background: transparent; border: 1.5px solid var(--accent); }

/* Tables */
.cg-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); margin: 8px 0 18px; }
.cg-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.cg-table th, .cg-table td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--ink-soft); line-height: 1.55; }
.cg-table thead th { background: var(--accent-light); color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.cg-table tbody th { color: var(--ink); font-weight: 600; width: 30%; }
.cg-table tbody tr:last-child th, .cg-table tbody tr:last-child td { border-bottom: 0; }
.cg-table tbody tr { transition: background .2s; }
.cg-table tbody tr:hover { background: rgba(203,163,95,0.05); }
.cg-yes { color: var(--accent) !important; font-weight: 600; }
.cg-no { color: var(--dim) !important; }

/* Key terms */
.cg-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.cg-term { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; background: rgba(37,11,12,0.55); }
.cg-term h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.cg-term p { font-size: 15px; line-height: 1.65; margin: 0 0 10px; }
.cg-term p:last-child { margin: 0; }
.cg-term .cg-why { font-size: 14px; color: var(--muted); }
.cg-term .cg-why b { color: var(--accent); font-weight: 600; }

/* Claim scenarios */
.cg-scen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.cg-card { background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 24px; transition: transform .3s, border-color .3s; }
.cg-card:hover { transform: translateY(-3px); border-color: var(--accent-border); border-top-color: var(--accent); }
.cg-card .cg-num { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cg-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--ink); margin: 6px 0 14px; line-height: 1.3; }
.cg-card p { font-size: 14.5px; line-height: 1.6; margin: 0 0 12px; }
.cg-card .cg-k { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.cg-note { font-size: 13px !important; color: var(--dim) !important; font-style: italic; margin-top: 12px !important; }

/* Lists inside long-form */
.cg-list { margin: 0 0 18px; padding: 0; list-style: none; }
.cg-list li { position: relative; padding-left: 24px; margin-bottom: 11px; font-size: 16px; color: var(--ink-soft); line-height: 1.7; font-weight: 300; }
.cg-list li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 12px; height: 1px; background: var(--accent); }

/* Self-audit checklist */
.cg-check { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 32px; background: var(--bg-card); margin-top: 8px; }
.cg-check ol { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.cg-check li { counter-increment: q; display: flex; gap: 18px; padding: 17px 0; border-bottom: 1px dashed rgba(231,214,209,0.14); font-size: 16px; color: var(--ink-soft); line-height: 1.6; }
.cg-check li:last-child { border-bottom: 0; }
.cg-check li::before { content: counter(q, decimal-leading-zero); color: var(--accent); font-weight: 600; min-width: 26px; font-size: 14px; padding-top: 2px; }

/* Author + CTA */
.cg-author { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; margin-top: 64px; border: 1px solid var(--accent-border); border-radius: var(--radius-lg); padding: 38px; background: radial-gradient(120% 140% at 100% 0%, rgba(203,163,95,0.12), transparent 55%), var(--bg-raised); }
.cg-author h2 { margin-bottom: 12px; }
.cg-author .cg-by { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.cg-author .cg-by strong { color: var(--ink); }
.cg-actions { display: flex; flex-direction: column; gap: 12px; }
.cg-actions .cg-out { font-size: 14px; color: var(--muted); text-align: center; }
.cg-actions ul { list-style: none; padding: 0; margin: 0 0 6px; }
.cg-actions li { font-size: 14.5px; color: var(--ink-soft); padding: 7px 0 7px 22px; position: relative; }
.cg-actions li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

@media (max-width: 900px) {
  .cg { padding: 0 20px 32px; }
  .cg-cov, .cg-terms, .cg-scen, .cg-author { grid-template-columns: 1fr; }
  .cg-tldr { padding: 26px 22px; }
  .cg-tldr dl { grid-template-columns: 1fr; gap: 4px; }
  .cg-tldr dd { margin-bottom: 12px; }
  .cg-panel { padding: 26px 22px 20px; }
  .cg-panel h3 { font-size: 22px; }
  .cg-check { padding: 6px 20px; }
  .cg-author { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-panel, .cg-card, .cg-table tbody tr { transition: none; }
  .cg-panel:hover, .cg-card:hover { transform: none; }
}

/* ---- creative elements: Art Deco dividers, callouts, steppers, arch diagram, scenario picker ---- */
.cg-divider { max-width: 820px; height: 30px; margin: 52px 0 0; background: left center / auto 30px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='30' viewBox='0 0 340 30' fill='none' stroke='%23cba35f' stroke-linecap='round'%3E%3Cpath d='M0 15h128' stroke-opacity='.35'/%3E%3Cpath d='M212 15h128' stroke-opacity='.35'/%3E%3Cpath d='M146 24a24 24 0 0 1 48 0' stroke-opacity='.9'/%3E%3Cpath d='M154 24a16 16 0 0 1 32 0' stroke-opacity='.6'/%3E%3Cpath d='M162 24a8 8 0 0 1 16 0' stroke-opacity='.4'/%3E%3Ccircle cx='170' cy='24' r='1.6' fill='%23cba35f' stroke='none'/%3E%3C/svg%3E"); }
.cg-callout { position: relative; margin: 30px 0 0; max-width: 820px; padding: 22px 26px 22px 30px; border: 1px solid var(--accent-border); border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-light), rgba(203,163,95,0.03)); }
.cg-callout::before, .cg-callout::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid var(--accent); }
.cg-callout::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.cg-callout::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.cg-callout .lbl { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.cg-callout p { margin: 0; font-family: var(--display); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--ink); }

.cg-flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 30px 0 6px; max-width: 980px; }
.cg-flow-step { position: relative; padding: 46px 10px 4px; text-align: center; }
.cg-flow-step::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--accent-border); }
.cg-flow-step:first-child::before { display: none; }
.cg-flow-node { position: absolute; top: 2px; left: 50%; z-index: 1; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); box-shadow: 0 0 0 5px var(--accent-light); }
.cg-flow-node::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: transparent; transition: background .3s; }
.cg-flow-step.on .cg-flow-node::after { background: var(--accent); }
.cg-flow-step h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); }
.cg-flow-step p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cg-flow-step .tag { display: inline-block; margin-top: 10px; padding: 3px 10px; border: 1px solid var(--accent-border); border-radius: 999px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cg-flow-step.on .tag { background: var(--accent-light); }

.cg-rings { display: grid; grid-template-columns: minmax(260px, 1.05fr) 1fr; gap: 30px; align-items: center; margin: 26px 0 8px; }
.cg-rings svg { display: block; width: 100%; height: auto; max-width: 540px; }
.cg-ring { stroke: var(--bg); stroke-width: 2; transition: opacity .25s, filter .25s; cursor: pointer; }
.cg-rings.has-active .cg-ring:not(.on) { opacity: .3; }
.cg-ring.on { filter: brightness(1.12); }
.cg-legend { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cg-legend li { display: grid; grid-template-columns: 16px 1fr; gap: 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(37,11,12,0.55); cursor: pointer; transition: border-color .2s, background .2s; outline-offset: 2px; }
.cg-legend li:hover, .cg-legend li.on { border-color: var(--accent); background: var(--accent-light); }
.cg-legend .dot { width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255,255,255,0.12); }
.cg-legend b { display: block; font-size: 15px; color: var(--ink); }
.cg-legend span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cg-figcap { margin: 6px 0 0; font-size: 13px; color: var(--dim); font-style: italic; }

.cg-picker { margin: 22px 0 8px; padding: 22px; border: 1px solid var(--accent-border); border-radius: var(--radius); background: rgba(37,11,12,0.55); }
.cg-picker .lbl { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.cg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-chipbtn { min-height: 40px; padding: 9px 15px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 14px; line-height: 1.35; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.cg-chipbtn:hover { border-color: var(--accent-border); }
.cg-chipbtn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-light); color: var(--ink); }
.cg-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 18px; }
.cg-pill { padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cg-pill b { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cg-pill span { display: block; margin-top: 5px; font-size: 15px; line-height: 1.4; color: var(--dim); }
.cg-pill.yes { border-color: var(--accent); background: var(--accent-light); }
.cg-pill.yes span { color: var(--accent); font-weight: 600; }

.cg-terms.numbered { counter-reset: n; }
.cg-terms.numbered .cg-term { counter-increment: n; position: relative; padding-top: 58px; }
.cg-terms.numbered .cg-term::before { content: counter(n, decimal-leading-zero); position: absolute; top: 16px; left: 24px; font-family: var(--display); font-size: 30px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }

html.cg-js [data-rv] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.cg-js [data-rv].in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .cg-rings { grid-template-columns: 1fr; }
  .cg-flow { grid-auto-flow: row; }
  .cg-flow-step { padding: 0 0 26px 56px; text-align: left; }
  .cg-flow-step::before { display: none; }
  .cg-flow-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 2px; width: 2px; background: var(--accent-border); }
  .cg-flow-node { top: 0; left: 0; margin-left: 0; }
  .cg-picker { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html.cg-js [data-rv] { opacity: 1; transform: none; transition: none; } .cg-ring, .cg-legend li, .cg-chipbtn { transition: none; } }

/* ---- Desktop: contents become a sticky side panel; phones: one swipeable row (Oct 30 2026) ---- */
@media (min-width: 1240px) {
  .cg { display: grid; grid-template-columns: minmax(0, 1fr) 210px; column-gap: 48px; }
  .cg > * { grid-column: 1; }
  .cg > .cg-toc { grid-column: 2; grid-row: 1 / span 400; align-self: start; position: sticky; top: 110px;
    flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 4px 0 0 18px; border-left: 1px solid var(--border);
    max-height: calc(100vh - 140px); overflow-y: auto; }
  .cg > .cg-toc::before { content: "On this page"; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
  .cg > .cg-toc a { border: 0; border-radius: 0; padding: 6px 0; font-size: 14px; color: var(--muted); background: none; }
  .cg > .cg-toc a:hover, .cg > .cg-toc a.on { color: var(--accent); background: none; }
}
@media (max-width: 760px) {
  .cg-toc { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: -20px; padding-right: 20px; padding-bottom: 4px; }
  .cg-toc::-webkit-scrollbar { display: none; }
  .cg-toc a { flex: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 40px; }
}
