/* charts.css -- the interactive layer added by charts.js, plus the static
   pieces viz.py emits that base.css does not cover (axis titles, line legend,
   viz_config tables).  Colours are tokens only, so dark mode and the admin's
   theme editor apply without a rebuild of this file. */

/* ---------------------------------------------------------- static bits --- */
.svg-line .axis-title { fill: var(--ink-muted); font-size: 10.5px; font-family: var(--font-sans); }
.line-legend { list-style: none; margin: .5rem 0 0; padding: 0; display: flex;
               flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; color: var(--ink-muted); }
.line-legend li { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.line-legend .key, .cx-key { width: 18px; height: 4px; flex: none; overflow: visible; }
.line-legend .key line, .cx-key line { stroke-width: 2.5; stroke-linecap: round; }
.line-note { margin: .4rem 0 0; }

.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--border);
                border-radius: var(--radius); }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { text-align: left; font-weight: 600; font-size: .72rem; color: var(--ink-muted);
                 text-transform: uppercase; letter-spacing: .04em; padding: .45rem .7rem;
                 border-bottom: 1px solid var(--border-strong); background: var(--bg-subtle);
                 white-space: nowrap; }
.data-table td { padding: .4rem .7rem; border-bottom: 1px solid var(--border); color: var(--ink); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.num { font-family: var(--font-mono); font-size: .78rem; text-align: right;
                     white-space: nowrap; }

/* -------------------------------------------------------------- controls --- */
.cx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem;
          margin: 0 0 .7rem; font-size: .78rem; }
.cx-meta { color: var(--ink-subtle); font-family: var(--font-mono); font-size: .72rem; }
.cx-cloud .cx-meta { margin-left: auto; }
.cx-lbl { color: var(--ink-subtle); font-size: .74rem; }
.cx-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius);
          overflow: hidden; }
.cx-seg .cx-btn { border: 0; border-radius: 0; }
.cx-seg .cx-btn + .cx-btn { border-left: 1px solid var(--border-strong); }
.cx-btn { font: inherit; font-size: .76rem; line-height: 1.2; padding: .32rem .7rem; min-height: 30px;
          color: var(--ink-muted); background: var(--bg); border: 1px solid var(--border-strong);
          border-radius: var(--radius); cursor: pointer; }
.cx-btn:hover:not(:disabled) { color: var(--ink); background: var(--bg-subtle); }
.cx-btn[aria-pressed="true"] { color: var(--bg); background: var(--ink); }
.cx-btn:disabled { opacity: .4; cursor: not-allowed; }
.cx-btn:focus-visible, .cx-chip:focus-visible, .cx-opt:focus-visible, .cx-link:focus-visible,
.topic-toggle:focus-visible, .cx-search:focus-visible, .cx-range:focus-visible,
.cx-plot:focus-visible, .cx-cloud .cw:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-topics .cx-seg { margin-left: auto; }
.cx-back { margin-left: auto; }
.cx-back + .cx-seg { margin-left: 0; }

/* Shared floating readout (hover and keyboard focus). */
.cx-host { position: relative; }
.cx-tip { position: absolute; z-index: 5; pointer-events: none; max-width: min(280px, 90%);
          background: var(--bg); color: var(--ink); border: 1px solid var(--border-strong);
          border-radius: var(--radius); padding: .35rem .55rem; font-size: .76rem; line-height: 1.35;
          box-shadow: 0 4px 14px rgb(0 0 0 / .14); white-space: nowrap; }
.cx-tip strong { font-family: var(--font-mono); font-weight: 700; }
.cx-tip-l { color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; }
.cx-tip-s { color: var(--ink-subtle); }
.cx-tip-h { font-weight: 600; color: var(--ink-muted); margin-bottom: .15rem; font-family: var(--font-mono);
            font-size: .72rem; }
.cx-tip-row { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); align-items: center;
              gap: .4rem; }

/* ------------------------------------------------------------ word cloud --- */
.cx-cloud .cw { border-radius: 3px; padding: 0 .1rem; outline-offset: 1px; }
.cx-cloud .cw:hover, .cx-cloud .cw:focus { background: var(--bg-muted); }

