/* OffNet Newsroom — dark editorial theme, cyan/amber/purple accents, WCAG AA */

:root {
  --bg: #0a0d13;
  --surface: #111623;
  --surface-2: #171f30;
  --border: #222c42;
  --border-hi: #34425f;
  --text: #e6ecf5;
  --body: #c3cddc;
  --muted: #8fa0b8;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --purple: #a78bfa;
  --maxw: 50rem;
  --radius: 14px;
  --font: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1000px 540px at 88% -12%, rgba(167,139,250,.13), transparent 62%),
    radial-gradient(820px 480px at -12% 14%, rgba(34,211,238,.09), transparent 60%),
    radial-gradient(700px 700px at 50% 120%, rgba(251,191,36,.05), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font: 16.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ── reading progress ─────────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--purple), var(--amber)); box-shadow: 0 0 12px rgba(34,211,238,.55); }

/* ── masthead ─────────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,19,.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.25rem; }
.brand {
  font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand-off {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.topnav { display: flex; align-items: center; gap: .25rem; }
.topnav a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: .35rem .75rem; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap;
}
.topnav a:hover { color: var(--text); background: var(--surface-2); }
.topnav .lookback { color: var(--amber); }
.topnav .lookback:hover { border-color: var(--amber); background: rgba(251,191,36,.08); color: var(--amber); }
.topnav .nav-cards { color: var(--cyan); }
.topnav .nav-cards:hover { border-color: var(--cyan); background: rgba(34,211,238,.08); color: var(--cyan); }

/* view toggle — segmented control, consistent across all skins */
.view-toggle {
  position: relative;
  display: inline-flex; margin-left: .45rem; vertical-align: middle;
  border: 1px solid var(--border); border-radius: 8px;
}
.view-toggle button {
  appearance: none; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--muted); font: inherit; font-size: .78rem; font-weight: 700;
  padding: .32rem .6rem; line-height: 1; transition: color .15s, background .15s;
}
.view-toggle button:first-child { border-radius: 7px 0 0 7px; }
.view-toggle button:nth-child(3) { border-radius: 0 7px 7px 0; }
.view-toggle button + button { border-left: 1px solid var(--border); }
.view-toggle button:hover { color: var(--text); background: var(--surface-2); }
.view-toggle button.active { color: var(--cyan); background: var(--surface-2); }
.view-toggle.pulse { animation: vtPulse 1.8s ease-in-out 2; }
@keyframes vtPulse { 50% { box-shadow: 0 0 0 5px rgba(34,211,238,.22); border-color: var(--cyan); } }
@media (max-width: 720px) { .vt-label { display: none; } }

/* first-visit hint bubble */
.vt-hint {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
  white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface-2); border: 1px solid var(--cyan); border-radius: 8px;
  color: var(--text); font-size: .8rem; font-weight: 600; padding: .45rem .4rem .45rem .75rem;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,.8);
}
.vt-hint::before {
  content: ""; position: absolute; top: -5px; right: 26px; width: 8px; height: 8px;
  background: var(--surface-2); border-left: 1px solid var(--cyan);
  border-top: 1px solid var(--cyan); transform: rotate(45deg);
}
.vt-hint { transition: opacity .3s ease, transform .3s ease; }
.vt-hint[hidden] { display: none; }   /* .vt-hint's display would otherwise defeat [hidden] */
.vt-hint-out { opacity: 0; transform: translateY(-4px); }
.vt-hint-x {
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: .95rem; line-height: 1; padding: 0 .3rem;
}
.vt-hint-x:hover { color: var(--text); }

/* ── app promo (OffNet Chat iPhone app) ───────────────────────── */
/* A 4s live demo of the product: a message dot hops node→node over BLE
   with a radio ping at each hop. Benefit-first headline; rotating
   real-world context ("works at concerts / on flights / …") via news.js. */
