/* ==========================================================================
   HapnGo — design system
   Rainbow from the logo, used with discipline: one colour per topic, a thin
   seven-stop bar as the brand signature. Everything else is ink on paper.
   Type: Bricolage Grotesque (display) + Instrument Sans (text).
   ========================================================================== */

:root {
  --paper: #ffffff;
  --soft: #f5f5f7;
  --line: #e4e4e8;
  --ink: #111114;
  --ink-2: #3a3a40;
  --muted: #6b6b73;
  --night: #0b0b0f;
  --night-2: #16161c;
  --on-night: #f4f4f6;
  --on-night-muted: #a7a7b3;

  --red: #E01010;
  --orange: #F87820;
  --yellow: #F5D800;
  --yellow-ink: #C9A700;
  --green: #08C43C;
  --cyan: #00A8F0;
  --blue: #3840C8;
  --purple: #701870;
  --brown: #483020;
  --pink: #F8A8C0;

  --rainbow: linear-gradient(90deg,
    var(--red) 0 14.28%, var(--orange) 14.28% 28.57%, var(--yellow) 28.57% 42.85%,
    var(--green) 42.85% 57.14%, var(--cyan) 57.14% 71.42%, var(--blue) 71.42% 85.71%, var(--purple) 85.71% 100%);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --measure: 68ch;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17,17,20,.06), 0 8px 24px -12px rgba(17,17,20,.18);
  --header-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5em 1em; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 820px); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.3em; }
.prose a { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--ink); font-family: var(--font-display); font-size: 1.15em; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--night); color: var(--on-night); padding: 1em; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95em; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5em .7em; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.prose li.task { list-style: none; margin-left: -1.2em; display: flex; gap: .6em; align-items: flex-start; }
.prose li.task .box { flex: 0 0 auto; width: 1.05em; height: 1.05em; margin-top: .25em; border: 2px solid var(--ink); border-radius: 4px; }
.prose img { border-radius: var(--radius-sm); }

