/* ═══════════════════════════════════════════════════════════════════
   /blog: the Articles page (templates/blog.html, static/js/blog.js).
   Approved design "page-articles", round 9, 2026-10-08:
   1. hero on the brand gradient: "Written by our interns", the writers'
      faces and the card stash (fanned cards, the top one moves to the back);
   2. All articles on the plain page ground: the count as the heading, the
      Interns directory toolbar (apply-interns.css, reused under .dfi), the
      Editorial cards, the pages, and the preview drawer;
   3. closing on the brand gradient: "Publish your own article".

   Scoped to .dfb. Every colour is a token from df-tokens.css or a
   color-mix of tokens (tests/test_theme_tokens.py forbids raw values). The
   gradient and the covers use the theme-stable --df-navy / --df-on-navy*
   tokens and the logo stops, so a cover looks the same in both themes.
   Fields and buttons are the shared standard (df-forms.css, .dff-*).
   ═══════════════════════════════════════════════════════════════════ */

/* The drawer, its scrim and the name tip live on <body>, outside .dfb, so
   they carry the page's own variables too. */
.dfb, .dfb-rd, .dfb-scr, .dfb-tip {
    --dfb-ease: cubic-bezier(.22, 1, .36, 1);
    --dfb-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --dfb-disp: "Bricolage Grotesque", system-ui, sans-serif;
}
.dfb {
    --dfb-on: var(--df-on-navy);
    --dfb-on-2: color-mix(in srgb, var(--df-on-navy) 82%, transparent);
    --dfb-on-3: color-mix(in srgb, var(--df-on-navy) 64%, transparent);
    --dfb-grid-on: color-mix(in srgb, var(--df-on-navy) 4.5%, transparent);
    --dfb-glass: color-mix(in srgb, var(--df-paper-fixed) 92%, transparent);
    --dfb-scrim-a: color-mix(in srgb, var(--df-navy) 42%, transparent);
    --dfb-scrim-b: color-mix(in srgb, color-mix(in srgb, var(--df-brand-cyan) 32%, var(--df-navy)) 92%, transparent);
    --dfb-glow: color-mix(in srgb, var(--df-brand-cyan) 55%, transparent);
    max-width: 1304px; margin: 0 auto; padding: 12px 12px clamp(24px, 5vh, 48px);
    display: flex; flex-direction: column; gap: clamp(12px, 1.8vw, 20px);
    font-family: Inter, system-ui, sans-serif; font-feature-settings: "cv11" 1;
    color: var(--df-ink);
}
.dfb :focus-visible { outline: 3px solid var(--df-accent); outline-offset: 3px; border-radius: 8px; }
.dfb [hidden] { display: none !important; }
.dfb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
/* Display recipe and sizes come from the shared type system (df-tokens.css). */
body.public .dfb-disp {
    font-family: var(--df-font-display); font-stretch: var(--df-display-stretch); font-variation-settings: var(--df-display-wdth); font-weight: var(--df-display-weight);
    text-transform: uppercase; line-height: var(--df-display-lh); letter-spacing: var(--df-display-ls); margin: 0; max-width: none;
}
.dfb-lede { font-family: var(--df-font-text); font-size: var(--df-type-lede); line-height: var(--df-type-lede-lh); margin: 0; max-width: 46ch; }
.dfb-plg { width: 16px; height: auto; flex: none; color: inherit; }

/* faces: a photo, or initials when there is none (or it failed to load) */
.dfb-fc { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--df-panel); }
.dfb-ini { display: inline-grid; place-items: center; background: var(--df-accent-soft); color: var(--df-accent); font: 700 11px/1 Inter, system-ui, sans-serif; }

/* the five brand tints for a cover with no image, from the article id */
.dfb-t0 { --cb: var(--df-brand-gradient); --cf: var(--df-on-navy); }
.dfb-t1 { --cb: color-mix(in srgb, var(--df-brand-teal) 62%, var(--df-navy)); --cf: var(--df-on-navy); }
.dfb-t2 { --cb: color-mix(in srgb, var(--df-brand-cyan) 88%, var(--df-navy)); --cf: var(--df-on-navy); }
.dfb-t3 { --cb: color-mix(in srgb, var(--df-brand-blue) 86%, var(--df-navy)); --cf: var(--df-on-navy); }
.dfb-t4 { --cb: color-mix(in srgb, var(--df-brand-cyan) 26%, var(--df-paper-fixed)); --cf: var(--df-navy); }
/* Dark theme: no royal-blue cover (Tassy, 8 Oct: no blue in dark); t3
   becomes a deep cyan on near-black, still distinct from t2. */
[data-theme="dark"] .dfb-t3 { --cb: color-mix(in srgb, var(--df-brand-cyan) 45%, var(--df-navy)); }

