/* charts.css v1.0 debug 2, 2026-11-06, Claude Opus 5.5 — styles of the publication charts (timeline, citations by year, co-citation map,
   citation map). Scoped to .pubPanels so the panels can sit on another page; that page must define the colour and font
   variables used here (--bg --panel --fg --muted --rule --accent --body --mono --display) on .pubPanels or :root. */
/* Citation map (Figure 3); categorical slots 1-8 of the dataviz reference palette, one per lane */
.pubPanels .plate.cmap { background: var(--panel); }
.pubPanels .cmapScroll { overflow-x: auto; }
#citeSvg { display: block; width: 100%; min-width: 700px; height: auto; }
#citeSvg text { font-family: var(--body); }
#citeSvg .laneBg { fill: var(--bg); opacity: 0.6; }
#citeSvg .laneLab { fill: var(--fg); font-size: 13px; }
#citeSvg .tickLab { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
#citeSvg .axis { stroke: var(--muted); stroke-width: 1; }
#citeSvg .grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
#citeSvg .paperMark { fill: var(--fg); }
#citeSvg .lk { fill: none; stroke: var(--muted); stroke-width: 1; opacity: 0.16; transition: opacity .15s; }
#citeSvg .plk { opacity: 0; }
#citeSvg .dot { stroke: var(--panel); stroke-width: 2; transition: opacity .15s; }
#citeSvg .hit { fill: transparent; }
#citeSvg .nd { cursor: pointer; outline: none; }
#citeSvg .nd:focus-visible .dot { stroke: var(--fg); }
#citeSvg.focus .lk { opacity: 0.04; }
#citeSvg.focus .dot { opacity: 0.25; }
#citeSvg.focus .nd.on .dot { opacity: 1; }
#citeSvg.focus .lk.on { opacity: 0.85; stroke: var(--fg); stroke-width: 1.4; }
#citeSvg .xLane { fill: var(--bg); stroke: var(--rule); stroke-dasharray: 3 3; }
#citeSvg .lk2 { fill: none; stroke: var(--fg); stroke-width: 0.8; opacity: 0.22; }
#citeSvg .lk2.hot { stroke-width: 1.4; opacity: 0.85; }
#citeSvg.focus2 .lk2:not(.hot) { opacity: 0.06; }
#citeSvg .dot2 { fill: var(--muted); stroke: var(--panel); stroke-width: 1; opacity: 0.55; }
#citeSvg .dot2.shared { fill: var(--fg); opacity: 0.9; }
#citeSvg .nd2 { cursor: pointer; outline: none; }
#citeSvg .nd2.on .dot2, #citeSvg .nd2:focus-visible .dot2 { opacity: 1; stroke: var(--accent); stroke-width: 2; }
.pubPanels .cinfo { min-height: 4.8em; font-size: 14px; line-height: 1.5; padding: 10px 6px 2px; border-top: 1px solid var(--rule); margin-top: 6px; }
.pubPanels .cinfo .muted { color: var(--muted); }
.pubPanels .cinfo .mono { font: 12.5px var(--mono); }
.pubPanels .clist { margin-top: 10px; }
.pubPanels .clist summary { cursor: pointer; color: var(--accent); }
.pubPanels .clist h4 { margin: 12px 0 2px; font: 600 13.5px var(--body); color: var(--fg); }
.pubPanels .clist ul { margin: 2px 0; padding-left: 20px; }
.pubPanels .clist li { margin: 2px 0; }

