/* news.toca.io · on top of the shared site.css.
   Paper throughout, hairlines not bands, cards on paper 3 with a 10px radius, one pink thing per view. */

/* ---- chrome: toca.io's strip, nav, sub-nav and footer, so the two sites read as one (Mat, 10 Nov 2026).
   The markup is build.py chrome(), mirroring toca-io-rebuild gen.py chrome() and FOOT; these rules mirror its
   css/io.css. The nav's base rules, the phone menu included, are the shared site.css. Change both sites together. */
.skip { position: absolute; left: var(--page-gutter); top: -100px; } .skip:focus { top: .5rem; z-index: var(--z-sticky); background: var(--color-paper-3); padding: .4rem .6rem; }
:root { --frame: 120rem; }
.family > .band-narrow, .nav > .band-narrow, .foot > .band-narrow { max-width: calc(var(--frame) - 2 * var(--page-gutter)); }   /* the strip, nav and footer run to the page margins up to 1920px, as on toca.io */
.family { padding: 0 var(--page-gutter); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em; border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); }
.family > .band-narrow { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 2.1rem; }
.family ul { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.family a { color: inherit; text-decoration: none; padding: .4rem 0; }
.family a:hover, .family a[aria-current] { color: var(--color-ink); }
.nav { display: block; }
.nav > .band-narrow { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); }
/* the header comes back when you scroll up, as on toca.io (NAV_JS): the nav row is sticky and slides away while you read down */
body > .nav { position: sticky; top: 0; background: var(--color-paper); transition: transform .28s var(--ease-out), box-shadow .28s ease; }
body > .nav.nav--hidden { transform: translateY(-100%); }
html.nav-stuck body > .nav:not(.nav--hidden) { box-shadow: 0 12px 30px -20px rgba(2,4,12,.45); }
@media (prefers-reduced-motion: reduce) { body > .nav { transition: none; } }
.nav-links .has-menu { position: relative; display: flex; align-items: center; }
.nav-links .has-menu > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.menu { position: absolute; top: 100%; left: -1rem; min-width: 15rem; margin: 0; padding: .5rem 0; list-style: none; background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule); border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(43,33,23,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 120ms, transform 120ms, visibility 0s 120ms; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu li a { display: block; padding: .45rem 1rem; border: 0; font-weight: 400; color: var(--color-ink-2); }
.menu li a:hover { background: var(--color-paper-2); color: var(--color-ink); }
.menu li.sep { border-top: var(--rule-hair) solid var(--color-rule); margin: .4rem 0; }
.menu li small { display: block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); margin-top: .1rem; }
@media (max-width: 64rem) {
  .nav-links .has-menu { display: block; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 1rem; }
  .nav-links .has-menu > a::after { display: none; }
  .nav-links { max-width: calc(100% - 2 * var(--page-gutter)); } .nav-links .menu a { white-space: normal; }   /* the open phone menu stays inside the gutters */
}
.subnav { padding: var(--space-md) var(--page-gutter); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.subnav > .band-narrow { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.subnav a { color: var(--color-ink-2); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent; }
.subnav a[aria-current] { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.subnav a:hover { color: var(--color-ink); }
.subnav .lbl { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); margin-right: .5rem; align-self: center; }
.foot { margin-top: var(--space-xl); }
.foot > .band-narrow { display: block; }
/* toca.io's display face, wide Barlow 600, self-hosted as on toca.io (its css/io.css; it came from Google Fonts until 11 Nov 2026) */
@font-face { font-family:'Barlow'; font-style:normal; font-weight:600; font-display:swap;
  src:url(../assets/fonts/barlow-600.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
.foot-line { font-family: "Barlow", "Barlow Condensed", "Arial Narrow", sans-serif; }
.foot-links--small { gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-md); }
.foot-links--small a { font-size: var(--text-xs); color: var(--color-muted); }
/* the wordmark row: social icons at the right beside the copyright line, their own line on phones (toca.io css/io.css, 11 Nov 2026) */
.foot-meta { align-items: center; }
.foot-meta .foot-social { display: flex; gap: .25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.foot-meta .foot-social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; color: var(--color-ink-2); transition: color .15s ease, background-color .15s ease; }
.foot-meta .foot-social a:hover { color: var(--color-ink); background: var(--color-paper-2); }
.foot-social svg { display: block; width: 1.25rem; height: 1.25rem; }
@media (max-width: 40rem) { .foot-meta .foot-social { order: 3; flex-basis: 100%; margin: 0 0 0 -.625rem; } }
@media (prefers-reduced-motion: reduce) { .foot-meta .foot-social a { transition: none; } }
/* on the navy customer page, as toca.io's dark mode does */
body.dark .family { background: var(--color-paper-2); }
body.dark .menu { box-shadow: 0 18px 40px -14px rgba(2,4,12,.6); }
body.dark .chip--solid:hover { background: #d81b60; border-color: #d81b60; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.page-head h1 { max-width: 22ch; }
.page-head .support a.tlink { color: var(--color-ink); }

/* ---- search */
.search { display: flex; align-items: center; gap: 1rem; margin: var(--space-xl) 0 0; }
.search input { flex: 1; max-width: 32rem; font: inherit; font-size: var(--text-base); color: var(--color-ink); background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule); border-radius: 10px; padding: .7rem 1rem; outline: none; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--color-muted); }
.search input:focus { border-color: var(--color-ink); }
.search .count { margin: 0; white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- filters */
.filters { margin: var(--space-md) 0 var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.frow { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; padding: .7rem 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; }
.flab { color: var(--color-muted); letter-spacing: .14em; min-width: 3.5rem; }
.filters a { color: var(--color-ink-2); text-decoration: none; padding-bottom: .15rem; border-bottom: 1.5px solid transparent; }
.filters a:hover { color: var(--color-ink); }
.filters a[aria-current] { color: var(--color-ink); border-color: var(--color-ink); }
.count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); letter-spacing: .04em; margin: 0 0 var(--space-lg); }
.empty { color: var(--color-muted); padding: var(--space-xl) 0; }

/* ---- year rows: a ledger line */
.year { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -.005em; color: var(--color-ink); margin: var(--space-xl) 0 var(--space-md); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.year .n { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); color: var(--color-muted); letter-spacing: .08em; align-self: center; }

/* ---- cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.story { display: flex; flex-direction: column; text-decoration: none; color: var(--color-ink); background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule); border-radius: 10px; overflow: hidden; transition: border-color var(--dur-short) var(--ease-out); }
.story:hover { border-color: var(--color-muted); }
.story img, .story .noimg { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--color-paper-2); height: auto; border-bottom: var(--rule-hair) solid var(--color-rule); }
.story .body { display: block; padding: .9rem 1rem 1.1rem; }
.story .meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin: 0 0 .45rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .06em; color: var(--color-muted); text-transform: uppercase; }
.story .where { margin-left: auto; text-transform: none; letter-spacing: .02em; }
.story h3, .story h2 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.005em; color: var(--color-ink); }
.story h3 { font-size: 1.25rem; }
.story p { margin: .4rem 0 0; font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story:hover h3, .story:hover h2 { color: var(--color-accent-text); }

/* the leading card: the one pink thing on this view */
.lead-wrap { margin-top: calc(-1 * var(--space-lg)); }
.story.lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1.5px solid var(--color-accent); }
.story.lead img, .story.lead .noimg { aspect-ratio: 16/10; height: auto; align-self: center; border-bottom: 0; border-right: var(--rule-hair) solid var(--color-rule); }
.story.lead .body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; justify-content: center; }
.story.lead h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.story.lead p { font-size: var(--text-base); -webkit-line-clamp: 5; margin-top: .7rem; }
.story.lead:hover { border-color: var(--color-accent-deep); }
.news .kicker .sep { color: var(--color-accent); }

