/* berlinfographics.com — the site's own chrome, in the DISPATCH brand (studio/brand/brand.css).
   Every class is .bfs-* so it never touches a story page's own styles. */
.bfs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
body.bfs-page { margin: 0; font-family: var(--f-text); font-size: 19px; line-height: 1.55; font-variation-settings: 'opsz' 16; }
.bfs-page a, .bfs-head a, .bfs-foot a, .bfs-press a { color: inherit; }

/* header */
.bfs-head { border-bottom: 1px solid var(--ink); background: var(--bg); }
.bfs-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 60px; }
.bfs-brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.bfs-name { font-family: var(--f-display); font-size: 25px; font-weight: 700; font-variation-settings: 'opsz' 72; color: var(--ink); }
.bfs-name em, .bfs-foot-name em, .bfs-plate em { font-style: italic; font-weight: 400; }
.bfs-by { font-family: var(--f-label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bfs-nav { display: flex; gap: clamp(14px, 2.4vw, 28px); font-family: var(--f-label); font-size: 15px; }
.bfs-nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.bfs-nav a:hover, .bfs-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 640px) { .bfs-by { display: none; } .bfs-nav { font-size: 14px; } .bfs-name { font-size: 22px; } }
/* Small phones (360 px): logo + three links overflowed by 20 px; tighten both. */
@media (max-width: 400px) { .bfs-bar { gap: 10px; } .bfs-nav { gap: 11px; font-size: 13.5px; } .bfs-name { font-size: 20px; } }
/* Very small phones (320 px): still 24 px too wide, which made the browser zoom the whole page out. */
@media (max-width: 340px) { .bfs-bar { gap: 8px; } .bfs-nav { gap: 8px; font-size: 12.5px; } .bfs-name { font-size: 18px; } }

/* shared bits */
.bfs-kicker { font-family: var(--f-label); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.bfs-btn { display: inline-block; font-family: var(--f-label); font-size: 15px; font-weight: 600; text-decoration: none; padding: 9px 15px;
  background: var(--ink); color: var(--bg) !important; border: 1px solid var(--ink); cursor: pointer; line-height: 1.2; }
.bfs-btn:hover { background: var(--accent); border-color: var(--accent); }
.bfs-btn.bfs-ghost { background: transparent; color: var(--ink) !important; }
.bfs-btn.bfs-ghost:hover { background: var(--bg-2); }
.bfs-btn:focus-visible, .bfs-page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* front page */
.bfs-plate { text-align: center; padding: 34px 0 0; }
.bfs-plate h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(54px, 9vw, 116px); line-height: .95; letter-spacing: -.02em; margin: 0; font-variation-settings: 'opsz' 72; }
.bfs-dateline { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
  margin-top: 18px; padding: 8px 0; font-family: var(--f-label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bfs-intro { max-width: 46em; margin: 26px auto 8px; text-align: center; font-size: 21px; color: var(--ink-2); text-wrap: pretty; }
.bfs-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 8px; font-family: var(--f-label); }
.bfs-chips a { text-decoration: none; font-size: 15px; padding: 6px 13px; border: 1px solid var(--rule); color: var(--ink-2); }
.bfs-chips a:hover { border-color: var(--ink); color: var(--ink); }
.bfs-chips a[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.bfs-chips small { font-family: var(--f-figure); font-size: 12px; margin-left: 4px; opacity: .8; }
/* Phones: one swipeable row, bleeding to the screen edges, instead of a 9-line cloud. */
@media (max-width: 560px) {
  .bfs-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-left: -24px; margin-right: -24px; padding: 0 24px 4px; scroll-padding: 0 24px; }
  .bfs-chips::-webkit-scrollbar { display: none; }
  .bfs-chips a { flex: none; white-space: nowrap; }
}

.bfs-section { border-top: 1px solid var(--ink); margin-top: 44px; padding-top: 14px; }
.bfs-section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bfs-section h2 { font-family: var(--f-display); font-weight: 600; font-size: 34px; line-height: 1.1; margin: 0; font-variation-settings: 'opsz' 48; }
.bfs-section-h p { margin: 0; font-family: var(--f-label); font-size: 15px; color: var(--mute); }
.bfs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px 28px; }

.bfs-card { display: flex; flex-direction: column; }
.bfs-card-img img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); background: var(--bg-2); }
.bfs-card-img:hover img { border-color: var(--ink); }
.bfs-card-kick { font-family: var(--f-label); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 12px 0 6px; }
.bfs-card-kick a { text-decoration: none; color: var(--accent); font-weight: 600; }
.bfs-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 0 0 8px; font-variation-settings: 'opsz' 36; text-wrap: balance; }
.bfs-card h3 a { text-decoration: none; }
.bfs-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bfs-card-sum { margin: 0; font-size: 17px; color: var(--ink-2); }
.bfs-card-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: center; margin-top: 30px; padding-bottom: 8px; }
.bfs-card-lead h3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; }
.bfs-card-lead .bfs-card-sum { font-size: 20px; }
.bfs-card-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
@media (max-width: 860px) { .bfs-card-lead { grid-template-columns: 1fr; gap: 6px; } }
.bfs-card[hidden], .bfs-section[hidden] { display: none; }

