/* ═══════════════════════════════════════════════════════════════
   /wesley/ — The Wesley File. Depth/evidence page.
   Page-scoped styles + np-* lightbox subset (shared engine: /js/np-tabs.js).
   House style mirrors /human-disposal/. Palette + enforced min text sizes
   per project CLAUDE.md.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:            #0c0c12;
  --surface:       #111119;
  --card:          #161622;
  --elevated:      #1c1c2a;
  --panel:         #12121c;
  --border:        #2a2a3c;
  --border-dim:    #1e1e2e;
  --border-bright: #3a3a50;
  --text:          #e1d9eb;
  --text-bright:   #f0f0f0;
  --text-white:    #ffffff;
  --text-dim:      #b0b0b0;
  --text-muted:    #707070;
  --text-subtle:   #a0a0a0;
  --gold:          #ffb732;
  --red:           #ff5545;
  --blue:          #3a86ba;
  --cyan:          #4eecc8;
  --purple:        #b990e6;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at center top, rgba(58,134,186,0.13), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  background-position: top center;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE WRAPPER ── */
.wl { max-width: 1100px; margin: 0 auto; padding: 0 22px 80px; }
.wl a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted rgba(78,236,200,0.4); }
.wl a:hover { color: var(--text-white); border-bottom-color: var(--text-white); }

/* ── HERO ── */
.wl-hero { position: relative; padding: 72px 24px 48px; text-align: center; }
.wl-badge { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 4px; text-transform: uppercase; border: 1px solid rgba(58,134,186,0.45); background: var(--bg); padding: 8px 22px; border-radius: 4px; margin-bottom: 26px; }
.wl-title { font-family: var(--sans); font-size: clamp(38px, 6vw, 64px); line-height: 1.08; font-weight: 700; margin: 0 auto 22px; letter-spacing: -0.8px; color: var(--text-white); max-width: 960px; }
.wl-title em { font-style: normal; color: var(--blue); }
.wl-lede { font-size: 18px; color: var(--text-dim); margin: 0 auto 20px; line-height: 1.78; max-width: 880px; text-align: left; }
.wl-lede strong { color: var(--text-white); font-weight: 600; }
.wl-lede em { color: var(--cyan); font-style: italic; font-weight: 500; }

.wl-hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 36px auto 0; max-width: 980px; }
.wl-hero-stat { text-align: center; min-width: 130px; }
.wl-hero-stat .num { font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--blue); line-height: 1; letter-spacing: -0.5px; display: block; }
.wl-hero-stat .num.white { color: var(--text-white); }
.wl-hero-stat .num.cyan { color: var(--cyan); }
.wl-hero-stat .num.red { color: var(--red); }
.wl-hero-stat .label { font-family: var(--mono); font-size: 12px; color: var(--text-dim); letter-spacing: 1.6px; text-transform: uppercase; margin-top: 12px; display: block; line-height: 1.4; }

/* ── EVIDENTIARY LEGEND ── */
.wl-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; max-width: 920px; }
.wl-legend .item { font-family: var(--mono); font-size: 12px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 4px; padding: 7px 13px; background: var(--surface); }
.wl-legend .item b { color: var(--text-white); font-weight: 700; }

/* ── TIER CHIPS (inline) ── */
.wl-tier { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; letter-spacing: 0.4px; vertical-align: middle; white-space: nowrap; }
.wl-tier.t1 { color: var(--cyan);   border: 1px solid rgba(78,236,200,0.45); }
.wl-tier.t2 { color: var(--gold);   border: 1px solid rgba(255,183,50,0.45); }
.wl-tier.t3 { color: var(--purple); border: 1px solid rgba(185,144,230,0.45); }

/* ── SECTION NAV (sticky) ── */
.wl-section-nav { position: sticky; top: 0; z-index: 50; background: rgba(12,12,18,0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--border-dim); margin: 0 -22px 24px; }
.wl-section-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; list-style: none; padding: 0 12px; }
.wl-section-nav a { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text-dim); letter-spacing: 1.4px; text-transform: uppercase; padding: 14px 14px; display: block; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.wl-section-nav a:hover { color: var(--text-white); border-bottom-color: var(--blue); }