/* -------------------------------------------------------- topic clusters --- */
.cx-topics .topic-card h4 { margin-bottom: .45rem; text-transform: none; letter-spacing: 0; }
.topic-toggle { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center;
                gap: .5rem; cursor: pointer; font-size: .76rem; font-weight: 600;
                text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted);
                border-radius: 3px; min-height: 24px; }
.topic-toggle:hover { color: var(--ink); }
.topic-n { margin-left: auto; font-weight: 400; text-transform: none; letter-spacing: 0;
           font-family: var(--font-mono); font-size: .68rem; color: var(--ink-subtle); }
.topic-chev { font-size: .6rem; color: var(--ink-subtle); }
.cx-topics .topic-card { cursor: default; transition: border-color .15s; }
.cx-topics .topic-card:hover { border-color: var(--border-strong); }
.cx-topics .topic-card.is-open { border-color: var(--border-strong); background: var(--bg); }
.topic-grid.is-drill { grid-template-columns: 1fr; }
.topic-card.is-open .bar-row.mini.with-v { grid-template-columns: minmax(80px, 160px) 1fr 3.6em;
                                           font-size: .8rem; }
.topic-card.is-open .bar-track { height: 10px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.topic-chip { font-family: var(--font-mono); color: var(--ink); background: var(--bg);
              border: 1px solid; border-left-width: 3px; border-radius: 3px; padding: .05rem .4rem;
              line-height: 1.6; }
.topic-more { margin: .45rem 0 0; font-size: .7rem; color: var(--ink-subtle); font-family: var(--font-mono); }
.topic-shared { margin-top: .8rem; font-size: .8rem; color: var(--ink-muted); }
.topic-shared h5 { font-size: .74rem; margin: 0 0 .3rem; color: var(--ink-muted); font-weight: 600; }
.topic-shared ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .15rem; }
.topic-shared strong { color: var(--ink); font-weight: 600; }
.cx-link { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline;
           text-underline-offset: 2px; border-radius: 2px; }
.cx-link:hover { color: var(--accent-hover); }

/* ------------------------------------------------------------ line chart --- */
.cx-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.cx-chip { font: inherit; font-size: .76rem; display: inline-flex; align-items: center; gap: .4rem;
           padding: .25rem .55rem; min-height: 28px; border-radius: 999px; cursor: pointer;
           color: var(--ink-subtle); background: transparent; border: 1px dashed var(--border-strong);
           max-width: 100%; }
.cx-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-chip[aria-pressed="false"] .cx-key { opacity: .35; }
.cx-chip[aria-pressed="true"] { color: var(--ink); background: var(--bg-subtle);
                                border: 1px solid var(--border-strong); }
.cx-chip:hover { border-color: var(--ink-subtle); }
.cx-bulk { display: inline-flex; gap: .3rem; }
.cx-x { color: var(--ink-subtle); margin-left: .1rem; }
ul.line-legend li .cx-chip { font-size: .74rem; }

.cx-picker { position: relative; }
.cx-picker-btn { min-width: 11rem; text-align: left; }
.cx-panel { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0;
            width: min(320px, calc(100vw - 32px)); background: var(--bg);
            border: 1px solid var(--border-strong); border-radius: var(--radius);
            box-shadow: 0 8px 24px rgb(0 0 0 / .16); padding: .5rem; display: grid; gap: .45rem; }
.cx-panel[hidden] { display: none; }
.cx-search { font: inherit; font-size: .8rem; width: 100%; box-sizing: border-box; padding: .4rem .55rem;
             color: var(--ink); background: var(--bg-subtle); border: 1px solid var(--border-strong);
             border-radius: var(--radius); }
.cx-list { max-height: 260px; overflow-y: auto; display: grid; gap: 1px; overscroll-behavior: contain; }
.cx-opt { font: inherit; font-size: .8rem; text-align: left; display: flex; align-items: center; gap: .5rem;
          padding: .3rem .4rem; min-height: 28px; border: 0; border-radius: 4px; background: transparent;
          color: var(--ink-muted); cursor: pointer; }