/* ---- articles */
.article { padding: var(--space-3xl) var(--page-gutter); }
.article .measure { max-width: 44rem; }
.article h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-2); line-height: 1.02; letter-spacing: -.01em; margin: var(--space-sm) 0 var(--space-md); }
.article .lead { font-size: 1.2rem; color: var(--color-ink-2); }
.article .draft { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent-text); border: 1.5px solid var(--color-accent); border-radius: 10px; padding: .5rem .8rem; display: inline-block; margin: var(--space-md) 0 0; }
.article .hero { width: 100%; border-radius: 10px; border: var(--rule-hair) solid var(--color-rule); margin: var(--space-lg) 0; }
.prose { font-size: 1.05rem; line-height: 1.6; color: var(--color-ink-2); margin-top: var(--space-lg); }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin: var(--space-xl) 0 var(--space-sm); color: var(--color-ink); letter-spacing: -.005em; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: var(--space-lg) 0 var(--space-xs); color: var(--color-ink); }
.prose a { color: var(--color-accent-text); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--color-paper-2); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule); border-radius: 10px; padding: 1rem 1.2rem; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img { max-width: 100%; border-radius: 10px; border: var(--rule-hair) solid var(--color-rule); }
.prose img[src$=".svg"] { display: block; width: 100%; max-width: 22rem; background: var(--color-paper-3); }   /* a drawing sits as a small plate, not at full measure */
.prose blockquote { margin: var(--space-lg) 0; padding-left: 1rem; border-left: 1.5px solid var(--color-accent); color: var(--color-ink); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: var(--space-lg) 0; font-size: .95rem; line-height: 1.45; }   /* a wide table scrolls inside the measure on a phone */
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6rem 1rem .6rem 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.prose th { font-weight: 600; color: var(--color-ink); border-bottom-color: var(--color-ink-2); }
.prose td:first-child { color: var(--color-ink); font-weight: 500; }
.article .source { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-xl); }