.bfs-strip { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 28px; background: var(--bg-2); padding: 26px 28px; margin-top: 56px; border-top: 3px solid var(--ink); }
.bfs-strip h2 { font-family: var(--f-display); font-size: 28px; line-height: 1.1; margin: 0; font-weight: 600; }
.bfs-strip p { margin: 0; font-size: 16px; color: var(--ink-2); }
.bfs-strip b { display: block; font-family: var(--f-label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 860px) { .bfs-strip { grid-template-columns: 1fr; } }
.bfs-network { width: 100%; margin-top: 64px; }
.bfs-network .bxn { width: 100%; max-width: none; }
.bfs-page .bfs-network + .bfs-foot, .bfs-network + .bfs-foot { margin-top: 0; border-top: 0; }

/* text pages */
.bfs-article { max-width: 760px; padding-top: 44px; }
.bfs-article h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.04; margin: 0 0 16px; font-variation-settings: 'opsz' 72; text-wrap: balance; }
.bfs-article h2 { font-family: var(--f-display); font-weight: 600; font-size: 26px; margin: 34px 0 8px; }
.bfs-article p, .bfs-article li { color: var(--ink-2); }
.bfs-article .bfs-lede { font-size: 22px; }
.bfs-article code { font-family: var(--f-figure); font-size: 15px; background: var(--bg-2); padding: 2px 6px; }
.bfs-small { font-size: 15px; color: var(--mute); }

