/* ===== For You (frontend/js/for-you.js) =====
 * Activate's own design language (owner, 10-27): white cards, hairlines, navy
 * and muted type, one orange primary action, no type above about 23px, no dark
 * bands, no copy laid over a picture, no uppercase buttons, no glowing pills.
 * One thing moves on its own: the Spotlight (owner, 11-18: "I liked the main
 * hero page with 5 rotating stories at the top"). It turns every 8 seconds,
 * waits under the pointer and the keyboard, has a Pause button, and does not
 * run at all under reduced motion.
 * Every colour rides the app tokens (app.css, theme-dark.css), so the page
 * follows the dark theme. The covers are the exception: they carry the
 * authors' own colours (api/for_you_art.py PALETTES) and are the same in both
 * themes, like the pictures drawn over them.
 * Prefix: fy- (fys- belongs to the studio). */
.fy {
  --fy-card: var(--bg-card, #fff);
  --fy-soft: var(--bg-secondary, #f8f9fc);
  --fy-line: var(--border, #e2e8f0);
  --fy-ink: var(--text, #253378);
  --fy-muted: var(--text-secondary, #676865);
  --fy-link: var(--primary-light, #474ecb);
  --fy-focus: var(--accent, #5398f6);
  /* Activate orange, one shade deeper so white text clears 4.5:1 */
  --fy-orange: #c2410c; --fy-orange-h: #9a3412;
  /* the same orange as text on the page's own ground */
  --fy-orange-ink: #c2410c;
  --fy-lift: 0 10px 28px rgba(37, 51, 120, .13);
  --fy-rest: 0 1px 2px rgba(37, 51, 120, .05);
  display: flex; flex-direction: column; gap: 16px; max-width: 1200px; color: var(--fy-ink);
  /* the layout follows the page's own width (@container fy below), not the
     window's: the sidebar open or shut changes the room, the window does not */
  container-type: inline-size; container-name: fy;
  /* the screen-reader-only labels (fy-sr) are positioned: anchored here they
     stay inside the scrolling area, and do not stretch the document under it */
  position: relative;
}
html[data-theme="dark"] .fy { --fy-orange-ink: #f08a4b; --fy-lift: 0 10px 28px rgba(0, 0, 0, .45); --fy-rest: none; }
.fy h1, .fy h2, .fy h3, .fy p, .fy figure { margin: 0; }
.fy a { color: var(--fy-link); }
.fy a:focus-visible, .fy button:focus-visible, .fy textarea:focus-visible { outline: 2px solid var(--fy-focus); outline-offset: 2px; }
.fy-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fy-n { color: var(--fy-muted); font-weight: 500; margin-left: 4px; }

/* top line: context, filters, Manage */
.fy-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 32px; }
.fy-ctx { font-size: 13px; color: var(--fy-muted); }
.fy-ctx b { color: var(--fy-ink); font-weight: 600; }
.fy-top .fy-secondary { margin-left: auto; }
.fy-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.fy-filter { height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--fy-line); background: var(--fy-card); color: var(--fy-ink);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fy-filter:hover { border-color: var(--fy-link); }
.fy-filter.on { border-color: var(--fy-ink); box-shadow: inset 0 0 0 1px var(--fy-ink); }
.fy-notice { font-size: 13px; color: var(--fy-muted); padding: 8px 12px; border: 1px solid var(--fy-line); border-radius: 6px; background: var(--fy-soft); }

/* section headings: the Spotlight's, and the one over the cards under it */
.fy-eyebrow { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fy-orange-ink); }
.fy-sec { font-size: 19px; line-height: 26px; font-weight: 700; color: var(--fy-ink); }
.fy-sec-more { margin-top: 8px; }

/* buttons: one orange primary, a quiet secondary */
.fy-primary, .fy-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 6px;
  font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.fy .fy-primary { background: var(--fy-orange); border: 1px solid var(--fy-orange); color: #fff; }
.fy .fy-primary:hover { background: var(--fy-orange-h); border-color: var(--fy-orange-h); color: #fff; }
.fy .fy-primary:disabled, .fy .fy-primary[aria-disabled="true"] { opacity: .6; cursor: default; }
.fy .fy-secondary { background: var(--fy-card); border: 1px solid var(--fy-line); color: var(--fy-ink); }
.fy .fy-secondary:hover { border-color: var(--fy-link); color: var(--fy-link); }
.fy-link { border: 0; background: none; padding: 0; font: inherit; color: var(--fy-link); text-decoration: underline; cursor: pointer; }

/* ── picture boxes ─────────────────────────────────────────────────────────
   Every box (a card's, a Spotlight story's, a story page's) holds the author's
   cover and, over it, the picture. The picture fades in once it has loaded,
   so a slow or missing picture shows the cover, never a grey hole. */
.fy-media, .fy-fig-box { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fy-soft); }
.fy-media img, .fy-slide-img img, .fy-fig-box img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .45s ease, transform .7s ease; }
.fy-media img.in, .fy-slide-img img.in, .fy-fig-box img.in { opacity: 1; }

/* covers: the author's colours and one shape of its own. .fy-cut0..2 are three
   cuts of each, so a row of covers from one author is not a row of copies.
   isolation: the cover is one layer under the card's picture, its label
   included (without it a release card's version sat on top of its picture
   in the browsers where a size container is not a stacking context). */
.fy-cover { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 4.3%; overflow: hidden; color: #fff; background: #2f3542; container-type: inline-size; isolation: isolate; }
.fy-cover::before, .fy-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
/* a release's version, on the cover a release card shows until its picture
   is made: a label in the lower left, clear of the shapes, never display
   type (23px at most, the page's own ceiling) */
.fy-cover-k { position: relative; z-index: 1; font-size: 18px; font-size: clamp(15px, 5.4cqw, 23px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Manhattan: deep teal, a slanted green band and a lime stripe (the lean of its own shapes) */
.fy-cover-manhattan { background: linear-gradient(113deg, rgba(57, 209, 153, .16) 0 17.8%, rgba(57, 209, 153, 0) 18.2%), #083433; }
.fy-cover-manhattan::before { background: linear-gradient(180deg, #2ad08f, #17a877); clip-path: polygon(62% 0, 86% 0, 62.4% 100%, 38.4% 100%); }
.fy-cover-manhattan::after { background: #70fd6b; clip-path: polygon(89% 0, 90.6% 0, 67% 100%, 65.4% 100%); }
.fy-cover-manhattan.fy-cut1::before { clip-path: polygon(76% 0, 91% 0, 67.4% 100%, 52.4% 100%); }
.fy-cover-manhattan.fy-cut1::after { clip-path: polygon(69% 0, 70.6% 0, 47% 100%, 45.4% 100%); }
.fy-cover-manhattan.fy-cut2::before { clip-path: polygon(72% 0, 100% 0, 100% 100%, 48.4% 100%); }
.fy-cover-manhattan.fy-cut2::after { clip-path: polygon(67% 0, 68.6% 0, 45% 100%, 43.4% 100%); }
/* Veridian: navy, a warm orange light from one corner, a faint hexagon */
.fy-cover-veridian { background: linear-gradient(160deg, #1b2259, #2d3677); }
.fy-cover-veridian::before { background: radial-gradient(circle at 92% 112%, rgba(255, 150, 72, .95) 0, rgba(217, 83, 26, .78) 20%, rgba(217, 83, 26, 0) 50%); }
.fy-cover-veridian::after { inset: -18% -6% auto auto; width: 46%; aspect-ratio: 1; background: rgba(255, 255, 255, .07); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.fy-cover-veridian.fy-cut1::before { background: radial-gradient(circle at 60% 125%, rgba(255, 150, 72, .95) 0, rgba(217, 83, 26, .78) 18%, rgba(217, 83, 26, 0) 46%); }
.fy-cover-veridian.fy-cut1::after { inset: 14% 8% auto auto; width: 34%; }
.fy-cover-veridian.fy-cut2::before { background: radial-gradient(circle at 104% 60%, rgba(255, 150, 72, .95) 0, rgba(217, 83, 26, .78) 18%, rgba(217, 83, 26, 0) 46%); }
.fy-cover-veridian.fy-cut2::after { inset: auto auto -22% 38%; width: 40%; }
/* Supply Chain Research: a dark drawing board, lime line, one lavender point */
.fy-cover-scr { background:
  linear-gradient(#16301f 1px, rgba(22, 48, 31, 0) 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, #16301f 1px, rgba(22, 48, 31, 0) 1px) 0 0 / 28px 28px,
  radial-gradient(ellipse at 50% 50%, #11261d, #0c1b14 75%); }
.fy-cover-scr::before { inset: 16% 10% auto auto; width: 38%; aspect-ratio: 1; border: 1.5px solid #b7eb72; border-radius: 50%; box-shadow: 0 0 0 22px rgba(183, 235, 114, .07), 0 0 0 44px rgba(183, 235, 114, .04); }
.fy-cover-scr::after { inset: auto auto 26% 22%; width: 12px; height: 12px; border-radius: 50%; background: #c0bbf7; box-shadow: 0 0 0 6px rgba(192, 187, 247, .18); }
.fy-cover-scr.fy-cut1::before { inset: auto auto 12% 12%; width: 30%; }
.fy-cover-scr.fy-cut1::after { inset: 24% 20% auto auto; }
.fy-cover-scr.fy-cut2::before { inset: 22% auto auto 30%; width: 44%; border-radius: 6px; }
.fy-cover-scr.fy-cut2::after { inset: auto 14% 18% auto; }
/* Industry news: slate, ruled like a page */
.fy-cover-news { background: linear-gradient(135deg, #22252e, #4b5163); }
.fy-cover-news::before { inset: 22% 10% 22% 42%; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .13) 0 2px, rgba(255, 255, 255, 0) 2px 14px); }
.fy-cover-news::after { inset: 22% 62% auto 10%; height: 34%; background: rgba(255, 255, 255, .09); border-radius: 3px; }
.fy-cover-news.fy-cut1::before { inset: 22% 42% 22% 10%; }
.fy-cover-news.fy-cut1::after { inset: 22% 10% auto 62%; }
.fy-cover-news.fy-cut2::before { inset: 52% 10% 18% 10%; }
.fy-cover-news.fy-cut2::after { inset: 18% 10% auto 10%; height: 26%; }
/* a customer or a partner: neutral, one ring */
.fy-cover-guest { background: linear-gradient(135deg, #2f3542, #596275); }
.fy-cover-guest::before { inset: -30% -8% auto auto; width: 52%; aspect-ratio: 1; border: 22px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.fy-cover-guest::after { display: none; }
.fy-cover-guest.fy-cut1::before { inset: auto auto -34% 46%; }
.fy-cover-guest.fy-cut2::before { inset: 18% auto auto 54%; width: 30%; border-width: 14px; }

/* the author's colour as a small mark beside the byline */
.fy-a-manhattan { --fy-a: #1fbf86; } .fy-a-veridian { --fy-a: #d9531a; } .fy-a-scr { --fy-a: #8fc93a; } .fy-a-news { --fy-a: #7c8396; } .fy-a-guest { --fy-a: #8b93a7; }
.fy-by::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--fy-a, var(--fy-muted)); }

/* ── the Spotlight ─────────────────────────────────────────────────────────
   A white card: the picture on the left, edge to edge; the story beside it;
   under both, the numbered reading list. Every story shares one grid cell, so
   the tallest sets the height and the block never jumps between stories. */
.fy-spot { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fy-spot-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.fy-spot-ctls { display: inline-flex; gap: 6px; flex: none; }
.fy .fy-spot-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 1px solid var(--fy-line); background: var(--fy-card); color: var(--fy-ink); cursor: pointer; }
.fy .fy-spot-btn:hover { border-color: var(--fy-link); color: var(--fy-link); }
.fy-i-play { display: none; }
.fy-spot-off .fy-i-play { display: block; }
.fy-spot-off .fy-i-pause { display: none; }
.fy-spot-card { background: var(--fy-card); border: 1px solid var(--fy-line); border-radius: 12px; overflow: hidden; box-shadow: var(--fy-rest); }
.fy-spot-stage { display: grid; min-width: 0; }
.fy-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); min-width: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s; }
.fy-slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; z-index: 1; }
/* the picture is at least 16:9 and as tall as the story beside it */
.fy-slide-img { position: relative; display: block; align-self: stretch; overflow: hidden; background: var(--fy-soft); }
.fy-slide-img::before { content: ''; display: block; padding-top: 56.25%; }
.fy-slide.on .fy-slide-img img.in { animation: fy-drift 14s ease-out both; }
@keyframes fy-drift { from { transform: scale(1); } to { transform: scale(1.045); } }
.fy-slide-copy { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 28px 32px;
  transform: translateY(8px); opacity: 0; transition: transform .6s ease .08s, opacity .6s ease .08s; }
.fy-slide.on .fy-slide-copy { transform: none; opacity: 1; }
.fy-slide-t { font-size: 23px; line-height: 31px; font-weight: 700; color: var(--fy-ink); text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fy-slide-t a { color: inherit; text-decoration: none; }
.fy-slide-t a:hover { color: var(--fy-link); }
.fy-slide-sum { font-size: 14px; line-height: 22px; color: var(--fy-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fy-slide .fy-act { margin-top: 4px; padding-top: 0; }
/* the reading list: one cell per story; the open one carries the bar that
   fills while its story is on show. That bar is the Spotlight's clock: its
   end turns the page (for-you.js _onAnimEnd), so whatever stops it here stops
   the turning too. */
.fy-spot-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--fy-line); }
.fy .fy-spot-nav { position: relative; display: flex; gap: 10px; align-items: flex-start; text-align: left; min-width: 0; padding: 14px 16px 16px; border: 0; border-left: 1px solid var(--fy-line);
  border-radius: 0; background: transparent; color: var(--fy-muted); font: inherit; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.fy .fy-spot-nav:first-child { border-left: 0; }
.fy .fy-spot-nav:hover { background: var(--fy-soft); color: var(--fy-ink); }
.fy .fy-spot-nav:focus-visible { outline-offset: -2px; }
.fy .fy-spot-nav.on { color: var(--fy-ink); }
.fy-spot-n { font-size: 11px; line-height: 18px; font-weight: 700; letter-spacing: .4px; font-variant-numeric: tabular-nums; }
.fy-spot-nav.on .fy-spot-n { color: var(--fy-orange-ink); }
.fy-spot-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 18px; font-weight: 600; }
.fy-spot-t b { font-size: 11px; line-height: 15px; font-weight: 600; color: var(--fy-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-spot-t > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fy-spot-bar { position: absolute; left: 0; right: 0; top: -1px; height: 3px; }
.fy-spot-bar i { display: block; height: 100%; width: 0; background: var(--fy-orange); }
.fy-spot-nav.on .fy-spot-bar i { animation: fy-progress 8s linear both; }
@keyframes fy-progress { from { width: 0; } to { width: 100%; } }
/* paused by the reader: a full bar and no clock */
.fy-spot-off .fy-spot-nav.on .fy-spot-bar i { animation: none; width: 100%; }
/* waiting: the tab is hidden or the block is off the screen (set by the page) */
.fy-spot-hold .fy-spot-nav.on .fy-spot-bar i { animation-play-state: paused; }
/* waiting: the pointer is over the card, the keyboard is inside the block, or
   a control of the story on show has the focus however it came by it (a
   clicked Useful or Read is :focus but not :focus-visible, and the story must
   not turn away under it). A clicked arrow or list entry does not hold the
   clock: the reader asked for another story, not for it to stop. Separate
   rules, so a browser without :has() keeps the first. */
.fy-spot-card:hover .fy-spot-nav.on .fy-spot-bar i { animation-play-state: paused; }
.fy-spot:has(:focus-visible) .fy-spot-nav.on .fy-spot-bar i { animation-play-state: paused; }
.fy-spot:has(.fy-slide :focus) .fy-spot-nav.on .fy-spot-bar i { animation-play-state: paused; }

/* ── cards: the picture on top, three to a row where there is room ───────── */
.fy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.fy-card { background: var(--fy-card); border: 1px solid var(--fy-line); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; box-shadow: var(--fy-rest);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.fy-card:hover { transform: translateY(-2px); box-shadow: var(--fy-lift); }
.fy-card:hover .fy-media img.in { transform: scale(1.04); }
.fy-card .fy-media { border-bottom: 1px solid var(--fy-line); }
.fy-body { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.fy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--fy-muted); }
.fy-by { color: var(--fy-ink); font-weight: 600; }
.fy-pin, .fy-spon { display: inline-flex; align-items: center; min-height: 20px; line-height: 16px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--fy-line); font-size: 11.5px; font-weight: 600; color: var(--fy-muted); margin-right: 2px; }
.fy-pin { color: var(--fy-ink); }
.fy-title { font-size: 16px; line-height: 23px; font-weight: 700; color: var(--fy-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fy-title a { color: inherit; text-decoration: none; }
.fy-title a:hover { color: var(--fy-link); text-decoration: underline; }
.fy-sum { font-size: 13px; line-height: 20px; color: var(--fy-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fy-event { font-size: 12.5px; font-weight: 600; color: var(--fy-ink); }
.fy-why { font-size: 12px; line-height: 18px; color: var(--fy-muted); border-left: 2px solid var(--fy-line); padding-left: 8px; }
.fy-act { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.fy .fy-cta { font-size: 13px; font-weight: 600; color: var(--fy-link); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.fy .fy-cta:hover { text-decoration: underline; }
.fy-arrow { transition: transform .18s ease; }
.fy-card:hover .fy-arrow { transform: translateX(3px); }
.fy-ctls { margin-left: auto; display: inline-flex; gap: 2px; }
.fy-ctl { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 6px; border: 0; background: transparent;
  color: var(--fy-muted); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.fy-ctl:hover { background: var(--fy-soft); color: var(--fy-ink); }
.fy-ctl.on { color: var(--fy-ink); font-weight: 600; }
.fy-ctl.on svg { fill: currentColor; }
.fy-ctl:disabled { cursor: default; opacity: .7; }

/* while the feed loads: the shape of the page */
.fy-sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--fy-soft), var(--fy-line), var(--fy-soft)); background-size: 200% 100%; animation: fy-shimmer 1.4s linear infinite; }
.fy-media.fy-sk, .fy-slide-img.fy-sk { border-radius: 0; }
.fy-sk-a { height: 12px; width: 38%; }
.fy-sk-b { height: 18px; width: 86%; }
.fy-sk-c { height: 12px; width: 64%; margin-bottom: 14px; }
.fy-sk-card:hover { transform: none; box-shadow: var(--fy-rest); }
.fy-sk-spot .fy-slide-copy { justify-content: center; gap: 14px; }
@keyframes fy-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* states and foot */
.fy-more { display: flex; align-items: center; justify-content: center; gap: 4px; }
.fy-muted-line, .fy-foot, .fy-state { font-size: 12.5px; line-height: 19px; color: var(--fy-muted); }
.fy-muted-line { text-align: center; }
.fy-foot { border-top: 1px solid var(--fy-line); padding-top: 12px; max-width: 900px; }
.fy-prefs { font-size: 12.5px; line-height: 19px; color: var(--fy-muted); margin-top: -8px; }
.fy-empty { border: 1px solid var(--fy-line); border-radius: 8px; background: var(--fy-card); padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fy-empty p { font-size: 13.5px; color: var(--fy-muted); max-width: 560px; }

/* story page */
.fy-story-page { max-width: 760px; }
.fy-back { font-size: 13px; font-weight: 600; text-decoration: none; align-self: flex-start; }
.fy .fy-back { color: var(--fy-link); }
.fy-story { background: var(--fy-card); border: 1px solid var(--fy-line); border-radius: 8px; padding: 24px 28px 20px; display: flex; flex-direction: column; gap: 14px; }
.fy-h1 { font-size: 22px; line-height: 30px; font-weight: 700; color: var(--fy-ink); }
.fy-fig-box { border-radius: 8px; border: 1px solid var(--fy-line); }
.fy-fig figcaption { margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--fy-muted); }
.fy-lede { font-size: 15px; line-height: 24px; color: var(--fy-ink); }
.fy-md { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 23px; color: var(--fy-ink); }
.fy-md h2 { font-size: 17px; line-height: 24px; margin-top: 6px; }
.fy-md h3 { font-size: 15px; line-height: 22px; margin-top: 4px; }
.fy-md ul, .fy-md ol { margin: 0; padding-left: 22px; }
.fy-md blockquote { margin: 0; padding-left: 12px; border-left: 2px solid var(--fy-line); color: var(--fy-muted); }
.fy-md code { font-family: var(--mono, monospace); font-size: 12.5px; background: var(--fy-soft); padding: 1px 4px; border-radius: 4px; }
.fy-consent-line { font-size: 12px; color: var(--fy-muted); }
.fy-end { border-top: 1px solid var(--fy-line); padding-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fy-lbl { font-size: 13px; font-weight: 600; color: var(--fy-ink); }
.fy-interest textarea, .fy-send textarea, .fy-send input { width: 100%; box-sizing: border-box; min-height: 72px; resize: vertical; padding: 8px 10px; border: 1px solid var(--fy-line); border-radius: 6px;
  background: var(--bg-input, #fff); color: var(--fy-ink); font: inherit; font-size: 13px; line-height: 20px; }
.fy-consent { font-size: 12.5px; color: var(--fy-muted); }
.fy-form-row { display: flex; align-items: center; gap: 10px; }
.fy-form-msg { font-size: 12.5px; color: var(--fy-muted); }
.fy-done { font-size: 13.5px; color: var(--fy-ink); }
.fy-story-ctls { display: flex; flex-wrap: wrap; gap: 4px; }
.fy-send { border: 1px solid var(--fy-line); border-radius: 8px; background: var(--fy-soft); padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 520px; }
.fy-send input { min-height: 0; height: 34px; }
.fy-send textarea { min-height: 52px; }
.fy-opt { font-weight: 400; color: var(--fy-muted); }
.fy-send-done { font-size: 12.5px; color: var(--fy-muted); }

/* by the page's own width (.fy is the container) */
@container fy (max-width: 1040px) {
  .fy-slide-copy { padding: 22px 24px; gap: 10px; }
  .fy-slide-sum { -webkit-line-clamp: 3; }
}
@container fy (max-width: 880px) {
  /* the Spotlight stacks: a wide picture (21:9, so the story is still on the
     first screen), then the story */
  .fy-slide { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .fy-slide-img { align-self: start; }
  .fy-slide-img::before { padding-top: 42.86%; }
  .fy-slide-copy { justify-content: flex-start; padding: 20px 22px 22px; gap: 12px; }
  .fy .fy-spot-nav { padding: 12px 12px 14px; }
}
@container fy (max-width: 700px) {
  /* the reading list becomes numbered tabs; the picture is 16:9 again */
  .fy-slide-img::before { padding-top: 56.25%; }
  .fy-spot-t { display: none; }
  .fy .fy-spot-nav { justify-content: center; padding: 12px 0; }
  .fy-slide-t { font-size: 19px; line-height: 26px; }
}
@container fy (max-width: 480px) {
  .fy-ctls { margin-left: 0; }
  .fy-slide-copy { padding: 16px 16px 18px; }
  .fy-spot-head { align-items: center; }
}
@media (max-width: 640px) {
  .fy-story { padding: 18px 16px 16px; }
  .fy-h1 { font-size: 20px; line-height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .fy * { transition: none !important; animation: none !important; }
  /* nothing turns on its own: the open story's bar is simply full, and there
     is nothing for a Pause button to pause */
  .fy-spot-nav.on .fy-spot-bar i { width: 100%; }
  .fy-spot-toggle { display: none !important; }
}

/* design-review.css sizes every #content-area h1/h2/h3 by ID (h1 at 30px,
   which is where the review's 30px headline came from). The page's own
   headings are restated at the same reach so its 23px ceiling holds. */
#content-area .fy .fy-h1 { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: 0; color: var(--fy-ink); }
#content-area .fy .fy-title { font-size: 16px; line-height: 23px; font-weight: 700; color: var(--fy-ink); }
#content-area .fy .fy-sec { font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: 0; color: var(--fy-ink); }
#content-area .fy .fy-slide-t { font-size: 23px; line-height: 31px; font-weight: 700; letter-spacing: 0; color: var(--fy-ink); }
#content-area .fy .fy-md h2 { font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: 0; }
#content-area .fy .fy-md h3 { font-size: 15px; line-height: 22px; font-weight: 700; }
/* … and it rounds every #content-area button into a pill; the reading list's
   cells are square, the Spotlight's three controls are circles */
#content-area .fy .fy-spot-nav { border-radius: 0; }
#content-area .fy .fy-spot-btn { border-radius: 50%; }
@container fy (max-width: 700px) {
  #content-area .fy .fy-slide-t { font-size: 19px; line-height: 26px; }
}
@media (max-width: 640px) {
  #content-area .fy .fy-h1 { font-size: 20px; line-height: 27px; }
}