/* ---- small screens */
@media (max-width: 60rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story.lead { grid-template-columns: 1fr; }
  .story.lead img, .story.lead .noimg { height: auto; border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
}
@media (max-width: 40rem) {
  .grid { grid-template-columns: 1fr; }
}

.filters + .year { border-top: 0; margin-top: var(--space-lg); padding-top: 0; }
.story[hidden], .year[hidden], .lead-wrap[hidden], .empty[hidden] { display: none; }

.undecided { font-family: var(--font-mono); font-size: var(--text-xs); }

/* ---- the customer wall */
.spot { margin-bottom: var(--space-lg); }
.sectors { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: 0 0 var(--space-md); }   /* under the spotlight: the pills filter the wall below them */
.sectors a { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--color-ink-2); text-decoration: none; padding: .45rem .8rem; border: var(--rule-hair) solid var(--color-rule); border-radius: 999px; background: var(--color-paper-3); }
.sectors a:hover { border-color: var(--color-muted); color: var(--color-ink); }
.sectors a[aria-current] { color: var(--color-paper); background: var(--color-ink); border-color: var(--color-ink); }
.wallgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(17rem, auto); gap: var(--space-md); }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--color-ink); background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule); border-radius: 10px; padding: 1.25rem 1.3rem 1.3rem; overflow: hidden; transition: border-color var(--dur-short) var(--ease-out); }
.tile:hover { border-color: var(--color-muted); }
.tile[hidden] { display: none !important; }   /* the lead and wide tiles set display: grid later in the file; a filter must still hide them */
.tile .mark-text { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.005em; color: var(--color-ink); line-height: 1.1; }
.tile .mark { display: block; height: 32px; width: auto; max-width: 13rem; object-fit: contain; object-position: left; background: none; }
.tile .sector { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); margin-top: .45rem; }
.tile h3, .tile h2 { margin: .8rem 0 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.005em; color: var(--color-ink); }
.tile h3 { font-size: 1.3rem; }
.tile p { margin: .45rem 0 0; font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .fig { display: block; margin-top: auto; padding-top: 1.2rem; }
.tile .fig b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; line-height: 1; letter-spacing: -.01em; color: var(--color-ink); }
.tile .fig span { display: block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); letter-spacing: .04em; margin-top: .3rem; text-transform: uppercase; }
.tile:hover h3, .tile:hover h2 { color: var(--color-accent-text); }
/* quote tile */
.tile.said blockquote { margin: .9rem 0 0; font-size: 1.05rem; line-height: 1.45; color: var(--color-ink); quotes: "\201C" "\201D"; }
.tile.said blockquote::before { content: open-quote; } .tile.said blockquote::after { content: close-quote; }
.tile.said .by, .tile.lead .by { display: block; margin-top: auto; padding-top: 1.2rem; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); letter-spacing: .04em; }
.tile.said .by b, .tile.lead .by b { display: block; font-weight: 500; color: var(--color-ink); margin-bottom: .15rem; }
/* film and pictured tiles */
.tile .pic { display: block; position: relative; margin: -1.25rem -1.3rem -1.3rem; background: var(--color-paper-2); overflow: hidden; }
.tile .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile.film { padding: 0; }
.tile.film .pic { margin: 0; aspect-ratio: 16/10; }
.tile.film .txt { display: flex; flex-direction: column; padding: 1rem 1.3rem 1.2rem; }
.tile .play { position: absolute; left: 50%; top: 50%; width: 3.4rem; height: 3.4rem; margin: -1.7rem 0 0 -1.7rem; border-radius: 50%; background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); }
.tile .play::after { content: ""; position: absolute; left: 1.35rem; top: 1.05rem; border-style: solid; border-width: .65rem 0 .65rem 1.05rem; border-color: transparent transparent transparent var(--color-ink); }
.tile:hover .play { background: var(--color-accent); border-color: var(--color-accent); } .tile:hover .play::after { border-left-color: var(--color-paper); }
.tile.wide { grid-column: span 2; }
.tile.wide.pictured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; }
.tile.lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding: 0; }
.tile.wide.pictured .txt, .tile.lead .txt { display: flex; flex-direction: column; padding: 1.6rem 1.7rem 1.7rem; }
.tile.wide.pictured .pic, .tile.lead .pic { margin: 0; border-left: var(--rule-hair) solid var(--color-rule); }
.tile.film.wide.pictured .pic { aspect-ratio: auto; min-height: 15rem; }   /* a wide film fills the tile's height; the poster is cropped, not letterboxed */
.tile.film.wide.pictured .pic img { position: absolute; inset: 0; }
.tile.lead { grid-column: span 3; border: 1.5px solid var(--color-accent); }   /* the one pink thing */
.tile.lead .pic { aspect-ratio: auto; position: relative; min-height: 27rem; }
.tile.lead .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }  /* fills the card's height; a portrait keeps the face */
.tile.lead:hover { border-color: var(--color-accent-deep); }
.tile.lead h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); margin-top: 1rem; }
.tile.lead p { font-size: var(--text-base); -webkit-line-clamp: 5; margin-top: .8rem; }
.tile.lead .fig b { font-size: 3rem; }
.tile .pic.empty { min-height: 12rem; }
.wall .empty { color: var(--color-muted); padding: var(--space-xl) 0; }

