/* ==========================================================================
   citations.php - topic citations page (my-epiphany.com)
   Moved out of citations.php's inline <style> block 2026-11-26; rules unchanged
   apart from the citation numbers and the highlight added at the end.
   ========================================================================== */

/* ---------- Topic citations page (2026-11-17). Palette matches verify.php ---------- */
main.cz.site-content{--ink:#0F1B2D;--muted:#42526B;--soft:#5A6A82;--line:#DCE3EE;--bg:#F4F6FA;--blue:#009EE3;--blue-d:#006FA6;
--ok:#17603A;--ok-bg:#E7F5EC;--ok-bd:#B8DFC7;--warn:#9A4A06;--warn-bg:#FDF3E6;--warn-bd:#F1D3AE;--bad:#A3201A;--bad-bg:#FCEBEA;--bad-bd:#F2C3BF;
--high:#2E9E5B;--mid:#E0A100;--low:#C8443A;
max-width:960px;margin:0 auto;padding:100px 20px 64px;min-height:60vh;color:var(--ink);line-height:1.6;box-sizing:border-box}
.cz *{box-sizing:border-box}
.cz [hidden]{display:none!important}
.cz a{color:var(--blue);text-decoration:none}
.cz a:hover,.cz a:focus{color:var(--blue-d)}
.cz :focus-visible{outline:3px solid rgba(0,158,227,.35);outline-offset:2px}
.cz .cz-topic{margin:-2px 0 26px;text-align:center;font-size:17px;color:var(--muted)}
.cz .cz-topic a{font-weight:600}

