/* Npaper reader viewer */

:root {
  --nv-ink: #17171a;
  --nv-ink-2: #55555b;
  --nv-ink-3: #6b6b72;
  --nv-ink-4: #8a8a90;
  --nv-off: #c4c2bc;
  --nv-line: #e7e5e0;
  --nv-line-2: #dedbd4;
  --nv-line-3: #eeece7;
  --nv-paper: #fff;
  --nv-stage: #edebe6;
  --nv-soft: #f4f2ee;
  --nv-soft-2: #f6f5f1;
  --nv-hover: #f0eee9;
  --nv-drawer: #fbfaf8;
  /* Brand: a paper can override these two */
  --nv-brand: #0d4a3c;
  --nv-brand-2: #0a3a2f;
  --nv-accent: #c6e01e;
  --nv-tint: #eef3d0;
  --nv-mark: #ffe066;
  --nv-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nv-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --nv-serif: 'Newsreader', Georgia, serif;
  --nv-pop-sh: 0 14px 36px rgba(0, 0, 0, .14);
  --nv-page-sh: 0 1px 3px rgba(0, 0, 0, .1), 0 18px 40px rgba(0, 0, 0, .12);
}

html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--nv-stage); font-family: var(--nv-sans); color: var(--nv-ink); -webkit-font-smoothing: antialiased; }
/* Resets carry no specificity so component rules below always win */
:where(.nv-app) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:where(.nv-app) button:disabled { cursor: default; }
:where(.nv-app) input { font: inherit; color: inherit; }
:where(.nv-app) a { color: var(--nv-brand); }
.nv-app :focus-visible { outline: 2px solid var(--nv-brand); outline-offset: 2px; }
.nv-noscript { padding: 24px; font-family: system-ui, sans-serif; }
.nv-app [hidden] { display: none !important; }

.nv-app { height: 100vh; height: 100dvh; min-height: 420px; display: flex; flex-direction: column; background: var(--nv-paper); position: relative; overflow: hidden; }
.nv-boot { margin: auto; font-size: 14px; color: var(--nv-ink-3); }
.nv-fatal { margin: auto; max-width: 420px; padding: 24px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--nv-ink-2); }
.nv-fatal h1 { font-family: var(--nv-serif); font-weight: 600; font-size: 26px; color: var(--nv-ink); margin: 0 0 8px; }

/* Buttons */
.nv-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--nv-ink); }
.nv-app a.nv-btn { color: var(--nv-ink); }
.nv-btn:hover, .nv-btn[aria-expanded="true"], .nv-btn[aria-pressed="true"] { background: var(--nv-soft); }
.nv-btn.is-static:hover { background: none; }
.nv-btn--sm { padding: 0 9px; font-size: 13px; }
.nv-btn--sm:disabled { color: var(--nv-off); background: none; }
.nv-ibtn { width: 34px; height: 34px; flex: none; border-radius: 8px; display: inline-grid; place-items: center; position: relative; color: var(--nv-ink); text-decoration: none; }
.nv-app a.nv-ibtn { color: var(--nv-ink); }
.nv-ibtn--lg { width: 36px; height: 36px; border-radius: 9px; }
.nv-ibtn:hover, .nv-ibtn[aria-expanded="true"] { background: var(--nv-soft); }
.nv-ibtn:disabled { opacity: .3; background: none; }
.nv-ibtn[aria-pressed="true"] { background: var(--nv-tint); color: var(--nv-brand); }
.nv-ibtn.is-saved { color: var(--nv-brand); }
.nv-ibtn.is-saved svg, .nv-ibtn.is-filled svg { fill: currentColor; }
.nv-caret { display: inline-flex; color: var(--nv-ink-4); }
.nv-caret svg { width: 12px; height: 12px; }
.nv-muted { color: var(--nv-ink-4); font-weight: 400; }
.nv-mono { font-family: var(--nv-mono); font-size: 11px; color: var(--nv-ink-4); white-space: nowrap; flex: none; }
.nv-spacer { flex: 1; }
.nv-vsep { width: 1px; height: 22px; background: var(--nv-line); margin: 0 4px; flex: none; }
.nv-link { color: var(--nv-brand); text-decoration: underline; text-underline-offset: 2px; }
.nv-badge { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box; border-radius: 999px; background: var(--nv-brand); color: #fff; font-size: 9.5px; font-weight: 600; display: grid; place-items: center; }

/* Segmented controls */
.nv-seg { display: flex; padding: 2px; background: var(--nv-soft); border-radius: 9px; flex: none; }
.nv-seg button { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500; display: inline-grid; place-items: center; }
.nv-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.nv-views button { width: 32px; padding: 0; }
.nv-seg--lg { padding: 3px; border-radius: 10px; }
.nv-seg--lg button { height: 38px; padding: 0 16px; border-radius: 8px; font-size: 14px; }

/* Top bar */
.nv-top { height: 56px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--nv-line); position: relative; z-index: 45; background: var(--nv-paper); box-sizing: border-box; transition: transform .22s ease, box-shadow .22s ease; }
.nv-mast { display: flex; align-items: center; flex: none; text-decoration: none; max-width: 200px; margin-right: 2px; }
.nv-app .nv-mast { color: var(--nv-ink); }
.nv-mast img { height: 24px; width: auto; max-width: 200px; display: block; object-fit: contain; }
.nv-mast span { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-issue-meta { margin-left: 2px; }
.nv-issue-short { display: none; }
.nv-dir { display: flex; align-items: center; gap: 2px; padding-left: 8px; border-left: 1px solid var(--nv-line); flex: none; }
.nv-dir .nv-btn { gap: 7px; padding: 0 9px; }
.nv-pnav { display: flex; align-items: center; gap: 1px; flex: none; }
.nv-pnav .nv-ibtn { width: 32px; }
.nv-pgbtn { gap: 5px; padding: 0 9px; }
.nv-pgbtn .nv-caret svg { width: 11px; height: 11px; }
.nv-tools { display: flex; align-items: center; gap: 1px; flex: none; }
.nv-app.is-m-text .nv-tools, .nv-app.is-m-text .nv-tools-menu { display: none; }
.nv-zoom { display: flex; align-items: center; gap: 2px; padding: 0 4px; }
.nv-zoom button { width: 26px; height: 34px; border-radius: 7px; font-size: 15px; color: var(--nv-ink-2); }
.nv-zoom button:hover { background: var(--nv-soft); color: var(--nv-ink); }
.nv-zoom input { width: 72px; accent-color: var(--nv-brand); cursor: pointer; }
.nv-pct { font-family: var(--nv-mono); font-size: 10.5px; color: var(--nv-ink-4); }
.nv-zoom .nv-pct { width: 34px; }
.nv-tools-menu { display: none; }
.nv-btn--tools { gap: 4px; padding: 0 8px; }
.nv-pop--tools { top: 42px; right: 0; width: 230px; display: flex; flex-direction: column; gap: 1px; }
.nv-zoom--menu { gap: 6px; padding: 8px 6px 4px; margin-top: 4px; border-top: 1px solid var(--nv-line-3); }
.nv-zoom--menu button { width: 30px; height: 30px; }
.nv-zoom--menu input { flex: 1; min-width: 0; width: auto; }
.nv-menu-row { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; font-weight: 500; text-align: left; }
.nv-menu-row:hover { background: var(--nv-soft); }
.nv-tools [data-act="tool"][aria-pressed="true"]:not([data-tool="pan"]), .nv-menu-row[aria-pressed="true"]:not([data-tool="pan"]) { background: var(--nv-tint); color: var(--nv-brand); }
.nv-tools [data-tool="pan"][aria-pressed="true"] { background: none; color: var(--nv-ink); }
.nv-menu-btn { display: none; }

/* Search */
.nv-search-wrap { position: relative; flex: 0 1 240px; min-width: 0; z-index: 30; }
.nv-search { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 12px; background: var(--nv-soft); border: 1.5px solid transparent; border-radius: 9px; box-sizing: border-box; color: var(--nv-ink-3); }
.nv-search.is-active { background: var(--nv-paper); border-color: var(--nv-ink); }
.nv-search svg { flex: none; }
.nv-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 13.5px; min-width: 0; color: var(--nv-ink); }
.nv-search input::-webkit-search-cancel-button { display: none; }
.nv-search .nv-clear { width: 20px; height: 20px; border-radius: 999px; color: var(--nv-ink-4); font-size: 13px; display: none; }
.nv-search.has-q .nv-clear { display: grid; place-items: center; }
.nv-search .nv-clear:hover { background: var(--nv-soft); color: var(--nv-ink); }
.nv-search-btn { display: none; }
.nv-pop--search { top: 42px; right: 0; width: 380px; max-height: 440px; display: flex; flex-direction: column; padding: 6px; }
.nv-srows { overflow-y: auto; min-height: 0; flex: 1; }
.nv-srow { display: flex; gap: 12px; align-items: center; width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; text-align: left; }
.nv-srow:hover, .nv-srow.is-on { background: var(--nv-soft); }

