/* TGCCharts — chart-only styles. Uses only variables from tokens.css (plus chart-local aliases built from them). */
:root{
  --ch-seq-lo: var(--mint-2); --ch-seq-hi: var(--teal-deep);
  --ch-pos: var(--cat-sermon); --ch-neg: var(--cat-care); --ch-mid: var(--paper-2); --ch-mid-strong: var(--line);
  --ch-ease: cubic-bezier(.65,0,.35,1);
  --ch-ord-lo: var(--sage-2); --ch-ord-hi: var(--teal-deep);
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --ch-seq-lo: var(--mint-2); --ch-seq-hi: var(--sage-2); --ch-mid-strong: var(--line-2); --ch-ord-lo: var(--teal); --ch-ord-hi: var(--sage-2); } }
:root[data-theme="dark"]{ --ch-seq-lo: var(--mint-2); --ch-seq-hi: var(--sage-2); --ch-mid-strong: var(--line-2); --ch-ord-lo: var(--teal); --ch-ord-hi: var(--sage-2); }

.tgc-chart{ position:relative; font-family:var(--sans); color:var(--ink); font-size:15.4px; line-height:1.4; }
.tgc-chart *{ box-sizing:border-box; }
.tgc-fig{ position:relative; width:100%; }
.tgc-svg{ display:block; width:100%; height:auto; overflow:visible; }
.tgc-num, .tgc-tick.tgc-num{ font-family:var(--mono); font-variant-numeric:tabular-nums; }
.tgc-controls{ display:flex; flex-direction:column; gap:10px; margin-bottom:14px; }
.tgc-controls[hidden]{ display:none; }
.tgc-foot{ margin:12px 0 0; font-size:13.2px; color:var(--muted); max-width:72ch; }
.tgc-foot:empty{ display:none; }
.tgc-status{ margin:10px 0 0; font-size:14.3px; color:var(--ink-2); }