/* ── SECTIONS ── */
.wl-section { padding: 54px 0; border-bottom: 1px solid var(--border-dim); scroll-margin-top: 56px; }
.wl-section:last-of-type { border-bottom: none; }
.wl-section-label { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.wl-section-title { font-family: var(--sans); font-size: clamp(26px, 3.4vw, 33px); line-height: 1.2; font-weight: 700; margin: 0 0 22px; color: var(--text-white); letter-spacing: -0.4px; }
.wl-section-title em { font-style: normal; color: var(--cyan); }
.wl-subsection-title { font-family: var(--sans); font-size: 22px; line-height: 1.3; font-weight: 600; margin: 34px 0 14px; color: var(--text-bright); letter-spacing: -0.1px; }
.wl-section p { font-size: 16px; line-height: 1.78; color: var(--text); margin-bottom: 16px; }
.wl-section p strong { color: var(--text-white); }
.wl-section p em { color: var(--cyan); font-style: italic; font-weight: 500; }
.wl-section p:last-child { margin-bottom: 0; }
.wl-section code { font-family: var(--mono); font-size: 13.5px; color: var(--cyan); background: var(--card); padding: 1px 6px; border-radius: 3px; border: 1px solid rgba(78,236,200,0.22); word-break: break-word; }
.wl-big { font-family: var(--mono); font-weight: 700; color: var(--red); letter-spacing: -0.5px; }

/* ── "IN PLAIN TERMS" — layman's-pass box ── */
.wl-layman { background: rgba(78,236,200,0.05); border: 1px solid rgba(78,236,200,0.28); border-left: 3px solid var(--cyan); border-radius: 4px; padding: 18px 24px; margin: 26px 0; }
.wl-layman .tag { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--cyan); letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 9px; }
.wl-layman p { font-size: 16px; line-height: 1.72; color: var(--text); margin: 0; }
.wl-layman p strong { color: var(--text-white); }

/* ── CALLOUT / QUOTE / ESTABLISHES ── */
.wl-callout { background: var(--card); border: 1px solid rgba(58,134,186,0.38); border-left: 4px solid var(--blue); border-radius: 4px; padding: 20px 26px; margin: 28px 0; }
.wl-callout p { font-size: 16px; line-height: 1.74; color: var(--text); }
.wl-callout.gold { border-color: rgba(255,183,50,0.30); border-left-color: var(--gold); }
.wl-callout.red { border-color: rgba(255,85,69,0.30); border-left-color: var(--red); }
.wl-establishes { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--cyan); border-radius: 4px; padding: 18px 24px; margin: 30px 0 0; font-size: 17px; color: var(--text-bright); }
.wl-establishes strong { color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }
.wl-establishes em { color: var(--cyan); font-style: italic; }
.wl-note { font-size: 14px; color: var(--text-subtle); line-height: 1.7; margin: 18px 0; padding: 14px 20px; border: 1px dashed var(--border-bright); border-radius: 4px; background: rgba(255,255,255,0.015); }
.wl-note strong { color: var(--text-dim); }

