/* Palette (Wallflower): bone neutrals, warm near-black, cobalt, poppy, olive, plus soft card tints */
:root {
  --bg: #f4efe7;
  --surface: #fbfaf7;
  --card: #ffffff;
  --tint: #f4f3ee;
  --sage: #e6e3cf;          /* pale olive: pills, bars */
  --ink: #1e1b18;
  --ink-2: #4a443d;
  --muted: #8c857b;
  --rule: #e3e1d9;
  --accent: #1f4fc4;        /* cobalt */
  --accent-soft: #77722a;   /* olive */
  --poppy: #c8452a;
  --up: #3d7a3a;
  --down: #b83a20;
  --blush: #f6e2da;
  --butter: #f4ead0;
  --sky: #dfe7f6;
  --pistachio: #e6e8d3;
  --periwinkle: #e5e6f8;
  --art-base: #f4efe7;
  --ticker-bg: #1f2229;   /* deep blue-black, same family as the Wallflower title */
  --ticker-ink: #f1f0eb;
  --grain: 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='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --serif: "kepler-std-subhead", "kepler-std", Georgia, serif;   /* Adobe Fonts kit cul0plr */
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 20px;
  --radius-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1916;
    --surface: #221e1a;
    --card: #26221e;
    --tint: #2d2823;
    --sage: #34331f;
    --ink: #efebe3;
    --ink-2: #cfc7bb;
    --muted: #958d81;
    --rule: #38322b;
    --accent: #86a6f6;
    --accent-soft: #c2bc72;
    --poppy: #f08a68;
    --up: #82c27e;
    --down: #f08a68;
    --blush: #3a2924;
    --butter: #36301f;
    --sky: #232b3d;
    --pistachio: #2c2f20;
  --periwinkle: #26283c;
    --art-base: #1c1916;
    --ticker-bg: #121418;
    color-scheme: dark;
  }
  .pub-head .wm { filter: invert(1) hue-rotate(180deg); }
  .pub-head[data-pub="economist"] .wm, .pub-head[data-pub="npr"] .wm, .pub-head[data-pub="nikkei"] .wm,
  .pub-head[data-pub="ap"] .wm, .pub-head[data-pub="bbc"] .wm { filter: none; }
  .art { opacity: .6; }
  .masthead-title { color: var(--ink); }
  .masthead::before { opacity: .38; }
  .stems { display: none; }   /* white-background photos don't blend into a dark page */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html, body { overflow-x: clip; }   /* the peeking flowers overhang the page edges */
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
a.hl:hover, a.hl:hover .hl-text, .angle a:hover, .ex a:hover, .mnews:hover span {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--accent-soft);
}