/* press section at the end of a story */
.bfs-press { border-top: 3px double var(--ink); background: var(--bg-2); margin-top: 48px; padding: 40px 0 48px; }
.bfs-press h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; margin: 0 0 12px; font-variation-settings: 'opsz' 72; }
.bfs-press .bfs-lede { font-size: 20px; max-width: 44em; margin: 0 0 28px; color: var(--ink-2); }
.bfs-downloads { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .bfs-downloads { grid-template-columns: 1fr; } }
.bfs-dl { margin: 0; background: var(--bg); border: 1px solid var(--rule); padding: 16px; }
.bfs-dl img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.bfs-thumb:hover img { border-color: var(--ink); }
.bfs-dl figcaption { font-family: var(--f-label); font-size: 15px; color: var(--ink-2); margin-top: 12px; line-height: 1.4; }
.bfs-dl figcaption p { margin: 0 0 10px; }
.bfs-dl-h { font-family: var(--f-display) !important; font-size: 21px !important; font-weight: 600; color: var(--ink); }
.bfs-dl-sq .bfs-thumb img { max-width: 260px; }
.bfs-cites { display: grid; gap: 12px; margin-top: 26px; }
.bfs-cite { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--rule); padding: 10px 12px; }
.bfs-cite-h { margin: 0; font-family: var(--f-label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.bfs-cite code { font-family: var(--f-figure); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; color: var(--ink); }
@media (max-width: 640px) { .bfs-cite { grid-template-columns: 1fr; gap: 6px; } .bfs-cite .bfs-btn { justify-self: start; } }
.bfs-notes { font-family: var(--f-label); font-size: 15px; color: var(--ink-2); margin: 22px 0 0; padding-left: 18px; line-height: 1.5; }
.bfs-notes li { margin-bottom: 6px; }

/* footer */
.bfs-foot { border-top: 1px solid var(--ink); margin-top: 0; padding: 36px 0 52px; background: var(--bg); font-family: var(--f-label); font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.bfs-page .bfs-foot { margin-top: 72px; }
.bfs-foot-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 36px; }
.bfs-foot p { margin: 0 0 8px; }
.bfs-foot-name { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--ink); }
@media (max-width: 760px) { .bfs-foot-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ── image-led front page (2026-11-05) ─────────────────────────────────── */
.bfs-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: #15130F; color: #F5F1E8; }
.bfs-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.bfs-hero:not(.is-photo) .bfs-hero-img { object-position: center top; }
.bfs-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,0) 25%, rgba(10,9,8,.55) 58%, rgba(10,9,8,.9) 100%); }
.bfs-hero-text { position: relative; width: 100%; padding-top: 40px; padding-bottom: 46px; }
.bfs-hero-kick { font-family: var(--f-label); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; color: #D9CFBD; }
.bfs-hero-kick a { color: #F5F1E8; text-decoration: none; font-weight: 600; }
.bfs-hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.015em; margin: 0 0 16px; max-width: 17em; text-wrap: balance; font-variation-settings: 'opsz' 72; }
.bfs-hero h1 a { color: inherit; text-decoration: none; }
.bfs-hero-sum { font-size: clamp(18px, 1.6vw, 22px); max-width: 38em; margin: 0; color: #E6DECF; }
.bfs-hero-credit { position: absolute; right: 14px; top: 10px; margin: 0; font-family: var(--f-label); font-size: 12px; color: rgba(245,241,232,.75); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.bfs-btn.bfs-on-dark { background: #F5F1E8; color: #15130F !important; border-color: #F5F1E8; }
.bfs-btn.bfs-ghost.bfs-on-dark { background: transparent; color: #F5F1E8 !important; }
.bfs-btn.bfs-on-dark:hover { background: #fff; color: #15130F !important; }
.bfs-hero .bfs-dateline { color: inherit; }
.bfs-wrap > .bfs-dateline { margin-top: 0; border-top: 0; }

.bfs-latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 26px 22px; margin-top: 30px; }
.bfs-latest .bfs-tile-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 960px) { .bfs-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bfs-latest { grid-template-columns: 1fr; } .bfs-latest .bfs-tile-big { grid-column: auto; grid-row: auto; } }

.bfs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 22px; }
.bfs-tile-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.bfs-tile-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); }
.bfs-tile-big .bfs-tile-img { aspect-ratio: 4 / 3.4; }
.bfs-tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .5s ease; }
.bfs-tile-img.is-photo img { object-position: center 35%; filter: grayscale(.15) contrast(1.03); }
.bfs-tile-link:hover .bfs-tile-img img { transform: scale(1.035); }
.bfs-tile-link:hover .bfs-tile-img { border-color: var(--ink); }
.bfs-tile-kick { font-family: var(--f-label); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 12px 0 6px; }
.bfs-tile-h { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.16; font-variation-settings: 'opsz' 36; text-wrap: balance; }
.bfs-tile-big .bfs-tile-h { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; }
.bfs-tile-link:hover .bfs-tile-h { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .bfs-tile-img img { transition: none; } }
/* Phones: topic tiles become compact rows (thumbnail left, headline right), so a section of
   20 pieces is a few screens rather than twenty. The big lead tile keeps its photo. */
@media (max-width: 560px) {
  .bfs-tiles, .bfs-latest { gap: 0; }
  .bfs-tiles .bfs-tile, .bfs-latest .bfs-tile:not(.bfs-tile-big) { border-top: 1px solid var(--rule); }
  .bfs-tiles .bfs-tile-link, .bfs-latest .bfs-tile:not(.bfs-tile-big) .bfs-tile-link {
    display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; padding: 14px 0; }
  .bfs-tiles .bfs-tile-img, .bfs-latest .bfs-tile:not(.bfs-tile-big) .bfs-tile-img { grid-row: 1 / span 2; aspect-ratio: 1; }
  .bfs-tiles .bfs-tile-kick, .bfs-latest .bfs-tile:not(.bfs-tile-big) .bfs-tile-kick { margin: 0 0 4px; }
  .bfs-tiles .bfs-tile-h, .bfs-latest .bfs-tile:not(.bfs-tile-big) .bfs-tile-h { font-size: 18px; }
  .bfs-latest .bfs-tile-big { margin-bottom: 18px; }
}
.bfs-section-more { margin: 18px 0 0; font-family: var(--f-label); font-size: 15px; }
.bfs-section-more a { font-weight: 600; color: var(--accent); }
.bfs-section h2 a { text-decoration: none; }
.bfs-topic { padding-top: 40px; }
.bfs-topic h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(38px, 4.6vw, 58px); margin: 0 0 8px; }
.bfs-topic .bfs-lede { font-size: 21px; color: var(--ink-2); margin: 0 0 30px; }

