/* oz-reader.css — THE READER (Sum 2026-07-20: "link is a dead end… resurrect the
   article-reader"). a link/capture → a clean, ad-stripped reading view (Safari-Reader
   style), and the plain text is cached so a bot can read it too. classic reading
   paper: warm, serif, generous — its own calm environment over the app. */

.rdr-ov { position: fixed; inset: 0; z-index: 3200; background: rgba(9, 7, 12, .92);
  backdrop-filter: blur(7px); display: flex; justify-content: center; overflow-y: auto; padding: 0; }
.rdr-paper { position: relative; width: min(760px, 100%); min-height: 100vh;
  background: #fbf8f1; color: #1e1a14; box-shadow: 0 0 60px rgba(0, 0, 0, .5);
  padding: 0 0 120px; }
@media (prefers-color-scheme: dark) { .rdr-paper.night { background: #16140f; color: #e7e2d6; } }

/* SURF v1 — the browser chrome: back · fwd · refresh · address bar (Sum 2026-07-22). sticky at the very
   top; the tool bar (dial/close) sits just under it. the Portal is a navigable browser now. */
.rdr-nav { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px; height: 46px;
  box-sizing: border-box; padding: 0 14px; background: rgba(244,240,232,.97); backdrop-filter: blur(6px);
  border-bottom: 1px solid #e6ddca; }
.rdr-paper.night .rdr-nav { background: rgba(22,20,15,.97); border-bottom-color: #2c2820; }
.rdr-nbtn { flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid #d9cfb8; background: #fff; color: #4a3f28;
  border-radius: 7px; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.rdr-nbtn:disabled { opacity: .35; cursor: default; }
.rdr-paper.night .rdr-nbtn { background: #211d16; border-color: #3a352a; color: #d8cfb8; }
.rdr-nbtn:not(:disabled):hover { border-color: #b8863a; }
.rdr-addr { flex: 1 1 auto; min-width: 0; border: 1px solid #d9cfb8; background: #fff; color: #2a2418;
  border-radius: 7px; padding: 7px 12px; font: 13px ui-monospace, monospace; }
.rdr-addr:focus { outline: none; border-color: #b8863a; }
.rdr-paper.night .rdr-addr { background: #17140e; border-color: #3a352a; color: #e7e2d6; }
/* the WALLED door — a garden we don't bother knocking on; it routes out */
.rdr-walled { max-width: 460px; margin: 70px auto; text-align: center; padding: 0 24px; }
.rdr-walled-ico { font-size: 44px; margin-bottom: 8px; }
.rdr-walled h2 { font: 700 24px "Iowan Old Style", Georgia, serif; margin: 0 0 8px; }
.rdr-walled p { font: 15px/1.6 -apple-system, system-ui, sans-serif; color: #8a7a54; margin: 0 0 22px; }
.rdr-paper.night .rdr-walled p { color: #b7ab82; }

.rdr-bar { position: sticky; top: 46px; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: rgba(251, 248, 241, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid #e6ddca; font: 13px -apple-system, system-ui, sans-serif; }
.rdr-paper.night .rdr-bar { background: rgba(22, 20, 15, .92); border-bottom-color: #2c2820; }
.rdr-src { color: #8a7a54; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdr-btn { flex-shrink: 0; border: 1px solid #d9cfb8; background: #fff; color: #4a3f28; border-radius: 8px;
  padding: 6px 11px; font-size: 13px; font-weight: 700; cursor: pointer; }
.rdr-paper.night .rdr-btn { background: #211d16; border-color: #3a352a; color: #d8cfb8; }
.rdr-btn:hover { border-color: #b8863a; }
.rdr-btn.hand { color: #7a4fd0; }
.rdr-x { margin-left: auto; }
/* the 4-stop STRIP DIAL — ads+nav · just nav · article+pics · article-only (Sum 2026-07-22) */
.rdr-dial { display: inline-flex; flex-shrink: 0; border: 1px solid #d9cfb8; border-radius: 8px; overflow: hidden; }
.rdr-paper.night .rdr-dial { border-color: #3a352a; }
.rdr-dot { border: 0; border-left: 1px solid #e6ddca; background: #fff; color: #8a7a54; padding: 6px 9px;
  font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rdr-dot:first-child { border-left: 0; }
.rdr-paper.night .rdr-dot { background: #211d16; color: #8a7a54; border-left-color: #2c2820; }
.rdr-dot:hover { color: #4a3f28; }
.rdr-paper.night .rdr-dot:hover { color: #d8cfb8; }
.rdr-dot.on { background: #b8863a; color: #fff; }
.rdr-paper.night .rdr-dot.on { background: #7a4fd0; color: #fff; }
@media (max-width: 640px) { .rdr-dot { padding: 6px 6px; font-size: 13px; } .rdr-src { display: none; } }

.rdr-body { padding: 30px clamp(20px, 6vw, 60px) 0;
  font: 19px/1.68 "Iowan Old Style", "Palatino", Georgia, serif; }
/* VIDEO in the Portal — a full-bleed 16:9 player, no reading padding (Sum 2026-07-22) */
.rdr-vidbody { padding: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.rdr-video { width: 100%; aspect-ratio: 16 / 9; max-height: 82vh; border: 0; display: block; background: #000; }
/* YouTube can't embed in the webview (153) → a play-poster that opens the real browser (Sum 2026-07-22) */
.rdr-vidout-wrap { padding: 0; background: #000; aspect-ratio: 16 / 9; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.rdr-vidout { border: 0; background: none; color: #fff; font: 700 22px "Iowan Old Style", Georgia, serif;
  cursor: pointer; padding: 18px 26px; border-radius: 12px; letter-spacing: .01em; }
.rdr-vidout:hover { background: rgba(255,255,255,.08); }
/* the podcast deck — audio plays IN the Portal (Sum 2026-07-22: "plug and portal can play podcasts") */
.rdr-auddeck { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 64px 30px 80px; }
.rdr-aud-ico { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #fff; background: linear-gradient(150deg, #b8863a, #8a5a1a); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.rdr-paper.night .rdr-aud-ico { background: linear-gradient(150deg, #7a4fd0, #4a2f90); }
.rdr-aud-name { font: 600 20px "Iowan Old Style", Georgia, serif; color: inherit; text-align: center; word-break: break-word; }
.rdr-aud { width: min(520px, 100%); margin-top: 6px; }
/* the image lightbox — the ONE viewer covers pictures too (Sum 2026-07-22: "vid sound image and text") */
.rdr-imgstage { padding: 0; background: #0b0b0d; min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.rdr-img { max-width: 100%; max-height: 88vh; object-fit: contain; display: block; }
/* SURF HOME — the Portal as a blank browser (Sum 2026-07-22): address bar up top, recents below */
.rdr-home { padding: 56px clamp(20px, 6vw, 60px) 80px; }
.rdr-home-title { font: 700 clamp(34px, 7vw, 52px) "Iowan Old Style", Georgia, serif; margin: 0 0 10px; letter-spacing: -.01em; }
.rdr-home-lead { font: 18px/1.6 "Iowan Old Style", Georgia, serif; color: #8a7a54; max-width: 34em; margin: 0 0 40px; }
.rdr-paper.night .rdr-home-lead { color: #b7ab82; }
.rdr-home-h { font: 12px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em; color: #8a7a54; margin: 0 0 6px; }
.rdr-home-list { display: flex; flex-direction: column; }
.rdr-home-link { display: block; padding: 12px 0; border-bottom: 1px solid #e6ddca; color: #1e1a14; text-decoration: none;
  font: 17px/1.35 "Iowan Old Style", Georgia, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdr-paper.night .rdr-home-link { color: #e7e2d6; border-bottom-color: #2c2820; }
.rdr-home-link:hover { color: #9a6a1a; }
.rdr-paper.night .rdr-home-link:hover { color: #dda94f; }
.rdr-body h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.18; margin: 6px 0 6px;
  letter-spacing: -.01em; }
.rdr-byline { color: #8a7a54; font: 14px -apple-system, system-ui, sans-serif; margin: 0 0 26px;
  padding-bottom: 18px; border-bottom: 1px solid #e6ddca; }
.rdr-paper.night .rdr-byline { border-bottom-color: #2c2820; }
.rdr-body h2 { font-size: 25px; margin: 34px 0 8px; }
.rdr-body h3 { font-size: 21px; margin: 26px 0 6px; }
.rdr-body p { margin: 0 0 20px; }
.rdr-body a { color: #9a6a1a; text-decoration: none; border-bottom: 1px solid #e0cfa8; }
.rdr-body img, .rdr-body figure img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; display: block; }
.rdr-body figure { margin: 20px 0; }
.rdr-body figcaption { font: 14px -apple-system, system-ui, sans-serif; color: #8a7a54; margin-top: 6px; }
.rdr-body blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid #d9c9a2;
  color: #5a4e34; font-style: italic; }
/* NIGHT-mode contrast (Sum 2026-07-22: faint text on the dark reader) — lift the muted colors */
.rdr-paper.night .rdr-body blockquote { color: #cabf9e; border-left-color: #4a4436; }
.rdr-paper.night .rdr-byline, .rdr-paper.night .rdr-body figcaption, .rdr-paper.night .rdr-status, .rdr-paper.night .rdr-src { color: #b7ab82; }
.rdr-paper.night .rdr-body a { color: #dda94f; border-bottom-color: #5f5228; }
.rdr-body ul, .rdr-body ol { margin: 0 0 20px; padding-left: 26px; }
.rdr-body li { margin: 0 0 8px; }
.rdr-body pre { background: #f0e9d8; padding: 14px; border-radius: 8px; overflow-x: auto;
  font: 14px/1.5 ui-monospace, monospace; }
.rdr-paper.night .rdr-body pre { background: #221e16; }
.rdr-body hr { border: none; border-top: 1px solid #e6ddca; margin: 30px 0; }

.rdr-status { padding: 80px 40px; text-align: center; color: #8a7a54;
  font: 17px/1.6 -apple-system, system-ui, sans-serif; }
.rdr-spin { width: 34px; height: 34px; margin: 0 auto 16px; border: 3px solid #e0d6bf;
  border-top-color: #b8863a; border-radius: 50%; animation: rdrspin .8s linear infinite; }
@keyframes rdrspin { to { transform: rotate(360deg); } }

/* ── the escalation gate (checkpoint → teleport) — a dark security panel inside the warm paper.
   motion kept gentle (no flashing) — seizure-safe, like the wake screen. ── */
.rdr-gate { max-width: 460px; margin: 70px auto; background: #141019; border: 1px solid #000;
  color: #e8e0f0; padding: 30px 28px; text-align: center; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.rdr-gate-lab { font: 12px ui-monospace, monospace; letter-spacing: 3px; text-transform: uppercase; color: #9a8fc0; }
.rdr-gate h2 { font: 700 24px "Iowan Old Style", Georgia, serif; color: #f0ebff; margin: 8px 0 6px; }
.rdr-gate p { font: 15px/1.55 -apple-system, system-ui, sans-serif; color: #bcb3d4; margin: 0 0 20px; }
.rdr-gate p b { color: #e8e0f0; }
.rdr-gate-note { font: 12px/1.5 ui-monospace, monospace; color: #736a92; margin-top: 18px; }
.rdr-pulse { height: 60px; margin: 18px 0; position: relative; overflow: hidden;
  border-top: 1px solid #2a2438; border-bottom: 1px solid #2a2438; }
.rdr-pulse svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.rdr-pulse .trace { stroke: #7ee0b0; stroke-width: 2; fill: none;
  stroke-dasharray: 620; stroke-dashoffset: 620; animation: rdrbeat 2.6s linear infinite; }
@keyframes rdrbeat { to { stroke-dashoffset: -620; } }
.rdr-pulse .rdr-scan { position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(126,224,176,.16), transparent); animation: rdrsweep 3.2s linear infinite; }
@keyframes rdrsweep { to { left: 110%; } }
.rdr-tele-url { width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 11px 13px; border-radius: 8px;
  border: 1px solid #3a3550; background: #0e0b14; color: #e8e0f0; font: 14px ui-monospace, monospace; }
.rdr-tele-url:focus { outline: none; border-color: #7ee0b0; }
.rdr-ring { width: 66px; height: 66px; margin: 10px auto 16px; border-radius: 50%;
  border: 3px solid #c9a7ff; border-top-color: transparent; animation: rdrspin 1.1s linear infinite; }
.rdr-gbtn { display: block; width: 100%; font: 700 13px ui-monospace, monospace; letter-spacing: 1px;
  text-transform: uppercase; padding: 13px 18px; background: #7ee0b0; color: #101018; border: none;
  border-radius: 8px; cursor: pointer; }
.rdr-gbtn:hover { background: #96e8c0; }
.rdr-gfail { display: block; width: 100%; margin-top: 12px; font: 12px ui-monospace, monospace;
  letter-spacing: .5px; text-transform: uppercase; color: #8a80a8; background: none; border: none; cursor: pointer; }
.rdr-gfail:hover { color: #b8afd0; }

/* chat links that open the reader (mdLite adds .oz-readable) — a quiet inline chip, not a raw URL */
a.oz-readable {
  color: var(--accent, #c9a7ff);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  word-break: break-all;
  cursor: pointer;
}
a.oz-readable:hover { border-bottom-style: solid; }