:root { --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #6250d6; --c8: #e34948; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767; } }
:root[data-theme="dark"] { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767; }
.pubPanels .stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 8px 0 0; }
.pubPanels .stat .v { font-family: var(--display); font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pubPanels .stat .k { font-size: 13px; color: var(--muted); }
.pubPanels .statGroup .gl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pubPanels .statRow { display: flex; gap: 22px; }
.pubPanels .controls { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 14px; margin: 0 0 8px; }
.pubPanels .controls label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.pubPanels .keyHead { font-weight: 600; color: var(--fg) !important; }
.pubPanels label.key { cursor: pointer; color: var(--fg); }
.pubPanels label.key input { margin: 0 2px 0 0; accent-color: var(--fg); }
.pubPanels .key { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.pubPanels .sw { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.pubPanels .sw.dash { background: transparent; border: 1.5px dashed var(--muted); width: 9px; height: 9px; }
#pubSvg { display: block; width: 100%; min-width: 700px; height: auto; }
#pubSvg text { font-family: var(--body); }
#pubSvg .tickLab { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
#pubSvg .axis { stroke: var(--muted); }
#pubSvg .grid { stroke: var(--rule); stroke-dasharray: 2 4; }
#pubSvg .pub { stroke: var(--panel); stroke-width: 1; cursor: pointer; fill-opacity: 0.8; }
#pubSvg .pub.noMap { fill-opacity: 0.25; stroke: var(--muted); stroke-dasharray: 2 2; }
#pubSvg .pub.ring { stroke: var(--fg); stroke-width: 2; fill-opacity: 0.9; }
.pubPanels .sw.ring { background: transparent; border: 2px solid var(--fg); width: 8px; height: 8px; }
#pubSvg .pub.on { stroke: var(--fg); stroke-width: 2.5; fill-opacity: 1; stroke-dasharray: none; }
#pubSvg .pub.root { stroke: var(--accent); stroke-width: 3.5; fill-opacity: 1; stroke-dasharray: none; }
#yearSvg { display: block; width: 100%; min-width: 700px; height: auto; }
#yearSvg text { font-family: var(--body); }
#yearSvg .tickLab { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
#yearSvg .axis { stroke: var(--muted); }
#yearSvg .grid { stroke: var(--rule); }
#yearSvg .seg { stroke: var(--panel); stroke-width: 1; }
#yearSvg .partial { opacity: 0.45; }
#yearSvg .col { fill: transparent; }
#yearSvg .col.on { fill: var(--fg); fill-opacity: 0.06; }
#yearSvg .cursor { stroke: var(--fg); stroke-width: 1; }
.pubPanels .tabs { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.pubPanels .tabs button { border: 0; border-radius: 0; background: transparent; padding: 4px 12px; }
.pubPanels .tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); }
#ccSvg { display: block; width: 100%; min-width: 700px; height: auto; }
#ccSvg text { font-family: var(--body); }
#ccSvg .ccE { stroke: var(--muted); fill: none; stroke-linecap: round; }
#ccSvg .ccN { stroke: var(--panel); stroke-width: 1; cursor: pointer; }
#ccSvg .ccN.rev { stroke: var(--fg); stroke-width: 1.8; }
#ccSvg .ccLab { fill: var(--fg); font-size: 11px; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; pointer-events: none; }
#ccSvg.focus .ccE { opacity: 0.05 !important; }
#ccSvg.focus .ccE.on { opacity: 0.9 !important; stroke: var(--fg); }
#ccSvg.focus .ccN { opacity: 0.25; }
#ccSvg.focus .ccN.on { opacity: 1; }
#ccSvg .ccN.idle { opacity: 0.25; }
.pubPanels select { font: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 2px 4px; }
#mapSection[hidden], .pager[hidden], #admin[hidden] { display: none; }
.pubPanels .pager { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.pubPanels .pager .sep { width: 18px; }
.pubPanels button { font: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.pubPanels button:hover:not(:disabled) { border-color: var(--fg); }
.pubPanels button:disabled { color: var(--muted); cursor: default; opacity: 0.6; }
#admin { border: 1.5px dashed var(--accent); border-radius: 8px; padding: 12px 16px; margin: 18px 0; font-size: 14px; }
#admin h3 { margin: 0 0 6px; font-size: 15px; }
#admin pre { max-height: 180px; overflow: auto; font-size: 12px; background: var(--panel); padding: 8px; border-radius: 6px; margin: 8px 0 0; white-space: pre-wrap; }
#admin ul { margin: 4px 0; padding-left: 20px; }