/* ── 1. Hero ──────────────────────────────────────────────────────── */
.dfb-hero {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 5vw, 72px); align-items: center;
    min-height: min(784px, calc(100svh - var(--df-nav-h) - 24px));
    padding: clamp(28px, 5svh, 56px) clamp(20px, 4vw, 56px); border-radius: 28px;
    color: var(--dfb-on);
    background: linear-gradient(var(--dfb-grid-on) 1px, transparent 1px) 0 0 / 48px 48px,
                linear-gradient(90deg, var(--dfb-grid-on) 1px, transparent 1px) 0 0 / 48px 48px,
                var(--df-brand-gradient);
}
.dfb-hero :focus-visible { outline-color: var(--df-on-navy-accent-deep); }
body.public .dfb-h1 { font-size: var(--df-type-hero); color: var(--dfb-on); }
/* The hero ground, switchable by ONE class on .dfb-hero (Tassy will pick):
   .is-blue  the brand gradient (base rules above);
   .is-navy  the navy chapter with its 48px grid;
   .is-light the light ground with a faint ink grid, ink type (Tassy's pick, live). */
.dfb-hero.is-navy {
    background: linear-gradient(var(--dfb-grid-on) 1px, transparent 1px) 0 0 / 48px 48px,
                linear-gradient(90deg, var(--dfb-grid-on) 1px, transparent 1px) 0 0 / 48px 48px,
                var(--df-navy);
}
.dfb-hero.is-light {
    --dfb-on: var(--df-ink); --dfb-on-2: var(--df-ink-2);
    color: var(--df-ink);
    background: linear-gradient(color-mix(in srgb, var(--df-ink) 4%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
                linear-gradient(90deg, color-mix(in srgb, var(--df-ink) 4%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
                var(--df-surface);
    box-shadow: inset 0 0 0 1px var(--df-line);
}
.dfb-hero.is-light :focus-visible { outline-color: var(--df-accent); }
.dfb-hero.is-light .dfb-stash:focus-visible { outline-color: var(--df-accent); }
.dfb-hero.is-light .dfb-fb .dfb-fc { box-shadow: 0 0 0 2px var(--df-line); }
.dfb-hero .dfb-lede { margin: 16px 0 22px; color: var(--dfb-on-2); }
.dfb-faces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 600px; }
.dfb-faces li { flex: none; }
/* a face shows once its photo has loaded; one that fails is removed */
html.dfb-js .dfb-faces li:not(.ld) { display: none; }
.dfb-faces li.ld { animation: dfb-fin .35s var(--dfb-ease) both; }
@keyframes dfb-fin { from { opacity: 0; transform: scale(.85); } }
.dfb-fb { display: block; width: 34px; height: 34px; border-radius: 50%; transition: transform .18s var(--dfb-ease); }
.dfb-fb .dfb-fc { width: 34px; height: 34px; display: block; box-shadow: 0 0 0 2px color-mix(in srgb, var(--df-on-navy) 18%, transparent); }
.dfb-fb:hover { transform: scale(1.18); position: relative; z-index: 2; }
.dfb-fb:focus-visible { outline-offset: 2px; border-radius: 50%; }
.dfb-tip {
    position: fixed; z-index: 1045; pointer-events: none; background: var(--df-navy); color: var(--df-on-navy);
    font: 600 12.5px Inter, system-ui, sans-serif; padding: 6px 10px; border-radius: 9px; white-space: nowrap;
    opacity: 0; transform: translateY(4px); transition: opacity .14s, transform .14s;
}
[data-theme="dark"] .dfb-tip { background: var(--df-on-navy); color: var(--df-navy); }
.dfb-tip.on { opacity: 1; transform: none; }

/* the card stash: the original Shuffle-deck spread */
.dfb-stash { position: relative; width: min(285px, calc(100% - 48px)); height: clamp(225px, calc(0.75 * (100svh - 300px)), 352px); margin: 0 auto; touch-action: pan-y; outline: 0; }
.dfb-stash:focus-visible { outline: 2px solid var(--df-on-navy); outline-offset: 10px; border-radius: 22px; }
.dfb-st { position: absolute; inset: 0; transition: transform .5s var(--dfb-ease), opacity .4s; will-change: transform; }
.dfb-st .dfb-sc { height: 100%; box-shadow: 0 22px 50px -28px color-mix(in srgb, var(--df-navy) 90%, transparent); }
.dfb-st[data-p="0"] { z-index: 5; cursor: grab; user-select: none; -webkit-user-select: none; }
.dfb-st[data-p="1"] { z-index: 4; transform: rotate(-7deg) translate(-30px, 10px); }
.dfb-st[data-p="2"] { z-index: 3; transform: rotate(6deg) translate(30px, 6px); }
.dfb-st[data-p="3"] { z-index: 2; transform: rotate(-12deg) translate(-52px, 22px) scale(.96); opacity: .85; }
.dfb-st[data-p="4"] { z-index: 1; transform: rotate(11deg) translate(52px, 18px) scale(.95); opacity: .7; }
.dfb-st:not([data-p="0"]) { pointer-events: none; }
.dfb-st:not([data-p="0"]) .dfb-sc { filter: saturate(.85) brightness(.94); }
.dfb-st.drag { transition: none; cursor: grabbing; }
.dfb-st.out { z-index: 6; }
.dfb-st img { -webkit-user-drag: none; }
.dfb-st .dfb-go { top: 14px; left: 14px; right: auto; }
.dfb-st[data-p="0"]:hover .dfb-go, .dfb-st[data-p="0"]:focus-within .dfb-go { opacity: 1; transform: none; }

/* the big cover card (stash and the closing preview) */
.dfb-sc { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--df-surface); color: var(--df-ink); }
.dfb-sc-top {
    position: relative; flex: 1 1 auto; min-height: 52px; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; padding: 18px 20px; container-type: inline-size;
    background: var(--cb); color: var(--cf);
}
.dfb-sc-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 22px 22px; opacity: .06; }
.dfb-sc-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.dfb-q { font: 800 56px/.6 var(--dfb-disp); opacity: .55; height: 28px; flex: none; }
.dfb-stash .dfb-sc-top { padding: 14px 16px; }
.dfb-stash .dfb-sc-bd { padding: 10px 12px 12px; gap: 8px; }
.dfb-stash .dfb-sc-bd .dfb-fc { width: 32px; height: 32px; font-size: 11px; }
.dfb-stash .dfb-wb b { font-size: .9rem; }
.dfb-ct {
    margin-top: auto; font-family: var(--dfb-disp); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800;
    text-transform: uppercase; line-height: .92; font-size: calc(var(--k, 9.6) * 1cqi);
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.dfb-ct.dfb-ks { --k: 13; } .dfb-ct.dfb-km { --k: 10.4; } .dfb-ct.dfb-kl { --k: 8.2; }
.dfb-cm { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 10px var(--dfb-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .85; min-width: 0; }
.dfb-cmp { display: inline-flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dfb-cmp .dfb-plg { width: 14px; }
.dfb-cmp i { font-style: normal; opacity: .7; }
.dfb-sc-bd { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px 16px; background: var(--df-surface); min-width: 0; }
.dfb-sc-bd .dfb-fc { width: 40px; height: 40px; font-size: 13px; }
.dfb-wb { min-width: 0; flex: 1; line-height: 1.15; }
.dfb-wb small { display: block; font-size: .72rem; color: var(--df-ink-3); }
.dfb-wb b { display: block; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--df-ink); }

/* ── 2. All articles ──────────────────────────────────────────────── */
.dfb-all { scroll-margin-top: calc(var(--df-nav-h) + 8px); }
/* the heading, toolbar and chips: the Interns directory component
   (apply-interns.css) under .dfi. Only the wrapper's spacing, the fonts
   it would inherit on /application, and the bits the Articles data adds
   (counts and a platform mark in an option, a muted 0, links for chips)
   are set here. */
.dfi.dfb-dfi { padding: 0; margin: 0 0 18px; font-family: var(--df-font-text); }
body.public .dfb-dfi .disp { font-family: var(--dfb-disp); }
/* the page range: small, muted, right-aligned above the results */
.dfb-range { margin: 14px 2px 10px; text-align: right; font: 500 13px Inter, system-ui, sans-serif; color: var(--df-ink-3); font-variant-numeric: tabular-nums; }
.dfb-dfi .meta + .dfb-range { margin-top: 10px; }
.dfb-dfi .meta.off + .dfb-range { margin-top: 14px; }
.dfb-dfi .tb .sr { position: absolute !important; }
.dfb-dfi .search .x { display: grid; place-items: center; text-decoration: none; }
.dfb-dfi .search.has .hint { display: none; }
.dfb-dfi .ctyl [role="option"] { grid-template-columns: 18px minmax(0, 1fr) auto; text-decoration: none; }
.dfb-dfi .ctyl [role="option"] small { font-size: 12.5px; color: var(--df-ink-3); font-variant-numeric: tabular-nums; font-weight: 500; }
.dfb-dfi .ctyl .z { color: var(--df-ink-3); cursor: default; }
.dfb-dfi .ctyl .z:hover { background: none; }
.dfb-dfi .ctyl .z .box, .dfb-dfi .ctyl .z .dfb-plg { opacity: .45; }
.dfb-on { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfb-on .dfb-plg { width: 16px; color: var(--df-ink); }
.dfb-dfi [data-dd="author"] .ctyl { width: 280px; }
.dfb-dfi a.chip { text-decoration: none; }
/* Three dropdowns where the Interns toolbar has one: on phones they share
   the first row (sort and view on the second), and each list opens across
   the toolbar instead of from its own button, so none runs off screen. */
/* Tablet: the three dropdowns, sort and view were 12px wider than a 768px
   screen; the row may wrap, view moving to the end of a second row. */
@media (max-width: 1000px) {
    .dfb-dfi .opts { flex-wrap: wrap; max-width: 100%; min-width: 0; }
    .dfb-dfi .vw { margin-left: auto; }
}
@media (max-width: 760px) {
    .dfb-dfi .opts { position: relative; flex-wrap: wrap; }
    .dfb-dfi .cty { position: static; flex: 1 1 calc((100% - 12px) / 3); min-width: 0; }
    .dfb-dfi .ctyl, .dfb-dfi [data-dd="author"] .ctyl { left: 0; right: 0; width: auto; max-width: none; }
    .dfb-dfi .srt { margin-right: auto; }
}

.dfb-stage { outline: 0; position: relative; min-height: 200px; }
.dfb-cards { list-style: none; margin: 0; padding: 0; }
.dfb-c.dim, .dfb-wt.dim { opacity: .18; filter: grayscale(1); }
.dfb-c, .dfb-wt { transition: opacity .3s, filter .3s, transform .28s var(--dfb-ease); }

/* the cover: an image over the fallback cover */
.dfb-cvr { position: relative; display: block; overflow: hidden; isolation: isolate; background: var(--df-panel); }
.dfb-cvr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .6s var(--dfb-ease); }
.dfb-tcv { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 12px 14px; background: var(--cb); color: var(--cf); container-type: inline-size; overflow: hidden; }
.dfb-tcv::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 22px 22px; opacity: .06; }
.dfb-tcv-t { position: relative; margin-top: auto; font-family: var(--dfb-disp); font-stretch: 75%; font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase; line-height: .92; font-size: calc(var(--k, 8.6) * 1cqi); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dfb-tcv-t.dfb-ks { --k: 11; } .dfb-tcv-t.dfb-km { --k: 8.6; } .dfb-tcv-t.dfb-kl { --k: 7; }
.dfb-tcv-m { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font: 600 9.5px/1 var(--dfb-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .85; min-width: 0; }
.dfb-tcv-m span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dfb-tcv-p { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.dfb-tcv-p .dfb-plg { width: 14px; }

/* "Read on Medium ↗": on hover or focus (touch opens the drawer instead) */
.dfb-go {
    position: absolute; z-index: 4; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 11px;
    border-radius: 999px; background: var(--df-paper-fixed); color: var(--df-navy); font: 600 12px Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
    opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .25s var(--dfb-ease);
}
.dfb-go:focus-visible { opacity: 1; transform: none; outline: 2px solid var(--df-accent); outline-offset: 2px; }
.dfb-c:hover .dfb-go, .dfb-c:focus-within .dfb-go { opacity: 1; transform: none; }
@media (hover: none) { .dfb-go { display: none; } }
.dfb-pchip {
    position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px;
    border-radius: 999px; background: var(--dfb-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--df-navy);
    font: 600 11.5px Inter, system-ui, sans-serif; letter-spacing: .01em; pointer-events: none;
}
.dfb-pchip .dfb-plg { width: 15px; color: var(--df-navy); }

/* view 1: Magazine, the Editorial card */
.dfb-stage[data-view="magazine"] .dfb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 26px; }
.dfb-stage[data-view="magazine"] .dfb-c { position: relative; display: flex; flex-direction: column; min-width: 0; }
.dfb-stage[data-view="magazine"] .dfb-c:hover { transform: translateY(-2px); }
.dfb-stage[data-view="magazine"] .dfb-cw { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; isolation: isolate; background: var(--df-panel); cursor: pointer; }
.dfb-stage[data-view="magazine"] .dfb-cv { position: absolute; inset: 0; }
.dfb-stage[data-view="magazine"] .dfb-cvr { position: absolute; inset: 0; }
.dfb-stage[data-view="magazine"] .dfb-tcv-t, .dfb-stage[data-view="magazine"] .dfb-tcv-m { display: none; }
.dfb-stage[data-view="magazine"] .dfb-c:hover .dfb-cvr img { transform: scale(1.045); }
.dfb-stage[data-view="magazine"] .dfb-scrim {
    position: absolute; inset: 0; z-index: 2; pointer-events: none; transform-origin: bottom;
    background: linear-gradient(180deg, transparent 22%, var(--dfb-scrim-a) 48%, var(--dfb-scrim-b) 100%), radial-gradient(120% 70% at 0% 100%, var(--dfb-glow), transparent 62%);
    transition: opacity .35s var(--dfb-ease), transform .45s var(--dfb-ease);
}
.dfb-stage[data-view="magazine"] .dfb-c:hover .dfb-scrim, .dfb-stage[data-view="magazine"] .dfb-c:focus-within .dfb-scrim { transform: scaleY(1.12); }
.dfb-stage[data-view="magazine"] .dfb-tx {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 18px 28px; display: grid; gap: 6px;
    color: var(--df-on-navy); pointer-events: none; transition: transform .35s var(--dfb-ease);
}
.dfb-stage[data-view="magazine"] .dfb-c:hover .dfb-tx, .dfb-stage[data-view="magazine"] .dfb-c:focus-within .dfb-tx { transform: translateY(-3px); }
.dfb-stage[data-view="magazine"] .dfb-qm { font-size: 12px; color: var(--dfb-on-3); }
.dfb-stage[data-view="magazine"] .dfb-qd, .dfb-stage[data-view="magazine"] .dfb-qp { display: none; }
body.public .dfb-stage[data-view="magazine"] .dfb-ttl { margin: 0; color: var(--df-on-navy); font: 680 clamp(1.12rem, 1.55vw, 1.3rem)/1.22 Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.dfb-stage[data-view="magazine"] .dfb-ttl a { pointer-events: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dfb-stage[data-view="magazine"] .dfb-ex { margin: -8px 0 0; color: var(--dfb-on-2); font: 400 13.5px/1.45 Inter, system-ui, sans-serif; max-height: 0; opacity: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: max-height .35s var(--dfb-ease), opacity .25s, margin .35s var(--dfb-ease); }
.dfb-stage[data-view="magazine"] .dfb-c:hover .dfb-ex, .dfb-stage[data-view="magazine"] .dfb-c:focus-within .dfb-ex { max-height: 2.9em; opacity: 1; margin-top: 0; }
@media (hover: none) { .dfb-stage[data-view="magazine"] .dfb-ex { max-height: 2.9em; opacity: 1; margin-top: 0; } }
/* no image: the brand tint, and the title itself in condensed caps (shown once) */
.dfb-stage[data-view="magazine"] .dfb-c.nc .dfb-scrim { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--df-navy) 35%, transparent)); }
.dfb-stage[data-view="magazine"] .dfb-c.nc .dfb-tx { color: var(--cf); }
body.public .dfb-stage[data-view="magazine"] .dfb-c.nc .dfb-ttl { color: var(--cf); font: 800 clamp(1.5rem, 2.3vw, 1.95rem)/.95 var(--dfb-disp); font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; letter-spacing: 0; }
.dfb-stage[data-view="magazine"] .dfb-c.nc .dfb-ttl a { -webkit-line-clamp: 3; }
.dfb-stage[data-view="magazine"] .dfb-c.nc .dfb-qm { color: color-mix(in srgb, var(--cf) 78%, transparent); }
.dfb-ttl a { color: inherit; text-decoration: none; }
.dfb-ttl a:focus-visible { outline-offset: 2px; }
.dfb-by { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: 10px; min-width: 0; font: 500 13px Inter, system-ui, sans-serif; color: var(--df-ink-3); }
.dfb-stage[data-view="magazine"] .dfb-by { margin-top: -20px; padding: 0 16px; }
.dfb-stage[data-view="magazine"] .dfb-by .dfb-fc { width: 40px; height: 40px; box-shadow: 0 0 0 3px var(--df-panel); font-size: 13px; }
.dfb-nm { color: var(--df-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-bottom: 1px; text-decoration: none; }
a.dfb-nm:hover { text-decoration: underline; text-underline-offset: 3px; }
.dfb-by time { margin-left: auto; white-space: nowrap; padding-bottom: 1px; font-variant-numeric: tabular-nums; }
.dfb-by .like-form { margin-left: auto; padding-bottom: 1px; }
.dfb-by time + .like-form { margin-left: 4px; }

/* view 2: List, thumbnail rows (the same markup, laid out as rows) */
.dfb-stage[data-view="list"] .dfb-cards { display: grid; gap: 4px; }
.dfb-stage[data-view="list"] .dfb-c { display: grid; grid-template-columns: 208px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 22px; row-gap: 6px; align-items: start; padding: 14px; border-radius: 16px; }
.dfb-stage[data-view="list"] .dfb-c:hover { transform: translateY(-2px); background: var(--dfi-card, var(--df-surface)); }
.dfb-stage[data-view="list"] .dfb-cw { display: contents; }
.dfb-stage[data-view="list"] .dfb-cv { grid-column: 1; grid-row: 1 / 3; position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
.dfb-stage[data-view="list"] .dfb-cvr { aspect-ratio: 16 / 9; }
.dfb-stage[data-view="list"] .dfb-tcv { padding: 8px 10px; }
.dfb-stage[data-view="list"] .dfb-c:hover .dfb-cvr img { transform: scale(1.04); }
.dfb-stage[data-view="list"] .dfb-scrim { display: none; }
.dfb-stage[data-view="list"] .dfb-pchip { display: none; }
.dfb-stage[data-view="list"] .dfb-go { top: auto; bottom: 7px; right: auto; left: 7px; height: 24px; font-size: 11.5px; padding: 0 9px; }
.dfb-stage[data-view="list"] .dfb-tx { grid-column: 2; grid-row: 1; display: grid; gap: 6px; min-width: 0; align-self: end; }
.dfb-stage[data-view="list"] .dfb-qm { display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 12.5px Inter, system-ui, sans-serif; color: var(--df-ink-3); white-space: nowrap; overflow: hidden; }
.dfb-qm i { font-style: normal; opacity: .6; }
.dfb-qp { display: inline-flex; align-items: center; gap: 5px; }
.dfb-qp .dfb-plg { width: 15px; color: var(--df-ink-3); }
body.public .dfb-stage[data-view="list"] .dfb-ttl { margin: 0; font: 600 17px/1.3 Inter, system-ui, sans-serif; letter-spacing: -.01em; color: var(--df-ink); }
.dfb-stage[data-view="list"] .dfb-ttl a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dfb-stage[data-view="list"] .dfb-ex { margin: 0; font: 400 14px/1.5 Inter, system-ui, sans-serif; color: var(--df-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dfb-stage[data-view="list"] .dfb-by { grid-column: 2; grid-row: 2; align-items: center; gap: 8px; align-self: start; }
.dfb-stage[data-view="list"] .dfb-by .dfb-fc { width: 24px; height: 24px; font-size: 9.5px; }
.dfb-stage[data-view="list"] .dfb-nm { font-weight: 500; color: var(--df-ink-2); }

/* view 3: Wall, the drifting columns of this page's covers */
.dfb-stage[data-view="wall"] { margin: 0 -32px; height: min(calc(100svh - 120px), 720px); }
.dfb-stage[data-view="wall"] .dfb-cards { display: none; }
.dfb-wall { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 10px; height: 100%; overflow: hidden; padding: 0 10px; -webkit-mask: linear-gradient(transparent, black 5%, black 88%, transparent); mask: linear-gradient(transparent, black 5%, black 88%, transparent); }
.dfb-wcol { min-width: 0; }
.dfb-wtr { animation: dfb-drift var(--dur, 120s) linear infinite; padding-top: 6px; }
@keyframes dfb-drift { to { transform: translateY(-50%); } }
.dfb-wall:hover .dfb-wtr, .dfb-wall:focus-within .dfb-wtr { animation-play-state: paused; }
.dfb-wt { position: relative; height: var(--h, 200px); margin-bottom: 10px; border-radius: 16px; overflow: hidden; background: var(--df-panel); cursor: pointer; }
.dfb-wt .dfb-cvr { position: absolute; inset: 0; }
.dfb-wt .dfb-tcv-t { -webkit-line-clamp: 4; }
.dfb-wt .dfb-pchip { top: 8px; left: 8px; height: 22px; font-size: 10.5px; padding: 0 8px 0 6px; }
.dfb-wt.nc .dfb-pchip { display: none; }
.dfb-wo { position: absolute; inset: 0; z-index: 4; padding: 12px; display: grid; align-content: end; gap: 8px; color: var(--df-on-navy); background: color-mix(in srgb, var(--df-navy) 88%, transparent); opacity: 0; transform: translateY(10px); transition: opacity .22s, transform .25s var(--dfb-ease); pointer-events: none; }
.dfb-wt:hover, .dfb-wt:focus-within { transform: translateY(-3px); }
.dfb-wt:hover .dfb-wo, .dfb-wt:focus-within .dfb-wo { opacity: 1; transform: none; }
.dfb-wo-t { all: unset; font: 650 14.5px/1.28 Inter, system-ui, sans-serif; color: var(--df-on-navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; pointer-events: auto; }
.dfb-wo-t:focus-visible { outline: 2px solid var(--df-on-navy); outline-offset: 2px; border-radius: 4px; }
.dfb-wo-by { display: flex; gap: 7px; align-items: center; font-size: 12.5px; opacity: .9; min-width: 0; }
.dfb-wo-by span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dfb-wo-by .dfb-fc { width: 22px; height: 22px; font-size: 9px; }
.dfb-wo .dfb-go { position: static; opacity: 1; transform: none; justify-self: start; pointer-events: auto; }
.dfb-wt.dim { cursor: default; }
.dfb-wt.dim .dfb-wo { display: none; }

.dfb-empty { min-height: 320px; display: grid; place-items: center; align-content: center; text-align: center; background: var(--dfi-card, var(--df-surface)); border-radius: 24px; padding: 24px; }
body.public .dfb-empty h3 { margin: 0 0 8px; font: 700 1.4rem/1.2 Inter, system-ui, sans-serif; letter-spacing: -.02em; }
.dfb-empty p { margin: 0 0 16px; color: var(--df-ink-2); }

/* pagination */
.dfb-pgn { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 34px 0 4px; flex-wrap: wrap; }
.dfb-pgn ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.dfb-pgn a, .dfb-pg-s { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; color: var(--df-ink-2); font: 600 14.5px Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; transition: background .18s, color .18s; }
.dfb-pgn a:hover { background: var(--dfi-card, var(--df-surface)); color: var(--df-ink); }
.dfb-pgn a[aria-current="page"] { background: var(--df-ink); color: var(--df-paper); }
.dfb-pgn .dfb-pg-s { background: var(--dfi-card, var(--df-surface)); color: var(--df-ink); padding: 0 16px; }
.dfb-pgn .dfb-pg-s.is-off { opacity: .35; }
.dfb-pgn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dfb-pg-e { color: var(--df-ink-3); padding: 0 4px; }

/* the preview drawer (side drawer; bottom sheet on phones) */
html.dfb-rd-open { overflow: hidden; }
.dfb-scr { position: fixed; inset: 0; z-index: 1050; background: color-mix(in srgb, var(--df-navy) 40%, transparent); opacity: 0; pointer-events: none; transition: opacity .25s; }
.dfb-scr.on { opacity: 1; pointer-events: auto; }
.dfb-rd {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1060; width: min(480px, 100vw); display: flex; flex-direction: column;
    background: var(--df-surface); color: var(--df-ink); font-family: Inter, system-ui, sans-serif;
    transform: translateX(102%); transition: transform .32s cubic-bezier(.22, 1, .36, 1); box-shadow: var(--df-shadow);
}
.dfb-rd.on { transform: none; }
.dfb-rd :focus-visible { outline: 3px solid var(--df-accent); outline-offset: 2px; border-radius: 8px; }
.dfb-rd-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px 10px 22px; flex: none; }
.dfb-rd-n { font: 500 13px Inter, system-ui, sans-serif; color: var(--df-ink-3); font-variant-numeric: tabular-nums; }
.dfb-rd-nav { display: flex; gap: 6px; }
.dfb-rd-i { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--df-panel); color: var(--df-ink); display: grid; place-items: center; cursor: pointer; transition: background .18s; }
.dfb-rd-i:hover:not(:disabled) { background: color-mix(in srgb, var(--df-panel), var(--df-ink) 8%); }
.dfb-rd-i:disabled { opacity: .35; cursor: default; }
.dfb-rd-i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dfb-rd-sc { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 22px 18px; display: grid; align-content: start; gap: 14px; }
.dfb-rd-cv .dfb-cvr { aspect-ratio: 16 / 10; border-radius: 16px; }
.dfb-rd-cv .dfb-tcv { padding: 18px 20px; }
.dfb-rd-cv .dfb-tcv-t { -webkit-line-clamp: 4; }
.dfb-rd .dfb-qm { display: flex; align-items: center; gap: 6px; font: 500 13px Inter, system-ui, sans-serif; color: var(--df-ink-3); }
body.public .dfb-rd-t { margin: 0; font: 700 clamp(1.35rem, 2.2vw, 1.6rem)/1.22 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: var(--df-ink); }
.dfb-rd-by { display: flex; align-items: center; gap: 10px; }
.dfb-rd-by .dfb-fc { width: 38px; height: 38px; font-size: 12px; }
.dfb-rd-by b, .dfb-rd-by a { display: block; font: 600 15px Inter, system-ui, sans-serif; color: var(--df-ink); text-decoration: none; }
.dfb-rd-by a:hover { text-decoration: underline; }
.dfb-rd-by time { display: block; font-size: 13px; color: var(--df-ink-3); margin-top: 1px; }
.dfb-rd-x { margin: 0; font: 400 16px/1.62 Inter, system-ui, sans-serif; color: var(--df-ink-2); }
.dfb-rd-x.none { color: var(--df-ink-3); font-size: 14.5px; }
.dfb-rd-k { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.dfb-rd-k li { font: 500 12.5px Inter, system-ui, sans-serif; color: var(--df-ink-2); background: var(--df-panel); border-radius: 999px; padding: 4px 10px; }
.dfb-rd-a { flex: none; display: flex; gap: 8px; align-items: center; padding: 14px 22px 18px; box-shadow: 0 -1px 0 var(--df-line); }
.dfb-rd-a .dff-b1 { flex: 1; font-family: Inter, system-ui, sans-serif; }

/* ── 3. Closing ───────────────────────────────────────────────────── */
.dfb-pub {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 28px;
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center;
    padding: clamp(28px, 5svh, 56px) clamp(20px, 4vw, 56px); color: var(--dfb-on);
    background: linear-gradient(var(--dfb-grid-on) 1px, transparent 1px) 0 0 / 48px 48px,
                linear-gradient(90deg, var(--dfb-grid-on) 1px, transparent 1px) 0 0 / 48px 48px,
                var(--df-brand-gradient);
}
.dfb-pub :focus-visible { outline-color: var(--df-on-navy-accent-deep); }
body.public .dfb-h3 { font-size: var(--df-type-h2); color: var(--dfb-on); }
.dfb-pub .dfb-lede { margin: 16px 0 4px; color: var(--dfb-on-2); }
.dfb-ycf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 14px 0 18px; max-width: 560px; }
.dfb-ycf .dff { margin: 0; }
.dfb-ycf .dff-lab { color: var(--dfb-on); }
.dfb-ycf .dff-in { font-family: Inter, system-ui, sans-serif; }
.dfb-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.dfb-pub .dff-b1 { background: var(--dfb-on); color: var(--df-navy); font-family: Inter, system-ui, sans-serif; }
.dfb-pub .dff-b1:focus-visible { outline-color: var(--df-on-navy-accent-deep); }
.dfb-yc .dfb-sc { width: min(320px, 100%); height: clamp(300px, calc(100svh - 260px), 420px); margin: 0 auto; transform: rotate(3deg); box-shadow: 0 22px 50px -28px color-mix(in srgb, var(--df-navy) 90%, transparent); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) { .dfb-stage[data-view="magazine"] .dfb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .dfb { padding: 8px 8px 24px; }
    .dfb-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; border-radius: 22px; align-content: start; }
    .dfb-hero .dfb-lede { margin: 10px 0 14px; }
    .dfb-faces { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 32px); grid-auto-columns: 32px; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: none; padding: 4px 2px; margin: 0 -2px; -webkit-mask: linear-gradient(90deg, black 88%, transparent); mask: linear-gradient(90deg, black 88%, transparent); }
    .dfb-faces::-webkit-scrollbar { display: none; }
    .dfb-fb, .dfb-fb .dfb-fc { width: 32px; height: 32px; }
    .dfb-fb:hover { transform: none; }
    .dfb-stash { width: min(250px, calc(100% - 56px)); height: clamp(175px, calc(100svh - 500px), 330px); margin-top: 12px; justify-self: center; }
    .dfb-st[data-p="1"] { transform: rotate(-6deg) translate(-20px, 8px); }
    .dfb-st[data-p="2"] { transform: rotate(5deg) translate(20px, 5px); }
    .dfb-st[data-p="3"] { transform: rotate(-10deg) translate(-32px, 16px) scale(.96); }
    .dfb-st[data-p="4"] { transform: rotate(9deg) translate(32px, 14px) scale(.95); }
    .dfb-q { font-size: 52px; height: 26px; }
    .dfb-sc-top { padding: 14px 16px; }
    .dfb-sc-bd { padding: 10px 12px 12px; }
    .dfb-sc-bd .dfb-fc { width: 32px; height: 32px; }
    .dfb-stage[data-view="list"] .dfb-c { grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; padding: 10px 6px; }
    .dfb-stage[data-view="list"] .dfb-qm, .dfb-stage[data-view="list"] .dfb-ex { display: none; }
    body.public .dfb-stage[data-view="list"] .dfb-ttl { font-size: 15.5px; }
    .dfb-stage[data-view="list"] .dfb-tx { align-self: start; }
    .dfb-stage[data-view="list"] .dfb-tcv-t { --k: 9; }
    .dfb-stage[data-view="list"] .dfb-tcv-m { display: none; }
    .dfb-stage[data-view="wall"] { margin: 0 -14px; height: min(calc(100svh - 150px), 620px); }
    .dfb-pgn { gap: 4px; }
    .dfb-pgn a, .dfb-pg-s { min-width: 36px; height: 38px; padding: 0 8px; }
    .dfb-pgn li.far { display: none; }
    .dfb-rd { top: auto; left: 0; right: 0; width: auto; max-height: 90svh; border-radius: 22px 22px 0 0; transform: translateY(102%); }
    .dfb-rd::before { content: ""; position: absolute; left: 50%; top: 7px; width: 38px; height: 4px; margin-left: -19px; border-radius: 9px; background: var(--df-line); }
    .dfb-rd-top { padding: 16px 14px 8px 18px; }
    .dfb-rd-sc { padding: 4px 18px 14px; }
    .dfb-rd-a { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
    .dfb-pub { grid-template-columns: minmax(0, 1fr); gap: 16px; border-radius: 22px; }
    .dfb-pub .dfb-lede { margin-top: 10px; }
    .dfb-ycf { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 10px 0 14px; }
    .dfb-yc { order: -1; }
    .dfb-yc .dfb-sc { height: 170px; width: min(260px, 100%); }
    .dfb-yc .dfb-q { display: none; }
    .dfb-yc .dfb-ct { -webkit-line-clamp: 2; }
}
@media (max-width: 560px) {
    .dfb-stage[data-view="magazine"] .dfb-cards { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .dfb-pgn .dfb-pg-s span { display: none; }
    .dfb-pgn .dfb-pg-s { width: 40px; padding: 0; }
}
@media (hover: none) { .dfb-c:hover, .dfb-wt:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .dfb *, .dfb *::before, .dfb *::after, .dfb-rd, .dfb-scr, .dfb-tip { animation: none !important; transition: none !important; }
}
@media (max-width: 560px) { .dfb-dfi .ctyb { font-size: 13px; padding: 0 7px 0 9px; gap: 4px; } }

/* ── Open layout (Tassy, 8 Oct): "published so far" sits on the page
   itself, not inside the grey panel. The hero keeps its card. ─────── */
.dfb-dfi .dfi-panel { background: none; border-radius: 0; padding: 0 clamp(4px, 1.5vw, 20px); }
.dfb-dfi .dfi-panel::before { display: none; }
