/* popup.css
   feature popup, evidence-atlas popup, ToposText deep-link
   Extracted from map/index.html (2026-08) to shrink the index and give agents smaller, named CSS to parse. */

    /* popup */
    .maplibregl-popup-content { background:var(--panel); border:1px solid var(--panel-edge);
      font-family:'EB Garamond',serif; color:var(--ink); border-radius:6px; padding:12px 14px; max-width:320px;
      overflow-y:auto; overflow-x:hidden; }
    .maplibregl-popup-close-button { font-size:18px; color:var(--ink-soft); padding:0 6px; }
    .maplibregl-popup-tip { border-top-color:var(--panel)!important; border-bottom-color:var(--panel)!important; }
    .pop-title { font-family:'IM Fell English',serif; font-size:17px; margin:0 0 3px; }
    .pop-meta { font-size:12.5px; color:var(--ink-soft); margin-bottom:6px; }
    .disamb-head { font-family:'IM Fell English',serif; font-size:14px; margin:0 0 5px; color:var(--ink); }
    .disamb-item { display:flex; align-items:center; gap:8px; padding:4px 2px; cursor:pointer; font-size:14px; border-top:1px dotted var(--line); }
    .disamb-item:hover { background:rgba(120,90,45,.14); }
    .disamb-item.match { background:rgba(29,111,184,.10); }
    .disamb-item.match:hover { background:rgba(29,111,184,.18); }
    .disamb-hit { color:#1a5f9e; font-size:12px; }
    .disamb-nmatch { color:#1a5f9e; font-size:12px; font-family:system-ui,sans-serif; }
    .badge { display:inline-block; font-size:11px; padding:1px 7px; border-radius:9px; color:#fff; margin-left:4px; }
    .pop-blurb { font-size:13.5px; line-height:1.4; margin:0 0 8px; }
    .pop-disputes { font-size:12.5px; font-style:italic; background:#e6d3b0; border-left:3px solid #9c2b2b; padding:5px 8px; margin:0 0 8px; line-height:1.35; }
    .pop-cites { list-style:none; padding:0; margin:0; font-size:12.5px; }
    .pop-cites li { padding:3px 0; border-top:1px dotted var(--line); line-height:1.35; }
    .tier { font-variant:small-caps; color:#7a5230; font-weight:600; margin-right:4px; }
    .pop-cites a { color:#8a4a1f; text-decoration:underline; text-underline-offset:2px; }
    .pop-cites a:hover { color:#b3611f; }
    .pop-media { margin:-2px -2px 8px; min-height:0; }
    .pop-img { width:100%; height:auto; max-height:300px; object-fit:contain; background:rgba(60,40,15,.06);
      border-radius:5px; display:block; border:1px solid var(--panel-edge); margin-bottom:2px; }
    .pop-credit { font-size:12px; color:var(--ink-soft); font-style:italic; margin:2px 0 7px; line-height:1.35; }
    .pop-more { font-size:12.5px; color:#8a4a1f; text-decoration:underline; }
    .pop-sparotoc { margin-top:8px; border-top:1px solid var(--line); padding-top:6px; }
    .sp-h { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:#8a4a1f; font-weight:600; margin-bottom:3px; }
    .pop-sparotoc ul { list-style:none; padding:0; margin:0; }
    .pop-sparotoc li { padding:2px 0; font-size:12.5px; line-height:1.35; }
    .pop-sparotoc a { color:#a33; text-decoration:none; }
    .maplibregl-popup-content, .maplibregl-popup-content a { pointer-events:auto; }
    .pop-sparotoc a:hover { text-decoration:underline; }
    .sp-search { color:#8a4a1f!important; font-style:italic; }
    /* evidence atlas popup */
    .ev-head { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:2px 0 6px; }
    .cite-btn.cite-top { margin-left:auto; font-size:11px; padding:1px 7px; }   /* easy-cite at the top of the node */
    .ev-type { font-size:12.5px; color:var(--ink-soft); font-style:italic; }
    .tier-badge { font-size:11px; font-weight:600; padding:0 7px; border-radius:9px; color:#fff; display:inline-block; }
    .pill { font-size:11px; padding:1px 8px; border-radius:9px; color:#fff; }
    .ev-claim { border-top:1px dotted var(--line); padding:6px 0 3px; }
    .ev-claim .ctext { font-size:13.5px; line-height:1.4; }
    /* inline cross-reference to another node (linkified atlas/NNN in claim text) */
    .atlas-xref { display:inline; font:inherit; background:none; border:0; padding:0; margin:0; color:#8a4a1f; cursor:pointer; text-decoration:underline; text-underline-offset:2px; text-align:left; }
    .atlas-xref:hover { color:#b3611f; }
    mark.shl { background:#f3d774; color:#2b1e10; border-radius:2px; padding:0 1px; box-shadow:0 0 0 1px rgba(154,106,18,.35); }
    .ev-list { list-style:none; padding:0; margin:4px 0 0; }
    .ev-list li { font-size:12px; line-height:1.4; padding:1px 0; }
    .evk { font-variant:small-caps; font-weight:600; color:#7a5230; margin-right:4px; letter-spacing:.03em; }
    /* collapsible long source-quotes (drill-down to the full ancient passage) */
    .ev-collapsible .ev-quote { display:none; margin:3px 0 1px 2px; font-style:italic; color:var(--ink-soft); line-height:1.4; }
    .ev-collapsible.open .ev-quote { display:block; }
    .ev-more { background:none; border:none; color:#7a5230; cursor:pointer; font-size:11px; padding:0 4px; line-height:1; display:inline-block; transition:transform .12s; }
    .ev-collapsible.open .ev-more { transform:rotate(180deg); }
    .evd { font-style:italic; color:var(--ink-soft); }
    .evd.uncited { color:#9c2b2b; font-style:normal; font-size:11px; opacity:.85; }
    /* deep-link to an ancient author's passage in an online reader (ToposText) */
    a.xref-link { color:#2a5db0; text-decoration:none; border-bottom:1px solid rgba(42,93,176,.35); word-break:break-all; }
    a.xref-link:hover { color:#1c47a0; border-bottom-color:#2a5db0; }
    a.anc-ref { color:#7a4a12; text-decoration:none; border-bottom:1px dotted transparent; }
    a.anc-ref:hover { border-bottom-color:#7a4a12; }
    a.anc-ref .anc-ar { opacity:.6; font-size:.85em; }
    .ver-badge { font-size:10px; font-weight:700; white-space:nowrap; }
    .orig-line { margin:2px 0 3px; }
    .cite-badge { font-size:11px; background:#e5ecd8; color:#3f5e2e; border:1px solid #b7c99a; border-radius:9px; padding:1px 8px; }
    .own-badge { font-size:11px; background:#ece0c0; color:#7a5230; border:1px solid var(--line); border-radius:9px; padding:1px 8px; font-style:italic; }
    .pop-strip { display:flex; gap:4px; overflow-x:auto; margin:5px 0 2px; padding-bottom:3px; }
    .pop-strip a { flex:0 0 auto; }
    .pop-strip img { height:46px; width:auto; border:1px solid var(--line); border-radius:3px; display:block; }
    .pop-strip img:hover { border-color:#7a2e2e; }
    .est-warn { color:#9c2b2b; font-size:10.5px; font-style:normal; }
    .est-toggle, .rel-btn { font-family:'EB Garamond',serif; font-size:12.5px; background:#e6d3b0; border:1px solid var(--panel-edge);
      border-radius:6px; padding:3px 10px; cursor:pointer; color:var(--ink); margin:7px 4px 2px 0; }
    .est-toggle:hover, .rel-btn:hover { background:#dcc79a; }
    .est-box { display:none; border-left:3px solid #8a6f45; background:#e9dcbb; padding:6px 9px; margin:5px 0; font-size:12.5px; line-height:1.4; }
    .est-box.open { display:block; }
    .rel-box { display:none; border-left:3px solid #8a6f45; background:#efe4c6; padding:5px 6px 5px 10px; margin:5px 0; }
    .rel-box.open { display:block; }
    .rel-list { list-style:none; margin:0; padding:0; }
    .rel-list li { font-size:12.5px; line-height:1.42; padding:3px 0; border-bottom:1px solid rgba(138,111,69,.18); }
    .rel-list li:last-child { border-bottom:0; }
    .rel-pill { display:inline-block; color:#fff; font-size:10px; letter-spacing:.02em; padding:1px 6px; border-radius:9px; vertical-align:1px; }
    .rel-dir { color:#6f5628; font-weight:700; }
    .rel-go { text-decoration:none; font-size:14px; color:#2b5d8c; }
    .rel-go:hover { color:#9c2b2b; }
    .th-member { margin:5px 0 3px; font-size:11.5px; color:var(--ink-soft); display:flex; flex-wrap:wrap; align-items:center; gap:4px; line-height:1.5; }
    .th-mchip { font-family:'EB Garamond',serif; font-size:11px; background:#ece0c0; border:1px solid var(--panel-edge); border-radius:11px; padding:2px 8px; cursor:pointer; display:inline-flex; align-items:center; gap:4px; color:var(--ink); white-space:normal; max-width:100%; text-align:left; }
    .th-mchip:hover { background:#e0cfa4; }
    .th-mchip .tier-badge { font-size:9px; padding:0 4px; }
    .est-hr { border:none; border-top:1px dotted var(--line); margin:5px 0; }


/* --- inline "revised N× ▾" marker (GitHub-style; only on changed nodes) --- */
.rev-marker { display: inline-flex; align-items: center; gap: 3px; margin: 4px 0 2px; padding: 1px 7px; font-size: 11px; color: #6b5330; background: rgba(150,120,70,.10); border: 1px solid rgba(150,120,70,.22); border-radius: 10px; cursor: pointer; font-family: inherit; }
.rev-marker:hover { color: #3a2713; background: rgba(150,120,70,.16); }
.rev-caret { opacity: .55; }
.rev-box { display: none; margin: 3px 0 4px; padding: 4px 0 4px 9px; border-left: 2px solid #b9a06a; font-size: 13px; color: var(--ink); }
.rev-box.open { display: block; }
.rev-since { color: #4a3a22; font-size: 12px; margin-bottom: 3px; }
.rev-row { line-height: 1.5; }
.rev-d { font-variant-numeric: tabular-nums; color: #5c4a34; margin-right: 5px; }