/* ── collection sheet page: the infographic leads ─────────────────────── */
.bfs-c-hero { padding-top: 40px; text-align: center; }
.bfs-c-hero .bfs-kicker a { text-decoration: none; }
.bfs-c-hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -.012em; margin: 0 auto 16px; max-width: 20em; text-wrap: balance; font-variation-settings: 'opsz' 72; }
.bfs-c-deck { font-size: 21px; color: var(--ink-2); max-width: 36em; margin: 0 auto 20px; text-wrap: pretty; }
.bfs-c-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 34px; }
.bfs-poster { margin: 0 auto; max-width: 1180px; padding: 0 24px; box-sizing: border-box; }
.bfs-poster img { display: block; width: 100%; height: auto; box-shadow: 0 2px 0 var(--rule), 0 24px 60px rgba(22,20,18,.22); }
.bfs-c-text { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 48px; margin-top: 48px; }
.bfs-c-text h2 { font-family: var(--f-display); font-weight: 600; font-size: 26px; margin: 0 0 8px; }
.bfs-c-text p { margin: 0; color: var(--ink-2); font-size: 18px; }
.bfs-c-sources { grid-column: 1 / -1; border-top: 1px solid var(--ink); padding-top: 14px; }
.bfs-c-sources ol { font-family: var(--f-label); font-size: 15px; color: var(--ink-2); columns: 2; column-gap: 40px; padding-left: 20px; margin: 6px 0 0; }
.bfs-c-sources li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 860px) { .bfs-c-text { grid-template-columns: 1fr; } .bfs-c-sources ol { columns: 1; } .bfs-poster { padding: 0 8px; } }

/* press section with three downloads */
.bfs-downloads:has(.bfs-dl-full) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); }
.bfs-dl-full .bfs-thumb img { max-height: 420px; width: auto; max-width: 100%; margin: 0 auto; }
@media (max-width: 860px) { .bfs-downloads:has(.bfs-dl-full) { grid-template-columns: 1fr; } }
.bfs-downloads:has(.bfs-dl-sq + .bfs-dl-sq) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .bfs-downloads:has(.bfs-dl-sq + .bfs-dl-sq) { grid-template-columns: 1fr; } }