/* ---------- controls: one pill system for every chart ---------- */
.tgc-chart .tgc-filter, .tgc-chart.tgc-filter{ display:flex; flex-direction:column; gap:10px; }
.tgc-chart .tgc-frow{ display:flex; align-items:flex-start; gap:12px; min-width:0; }
.tgc-chart .tgc-frow[hidden]{ display:none; }
.tgc-chart .tgc-eyebrow{ flex:0 0 88px; padding-top:11px; font:600 12.1px/1 var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.tgc-chart .tgc-scroller{ min-width:0; flex:1 1 auto; }
.tgc-chart .tgc-pillrow{ display:flex; flex-wrap:wrap; gap:8px; }
.tgc-chart .tgc-frow-extra{ flex:none; margin-left:auto; display:flex; gap:8px; }
.tgc-chart .tgc-frow-extra:empty{ display:none; }
.tgc-chart .tgc-frow--levels.is-entering{ animation:tgc-row-in .38s var(--ch-ease) both; }
@keyframes tgc-row-in{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }

.tgc-chart button.tgc-btn{
  appearance:none; -webkit-appearance:none; margin:0; font:500 14.3px/1.1 var(--sans); letter-spacing:0; text-transform:none;
  display:inline-flex; align-items:center; gap:8px; white-space:nowrap; flex:none;
  padding:6px 12px; min-height:32px; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--ink-2);
  cursor:pointer; box-shadow:none; transition:background-color .2s var(--ch-ease), border-color .2s var(--ch-ease), color .2s var(--ch-ease), opacity .2s;
}
.tgc-chart button.tgc-btn:hover{ border-color:var(--line-2); color:var(--ink); }
.tgc-chart button.tgc-btn[aria-pressed="true"], .tgc-chart button.tgc-btn[aria-checked="true"]{ background:var(--ink); border-color:var(--ink); color:var(--paper); }
.tgc-chart button.tgc-btn:focus{ outline:none; }
.tgc-chart button.tgc-btn:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
.tgc-chart .tgc-count{ margin-left:-2px; font:400 12.1px/1 var(--mono); font-variant-numeric:tabular-nums; color:var(--muted); }
.tgc-chart button.tgc-btn[aria-pressed="true"] .tgc-count, .tgc-chart button.tgc-btn[aria-checked="true"] .tgc-count{ color:color-mix(in oklab, var(--paper) 65%, var(--ink)); }
.tgc-chart button.tgc-btn.is-suppressed{ opacity:.45; cursor:not-allowed; border-style:dashed; background:transparent; }
.tgc-chart button.tgc-btn.is-suppressed:hover{ border-color:var(--line); color:var(--ink-2); }
.tgc-chart button.tgc-btn--cat .tgc-swatch{ margin:0; }
.tgc-chart button.tgc-btn--cat[aria-pressed="true"] .tgc-swatch path{ stroke:var(--paper); stroke-width:1.5; paint-order:stroke; }
.tgc-chart button.tgc-btn.is-off{ opacity:.45; }
.tgc-chart .tgc-glyph-dot{ width:9px; height:9px; border-radius:50%; flex:none; box-shadow:0 0 0 1.5px var(--card); }
.tgc-chart .tgc-badge{ font:600 11px/1 var(--mono); width:17px; height:17px; margin-left:-4px; border-radius:50%; display:inline-grid; place-items:center; background:var(--paper); color:var(--ink); }
/* segmented control (mode switches, measure toggles) */
.tgc-chart .tgc-seg{ display:inline-flex; gap:2px; padding:3px; border-radius:999px; background:var(--paper-2); border:1px solid var(--line); white-space:nowrap; flex:none; }
.tgc-chart .tgc-seg button.tgc-btn{ border-color:transparent; background:transparent; min-height:28px; padding:5px 12px; }
.tgc-chart .tgc-seg button.tgc-btn:hover{ border-color:transparent; }
.tgc-chart .tgc-seg button.tgc-btn[aria-checked="true"]{ background:var(--card); color:var(--ink); border-color:var(--line-2); box-shadow:0 1px 2px color-mix(in oklab, var(--ink) 10%, transparent); }
/* checkbox-style toggle */
.tgc-chart button.tgc-btn--toggle .tgc-toggle-box{ width:12px; height:12px; border-radius:3px; border:1.5px solid var(--line-2); display:inline-block; position:relative; }
.tgc-chart button.tgc-btn--toggle[aria-pressed="true"]{ background:var(--card); color:var(--ink); border-color:var(--ink); }
.tgc-chart button.tgc-btn--toggle[aria-pressed="true"] .tgc-toggle-box{ background:var(--ink); border-color:var(--ink); }
.tgc-chart button.tgc-btn--toggle[aria-pressed="true"] .tgc-toggle-box::after{ content:""; position:absolute; left:3px; top:0px; width:3px; height:6px; border:solid var(--paper); border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.tgc-chart .tgc-hint{ margin:0 0 0 100px; font-size:13.2px; color:var(--muted); }
.tgc-chart .tgc-hint:empty{ display:none; }
.tgc-chart .tgc-toggles{ display:flex; flex-wrap:wrap; gap:8px; }
.tgc-chart .tgc-legend{ margin-bottom:14px; }
.tgc-map-legend[hidden]{ display:none; }
.tgc-swatch{ display:block; flex:none; overflow:visible; }

/* ---------- svg primitives ---------- */
.tgc-grid{ stroke:var(--line); stroke-width:1; shape-rendering:crispEdges; }
.tgc-baseline{ stroke:var(--line-2); stroke-width:1; shape-rendering:crispEdges; }
.tgc-split{ stroke:var(--line-2); stroke-width:1; shape-rendering:crispEdges; }
.tgc-rail-sep{ stroke:var(--line); stroke-width:1; }
.tgc-tick{ font:400 12.1px var(--sans); fill:var(--muted); }
.tgc-axis-title{ font:500 13.2px var(--sans); fill:var(--ink-2); }
.tgc-quad{ fill:none; }
.tgc-quad--tr{ fill:var(--mint-2); opacity:.75; }
.tgc-quad--bl{ fill:color-mix(in oklab, var(--cat-care) 7%, transparent); }
.tgc-quad-label{ font:600 11.55px var(--sans); letter-spacing:.09em; fill:var(--muted); }
.tgc-overlay, .tgc-hit{ fill:transparent; }
.tgc-row-label{ font:400 14.85px var(--sans); fill:var(--ink); }
.tgc-val{ font-size:12.65px; fill:var(--muted); }

/* ---------- map ---------- */
.tgc-map .tgc-fig{ touch-action:pan-y; }
.tgc-mark{ stroke:var(--paper); stroke-width:2; paint-order:stroke; cursor:pointer; outline:none; }
.tgc-mark--sm{ stroke-width:1.25; }
.tgc-ghost{ fill:var(--paper); stroke:var(--faint); stroke-width:1.25; }
.tgc-trail{ stroke:var(--faint); stroke-width:1; }
.tgc-wh line{ stroke-width:1.25; stroke-linecap:round; }
.tgc-beadline{ fill:none; stroke-width:1.5; stroke-opacity:.45; stroke-linecap:round; stroke-linejoin:round; }
.tgc-bead{ stroke:var(--paper); stroke-width:1.5; }
.tgc-arrow-line{ stroke-width:1.6; stroke-linecap:round; }
.tgc-arrow-start{ fill:var(--paper); stroke-width:1.5; }
.tgc-focus-ring{ fill:none; stroke:var(--ink); stroke-width:1.25; pointer-events:none; transition:opacity .15s; }
.tgc-label-text{ font-family:var(--sans); font-weight:500; fill:var(--ink); paint-order:stroke; stroke:var(--paper); stroke-width:3.5px; stroke-linejoin:round; pointer-events:none; }
.tgc-leader{ stroke:var(--faint); stroke-width:1; }
.tgc-annots{ position:absolute; inset:0; pointer-events:none; }
.tgc-annot{ position:absolute; left:0; top:0; font:italic 400 15.95px/1.35 var(--serif); color:var(--ink); background:color-mix(in oklab, var(--paper) 88%, transparent); padding:2px 0; }
.tgc-annot-leader{ stroke:var(--ink-2); stroke-width:1; }
.tgc-emph-ring{ fill:none; stroke:var(--ink); stroke-width:1.25; pointer-events:none; }
.tgc-map--intro .tgc-controls, .tgc-map--intro .tgc-status, .tgc-map--intro .tgc-foot{ display:none; }

/* ---------- tooltip ---------- */
.tgc-tip{ position:absolute; left:0; top:0; z-index:5; pointer-events:none; min-width:180px; max-width:300px; padding:11px 13px; border-radius:10px; background:var(--card); color:var(--ink);
  border:1px solid var(--line); box-shadow:0 10px 30px -12px color-mix(in oklab, var(--ink) 35%, transparent); font-size:13.75px; opacity:0; transition:opacity .15s ease; }
.tgc-tip.is-on{ opacity:1; }
.tgc-tip-head{ display:flex; gap:8px; align-items:flex-start; margin-bottom:8px; }
.tgc-tip-head .tgc-swatch{ margin-top:3px; }
.tgc-tip-title{ font-weight:600; font-size:14.3px; line-height:1.25; }
.tgc-tip-sub{ color:var(--muted); font-size:12.65px; margin-top:2px; }
.tgc-tip-row{ display:grid; grid-template-columns:46px 1fr; column-gap:8px; align-items:baseline; padding:2px 0; }
.tgc-tip-row strong{ font:500 14.3px var(--mono); font-variant-numeric:tabular-nums; text-align:right; }
.tgc-tip-row span{ color:var(--ink-2); display:inline-flex; gap:4px; align-items:center; }
.tgc-tip-row em{ grid-column:2; font-style:normal; color:var(--muted); font-size:12.1px; }
.tgc-tip-row.is-hot span{ color:var(--ink); font-weight:600; }
.tgc-tip-delta{ margin-top:6px; padding-top:6px; border-top:1px solid var(--line); color:var(--ink-2); font-size:12.65px; }
.tgc-tip-table{ border-collapse:collapse; width:100%; font-size:13.2px; }
.tgc-tip-table th, .tgc-tip-table td{ padding:2px 4px; text-align:right; font-weight:400; }
.tgc-tip-table td{ font-family:var(--mono); font-variant-numeric:tabular-nums; }
.tgc-tip-table thead th{ color:var(--muted); font-size:11.55px; border-bottom:1px solid var(--line); }
.tgc-tip-table tbody th{ text-align:left; color:var(--ink-2); white-space:nowrap; }
.tgc-tip-table tbody th .tgc-dot{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; vertical-align:0; }
.tgc-tip-table tr.is-hot th, .tgc-tip-table tr.is-hot td{ color:var(--ink); font-weight:600; }
.tgc-tip-table tr.is-ref th, .tgc-tip-table tr.is-ref td{ color:var(--muted); border-top:1px solid var(--line); }

/* ---------- table view ---------- */
.tgc-table{ margin-top:14px; font-size:13.75px; display:flex; flex-direction:column; align-items:flex-end; }
.tgc-table > .tgc-table-scroll{ align-self:stretch; }
.tgc-no-note > .tgc-foot{ display:none; }
.tgc-table summary{ cursor:pointer; color:var(--muted); font-size:13.2px; width:max-content; list-style:none; padding:4px 0; }
.tgc-table summary::-webkit-details-marker{ display:none; }
.tgc-table summary:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
.tgc-table summary::before{ content:'+'; display:inline-block; width:14px; font-family:var(--mono); }
.tgc-table[open] summary::before{ content:'–'; }
.tgc-table-scroll{ overflow-x:auto; max-height:420px; margin-top:6px; border-top:1px solid var(--line); }
.tgc-table table{ border-collapse:collapse; width:100%; }
.tgc-table caption{ text-align:left; color:var(--muted); padding:6px 0; font-size:13.2px; }
.tgc-table th, .tgc-table td{ padding:5px 10px 5px 0; border-bottom:1px solid var(--line); text-align:left; font-weight:400; white-space:nowrap; }
.tgc-table thead th{ color:var(--muted); font-weight:500; position:sticky; top:0; background:var(--paper); }
.tgc-table td{ font-family:var(--mono); font-variant-numeric:tabular-nums; }

/* ---------- small multiples ---------- */
.tgc-sm-key{ font-size:13.2px; color:var(--muted); margin:0 0 12px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.tgc-sm-key-ghost{ display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--faint); }
.tgc-sm-grid{ display:grid; position:relative; }
.tgc-sm-cell{ opacity:0; transform:translateY(10px); transition:opacity .6s var(--ch-ease) var(--d,0ms), transform .6s var(--ch-ease) var(--d,0ms); }
.tgc-sm-cell.is-in{ opacity:1; transform:none; }
.tgc-sm-cell.is-in.is-muted{ opacity:.42; }
.tgc-sm-cell.is-selected .tgc-sm-name{ text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px; }
.tgc-sm-head{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; padding-bottom:6px; margin-bottom:4px; border-bottom:1px solid var(--line); }
.tgc-sm-name{ font:600 14.3px var(--sans); }
.tgc-sm-n{ font:400 12.1px var(--mono); color:var(--muted); }
.tgc-sm-ghost{ fill:var(--faint); }
.tgc-sm-empty{ display:grid; place-items:center; color:var(--faint); font-size:13.2px; border:1px dashed var(--line); border-radius:6px; }

/* ---------- stacked / dumbbell / rank keys ---------- */
.tgc-key{ display:flex; flex-wrap:wrap; gap:6px 16px; font-size:13.2px; color:var(--ink-2); margin-bottom:12px; }
.tgc-key-item{ display:inline-flex; align-items:center; gap:6px; }
.tgc-key-sw{ width:14px; height:10px; border-radius:2px; }
.tgc-key-dot{ width:10px; height:10px; border-radius:50%; background:var(--cat-sermon); }
.tgc-key-ring{ width:10px; height:10px; border-radius:50%; border:2px solid var(--cat-admin); background:var(--paper); }
.tgc-stk-row, .tgc-db-row, .tgc-rank-row{ transition:opacity .3s; }
.tgc-stk-row.is-dim{ opacity:.3; }
.tgc-seg-rect{ cursor:default; }
.tgc-seg-rect:hover{ filter:brightness(1.06); }
.tgc-ref-tick{ stroke:var(--ink); stroke-width:1.5; stroke-linecap:round; }
.tgc-db-line{ stroke:var(--line-2); stroke-width:2; stroke-linecap:round; }
.tgc-db-c{ fill:var(--cat-sermon); stroke:var(--paper); stroke-width:2; }
.tgc-db-f{ fill:var(--paper); stroke:var(--cat-admin); stroke-width:2; }
.tgc-db-ghost{ fill:none; stroke:var(--faint); stroke-width:1; }
.tgc-db-gap{ font-size:13.2px; fill:var(--ink-2); }
.tgc-db-row:hover .tgc-row-label, .tgc-rank-row:hover .tgc-rank-label{ font-weight:600; }

/* ---------- heatmap ---------- */
.tgc-toggles{ display:flex; flex-wrap:wrap; gap:8px; }
.tgc-col-label{ font:600 12.1px var(--sans); fill:var(--ink-2); }
.tgc-heat-head.is-selected .tgc-col-label{ fill:var(--ink); text-decoration:underline; }
.tgc-cell rect{ transition:stroke .2s; }
.tgc-cell:hover rect{ stroke:var(--ink); stroke-width:1.25; }
.tgc-cell.is-selected rect{ stroke:var(--ink); stroke-width:1.25; }
.tgc-cell.is-muted{ opacity:.55; }
.tgc-cell-val{ font-size:13.75px; pointer-events:none; }
.tgc-scale-key{ font-size:13.2px; color:var(--muted); margin-top:10px; display:flex; align-items:center; gap:6px; font-variant-numeric:tabular-nums; }
.tgc-grad{ display:inline-block; width:96px; height:8px; border-radius:4px; vertical-align:middle; }
.tgc-grad--seq{ background:linear-gradient(90deg, var(--ch-seq-lo), var(--ch-seq-hi)); }
.tgc-grad--div{ background:linear-gradient(90deg, var(--ch-neg), var(--ch-mid) 50%, var(--ch-pos)); }

/* ---------- personas ---------- */
.tgc-p-name{ font:400 24.2px var(--serif); fill:var(--ink); }
.tgc-p-pct{ font:300 50.6px var(--serif); fill:var(--ink); }
.tgc-p-n{ font-size:12.65px; fill:var(--muted); }
.tgc-p-cat{ font:400 13.75px var(--sans); fill:var(--ink-2); }
.tgc-p-track{ fill:var(--line); opacity:.4; }
.tgc-p-val{ font-size:13.2px; fill:var(--ink-2); }
.tgc-p-desc{ font:400 15.4px var(--sans); fill:var(--ink-2); }
.tgc-unit{ transition:none; }

/* ---------- counter / donut / big numbers ---------- */
.tgc-counter{ font-variant-numeric:proportional-nums; }
.tgc-donut-wrap{ display:flex; align-items:center; gap:clamp(20px,4vw,48px); flex-wrap:wrap; }
.tgc-donut-svg{ width:clamp(150px,30vw,240px); flex:none; }
.tgc-donut-track{ fill:var(--mint); }
.tgc-donut-fill{ fill:var(--sage); }
.tgc-donut-ref{ stroke:var(--ink); stroke-width:2; stroke-linecap:round; }
.tgc-donut-text{ display:flex; align-items:flex-start; gap:16px; flex-wrap:wrap; min-width:0; flex:1; }
.tgc-bignum{ font:300 clamp(64px,10vw,112px)/.9 var(--serif); letter-spacing:-.02em; color:var(--ink); font-variant-numeric:proportional-nums; }
.tgc-donut-cap{ font-size:clamp(16.5px,1.76vw,19.8px); color:var(--ink); max-width:24ch; margin-top:.5em; }
.tgc-donut-sub{ font-size:13.2px; color:var(--muted); margin-top:8px; }

/* ---------- ranked bars ---------- */
.tgc-rank-label{ font:400 15.4px var(--sans); fill:var(--ink); }
.tgc-rank-val{ font:500 14.3px var(--sans); fill:var(--ink); }
.tgc-rank-bar{ shape-rendering:crispEdges; }

/* ---------- columns ---------- */
.tgc-col rect{ fill:var(--mint); }
.tgc-col.is-muted rect{ fill:var(--mint-2); }
.tgc-col-val{ font-family:var(--serif); font-weight:300; fill:var(--ink); }
.tgc-col-name{ font:500 13.2px var(--sans); fill:var(--ink); }
.tgc-col-n{ font-size:11.55px; fill:var(--muted); }
.tgc-col-ref line{ stroke:var(--ink-2); stroke-width:1; }
.tgc-col-ref text{ font:400 12.1px var(--sans); fill:var(--ink-2); }

/* ---------- trend ---------- */
.tgc-trend-hot{ fill:none; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; }
.tgc-trend-bg{ fill:none; stroke:var(--line-2); stroke-width:1.5; stroke-linecap:round; }
.tgc-drop{ stroke:var(--faint); stroke-width:1; stroke-dasharray:3 4; }
.tgc-trend-val text{ font:300 19.8px var(--serif); fill:var(--ink); }
.tgc-trend-val.is-selected text{ font-weight:600; }

/* ---------- themes ---------- */
.tgc-theme-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:22px; }
.tgc-theme{ will-change:transform; }
.tgc-theme-top{ display:flex; justify-content:space-between; gap:12px; align-items:baseline; margin-bottom:8px; }
.tgc-theme-name{ font-size:15.4px; color:var(--ink); }
.tgc-theme-val{ font-size:14.3px; color:var(--ink-2); }
.tgc-theme-track{ position:relative; height:12px; border-radius:6px; background:var(--paper-2); }
.tgc-theme-bar{ height:100%; border-radius:6px; background:var(--sage); transition:width var(--t,800ms) var(--ch-ease) var(--d,0ms); }
.tgc-theme-ref{ position:absolute; top:-3px; bottom:-3px; width:2px; margin-left:-1px; border-radius:1px; background:var(--ink); transition:left .8s var(--ch-ease), opacity .3s; }

