/* brychtak.cz v3: sbruch.com colours on a modern app UI. Shared by a/b/c. */
:root {
  --paper: #f1e6cf; --paper-hi: #f8efdc; --paper-lo: #e7d8ba;
  --ink: #141211; --ink-soft: #4a4540; --ink-mute: #7a756d;
  --yellow: #ffcf33; --yellow-deep: #f5b400; --red: #ff3d2e;
  --line: rgba(20, 18, 17, .14); --line-strong: rgba(20, 18, 17, .28);
  --on-ink: #f1e6cf; --on-ink-soft: color-mix(in oklab, #f1e6cf 68%, #141211);
  --sans: 'Onest', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 10px; --r-sm: 6px;
  --max: 1320px; --gut: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { font: 16px/1.5 var(--sans); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01'; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
time, code, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .86em; letter-spacing: -0.01em; }
code { font-weight: 500; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
mark { background: var(--yellow); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.ic { width: 18px; height: 18px; flex: none; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; font-size: 19px; text-decoration: none; }
.bar nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.bar nav a:not(.btn) { padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; color: var(--ink-soft); }
.bar nav a:not(.btn):hover { color: var(--ink); background: rgba(20, 18, 17, .06); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r-sm); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:hover { background: #2b2724; }
.btn:active { transform: translateY(1px); }
.btn.y { background: var(--yellow); color: var(--ink); }
.btn.y:hover { background: var(--yellow-deep); }
.btn.ghost, button.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover, button.ghost:hover { background: rgba(20, 18, 17, .06); }
.btn.sm, button.sm { height: 34px; padding: 0 12px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-sm); font-weight: 550; }
.bar .btn { height: 38px; padding: 0 14px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 550; transition: background .2s var(--ease); }
.chip small { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.chip:hover { background: var(--yellow); box-shadow: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip[aria-pressed="true"] small { color: var(--on-ink-soft); }

/* search field + suggestions */
.field { position: relative; }
.field .in { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 18px; background: var(--paper-hi); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgba(20, 18, 17, .06); transition: box-shadow .2s var(--ease); }
.field .in:focus-within { box-shadow: inset 0 0 0 2px var(--ink), 0 8px 24px -12px rgba(20, 18, 17, .35); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 18px; height: 100%; }
.field input::placeholder { color: var(--ink-soft); opacity: .85; }
.field input::-webkit-search-cancel-button { display: none; }
.field kbd { font-family: var(--mono); font-size: 12px; padding: 2px 7px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); }
.field .btn { height: 44px; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: var(--paper-hi); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 16px 40px -16px rgba(20, 18, 17, .4); padding: 6px; }
.sugg li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--yellow); }
.sugg code { color: var(--ink-soft); margin-left: 6px; }
.sugg small { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* chapter strip: the signature, a video as a row of chapters */
.strip { display: flex; gap: 2px; height: 10px; }
.strip a { min-width: 3px; background: var(--line-strong); border-radius: 2px; transition: background .2s var(--ease), transform .2s var(--ease); }
.strip a:hover { background: var(--ink); transform: scaleY(1.6); }
.strip a.hit { background: var(--yellow-deep); }

/* summary points + chapter list */
.pts li a, .chs li a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; text-decoration: none; border-top: 1px solid var(--line); }
.pts li:first-child a, .chs li:first-child a { border-top: 0; }
.pts time, .chs time { color: var(--ink-soft); padding-top: 2px; }
.pts a:hover span, .chs a:hover span { text-decoration: underline; }
.pts a:hover time, .chs a:hover time { color: var(--ink); }
.ai { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.ai .ic { width: 14px; height: 14px; }

/* MCP section (ink band) */
.mcp { background: var(--ink); color: var(--on-ink); padding-block: clamp(64px, 8vw, 112px); }
.mcp .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.mcp h2 { font-size: clamp(34px, 4vw, 56px); }
.mcp .lead { margin-top: 18px; font-size: 18px; color: var(--on-ink-soft); max-width: 52ch; }
.mcp .steps { margin-top: 32px; display: grid; gap: 14px; counter-reset: s; }
.mcp .steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.mcp .steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font: 600 13px var(--mono); }
.mcp .steps b { display: block; }
.mcp .steps span { color: var(--on-ink-soft); font-size: 15px; }
.mcp .acts { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.mcp .btn.ghost { box-shadow: inset 0 0 0 1px rgba(241, 230, 207, .3); }
.mcp .btn.ghost:hover { background: rgba(241, 230, 207, .08); }
.mcp h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 10px; color: var(--on-ink-soft); }
.mcp [data-prompts] li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(241, 230, 207, .14); }
.mcp [data-prompts] .ghost { box-shadow: inset 0 0 0 1px rgba(241, 230, 207, .25); }
.chat { background: var(--paper-hi); color: var(--ink); border-radius: 14px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.chat .q { margin-left: auto; width: fit-content; max-width: 85%; background: var(--paper-lo); padding: 10px 14px; border-radius: 14px 14px 4px 14px; }
.chat .a { margin-top: 16px; display: grid; gap: 10px; font-size: 15px; }
.chat .tool { display: inline-flex; gap: 6px; align-items: center; font: 12px var(--mono); color: var(--ink-soft); }
.chat .a li { padding: 6px 0; border-top: 1px solid var(--line); }
.chat .a li span { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.chat .a a { font-family: var(--mono); font-size: 13px; background: var(--yellow); padding: 1px 6px; border-radius: 4px; text-decoration: none; }

/* FAQ + footer */
.faq { padding-block: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); }
.faq h2 { font-size: clamp(30px, 3.4vw, 44px); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px/1 var(--mono); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); max-width: 62ch; }
footer { border-top: 1px solid var(--line-strong); padding-block: 40px 32px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .mcp .wrap, .faq { grid-template-columns: 1fr; }
  .bar nav a.hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* mention map (shared by home + search) */
.years { display: grid; gap: 10px; }
.yr { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start; }
.yr > span { font: 12px var(--mono); color: var(--ink-soft); padding-top: 1px; }
.cells { display: grid; grid-template-columns: repeat(53, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 2px; }
.cells i { aspect-ratio: 1; border-radius: 2px; background: rgba(20, 18, 17, .05); }
.cells a { aspect-ratio: 1; border-radius: 2px; background: rgba(20, 18, 17, .1); transition: background .35s var(--ease), transform .2s var(--ease); transition-delay: var(--d, 0ms); }
.cells a.l1 { background: var(--yellow); }
.cells a.l2 { background: var(--yellow-deep); }
.cells a.l3 { background: var(--ink); }
.cells a:hover { transform: scale(1.8); position: relative; z-index: 2; box-shadow: 0 2px 6px rgba(20, 18, 17, .3); transition-delay: 0ms; }
.cells a.sel { box-shadow: 0 0 0 2px var(--paper-hi), 0 0 0 4px var(--red); position: relative; z-index: 3; transform: scale(1.4); }
.legend { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* search loader: blurred paper veil + ring */
.loader { position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; justify-items: center; gap: 6px; background: color-mix(in oklab, var(--paper) 78%, transparent); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.loader.on { opacity: 1; pointer-events: auto; }
.loader .ring { width: 64px; height: 64px; border-radius: 50%; border: 5px solid rgba(20, 18, 17, .1); border-top-color: var(--yellow-deep); border-right-color: var(--ink); animation: spin .85s cubic-bezier(.55, .15, .45, .85) infinite; margin-bottom: 14px; }
.loader .lt { font-weight: 650; font-size: 16px; }
.loader .ls { font-size: 14px; color: var(--ink-soft); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader .ring { animation: spin 2.4s linear infinite !important; } }
@media (max-width: 640px) { .cells { gap: 1px; } .yr { grid-template-columns: 1fr; gap: 4px; } }

/* map: last two years by default */
.map-all:not(.all) .yr.old { display: none; }
.more-yrs { margin-top: 12px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.more-yrs:hover { color: var(--ink); }

/* AI menu */
.aimenu { position: relative; }
.aimenu summary { list-style: none; cursor: pointer; }
.aimenu summary::-webkit-details-marker { display: none; }
.aipop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px; background: var(--paper-hi); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 16px 40px -16px rgba(20, 18, 17, .4); padding: 6px; display: grid; }
.aipop a { padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; color: var(--ink); }
.aipop a:hover { background: var(--yellow); }
.aipop a:last-child { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; color: var(--ink-soft); }
button[disabled] { opacity: .5; cursor: default; }

/* logo: a sunrise over the market line = the morning comment */
.logo svg { width: 28px; height: 28px; flex: none; }
.logo b { font-weight: 700; }
.logo small { font-size: 1em; font-weight: 500; color: var(--ink-soft); }
.more-yrs[hidden] { display: none; }
/* filtered map: only mornings with a mention are clickable */
.years.q .cells a:not(.l1):not(.l2):not(.l3):not(.sel) { pointer-events: none; cursor: default; }

/* ===== home ===== */

.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hero h1 { font-size: clamp(42px, 5.6vw, 84px); letter-spacing: -0.045em; line-height: .98; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); }
.hero .lead { margin-top: 20px; font-size: 19px; color: var(--ink-soft); max-width: 42ch; }
.hero .field { margin-top: 32px; max-width: 620px; }
.hero .chips { margin-top: 16px; max-width: 620px; }
.facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ink-soft); }
.facts b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.field .btn .m { display: none; }

/* today's morning */
.today { background: var(--paper-hi); border-radius: 16px; padding: clamp(18px, 2vw, 26px); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -32px rgba(20, 18, 17, .35); }
.today .when { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); flex-wrap: wrap; }
.today .new { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); }
.today .new::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.today .thumb { display: block; margin-top: 14px; position: relative; border-radius: 10px; overflow: hidden; }
.today .thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.today .thumb span { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); padding: 7px 13px 7px 9px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.today h2 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.3; margin-top: 16px; }
.today .now { margin-top: 14px; font-size: 13px; color: var(--ink-soft); height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today .now time { color: var(--ink); margin-right: 6px; }
.today .strip { margin-top: 6px; height: 14px; }
.today .tldr { margin-top: 14px; font-size: 16px; }
.today .pts { margin-top: 6px; font-size: 15px; }
.today .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }

/* topics */
.sec { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-strong); }
.sec-hd { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-hd h2 { font-size: clamp(30px, 3.4vw, 44px); }
.sec-hd p { color: var(--ink-soft); margin-top: 8px; max-width: 60ch; }
.topics { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.topics a { background: var(--paper-hi); padding: 18px 18px 16px; display: grid; gap: 10px; text-decoration: none; transition: background .2s var(--ease); }
.topics a:hover { background: var(--yellow); }
.topics b { font-size: 18px; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.topics b code { font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.bars { display: flex; align-items: end; gap: 2px; height: 32px; }
.bars i { flex: 1; background: var(--ink); opacity: .22; border-radius: 1px; min-height: 2px; }
.bars i.last { opacity: 1; background: var(--yellow-deep); }
.topics a:hover .bars i.last { background: var(--ink); }
.topics small { font-size: 13px; color: var(--ink-soft); }
.topics small code { color: var(--ink); }

/* previous mornings */
.cols { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.cols article { padding: 18px 20px 0 0; display: grid; gap: 10px; align-content: start; }
.cols article + article { padding-left: 20px; border-left: 1px solid var(--line-strong); }
.cols .d { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.cols .d b { color: var(--ink); text-transform: capitalize; font-weight: 600; }
.cols img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.cols h3 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.cols h3 a { text-decoration: none; }
.cols h3 a:hover { text-decoration: underline; }
.cols p { font-size: 15px; color: var(--ink-soft); }
.cols .lnk { display: flex; gap: 6px; flex-wrap: wrap; }
.cols .lnk a { font: 12px var(--mono); background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--line); padding: 3px 8px; border-radius: 4px; text-decoration: none; color: var(--ink); }
.cols .lnk a:hover { background: var(--yellow); box-shadow: none; }
.all { margin-top: 28px; }

@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols article:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .field .btn .t { display: none; }
  .field .btn .m { display: block; }
  .field .btn { padding: 0 14px; }
  .cols { grid-template-columns: 1fr; }
  .cols article { border-left: 0 !important; padding-left: 0 !important; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
}

/* ===== archive reader ===== */

.app { display: grid; grid-template-columns: 420px minmax(0, 1fr); height: calc(100svh - 64px); border-bottom: 1px solid var(--line-strong); }

/* left: the archive as an inbox, on ink */
.list { background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; min-height: 0; }
.list-hd { padding: 18px 18px 12px; display: grid; gap: 12px; }
.list .field .in { height: 48px; background: #26221f; box-shadow: inset 0 0 0 1px rgba(241, 230, 207, .16); }
.list .field .in:focus-within { box-shadow: inset 0 0 0 2px var(--yellow); }
.list .field input { font-size: 16px; color: var(--on-ink); }
.list .field input::placeholder { color: var(--on-ink-soft); }
.list .field kbd { color: var(--on-ink-soft); box-shadow: inset 0 0 0 1px rgba(241, 230, 207, .25); }
.list .chips { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.list .chip { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1px rgba(241, 230, 207, .22); height: 30px; font-size: 13px; flex: none; }
.list .chip small { color: var(--on-ink-soft); }
.list .chip:hover { background: rgba(241, 230, 207, .1); }
.list .chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.list .chip[aria-pressed="true"] small { color: var(--ink-soft); }
.list .clr { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--on-ink-soft); }
.list .clr:hover { color: var(--on-ink); background: rgba(241, 230, 207, .1); }
.list .clr[hidden] { display: none; }
.items { overflow-y: auto; flex: 1; min-height: 0; scrollbar-color: rgba(241, 230, 207, .25) transparent; }
.items li a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 18px; border-bottom: 1px solid rgba(241, 230, 207, .08); text-decoration: none; transition: background .15s var(--ease); }
.items li a:hover { background: rgba(241, 230, 207, .06); }
.items li a[aria-current="true"] { background: var(--yellow); color: var(--ink); }
.items time { font-size: 12px; color: var(--on-ink-soft); }
.items .tt { grid-column: 1 / -1; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.items .tag { font: 11px var(--mono); color: var(--on-ink-soft); display: inline-flex; align-items: center; gap: 5px; }
.items .tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.items .cnt { font: 500 12px var(--mono); background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 1px 8px; }
.items a[aria-current="true"] time, .items a[aria-current="true"] .tag { color: var(--ink-soft); }
.items a[aria-current="true"] .tag::before { background: var(--ink); }
.items a[aria-current="true"] .cnt { background: var(--ink); color: var(--yellow); }
.items .sent { height: 1px; }
.items mark { background: rgba(255, 207, 51, .25); color: inherit; }
.items a[aria-current="true"] mark { background: rgba(20, 18, 17, .12); }
.items .none { padding: 24px 18px; color: var(--on-ink-soft); font-size: 15px; }

/* right: the reader */
.reader { overflow-y: auto; min-height: 0; position: relative; }
.rd { max-width: 860px; padding: clamp(24px, 3.5vw, 48px) clamp(20px, 4vw, 56px) 64px; }
.rd .top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.rd .nav { display: flex; gap: 6px; }
.rd .nav button[disabled] { opacity: .35; cursor: default; }
.rd .back { display: none; }
.rd h1 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.035em; margin-top: 14px; }
.rd .media { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; margin-top: 24px; align-items: center; }
.rd .media img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.rd .media .strip { height: 14px; }
.rd .media .lg { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.rd .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rd section { margin-top: 36px; }
.rd h2 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--ink-soft); padding-bottom: 10px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.rd .tldr { font-size: 20px; line-height: 1.45; margin-top: 16px; max-width: 60ch; }
.rd .pts { margin-top: 8px; }
.rd .chs li a.on { background: linear-gradient(90deg, rgba(255, 207, 51, .35), transparent 70%); }
.rd .tr p { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.rd .tr p:first-of-type { border-top: 0; }
.rd .tr p.muted { display: block; }
.rd .tr p a { font-family: var(--mono); font-size: 13px; text-decoration: none; color: var(--ink-soft); padding-top: 3px; }
.rd .tr p a:hover { color: var(--ink); text-decoration: underline; }
.rd .muted { color: var(--ink-soft); padding-top: 14px; }
.load { display: grid; gap: 10px; padding-top: 14px; }
.load i { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--paper-lo), var(--paper-hi), var(--paper-lo)); background-size: 200% 100%; animation: sh 1.4s linear infinite; }
.load i:nth-child(2) { width: 80%; } .load i:nth-child(3) { width: 60%; }
@keyframes sh { to { background-position: -200% 0; } }

/* mention map over the reader: where the stock sits in time */
.ov { max-width: 860px; padding: clamp(24px, 3.5vw, 40px) clamp(20px, 4vw, 56px) 8px; }
.ov-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ov-hd h2 { font-size: clamp(24px, 2.4vw, 32px); overflow-wrap: anywhere; }
.ov-hd p { font-size: 14px; color: var(--ink-soft); }
.ov-hd p b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.ov .legend { margin-top: 10px; }
.ov .years { margin-top: 18px; }
.ov .cells a { cursor: pointer; }
.list .ov { max-width: none; padding: 12px 18px 14px; border-bottom: 1px solid rgba(241, 230, 207, .12); }
.list .ov .legend { margin-top: 0; font-size: 12px; gap: 10px; }
.list .ov .years { margin-top: 10px; gap: 8px; }
.list .yr { grid-template-columns: 34px minmax(0, 1fr); gap: 6px; }
.list .yr > span { font-size: 11px; }
.list .cells { gap: 1px; }
.list .cells a:hover { box-shadow: 0 0 0 1px var(--ink); }
.list .more-yrs { color: var(--on-ink-soft); font-size: 13px; margin-top: 10px; }
.list .more-yrs:hover { color: var(--on-ink); }
.list .ov-hd { display: none; }
.list .legend { color: var(--on-ink-soft); }
.list .yr > span { color: var(--on-ink-soft); }
.list .cells i { background: rgba(241, 230, 207, .05); }
.list .cells a { background: rgba(241, 230, 207, .14); }
.list .cells a.l1 { background: var(--yellow); }
.list .cells a.l2 { background: var(--yellow-deep); }
.list .cells a.l3 { background: var(--paper); }
.list .legend span:nth-child(4) i { background: var(--paper) !important; }
.list .cells a.sel { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--red); }
.kbd-hint { font-size: 13px; color: var(--ink-soft); margin-top: 48px; }
.kbd-hint kbd { font: 12px var(--mono); padding: 1px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; height: auto; }
  .list { height: calc(100svh - 64px); }
  .reader { display: none; }
  .app.reading .list { display: none; }
  .app.reading .reader { display: block; }
  .rd .back { display: inline-flex; }
  .rd .media { grid-template-columns: 1fr; }
  .kbd-hint { display: none; }
}

/* production additions */
.today h2 a { text-decoration: none; }
.today h2 a:hover { text-decoration: underline; }
.trs { font-size: 12px; color: var(--on-ink-soft); padding: 8px 18px; border-bottom: 1px solid rgba(241, 230, 207, .12); }
.trs[hidden] { display: none; }
.items .cnt.tr { background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(255, 207, 51, .5); }
.items a[aria-current="true"] .cnt.tr { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.rd .nav .btn.sm { height: 34px; padding: 0 12px; }
.bar nav a.ext { display: inline-flex; align-items: center; gap: 7px; }
.bar nav a.ext img, .bar nav a.ext svg { width: 16px; height: 16px; flex: none; border-radius: 3px; }
.faq .about { margin-top: 16px; color: var(--ink-soft); max-width: 46ch; }
.faq .about a { color: var(--ink); }
@media (max-width: 1080px) { .bar nav a.ext { display: none; } }