.cx-opt[hidden] { display: none; }
.cx-opt:hover { background: var(--bg-subtle); color: var(--ink); }
.cx-opt[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.cx-check { width: 22px; height: 14px; flex: none; display: inline-flex; align-items: center;
            justify-content: center; border: 1px solid var(--border-strong); border-radius: 3px; }
.cx-opt[aria-pressed="true"] .cx-check { border-color: transparent; }
.cx-check .cx-key { width: 18px; }
.cx-empty { margin: 0; }

.cx-plot { width: 100%; touch-action: pan-y; border-radius: 4px; }
.cx-plot .cx-svg { display: block; width: 100%; height: auto; }
.cx-plot .cx-cross { stroke: var(--ink-subtle); stroke-width: 1; stroke-dasharray: 3 3; }
.cx-plot .cx-hdot { stroke: var(--bg); stroke-width: 2; }
.cx-line .cx-tip { white-space: normal; min-width: 9rem; }
.cx-line .cx-tip-l { white-space: nowrap; }
.cx-empty-plot { padding: 2rem 0; text-align: center; border: 1px dashed var(--border);
                 border-radius: var(--radius); }

/* ---------------------------------------------------- per-year bar/donut --- */
.cx-yearbar { gap: .5rem .8rem; }
.cx-range-wrap { display: inline-flex; align-items: center; gap: .4rem; flex: 1 1 240px; min-width: 0; }
.cx-range-wrap .cx-btn { padding: .2rem .55rem; font-size: .9rem; }
.cx-range { flex: 1; min-width: 80px; accent-color: var(--accent); cursor: pointer; }
.cx-range.is-idle { opacity: .5; }
.cx-range-end { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-subtle); }
.cx-year { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; color: var(--ink);
           min-width: 4.5em; }

@media (max-width: 620px) {
  .cx-cloud .cx-meta { margin-left: 0; flex-basis: 100%; }
  .cx-range-end { display: none; }
  .cx-picker-btn { min-width: 0; }
}
@media print {
  .cx-bar, .cx-tip, .cx-panel { display: none !important; }
}

/* ------------------------------------- content metrics (viz.field_stats) --- */
.chart-fields figcaption { font-size: .95rem; color: var(--ink); }
.fm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 0 0 .9rem; }
.fm-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.fm-lg-w, .fm-lg-b, .fm-lg-m { display: inline-block; flex: none; }
.fm-lg-w { width: 22px; height: 10px; border-left: 2px solid var(--ink-subtle); border-right: 2px solid var(--ink-subtle);
           background: linear-gradient(var(--ink-subtle), var(--ink-subtle)) center / 100% 2px no-repeat; }
.fm-lg-b { width: 18px; height: 12px; margin-left: .5rem; border: 2px solid var(--viz-seq-6);
           background: color-mix(in srgb, var(--viz-seq-4) 30%, transparent); border-radius: 3px; }
.fm-lg-m { width: 4px; height: 14px; margin-left: .5rem; background: var(--accent); border-radius: 2px; }
.fm-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.fm-card { border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); background: var(--bg);
           padding: .85rem 1rem .8rem; box-shadow: var(--shadow-sm, none); min-width: 0; }
.fm-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .7rem; }
.fm-name { font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em;
           color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fm-val { font-family: var(--font-mono); font-size: .9rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.fm-sd { font-weight: 450; font-size: .76rem; color: var(--ink-subtle); }
/* The box plot: whisker line with end caps, box, mean bar. */
.fm-plot { position: relative; height: 30px; margin: 0 4px .35rem; }
.fm-whisker { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--border-strong); }
.fm-cap { position: absolute; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: var(--ink-subtle); border-radius: 1px; }
.fm-box { position: absolute; top: 3px; bottom: 3px; border: 2px solid var(--viz-seq-6); border-radius: 4px;
          background: color-mix(in srgb, var(--viz-seq-4) 28%, var(--bg)); }
.fm-mean { position: absolute; top: -1px; bottom: -1px; width: 4px; margin-left: -2px; border-radius: 2px;
           background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 8px color-mix(in srgb, var(--accent) 55%, transparent); }
.fm-ends { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--font-mono);
           font-size: .74rem; color: var(--ink-subtle); }
.fm-split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; margin-bottom: .4rem;
            background: var(--bg-muted); }