@media (max-width:640px){
  .tgc-chart .tgc-frow{ flex-direction:column; align-items:stretch; gap:6px; }
  .tgc-chart .tgc-eyebrow{ flex:none; padding-top:0; }
  .tgc-chart .tgc-scroller{ overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch; margin-right:-16px; padding-right:16px;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent); mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent); }
  .tgc-chart .tgc-scroller::-webkit-scrollbar{ display:none; }
  .tgc-chart .tgc-pillrow{ flex-wrap:nowrap; padding:2px 0; }
  .tgc-chart .tgc-frow-extra{ margin-left:0; }
  .tgc-chart .tgc-hint{ margin-left:0; }
  .tgc-tip{ max-width:260px; }
}
@media (prefers-reduced-motion: reduce){
  .tgc-sm-cell, .tgc-theme-bar, .tgc-theme-ref, .tgc-btn, .tgc-tip{ transition:none !important; }
  .tgc-frow--levels.is-entering{ animation:none !important; }
}
@media (forced-colors: active){
  .tgc-mark, .tgc-bead{ forced-color-adjust:none; }
}
.tgc-key-line{ width:18px; height:0; border-top:1px solid var(--ink-2); }
.tgc-col-val{ paint-order:stroke; stroke:var(--paper); stroke-width:6px; stroke-linejoin:round; }
.tgc-quad-back{ fill:var(--paper); opacity:.9; }
.tgc-quad--tr + .tgc-quad--bl{ }
/* scrolly map: the sticky figure is sized by the chart (min 560px plot on desktop) */
@media (min-width:641px){ .figure--sticky .chart-slot.tgc-map--scrolly{ max-height:none; } }
.tgc-map--scrolly .tgc-legend .tgc-eyebrow{ display:none; }
.tgc-map--scrolly .tgc-legend{ margin-bottom:6px; }
.tgc-chart button.tgc-btn[hidden]{ display:none; }
/* QA pass: touch targets and the scrolly map on small screens */
@media (max-width:760px), (hover:none) and (pointer:coarse){
  .tgc-chart button.tgc-btn{ min-height:40px; padding-block:8px; }
  .tgc-chart .tgc-seg button.tgc-btn{ min-height:34px; padding-block:6px; }
  .tgc-table summary{ min-height:40px; display:inline-flex; align-items:center; }
}
@media (max-width:760px){
  .tgc-map--scrolly .tgc-legend{ display:none; } /* the steps drive the highlights; the pill row only steals height here */
}