/* Popovers */
.nv-pop-wrap { position: relative; flex: none; }
.nv-pop { position: absolute; background: var(--nv-paper); border: 1px solid #e2dfd8; border-radius: 12px; box-shadow: var(--nv-pop-sh); padding: 6px; z-index: 50; box-sizing: border-box; }
.nv-pop--issues { top: 42px; left: 0; width: 280px; }
.nv-pop-h { padding: 8px 10px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--nv-ink-4); }
.nv-pop-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: 13.5px; text-decoration: none; }
.nv-app .nv-pop-row { color: var(--nv-ink); }
.nv-pop-row:hover { background: var(--nv-soft); }
.nv-pop-row.is-current { background: var(--nv-soft); font-weight: 600; }
.nv-pop-row-t { font-family: var(--nv-serif); font-style: italic; font-weight: 400; font-size: 12px; color: var(--nv-ink-4); white-space: nowrap; }
.nv-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--nv-line-3); margin-top: 4px; padding: 11px 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; border-radius: 0 0 7px 7px; flex: none; }
.nv-app .nv-pop-foot { color: var(--nv-ink); }
.nv-pop-foot:hover { background: var(--nv-soft); }
.nv-pop-empty { padding: 10px; font-size: 13px; color: var(--nv-ink-4); }

/* Body */
.nv-body { flex: 1; min-height: 0; display: flex; position: relative; }