/* --- kicker, chips, dots, badges --- */
.kicker { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .5em; display: inline-flex; align-items: center; gap: .5em; }
.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--c, var(--ink)); flex: 0 0 auto; }
.chip { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .02em; color: var(--ink); text-transform: uppercase; }
.chip:hover { text-decoration: none; color: var(--c, var(--ink)); }
.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: .18em .55em; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.badge-free { background: #e8fbee; border-color: #bff0cd; color: #0a6b2a; }
.badge-freemium { background: #e9f6fd; border-color: #bfe5f8; color: #0b5a82; }
.badge-trial { background: #fff6e4; border-color: #ffe1a8; color: #8a5300; }
.badge-paid { background: var(--soft); }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1; padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease, color .12s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { font-size: .86rem; padding: .62em 1em; }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: #000; }
.btn-paper { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-rainbow { background: var(--ink); color: #fff; border-color: transparent; position: relative; isolation: isolate; }
.btn-rainbow::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; background: var(--rainbow); z-index: -1; opacity: 0; transition: opacity .15s ease; }
.btn-rainbow:hover::after { opacity: 1; }
.on-night .btn-ghost { color: var(--on-night); border-color: rgba(255,255,255,.28); }

/* --- header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
.header-row { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }
.rainbow-line { height: 3px; background: var(--rainbow); }
.rainbow-bar { height: 8px; background: var(--rainbow); }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand-tag { font-size: .68rem; color: var(--muted); letter-spacing: .04em; margin-top: .2em; }
.nav { display: flex; gap: .2rem; margin-left: .4rem; }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: .5em .7em; border-radius: 8px; color: var(--ink-2); }
.nav a:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.search-mini { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 .25rem 0 .8rem; height: 38px; background: #fff; }
.search-mini input { border: 0; outline: 0; font: inherit; font-size: .9rem; width: 130px; background: transparent; }
.search-mini input:focus { width: 190px; }
.search-mini button { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.search-mini button:hover { background: var(--soft); }
details.lang { position: relative; }
details.lang > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35em; height: 38px; padding: 0 .7em; border: 1.5px solid var(--line); border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .85rem; }
details.lang > summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; min-width: 230px; z-index: 60; }
.lang-menu a { display: block; padding: .45em .7em; border-radius: 8px; font-size: .95rem; }
.lang-menu a:hover { background: var(--soft); text-decoration: none; }
.lang-menu a[aria-current] { font-weight: 700; box-shadow: inset 3px 0 0 var(--ink); }
.lang-more { display: block; width: 100%; text-align: left; margin-top: .3rem; padding: .5em .7em; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: .9rem; cursor: pointer; border-radius: 0 0 8px 8px; }
.lang-more:hover { background: var(--soft); }
.lang-note { font-size: .74rem; color: var(--muted); margin: .3rem .7rem 0; }
details.menu-toggle { display: none; position: relative; }
details.menu-toggle > summary { list-style: none; cursor: pointer; width: 40px; height: 38px; display: grid; place-content: center; gap: 5px; border: 1.5px solid var(--line); border-radius: 10px; }
details.menu-toggle > summary::-webkit-details-marker { display: none; }
details.menu-toggle > summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu-mobile { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; min-width: 220px; z-index: 60; display: flex; flex-direction: column; }
.menu-mobile a { padding: .6em .8em; border-radius: 8px; font-family: var(--font-display); font-weight: 600; }
.menu-mobile a:hover { background: var(--soft); text-decoration: none; }
.menu-mobile a[aria-current] { box-shadow: inset 3px 0 0 var(--ink); }
.beta-ribbon { background: var(--soft); color: var(--muted); font-size: .8rem; text-align: center; padding: .4em 1em; border-bottom: 1px solid var(--line); }

/* --- hero --- */
.hero { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.hero .kicker { color: var(--on-night-muted); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(2.5rem, 6vw, 5.5rem) 0; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .amp { color: transparent; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; font-weight: 800; }
.hero-sub { font-size: 1.15rem; color: var(--on-night-muted); max-width: 52ch; margin-bottom: 1.4em; }
.hero-proof { font-family: var(--font-display); font-size: .9rem; color: var(--on-night-muted); display: flex; align-items: center; gap: .5em; margin-top: 1.2em; }
.hero-proof .pulse { width: .55em; height: .55em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(8,196,60,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(8,196,60,.55); } 70% { box-shadow: 0 0 0 10px rgba(8,196,60,0); } 100% { box-shadow: 0 0 0 0 rgba(8,196,60,0); } }
.hero-video { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: #000; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.hero-video::before { content: ""; position: absolute; inset: -2px; border-radius: 24px; padding: 2px; background: var(--rainbow); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; z-index: 2; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; left: 1rem; bottom: .8rem; z-index: 3; font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); }
.nl-hero .nl-row { display: flex; gap: .5rem; max-width: 520px; }
.nl-hero input[type=email] { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; padding: 0 1.2em; font: inherit; }
.nl-hero input[type=email]::placeholder { color: rgba(255,255,255,.55); }
.nl-hero input[type=email]:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.nl-hero .btn { height: 50px; background: #fff; color: var(--ink); }
.nl-hero .nl-note { font-size: .8rem; color: var(--on-night-muted); margin: .6em 0 0; }
.nl-hero .nl-note a { text-decoration: underline; }

/* --- ticker --- */
.ticker { background: var(--night-2); color: var(--on-night); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 1rem; height: 44px; }
.ticker-label { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5em; color: var(--on-night-muted); flex: 0 0 auto; }
.ticker-label .dot { background: var(--red); }
/* min-width:0 is load-bearing. A flex item defaults to min-width:auto, so this box would
   refuse to shrink below the width of the max-content track inside it, push the whole
   document wider than the phone, and make every page scroll sideways. */
.ticker-viewport { overflow: hidden; flex: 1 1 0; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; }
.ticker-track.run { animation: ticker 90s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a { font-size: .92rem; color: var(--on-night); display: inline-flex; align-items: center; gap: .5em; }
.ticker-track a .dot { width: .5em; height: .5em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- sections --- */
.section { padding: clamp(2.2rem, 5vw, 4rem) 0; }
.section-soft { background: var(--soft); }
.section-night { background: var(--night); color: var(--on-night); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.sec-head .kicker { color: var(--c, var(--ink-2)); }
.sec-title { margin: 0; }
.sec-more { font-family: var(--font-display); font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.section-night .sec-more, .section-night .kicker { color: var(--on-night-muted); }

/* --- topic strip --- */
.topics { display: flex; gap: .5rem; flex-wrap: wrap; }
.topics a { display: inline-flex; align-items: center; gap: .5em; border: 1.5px solid var(--line); border-radius: 999px; padding: .45em 1em .45em .8em; font-family: var(--font-display); font-weight: 600; font-size: .9rem; background: #fff; }
.topics a:hover { border-color: var(--c); text-decoration: none; }
.topics a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.topics a[aria-current] .dot { box-shadow: 0 0 0 2px #fff; }

/* --- news layouts --- */
.news-lead-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.4rem; }
.news-grid-4 { grid-template-columns: repeat(4, 1fr); }
.news-list { display: flex; flex-direction: column; }
.news-card { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.news-card.news-row { flex-direction: row; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); align-items: flex-start; }
.news-card.news-row .news-media { flex: 0 0 120px; aspect-ratio: 4/3; }
.news-media { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); position: relative; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; position: relative; z-index: 1; }
.news-card:hover .news-media img { transform: scale(1.03); }
/* No image in the feed: a tinted tile carrying the publisher's initials. The angle is
   derived from the source name, so a column of them never reads as one flat block. */
.news-media .news-tile-text { display: none; }
.news-media.is-tile { background: linear-gradient(var(--tilt, 135deg), var(--c) 0%, color-mix(in srgb, var(--c) 45%, #0b0b0f) 100%); }
.news-media.is-tile::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.22) 1px, transparent 0); background-size: 10px 10px; opacity: .5; }
.news-media.is-tile .news-tile-text { display: grid; place-items: center; position: absolute; inset: 0; z-index: 2; padding: 0 8%; text-align: center; }
.news-media.is-tile .news-tile-text > span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; line-height: 1.15; color: rgba(255,255,255,.94); text-shadow: 0 2px 14px rgba(0,0,0,.35); text-wrap: balance; }
.news-lead .news-media.is-tile .news-tile-text > span { font-size: 2rem; letter-spacing: -.01em; }
.news-row .news-media.is-tile .news-tile-text > span { font-size: .72rem; letter-spacing: 0; }
.hot-grid .news-media.is-tile .news-tile-text > span { font-size: 1.3rem; }
.news-lead .news-media { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.news-lead .news-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.news-body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .8em; font-size: .8rem; color: var(--muted); margin: 0; }
.news-src { font-weight: 600; color: var(--ink-2); }
.news-title { margin: 0; font-size: 1.12rem; line-height: 1.22; }
.news-row .news-title { font-size: 1.02rem; }
.news-title a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; }
.news-sum { margin: 0; color: var(--ink-2); font-size: .95rem; }
.news-cluster { margin: 0; font-size: .78rem; color: var(--muted); font-weight: 600; }
.section-night .news-src, .section-night .news-sum, .section-night .news-cluster { color: var(--on-night-muted); }
.section-night .chip { color: var(--on-night); }
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hot-grid .news-card { border-top: 3px solid var(--c); padding-top: .8rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.pager span { color: var(--muted); font-size: .9rem; }
.empty { padding: 2rem; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* --- briefing --- */
.briefing-note { font-size: .82rem; color: var(--muted); margin-top: 1.4rem; }
.briefing-archive { display: flex; flex-wrap: wrap; gap: .5rem; }
.briefing-archive a { border: 1.5px solid var(--line); border-radius: 999px; padding: .4em .9em; font-family: var(--font-display); font-weight: 600; font-size: .88rem; }
.briefing-archive a:hover { border-color: var(--ink); text-decoration: none; }

/* --- tools --- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tools-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tool-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; background: #fff; transition: border-color .15s ease, transform .15s ease; }
.tool-card:hover { border-color: var(--c); transform: translateY(-2px); }
.tool-head { display: flex; gap: .8rem; align-items: center; }
.tool-mono { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.tool-name { margin: 0; font-size: 1.1rem; }
.tool-tag { margin: 0; font-size: .85rem; color: var(--muted); }
.tool-desc { margin: 0; font-size: .95rem; color: var(--ink-2); flex: 1; }
.tool-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tool-actions { margin: 0; display: flex; gap: .5rem; }
.tcat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; }
.tcat-grid a { border: 1.5px solid var(--line); border-radius: 10px; padding: .7em .8em; font-family: var(--font-display); font-weight: 600; font-size: .86rem; display: flex; flex-direction: column; gap: .15em; }
.tcat-grid a small { font-weight: 400; color: var(--muted); font-family: var(--font-text); }
.tcat-grid a:hover { border-color: var(--ink); text-decoration: none; }
.tcat-grid a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tcat-grid a[aria-current] small { color: var(--on-night-muted); }
.tool-filter { display: flex; gap: .6rem; align-items: center; margin-bottom: 1.4rem; }
.tool-filter input { flex: 1; height: 46px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 1.2em; font: inherit; }
.tool-filter input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.tool-count { font-family: var(--font-display); font-weight: 600; color: var(--muted); white-space: nowrap; }
.tool-hero { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.tool-hero .tool-mono { width: 72px; height: 72px; font-size: 2rem; border-radius: 18px; }
.tool-box { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.3rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.tool-box dl { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem .9rem; font-size: .93rem; }
.tool-box dt { color: var(--muted); }
.tool-box dd { margin: 0; font-weight: 600; }
.tool-box .btn { width: 100%; }
.tool-box .aff-note { font-size: .78rem; color: var(--muted); margin: .8rem 0 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.6rem 0; }
.pros-cons > div { border-radius: var(--radius-sm); padding: 1rem 1.2rem; background: var(--soft); }
.pros-cons h3 { font-size: 1rem; margin-bottom: .5em; }
.pros-cons ul { margin: 0; padding-left: 1.1em; }
.pros-cons li { margin: .25em 0; }
.pros-cons .pros { box-shadow: inset 4px 0 0 var(--green); }
.pros-cons .cons { box-shadow: inset 4px 0 0 var(--orange); }
.coupon { display: inline-flex; align-items: center; gap: .6em; border: 2px dashed var(--ink); border-radius: 10px; padding: .5em .9em; font-family: var(--font-mono); font-weight: 700; margin-top: .6rem; }

/* --- journey --- */
.journey-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.journey-list::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 4px; background: var(--rainbow); background: linear-gradient(180deg, var(--red), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue), var(--purple)); border-radius: 4px; opacity: .9; }
.journey-item { display: grid; grid-template-columns: 58px 1fr; gap: 1rem; padding: 1rem 0; align-items: start; }
.journey-num { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--ink)); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; position: relative; z-index: 1; }
.journey-body h3 { margin: .35em 0 .2em; font-size: 1.25rem; }
.journey-body p { margin: 0 0 .4em; color: var(--ink-2); }
.journey-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .8em; flex-wrap: wrap; }
.journey-body a.title:hover { text-decoration-color: var(--c); }
.guide-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.guide-nav a { font-family: var(--font-display); font-weight: 600; max-width: 45%; }
.guide-nav small { display: block; color: var(--muted); font-family: var(--font-text); font-weight: 400; font-size: .8rem; }
.guide-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 2rem; }
.guide-tools a { border: 1.5px solid var(--line); border-radius: 999px; padding: .35em .8em; font-family: var(--font-display); font-weight: 600; font-size: .85rem; }
.guide-tools a:hover { border-color: var(--ink); text-decoration: none; }
.article-head { padding: clamp(2rem, 5vw, 4rem) 0 1.5rem; }
.article-head .kicker { color: var(--c, var(--ink-2)); }
.article-meta { color: var(--muted); font-size: .9rem; display: flex; gap: 1em; flex-wrap: wrap; }
.journey-steps-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.journey-steps-mini a { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .3em; min-height: 120px; }
.journey-steps-mini a:hover { border-color: var(--c); text-decoration: none; }
.journey-steps-mini .n { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--c); line-height: 1; }
.journey-steps-mini .t { font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.2; }

/* --- picks --- */
.picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pick { border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.pick img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.pick-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pick-kind { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--ink-2)); }
.pick h3 { margin: 0; font-size: 1.15rem; }
.pick p { margin: 0; color: var(--ink-2); font-size: .95rem; flex: 1; }
.pick .pick-foot { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); margin-top: .4rem; }

/* --- about --- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.founder { display: grid; grid-template-columns: 140px 1fr; gap: 1.6rem; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.founder-mono { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: #fff; background: var(--night); position: relative; isolation: isolate; }
.founder-mono::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--red), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue), var(--purple), var(--red)); z-index: -1; }
.founder-mono::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--night); z-index: -1; }
.founder h2 { margin: .1em 0 .2em; }
.founder .motto { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0 0 .6em; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.principles li { display: flex; gap: .8em; align-items: flex-start; padding: .8em 1em; background: var(--soft); border-radius: var(--radius-sm); }
.principles li .dot { margin-top: .5em; }

/* --- newsletter block --- */
.nl-block { background: var(--night); color: var(--on-night); border-radius: 22px; padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.nl-block::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--rainbow); }
.nl-block h2 { color: #fff; }
.nl-block p { color: var(--on-night-muted); }
.nl-block .kicker { color: var(--on-night-muted); }
.nl-block .nl-row { display: flex; gap: .5rem; }
.nl-block input[type=email] { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; padding: 0 1.2em; font: inherit; }
.nl-block input[type=email]::placeholder { color: rgba(255,255,255,.55); }
.nl-block .btn { height: 50px; background: #fff; color: var(--ink); }
.nl-block .nl-note { font-size: .8rem; margin: .6em 0 0; }
.nl-block .nl-note a { text-decoration: underline; }
.nl-what { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.nl-what li { display: flex; gap: .6em; align-items: flex-start; color: var(--on-night); font-size: .95rem; }
.nl-what li::before { content: "✓"; color: var(--green); font-weight: 700; }
.nl-inline { max-width: 560px; }
.nl-inline .nl-row { display: flex; gap: .5rem; }
.nl-inline input[type=email] { flex: 1; min-width: 0; height: 50px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 1.2em; font: inherit; }
.nl-inline input[type=email]:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.nl-inline .nl-note { font-size: .82rem; color: var(--muted); margin: .6em 0 0; }
.nl-msg { margin: .6em 0 0; font-weight: 600; font-size: .92rem; }
.nl-msg.ok { color: var(--green); }
.nl-msg.err { color: var(--red); }
.hp { position: absolute; left: -9999px; }

/* --- forms --- */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { display: grid; gap: .35rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; }
.form input, .form textarea { font: inherit; font-family: var(--font-text); border: 1.5px solid var(--line); border-radius: 10px; padding: .75em .9em; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--soft); border-left: 4px solid var(--ink); }
.notice.ok { border-left-color: var(--green); }
.notice.err { border-left-color: var(--red); }

/* --- ads --- */
.ad-slot { margin: 2rem 0; text-align: center; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }

/* --- search --- */
.search-big { display: flex; gap: .5rem; max-width: 720px; margin-bottom: 2rem; }
.search-big input { flex: 1; height: 54px; border: 2px solid var(--ink); border-radius: 999px; padding: 0 1.4em; font: inherit; font-size: 1.05rem; }
.result-group { margin-bottom: 2.5rem; }

/* --- page head --- */
.page-head { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.2rem, 3vw, 2rem); }
.page-head .lede { font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); }
.page-head.on-night { background: var(--night); color: var(--on-night); }
.page-head.on-night h1 { color: #fff; }
.page-head.on-night .lede { color: var(--on-night-muted); }
.page-head.on-night .kicker { color: var(--on-night-muted); }

/* --- footer --- */
.site-footer { background: var(--night); color: var(--on-night); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand img { margin-bottom: .6rem; }
.footer-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin: 0; letter-spacing: -.02em; }
.footer-tag { color: var(--on-night-muted); margin: 0 0 1rem; }
.footer-founded { color: var(--on-night-muted); font-size: .92rem; }
.footer-founded em { color: var(--on-night); }
.footer-h { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-muted); margin: 0 0 .7rem; }
.footer-h + ul + .footer-h { margin-top: 1.4rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer li a { display: inline-flex; align-items: center; gap: .5em; color: var(--on-night); font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0 2rem; font-size: .82rem; color: var(--on-night-muted); }
.footer-bottom p { margin: 0 0 .5em; }
.footer-langs { display: flex; flex-wrap: wrap; gap: .3em 1em; }
.footer-langs a { color: var(--on-night); }
#google_translate_element { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; background: #fff; padding: .6rem .8rem; border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); }
#google_translate_element[hidden] { display: none; }
body { top: 0 !important; }
.skiptranslate iframe { display: none !important; }

/* --- legal / static --- */
.legal .prose h2 { font-size: 1.35rem; }
.legal-note { font-size: .85rem; color: var(--muted); }

/* --- responsive --- */
@media (max-width: 1100px) {
  .nav { display: none; }
  details.menu-toggle { display: block; }
  .news-grid, .hot-grid, .tools-grid, .picks-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid-4, .tools-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tcat-grid { grid-template-columns: repeat(4, 1fr); }
  .journey-steps-mini { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-hero { grid-template-columns: 1fr; }
  .tool-box { position: static; }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .search-mini { display: none; }
  .subscribe-cta { display: none; }
  .brand-tag { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.2rem 0 2.4rem; }
  .hero-video { order: -1; aspect-ratio: 16 / 10; }
  .news-lead-grid, .about-hero, .nl-block, .pros-cons { grid-template-columns: 1fr; }
  .news-grid, .hot-grid, .tools-grid, .picks-grid, .news-grid-4, .tools-grid-4 { grid-template-columns: 1fr; }
  .news-card.news-row .news-media { flex-basis: 96px; }
  .tcat-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-steps-mini { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .nl-hero .nl-row, .nl-block .nl-row, .nl-inline .nl-row { flex-direction: column; }
  .nl-hero .btn, .nl-block .btn { width: 100%; }
  .guide-nav { flex-direction: column; }
  .guide-nav a { max-width: none; }
}
@media (max-width: 420px) {
  .wrap { width: min(100% - 1.4rem, var(--wrap)); }
  .brand-name { font-size: 1.2rem; }
}

/* "Most used" marker on a directory card. Ink on paper, no colour — the topic chip
   already carries the colour and two coloured badges side by side fight each other. */
.badge-featured { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- What Goes: our own conclusions --- */
/* auto-fit, not a fixed 3 columns: with one or two conclusions published, a rigid grid
   leaves a stretched card marooned beside empty space. */
.takes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.takes-grid:has(> .take-card:only-child) { grid-template-columns: minmax(0, 620px); }
.take-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; background: #fff; border-top: 4px solid var(--c); transition: transform .15s ease, border-color .15s ease; }
.take-card:hover { transform: translateY(-2px); border-color: var(--c); border-top-color: var(--c); }
.take-title { margin: 0; font-size: 1.22rem; line-height: 1.18; }
.take-dek { margin: 0; color: var(--ink-2); font-size: .95rem; }
.take-goes { margin: .3rem 0 0; font-size: .92rem; color: var(--ink); background: var(--soft); border-left: 3px solid var(--c); border-radius: 0 6px 6px 0; padding: .6em .8em; }
.take-goes-label { font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c); display: block; }
.take-src { margin: auto 0 0; font-size: .8rem; color: var(--muted); padding-top: .5rem; }
.take-source { background: var(--soft); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 0 0 2rem; font-size: .95rem; }
.take-source a { text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: .16em; }
.take-body h2 { font-size: 1.35rem; margin-top: 1.8em; }
.take-body .h-goes { color: var(--c); }
.take-body .p-goes { font-size: 1.12rem; border-left: 4px solid var(--c); padding: .2em 0 .2em 1.1em; }
.do-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.do-list li { display: flex; gap: .7em; align-items: flex-start; background: var(--soft); border-radius: var(--radius-sm); padding: .7em .9em; }
.do-list li::before { content: "→"; color: var(--c); font-weight: 700; flex: 0 0 auto; }
.take-caveat { font-size: .92rem; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: .8em 1em; margin-top: 1.6em; }
.badge-conf-high { background: #e8fbee; border-color: #bff0cd; color: #0a6b2a; }
.badge-conf-medium { background: #fff6e4; border-color: #ffe1a8; color: #8a5300; }
.badge-conf-low { background: #fdeceb; border-color: #f8c9c6; color: #8a1b14; }
.preview-ribbon { background: var(--red); color: #fff; text-align: center; padding: .5em 1em; font-family: var(--font-display); font-weight: 600; font-size: .88rem; }
@media (max-width: 1100px) { .takes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 780px)  { .takes-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   The Daily Briefing — a report, not a list.
   Three jobs a numbered list could not do: the spectrum says what kind of day
   it was before you read a word; the lead is visibly the lead; and the
   "why it matters" line is set in ink, because it is the point.
   ========================================================================== */
/* No decorative rainbow strip on this card: the spectrum bar below is already the rainbow,
   and there it carries meaning. Two of them would make the meaningful one read as ornament. */
.brief { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.6rem); position: relative; }

/* header ------------------------------------------------------------------ */
.brief-head { position: relative; }
.brief-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-bottom: 1rem; }
.bm-sep { opacity: .35; }
.bm-date { color: var(--ink); font-weight: 600; }
.bm-ai { border: 1px solid var(--line); border-radius: 999px; padding: .15em .6em; cursor: help; }

/* the spectrum: one bar, segments sized by how many stories each topic got */
.spectrum { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--soft); margin-bottom: .6rem; }
.sp-seg { display: block; background: var(--c); min-width: 8px; transition: transform .18s ease, filter .18s ease; transform-origin: center bottom; }
.sp-seg:hover { filter: brightness(1.12); transform: scaleY(1.5); }
.spectrum-key { display: flex; flex-wrap: wrap; gap: .35em 1.1em; margin: 0 0 1.6rem; font-size: .78rem; color: var(--muted); }
.spk { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.spk b { color: var(--ink); font-weight: 600; }

.brief-headline { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.05; margin: 0 0 .5rem; letter-spacing: -.025em; }
.brief-headline a:hover { text-decoration: none; opacity: .72; }
.brief-intro { font-size: 1.12rem; color: var(--ink-2); max-width: 66ch; margin: 0 0 2rem; }

/* lead story --------------------------------------------------------------- */
.brief-lead { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 1.1rem; align-items: start; padding: 1.3rem 1.3rem 1.4rem; margin: 0 0 .4rem; border-radius: 16px; background: var(--soft); border: 1.5px solid transparent; transition: border-color .16s ease, background .16s ease; }
.brief-lead.has-img { grid-template-columns: 3.4rem 200px 1fr; }
.brief-lead:hover { text-decoration: none; border-color: var(--c); background: #fff; }
.bl-n { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: .9; color: var(--c); letter-spacing: -.04em; }
.bl-img { border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; background: var(--line); }
.bl-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-body { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.bl-topic, .bi-topic { display: flex; flex-wrap: wrap; align-items: center; gap: .45em .8em; font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--c); margin: 0; }
.bl-src, .bi-src { color: var(--muted); font-family: var(--font-text); font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: .8rem; }
.bl-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); line-height: 1.14; letter-spacing: -.02em; color: var(--ink); }
.brief-lead:hover .bl-title { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: .16em; }
/* the payoff line: ink, not grey, and given room */
.bl-why { font-size: 1.02rem; color: var(--ink-2); }
.bl-why::before, .bi-why::before { content: "→ "; color: var(--c); font-weight: 700; }

/* the rest ----------------------------------------------------------------- */
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 1.1rem; padding: 1.15rem 1.3rem; border-top: 1px solid var(--line); border-radius: 14px; transition: background .14s ease; }
.brief-list li:hover { background: var(--soft); }
.bi-n { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.05; color: var(--c); letter-spacing: -.03em; opacity: .9; }
.bi-body { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.bi-title { margin: 0; font-size: 1.1rem; line-height: 1.2; }
.bi-title a:hover { text-decoration-color: var(--c); text-decoration-thickness: 2px; }
.bi-why { margin: 0; font-size: .97rem; color: var(--ink-2); }

/* what to watch, and the tool ---------------------------------------------- */
.brief-watch { margin-top: 1.6rem; padding: 1.1rem 1.3rem; border-radius: 14px; background: var(--night); color: var(--on-night); }
.bw-label { font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-muted); margin: 0 0 .35rem; }
.bw-text { margin: 0; font-size: 1.05rem; }
.brief-tool { display: grid; grid-template-columns: auto 1fr auto; gap: .3rem 1rem; align-items: center; margin-top: .8rem; padding: 1rem 1.3rem; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .15s ease; }
.brief-tool:hover { border-color: var(--ink); text-decoration: none; }
.bt-label { grid-row: 1; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bt-name { grid-row: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.bt-tag { grid-column: 2; grid-row: 2; color: var(--ink-2); font-size: .95rem; }
.bt-go { grid-column: 3; grid-row: 1 / span 2; font-size: 1.3rem; color: var(--muted); }

.brief-foot { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.brief-note { font-size: .8rem; color: var(--muted); margin: 1.2rem 0 0; max-width: 74ch; }

@media (max-width: 900px) {
  .brief-lead.has-img { grid-template-columns: 3.4rem 1fr; }
  .brief-lead.has-img .bl-img { display: none; }
}
@media (max-width: 640px) {
  .brief { border-radius: 16px; }
  .brief-lead, .brief-list li { grid-template-columns: 2.4rem 1fr; gap: 0 .8rem; padding-left: .9rem; padding-right: .9rem; }
  .bl-n { font-size: 1.5rem; }
  .bi-n { font-size: 1.15rem; }
  .brief-foot .btn { width: 100%; }
}

/* ==========================================================================
   The briefing deck — the home page's briefing as cards you flip.
   The numbered list read as a document under a TV (Leonard, 11 Sep 2026: "not
   engaging"). Each story now has a picture; the front asks, the back answers why
   it matters. The spectrum bar fills as cards are read. Without JavaScript both
   faces show, stacked, and nothing turns.
   ========================================================================== */
.deck { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dk-card { position: relative; min-width: 0; perspective: 1600px; }
.dk-lead { grid-column: span 2; grid-row: span 2; }
.dk-inner { display: grid; height: 100%; }
.dk-face { grid-area: 1 / 1; min-width: 0; border-radius: 18px; overflow: hidden; }
.brief-deck:not(.is-deck) .dk-front { border-radius: 18px 18px 0 0; }
.brief-deck:not(.is-deck) .dk-back { grid-area: 2 / 1; border-radius: 0 0 18px 18px; }

/* front: a picture and a question */
.dk-front { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); transition: border-color .16s ease, box-shadow .2s ease; }
.dk-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: #07070a; overflow: hidden; }
.dk-pic::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px), linear-gradient(118deg, rgba(255,255,255,.1), transparent 40%); pointer-events: none; }
.dk-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.dk-lead .dk-pic { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; }
.dk-n { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1; color: #fff; background: rgba(0,0,0,.58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); border-left: 3px solid var(--c); border-radius: 8px; padding: .4em .6em; }
.dk-lead .dk-n { font-size: 1.4rem; }
.dk-seen { position: absolute; top: 12px; right: 12px; z-index: 2; display: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 800; box-shadow: 0 0 0 3px var(--c); }
.dk-card.is-read .dk-seen { display: grid; }
.dk-body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem 1.05rem; flex: 0 0 auto; }
.dk-lead .dk-body { padding: 1.3rem 1.4rem 1.3rem; gap: .6rem; }
.dk-topic { display: flex; flex-wrap: wrap; align-items: center; gap: .4em .7em; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--c); }
.dk-src { color: var(--muted); font-family: var(--font-text); font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: .78rem; }
.dk-title { margin: 0; font-size: 1.02rem; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.dk-lead .dk-title { font-size: clamp(1.35rem, 1rem + 1vw, 1.95rem); line-height: 1.1; letter-spacing: -.02em; }
/* the whole front is the button: its ::after covers the card */
.dk-flip { margin-top: .25rem; align-self: flex-start; display: inline-flex; align-items: center; gap: .5em; padding: 0; border: 0; background: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .86rem; cursor: pointer; }
.dk-flip::after { content: ""; position: absolute; inset: 0; border-radius: 18px; z-index: 3; }
.dk-arrow { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); transition: transform .35s ease; }
.dk-arrow svg { width: .9em; height: .9em; display: block; }
.dk-front:hover { border-color: var(--c); box-shadow: 0 22px 44px -26px rgba(0,0,0,.4); }
.dk-front:hover .dk-pic img { transform: scale(1.06); }
.dk-front:hover .dk-arrow { transform: rotate(180deg); }
.dk-flip:focus-visible { outline: none; }
.dk-flip:focus-visible::after { outline: 3px solid var(--ink); outline-offset: 3px; }

/* back: the answer, big, on night */
.dk-back { --cl: color-mix(in srgb, var(--c) 62%, #fff); position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.15rem 1.15rem 1.05rem; background: var(--night); color: var(--on-night); border: 1.5px solid var(--cl); isolation: isolate; }
.dk-back::before { content: ""; position: absolute; left: -25%; right: -25%; bottom: -55%; height: 90%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .32; z-index: -1; pointer-events: none; }
.dk-back:focus { outline: none; }
.dk-back:focus-visible { outline: 3px solid var(--cl); outline-offset: 3px; }
.dk-label { display: flex; align-items: center; gap: .6em; margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cl); }
.dk-bn { font-family: var(--font-display); font-weight: 800; letter-spacing: 0; color: #fff; }
.dk-why { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.22; letter-spacing: -.01em; color: #fff; text-wrap: pretty; }
.dk-lead .dk-back { padding: 1.6rem 1.6rem 1.4rem; gap: 1rem; }
.dk-lead .dk-why { font-size: clamp(1.45rem, 1rem + 1.4vw, 2.2rem); line-height: 1.12; letter-spacing: -.02em; }
/* the lead's back is two rows tall: the story's own headline, small, fills it with context */
.dk-bt { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #b9b9c4; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; max-width: 44ch; }
.dk-bt + .dk-actions { margin-top: 0; }
.dk-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.dk-go { font-family: var(--font-display); font-weight: 600; font-size: .82rem; padding: .55em .9em; border-radius: 999px; background: #fff; color: #000; }
.dk-go:hover { text-decoration: none; background: var(--cl); }
.dk-unflip { padding: .5em .85em; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); background: transparent; color: #e9e9f1; font-family: var(--font-display); font-weight: 600; font-size: .8rem; cursor: pointer; }
.dk-unflip:hover { border-color: #fff; }

/* the turn */
.is-deck .dk-inner { transform-style: preserve-3d; transition: transform .62s cubic-bezier(.2, .75, .25, 1); }
.is-deck .dk-face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.is-deck .dk-back { transform: rotateY(180deg); }
.is-deck .dk-card.is-flipped .dk-inner { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) {
  .is-deck .dk-inner, .is-deck .dk-card.is-flipped .dk-inner { transform: none; transition: none; }
  .is-deck .dk-back { transform: none; visibility: hidden; }
  .is-deck .dk-card.is-flipped .dk-back { visibility: visible; }
  .is-deck .dk-card.is-flipped .dk-front { visibility: hidden; }
  .dk-arrow, .dk-pic img { transition: none; }
}

/* the spectrum as progress: each topic's segment fills as its cards are read */
.brief.is-deck .spectrum { height: 12px; }
.brief.is-deck .sp-seg { position: relative; overflow: hidden; background: color-mix(in srgb, var(--c) 20%, #e9e9ee); }
.brief.is-deck .sp-seg i { position: absolute; inset: 0; background: var(--c); transform-origin: left center; transform: scaleX(var(--fill, 0)); transition: transform .55s cubic-bezier(.2, .75, .25, 1); }
.dk-tally { margin-left: auto; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--ink); font-weight: 600; white-space: nowrap; }
.brief.is-done .dk-tally::before { content: "✓ "; color: var(--green); }

/* the last card: what is left to do, then that the day is done */
.dk-done { grid-column: span var(--span, 2); display: flex; flex-direction: column; justify-content: center; gap: .7rem; padding: 1.4rem 1.5rem; border-radius: 18px; background: var(--ink); color: #fff; min-width: 0; }
.dk-state { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.015em; }
.dk-todo, .dk-fin { display: none; }
.brief.is-deck:not(.is-done) .dk-todo { display: inline; }
.brief.is-done .dk-fin { display: inline; }
.brief.is-done .dk-done { box-shadow: 0 0 0 3px var(--green); }
.dk-more { margin: 0; color: #b9b9c4; font-size: .95rem; }
.dk-cta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.dk-mail { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.dk-mail:hover { border-color: #fff; }

@media (max-width: 1000px) {
  .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-lead { grid-row: auto; }
  .dk-lead .dk-pic { aspect-ratio: 21 / 9; flex: none; min-height: 0; }
  .dk-bt { display: none; }
  .dk-done { grid-column: 1 / -1; }
}
/* phones: one swipeable row, the bar above is the progress */
@media (max-width: 640px) {
  .deck { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -1.4rem; padding: 0 1.4rem 8px; scroll-padding-inline: 1.4rem; scrollbar-width: none; }
  .deck::-webkit-scrollbar { display: none; }
  .dk-card, .dk-done { flex: 0 0 84%; scroll-snap-align: start; }
  .dk-lead .dk-pic { aspect-ratio: 16 / 9; }
  .dk-lead .dk-title { font-size: 1.25rem; }
  .dk-lead .dk-why { font-size: 1.3rem; }
  .dk-tally { margin-left: 0; }
  .dk-cta .btn { width: 100%; }
  /* phone polish (12 Sep 2026): Apple and Google both ask for a 44 px tap target.
     "Flip back" measured 31 px and "Read at ..." 35 px on a 390 px phone. */
  /* :not([hidden]) matters: brief.js reveals this button with the hidden attribute,
     and a bare display rule would override it and show it with scripts off. */
  .dk-go, .dk-unflip:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  .dk-go { padding: .55em 1.1em; }
  .dk-unflip { padding: .5em 1.05em; }
  /* the headline plus the intro filled a small screen before the first card.
     brief-deck is in the markup, so this holds with scripts off too. /briefing/ keeps its intro. */
  .brief-deck .brief-intro { display: none; }
}

/* ==========================================================================
   HapnGo TV — the news as channels.
   Replaces seven stacked topic rows that all looked alike. One set: a screen with
   the story on air, a rail of mini monitors, and a remote. Flip channels, or let
   it surf by itself. Dark by design, because a TV is.
   ========================================================================== */
.tvx { position: relative; background: #050507; color: #f2f2f5; padding: clamp(2.6rem, 6vw, 5rem) 0; overflow: hidden; isolation: isolate; --tv-c: #F2F2F7; }
.tvx-ambient { position: absolute; left: 50%; top: 48%; width: min(1500px, 130vw); height: 800px; transform: translate(-50%, -50%); background-color: var(--tv-c); -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.35) 48%, transparent 100%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.35) 48%, transparent 100%); opacity: .2; filter: blur(34px); transition: background-color .9s ease; z-index: -1; pointer-events: none; }

.tvx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.tvx-kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 .55rem; min-height: 28px; }
.tvx-state { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #c9c9d4; }
.tvx-rec { width: .6em; height: .6em; border-radius: 50%; background: #ff3b30; animation: tvxpulse 1.8s infinite; }
.tvx.is-paused .tvx-rec { background: #5b5b66; animation: none; }
@keyframes tvxpulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,48,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,59,48,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); } }
.tvx-pp { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; padding: 0; }
.tvx-pp:hover { background: rgba(255,255,255,.12); }
.tvx-pp svg { width: 12px; height: 12px; display: block; }
.tvx-pp .i-play { display: none; }
.tvx-pp[aria-pressed="true"] .i-play { display: block; }
.tvx-pp[aria-pressed="true"] .i-pause { display: none; }
.tvx-title { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.8rem); margin: 0; letter-spacing: -.035em; color: #fff; line-height: 1; }
.tvx-title span { color: transparent; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; }
.tvx-sub { color: #a9a9b6; margin: .55rem 0 0; max-width: 54ch; }
.tvx-keys { font-size: .78rem; color: #8d8d9a; margin: 0; white-space: nowrap; display: flex; align-items: center; gap: .35rem; }
.tvx-keys kbd { font-family: var(--font-mono); font-size: .7rem; min-width: 1.5em; text-align: center; border: 1px solid rgba(255,255,255,.18); border-bottom-width: 2px; border-radius: 5px; padding: .1em .4em; color: #ececf3; background: rgba(255,255,255,.04); }
.tvx-keys i { font-style: normal; margin-right: .7rem; }
/* without JavaScript nothing plays, so nothing claims to */
.tvx:not(.is-live) .tvx-state, .tvx:not(.is-live) .tvx-pp, .tvx:not(.is-live) .tvx-keys, .tvx:not(.is-live) .tvx-prog { display: none; }

.tvx-set { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; padding: 14px; border-radius: 26px; background: linear-gradient(180deg, #15151b, #0b0b0f); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 50px 100px -50px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.07); }
.tvx-main { min-width: 0; }
.tvx-screen { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; color: #fff; isolation: isolate; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 70px -24px var(--tv-c); transition: box-shadow .9s ease; }
.tvx-screen:hover, .tvx-screen:focus-visible { text-decoration: none; }
.tvx-screen:focus-visible { outline: 3px solid var(--tv-c); outline-offset: 3px; }
.tvx-pic { position: absolute; inset: 0; }
.tvx-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvx-pic img.fade { animation: tvxfade .45s ease-out both; }
.tvx-pic.kb { animation: tvxkb 10s linear both; }
.tvx.is-paused .tvx-pic.kb { animation-play-state: paused; }
@keyframes tvxkb { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes tvxfade { from { opacity: 0; filter: saturate(1.6) brightness(1.4); } to { opacity: 1; filter: none; } }

/* glass reflection, fine scanlines and a vignette: enough to read as a screen, never a gimmick */
.tvx-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 30%), repeating-linear-gradient(0deg, rgba(0,0,0,.13) 0 1px, transparent 1px 3px), radial-gradient(130% 95% at 50% 42%, transparent 55%, rgba(0,0,0,.6) 100%); }
.tvx-static { position: absolute; inset: -30%; z-index: 3; pointer-events: none; opacity: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); background-size: 180px; }
.tvx.is-switching .tvx-static { animation: tvxstatic .34s steps(5) both; }
.tvx.is-switching .tvx-screen { animation: tvxroll .34s ease-out both; }
@keyframes tvxstatic { 0% { opacity: .95; transform: translate(0, 0); } 30% { transform: translate(-6%, 4%); } 60% { opacity: .75; transform: translate(4%, -3%); } 100% { opacity: 0; transform: translate(0, 0); } }
@keyframes tvxroll { 0% { filter: brightness(2) contrast(1.6) saturate(0); } 45% { filter: brightness(.55); } 100% { filter: none; } }

/* the station bug, like a broadcaster's logo in the corner */
.tvx-bug { position: absolute; top: 14px; left: 14px; z-index: 4; width: 40px; height: 40px; opacity: .92; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.tvx-osd { position: absolute; top: 16px; right: 18px; z-index: 4; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); border-left: 3px solid var(--tv-c); border-radius: 8px; padding: .45em .8em; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }
.tvx-osd b { color: var(--tv-c); font-weight: 700; margin-right: .5em; }
.tvx-osd.show { opacity: 1; transform: none; }

.tvx-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 5.5rem 1.6rem 1.4rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72) 45%, rgba(0,0,0,.93)); display: flex; flex-direction: column; gap: .45rem; }
.tvx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #dcdce6; }
.tvx-sep { opacity: .45; }
.tvx-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--tv-c); box-shadow: 0 0 12px var(--tv-c); flex: 0 0 auto; }
.tvx-h { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, .9rem + 1.6vw, 2.3rem); line-height: 1.08; letter-spacing: -.025em; color: #fff; text-wrap: balance; max-width: 30ch; }
.tvx-screen:hover .tvx-h { text-decoration: underline; text-decoration-color: var(--tv-c); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.tvx-m { color: #c7c7d2; font-size: .98rem; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tvx-open { position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 5; font-family: var(--font-display); font-weight: 600; font-size: .8rem; padding: .45em .85em; border-radius: 999px; background: #fff; color: #000; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.tvx-screen:hover .tvx-open, .tvx-screen:focus-visible .tvx-open { opacity: 1; transform: none; }

.tvx-prog { display: flex; gap: 5px; margin-top: 12px; padding: 0 2px; }
.tvx-seg { flex: 1; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.14); cursor: pointer; position: relative; overflow: visible; }
.tvx-seg::before { content: ""; position: absolute; inset: -9px 0; }
.tvx-seg i { position: absolute; inset: 0; border-radius: inherit; background: var(--tv-c); transform-origin: left center; transform: scaleX(0); }
.tvx-seg.done i { transform: scaleX(1); opacity: .5; }
.tvx-seg:hover { background: rgba(255,255,255,.3); }

.tvx-next { display: flex; flex-direction: column; min-width: 0; }
.tvx-next-h { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #8d8d9a; margin: 2px 4px .6rem; }
.tvx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tvx-list li { min-width: 0; }
.tvx-list a { display: grid; grid-template-columns: 124px 1fr; gap: .8rem; align-items: center; padding: 7px; border-radius: 12px; border: 1px solid transparent; color: #fff; transition: background .15s ease, border-color .15s ease; }
.tvx-list a:hover, .tvx-list a:focus-visible { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); text-decoration: none; }
.tvx-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.tvx-thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px), linear-gradient(118deg, rgba(255,255,255,.1), transparent 42%); pointer-events: none; }
.tvx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.tvx-list a:hover .tvx-thumb img { transform: scale(1.08); }
.tvx-lt { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.tvx-lh { font-family: var(--font-display); font-weight: 600; font-size: .9rem; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tvx-lm { font-size: .74rem; color: #8d8d9a; }

/* the remote */
.tvx-remote { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; margin-top: 14px; }
.tvx-ch { position: relative; display: flex; flex-direction: column; gap: .12rem; padding: .7rem .75rem .65rem; border-radius: 14px; background: linear-gradient(180deg, #16161c, #0f0f14); border: 1px solid rgba(255,255,255,.07); color: #e9e9f1; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 0 rgba(0,0,0,.6); transition: transform .12s ease, border-color .15s ease, background .15s ease; min-width: 0; }
.tvx-ch:hover { text-decoration: none; border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.tvx-ch:active { transform: translateY(1px); }
.tvx-ch:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.tvx-led { position: absolute; top: .72rem; right: .72rem; width: 7px; height: 7px; border-radius: 50%; background: #2a2a33; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: background .2s ease, box-shadow .2s ease; }
.tvx-ch[aria-current] { border-color: var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, #16161c), #0f0f14); }
.tvx-ch[aria-current] .tvx-led { background: var(--c); box-shadow: 0 0 10px var(--c), 0 0 2px var(--c); }
.tvx-chn { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: color-mix(in srgb, var(--c) 75%, #fff); }
/* two lines, never an ellipsis: "Business & Mo…" on a remote button reads as a bug */
.tvx-chname { font-family: var(--font-display); font-weight: 700; font-size: .86rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: .6rem; min-height: 2.3em; }
/* the rail's last row: a way into the whole channel, which also fills the space under "up next" */
.tvx-all { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 8px; padding: .7rem .85rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); color: #e9e9f1; font-family: var(--font-display); font-weight: 600; font-size: .85rem; transition: border-color .15s ease, background .15s ease; }
.tvx-all:hover, .tvx-all:focus-visible { text-decoration: none; border-color: var(--tv-c); background: rgba(255,255,255,.04); }
.tvx-all b { color: var(--tv-c); font-weight: 700; }
.tvx-chcount { font-size: .72rem; color: #8d8d9a; }

@media (max-width: 1100px) {
  .tvx-set { grid-template-columns: minmax(0, 1fr); }
  .tvx-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .tvx-list li { flex: 0 0 min(260px, 72%); scroll-snap-align: start; }
  .tvx-list a { grid-template-columns: 1fr; align-items: start; }
  .tvx-remote { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tvx-keys { display: none; }
}
@media (max-width: 640px) {
  .tvx-head { flex-direction: column; align-items: flex-start; }
  .tvx-set { padding: 8px; border-radius: 18px; }
  .tvx-screen { aspect-ratio: 4 / 5; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 30px -16px var(--tv-c); }
  .tvx-m, .tvx-open { display: none; }
  .tvx-cap { padding: 5rem 1rem 1.1rem; }
  .tvx-bug { width: 32px; height: 32px; top: 10px; left: 10px; }
  .tvx-osd { top: 12px; right: 12px; font-size: .7rem; }
  .tvx-remote { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .tvx-ch { flex: 0 0 138px; scroll-snap-align: start; }
  /* on a phone the screen glow (measured 11 Sep 2026, not the ambient) reached the viewport edge and greyed it; both glows stay a hint */
  .tvx-ambient { opacity: .1; }
}

/* ==========================================================================
   The Journey as a level map, What Goes with pictures, Picks as a shelf.
   Three blocks that used to be text in boxes. Each now has a picture per item,
   drawn from the same signal art as HapnGo TV, so the page reads as one system.
   ========================================================================== */

/* --- The Journey ---------------------------------------------------------- */
.jmap { margin-top: .4rem; }
.jmap-rail { display: flex; gap: 6px; margin: 0 0 1.4rem; }
.jr-seg { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.jr-label { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-bar { height: 6px; border-radius: 999px; background: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.jr-n { font-size: .72rem; color: var(--on-night-muted); white-space: nowrap; }
.jmap-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.jmap-grid li { min-width: 0; }
.lvl { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: #14141a; border: 1px solid rgba(255,255,255,.08); color: #f2f2f5; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.lvl:hover, .lvl:focus-visible { text-decoration: none; transform: translateY(-4px); border-color: var(--c); box-shadow: 0 18px 40px -22px var(--c); }
.lvl:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.lvl-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.lvl-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.lvl:hover .lvl-art img { transform: scale(1.1); }
.lvl-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72)); pointer-events: none; }
.lvl-n { position: absolute; left: .7rem; bottom: .35rem; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.lvl-body { display: flex; flex-direction: column; gap: .4rem; padding: .85rem .95rem 1rem; flex: 1; }
.lvl-meta { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.lvl-stage { font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.lvl-min { font-size: .72rem; color: #8d8d9a; white-space: nowrap; }
.lvl-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.lvl-sum { font-size: .82rem; color: #a9a9b6; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lvl-go { margin-top: auto; padding-top: .35rem; font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--c); opacity: 0; transform: translateX(-6px); transition: opacity .18s ease, transform .18s ease; }
.lvl:hover .lvl-go, .lvl:focus-visible .lvl-go { opacity: 1; transform: none; }
@media (hover: none) { .lvl-go { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .jmap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .jmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lvl-sum, .jr-n { display: none; }
  /* On a phone a one-step chapter is a 30px sliver and its label becomes "EA…". Equal widths
     here: the tiles below still carry each step's stage. !important because the proportional
     width is set inline on each segment. */
  .jr-seg { flex: 1 1 0 !important; }
  .jr-label { font-size: .58rem; letter-spacing: .05em; }
  .lvl-n { font-size: 1.6rem; }
  .lvl-body { padding: .7rem .75rem .8rem; }
}

/* --- What Goes ------------------------------------------------------------ */
.take-card { padding: 0; overflow: hidden; }
.take-art { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: #000; }
.take-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.take-card:hover .take-art img { transform: scale(1.06); }
.take-main { display: flex; flex-direction: column; gap: .5rem; padding: 1.15rem 1.35rem 1.3rem; flex: 1; }
.take-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.take-feature .take-art { aspect-ratio: auto; height: 100%; min-height: 340px; }
.take-feature .take-main { padding: clamp(1.4rem, 3vw, 2.4rem); justify-content: center; }
.take-feature .take-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.take-feature .take-dek { font-size: 1.05rem; }
.take-feature .take-goes { font-size: 1.02rem; }
.take-cta { margin: .5rem 0 0; }
.takes-grid:has(> .take-feature.take-card) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 780px) {
  .take-feature { grid-template-columns: minmax(0, 1fr); }
  .take-feature .take-art { min-height: 0; aspect-ratio: 16 / 9; }
}

/* --- Picks ---------------------------------------------------------------- */
.pick { transition: transform .18s ease, border-color .18s ease; }
.pick:hover { transform: translateY(-3px); border-color: var(--c); }
.pick-art { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #000; }
.pick-art img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: auto; transition: transform .45s ease; }
.pick:hover .pick-art img { transform: scale(1.06); }
.pick-chip { position: absolute; left: .8rem; top: .8rem; font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); border-left: 3px solid var(--c); border-radius: 6px; padding: .3em .6em; }