/* ---------- map regions: the gray-areas band and the quadrant-by-quadrant scroll focus ---------- */
:root{ --ch-band: color-mix(in oklab, var(--muted) 8%, transparent); }
.tgc-band{ fill:var(--ch-band); }
.tgc-quad, .tgc-band{ transition:opacity .45s var(--ch-ease), fill .45s var(--ch-ease); }
.tgc-quad.is-muted, .tgc-band.is-muted{ opacity:.35; }
.tgc-quad--tl.is-focus, .tgc-quad--br.is-focus{ fill:color-mix(in oklab, var(--teal) 9%, transparent); }
.tgc-quad--tr.is-focus{ opacity:1; fill:var(--mint); }
.tgc-quad--bl.is-focus{ fill:color-mix(in oklab, var(--cat-care) 13%, transparent); }
.tgc-band.is-focus{ fill:color-mix(in oklab, var(--muted) 15%, transparent); }
.tgc-l-grid .tgc-grid{ stroke:var(--line-2); stroke-opacity:.75; }

/* ---------- category key (Sermon · Admin & Ops · Comms & Media · Strategy · Care) ---------- */
.tgc-catkey{ gap:6px 18px; font-size:13.75px; }
.tgc-catkey .tgc-swatch{ width:12px; height:12px; }
.tgc-catkey--compact{ display:none; }
@media (max-width:760px){ .tgc-map--scrolly .tgc-catkey--compact{ display:flex; margin-bottom:6px; gap:4px 12px; font-size:12.65px; } }

/* Design pass: control labels in sentence case, map region labels as written */
.tgc-chart .tgc-eyebrow{ font:500 14.3px/1.2 var(--sans); letter-spacing:0; text-transform:none; color:var(--ink-2); padding-top:9px; }
.tgc-quad-label{ font:600 12.65px var(--sans); letter-spacing:0; fill:var(--ink-2); }
/* A little more air: title → controls → chart */
.tgc-chart .tgc-controls{ margin-bottom:30px; }
.tgc-chart .tgc-hint{ margin-top:2px; }