/* ── 2026-11-06: brand colours, legible hero, sort + search tools ─────────────────────── */
/* The original Berlinfographics pair: ink black and yellow (studio/brand/brand.css, classic). */
:root { --bf-ink: #19191A; --bf-yellow: #FDE12D; }

/* Hero: an even dim over the whole photo plus a deeper gradient behind the text, so white
   type reads on any photograph (bright skies included). */
.bfs-hero-shade { background:
  linear-gradient(90deg, rgba(10,9,8,.62) 0%, rgba(10,9,8,.38) 55%, rgba(10,9,8,.18) 100%),
  linear-gradient(180deg, rgba(10,9,8,.25) 0%, rgba(10,9,8,.45) 45%, rgba(10,9,8,.88) 100%); }
.bfs-hero h1, .bfs-hero-sum { text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 18px rgba(0,0,0,.35); }
.bfs-hero-sum { color: #F5F1E8; }

/* Topic labels: yellow plate, ink type; the years follow in plain type. */
.bfs-tag { display: inline-block; background: var(--bf-yellow); color: var(--bf-ink) !important; font-weight: 700;
  padding: 3px 7px 2px; line-height: 1.25; text-decoration: none; }
.bfs-tile-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-2); }
.bfs-tile-years { font-family: var(--f-label); letter-spacing: .1em; font-weight: 600; }
.bfs-hero-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bfs-hero-kick .bfs-tag { color: var(--bf-ink) !important; }
.bfs-hero-kick .bfs-tile-years { color: #F5F1E8; }
.bfs-kicker { color: var(--ink); } .bfs-topic .bfs-kicker { display: inline-block; background: var(--bf-yellow); color: var(--bf-ink); padding: 3px 8px 2px; }

/* Section titles: ink plate with yellow type (inverted in dark mode). */
.bfs-section { border-top: 3px solid var(--bf-ink); }
.bfs-section h2 a { display: inline-block; background: var(--bf-ink); color: var(--bf-yellow); padding: 4px 14px 6px; }
.bfs-section h2 a:hover { background: var(--bf-yellow); color: var(--bf-ink); }
.bfs-section-blurb { margin: -8px 0 20px; font-family: var(--f-label); font-size: 15px; color: var(--mute); }
.bfs-section-more a { display: inline-block; text-decoration: none; background: var(--bf-ink); color: var(--bf-yellow) !important; padding: 9px 16px; font-weight: 600; }
.bfs-section-more a:hover { background: var(--bf-yellow); color: var(--bf-ink) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bfs-section { border-top-color: var(--bf-yellow); }
  :root:not([data-theme="light"]) .bfs-section h2 a, :root:not([data-theme="light"]) .bfs-section-more a { background: var(--bf-yellow); color: var(--bf-ink) !important; } }
:root[data-theme="dark"] .bfs-section { border-top-color: var(--bf-yellow); }
:root[data-theme="dark"] .bfs-section h2 a, :root[data-theme="dark"] .bfs-section-more a { background: var(--bf-yellow); color: var(--bf-ink) !important; }

/* Front page: first N tiles per topic; .is-open shows the rest. Sorting reorders the DOM,
   so the first N are always the first N of the chosen order. */
.bfs-tiles.is-capped:not(.is-open) > .bfs-tile:nth-child(n + 9) { display: none; } /* 9 = HOME_PER_TOPIC + 1 in build.mjs */

/* Tools row: search + sort */
.bfs-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bfs-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 30px 0 4px; }
.bfs-sort { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-label); font-size: 14px; color: var(--ink-2); }
.bfs-sort select { font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--ink); padding: 6px 30px 6px 10px; border-radius: 0;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.bfs-sort select:focus-visible, .bfs-search input:focus-visible { outline: 3px solid var(--bf-yellow); outline-offset: 1px; }
.bfs-section-h .bfs-sort { align-self: center; }
.bfs-search { position: relative; flex: 1 1 340px; max-width: 560px; }
.bfs-search input { width: 100%; box-sizing: border-box; font: inherit; font-family: var(--f-label); font-size: 16px; color: var(--ink); background: var(--bg);
  border: 2px solid var(--ink); border-radius: 0; padding: 10px 14px 10px 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23777' stroke-width='2'%3E%3Ccircle cx='7.5' cy='7.5' r='5.5'/%3E%3Cpath d='M12 12l5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 13px center; }
.bfs-search ul { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none; background: var(--bg);
  border: 2px solid var(--ink); border-top: 0; max-height: min(70vh, 520px); overflow-y: auto; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.bfs-search li a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px; text-decoration: none; color: var(--ink); }
.bfs-search li img { width: 52px; height: 52px; object-fit: cover; object-position: center 30%; display: block; background: var(--bg-2); }
.bfs-search li b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.bfs-search li small { display: block; font-family: var(--f-label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.bfs-search li mark { background: var(--bf-yellow); color: var(--bf-ink); }
.bfs-search li[aria-selected="true"] a, .bfs-search li a:hover { background: var(--bg-2); box-shadow: inset 4px 0 0 var(--bf-yellow); }
.bfs-search li.bfs-none { padding: 12px 14px; font-family: var(--f-label); font-size: 15px; color: var(--ink-2); }
@media (max-width: 560px) { .bfs-tools { margin-top: 22px; } .bfs-search { flex-basis: 100%; } .bfs-section-h .bfs-sort span { display: none; } }
@media (max-width: 560px) {
  .bfs-section-h { flex-wrap: nowrap; align-items: center; gap: 12px; margin-bottom: 14px; }
  .bfs-section-h h2 { flex: 1 1 auto; min-width: 0; font-size: 24px; }
  .bfs-section-h h2 a { padding: 3px 10px 5px; }
  .bfs-section-h .bfs-sort { flex: none; }
  .bfs-section-h .bfs-sort select { font-size: 14px; padding: 5px 26px 5px 8px; }
  .bfs-section-blurb { margin-top: 0; }
}
/* Phones: inside a topic's own section the topic plate repeats on every row; keep just the years. */
@media (max-width: 560px) { .bfs-section .bfs-tile .bfs-tag, .bfs-topic .bfs-tile .bfs-tag { display: none; } }