/* ------------------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 20; }
.ticker {
  background: var(--ticker-bg); color: var(--ticker-ink);
  display: flex; height: 36px; overflow-x: auto; scrollbar-width: none;
  font-family: var(--mono); font-size: 12px;
}
.ticker > :first-child { margin-left: auto; }  /* centered when it fits, scrollable from the start when it doesn't */
.ticker > :last-child { margin-right: auto; }
/* secnav uses spacer pseudo-elements instead, since its last link (Support) can be hidden */
.secnav::before, .secnav::after { content: ""; flex: none; margin: auto; }
.tick { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 0 20px; white-space: nowrap; }
.tick + .tick { box-shadow: -1px 0 0 rgba(255, 255, 255, .08); }
.tick:hover { background: rgba(255, 255, 255, .05); }
.tick .nm { color: #a9adb6; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.tick .px { color: #fff; }
.tick .ch.up { color: #a4c3a0; }
.tick .ch.down { color: #dfa592; }
.secnav {
  display: flex; gap: 6px; padding: 8px var(--gutter); overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.secnav a {
  flex: none; display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s;
}
.secnav a span { font-family: var(--sans); font-size: 10.5px; color: var(--muted); }
.secnav a:hover { background: var(--sage); }
.secnav a.on { background: var(--accent); color: var(--bg); }
.secnav a.on span { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ------------------------------------------------------------ masthead */
.masthead { padding: 0 var(--gutter); text-align: center; position: relative; overflow: clip; display: flow-root; }
.masthead::before {
  content: ""; position: absolute; inset: -20% 0 0; z-index: -1; pointer-events: none;
  background: var(--grain), url("texture.jpg") center 40% / cover;
  opacity: 0;   /* light mode: the flower stems carry the header; dark mode shows the texture */
  /* fades out before the masthead ends, so there's no hard edge above section 01 */
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%); mask-image: linear-gradient(#000 55%, transparent 100%);
}
.masthead-bar { display: flex; justify-content: center; padding: 135px 0 64px; font-size: 13px; color: var(--ink-2); }
.masthead-left { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.dot { color: var(--muted); }
.refresh {
  margin-left: 6px; font: inherit; font-size: 12.5px; color: var(--ink);
  background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.refresh:hover { border-color: var(--accent-soft); }
.refresh.busy { opacity: .5; pointer-events: none; }
.masthead-title {
  margin: 85px 0 0; padding-bottom: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(62px, 7.4vw, 104px); line-height: 1; letter-spacing: -.01em;
}

main { padding: 0 var(--gutter) 40px; max-width: 1680px; margin: 0 auto; }
.loading { text-align: center; padding: 80px 0; font-size: 17px; }
.spinner { width: 26px; height: 26px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* flower photo in the header (static/header-poppy.jpg, built by tools/header.html): hangs upside down
   from the top edge, centered, with its upper part cropped off so only the petal skirt shows. Only the extended backdrop fades (left, right, bottom); petals stay crisp. */
.stems { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bloom { position: absolute; top: -205px; left: 50%; transform: translateX(-50%); height: 760px; aspect-ratio: 2240 / 1041;
  background: url("header-poppy.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 0%, #000 52%, transparent 84%), linear-gradient(90deg, transparent 0%, #000 23%, #000 77%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 0%, #000 52%, transparent 84%), linear-gradient(90deg, transparent 0%, #000 23%, #000 77%, transparent 100%);
  mask-composite: intersect;
  opacity: .57; }
@media (max-width: 900px) { .bloom { height: 620px; top: -157px; } .masthead-title { margin-top: 85px; } .masthead-bar { padding-top: 102px; } }
@media (max-width: 520px) { .bloom { height: 480px; top: -106px; } .masthead-title { margin-top: 67px; } .masthead-bar { padding-top: 85px; } }

/* ------------------------------------------------------------ section heads */
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px; margin: 104px 0 30px; }
#today .sec-head { margin-top: 0; }
.sec-text { display: contents; }
.sec-num {
  font-family: var(--sans); font-size: 11px; color: var(--accent); background: var(--sage);
  border-radius: 999px; padding: 3px 9px; letter-spacing: .04em;
}
.sec-eyebrow { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.sec-title {
  grid-column: 1 / -1; margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 4.6vw, 68px); line-height: 1; letter-spacing: -.015em;
}
.sec-dek { grid-column: 1 / -1; margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.sec-dek:empty { display: none; }
.sec-dek b { font-weight: 600; }
#markets[data-level="alarm"] .sec-title, #markets[data-level="down"] .sec-title { color: var(--down); }
#markets[data-level="up"] .sec-title { color: var(--up); }

.sub-head { margin: 56px 0 18px; }
.sub-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.lv-col > .sub-head:first-child, .money-grid .sub-head { margin-top: 0; }

.eyebrow { display: flex; align-items: baseline; gap: 8px; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.eyebrow .acc { color: var(--accent); }
.eyebrow .num { font-family: var(--serif); font-size: 34px; line-height: .8; letter-spacing: 0; color: var(--accent-soft); }
.kicker { font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------ atoms */
.logo { width: 18px; height: 18px; border-radius: 5px; flex: none; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.logo.lg { width: 26px; height: 26px; border-radius: 7px; }
.logo-stack { display: inline-flex; }
.logo-stack .logo { width: 24px; height: 24px; border-radius: 50%; padding: 3px; box-shadow: 0 0 0 2px var(--card); margin-left: -6px; }
.logo-stack .logo:first-child { margin-left: 0; }
.pubtag { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.pubtag .pn { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { font-family: var(--sans); font-size: 10.5px; color: var(--muted); white-space: nowrap; }

.img-wrap { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--tint); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a:hover .img-wrap img { transform: scale(1.03); }
.art {
  width: 100%; height: 100%; border-radius: inherit;
  background:
    radial-gradient(circle at var(--x1) var(--y1), var(--a) 0%, color-mix(in srgb, var(--a) 40%, transparent) 28%, transparent 58%),
    radial-gradient(circle at var(--x2) var(--y2), var(--b) 0%, color-mix(in srgb, var(--b) 40%, transparent) 26%, transparent 55%),
    var(--art-base);
}
.img-wrap .art { position: absolute; inset: 0; }
/* three flowers peeking in from the page edges, behind the cards. Big, tightly cropped, rotated;
   the stems fade out so you mostly see the blooms. */
.sec { position: relative; }
.peek { position: absolute; z-index: -1; pointer-events: none; height: 760px; width: auto;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 66%); mask-image: linear-gradient(#000 40%, transparent 66%); }
/* placements set in Figma ("Wallflower – flower stem art" → Flower placement), at 1280 and 390 wide.
   The section header's 104px top margin collapses outside the section, so tops are Figma minus 104. */
.peek-1 { height: 683px; top: -135px; right: calc(-1 * var(--gutter) - 12px); transform: rotate(-24deg); }
.peek-2 { height: 1073px; top: 205px; left: calc(-1 * var(--gutter) - 307px); transform: rotate(23deg) scaleX(-1); }
.peek-3 { height: 677px; top: -179px; right: calc(-1 * var(--gutter) - 44px); transform: rotate(-16deg); }
@media (max-width: 900px) {
  .peek-1 { height: 520px; top: -7px; right: calc(-1 * var(--gutter) - 95px); }
  .peek-2 { height: 682px; top: 200px; left: calc(-1 * var(--gutter) - 148px); transform: rotate(7deg) scaleX(-1); }
  .peek-3 { height: 503px; top: -106px; right: calc(-1 * var(--gutter) - 154px); }
}
@media (prefers-color-scheme: dark) { .peek { opacity: .8; } }

.card, .pub, .index-card, .topic, .collecting { background: var(--card); border-radius: var(--radius); }

/* ------------------------------------------------------------ 01 trending */
/* lead story lines up with the section title: left-aligned and stacked */
.story-lead { max-width: 1040px; text-align: left; }
.story-lead .img-wrap { aspect-ratio: 16 / 8; border-radius: var(--radius); }
.story-lead .eyebrow { justify-content: flex-start; margin-top: 26px; }
.story-lead h3 {
  font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; max-width: 880px;
}
.story-lead .summary {
  font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0 0 18px; max-width: 720px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.story-meta { display: flex; justify-content: flex-start; margin-bottom: 22px; }
.story-lead .coverage { text-align: left; background: var(--card); }

.coverage { background: var(--tint); border-radius: var(--radius-sm); padding: 12px 18px 14px; margin-top: 16px; }
.coverage-label { font-family: var(--sans); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 2px 0 4px; }
.angles { list-style: none; padding: 0; margin: 0; }
.angle { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); }
.angle:first-child { border-top: none; }
.angle .t { font-size: 15px; line-height: 1.4; font-weight: 500; }
.more-btn {
  margin-top: 8px; background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-soft);
}
.more-btn:hover { color: var(--accent); }

.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.story.card { padding: 24px 26px 22px; }
.card-top.no-thumb { grid-template-columns: 1fr; }
.card-top { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 22px; align-items: start; }
.story.card h3 { font-family: var(--sans); font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; margin: 6px 0 0; }
.thumb .img-wrap { aspect-ratio: 1; }
.story-grid .angle .t { font-size: 14.5px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.more-grid .story.card h3 { font-size: 18px; }
.story-grid .angle { grid-template-columns: 170px minmax(0, 1fr); }
/* small cards: outlet name above its headline, at every screen width */
.more-grid .angle { grid-template-columns: minmax(0, 1fr); gap: 4px; }

/* ------------------------------------------------------------ 02 front pages */
.pub-section .sub-head { margin: 44px 0 16px; }
.pub-section:first-of-type .sub-head { margin-top: 0; }
.pubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pub { padding: 20px 20px 20px; display: flex; flex-direction: column; }
.pub-head { display: flex; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 16px; }
.pub-head .wm { height: 22px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.pub-head[data-pub="economist"] .wm, .pub-head[data-pub="npr"] .wm, .pub-head[data-pub="nikkei"] .wm, .pub-head[data-pub="ap"] .wm { height: 26px; }
.pub-head[data-pub="bbc"] .wm { height: 32px; }
.pub-head[data-pub="wsj"] .wm, .pub-head[data-pub="nyt"] .wm, .pub-head[data-pub="wapo"] .wm { height: 20px; }
.wordmark { font-size: 19px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wordmark.serif { font-family: var(--serif); font-size: 23px; }
.wordmark.italic { font-family: var(--serif); font-style: italic; font-size: 24px; }
.wordmark.sans { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
.wordmark.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 15px; }
.pub-head[data-pub="techcrunch"] .wordmark { color: #0a9e01; }
.pub .lead { display: block; }
.pub .lead .img-wrap { aspect-ratio: 3 / 2; margin-bottom: 14px; }
.pub .lead h3 { font-weight: 600; font-size: 19px; line-height: 1.28; letter-spacing: -.01em; margin: 0 0 8px; }
.pub .lead .dek {
  font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pub .second { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 14px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--rule); }
.pub .second.noimg { grid-template-columns: 1fr; }
.pub .second h4 { font-weight: 500; font-size: 14.5px; line-height: 1.35; margin: 0 0 4px; }
.pub .second .img-wrap { aspect-ratio: 1; border-radius: 10px; }
.pub .empty { color: var(--muted); }

/* ------------------------------------------------------------ 03 markets */
.index-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.index-card { padding: 16px 18px 12px; }
.ic-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ic-price { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ic-ch { font-family: var(--mono); font-size: 12px; }
.chart { width: 100%; height: 44px; margin-top: 10px; overflow: visible; cursor: crosshair; }
.chart .line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.up { stroke: var(--up); }
.chart .line.down { stroke: var(--down); }
.chart .baseline { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: .5; }
.chart .hover-dot { fill: var(--ink); }
.watch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.watch .kicker { margin: 0 4px 0 0; }
.chip { font-size: 13px; padding: 6px 12px; background: var(--card); border-radius: 999px; white-space: nowrap; }
.chip b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; margin-left: 4px; }
.money-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.money-grid > div { background: var(--card); border-radius: var(--radius); padding: 24px 26px; }
.money-grid .sub-head h3 { font-size: 30px; }
.movers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 32px; }
.movers-col h4 { margin: 0 0 8px; font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.movers { list-style: none; padding: 0; margin: 0; }
.movers li { padding: 10px 0; border-top: 1px solid var(--rule); }
.mover-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.sym { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.mname { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.up { background: color-mix(in srgb, var(--up) 13%, transparent); }
.pill.down { background: color-mix(in srgb, var(--down) 13%, transparent); }
.mnews { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.mnews .logo { width: 16px; height: 16px; margin-top: 1px; }

.ex { list-style: none; padding: 0; margin: 0; }
.ex li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--rule); }
.ex li .logo { margin-top: 2px; }
.ex a { font-size: 14px; line-height: 1.4; font-weight: 500; }
.ex .when { margin-top: 3px; }

/* ------------------------------------------------------------ 04 over the weeks */
.longview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px 22px; padding: 22px 24px 16px; margin-bottom: 14px; }
.topic h4 { font-weight: 600; font-size: 19px; letter-spacing: -.01em; margin: 0; line-height: 1.25; }
.topic .stat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-family: var(--sans); font-size: 11.5px; color: var(--ink-2); }
.topic .stat .up, .topic .stat .down { font-weight: 500; }
.topic .ex { grid-column: 1 / -1; }
.topic .remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 11px; padding: 0; margin-left: 8px; vertical-align: 2px; }
.topic .remove:hover { color: var(--down); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 52px; }
.bars .b { flex: 1; background: var(--sage); border-radius: 5px 5px 2px 2px; min-height: 3px; }
.bars .b.recent { background: var(--accent-soft); }
.bars .b:hover { opacity: .75; }
.bars-axis { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 9.5px; color: var(--muted); margin-top: 5px; }
.add-topic { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.add-topic input {
  flex: 1 1 180px; font: inherit; font-size: 14px; padding: 10px 16px; border: 1px solid transparent; border-radius: 999px;
  background: var(--card); color: var(--ink);
}
.add-topic input:focus { outline: none; border-color: var(--accent-soft); }
.add-topic button { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 20px; border: none; border-radius: 999px; background: var(--accent); color: var(--bg); cursor: pointer; }
.collecting { padding: 20px 24px; font-size: 14.5px; color: var(--ink-2); margin-bottom: 14px; }
.progress { height: 6px; background: var(--sage); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.progress div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c7d5b6, var(--accent-soft)); }

.tip {
  position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-size: 11px; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 10px)); display: none;
}

.footer { padding: 30px var(--gutter) 44px; font-family: var(--sans); font-size: 10.5px; color: var(--muted); line-height: 1.7; text-align: center; }
.footer p { max-width: 760px; margin: 0 auto; }

/* ------------------------------------------------------------ 05 how to */
.howto-card.howto-install { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.howto-install .platform { padding: 26px 30px; }
.howto-install .platform + .platform { border-left: 1px solid var(--rule); }
.howto-install .kicker { margin: 0 0 12px; }
.howto-card .platform-logo { margin: 0 0 16px; height: 28px; color: #f8f5ef; }
.platform-logo svg { height: 28px; width: 28px; fill: currentColor; display: block; }
.platform-logo svg[fill="none"] { fill: none; }
.support { margin-top: 18px; }
.support-card { position: relative; overflow: hidden; border-radius: var(--radius, 22px); background: #16223f; color: #f4efe7;
  padding: clamp(32px, 5vw, 64px); min-height: 340px; display: flex; align-items: center; }
.support-bloom { position: absolute; right: 4%; top: 28px; height: 680px; width: auto; transform: rotate(-10deg); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 50%, transparent 82%); mask-image: linear-gradient(#000 50%, transparent 82%); }
.support-card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #16223f 30%, rgba(22, 34, 63, .75) 55%, rgba(22, 34, 63, 0) 80%); }
.support-copy { position: relative; z-index: 1; max-width: 480px; }
.support-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #c9d6f5; }
.support-eyebrow .pill { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 999px; background: rgba(201, 214, 245, .16); color: #f0b7a6; letter-spacing: 0; }
.support-card h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.02; color: #f4efe7; }
.support-card h3 em { font-style: italic; color: #f0b7a6; }
.support-copy > p:not([class]) { margin: 0 0 26px; font-size: 16px; line-height: 1.55; color: rgba(244, 239, 231, .82); }
.support-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: #f4efe7; color: #16223f;
  font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.support-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.support-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.support-btn span:last-child { transition: transform .15s ease; }
.support-btn:hover span:last-child { transform: translateX(3px); }
.support-note { margin: 16px 0 0; font-size: 13px; color: rgba(244, 239, 231, .55); }
@media (max-width: 640px) {
  .support-card { display: block; padding: 210px 24px 30px; min-height: 0; }
  .support-bloom { height: 470px; right: -10px; top: 6px; }
  .support-card::after { background: linear-gradient(180deg, rgba(22, 34, 63, 0) 40%, rgba(22, 34, 63, .8) 56%, #16223f 64%); }
}
.howto-card { background: var(--card); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.howto-head { display: flex; align-items: center; gap: 12px; }
.howto-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.howto-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; flex: none; }
.howto-icon svg, .step-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.howto-icon svg circle, .step-icon svg circle { fill: var(--accent); stroke: none; }
.howto-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.howto-card .kicker { margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.step-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--tint); display: grid; place-items: center; flex: none; }
.howto-btn { margin-top: auto; align-self: flex-start; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 14px; }
.howto-btn:hover { opacity: .9; }
@media (display-mode: standalone) { #howto { display: none; } }  /* already on the Home Screen */

.show-more { display: none; margin: 4px auto 0; padding: 10px 20px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }

/* ------------------------------------------------------------ palette highlights */
/* story cards stay white; the pastel tint lives in each "How it's covered" box */
.story-grid .story:nth-child(4n + 1) .coverage { background: color-mix(in srgb, var(--sky) 50%, transparent); }
.story-grid .story:nth-child(4n + 2) .coverage { background: color-mix(in srgb, var(--pistachio) 50%, transparent); }
.story-grid .story:nth-child(4n + 3) .coverage { background: color-mix(in srgb, var(--periwinkle) 50%, transparent); }
.story-grid .story:nth-child(4n + 4) .coverage { background: color-mix(in srgb, var(--butter) 50%, transparent); }
.story-grid .angle { border-color: color-mix(in srgb, var(--ink) 9%, transparent); }
.eyebrow .num { color: var(--accent); }
.sec-num { background: var(--sky); color: var(--accent); }
.bars .b.recent { background: var(--accent); }
.howto-card.howto-install { background: var(--accent); color: #f8f5ef; overflow: hidden; }
.howto-install .platform + .platform { background: #2e0f18; }  /* Android in deep wine */
.howto-install .kicker { color: rgba(248, 245, 239, .72); }
.howto-install .platform + .platform { border-color: rgba(248, 245, 239, .22); }
.howto-install .step-icon { background: rgba(248, 245, 239, .16); }
.howto-install .step-icon svg { stroke: #f8f5ef; }
.howto-install .step-icon svg circle { fill: #f8f5ef; }
@media (prefers-color-scheme: dark) {
  .howto-card.howto-install { background: #22356b; }
  .howto-install .platform + .platform { background: #2e0f18; }
}

/* sans labels (formerly monospace) */
.sec-eyebrow, .eyebrow, .kicker, .coverage-label, .more-btn, .movers-col h4, .sec-num { font-weight: 600; letter-spacing: .08em; }
.secnav a span, .when, .bars-axis { letter-spacing: 0; }
.masthead-title { font-style: italic; color: #16223f; }   /* near-black with a hint of blue */

/* public (static) site: topics are curated in the repo, not edited on the page */
body.static .topic .remove:not(.mine) { display: none; }
.ex li.none { display: block; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1320px) {
  .pubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .money-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .longview { grid-template-columns: 1fr; }
  .lv-col + .lv-col > .sub-head:first-child { margin-top: 72px; }
  .angle, .more-grid .angle, .story-grid .angle { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .story-grid:not(.expanded) .extra { display: none; }   /* phones: top 3 stories, rest on demand */
  .show-more { display: block; }
  /* phones: iPhone and Android stack; each platform's two steps sit side by side */
  .howto-card.howto-install { grid-template-columns: 1fr; }
  .howto-install .platform { padding: 22px 22px; }
  .howto-install .platform + .platform { border-left: none; border-top: 1px solid rgba(248, 245, 239, .22); }
  .howto-install .steps { grid-template-columns: 1fr 1fr; gap: 14px; }
  .howto-install .steps li { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 620px) {
  .pub .second { display: none; }   /* phones: lead headline only */
  .pubs { grid-template-columns: 1fr; }
  .index-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-top { grid-template-columns: minmax(0, 1fr) 84px; }
  .topic { grid-template-columns: 1fr; }
}