.fm-split span { display: block; height: 100%; }
.fm-dist { height: 9px; margin-top: .75rem; }
.fm-keys { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-muted); }
.fm-keys i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.fm-rating { position: relative; height: 16px; border-radius: 8px; background: var(--bg-muted); overflow: hidden; margin-bottom: .4rem; }
.fm-rating span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px;
                  background: linear-gradient(90deg, var(--viz-seq-3), var(--viz-seq-6)); }

/* ---- Analytics Phase 1 blocks (profile_blocks.py, Reza 2026-12-03) ---- */
.pf-cap { font-size: .8rem; color: var(--ink-muted); margin: 1rem 0 .3rem; }
.pf-note { font-size: .76rem; color: var(--ink-subtle); margin: .5rem 0 0; line-height: 1.45; }
.svg-line .pf-line { fill: none; stroke: var(--viz-seq-5); }
.svg-line .pf-area { fill: var(--viz-seq-1); opacity: .75; }
.svg-line .pf-gap { fill: var(--bg-muted); }
.svg-line .pf-dot { fill: var(--viz-seq-6); }
.svg-line .pf-lab { font-size: 11px; font-weight: 600; fill: var(--ink); font-family: var(--font-sans); }
.svg-line .pf-eq { stroke: var(--ink-subtle); stroke-width: 1; stroke-dasharray: 4 4; }
.svg-line .pf-hit { fill: transparent; }
.svg-line .pf-hit:hover { fill: var(--ink); opacity: .07; }
.pf-split { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 1.2rem; align-items: center; }
.pf-split2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.pf-split2 .chart { margin-bottom: .3rem; }
.pf-explain p { font-size: .86rem; line-height: 1.5; color: var(--ink-muted); margin: 0 0 .6rem; }
.pf-tablewrap { overflow-x: auto; }
.pf-table { border-collapse: collapse; width: 100%; font-size: .8rem; }
.pf-table th { text-align: left; font-weight: 600; color: var(--ink-muted); white-space: nowrap;
               border-bottom: 1px solid var(--border-strong); padding: .3rem .45rem; }
.pf-table td { border-bottom: 1px solid var(--border); padding: .4rem .45rem; vertical-align: top; }
.pf-table td.pf-meta { white-space: nowrap; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-muted); }
.pf-table td.pf-txt { min-width: 16rem; overflow-wrap: anywhere; }
@media (max-width: 700px) { .pf-split { grid-template-columns: 1fr; } }
/* Possibly offensive content behind one click (sensitive.py) */
.sensitive-gate > summary { cursor: pointer; font-size: .85rem; color: var(--accent); padding: .5rem 0; }
.sensitive-gate > summary .sg-why { color: var(--ink-subtle); }
.sensitive-gate[open] > summary { margin-bottom: .6rem; }