.app-promo a {
  display: grid; grid-template-columns: 46px 1fr; gap: .15rem .6rem;
  align-items: center; text-decoration: none;
  background: linear-gradient(140deg, rgba(251,191,36,.12), var(--surface) 60%);
  border: 1px solid rgba(251,191,36,.45); border-radius: 12px;
  padding: .55rem .7rem .5rem .55rem; color: var(--body);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.app-promo a:hover {
  border-color: var(--amber); transform: translateY(-1px);
  box-shadow: 0 12px 30px -14px rgba(251,191,36,.35);
}
.ap-mesh { grid-row: 1 / 3; width: 46px; height: 58px; overflow: visible; }
.ap-link { stroke: var(--border-hi); stroke-width: 1.2; stroke-dasharray: 3 3; fill: none; }
.ap-node { fill: var(--surface-2); stroke: var(--cyan); stroke-width: 1.6; }
.ap-relay { stroke: var(--amber); }
.app-promo a:hover .ap-node { stroke-width: 2.2; }
.ap-msg {
  fill: var(--amber); filter: drop-shadow(0 0 3px var(--amber));
  animation: apHop 4.2s ease-in-out infinite;
}
@keyframes apHop {          /* phone A → relay (pause) → phone B */
  0%, 6%    { transform: translate(12px, 48px); opacity: 0; }
  10%       { opacity: 1; }
  38%, 48%  { transform: translate(30px, 15px); opacity: 1; }
  82%       { transform: translate(50px, 42px); opacity: 1; }
  88%, 100% { transform: translate(50px, 42px); opacity: 0; }
}
.ap-ripple {
  fill: none; stroke: var(--cyan); stroke-width: 1.2; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
.ap-r1 { animation: apPing 4.2s ease-out infinite .2s; }
.ap-r2 { animation: apPing 4.2s ease-out infinite 1.65s; stroke: var(--amber); }
.ap-r3 { animation: apPing 4.2s ease-out infinite 3.4s; }
@keyframes apPing {
  0%        { opacity: .9; transform: scale(.6); }
  22%, 100% { opacity: 0; transform: scale(2.5); }
}
.ap-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ap-head { color: var(--amber); font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.ap-sub { color: var(--muted); font-size: .68rem; }
.ap-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; }
.ap-ctx { color: var(--body); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ctx em {
  font-style: normal; color: var(--cyan); font-weight: 600;
  display: inline-block; transition: opacity .25s ease, transform .25s ease;
}
.ap-ctx em.swap { opacity: 0; transform: translateY(5px); }
.ap-cta {
  flex: none; color: #1a1409; background: var(--amber);
  font-weight: 800; font-size: .7rem; border-radius: 999px; padding: .22rem .6rem;
}
.app-promo a:hover .ap-cta { background: var(--cyan); }
@media (min-width: 1280px) {   /* floating card, top-right corner */
  .app-promo { position: fixed; top: 4.3rem; right: 1.1rem; z-index: 45; width: 255px; }
  .app-promo { animation: apIn .5s ease .6s backwards; }
}
@keyframes apIn { from { opacity: 0; transform: translateX(14px); } }
@media (max-width: 1279.98px) { /* slim inline banner under the masthead */
  .app-promo { max-width: var(--maxw); margin: .9rem auto 0; padding: 0 1.25rem; }
}

/* ── hero ─────────────────────────────────────────────────────── */
.hero { padding: 3.4rem 0 1.9rem; }
.kicker {
  display: flex; align-items: center; gap: .65rem;
  color: var(--amber); font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .7rem;
}
.ribbon {
  background: linear-gradient(90deg, var(--amber), #f59e0b); color: #1a1409;
  font-weight: 800; padding: .18rem .6rem; border-radius: 5px; font-size: .74rem;
  letter-spacing: .08em;
}
.hero h1 {
  margin: 0 0 .55rem; font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.08; letter-spacing: -.025em; font-weight: 800;
  background: linear-gradient(100deg, var(--text) 30%, var(--purple) 75%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tagline { color: var(--muted); margin: 0 0 1.1rem; font-size: 1.06rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.stat {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  color: var(--body); font-size: .84rem; font-weight: 600; padding: .32rem .85rem;
}
.stat b { color: var(--cyan); font-weight: 800; }
a.stat { text-decoration: none; }
a.stat:hover { border-color: var(--cyan); color: var(--text); }
.stat-share { color: var(--cyan); font-weight: 700; }
.stat .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.dot-purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }

.hero-story { padding-bottom: 1rem; }
.story-links { margin: 1.4rem 0 0; }

/* ── section nav (scrollspy) ──────────────────────────────────── */
.section-nav {
  position: sticky; top: 3.45rem; z-index: 40;
  display: flex; gap: .45rem; overflow-x: auto; padding: .7rem 0 .8rem;
  background: linear-gradient(rgba(10,13,19,.94), rgba(10,13,19,.82) 80%, transparent);
  backdrop-filter: blur(8px);
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  white-space: nowrap; color: var(--muted); text-decoration: none;
  font-size: .84rem; font-weight: 600;
  border: 1px solid var(--border); border-radius: 999px; padding: .34rem .9rem;
  background: rgba(17,22,35,.7); transition: color .2s, border-color .2s, background .2s;
}
.section-nav a:hover { color: var(--cyan); border-color: var(--cyan); }
.section-nav a.active {
  color: #06222a; background: var(--cyan); border-color: var(--cyan); font-weight: 800;
}

/* ── topic sections ───────────────────────────────────────────── */
.topic-section { padding: 2rem 0 .3rem; scroll-margin-top: 7rem; }
.topic-head { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; }
.topic-head .topic-title { margin: 0; flex: 1; }
.topic-open {
  color: var(--muted); text-decoration: none; font-size: .8rem; font-weight: 700;
  white-space: nowrap; border: 1px solid var(--border); border-radius: 999px;
  padding: .18rem .7rem;
}
.topic-open:hover { color: var(--cyan); border-color: var(--cyan); }
.topic-title {
  display: flex; align-items: center; gap: .7rem;
  font-size: 1.32rem; font-weight: 800; letter-spacing: -.015em;
  margin: 0 0 1.1rem; color: var(--text);
}
.topic-title::before {
  content: ""; width: .55rem; height: 1.45rem; border-radius: 3px;
  background: var(--accent, var(--cyan)); box-shadow: 0 0 14px var(--accent, var(--cyan));
}
.topic-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.topic-title .count {
  color: var(--muted); font-size: .78rem; font-weight: 700;
  border: 1px solid var(--border); border-radius: 999px; padding: .1rem .6rem;
}
/* rotate accent colors across sections */
.topic-section:nth-of-type(3n+1) { --accent: var(--cyan); }
.topic-section:nth-of-type(3n+2) { --accent: var(--amber); }
.topic-section:nth-of-type(3n)   { --accent: var(--purple); }

/* ── item cards ───────────────────────────────────────────────── */
.items { display: flex; flex-direction: column; gap: .9rem; }
.item {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 22%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem 1.35rem 1rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.item::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent, var(--cyan)); opacity: .75;
}
.item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hi);
  box-shadow: 0 10px 32px -14px rgba(0,0,0,.75), 0 0 0 1px rgba(34,211,238,.06);
}
.item-meta {
  display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center;
  font-size: .78rem; color: var(--muted); letter-spacing: .01em;
}
.source-badge {
  color: var(--cyan); font-weight: 700; text-transform: uppercase;
  font-size: .72rem; letter-spacing: .09em;
}
.item-meta time { color: var(--muted); }
.item-meta time::before { content: "·"; margin-right: .7rem; color: var(--border-hi); }
.chip {
  border: 1px solid var(--border); border-radius: 999px; padding: .02rem .55rem;
  font-size: .72rem; color: var(--muted); background: rgba(23,31,48,.6);
}
.chip-warn { color: var(--amber); border-color: rgba(251,191,36,.5); }
.chip-carry { color: var(--purple); border-color: rgba(167,139,250,.45); }
.item-headline { margin: .5rem 0 .4rem; font-size: 1.22rem; line-height: 1.32; letter-spacing: -.012em; font-weight: 750; }
.item-headline a { color: var(--text); text-decoration: none; }
.item-headline a:hover { color: var(--cyan); }
.item-summary { margin: 0 0 .65rem; color: var(--body); font-size: .98rem; }

/* featured lead story */
.item.featured {
  background:
    linear-gradient(140deg, rgba(34,211,238,.09), transparent 45%),
    linear-gradient(180deg, var(--surface-2), var(--surface) 30%);
  border-color: var(--border-hi);
  padding: 1.5rem 1.6rem 1.2rem;
}
.item.featured::before { width: 4px; opacity: 1; }
.item.featured .item-headline { font-size: 1.55rem; line-height: 1.22; }
.item.featured .item-summary { font-size: 1.05rem; }
.lead-tag {
  display: inline-block; margin-bottom: .55rem;
  color: var(--purple); font-size: .72rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid rgba(167,139,250,.45); border-radius: 999px; padding: .16rem .65rem;
  background: rgba(167,139,250,.08);
}

/* per-story infographic (inline SVG, inherits theme vars) */
.ig-fig {
  margin: .8rem 0 .3rem; padding: 1rem 1.1rem .8rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; max-width: 42rem;
}
.ig-fig svg.ig { display: block; width: 100%; height: auto; }

/* takeaways */
.takeaways { list-style: none; margin: .4rem 0 .7rem; padding: 0; font-size: .92rem; color: var(--muted); }
.takeaways li { position: relative; padding-left: 1.25rem; margin: .3rem 0; }
.takeaways li::before {
  content: "▸"; position: absolute; left: .1rem; top: 0;
  color: var(--amber); font-size: .85rem;
}

.fleet-impact {
  display: flow-root;
  border: 1px solid rgba(251,191,36,.32); border-left: 3px solid var(--amber);
  background: rgba(251,191,36,.06);
  padding: .55rem .85rem; border-radius: 8px; font-size: .92rem;
  color: var(--body); margin: .6rem 0;
}
.fleet-impact strong { color: var(--amber); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

.item-actions {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); margin-top: .8rem; padding-top: .7rem;
}
.read-source { color: var(--cyan); text-decoration: none; font-size: .9rem; font-weight: 700; }
.read-source:hover { text-decoration: underline; text-underline-offset: 3px; }
.share-linkedin {
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
  text-decoration: none; font-weight: 800; font-size: .78rem; border-radius: 6px;
  transition: color .2s, border-color .2s;
}
.share-linkedin:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── source thumbnails — right rail, sized to each image's natural aspect ──
   Judge-panel outcome (2026-07-02): small thumbs beat big banners on this
   corpus (marketing OG images). Right placement keeps every headline on the
   same scan line. Each figure carries --tw (box width, ~128px tall) and
   --ta (native aspect ratio) computed from the real image dimensions, so
   nothing gets cropped — wide banners get a wide shallow box, squares a
   square one, and the text column flexes to give the image its room. */
.item-head .item-headline { margin-bottom: .55rem; }
.item.has-thumb .item-main { display: flex; gap: 1.15rem; }
.item-main .item-text { flex: 1; min-width: 0; }
.item-thumb {
  display: block; margin: .15rem 0 0; order: 2;   /* top-aligned with the summary text */
  flex: 0 0 var(--tw, 104px); align-self: flex-start;
}
.item-thumb a { display: block; aspect-ratio: var(--ta, 1 / 1); }
.item-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2);
  /* tone bright marketing images toward the theme; full color on hover */
  filter: saturate(.8) brightness(.9);
  transition: filter .25s ease;
}
.item:hover .item-thumb img { filter: none; }

/* escape hatch: design.variant: "text-only" in config.yaml hides all thumbs */
.text-only .item.has-thumb .item-main { display: block; }
.text-only .item-thumb { display: none; }

@media (max-width: 640px) {
  .item.has-thumb .item-main { gap: .85rem; }
  .item-thumb { flex-basis: calc(var(--tw, 104px) * .68); }
}

/* reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── archive ──────────────────────────────────────────────────── */
.archive-list { padding: 1.2rem 0 2rem; display: flex; flex-direction: column; gap: .6rem; }
.archive-day {
  display: grid; grid-template-columns: auto auto 1fr; gap: 1rem; align-items: baseline;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 30%);
  border: 1px solid var(--border); border-radius: 12px;
  padding: .9rem 1.15rem; text-decoration: none; color: var(--text);
  transition: transform .2s ease, border-color .2s ease;
}
.archive-day:hover { transform: translateX(4px); border-color: var(--cyan); }
.archive-date { font-weight: 750; }
.archive-count { color: var(--amber); font-size: .82rem; font-weight: 700; }
.archive-headline { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── footer / misc ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 3.5rem; padding: 1.6rem 0 2.4rem;
  color: var(--muted); font-size: .9rem;
}
.site-footer a { color: var(--cyan); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.empty {
  color: var(--muted); padding: 3rem 0; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius); margin: 1.5rem 0;
}
.back-to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(23,31,48,.9); border: 1px solid var(--border);
  color: var(--cyan); text-decoration: none; font-size: 1.1rem;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34,211,238,.35); }