/* Left drawers */
.nv-panel { width: 330px; flex: none; border-right: 1px solid var(--nv-line); background: var(--nv-drawer); display: flex; flex-direction: column; min-height: 0; z-index: 35; }
.nv-panel-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 4px 20px; font-family: var(--nv-serif); font-size: 22px; font-weight: 600; }
.nv-panel-h button { width: 32px; height: 32px; border-radius: 8px; color: var(--nv-ink-3); display: grid; place-items: center; }
.nv-panel-h button:hover { background: #efede8; }
.nv-panel-sub { padding: 0 20px 12px; font-size: 12.5px; color: var(--nv-ink-3); }
.nv-panel-filter { padding: 0 14px 10px; }
.nv-panel-filter input { width: 100%; box-sizing: border-box; height: 34px; padding: 0 12px; border: 1px solid var(--nv-line-2); border-radius: 8px; background: #fff; font-size: 13px; outline: 0; }
.nv-panel-filter input:focus { border-color: var(--nv-ink); }
.nv-panel-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 10px 16px; display: flex; flex-direction: column; gap: 1px; }
.nv-row { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; cursor: pointer; text-align: left; width: 100%; box-sizing: border-box; }
.nv-row:hover { background: var(--nv-hover); }
.nv-row.is-on { background: var(--nv-paper); }
.nv-row.is-on .nv-row-t { font-weight: 600; }
.nv-row-t { flex: 1; min-width: 0; font-size: 14px; }
.nv-row-thumb { width: 30px; height: 38px; flex: none; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); object-fit: cover; display: block; }
.nv-row-thumb--blank { background: var(--nv-soft); }
.nv-row-thumb--ad { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.nv-row-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nv-row-head { font-family: var(--nv-serif); font-size: 15px; font-weight: 600; line-height: 1.2; }
.nv-row-snip { font-size: 12px; color: var(--nv-ink-3); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nv-row-snip b { color: var(--nv-ink); background: var(--nv-mark); font-weight: 600; }
.nv-row-x { width: 26px; height: 26px; border-radius: 6px; color: var(--nv-ink-4); flex: none; }
.nv-row-x:hover { background: #e9e7e1; color: var(--nv-ink); }
.nv-letter { padding: 12px 10px 4px; font-family: var(--nv-mono); font-size: 11px; color: var(--nv-ink-4); }
.nv-writer { display: flex; flex-direction: column; padding: 6px 0 10px; border-bottom: 1px solid #eceae5; }
.nv-writer-h { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; text-align: left; }
.nv-writer-h:hover { background: var(--nv-hover); }
.nv-avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--nv-brand); color: var(--nv-accent); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; flex: none; }
.nv-writer-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nv-writer-name { font-size: 14.5px; font-weight: 600; }
.nv-writer-count { font-size: 12px; color: var(--nv-ink-3); white-space: nowrap; }
.nv-story { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px 7px 58px; border-radius: 7px; cursor: pointer; text-align: left; width: 100%; box-sizing: border-box; }
.nv-story:hover { background: var(--nv-hover); }
.nv-story.is-on { background: var(--nv-paper); }
.nv-story span:first-child { flex: 1; font-family: var(--nv-serif); font-size: 15px; line-height: 1.25; }
.nv-menu-big { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 12px; border-radius: 10px; font-size: 16px; font-weight: 500; text-align: left; text-decoration: none; width: 100%; box-sizing: border-box; }
.nv-app .nv-menu-big { color: var(--nv-ink); }
.nv-menu-big:hover { background: var(--nv-hover); }
.nv-menu-big span:nth-child(2) { flex: 1; }
.nv-menu-big svg { width: 18px; height: 18px; }
.nv-empty { padding: 18px 10px; font-size: 13.5px; color: var(--nv-ink-3); line-height: 1.5; }

/* Stage */
.nv-stage { flex: 1; min-width: 0; position: relative; background: var(--nv-stage); }
.nv-scroll { position: absolute; inset: 0; overflow: auto; display: flex; padding: 20px 64px; box-sizing: border-box; scrollbar-width: thin; }
.nv-spread { position: relative; flex: none; margin: auto; perspective: 2800px; user-select: none; -webkit-user-select: none; }
.nv-spread.is-zoomed { cursor: grab; }
.nv-spread.is-fit { cursor: zoom-in; }
.nv-spread.is-panning, .nv-list.is-panning { cursor: grabbing; }
.nv-slot { position: absolute; top: 0; height: 100%; display: flex; align-items: center; }
.nv-slot--l { justify-content: flex-end; }
.nv-slot--r { justify-content: flex-start; }
.nv-page { position: relative; background: #fff; box-shadow: var(--nv-page-sh); overflow: hidden; }
.nv-page img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.nv-gutter { position: absolute; inset: 0; pointer-events: none; }
.nv-slot--l .nv-gutter { background: linear-gradient(to left, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0) 6%); }
.nv-slot--r.is-paired .nv-gutter { background: linear-gradient(to right, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 7%); }
.nv-layer { position: absolute; inset: 0; }
/* Story hotspots: on hover the story is tinted like a highlighter pen; multiply keeps the print crisp */
.nv-area { position: absolute; border-radius: 3px; cursor: pointer; mix-blend-mode: multiply; transition: background-color .12s ease-out, box-shadow .12s ease-out; }
/* is-hover: the pointer is over the story through a page-turn edge (see bind() in viewer.js) */
.nv-area:hover, .nv-area.is-hover, .nv-area.is-open { background: rgba(255, 216, 77, .22); box-shadow: 0 0 0 1px rgba(214, 170, 0, .28); }
/* Stories with extracted text: only their printed lines light up, nothing is drawn around them */
.nv-area.has-lines:hover, .nv-area.has-lines.is-hover, .nv-area.has-lines.is-open { background: none; box-shadow: none; }
.nv-area > i { position: absolute; background: rgba(255, 216, 77, .6); border-radius: 1px; opacity: 0; transition: opacity .12s ease-out; pointer-events: none; }
.nv-area:hover > i, .nv-area.is-hover > i, .nv-area.is-open > i { opacity: 1; }
.nv-hl { position: absolute; background: rgba(255, 224, 102, .7); mix-blend-mode: multiply; border-radius: 2px; pointer-events: none; }
.nv-edge { position: absolute; top: 0; bottom: 0; width: 9%; z-index: 5; cursor: pointer; }
.nv-edge--prev { left: 0; }
.nv-edge--next { right: 0; }

/* Page corner curl: hovering the top or bottom half of an edge peels that corner up */
.nv-edge-h { position: absolute; left: 0; right: 0; height: 50%; }
.nv-edge-h--t { top: 0; }
.nv-edge-h--b { bottom: 0; }
.nv-curl { position: absolute; width: 0; height: 0; pointer-events: none; transition: width .2s ease-out, height .2s ease-out; filter: drop-shadow(-3px 3px 4px rgba(0, 0, 0, .28)); }
.nv-curl::before, .nv-curl::after { content: ''; position: absolute; inset: 0; }
/* The lifted-off corner shows the stage behind the page… */
.nv-curl::before { background: var(--nv-stage); clip-path: polygon(0 0, 100% 0, 100% 100%); }
/* …and the flap is the back of the page, folded over along the diagonal */
.nv-curl::after { background: linear-gradient(45deg, #fff 0%, #f4f3f0 26%, #dedbd5 44%, #c8c5be 50%); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.nv-edge--next .nv-curl { right: 0; }
.nv-edge--prev .nv-curl { left: 0; }
.nv-edge-h--t .nv-curl { top: 0; }
.nv-edge-h--b .nv-curl { bottom: 0; }
.nv-edge--prev .nv-edge-h--t .nv-curl { transform: scaleX(-1); }
.nv-edge--next .nv-edge-h--b .nv-curl { transform: scaleY(-1); }
.nv-edge--prev .nv-edge-h--b .nv-curl { transform: scale(-1, -1); }
.nv-edge-h:hover .nv-curl { width: var(--nv-curl, 72px); height: var(--nv-curl, 72px); }
/* Over a story the edge steps aside: no curl, the story lights up and opens on click */
.nv-edge.is-over-story .nv-curl { display: none; }
.nv-spread.is-turning .nv-edge { display: none; }

/* Page turn leaf */
.nv-leaf { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; transition: transform .62s cubic-bezier(.45, .05, .35, 1); z-index: 3; }
/* Leaf faces carry the same drop shadow and spine shadow as the pages they become, so nothing pops in when the turn ends */
.nv-leaf-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; overflow: hidden; box-shadow: var(--nv-page-sh); }
.nv-leaf-face img { width: 100%; height: 100%; display: block; }
.nv-leaf-face--back { transform: rotateY(180deg); }
.nv-leaf-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.nv-leaf-face.is-spine-l::after { background: linear-gradient(to left, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0) 6%); }
.nv-leaf-face.is-spine-r::after { background: linear-gradient(to right, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 7%); }
.nv-scroll.is-turning { overflow: hidden; }

/* Text + Pages: every page in one column */
.nv-app.is-m-text .nv-scroll { padding: 24px 24px 40px; overflow-x: hidden; }
.nv-list { position: relative; flex: none; align-self: flex-start; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; user-select: none; -webkit-user-select: none; }
.nv-litem { position: relative; flex: none; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 14px 32px rgba(0, 0, 0, .1); }
.nv-litem .nv-page { box-shadow: none; }
.nv-litem .nv-gutter { display: none; }

/* Selection tools */
.nv-sel { position: absolute; inset: 0; z-index: 7; background: rgba(23, 23, 26, .04); cursor: crosshair; }
.nv-sel.is-text { cursor: text; }
.nv-clip { position: absolute; outline: 2px dashed var(--nv-ink); background: rgba(198, 224, 30, .22); pointer-events: none; }
.nv-sel.is-text .nv-clip { outline-style: solid; }
.nv-clip-bar { position: absolute; display: flex; gap: 2px; padding: 4px; background: var(--nv-ink); color: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: 12.5px; white-space: nowrap; z-index: 9; }
.nv-app .nv-clip-bar button { height: 30px; padding: 0 12px; border-radius: 7px; font-weight: 500; color: #fff; }
.nv-app .nv-clip-bar button:hover { background: #2c2c31; }
.nv-app .nv-clip-bar button.nv-x { width: 30px; padding: 0; color: #9a9aa0; }
.nv-mode-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; background: #fff; border: 1.5px solid var(--nv-ink); border-radius: 999px; font-size: 12.5px; font-weight: 500; z-index: 11; white-space: nowrap; }
.nv-app .nv-mode-hint button { height: 26px; padding: 0 12px; border-radius: 999px; background: var(--nv-ink); color: #fff; font-size: 12px; }

/* Side tabs to turn the page */
.nv-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 64px; border-radius: 10px; color: var(--nv-ink-2); display: grid; place-items: center; z-index: 10; transition: opacity .15s, background-color .15s; }
.nv-app .nv-arrow { background: rgba(255, 255, 255, .55); }
.nv-app .nv-arrow:hover { background: #fff; color: var(--nv-ink); }
.nv-arrow:disabled { opacity: .3; }
.nv-arrow--prev { left: 12px; }
.nv-arrow--next { right: 12px; }
.nv-app.is-m-text .nv-arrow { display: none; }

/* Resizable divider */
.nv-split { width: 10px; margin: 0 -5px; flex: none; position: relative; z-index: 31; cursor: col-resize; display: flex; align-items: center; justify-content: center; }
.nv-split:hover { background: rgba(13, 74, 60, .06); }
.nv-split i { width: 4px; height: 44px; border-radius: 999px; background: #c9c6bf; box-shadow: 0 0 0 2px #fff; }
.nv-split.is-on i { background: var(--nv-brand); }

/* Right column: stories list or the open article */
.nv-side { flex: none; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--nv-line); position: relative; z-index: 30; }
.nv-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nv-content-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 28px 14px; border-bottom: 1px solid var(--nv-line-3); flex: none; }
.nv-content-h h2 { margin: 0; font-family: var(--nv-serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.nv-content-h span { font-size: 12.5px; color: var(--nv-ink-3); white-space: nowrap; }
.nv-content-b { flex: 1; min-height: 0; overflow-y: auto; padding: 0 28px 32px; }
.nv-cn-group { display: flex; flex-direction: column; gap: 4px; padding: 18px 0 6px; }
.nv-cn-pg { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nv-ink-3); padding: 2px 0 8px; }
.nv-cn-pg i { width: 6px; height: 6px; border-radius: 999px; background: #d6d3cc; }
.nv-cn-pg span { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--nv-ink-4); }
.nv-cn-group.is-on .nv-cn-pg { color: var(--nv-brand); }
.nv-cn-group.is-on .nv-cn-pg i { background: var(--nv-accent); }
.nv-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 12px 10px; margin: 0 -10px; border-radius: 10px; text-align: left; }
.nv-card:hover { background: var(--nv-soft-2); }
.nv-card.is-on { background: var(--nv-soft); }
.nv-card-th { width: 88px; height: 88px; position: relative; overflow: hidden; border-radius: 4px; background: #e9e7e1; }
.nv-card-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-card-th img.nv-card-pg { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 70px; height: auto; object-fit: initial; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.nv-card-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nv-card-head { font-family: var(--nv-serif); font-size: 18.5px; font-weight: 600; line-height: 1.15; letter-spacing: -.005em; text-wrap: pretty; }
.nv-card.is-front .nv-card-head { font-size: 21px; }
.nv-card-deck { font-family: var(--nv-serif); font-size: 15.5px; line-height: 1.35; color: var(--nv-ink-2); text-wrap: pretty; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.nv-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--nv-ink-3); padding-top: 2px; }
.nv-card-meta b { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nv-ink); }
.nv-card-bm { display: inline-flex; color: var(--nv-brand); }
.nv-card-bm svg { width: 12px; height: 12px; fill: currentColor; }

/* Article */
.nv-reader { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nv-reader-h { height: 52px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--nv-line-3); }
.nv-reader-h .nv-btn:first-child { font-size: 13px; }
.nv-reader-h .nv-btn:first-child svg { width: 14px; height: 14px; }
.nv-reader-h .nv-vsep { height: 20px; }
.nv-fs { width: 30px; font-size: 12px; font-weight: 600; }
.nv-fs--up { font-size: 15px; }
.nv-reader-b { flex: 1; min-height: 0; overflow-y: auto; }
.nv-art { max-width: 680px; margin: 0 auto; padding: 30px 36px 60px; display: flex; flex-direction: column; gap: 14px; --nv-fs: 18px; }
.nv-art-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--nv-brand); }
.nv-art-title { margin: 0; font-family: var(--nv-serif); font-size: 36px; line-height: 1.08; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.nv-art-deck { margin: 0; font-family: var(--nv-serif); font-size: 20px; line-height: 1.35; color: var(--nv-ink-2); text-wrap: pretty; }
.nv-art-by { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0 14px; border-bottom: 1px solid var(--nv-line-3); font-size: 12.5px; color: var(--nv-ink-3); }
.nv-art-by b { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nv-ink); }
.nv-art-body { font-family: var(--nv-serif); font-size: var(--nv-fs); line-height: 1.6; text-wrap: pretty; }
.nv-art-body p { margin: 0 0 14px; }
.nv-art-body [style], .nv-art-body font { font-family: inherit !important; font-size: inherit !important; }
.nv-art-body h1, .nv-art-body h2, .nv-art-body h3 { font-weight: 600; line-height: 1.2; font-size: 1.2em; margin: 18px 0 10px; }
.nv-art-body img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.nv-art-body table { max-width: 100%; }
.nv-fig { margin: 6px 0 20px; display: flex; flex-direction: column; gap: 8px; }
/* Article images are never cropped: whole picture at column width. Photos stop at 80% of the window
   (letterboxed, not cut); ads have no cap, a full-page ad runs at full width and scrolls with the text */
.nv-fig img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #e9e7e1; }
.nv-art--ad .nv-fig img, .nv-art--ad .nv-art-body img { max-height: none; }
.nv-fig i, .nv-fig font { font-family: var(--nv-sans) !important; font-style: normal; font-size: 12.5px !important; line-height: 1.45; color: var(--nv-ink-3); }
.nv-fig br { display: none; }
.nv-cont { align-self: flex-start; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--nv-line-2); border-radius: 9px; font-size: 13px; font-weight: 500; }
.nv-cont:hover { background: var(--nv-soft); }
.nv-cont--prev { border: 0; padding: 0; height: auto; color: var(--nv-ink-3); }
.nv-visit { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; margin-top: 4px; border-radius: 9px; background: var(--nv-brand, #0d4a3c); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.nv-visit:hover { filter: brightness(1.1); }
.nv-cont--prev:hover { background: none; color: var(--nv-ink); }
.nv-related { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--nv-line); font-size: 13px; }
.nv-related h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--nv-ink-4); font-weight: 500; }
.nv-related button { display: block; text-align: left; padding: 6px 0; font-family: var(--nv-serif); font-size: 15.5px; }
.nv-related button:hover { text-decoration: underline; }

/* Pages / Articles strip */
.nv-tray { position: absolute; left: 0; right: 0; top: 0; height: 206px; background: #fff; border-bottom: 1px solid var(--nv-line); box-shadow: 0 14px 30px rgba(0, 0, 0, .1); z-index: 40; display: flex; flex-direction: column; }
.nv-app.is-focus .nv-tray { top: 56px; }
.nv-tray-h { display: flex; align-items: center; gap: 12px; padding: 10px 12px 6px 20px; }
.nv-tray-h .nv-seg button { height: 28px; }
.nv-tray-sub { font-size: 12px; color: var(--nv-ink-4); }
.nv-tray-h .nv-ibtn { width: 28px; height: 28px; color: var(--nv-ink-3); }
.nv-tray-b { flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; display: flex; gap: 12px; padding: 4px 20px 14px; align-items: flex-start; scrollbar-width: thin; }
.nv-thumb { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.nv-thumb-img { height: 131px; width: auto; display: block; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); outline: 2px solid transparent; outline-offset: 2px; }
.nv-thumb.is-on .nv-thumb-img { outline-color: var(--nv-brand); }
.nv-thumb span { font-family: var(--nv-mono); font-size: 10.5px; color: var(--nv-ink-4); }
.nv-thumb.is-on span { color: var(--nv-brand); }
.nv-thumb.has-hit span::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: #e0b400; margin-left: 4px; vertical-align: 1px; }
.nv-tcard { width: 220px; height: 140px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--nv-line); border-radius: 10px; text-align: left; background: #fff; }
.nv-tcard:hover { background: var(--nv-soft-2); }
.nv-tcard.is-on { background: var(--nv-soft); }
.nv-tcard .nv-mono { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nv-tcard-head { font-family: var(--nv-serif); font-size: 16px; font-weight: 600; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.nv-tcard-by { margin-top: auto; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nv-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Focus mode: the bar slides away and comes back near the top */
.nv-handle { display: none; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); height: 6px; width: 64px; border-radius: 999px; background: rgba(23, 23, 26, .18); z-index: 44; pointer-events: none; }
.nv-app.is-focus .nv-top { position: absolute; top: 0; left: 0; right: 0; transform: translateY(-100%); }
.nv-app.is-focus.is-peek .nv-top { transform: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.nv-app.is-focus:not(.is-peek) .nv-handle { display: block; }

/* Toast */
.nv-toast { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 16px; background: var(--nv-ink); color: #fff; border-radius: 999px; font-size: 12.5px; z-index: 60; white-space: nowrap; pointer-events: none; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }

/* Phone bottom bar */
.nv-phbar { display: none; height: 60px; flex: none; align-items: center; gap: 8px; padding: 0 10px; border-top: 1px solid var(--nv-line); background: #fff; position: relative; z-index: 34; }
.nv-phnav { display: flex; align-items: center; gap: 2px; }
.nv-phnav button { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; }
.nv-phnav button:disabled { opacity: .3; }
.nv-phnav span { font-family: var(--nv-mono); font-size: 13px; min-width: 44px; text-align: center; }

/* Guided tour */
.nv-tour { position: absolute; inset: 0; z-index: 70; }
.nv-tour-spot { position: absolute; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(12, 22, 18, .56); outline: 2px solid var(--nv-accent); outline-offset: 2px; transition: all .3s ease; pointer-events: none; }
.nv-tour-card { position: absolute; box-sizing: border-box; background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 8px; transition: all .3s ease; }
.nv-tour-card h3 { margin: 0; font-family: var(--nv-serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.nv-tour-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #44444a; text-wrap: pretty; }
.nv-tour-foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
.nv-dots { display: flex; gap: 5px; }
.nv-dots i { width: 6px; height: 6px; border-radius: 999px; background: #d6d3cc; }
.nv-dots i.is-on { background: var(--nv-brand); }
.nv-tour-foot button { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--nv-ink-3); }
.nv-tour-foot button:hover { background: var(--nv-soft); }
.nv-app .nv-tour-foot .nv-primary { padding: 0 16px; background: var(--nv-brand); color: #fff; font-weight: 600; }
.nv-app .nv-tour-foot .nv-primary:hover { background: var(--nv-brand-2); }

/* ---------- archive ---------- */
.nv-archive { display: none; flex: 1; min-height: 0; flex-direction: column; position: relative; }
.nv-app.is-archive .nv-archive { display: flex; }
.nv-app.is-archive > .nv-top, .nv-app.is-archive > .nv-body, .nv-app.is-archive > .nv-phbar, .nv-app.is-archive > .nv-tour { display: none !important; }
.nv-atop { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--nv-line); background: #fff; box-sizing: border-box; }
.nv-atop .nv-vsep { margin: 0; }
.nv-atitle { font-size: 14px; font-weight: 600; }
.nv-btn--line { border: 1px solid var(--nv-line-2); padding: 0 12px; font-size: 13px; }
.nv-btn--line svg { width: 13px; height: 13px; }
.nv-back-short { display: none; }
.nv-abody { flex: 1; min-height: 0; overflow-y: auto; background: #fff; }
.nv-awrap { max-width: 1180px; margin: 0 auto; padding: 32px 32px 60px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.nv-ahero { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.nv-ahero h1 { margin: 0; font-family: var(--nv-serif); font-size: 52px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.nv-ahero p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--nv-ink-2); max-width: 560px; text-wrap: pretty; }
.nv-aform { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nv-ainput { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border: 1.5px solid var(--nv-ink); border-radius: 11px; box-sizing: border-box; min-width: 0; }
.nv-ainput svg { width: 18px; height: 18px; flex: none; }
.nv-ainput input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; min-width: 0; }
.nv-ainput input::-webkit-search-cancel-button { display: none; }
.nv-ainput .nv-clear { display: none; width: 22px; height: 22px; border-radius: 999px; color: var(--nv-ink-4); }
.nv-ainput.has-q .nv-clear { display: grid; place-items: center; }
.nv-ainput:focus-within { box-shadow: 0 0 0 3px var(--nv-tint); }
.nv-exact { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; border: 1px solid var(--nv-line-2); border-radius: 11px; font-size: 13.5px; font-weight: 500; background: #fff; white-space: nowrap; }
.nv-exact i { width: 16px; height: 16px; box-sizing: border-box; border-radius: 4px; border: 1.5px solid #b9b6ae; background: #fff; display: grid; place-items: center; color: transparent; font-size: 11px; font-style: normal; line-height: 1; }
.nv-exact[aria-pressed="true"] { border-color: var(--nv-brand); background: var(--nv-tint); }
.nv-exact[aria-pressed="true"] i { border-color: var(--nv-brand); background: var(--nv-brand); color: #fff; }
.nv-abtn { height: 48px; padding: 0 22px; border-radius: 11px; font-size: 14px; font-weight: 600; }
.nv-app .nv-abtn { background: var(--nv-brand); color: #fff; }
.nv-app .nv-abtn:hover { background: var(--nv-brand-2); }
.nv-alink { height: 48px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.nv-app .nv-alink { color: var(--nv-brand); }
.nv-alink:hover { background: var(--nv-soft); }

/* Browse */
.nv-years { position: sticky; top: 0; z-index: 5; background: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 0 10px; border-bottom: 1px solid var(--nv-line); margin-top: 12px; }
.nv-years-tabs { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nv-years-tabs button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; flex: none; }
.nv-years-tabs button:hover { background: var(--nv-soft); }
.nv-app .nv-years-tabs button[aria-selected="true"] { background: var(--nv-ink); color: #fff; font-weight: 600; }
.nv-years > span { font-size: 12.5px; color: var(--nv-ink-4); white-space: nowrap; }
.nv-month { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid #f0eee9; }
.nv-month h2 { margin: 0; padding-top: 2px; font-family: var(--nv-serif); font-size: 20px; font-weight: 600; }
.nv-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 18px; }
.nv-cover { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.nv-cover-img { aspect-ratio: .793; position: relative; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 8px 20px rgba(0, 0, 0, .07); transition: box-shadow .15s; }
.nv-cover:hover .nv-cover-img { box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 14px 30px rgba(0, 0, 0, .16); }
.nv-cover-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.nv-cover-d { font-size: 13px; font-weight: 600; }
.nv-cover-d em { font-style: normal; font-weight: 500; color: var(--nv-brand); }
.nv-cover-m { font-size: 12px; color: var(--nv-ink-3); margin-top: -7px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Results */
.nv-asum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding-top: 6px; font-size: 14px; }
.nv-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--nv-tint); font-size: 12.5px; font-weight: 500; }
.nv-asum .nv-link { font-size: 13px; }
.nv-ares { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.nv-alist { display: flex; flex-direction: column; min-width: 0; }
.nv-hit { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--nv-line-3); }
.nv-hit-th { align-self: start; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .16); }
.nv-hit-th img { width: 100%; height: auto; display: block; }
.nv-hit-t { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.nv-hit-t .nv-mono { font-size: 11.5px; color: var(--nv-ink-3); }
.nv-hit-head { font-family: var(--nv-serif); font-size: 20px; font-weight: 600; line-height: 1.2; text-align: left; }
.nv-hit-head:hover { text-decoration: underline; }
.nv-hit-t p { margin: 0; font-family: var(--nv-serif); font-size: 16px; line-height: 1.5; color: #33333a; text-wrap: pretty; overflow-wrap: anywhere; }
.nv-hit-t mark { background: #e4f08a; color: var(--nv-ink); font-weight: 600; }
.nv-hit-go { padding-top: 2px; font-size: 13px; font-weight: 500; }
/* Strip of the printed page around the match; the word is marked like a highlighter */
.nv-hit-clip { position: relative; display: block; width: 100%; max-width: 520px; margin: 4px 0 2px; overflow: hidden; background: #fff; border: 1px solid var(--nv-line); border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nv-hit-clip:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
.nv-hit-clip img { width: 100%; height: 100%; display: block; }
.nv-hit-clip i { position: absolute; background: rgba(228, 240, 138, .55); mix-blend-mode: multiply; border-radius: 2px; box-shadow: 0 0 0 2px rgba(228, 240, 138, .55); pointer-events: none; }
.nv-app .nv-hit-go { color: var(--nv-brand); }
.nv-hit-go:hover { text-decoration: underline; }
.nv-empty--lg { padding: 40px 0; font-size: 15px; color: var(--nv-ink-2); }
.nv-pager { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 22px 0 30px; }
.nv-pager button { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; font-size: 14px; }
.nv-pager button:hover { background: var(--nv-soft); }
.nv-app .nv-pager button[aria-current="page"] { background: var(--nv-ink); color: #fff; font-weight: 600; }
.nv-rail { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: #f7f6f3; border-radius: 12px; }
.nv-rail-h { padding: 2px 8px 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--nv-ink-3); }
.nv-rail-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; text-align: left; }
.nv-rail-row:hover { background: #efede8; }
.nv-rail-row.is-on { background: #fff; }
.nv-rail-th { width: 40px; aspect-ratio: .793; object-fit: cover; object-position: top; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .16); flex: none; }
.nv-rail-row > span { display: flex; flex-direction: column; gap: 1px; }
.nv-rail-row b { font-size: 13.5px; font-weight: 500; }
.nv-rail-row.is-on b { font-weight: 600; }
.nv-rail-row > span > span { font-size: 12px; color: var(--nv-ink-3); }

/* Results in the classic npaper archive layout (sans text, numbered pages, bold terms, blue word mark) */
.nv-cl { --nv-cl-font: Helvetica, Arial, sans-serif; font-family: var(--nv-cl-font); color: #111; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.nv-cl-pager { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; padding: 14px 0 18px; font-size: 17px; }
.nv-cl-pager button:hover { text-decoration: underline; }
.nv-app .nv-cl-pager button[aria-current="page"] { font-size: 24px; font-weight: 700; }
.nv-cl-step { font-weight: 700; }
.nv-cl-of { margin-left: 4px; }
.nv-cl-sum { padding: 4px 0 14px; font-size: 14px; color: #8a8a8a; font-weight: 600; }
.nv-cl-sum .nv-chip, .nv-cl-sum .nv-link { margin-left: 8px; font-weight: 500; }
.nv-cl-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 14px 0 22px; }
.nv-cl-n { font-size: 19px; font-weight: 700; text-align: left; }
.nv-cl-n:hover { text-decoration: underline; }
.nv-cl-hit p { margin: 0; max-width: 560px; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.nv-cl-hit mark { background: none; color: inherit; font-weight: 700; font-size: 1.12em; }
.nv-cl-meta { font-size: 14.5px; font-weight: 700; }
.nv-cl-meta button { font-weight: 700; }
.nv-cl-meta button:hover { text-decoration: underline; }
.nv-cl-none { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; }
.nv-cl-hit--by { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; }
.nv-cl-by-th img { width: 76px; height: auto; display: block; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); background: #fff; }
.nv-cl-hit--by p { margin: 6px 0; }
.nv-cl .nv-hit-clip { max-width: 500px; margin: 2px 0 0; border: 1px solid #d4d4d4; border-radius: 1px; box-shadow: 0 2px 4px rgba(0, 0, 0, .22), 0 0 1px rgba(0, 0, 0, .2); }
.nv-cl .nv-hit-clip i { background: rgba(160, 196, 245, .55); box-shadow: 0 0 0 2px rgba(160, 196, 245, .55); border-radius: 0; }
.nv-cl-time { padding-bottom: 30px; text-align: center; font-size: 13px; color: #8a8a8a; }
.nv-cl-rail { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.nv-cl-rail-h { padding: 6px 8px; background: #ebebeb; border-radius: 4px; font-size: 13px; }
.nv-cl-rail-box { display: flex; flex-direction: column; background: #ebebeb; border-radius: 8px; overflow: hidden; }
.nv-cl-arrow { height: 40px; background: #e0e0e0; color: #8f8f8f; font-size: 14px; }
.nv-cl-arrow:hover:not(:disabled) { background: #d6d6d6; color: #555; }
.nv-cl-arrow:disabled { opacity: .45; cursor: default; }
.nv-cl-iss { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px; font-size: 13.5px; text-align: center; }
.nv-cl-iss img { width: 64px; height: auto; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.nv-cl-iss small { font-size: 11.5px; }
.nv-cl-iss:hover span { text-decoration: underline; }
.nv-cl-iss.is-on { background: #fff; }
.nv-cl-iss.is-on span { font-weight: 700; }
.nv-wmore { padding: 6px 10px 2px 58px; font-size: 12.5px; font-weight: 500; text-align: left; }
.nv-app .nv-wmore { color: var(--nv-brand); }
.nv-wmore:hover { text-decoration: underline; }

/* Advanced search */
.nv-modal { position: absolute; inset: 0; background: rgba(15, 20, 18, .42); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.nv-modal-card { width: 100%; max-width: 540px; max-height: 100%; overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); padding: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.nv-modal-h { display: flex; align-items: center; justify-content: space-between; }
.nv-modal-h h2 { margin: 0; font-family: var(--nv-serif); font-size: 24px; font-weight: 600; }
.nv-modal-h .nv-ibtn { color: var(--nv-ink-3); }
.nv-field { display: flex; flex-direction: column; gap: 6px; }
.nv-field > span { font-size: 13px; font-weight: 600; }
.nv-field input, .nv-field select { height: 42px; padding: 0 12px; border: 1px solid var(--nv-line-2); border-radius: 9px; font-size: 14.5px; outline: 0; background: #fff; box-sizing: border-box; }
.nv-field input:focus, .nv-field select:focus { border-color: var(--nv-ink); }
.nv-field small { font-size: 12px; color: var(--nv-ink-4); }
.nv-range { display: flex; align-items: center; gap: 10px; }
.nv-range select { flex: 1; padding: 0 10px; }
.nv-range span { color: var(--nv-ink-4); font-size: 13px; }
.nv-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.nv-modal-foot .nv-btn { height: 42px; padding: 0 16px; font-size: 14px; }
.nv-modal-foot .nv-abtn { height: 42px; border-radius: 9px; }

@media (max-width: 1099px) {
  .nv-ares { grid-template-columns: 1fr; }
  .nv-rail { display: none; }
  .nv-cl { grid-template-columns: 1fr; }
  .nv-cl-rail { display: none; }
}

/* ---------- responsive ---------- */

/* Search folds into an icon that opens a 400px panel under the bar (is-scoll is set by the viewer from the bar's width) */
.nv-app.is-scoll .nv-search-wrap { display: none; position: absolute; top: 56px; right: 0; width: 400px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--nv-line); border-left: 1px solid var(--nv-line); box-sizing: border-box; box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.nv-app.is-scoll.is-spanel .nv-search-wrap { display: block; }
.nv-app.is-scoll .nv-search-btn { display: inline-grid; }
.nv-app.is-scoll .nv-pop--search { top: 56px; left: 8px; right: 8px; width: auto; }
/* Tools and zoom collapse into one popover */
@media (max-width: 1319px) {
  .nv-tools { display: none; }
  .nv-tools-menu { display: block; }
}
/* Directory tabs icon-only; Sections always is */
.nv-dir-sections span { display: none; }
@media (max-width: 1279px) {
  .nv-dir .nv-btn span { display: none; }
}
@media (max-width: 1179px) {
  .nv-zoom input { display: none; }
}
/* Tablet */
@media (max-width: 1099px) {
  .nv-pagebm, .nv-issue-meta { display: none; }
  .nv-app:not(.is-m-text) .nv-pnav-arrow { display: none; }
  .nv-art { padding: 26px 28px 50px; }
  .nv-art-title { font-size: 30px; }
}
/* Phone */
@media (max-width: 699px) {
  .nv-top { padding: 0 6px 0 12px; }
  .nv-mast { max-width: 120px; }
  .nv-mast img { height: 19px; max-width: 120px; }
  .nv-issue-long { display: none; }
  .nv-issue-short { display: inline; }
  .nv-dir, .nv-pnav, .nv-tools, .nv-tools-menu, .nv-views, .nv-top > .nv-vsep, .nv-saved-btn, .nv-help-btn, .nv-focus-btn, .nv-pdf, .nv-arrow, .nv-split, .nv-edge, .nv-tray { display: none !important; }
  .nv-search-btn, .nv-menu-btn { display: inline-grid; width: 38px; height: 38px; }
  .nv-search-wrap { left: 0; width: auto; border-left: 0; }
  .nv-phbar { display: flex; }
  .nv-scroll { padding: 12px; }
  .nv-panel { position: absolute; inset: 0; width: auto; border-right: 0; }
  .nv-app.is-m-text .nv-stage { display: none; }
  .nv-side { border-left: 0; }
  .nv-app.is-m-text .nv-side { flex: 1; width: auto; }
  .nv-app:not(.is-m-text) .nv-side { position: absolute; inset: 0; width: auto; z-index: 32; }
  .nv-content-h { padding: 16px 18px 12px; }
  .nv-content-b { padding: 0 18px 24px; }
  .nv-card { grid-template-columns: 72px minmax(0, 1fr); }
  .nv-card-th { width: 72px; height: 72px; }
  .nv-card-th img.nv-card-pg { width: 58px; }
  .nv-card-head { font-size: 17px; }
  .nv-card.is-front .nv-card-head { font-size: 19px; }
  .nv-art { padding: 22px 20px 48px; }
  .nv-art-title { font-size: 28px; }
  .nv-art-deck { font-size: 18px; }
  .nv-reader-h { padding: 0 6px; gap: 2px; }
  .nv-back-long { display: none; }
  .nv-back-short { display: inline; }
  .nv-awrap { padding: 20px 16px 40px; }
  .nv-ahero h1 { font-size: 34px; }
  .nv-ainput { flex-basis: 100%; }
  .nv-exact, .nv-abtn, .nv-alink { height: 44px; }
  .nv-abtn { flex: 1; }
  .nv-month { grid-template-columns: 1fr; gap: 10px; }
  .nv-covers { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .nv-hit { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-leaf, .nv-curl, .nv-top, .nv-tour-spot, .nv-tour-card, .nv-area, .nv-area > i { transition: none; }
}

/* Article extras from the editor (viewer.js linkAct / tipAct, also used by mobile.js) */
.nv-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 1.2em 0; border-radius: 10px; overflow: hidden; background: #000; }
.nv-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nv-art-body video, .m-app video { max-width: 100%; height: auto; border-radius: 8px; }
.nv-art-body audio, .m-app audio { width: 100%; margin: .8em 0; }
.nv-zoomable { cursor: zoom-in; display: inline-block; }
.nv-tip { border-bottom: 1.5px dotted currentColor; cursor: help; }
.nv-tip:focus-visible { outline: 2px solid #1aa7e0; outline-offset: 2px; }
.nv-tipbox { position: absolute; z-index: 1000; max-width: min(320px, calc(100vw - 16px)); padding: 9px 12px; border-radius: 10px; background: #17171a; color: #fff; font: 14px/1.45 system-ui, -apple-system, sans-serif; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); white-space: pre-line; }
.nv-zoom-box { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(17, 17, 20, .9); cursor: zoom-out; }
.nv-zoom-box img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.nv-zoom-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; cursor: pointer; }

/* Preview of an unpublished issue (?preview=1, admin owner only): see previewBar() in viewer.js */
.nv-preview-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 9px 10px 9px 14px; border-radius: 12px; background: #fdf3dc; border: 1px solid #f0d58f; color: #6b4600; font: 14px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); }
.nv-preview-bar b { padding: 2px 8px; border-radius: 99px; background: #8a5a00; color: #fff; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.nv-preview-bar a { margin-left: 4px; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid #f0d58f; color: #6b4600; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nv-preview-bar a:hover { background: #fffaf0; }
@media (max-width: 699px) { .nv-preview-bar { bottom: 74px; font-size: 13px; } .nv-preview-bar span { display: none; } }

/* Share menu of an article (openShare in viewer.js) */
.nv-share-pop { position: fixed; z-index: 60; min-width: 180px; padding: 6px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nv-line-2, #ddd9d0); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); font-family: var(--nv-sans); }
.nv-share-pop a, .nv-share-pop button { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--nv-ink) !important; text-decoration: none !important; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nv-share-pop a:hover, .nv-share-pop button:hover { background: var(--nv-soft); }
.nv-share-pop button { border-top: 1px solid var(--nv-line-2, #ddd9d0); border-radius: 0 0 6px 6px; margin-top: 4px; }