/* ---- /stats/ page (stats_page.py, 2026-12-04): headline figures and a grid of cards ---- */
.st-page{margin-top:1.4rem}
.st-muted{color:var(--ink-subtle)}
.st-kpis{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-bottom:1.6rem}
.st-kpi{border:1px solid var(--border);border-radius:10px;padding:.8rem 1rem;background:var(--bg)}
.st-kpi .v{font-size:1.75rem;font-weight:700;letter-spacing:-.02em;line-height:1.1;white-space:nowrap;font-variant-numeric:tabular-nums}
.st-kpi .l{font-size:.85rem;font-weight:600;margin-top:.15rem}
.st-kpi .s{font-size:.75rem;color:var(--ink-subtle);margin-top:.15rem;line-height:1.3}
.st-grid{display:grid;gap:1rem;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:1rem}
@media (max-width:1100px){.st-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.st-grid{grid-template-columns:1fr}}
.st-card{border:1px solid var(--border);border-radius:12px;padding:1rem 1.1rem 1.1rem;background:var(--bg);min-width:0}
.st-card>header{display:flex;align-items:baseline;justify-content:space-between;gap:.6rem;margin-bottom:.5rem}
.st-card h2{font-size:1rem;margin:0}
.st-card h2::before{display:none}
.st-more{font-size:.8rem;white-space:nowrap}
.st-cap{font-size:.78rem;color:var(--ink-subtle);margin:-.2rem 0 .6rem}
.st-lead-p{font-size:.85rem;color:var(--ink-muted);margin:0 0 .6rem}
.st-bars{list-style:none;margin:0;padding:0;font-size:.82rem}
.st-bars li{display:grid;grid-template-columns:minmax(0,10.5rem) minmax(0,1fr) 3.2rem;align-items:center;gap:.5rem;padding:.18rem 0}
.st-bars-4 li{grid-template-columns:minmax(0,7.8rem) minmax(0,1fr) 2.4rem 3.4rem}
.st-bars li:hover{background:var(--bg-subtle)}
.st-bl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-bl a{color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;gap:.35rem}
.st-bars li:hover .st-bl a{color:var(--accent)}
.st-bt{height:8px;background:var(--bg-muted);border-radius:4px;overflow:hidden}
.st-bf{display:block;height:100%;border-radius:4px;min-width:2px}
.st-bv{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink-muted);font-family:var(--font-mono);font-size:.76rem}
.st-side{text-align:right;color:var(--ink-subtle);font-size:.72rem;font-variant-numeric:tabular-nums}
.st-svg{width:100%;height:auto;display:block;overflow:visible}
.st-gl{stroke:var(--border);stroke-width:1}
.st-wide{margin-bottom:1rem}
.st-ax{font-size:10.5px;fill:var(--ink-subtle);font-family:var(--font-sans)}
.st-note{font-size:11px;fill:var(--ink);font-weight:600;font-family:var(--font-sans)}
.st-lead{stroke:var(--ink-subtle);stroke-width:1}
.st-col:hover rect+rect{filter:brightness(.85)}
.st-pt circle{opacity:0}.st-pt:hover circle{opacity:1}
.st-stack{display:flex;gap:2px;height:22px;border-radius:6px;overflow:hidden;margin:.3rem 0 .6rem}
.st-seg{min-width:3px}.st-seg:hover{filter:brightness(.88)}
.st-legend{list-style:none;margin:0;padding:0;font-size:.8rem;display:grid;gap:.25rem}
.st-legend li{display:flex;align-items:center;gap:.4rem}
.st-legend b{font-variant-numeric:tabular-nums;margin-left:auto}
.st-pc{width:2.6rem;text-align:right;color:var(--ink-subtle)}
.st-sw{width:10px;height:10px;border-radius:3px;flex:none}
.st-ranked{list-style:none;margin:0;padding:0;font-size:.82rem}
.st-ranked li{display:grid;grid-template-columns:1.3rem minmax(0,1fr) auto;gap:.4rem;padding:.32rem 0;border-top:1px solid var(--border);align-items:baseline}
.st-ranked li:first-child{border-top:0}
.st-rk{color:var(--ink-subtle);font-variant-numeric:tabular-nums}
.st-rt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-rt a{color:var(--ink);text-decoration:none}.st-rt a:hover{color:var(--accent);text-decoration:underline}
.st-rv{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.st-rv .st-muted{font-weight:400;font-size:.74rem}

/* /explore/ (explore_page.py, 2026-12-04) */
.ex-page{margin-bottom:2.5rem}
.ex-muted{color:var(--ink-subtle)}
.ex-search{display:flex;gap:.5rem;margin:1.2rem 0 1rem;max-width:720px}
.ex-search input{flex:1;min-width:0;font:inherit;padding:.65rem .9rem;border:1px solid var(--border-strong);border-radius:8px;background:var(--bg);color:var(--ink)}
.ex-search button{font:inherit;padding:.6rem 1.1rem;border-radius:8px;border:0;background:var(--accent);color:var(--on-accent,#fff);cursor:pointer}
.ex-nav{display:flex;flex-wrap:wrap;gap:.4rem;position:sticky;top:56px;z-index:5;background:var(--bg);padding:.5rem 0;margin:0 0 .5rem;border-bottom:1px solid var(--border)}
.ex-nav a{padding:.28rem .75rem;border-radius:999px;border:1px solid var(--border);text-decoration:none;color:var(--ink);font-size:.85rem;background:var(--bg)}
.ex-nav a:hover{border-color:var(--accent);color:var(--accent)}
.ex-sec{margin:2rem 0;scroll-margin-top:8rem}
.ex-sec>h2{margin:0 0 .8rem}
.ex-starts{display:grid;gap:1rem;grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1000px){.ex-starts{grid-template-columns:1fr 1fr}}
@media (max-width:650px){.ex-starts{grid-template-columns:1fr}}
.ex-start{border:1px solid var(--border);border-top:3px solid var(--brand);border-radius:10px;padding:.9rem 1rem;background:var(--bg);display:flex;flex-direction:column;min-width:0}
.ex-start h3{margin:0 0 .3rem;font-size:1.05rem}
.ex-start-n{margin:0 0 .5rem;font-size:.82rem}
.ex-start-ex{margin:0 0 .6rem;padding-left:1.1rem;font-size:.8rem}
.ex-start-ex li{margin:.15rem 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-start-ex a{color:var(--ink)}.ex-start-ex span{color:var(--ink-subtle);font-size:.75rem}
.ex-go{margin:auto 0 0;font-size:.82rem;display:flex;flex-wrap:wrap;gap:.3rem 1rem}
.ex-themes{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.ex-theme{border:1px solid var(--border);border-radius:12px;padding:.95rem 1.05rem;background:var(--bg);display:flex;flex-direction:column;gap:.5rem;min-width:0}
.ex-theme:hover{border-color:var(--border-strong);box-shadow:0 2px 10px rgba(20,27,52,.06)}
.ex-theme h3{margin:0;font-size:1.08rem}.ex-theme h3 a{color:var(--ink);text-decoration:none}.ex-theme h3 a:hover{color:var(--accent)}
.ex-meta{margin:0;font-size:.8rem;color:var(--ink-muted);font-variant-numeric:tabular-nums}
.ex-desc{margin:0;font-size:.82rem;color:var(--ink-subtle)}
.ex-pfs{display:flex;align-items:center;gap:.3rem;font-size:.75rem;min-width:0}
.ex-pf{display:inline-flex}
.ex-pfs .ex-muted{margin-left:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-chips{display:flex;flex-wrap:wrap;gap:.3rem}
.ex-chip{display:inline-flex;align-items:center;gap:.3rem;padding:.15rem .55rem;border-radius:999px;background:var(--bg-subtle);border:1px solid var(--border);font-size:.78rem;color:var(--ink);text-decoration:none;white-space:nowrap}
a.ex-chip:hover{border-color:var(--accent);color:var(--accent)}
.ex-chip span{color:var(--ink-subtle);font-size:.75em;font-variant-numeric:tabular-nums}
.ex-chip-more{color:var(--ink-subtle);background:transparent}
.ex-chips-lg .ex-chip{font-size:.88rem;padding:.3rem .75rem}
.ex-ex{margin:auto 0 0;font-size:.78rem;color:var(--ink-muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ex-ex span{color:var(--ink-subtle)}.ex-ex a{color:var(--ink-muted)}
.ex-kinds{padding:1rem 1.1rem;border:1px dashed var(--border-strong);border-radius:12px;background:var(--bg-subtle)}
.ex-kinds>h2{margin-bottom:.3rem}.ex-kinds>p{margin:0 0 .7rem;color:var(--ink-muted);font-size:.9rem}
.ex-kinds .ex-chip{background:var(--bg)}
.ex-hubs{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr));margin:2rem 0;scroll-margin-top:8rem}
@media (max-width:900px){.ex-hubs{grid-template-columns:1fr}}
.ex-hub{border:1px solid var(--border);border-radius:12px;padding:1rem 1.1rem;background:var(--bg);min-width:0}
.ex-hub>header{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.6rem}
.ex-hub h2{font-size:1.05rem;margin:0}.ex-hub h2::before{display:none}
.ex-more{font-size:.8rem;white-space:nowrap}
.ex-az{columns:5 12rem;list-style:none;padding:0;margin:0;font-size:.84rem}
.ex-az li{padding:.12rem 0;break-inside:avoid}.ex-az span{color:var(--ink-subtle);font-size:.75rem}
@media (max-width:700px){.ex-nav{position:static}}