/* ---- strips */
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 var(--space-md); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.strip-head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); letter-spacing: -.005em; color: var(--color-ink); }
.strip-head .tlink { color: var(--color-ink); font-size: var(--text-sm); }
.count-static { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); letter-spacing: .04em; }
.latest { padding-top: 0; }

/* ---- the blog: recent grid then the archive as rows */
.news .grid { margin-top: var(--space-md); }
.archive { padding-top: 0; }
.archive .search { margin-top: var(--space-md); }
.rows { display: flex; flex-direction: column; }
.story.row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: .7rem 0; border: 0; border-bottom: var(--rule-hair) solid var(--color-rule); border-radius: 0; background: none; }
.story.row time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); letter-spacing: .04em; }
.story.row .rt { font-size: var(--text-base); color: var(--color-ink); line-height: 1.35; }
.story.row .tag { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.story.row:hover .rt { color: var(--color-accent-text); }
.story.row[hidden] { display: none; }
.archive .year { margin-top: var(--space-lg); }

/* ---- film on an article page */
.film-wrap { position: relative; aspect-ratio: 16/9; margin: var(--space-lg) 0; border-radius: 10px; overflow: hidden; border: var(--rule-hair) solid var(--color-rule); background: var(--color-scrim, #17110b); }
.film-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.readon { margin-top: var(--space-lg); } .readon .tlink { color: var(--color-ink); }

@media (max-width: 60rem) {
  .wallgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .tile.lead { grid-column: span 2; grid-row: auto; }
  .tile.lead, .tile.wide.pictured { grid-template-columns: 1fr; }
  .tile.lead .pic, .tile.wide.pictured .pic, .tile.film.wide.pictured .pic { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); aspect-ratio: 16/10; min-height: 0; order: -1; }   /* the desktop min-height would crop a stacked picture to a tall slot */
  .story.row { grid-template-columns: 5.5rem minmax(0, 1fr); } .story.row .tag { display: none; }
}
@media (max-width: 40rem) {
  .wallgrid { grid-template-columns: 1fr; }
  .tile.lead, .tile.wide { grid-column: span 1; }
}

/* ---- the customer stories page sits on navy, after Fin, so it reads apart from the paper blog.
   A departure from brand vol 3 (which retired navy); pink stays the only accent, every other value is a shade of the navy. */
body.dark {
  --color-paper: #0b1020;        /* the page */
  --color-paper-2: #121933;      /* tinted panels (the family strip) */
  --color-paper-3: #141c3a;      /* tiles and cards: the page lifted one step */
  --color-rule: #283157;         /* hairlines */
  --color-ink: #f4f3ee;          /* headings */
  --color-ink-2: #d9dbe6;        /* reading text */
  --color-muted: #9aa3c4;        /* labels, sources, kickers */
  --color-accent-text: #ff4d86;  /* pink as text or link, lifted so it clears 4.5:1 on navy */
  --color-accent-deep: #ff6f9c;  /* hover and pressed */
}
body.dark .tile { background: linear-gradient(180deg, #161f42, #121a37); }
body.dark .story { background: #141c3a; }
body.dark .tile:hover, body.dark .story:hover { border-color: #4a557f; }
body.dark .tile .play { background: var(--color-paper); border-color: var(--color-rule); }
body.dark .tile .play::after { border-left-color: var(--color-ink); }
body.dark .sectors a { background: var(--color-paper-3); }
body.dark .sectors a[aria-current] { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
body.dark img { opacity: .96; }

/* Byline on an article: author, last updated, reviewer (build.py byline()) */
.article .byline { margin: var(--space-sm) 0 var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

/* ---- Learn (build.py write_learn): guides and comparisons as plain rows, after fin.ai/learn. No pictures: the title,
   what it answers, and when it was last checked. Pills as on the customer wall; the only pink is a hovered title. */
.learn-head .crumbs { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 var(--space-md); }
.learn-head .crumbs a { color: var(--color-muted); text-decoration: none; } .learn-head .crumbs a:hover { color: var(--color-ink); }
.learn-head .crumbs .sep { margin: 0 .35em; }
.learn-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.learn-head .support { max-width: 40rem; }
.learn { padding-top: 0; }
.learn .pills { margin-bottom: var(--space-xl); }
.lcount { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); color: var(--color-ink); margin: 0 0 var(--space-sm); }
.lrows { border-top: var(--rule-hair) solid var(--color-rule); }
.lrow { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 9rem; gap: var(--space-lg); align-items: start; padding: 1.3rem 0 1.5rem; border-bottom: var(--rule-hair) solid var(--color-rule); text-decoration: none; color: var(--color-ink); }
.lrow .lt { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.005em; }
.lrow .ls { font-size: var(--text-sm); line-height: 1.5; color: var(--color-ink-2); padding-top: .2rem; }
.lrow time { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em; color: var(--color-muted); text-align: right; padding-top: .35rem; }
.lrow:hover .lt { color: var(--color-accent-text); }
.article .kicker a { color: inherit; text-decoration: none; border-bottom: var(--rule-hair) solid var(--color-rule); } .article .kicker a:hover { color: var(--color-ink); }
@media (max-width: 60rem) {
  .lrow { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding: 1.1rem 0 1.2rem; }
  .lrow time { order: -1; text-align: left; padding-top: 0; }
  .lrow .lt { font-size: 1.25rem; }
}
.learn-head { padding-bottom: var(--space-lg); } .learn-head + .band { border-top: 0; }   /* no rule between the intro and the pills, as on Fin's */