/* Summary strip */
.cz .cz-sum{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin:0 0 18px}
.cz .cz-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
.cz .cz-stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.cz .cz-stat b{display:block;font-size:26px;font-weight:700;line-height:1.15;color:var(--ink)}
.cz .cz-stat span{display:block;font-size:13px;color:var(--soft)}
.cz .cz-spread__label{font-size:14px;font-weight:600;color:var(--muted);margin:0 0 6px}
.cz .cz-spread__bar{display:flex;height:12px;border-radius:6px;overflow:hidden;background:#E6EBF2}
.cz .cz-spread__bar i{display:block;height:100%}
.cz .cz-spread__bar .high,.cz .cz-key .high{background:var(--high)}
.cz .cz-spread__bar .mid,.cz .cz-key .mid{background:var(--mid)}
.cz .cz-spread__bar .low,.cz .cz-key .low{background:var(--low)}
.cz .cz-key{display:flex;flex-wrap:wrap;gap:6px 16px;margin:7px 0 0;font-size:13px;color:var(--soft)}
.cz .cz-key span{display:inline-flex;align-items:center;gap:6px}
.cz .cz-key i{width:10px;height:10px;border-radius:3px;display:inline-block}
.cz .cz-audit{margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line);font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.cz .cz-audit__label{font-weight:600}

/* How the scores work */
.cz details.cz-how{margin:0 0 22px;font-size:15px;color:var(--muted)}
.cz details.cz-how summary{cursor:pointer;font-weight:600;color:var(--blue);font-size:14px;display:inline-block}
.cz details.cz-how summary:hover{color:var(--blue-d)}
.cz details.cz-how p{margin:10px 0 0;line-height:1.6}
.cz .me-cite-tools{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0}

/* Toolbar */
.cz .cz-bar{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;justify-content:space-between;margin:0 0 6px;padding:0 0 14px;border-bottom:1px solid var(--line)}
.cz .cz-chips{display:flex;flex-wrap:wrap;gap:8px}
.cz .cz-chip{font:400 14px/1.2 'Open Sans',system-ui,sans-serif;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer}
.cz .cz-chip:hover{border-color:var(--blue);color:var(--blue-d)}
.cz .cz-chip[aria-pressed="true"]{background:#009EE3;border-color:#009EE3;color:#fff}
.cz .cz-chip em{font-style:normal;opacity:.75;margin-left:4px}
.cz .cz-sort{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--muted)}
.cz .cz-sort select{font:400 14px 'Open Sans',system-ui,sans-serif;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.cz .cz-showing{font-size:13px;color:var(--soft);margin:8px 0 0}

/* Category groups */
.cz details.cz-group{margin:18px 0 0}
.cz details.cz-group > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:6px 0;user-select:none}
.cz details.cz-group > summary::-webkit-details-marker{display:none}
.cz details.cz-group > summary::before{content:"";width:8px;height:8px;border-right:2px solid var(--soft);border-bottom:2px solid var(--soft);transform:rotate(-45deg);transition:transform .15s;flex:none;margin:0 2px}
.cz details.cz-group[open] > summary::before{transform:rotate(45deg)}
.cz .cz-group h2{margin:0;font-size:22px;font-weight:600;color:#252525;line-height:1.3}
.cz .cz-count{font-size:13px;font-weight:600;color:var(--soft);background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:1px 9px}
.cz .cz-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:10px 0 0}
.cz .cz-flat{margin-top:18px}

/* Citation card */
.cz .cz-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px 12px;display:flex;flex-direction:column;gap:8px;min-width:0;
box-shadow:0 1px 2px rgba(15,27,45,.04);transition:box-shadow .15s,border-color .15s}
.cz .cz-card:hover{border-color:#C5D3E6;box-shadow:0 4px 14px rgba(15,27,45,.07)}
.cz .cz-card[hidden]{display:none}
.cz .cz-card--retracted{border-color:var(--bad-bd);background:#FFFBFA}
.cz .cz-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:13px;color:var(--soft);min-width:0}
.cz .cz-kind{font-size:12px;font-weight:600;letter-spacing:.02em;padding:2px 8px;border-radius:6px;background:#EAF6FD;color:#00618C;white-space:nowrap}
.cz .cz-kind--gov{background:#EEF0FB;color:#3B4A9A}
.cz .cz-kind--uni{background:#F3EEFA;color:#5B3D8F}
.cz .cz-kind--ref,.cz .cz-kind--web,.cz .cz-kind--video{background:#F1F3F6;color:#4A5568}
.cz .cz-src{font-weight:600;color:var(--muted);overflow-wrap:anywhere}
.cz .cz-cat{display:none;color:var(--soft)}
.cz .cz-flat .cz-cat{display:inline}
.cz .cz-title{font-size:16px;font-weight:600;line-height:1.45;color:var(--ink);overflow-wrap:anywhere}
.cz a.cz-title{color:var(--ink)}
.cz a.cz-title:hover,.cz a.cz-title:focus{color:var(--blue-d)}
.cz .cz-badges{display:flex;flex-wrap:wrap;gap:6px}
.cz .cz-badge{font-size:12px;font-weight:600;padding:2px 8px;border-radius:6px;border:1px solid;white-space:nowrap}
.cz .cz-badge--ok{color:var(--ok);background:var(--ok-bg);border-color:var(--ok-bd)}
.cz .cz-badge--warn{color:var(--warn);background:var(--warn-bg);border-color:var(--warn-bd)}
.cz .cz-badge--bad{color:var(--bad);background:var(--bad-bg);border-color:var(--bad-bd)}
.cz .cz-badge--plain{color:var(--soft);background:#fff;border-color:var(--line);font-weight:400}
.cz .cz-scores{display:grid;grid-template-columns:auto 1fr auto;gap:4px 10px;align-items:center;font-size:13px;color:var(--soft);margin-top:auto;padding-top:4px}
.cz .cz-meter{height:7px;border-radius:4px;background:#E6EBF2;overflow:hidden}
.cz .cz-meter i{display:block;height:100%;border-radius:4px}
.cz .cz-meter .high{background:var(--high)} .cz .cz-meter .mid{background:var(--mid)} .cz .cz-meter .low{background:var(--low)}
.cz .cz-scores b{font-weight:600;color:var(--ink);text-align:right;min-width:2ch}
.cz .cz-foot{display:flex;justify-content:flex-end;margin-top:2px}
.cz a.cz-check{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:600}
.cz .cz-ic{width:18px;height:18px;flex:none}
.cz .cz-ic__page{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.cz .cz-ic__line{fill:none;stroke:currentColor;stroke-width:1.6}
.cz .cz-ic__tick{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cz .cz-empty{padding:32px 20px;border:1px dashed #cfd8dc;border-radius:12px;text-align:center;color:#555;margin-top:18px}

/* Wiki and Verify buttons: site standard (hover #006FA6) */
a.me-bm.me-tool{display:inline-flex;align-items:center;gap:6px;padding:2.3px 9.2px 2.3px 4.6px;border:1.33px solid #009EE3;border-radius:9px;
background:#009EE3;color:#fff;font-family:'Open Sans',system-ui,sans-serif;font-weight:600;font-size:14px;line-height:1.2;text-decoration:none}
a.me-bm.me-tool:hover,a.me-bm.me-tool:focus-visible{background:#006FA6;border-color:#006FA6;color:#fff;text-decoration:none}
a.me-bm.me-tool .me-bm__icon{width:20px;height:20px;flex:none}
a.me-bm.me-tool .me-tool__fill{fill:#fff;stroke:#fff;stroke-width:1.2;stroke-linejoin:round}
a.me-bm.me-tool .me-tool__line{fill:none;stroke:#009EE3;stroke-width:1.6}
a.me-bm.me-tool .me-tool__tick{fill:none;stroke:#009EE3;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
a.me-bm.me-tool:hover .me-tool__line,a.me-bm.me-tool:hover .me-tool__tick{stroke:#006FA6}

@media (max-width:760px){
.cz .cz-list{grid-template-columns:1fr}
.cz .cz-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
main.cz.site-content{padding:96px 14px 48px}
.cz .cz-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cz .cz-bar{flex-direction:column;align-items:flex-start}
.cz .cz-group h2{font-size:19px}
}

/* ---------- Citation numbers (2026-11-26) ----------
   Each card shows the number used by the markers in the topic text, e.g. [3], and has an
   id (c1421) so a marker opens the page at that card. The card a marker points to is
   highlighted, and it stops clear of the fixed site header. */
.cz .cz-num{font-size:13px;font-weight:700;color:var(--blue-d);white-space:nowrap}
.cz .cz-card{scroll-margin-top:110px}
.cz .cz-card:target{border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,158,227,.25),0 4px 14px rgba(15,27,45,.07)}

.cz .cz-intro { max-width: 760px; margin: 0 auto 18px; color: #42526B; font-size: 15px; text-align: center; }