@media (max-width: 640px) {
  .hero { padding-top: 2.4rem; }
  .item, .item.featured { padding: 1rem 1.05rem .85rem; }
  .item.featured .item-headline { font-size: 1.32rem; }
  .archive-day { grid-template-columns: 1fr auto; }
  .archive-headline { grid-column: 1 / -1; }
  .topnav a { padding: .3rem .5rem; font-size: .86rem; }
  .topnav { flex-wrap: wrap; justify-content: flex-end; row-gap: .2rem; }
}
@media (max-width: 480px) {
  .nav-today { display: none; }   /* brand already links home */
  .brand { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   DESIGN VARIANTS (preview 2026-07-03) — body-class scoped full skins
   v-mag  — "Editorial Grid": magazine card grid, serif display, image-led
   v-min  — "Product Minimal": Linear/Stripe hairline list, type-forward
   v-term — "Terminal": phosphor mono console for the dev soul
   ═══════════════════════════════════════════════════════════════════ */

/* ── V-MAG · Editorial Grid ───────────────────────────────────────── */
.v-mag { counter-reset: sec; }
.v-mag .wrap { max-width: 76rem; }
.v-mag .hero h1 {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem); letter-spacing: -.01em;
}
.v-mag .tagline { font-style: italic; }
.v-mag .topic-section { counter-increment: sec; padding-top: 2.6rem; }
.v-mag .topic-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .05em; }
.v-mag .topic-title::before {
  content: counter(sec, decimal-leading-zero); width: auto; height: auto;
  background: none; box-shadow: none; border-radius: 0;
  font-family: Georgia, serif; font-size: 2.6rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent, var(--cyan));
}
.v-mag .items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.1rem; align-items: stretch;
}
.v-mag .item { padding: 0 0 1rem; overflow: hidden; border-radius: 16px; }
.v-mag .item::before { display: none; }
.v-mag .item-head, .v-mag .item-main, .v-mag .item-actions { padding: 0 1.15rem; }
.v-mag .item-head { padding-top: .95rem; }
.v-mag .item.has-thumb .item-main { display: flex; flex-direction: column-reverse; gap: .75rem; }
.v-mag .item-thumb { order: 0; width: calc(100% + 2.3rem); margin: 0 -1.15rem; flex-basis: auto; }
.v-mag .item-thumb a { aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.v-mag .item-thumb img { border: 0; border-radius: 0; transition: filter .25s ease; }
.v-mag .item:hover .item-thumb img { filter: saturate(1.5); }
.v-mag .item:hover .item-headline a { color: var(--accent, var(--cyan)); }
.v-mag .item.has-thumb .item-head { order: -1; }
.v-mag .item-meta { font-family: ui-monospace, Menlo, monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.v-mag .item-headline { font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.18; }
.v-mag .item:not(.featured) .item-headline {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.v-mag .item:not(.featured) .item-summary {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
/* image-less cards read as a deliberate compact text-card type (Verge quick posts) */
.v-mag .item:not(.has-thumb):not(.featured) { border-top: 3px solid var(--accent, var(--cyan)); }
.v-mag .item:not(.has-thumb):not(.featured) .item-headline { font-size: 1.15rem; }
.v-mag .item.featured { grid-column: 1 / -1; }
.v-mag .item.featured.has-thumb .item-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.4rem; align-items: center; }
.v-mag .item.featured.has-thumb .item-thumb { grid-column: 1; grid-row: 1; width: 100%; margin: 0; }
.v-mag .item.featured .item-thumb a { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }
.v-mag .item.featured.has-thumb .item-text { grid-column: 2; }
.v-mag .item.featured .item-headline { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.18; }
.v-mag .item.featured .item-summary { font-size: 1.08rem; }
.v-mag .item:hover { transform: none; box-shadow: none; border-color: var(--border-hi); }
.v-mag .source-badge { background: var(--accent, var(--cyan)); color: #08131a; padding: .12rem .5rem; border-radius: 3px; }
@media (max-width: 900px) {
  .v-mag .item.featured.has-thumb .item-main { display: flex; flex-direction: column-reverse; }
}

/* ── V-MIN · Product Minimal ──────────────────────────────────────── */
.v-min { background-image: none; }
.v-min .wrap { max-width: 46rem; }
.v-min .hero { padding: 2.6rem 0 1rem; }
.v-min .kicker { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; color: var(--muted); }
.v-min .kicker .ribbon { background: none; color: var(--cyan); padding: 0; font-weight: 700; }
.v-min .hero h1 {
  background: none; -webkit-text-fill-color: var(--text);
  font-size: 2.1rem; letter-spacing: -.035em; font-weight: 750;
}
.v-min .hero-stats .stat { background: none; border: none; padding: 0 .9rem 0 0; font-family: ui-monospace, Menlo, monospace; font-size: .78rem; }
.v-min .section-nav { gap: 1.1rem; background: rgba(10,13,19,.92); }
.v-min .section-nav a { border: none; background: none; padding: .3rem 0; border-radius: 0; border-bottom: 2px solid transparent; }
.v-min .section-nav a.active { color: var(--text); background: none; border-bottom-color: var(--cyan); font-weight: 700; }
.v-min .topic-section { padding-top: 2.2rem; }
.v-min .topic-title { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.v-min .topic-title::before { width: 8px; height: 8px; border-radius: 2px; box-shadow: none; }
.v-min .topic-title .count { border: none; padding: 0; }
.v-min .items { gap: 0; }
.v-min .item { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 1.3rem .1rem 1.1rem; transition: background .2s ease; }
.v-min .item::before { display: none; }
.v-min .item:hover { transform: none; box-shadow: none; background: rgba(23,31,48,.35); }
.v-min .item-meta { font-family: ui-monospace, Menlo, monospace; font-size: .72rem; }
.v-min .chip { border: none; background: none; padding: 0; color: #64748b; }
.v-min .chip::before { content: "#"; }
.v-min .chip-carry::before, .v-min .chip-warn::before { content: ""; }
.v-min .item-headline { font-size: 1.08rem; letter-spacing: -.015em; }
.v-min .item-headline a {
  background-image: linear-gradient(90deg, var(--cyan), var(--cyan));
  background-repeat: no-repeat; background-size: 0% 1.5px; background-position: 0 100%;
  transition: background-size .3s ease; padding-bottom: 2px;
}
.v-min .item-headline a:hover { color: var(--text); background-size: 100% 1.5px; }
.v-min .item-summary { font-size: .92rem; }
.v-min .takeaways { font-size: .85rem; }
.v-min .takeaways li:nth-child(n+3) { display: none; }   /* dense: top 2 only */
.v-min .item-thumb { flex-basis: 64px !important; margin-top: .2rem; }
.v-min .item-thumb a { aspect-ratio: 1 / 1; }
.v-min .item-thumb img { border-radius: 8px; }
.v-min .item.featured { padding-top: 1.6rem; }
.v-min .item.featured .item-headline { font-size: 1.45rem; }
.v-min .item.featured .item-thumb { flex-basis: 96px !important; }
.v-min .lead-tag { border: none; background: none; padding: 0; font-family: ui-monospace, Menlo, monospace; }
.v-min .item-actions { border-top: none; margin-top: .35rem; padding-top: 0; }
.v-min .read-source { font-size: .82rem; transition: transform .2s ease; display: inline-block; }
.v-min .read-source:hover { transform: translateX(3px); text-decoration: none; }
.v-min .fleet-impact { background: none; border: none; border-left: 2px solid var(--amber); border-radius: 0; padding: .2rem 0 .2rem .8rem; }
.v-min .app-promo a { background: none; border-color: var(--border); }
.v-min .topic-open { border: none; padding: 0; }

/* ── V-TERM · Terminal ────────────────────────────────────────────── */
.v-term {
  --bg: #060907; --surface: #0b120d; --surface-2: #101a12; --border: #1c3324;
  --border-hi: #2d5238; --text: #d7f5df; --body: #a9d4b4; --muted: #6f9c7d;
  --cyan: #4ade80; --purple: #4ade80;  /* phosphor green takes over */
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background-image: none;
}
.v-term::after {  /* scanlines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.16) 2px 3px);
}
.v-term .brand-off { background: none; -webkit-text-fill-color: var(--cyan); color: var(--cyan); }
.v-term .brand::before { content: "~/"; color: var(--muted); font-weight: 400; }
.v-term .kicker { color: var(--cyan); text-transform: none; letter-spacing: 0; }
.v-term .kicker::before { content: "$ "; color: var(--muted); }
.v-term .kicker .ribbon { background: var(--amber); border-radius: 0; }
.v-term .hero h1 {
  background: none; -webkit-text-fill-color: var(--text);
  font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.01em;
}
.v-term .hero h1::after { content: "▌"; color: var(--cyan); animation: termBlink 1.1s steps(2) infinite; }
@keyframes termBlink { 50% { opacity: 0; } }
.v-term .stat { border-radius: 3px; }
.v-term .section-nav a { border-radius: 3px; }
.v-term .section-nav a.active { color: #06170c; }
.v-term .topic-title::before { content: "## "; width: auto; height: auto; background: none; box-shadow: none; color: var(--cyan); font-weight: 700; }
.v-term .topic-title .count { border-radius: 3px; }
.v-term .topic-title .count::before { content: "["; } .v-term .topic-title .count::after { content: "]"; }
.v-term .item { border-radius: 4px; background: rgba(13, 20, 15, .55); }
.v-term .item::before { border-radius: 0; width: 2px; }
.v-term .item-headline { font-size: 1.08rem; font-weight: 700; }
.v-term .item-headline a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.v-term .source-badge { color: var(--amber); }
.v-term .chip { border-radius: 3px; border-color: var(--border); }
.v-term .takeaways li::before { content: ">"; color: var(--cyan); font-weight: 700; }
.v-term .item-thumb a { aspect-ratio: var(--ta, 1/1); }
.v-term .item-thumb img { border-radius: 3px; filter: grayscale(.65) brightness(.85) sepia(.18) hue-rotate(65deg); }
.v-term .item:hover .item-thumb img { filter: none; }
.v-term .read-source::before { content: "cat "; color: var(--muted); font-weight: 400; }
.v-term .lead-tag { border-radius: 3px; }
.v-term .app-promo a { border-radius: 4px; }
.v-term .ap-ctx { font-size: .62rem; }   /* mono runs wide; keep the rotating line clear of the CTA */
.v-term .ap-sub { font-size: .64rem; }
.v-term .ap-cta { font-size: .64rem; padding: .18rem .45rem; }
.v-term .progress-bar { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@media (prefers-reduced-motion: reduce) { .v-term .hero h1::after { animation: none; } }

/* ══ THE BRIEF — LinkedIn-ready daily page, phone-first ═══════════
   Standalone page (no masthead/toggle). One column, ≤640px, large
   type, 48px tap targets. Reads as well on desktop, centered. */
.brief-page { font-size: 17px; }
.bwrap { max-width: 640px; margin: 0 auto; padding: 0 1.1rem 3.5rem; }
.b-mast {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0 .4rem;
}
.b-mast .brand { font-size: 1.05rem; font-weight: 800; color: var(--text); text-decoration: none; }
.b-mast .brand-off { color: var(--cyan); }
.b-tag {
  color: var(--amber); border: 1px solid rgba(251,191,36,.5); border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: .22rem .7rem;
}
.b-title { font-size: 1.7rem; line-height: 1.2; margin: .9rem 0 .3rem; letter-spacing: -.01em; }
.b-lede { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.b-actions {
  position: sticky; top: 0; z-index: 10; display: flex; gap: .6rem;
  padding: .6rem 0; background: linear-gradient(var(--bg) 78%, transparent);
}
.b-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 13px; border: 0; cursor: pointer;
  font: 700 .95rem var(--font); text-decoration: none;
  transition: filter .15s ease, transform .1s ease;
}
.b-btn:active { transform: scale(.98); }
.b-copy { background: var(--amber); color: #1a1409; }
.b-copy.ok, .b-share.ok { background: #34d399; color: #06281c; }
.b-share { background: #0a66c2; color: #fff; }   /* LinkedIn brand blue */
.b-btn:hover { filter: brightness(1.1); }
.b-steps { text-align: center; color: var(--muted); font-size: .78rem; margin: .2rem 0 1rem; }
.b-postbox { margin: 0 0 1.4rem; }
.b-postbox summary {
  cursor: pointer; color: var(--cyan); font-size: .85rem; font-weight: 600;
  padding: .3rem 0;
}
.b-postbox textarea {
  width: 100%; margin-top: .5rem; resize: vertical;
  background: var(--surface); color: var(--body); border: 1px solid var(--border);
  border-radius: 12px; padding: .8rem .9rem; font: .85rem/1.55 var(--font);
}
.b-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; margin: 0 0 1.15rem;
}
.b-card > img { display: block; width: 100%; height: auto; }
.b-body { padding: .95rem 1.05rem 1.1rem; }
.b-meta {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  margin: 0 0 .45rem; font-size: .72rem;
}
.b-topic { color: var(--purple); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.b-new {
  color: #06281c; background: #34d399; border-radius: 6px;
  font-weight: 800; font-size: .62rem; padding: .1rem .4rem; letter-spacing: .06em;
}
.b-src { color: var(--muted); }
.b-body h2 { margin: 0 0 .45rem; font-size: 1.18rem; line-height: 1.35; }
.b-body h2 a { color: var(--text); text-decoration: none; }
.b-body h2 a:active, .b-body h2 a:hover { color: var(--cyan); }
.b-sum { margin: 0 0 .6rem; color: var(--body); font-size: .93rem; line-height: 1.6; }
.b-why {
  margin: 0; padding: .55rem .8rem; font-size: .86rem; color: var(--body);
  background: var(--surface-2); border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0;
}
/* ── Mobile friendly section (today page): card strip + links ──── */
.mf-lede { color: var(--muted); font-size: .9rem; margin: .2rem 0 .9rem; }
.mf-strip { display: flex; gap: .7rem; overflow-x: auto; padding: .2rem .2rem .8rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.mf-card { flex: 0 0 150px; scroll-snap-align: start; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease; }
.mf-card img { display: block; width: 100%; height: auto; }
.mf-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.mf-links { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .4rem; }
.mf-btn { flex: 1 1 240px; text-align: center; padding: .7rem .9rem;
  border: 1px solid var(--border-hi); border-radius: 12px; color: var(--cyan);
  font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: border-color .15s ease, background .15s ease; }
.mf-btn:hover { border-color: var(--cyan); background: var(--surface-2); }

.c-actions { display: flex; gap: .6rem; margin-bottom: .65rem; }
.c-open { background: var(--surface-2); color: var(--cyan); border: 1px solid var(--border-hi); }
.c-cap { width: 100%; resize: vertical; background: var(--surface-2); color: var(--body);
  border: 1px solid var(--border); border-radius: 10px; padding: .6rem .75rem;
  font: .78rem/1.5 var(--font); }
.b-foot { text-align: center; margin-top: 2rem; }
.b-more {
  display: block; padding: .85rem 1rem; border: 1px solid var(--border-hi);
  border-radius: 13px; color: var(--cyan); font-weight: 700; text-decoration: none;
}
.b-more:hover { border-color: var(--cyan); }
.b-foot p { color: var(--muted); font-size: .78rem; margin-top: 1rem; }

/* deep-linked story (?s=<id> / #item-<id>): glow pulse so the eye lands on it */
.story-hit {
  outline: 2px solid var(--accent, var(--cyan)); outline-offset: 5px;
  border-radius: 10px; animation: storyHit 6s ease-out forwards;
}
@keyframes storyHit {
  0%, 60% { box-shadow: 0 0 26px var(--accent, var(--cyan)); }
  100% { box-shadow: 0 0 0 transparent; outline-color: transparent; }
}
.item[id] { scroll-margin-top: 18px; }