/* ── EMBEDDED FLICKER VIEWER ── */
.wl-viewer { margin: 30px 0 12px; border: 1px solid var(--border-bright); border-radius: 6px; overflow: hidden; background: #0e0e15; box-shadow: 0 18px 60px -28px #000e; }
.wl-viewer iframe { display: block; width: 100%; height: 780px; border: 0; background: #0e0e15; }
.wl-viewer-cap { font-family: var(--mono); font-size: 13px; color: var(--text-dim); text-align: center; margin: 10px 0 0; line-height: 1.6; }
.wl-viewer-cap strong { color: var(--text-bright); }

/* ── SIDE-BY-SIDE HASH-MATCH PAIRS ── */
.wl-pair { background: var(--card); border: 1px solid var(--border-bright); border-left: 3px solid var(--blue); border-radius: 4px; padding: 22px 22px 24px; margin: 28px 0; }
.wl-pair-header { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text-subtle); letter-spacing: 0.6px; margin-bottom: 16px; text-transform: uppercase; line-height: 1.35; }
.wl-pair-header strong { color: var(--text-bright); font-weight: 700; }
.wl-pair-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wl-pair-images.cols-3 { grid-template-columns: repeat(3, 1fr); }
.wl-pair-images.cols-4 { grid-template-columns: repeat(4, 1fr); }
.wl-pair-image { background: #fff; border: 1px solid var(--border); border-radius: 3px; padding: 5px; cursor: zoom-in; transition: border-color 0.15s, box-shadow 0.15s; }
.wl-pair-image:hover { border-color: var(--cyan); box-shadow: 0 4px 14px rgba(78,236,200,0.18); }
.wl-pair-image img { display: block; width: 100%; height: auto; }
.wl-pair-image-label { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text-dim); text-align: center; margin-top: 8px; letter-spacing: 0.4px; }
.wl-pair-hash { display: block; font-family: var(--mono); font-size: 13px; color: var(--cyan); word-break: break-all; background: var(--surface); padding: 10px 14px; border-radius: 3px; border: 1px solid rgba(78,236,200,0.30); margin: 16px 0 6px; letter-spacing: 0.3px; }
.wl-pair-caption { font-size: 16px; color: var(--text); margin-top: 12px; line-height: 1.72; }
.wl-pair-caption strong { color: var(--text-white); }
.wl-pair-caption em { color: var(--cyan); font-style: italic; }
@media (max-width: 720px) {
  .wl-pair-images, .wl-pair-images.cols-3, .wl-pair-images.cols-4 { grid-template-columns: 1fr 1fr; }
}

/* ── CSV TABLE (Tabulator wrapper) ── */
.wl-csv-table { background: var(--card); border: 1px solid var(--border); border-radius: 4px; margin: 22px 0; min-height: 420px; max-height: 640px; overflow: hidden; }
.wl-csv-fallback { font-family: var(--mono); font-size: 13px; color: var(--text-dim); padding: 18px; }
/* Tabulator — dark theme matching /source-files/ */
.wl-csv-table .tabulator { background: #0c0c12; border: none; font-size: 13px; }
.wl-csv-table .tabulator-header { background: #161622; border-bottom: 2px solid #3a3a50; }
.wl-csv-table .tabulator-col { background: #161622; border-right: 1px solid #1e1e2e; }
.wl-csv-table .tabulator-col .tabulator-col-title { font-family: var(--mono); font-size: 11px; color: #a0a0a0; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.wl-csv-table .tabulator-row { background: #0e0e16; color: var(--text); border-bottom: 1px solid #1a1a22; }
.wl-csv-table .tabulator-row.tabulator-row-even { background: #121218; }
.wl-csv-table .tabulator-row:hover { background: #1e1e30 !important; }
.wl-csv-table .tabulator-row .tabulator-cell { border-right: 1px solid #1a1a22; padding: 9px 12px; font-size: 13px; line-height: 1.5; }
/* group header = whole-row toggle (groupToggleElement:'header'). Text BLUE; chevron + state-cue CYAN so the toggle reads as distinct from the label. */
.wl-csv-table .tabulator-row.tabulator-group { position: relative; background: #14141f; color: #3a86ba; font-family: var(--mono); font-size: 12.5px; font-weight: 700; padding: 11px 132px 11px 40px; border-top: 1px solid #2a2a3c; border-bottom: 1px solid #2a2a3c; cursor: pointer; word-break: break-all; line-height: 1.55; transition: background .12s ease; }
.wl-csv-table .tabulator-row.tabulator-group:hover { background: #20203a !important; }
.wl-csv-table .tabulator-row.tabulator-group.tabulator-group-visible { background: #191926; }
.wl-csv-table .tabulator-group .tabulator-group-toggle { display: none !important; }   /* hide tiny native arrow — replaced by the chevron below */
.wl-csv-table .tabulator-group::before { content: "\25B8"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-size: 15px; line-height: 1; }
.wl-csv-table .tabulator-group.tabulator-group-visible::before { content: "\25BE"; }
.wl-csv-table .tabulator-group::after { content: "tap to expand"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; opacity: .85; }
.wl-csv-table .tabulator-group.tabulator-group-visible::after { content: "tap to collapse"; }

/* ── PROVENANCE DOWNLOADS ── */
.wl-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 22px 0; }
.wl-dl { display: block; background: var(--card); border: 1px solid var(--border-bright); border-left: 3px solid var(--blue); border-radius: 4px; padding: 16px 18px; text-decoration: none !important; border-bottom: 1px solid var(--border-bright) !important; transition: border-color 0.15s, background 0.15s, transform 0.05s; }
.wl-dl:hover { background: var(--elevated); border-left-color: var(--cyan); transform: translateY(-1px); }
.wl-dl .name { display: block; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--text-white); letter-spacing: 0.2px; }
.wl-dl .meta { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-dim); margin-top: 7px; line-height: 1.5; }

/* ── IMPOSSIBILITY CARDS ── */
.wl-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0; }
.wl-card { background: var(--card); border: 1px solid var(--border-bright); border-top: 3px solid var(--red); border-radius: 4px; padding: 20px 22px; }
.wl-card h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--text-white); margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.1px; }
.wl-card p { font-size: 15px; line-height: 1.68; color: var(--text); margin: 0; }
.wl-card p strong { color: var(--text-white); }
.wl-card .wl-xref-row { margin-top: 12px; }
@media (max-width: 720px) { .wl-cards { grid-template-columns: 1fr; } }

/* ── TWO DOORS (forced binary) ── */
.wl-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.wl-door { background: var(--card); border: 1px solid var(--border-bright); border-radius: 6px; padding: 24px 26px; }
.wl-door.a { border-top: 3px solid var(--gold); }
.wl-door.b { border-top: 3px solid var(--purple); }
.wl-door .door-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.wl-door.a .door-tag { color: var(--gold); }
.wl-door.b .door-tag { color: var(--purple); }
.wl-door h3 { font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--text-white); margin-bottom: 12px; line-height: 1.3; letter-spacing: -0.2px; }
.wl-door p { font-size: 15.5px; line-height: 1.7; color: var(--text); margin: 0; }
@media (max-width: 720px) { .wl-doors { grid-template-columns: 1fr; } }

/* ── CROSS-LINK BUTTONS ── */
.wl-xref-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.wl-xref { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--cyan); background: rgba(78,236,200,0.06); border: 1px solid rgba(78,236,200,0.40); border-radius: 4px; padding: 8px 14px; letter-spacing: 0.6px; text-decoration: none !important; border-bottom: 1px solid rgba(78,236,200,0.40) !important; transition: all 0.15s; }
.wl-xref:hover { color: var(--text-white) !important; background: rgba(78,236,200,0.18); border-color: var(--cyan) !important; }

/* ── FINAL CODA ── */
.wl-coda { background: linear-gradient(180deg, rgba(255,85,69,0.08), rgba(58,134,186,0.04)); border: 2px solid var(--red); border-radius: 6px; padding: 34px 44px; margin: 44px 0 0; font-family: var(--sans); font-size: 21px; font-weight: 600; font-style: italic; line-height: 1.5; color: var(--text-white); text-align: center; letter-spacing: -0.1px; }
@media (max-width: 720px) { .wl-coda { font-size: 17px; padding: 26px 22px; } }

/* ═══════════════════════════════════════════════════════════════
   NP-TABS UI (shared engine /js/np-tabs.js) — expandable PDF viewers
   ═══════════════════════════════════════════════════════════════ */
.wl-np-host { margin: 22px 0 10px; }
.wl-np-intro { font-size: 15px; color: var(--text-dim); margin: 0 0 12px; line-height: 1.6; }
.np-block { margin: 8px 0 4px; }
.np-tabs { display: grid; grid-template-columns: 1fr; gap: 6px; }
.np-tabs.cols-2 { grid-template-columns: repeat(2, 1fr); }
.np-tabs.cols-3 { grid-template-columns: repeat(3, 1fr); }
.np-tabs.cols-4 { grid-template-columns: repeat(4, 1fr); }
.np-tab { font-family: var(--mono); font-size: 12px; font-weight: 700; color: #cccccc; background: var(--card); border: 1px solid #cccccc; border-radius: 4px; padding: 12px 16px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; line-height: 1.25; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.np-tab:hover { color: var(--text-white); background: rgba(204,204,204,0.10); border-color: #cccccc; }
.np-tab.active { color: #000; background: #cccccc; border-color: #cccccc; }
.np-viewer { display: none; width: 100%; margin-top: 6px; background: var(--card); border: 1px solid #cccccc; border-radius: 4px; overflow: hidden; position: relative; min-height: 720px; }
.np-viewer.open { display: block; }
.np-csv-content { position: relative; width: 100%; height: 100%; min-height: 720px; overflow: hidden; }
.np-csv-content.np-single { min-height: 0; }
.np-pdf-frame { width: 100%; height: 100%; min-height: 720px; border: 0; background: #1a1a2a; display: block; }
.np-single-img { display: block; max-width: 100%; height: auto; cursor: zoom-in; margin: 0 auto; }
.np-loading { padding: 24px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); text-align: center; }
.np-embed-wrap { width: 100%; height: 100%; min-height: 720px; }
@media (max-width: 820px) {
  .np-tabs.cols-3, .np-tabs.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .np-viewer, .np-pdf-frame, .np-csv-content { min-height: 560px; }
}
.np-tabs.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 520px) { .np-tabs.cols-2, .np-tabs.cols-3, .np-tabs.cols-4, .np-tabs.cols-5 { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .np-tabs.cols-5 { grid-template-columns: repeat(2, 1fr); } }

/* ═══════════════════════════════════════════════════════════════
   §1 THE WARD — stat strip · quote accordion · image grid
   ═══════════════════════════════════════════════════════════════ */
.wl-statstrip { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; margin: 26px 0; padding: 24px 22px; background: var(--surface); border: 1px solid var(--border-bright); border-radius: 6px; }
.wl-statstrip .s { text-align: center; min-width: 96px; }
.wl-statstrip .num { display: block; font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--red); line-height: 1; letter-spacing: -0.5px; }
.wl-statstrip .num.dim { color: var(--text-white); }
.wl-statstrip .lab { display: block; font-family: var(--mono); font-size: 14px; color: var(--text-dim); letter-spacing: 0.5px; margin-top: 10px; line-height: 1.45; }

/* quote accordion (theme buttons → quote cards → source PDF at page) */
.np-card-list { display: flex; flex-direction: column; gap: 6px; padding: 10px; max-height: 100%; overflow-y: auto; }
.np-card { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--border-bright); border-left: 3px solid var(--gold); border-radius: 5px; padding: 13px 16px; cursor: pointer; text-align: left; line-height: 1.55; transition: background 0.12s, border-color 0.12s, color 0.12s; }
.np-card:hover { background: var(--elevated); border-left-color: var(--cyan); color: var(--text-white); }
.np-card .src { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-top: 7px; letter-spacing: 0.3px; }
.np-card-overlay { position: absolute; inset: 0; display: none; flex-direction: column; background: var(--card); z-index: 2; }
.np-card-overlay.open { display: flex; }
.np-card-overlay .np-back { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #cccccc; background: #1a1a28; border: none; border-bottom: 1px solid var(--border-bright); padding: 12px 16px; cursor: pointer; text-align: left; letter-spacing: 1px; text-transform: uppercase; }
.np-card-overlay .np-back:hover { color: var(--text-white); background: #22222e; }
.np-card-overlay .np-pdf-frame { flex: 1 1 auto; min-height: 0; }

/* scrollable 3-col image grid (one row visible) */
.wl-imggrid { max-height: 206px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px; margin: 18px 0; }
.np-img-grid { display: grid; gap: 8px; }
.np-img-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.np-img-thumb { aspect-ratio: 16 / 9; background-color: #1a1a2a; background-size: cover; background-position: center top; border: 1px solid var(--border); border-radius: 4px; cursor: zoom-in; filter: brightness(0.85); transition: filter 0.18s, border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.np-img-thumb:hover { filter: brightness(1.05); border-color: var(--cyan); box-shadow: 0 6px 18px rgba(78,236,200,0.20); transform: scale(1.01); }
@media (max-width: 600px) { .np-img-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } .wl-imggrid { max-height: 210px; } }

/* ═══════════════════════════════════════════════════════════════
   NP-* lightbox subset (shared with /js/np-tabs.js openLightbox)
   ═══════════════════════════════════════════════════════════════ */
.np-lightbox { position: fixed; inset: 0; display: none; z-index: 9999; background: rgba(0,0,0,0.94); align-items: center; justify-content: center; }
.np-lightbox.open { display: flex; }
.np-lightbox .lb-img { max-width: 94vw; max-height: 90vh; display: block; background: #fff; border-radius: 4px; }
.np-lightbox .lb-prev, .np-lightbox .lb-next, .np-lightbox .lb-close { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-family: var(--mono); font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s, border-color 0.15s; }
.np-lightbox .lb-prev:hover, .np-lightbox .lb-next:hover, .np-lightbox .lb-close:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.np-lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.np-lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.np-lightbox .lb-close { top: 18px; right: 18px; font-size: 24px; }
.np-lightbox .lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.65); letter-spacing: 2px; }
@media (max-width: 520px) {
  .np-lightbox .lb-prev { left: 8px; width: 40px; height: 40px; font-size: 22px; }
  .np-lightbox .lb-next { right: 8px; width: 40px; height: 40px; font-size: 22px; }
}

/* ── MOBILE CATCH-ALL ── */
@media (max-width: 720px) {
  .wl { padding: 0 16px 60px; }
  .wl-hero { padding: 44px 8px 36px; }
  .wl-section { padding: 40px 0; }
  .wl-section-title { font-size: 25px; }
  .wl-subsection-title { font-size: 19px; }
  .wl-hero-stat .num { font-size: 32px; }
  .wl-hero-stats { gap: 22px; }
  .wl-hero-stat { min-width: 104px; }
  .wl-section-nav { margin: 0 -16px 18px; }
  .wl-section-nav a { padding: 12px 11px; font-size: 11px; letter-spacing: 1.1px; }
  .wl-viewer iframe { height: 600px; }
}
