/* ==========================================================================
   BC 2026 — main stylesheet
   Source of truth: Output/bc-redesign/design-export/.../designs/*.dc.html
   Tokens: README.md "Design tokens". Two designed breakpoints: 390 / 1240.
   One implementation breakpoint: 900px (README "Responsive").
   ========================================================================== */

/* ---- Fonts (self-hosted variable, latin + latin-ext, swap) --------------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/newsreader-latin.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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/figtree-latin.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;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --ink: #2B2320;
  --brown: #443B37;
  --terra: #C0552B;
  --terra-dark: #8F3D1E;
  --slate: #7593AC;
  --sand: #E3B7A2;
  --cream: #FBF8F3;
  --cream-2: #F2ECE3;
  --cream-3: #F4EFE7;
  --placeholder: #E4DCD1;
  --body: #3A322E;
  --body-muted: #5A4F49;
  --meta: #8B7C74;
  --avatar: #DED4C6;
  --hairline: rgba(43, 35, 32, .14);
  --border: rgba(43, 35, 32, .16);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: 56px;          /* section horizontal padding, desktop */
  --sect-gap: 46px;       /* vertical rhythm between sections, desktop */
  --grid-gap: 30px;       /* card grids */
  --content-gap: 56px;    /* content/sidebar */
  --hub-gap: 22px;        /* hub cards */
  --r-sm: 3px;            /* cards, buttons, tables */
  --r-md: 4px;            /* hero band, featured images */
}
@media (max-width: 900px) {
  :root {
    --pad-x: 16px;
    --sect-gap: 26px;
    --grid-gap: 20px;
  }
}

/* ---- Reset / base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--terra); text-decoration: none; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
a:hover { color: var(--terra-dark); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
body.bc-locked { overflow: hidden; }

h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 500; color: var(--ink); }

/* Screen-reader only */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Layout container: 1240 max INCLUDING side padding */
.bc-wrap { max-width: 1240px; margin-inline: auto; }
.bc-pad { padding-inline: var(--pad-x); }

/* ==========================================================================
   Header — Components.dc.html 5a / 5b
   ========================================================================== */
.bc-header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid rgba(43, 35, 32, .12);
  z-index: 50;
}
.bc-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px var(--pad-x);
  max-width: 1240px;
  margin-inline: auto;
}
.bc-header__logo img { display: block; width: 65px; height: 65px; }

.bc-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.bc-nav a { font: 600 14.5px/1 var(--sans); color: var(--ink); }
.bc-nav a:hover, .bc-nav a[aria-current="page"] { color: var(--terra); }

/* Desktop header search + dropdown (anchored; nothing below shifts) */
.bc-hsearch { position: relative; width: 300px; }
.bc-hsearch__field {
  display: flex;
  align-items: center;
  border: 1px solid rgba(43, 35, 32, .3);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--cream);
}
.bc-hsearch__icon { padding-left: 11px; font: 400 15px/1 var(--sans); color: var(--meta); }
.bc-hsearch__field input {
  border: 0; outline: 0; background: transparent;
  padding: 10px; flex: 1; min-width: 0;
  font: 400 13.5px/1 var(--sans); color: var(--ink);
}
.bc-hsearch__field button {
  border: 0; background: var(--ink); color: #fff;
  padding: 10px 14px; cursor: pointer;
  font: 600 13px/1 var(--sans);
}
.bc-hsearch__field button:hover { background: var(--terra); }

.bc-ac {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 400px;
  background: #fff;
  border: 1px solid rgba(43, 35, 32, .2);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 28px rgba(43, 35, 32, .16);
  overflow: hidden;
  display: none;
}
.bc-ac.is-open { display: block; }
.bc-ac__head {
  padding: 11px 16px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--hairline);
  font: 600 9.5px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--meta);
}
.bc-ac__item {
  display: flex; gap: 12px; align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(43, 35, 32, .1);
}
.bc-ac__item.is-active, .bc-ac__item:hover { background: var(--cream); }
.bc-ac__thumb {
  width: 52px; height: 36px; flex: none;
  border-radius: 2px;
  background: var(--placeholder);
  border: 1px solid rgba(43, 35, 32, .13);
  object-fit: cover;
}
.bc-ac__title { display: block; font: 500 14.5px/1.3 var(--serif); color: var(--ink); }
.bc-ac__cat { display: block; margin-top: 2px; font: 600 9px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.bc-ac__all {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  background: var(--cream-2);
  font: 600 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase;
  color: var(--terra);
}
.bc-ac__pop {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(43, 35, 32, .1);
  font: 400 14.5px/1.3 var(--sans); color: var(--ink);
}
.bc-ac__pop .bc-glyph { color: var(--meta); }

/* Mobile header buttons */
.bc-header__mbtns { display: none; gap: 8px; }
.bc-header__mbtns button {
  width: 44px; height: 44px;
  border: 1px solid rgba(43, 35, 32, .2);
  border-radius: var(--r-sm);
  cursor: pointer;
  font: 400 18px/1 var(--sans);
}
.bc-btn-search { background: var(--cream); color: var(--ink); }
.bc-btn-menu { background: var(--ink); color: #fff; font-size: 15px; }
body.bc-search-open .bc-btn-search { background: var(--ink); color: #fff; }
body.bc-menu-open .bc-btn-menu { background: var(--terra); }

@media (max-width: 900px) {
  .bc-header__in { padding: 11px 16px; gap: 12px; }
  .bc-header__logo img { width: 38px; height: 38px; }
  .bc-nav, .bc-hsearch { display: none; }
  .bc-header__mbtns { display: flex; }
}

/* ==========================================================================
   Mobile overlays — Components.dc.html 5b
   ========================================================================== */
.bc-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
}
body.bc-search-open .bc-overlay--search { display: flex; background: var(--cream); }
body.bc-menu-open .bc-overlay--menu { display: flex; background: var(--ink); }

/* Search overlay */
.bc-soverlay__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
}
.bc-soverlay__field {
  display: flex; align-items: center;
  flex: 1; min-width: 0;
  border: 1px solid rgba(43, 35, 32, .3);
  border-radius: var(--r-sm);
  background: var(--cream);
}
.bc-soverlay__field .bc-glyph { padding-left: 11px; font: 400 16px/1 var(--sans); color: var(--meta); }
.bc-soverlay__field input {
  border: 0; outline: 0; background: transparent;
  padding: 13px 10px; flex: 1; min-width: 0;
  font: 400 15px/1 var(--sans); color: var(--ink);
}
.bc-soverlay__cancel {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent;
  padding: 12px 2px; min-height: 44px;
  font: 600 14px/1 var(--sans); color: var(--terra);
  cursor: pointer;
}
.bc-soverlay__body { flex: 1; overflow-y: auto; }
.bc-soverlay__body .bc-ac__item { min-height: 60px; border-bottom: 1px solid rgba(43, 35, 32, .12); }
.bc-soverlay__body .bc-ac__thumb { width: 58px; height: 39px; }
.bc-soverlay__body .bc-ac__title { font-size: 15.5px; }
.bc-soverlay__body .bc-ac__all { min-height: 52px; padding: 14px 16px; font-size: 12.5px; }
.bc-soverlay__body .bc-ac__pop { min-height: 52px; padding: 13px 16px; font-size: 15.5px; gap: 11px; }
.bc-soverlay__label {
  padding: 18px 16px 10px;
  font: 600 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--meta);
}
.bc-soverlay__hubs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 20px; }
.bc-soverlay__hubs a {
  display: flex; align-items: center;
  min-height: 44px; padding: 11px 15px;
  background: var(--cream-2);
  border: 1px solid rgba(43, 35, 32, .18);
  border-radius: 2px;
  font: 500 14px/1 var(--sans); color: var(--ink);
}

/* Menu overlay */
.bc-moverlay__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.bc-moverlay__bar img { display: block; width: 38px; height: 38px; opacity: .92; }
.bc-moverlay__close {
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-sm);
  background: transparent; color: #fff;
  font: 400 17px/1 var(--sans);
  cursor: pointer;
}
.bc-moverlay__body { flex: 1; overflow-y: auto; padding: 8px 16px 24px; }
.bc-moverlay__item {
  display: flex; flex-direction: column; gap: 3px; justify-content: center;
  min-height: 68px; padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.bc-moverlay__item .t { font: 500 26px/1.1 var(--serif); color: #fff; }
.bc-moverlay__item .d { font: 400 13.5px/1.4 var(--sans); color: rgba(255, 255, 255, .6); }
.bc-moverlay__label {
  margin-top: 22px;
  font: 600 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sand);
}
.bc-moverlay__pop {
  display: flex; align-items: center;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font: 400 15px/1.3 var(--sans); color: rgba(255, 255, 255, .86);
}
.bc-moverlay__utils { display: flex; gap: 24px; margin-top: 24px; }
.bc-moverlay__utils a { font: 500 14px/1 var(--sans); color: rgba(255, 255, 255, .7); }

/* ==========================================================================
   Footer — Homepage.dc.html
   ========================================================================== */
.bc-footer { background: var(--ink); }
.bc-footer__in {
  max-width: 1240px; margin-inline: auto;
  padding: 32px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.bc-footer__brand { display: flex; align-items: center; gap: 20px; }
.bc-footer__brand img { display: block; width: 55px; height: 55px; flex: none; opacity: .92; }
.bc-footer__brand p { margin: 0; max-width: 480px; font: 400 13.5px/1.55 var(--sans); color: rgba(255, 255, 255, .66); }
.bc-footer__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.bc-footer__nav a { font: 500 13.5px/1 var(--sans); color: #fff; }
.bc-footer__nav a:hover { color: var(--sand); }

/* ==========================================================================
   Shared primitives
   ========================================================================== */

/* Section H2 with 2px rule — README type table */
.bc-h2row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.bc-h2row h2, h2.bc-h2 { margin: 0; font: 500 26px/1 var(--serif); color: var(--ink); }
.bc-h2row .bc-h2row__aside { font: 400 14px/1 var(--sans); color: var(--meta); }
.bc-h2row .bc-h2row__link, .bc-morelink {
  font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--terra);
}
@media (max-width: 900px) {
  .bc-h2row h2, h2.bc-h2 { font-size: 22px; }
  .bc-h2row { padding-bottom: 10px; }
}

/* Eyebrow label */
.bc-eyebrow {
  font: 600 10px/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--meta);
}

/* Category eyebrow on cards */
.bc-cat {
  font: 600 9.5px/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Buttons */
.bc-btn {
  /* inline-flex, not inline-block: the mobile tap-target `min-height: 44px` adds
     slack that inline-block puts entirely BELOW the text (measured 8px above /
     22px below), so the label sat visibly high. Centring makes min-height safe. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font: 600 12.5px/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.bc-btn:hover { background: var(--terra); color: #fff; }
.bc-btn--terra { background: var(--terra); }
.bc-btn--terra:hover { background: var(--terra-dark); }
@media (max-width: 900px) { .bc-btn { font-size: 13px; min-height: 44px; } }

/* Author avatar circle (initials fallback) */
.bc-avatar {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  background: var(--avatar);
  border: 1px solid rgba(43, 35, 32, .18);
  display: flex; align-items: center; justify-content: center;
  font: 500 16px/1 var(--serif); color: #6A5D56;
  overflow: hidden;
}
.bc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bc-avatar--sm { width: 18px; height: 18px; font-size: 8px; font-family: var(--sans); }

/* Pagination — 40px desktop / 44px mobile squares */
.bc-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.bc-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  font: 600 13.5px/1 var(--sans); color: var(--ink);
}
.bc-pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.bc-pagination .page-numbers.dots { border: 0; background: transparent; color: var(--meta); }
.bc-pagination .page-numbers:hover:not(.current):not(.dots) { border-color: var(--terra); color: var(--terra); }
@media (max-width: 900px) {
  .bc-pagination .page-numbers { min-width: 44px; height: 44px; }
}

/* ==========================================================================
   Content compatibility — the existing 138-post Gutenberg library.
   Covers: core blocks + the Twentig style classes baked into post_content
   (is-style-tw-arrow / -border / -checkmark / -rounded-corners, is-style-dots).
   After verification the Twentig plugin can be deactivated: these rules stand alone.
   ========================================================================== */

.bc-entry { max-width: 772px; }
.bc-entry > * { margin-top: 0; margin-bottom: 1.35em; }

.bc-entry p, .bc-entry li { font: 400 16px/1.7 var(--sans); color: var(--body); }
.bc-entry h2 {
  margin: 1.9em 0 .7em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font: 500 30px/1.15 var(--serif);
  letter-spacing: -.01em;
}
.bc-entry h3 { margin: 1.6em 0 .55em; font: 600 19px/1.3 var(--serif); }
.bc-entry h3 a { color: var(--ink); text-decoration-color: rgba(192,85,43,.4); }
.bc-entry h3 a:hover { color: var(--terra-dark); }
.bc-entry h4 { margin: 1.4em 0 .5em; font: 600 15px/1.35 var(--sans); color: var(--ink); }
.bc-entry a { text-decoration: underline; text-decoration-color: rgba(192, 85, 43, .35); text-underline-offset: 2px; }
.bc-entry a:hover { text-decoration-color: currentColor; }
.bc-entry strong { color: var(--ink); }
@media (max-width: 900px) {
  .bc-entry p, .bc-entry li { font-size: 15.5px; }
  .bc-entry h2 { font-size: 25px; padding-bottom: 10px; }
  .bc-entry h3 { font-size: 16.5px; }
}

/* Images */
.bc-entry figure.wp-block-image { margin: 1.6em 0; }
.bc-entry figure.wp-block-image img { border-radius: var(--r-md); }
.bc-entry figcaption, .bc-entry .wp-element-caption {
  margin-top: 10px;
  font: 400 12.5px/1.5 var(--sans);
  color: var(--meta);
}
.is-style-tw-rounded-corners img { border-radius: var(--r-md) !important; }
.is-style-tw-border img {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
}

/* Lists — Twentig styles recreated on tokens */
ul.is-style-tw-arrow, ul.is-style-tw-checkmark { list-style: none; padding-left: 0; }
ul.is-style-tw-arrow li, ul.is-style-tw-checkmark li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
}
ul.is-style-tw-arrow li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--terra);
  font-weight: 600;
}
ul.is-style-tw-checkmark li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--terra);
  font-weight: 700;
}
ul.is-style-tw-border {
  list-style: none; padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
}
ul.is-style-tw-border li {
  padding: 12px 16px;
  margin: 0;
  border-bottom: 1px solid var(--hairline);
}
ul.is-style-tw-border li:last-child { border-bottom: 0; }

/* Separator — dots style used across all posts */
.bc-entry hr.wp-block-separator, hr.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.2em auto;
}

/* Tables — README "Tables" spec. Markup unchanged; restyled only.
   NOTE: until the P3 content pass strips the legacy inline th styles
   (#473c38), those inline declarations win on 121 posts — visually near-identical. */
.bc-entry figure.wp-block-table {
  margin: 1.6em 0;
  border: 0;                /* border lives on the TABLE so the figcaption sits OUTSIDE the box */
  overflow: visible;
}
.bc-entry figure.wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin: 0;
}
/* round the corner cells (radius on the table clips nothing with separate borders) */
.bc-entry .wp-block-table thead th:first-child { border-top-left-radius: var(--r-sm); }
.bc-entry .wp-block-table thead th:last-child { border-top-right-radius: var(--r-sm); }
.bc-entry .wp-block-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--r-sm); }
.bc-entry .wp-block-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--r-sm); }
.bc-entry figure.wp-block-table table.has-fixed-layout { table-layout: fixed; }
.bc-entry .wp-block-table th {
  background: var(--brown);
  color: #fff;
  font: 600 10.5px/1.35 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  padding: 11px 14px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.bc-entry .wp-block-table th:last-child { border-right: 0; }
.bc-entry .wp-block-table th strong,
.bc-entry .wp-block-table th b { color: inherit; } /* header cells are often <strong>-wrapped; keep them white on the brown header */
.bc-entry .wp-block-table td {
  padding: 12px 14px;
  font: 400 14px/1.45 var(--sans);
  vertical-align: top;
  border: 0;
  border-top: 1px solid rgba(43, 35, 32, .12);
  border-right: 1px solid rgba(43, 35, 32, .10);
}
.bc-entry .wp-block-table td:last-child { border-right: 0; }
.bc-entry .wp-block-table tbody tr:nth-child(odd) td { background: var(--cream); }
.bc-entry .wp-block-table tbody tr:nth-child(even) td { background: var(--cream-3); }
.bc-entry .wp-block-table td:first-child { font: 500 14px/1.45 var(--serif); color: var(--ink); }
.bc-entry figure.wp-block-table figcaption {
  padding: 0;
  margin: 10px 0 0;
  font: 400 12.5px/1.5 var(--sans);
  color: var(--meta);
}
@media (max-width: 900px) {
  /* Scroll the TABLE, not the figure — the caption must stay put (README:
     never restructure into cards). display:block table + overflow-x is the
     standard pattern; min-width on cells forces the scrollable width. */
  .bc-entry figure.wp-block-table table { display: block; overflow-x: auto; }
  .bc-entry .wp-block-table th, .bc-entry .wp-block-table td { min-width: 120px; }
  .bc-entry .wp-block-table td { font-size: 13.5px; }
}

/* Buttons in content (CHECK PRICE etc). Inline legacy bg (#473c38) wins until
   the P3 strip pass; this is the token style that takes over. */
.bc-entry .wp-block-button__link {
  border-radius: var(--r-sm);
  background: var(--terra);
  color: #fff;
  font: 600 13px/1.2 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
}
.bc-entry .wp-block-button__link:hover { background: var(--terra-dark); color: #fff; }
.bc-entry .wp-block-button__link strong,
.bc-entry .wp-block-button__link b { color: inherit; } /* labels are often <strong>-wrapped; don't let the entry strong rule darken them */

/* Columns (product blocks use core columns) */
@media (max-width: 900px) {
  .bc-entry .wp-block-columns { flex-wrap: wrap !important; gap: 1.2em; }
  .bc-entry .wp-block-column { flex-basis: 100% !important; }
}

/* Legacy LuckyWP TOC leftovers render empty once the plugin is off; if any
   residue renders, hide it — the theme provides its own TOC. */
.bc-entry .lwptoc { display: none; }

/* ==========================================================================
   Baseline page/single shells (P0 — refined in P1/P3)
   ========================================================================== */
.bc-main { padding-top: 34px; padding-bottom: var(--sect-gap); }
.bc-breadcrumb {
  margin: 0 0 14px;
  font: 400 12.5px/1.4 var(--sans);
  color: var(--meta);
}
.bc-breadcrumb a { color: var(--meta); }
.bc-breadcrumb a:hover { color: var(--terra); }
.bc-title { margin: 0 0 14px; font: 500 42px/1.1 var(--serif); letter-spacing: -.015em; }
@media (max-width: 900px) { .bc-title { font-size: 30px; } }

.bc-featured { margin: 22px 0; }
.bc-featured img {
  display: block; width: 100%;
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-md);
}

/* Byline strip */
.bc-byline {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font: 400 13px/1.3 var(--sans); color: var(--meta);
}
.bc-byline b { font-weight: 600; color: var(--ink); }

/* ==========================================================================
   Homepage — Homepage.dc.html 1a / 1b
   ========================================================================== */

/* Hero. Mobile: hub grid renders ABOVE the H1 (flex order swap). */
.bc-home-top { display: flex; flex-direction: column; }
.bc-hero {
  order: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding: 38px var(--pad-x) 30px;
  border-bottom: 1px solid rgba(43, 35, 32, .12);
}
.bc-hero__lede { max-width: 720px; }
.bc-hero h1 {
  margin: 0 0 12px;
  font: 500 44px/1.08 var(--serif);
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.bc-hero__p { margin: 0; font: 400 17px/1.5 var(--sans); color: var(--body-muted); max-width: 610px; text-wrap: pretty; }
.bc-hero__note { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.bc-hero__note .bc-eyebrow { letter-spacing: .14em; }
.bc-hero__note strong { font: 500 15px/1.35 var(--serif); color: var(--ink); }
.bc-hero__search { display: none; }

.bc-hubs { order: 2; padding: 34px var(--pad-x) 40px; }
.bc-hubs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hub-gap); }
.bc-hubcard {
  display: flex; flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.bc-hubcard:hover { filter: brightness(1.06); }
.bc-hubcard img { display: block; width: 100%; height: 168px; object-fit: cover; }
.bc-hubcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.bc-hubcard__title { font: 500 26px/1.05 var(--serif); color: #fff; }
.bc-hubcard__desc { font: 400 14.5px/1.5 var(--sans); color: rgba(255, 255, 255, .82); flex: 1; }
.bc-hubcard__cta { font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.bc-hubcard--beans { background: var(--brown); }
.bc-hubcard--beans .bc-hubcard__cta { color: var(--sand); }
.bc-hubcard--drinks { background: var(--slate); }
.bc-hubcard--drinks .bc-hubcard__cta { color: var(--cream); }
.bc-hubcard--gear { background: var(--terra); }
.bc-hubcard--gear .bc-hubcard__cta { color: #FBE3D6; }

@media (max-width: 900px) {
  .bc-hubs { order: 1; padding: 16px 16px 0; }
  .bc-hero { order: 2; display: block; padding: 20px 16px 22px; border-bottom: 0; }
  .bc-hero h1 { font-size: 29px; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 8px; }
  .bc-hero__p { font-size: 15px; margin-bottom: 14px; }
  .bc-hero__note { display: none; }
  .bc-hero__search { display: block; }
  .bc-hero__search .bc-hsearch__field { background: #fff; border-color: rgba(43, 35, 32, .22); }
  .bc-hero__search input { padding: 13px 12px; font-size: 15px; }
  .bc-hero__search button { padding: 0 18px; min-height: 44px; font-size: 14px; }

  .bc-hubs__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bc-hubcard img { height: 84px; }
  .bc-hubcard__body { padding: 11px 12px 14px; gap: 5px; }
  .bc-hubcard__title { font-size: 19px; }
  .bc-hubcard__desc { font-size: 12.5px; }
  .bc-hubcard__cta { display: none; }
  /* Gear card: full width row, image left 132px */
  .bc-hubcard--gear { grid-column: 1 / -1; flex-direction: row; min-height: 44px; }
  .bc-hubcard--gear img { width: 132px; height: auto; flex: none; }
  .bc-hubcard--gear .bc-hubcard__body { padding: 13px 14px; justify-content: center; }
}

/* "New to this?" band */
.bc-start { padding: 30px var(--pad-x) 34px; background: var(--cream-2); border-top: 1px solid rgba(43,35,32,.12); border-bottom: 1px solid rgba(43,35,32,.12); }
.bc-start__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.bc-start__head h2 { margin: 0; font: 500 24px/1 var(--serif); }
.bc-start__head span { font: 400 14px/1 var(--sans); color: var(--meta); }
.bc-start__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bc-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.bc-step:hover { border-color: var(--terra); }
.bc-step__n { font: 500 26px/1 var(--serif); color: var(--terra); min-width: 22px; }
.bc-step__t { display: block; font: 500 17px/1.25 var(--serif); color: var(--ink); }
.bc-step__d { display: block; margin-top: 5px; font: 400 13px/1.45 var(--sans); color: #6A5D56; }
@media (max-width: 900px) {
  .bc-start { padding: 20px 16px 22px; }
  .bc-start__head { margin-bottom: 12px; }
  .bc-start__head h2 { font-size: 21px; }
  .bc-start__head span { display: none; }
  .bc-start__grid { display: flex; flex-direction: column; gap: 9px; }
  .bc-step { align-items: center; min-height: 56px; padding: 12px 14px; }
  .bc-step__n { font-size: 22px; min-width: 16px; }
  .bc-step__t { font-size: 16px; }
  .bc-step__d { font-size: 12.5px; margin-top: 2px; }
}

/* Latest Coffee Articles */
.bc-latest { padding: 38px var(--pad-x) 34px; }
.bc-latest__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px var(--grid-gap); margin-top: 24px; }
.bc-postcard { display: flex; flex-direction: column; gap: 10px; }
.bc-postcard__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bc-postcard__img {
  display: block; width: 100%;
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid rgba(43, 35, 32, .13);
  background: var(--placeholder);
}
.bc-postcard__title { font: 500 18px/1.26 var(--serif); color: var(--ink); text-wrap: pretty; }
.bc-postcard:hover .bc-postcard__title { color: var(--terra-dark); }
.bc-postcard .bc-byline { font-size: 12px; gap: 7px; }
.bc-latest__more { display: none; }
@media (min-width: 641px) and (max-width: 900px) { .bc-latest__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .bc-latest { padding: 24px 16px 20px; }
}
@media (max-width: 640px) {
  .bc-latest__grid { display: block; margin-top: 0; }
  .bc-postcard {
    flex-direction: row; gap: 13px; align-items: flex-start;
    padding: 14px 0; min-height: 44px;
    border-bottom: 1px solid var(--hairline);
  }
  .bc-postcard__img { width: 102px; height: 68px; flex: none; aspect-ratio: auto; }
  .bc-postcard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .bc-postcard__title { font-size: 16.5px; line-height: 1.25; }
  .bc-postcard .bc-byline { font-size: 11.5px; }
  .bc-postcard .bc-avatar--sm { display: none; }
  .bc-latest .bc-h2row .bc-h2row__link { display: none; }
  .bc-latest__more { display: inline-block; margin-top: 14px; }
}

/* Keep Exploring — two colour panels */
.bc-explore { padding: 14px var(--pad-x) 40px; }
.bc-explore__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; margin-top: 26px; }
.bc-panel { border-radius: var(--r-md); padding: 26px 28px 28px; display: flex; flex-direction: column; }
.bc-panel--slate { background: var(--slate); }
.bc-panel--brown { background: var(--brown); }
.bc-panel__eyebrow { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.bc-panel--slate .bc-panel__eyebrow { color: #EAF0F5; }
.bc-panel--brown .bc-panel__eyebrow { color: var(--sand); }
.bc-panel h2 { margin: 0 0 6px; font: 500 25px/1.1 var(--serif); color: #fff; }
.bc-panel__p { margin: 0 0 18px; font: 400 13.5px/1.5 var(--sans); color: rgba(255, 255, 255, .8); }
.bc-panel__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 22px; }
.bc-panel__list a {
  display: flex; align-items: center;
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, .26);
  font: 500 15px/1.25 var(--serif);
  color: #fff;
}
.bc-panel__list a:hover { color: var(--sand); }
.bc-panel--slate .bc-panel__list a:hover { color: #EAF0F5; text-decoration: underline; }
.bc-panel .bc-btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) {
  .bc-explore { padding: 6px 0 24px; }
  .bc-explore .bc-h2row { margin: 0 16px; }
  .bc-explore .bc-h2row__aside { display: none; }
  .bc-explore__grid { display: block; margin-top: 18px; }
  .bc-panel { margin: 0 16px 20px; padding: 20px 18px 22px; }
  .bc-panel h2 { font-size: 22px; margin-bottom: 14px; }
  .bc-panel__p { display: none; }
  .bc-panel__list { display: block; margin-bottom: 0; }
  .bc-panel__list a { min-height: 50px; font-size: 15px; }
  .bc-panel .bc-btn { display: block; width: 100%; margin-top: 16px; padding: 15px 20px; text-align: center; }
}

/* Who writes this */
.bc-team { padding: 32px var(--pad-x) 36px; background: var(--cream-2); border-top: 1px solid rgba(43,35,32,.12); }
.bc-team__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.bc-team__head h2 { margin: 0; font: 500 24px/1 var(--serif); }
.bc-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bc-author { display: flex; gap: 14px; align-items: flex-start; }
.bc-author__n { font: 500 16px/1.2 var(--serif); color: var(--ink); }
.bc-author__r { display: block; margin-top: 3px; font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--meta); }
.bc-author__b { display: block; margin-top: 3px; font: 400 13px/1.45 var(--sans); color: var(--body-muted); }
@media (max-width: 900px) {
  .bc-team { padding: 22px 16px; }
  .bc-team__head h2 { font-size: 21px; }
  .bc-team__grid { display: flex; flex-direction: column; gap: 14px; }
  .bc-author .bc-avatar { width: 42px; height: 42px; font-size: 15px; }
}

/* FAQ block (homepage + hubs share this) */
.bc-faq { padding: 36px var(--pad-x) 40px; border-top: 1px solid rgba(43,35,32,.12); }
.bc-faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.bc-faq__item { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.bc-faq__item h3 { margin: 0 0 5px; font: 500 17px/1.3 var(--serif); }
.bc-faq__item p { margin: 0; font: 400 13.5px/1.5 var(--sans); color: var(--body-muted); text-wrap: pretty; }
@media (max-width: 900px) {
  .bc-faq { padding: 22px 16px 24px; }
  .bc-faq__grid { display: block; }
  .bc-faq__item { padding: 14px 0; }
  .bc-faq__item h3 { font-size: 16.5px; }
  .bc-faq__item p { font-size: 13px; }
}

/* Mobile footer stacks */
@media (max-width: 900px) {
  /* Logo and the footer links share the top row; the description sits under both.
     `display: contents` lifts the brand's img + p out of their wrapper so all three
     can be placed as grid items without changing footer.php. */
  .bc-footer__in {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo nav" "desc desc";
    align-items: center;
    gap: 16px 18px;
    padding: 24px 16px 28px;
  }
  .bc-footer__brand { display: contents; }
  .bc-footer__brand img { grid-area: logo; width: 44px; height: 44px; margin-bottom: 0; }
  .bc-footer__brand p { grid-area: desc; margin-bottom: 0; }
  .bc-footer__nav { grid-area: nav; gap: 10px 20px; justify-content: flex-start; }
  .bc-footer__nav a { font-size: 14px; }
}

/* ==========================================================================
   Hub template — Hub - *.dc.html 2a / 2b
   ========================================================================== */
.bc-hubhero { position: relative; }
.bc-hubhero img { display: block; width: 100%; height: 330px; object-fit: cover; }
.bc-hubhero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(43,35,32,.93) 0%, rgba(43,35,32,.8) 40%, rgba(43,35,32,.24) 100%);
}
.bc-hubhero__in {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  left: 50%; transform: translateX(-50%); width: 100%;
}
.bc-hubhero__crumb { display: flex; align-items: center; gap: 8px; font: 400 12.5px/1 var(--sans); color: rgba(255,255,255,.66); margin-bottom: 16px; }
.bc-hubhero__crumb a { color: rgba(255,255,255,.66); }
.bc-hubhero__crumb a:hover { color: #fff; }
.bc-hubhero__crumb .cur { color: #fff; }
.bc-hubhero h1 { margin: 0 0 14px; font: 500 50px/1.04 var(--serif); letter-spacing: -.02em; color: #fff; }
.bc-hubhero p { margin: 0; font: 400 17px/1.55 var(--sans); color: rgba(255,255,255,.84); max-width: 620px; text-wrap: pretty; }

.bc-hub__intro2 { border-bottom: 1px solid rgba(43,35,32,.12); }
.bc-hub__intro2 p { margin: 0; padding: 26px 0 30px; font: 400 16px/1.65 var(--sans); color: var(--body); max-width: 820px; text-wrap: pretty; }

.bc-hub__cols {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: var(--content-gap);
  padding-top: 34px;
  padding-bottom: 12px;
  align-items: start;
}
.bc-hub__bintro { margin: 0 0 34px; font: 400 15.5px/1.65 var(--sans); color: var(--body-muted); text-wrap: pretty; }

.bc-hubsect { margin-bottom: 46px; }
.bc-hubsect h2 {
  margin: 0 0 18px; padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font: 500 30px/1.15 var(--serif); text-wrap: pretty;
}
.bc-hubsect__intro { margin: 0 0 20px; font: 400 15.5px/1.65 var(--sans); color: var(--body-muted); text-wrap: pretty; }
.bc-hubsect__cap { margin: 10px 0 0; font: 400 12.5px/1.5 var(--sans); color: var(--meta); }
.bc-hubsect__after { margin: 16px 0 0; font: 400 15.5px/1.65 var(--sans); color: var(--body-muted); text-wrap: pretty; }

/* Hub tables (same spec as content tables, no figure wrapper) */
.bc-tablewrap { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.bc-tablewrap table { width: 100%; border-collapse: collapse; }
.bc-tablewrap th {
  text-align: left; background: var(--brown); color: #fff;
  padding: 11px 14px;
  font: 600 10.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.14);
}
.bc-tablewrap th:last-child { border-right: 0; }
.bc-tablewrap td {
  padding: 12px 14px;
  font: 400 14px/1.45 var(--sans); color: var(--body);
  border-top: 1px solid rgba(43,35,32,.12);
  border-right: 1px solid rgba(43,35,32,.10);
  vertical-align: top;
}
.bc-tablewrap td:last-child { border-right: 0; }
.bc-tablewrap tbody tr:nth-child(odd) { background: var(--cream); }
.bc-tablewrap tbody tr:nth-child(even) { background: var(--cream-3); }
.bc-tablewrap td:first-child { font: 500 14px/1.45 var(--serif); color: var(--ink); }
@media (max-width: 900px) {
  .bc-tablewrap { overflow-x: auto; }
  .bc-tablewrap table { min-width: 560px; }
}

/* k/v arrow rows */
.bc-kvlist { border-top: 1px solid var(--hairline); }
.bc-kvrow {
  display: grid; grid-template-columns: 190px 1fr auto;
  gap: 20px; align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.bc-kvrow .k { font: 500 15.5px/1.4 var(--serif); color: var(--ink); }
.bc-kvrow .v { font: 400 14.5px/1.55 var(--sans); color: var(--body-muted); text-wrap: pretty; }
.bc-kvrow .arrow { color: var(--terra); }
a.bc-kvrow:hover .k { color: var(--terra-dark); }
@media (max-width: 900px) {
  .bc-kvrow { grid-template-columns: 1fr auto; }
  .bc-kvrow .k { grid-column: 1 / -1; }
}

/* Link columns (comparisons / buying+understanding) */
.bc-linkcols { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 26px; }
.bc-linkcols__h {
  font: 600 10px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 4px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(43,35,32,.2);
}
.bc-linkcols__a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font: 500 14.5px/1.3 var(--serif); color: var(--ink);
}
.bc-linkcols__a span { color: var(--terra); flex: none; }
.bc-linkcols__a:hover { color: var(--terra-dark); }
@media (max-width: 900px) { .bc-linkcols { grid-template-columns: 1fr; } }

/* Sidebar */
.bc-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 20px; }
.bc-side__card { border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; padding: 18px 20px 20px; }
.bc-side__card--cream { background: var(--cream-2); }
.bc-side__label {
  font: 600 10px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase;
  color: var(--meta); margin-bottom: 12px;
}
.bc-side__label--sand { color: var(--sand); }
.bc-side__nav { display: flex; flex-direction: column; }
.bc-side__nav a {
  padding: 9px 0;
  border-top: 1px solid rgba(43,35,32,.12);
  font: 500 14.5px/1.35 var(--serif); color: var(--ink);
}
.bc-side__nav a:hover { color: var(--terra-dark); }
.bc-side__hub { background: var(--brown); border-radius: var(--r-sm); padding: 20px; }
.bc-side__hub h3 { margin: 0 0 8px; font: 500 20px/1.15 var(--serif); color: #fff; }
.bc-side__hub p { margin: 0 0 14px; font: 400 13.5px/1.5 var(--sans); color: rgba(255,255,255,.72); }
.bc-side__hub .bc-btn { padding: 10px 16px; font-size: 11.5px; }

/* Gear buying-guides band */
.bc-buyband { padding: 16px 0 8px; }
.bc-buyband__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.bc-buycard {
  display: flex; flex-direction: column; gap: 7px;
  background: var(--ink); border-radius: var(--r-md);
  padding: 22px 24px 24px;
}
.bc-buycard .tag { font: 600 10px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--sand); }
.bc-buycard .t { font: 500 21px/1.15 var(--serif); color: #fff; }
.bc-buycard .d { font: 400 13.5px/1.5 var(--sans); color: rgba(255,255,255,.66); flex: 1; }
.bc-buycard .cta { margin-top: 8px; font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }
.bc-buycard:hover .cta { color: var(--sand); }

/* Guide index cards (adds excerpt + date to bc-postcard) */
.bc-guides { scroll-margin-top: 24px; padding-top: 16px; padding-bottom: 44px; }
.bc-guides__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px var(--grid-gap); margin-top: 26px; }
.bc-postcard__x { font: 400 13.5px/1.5 var(--sans); color: var(--body-muted); text-wrap: pretty; }
.bc-postcard__d { font: 400 12px/1 var(--sans); color: var(--meta); }

@media (max-width: 900px) {
  .bc-hubhero img { height: 210px; }
  .bc-hubhero__scrim { background: linear-gradient(180deg, rgba(43,35,32,.25) 0%, rgba(43,35,32,.6) 50%, rgba(43,35,32,.94) 100%); }
  .bc-hubhero__in { justify-content: flex-end; padding: 16px; }
  .bc-hubhero__crumb { margin-bottom: 10px; font-size: 12px; }
  .bc-hubhero h1 { margin: 0; font-size: 32px; line-height: 1.06; letter-spacing: -.01em; }
  .bc-hubhero p { display: none; }
  .bc-hub__intro2 { border-bottom: 0; }
  .bc-hub__intro2 p { padding: 16px 0 4px; }
  .bc-hub__cols { display: block; padding-top: 16px; }
  .bc-side { position: static; margin-top: 8px; }
  .bc-hubsect { margin-bottom: 30px; }
  .bc-hubsect h2 { font-size: 25px; margin-bottom: 14px; padding-bottom: 10px; }
  .bc-hubsect__intro { font-size: 15px; margin-bottom: 16px; }
  .bc-buyband__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
  .bc-guides__grid { grid-template-columns: 1fr; gap: 22px; margin-top: 18px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .bc-guides__grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Single post — Post Templates.dc.html 3a–3d
   ========================================================================== */
.bc-single { padding-top: 22px; }
.bc-arthead { max-width: 772px; }
.bc-arthead .bc-breadcrumb { margin-bottom: 26px; }
.bc-bystrip {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; margin-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.bc-bystrip .bc-avatar { width: 38px; height: 38px; font-size: 14px; }
.bc-bystrip__who { display: flex; flex-direction: column; gap: 2px; }
.bc-bystrip__who b { font: 600 13.5px/1 var(--sans); color: var(--ink); }
.bc-bystrip__who span { font: 400 12.5px/1 var(--sans); color: var(--meta); }
.bc-bystrip__chip {
  margin-left: auto;
  padding: 6px 12px;
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: #6A5D56;
}
.bc-disclosure { margin: -6px 0 22px; font: 400 12.5px/1.5 var(--sans); color: var(--meta); }
.bc-arthead .bc-featured { margin: 0 0 8px; }

.bc-single__cols {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--content-gap);
  padding-top: 28px;
  align-items: start;
}
.bc-single__cols .bc-entry { max-width: 772px; min-width: 0; }
.bc-single .bc-side { padding-bottom: 36px; }

/* First paragraph slightly larger (design: 17px lead) */
.bc-entry > p:first-child { font-size: 17px; }

/* Author box */
.bc-authorbox {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px;
  background: var(--cream-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  margin: 36px 0;
}
.bc-authorbox .bc-avatar { width: 64px; height: 64px; font-size: 22px; }
.bc-authorbox .n { display: block; font: 500 19px/1.2 var(--serif); color: var(--ink); }
.bc-authorbox .r { display: block; margin-top: 5px; font: 600 10px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; color: var(--meta); }
.bc-authorbox .b { display: block; margin-top: 5px; font: 400 14.5px/1.6 var(--sans); color: var(--body-muted); text-wrap: pretty; }

/* Steps (numbered circles) — applies to ordered lists opted in via class,
   and the design's step rows when built as list items */
.bc-entry ol.bc-steps { list-style: none; padding: 0; counter-reset: bcstep; }
.bc-entry ol.bc-steps > li {
  counter-increment: bcstep;
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 18px 0; margin: 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.bc-entry ol.bc-steps > li::before {
  content: counter(bcstep);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--terra); color: #fff;
  display: block; text-align: center;
  font: 500 20px/44px var(--serif);
}

/* Common-mistake callout */
.bc-entry .bc-callout, .bc-callout {
  border-left: 3px solid var(--terra);
  background: var(--cream-2);
  padding: 16px 20px;
  margin: 0 0 34px;
}
.bc-callout__label {
  font: 600 10px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 6px;
}

/* Mobile sticky Check Price bar (commercial) */
.bc-stickycta {
  position: sticky; bottom: 0; z-index: 40;
  display: none;
  align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--cream);
  border-top: 1px solid rgba(43,35,32,.18);
  box-shadow: 0 -4px 14px rgba(43,35,32,.08);
}
.bc-stickycta__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bc-stickycta__t .l { font: 600 9px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--meta); }
.bc-stickycta__t .n { font: 500 15px/1.2 var(--serif); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-stickycta .bc-btn { padding: 14px 20px; flex: none; }

@media (max-width: 900px) {
  .bc-single { padding-top: 14px; }
  .bc-arthead .bc-breadcrumb { margin-bottom: 14px; }
  .bc-bystrip { gap: 11px; padding-bottom: 14px; margin-bottom: 14px; }
  .bc-bystrip__chip { display: none; }
  /* On mobile the sidebar stacks after the article, which buried "In this guide"
     below the author box. `display: contents` promotes the three sidebar cards to
     flex items of the column so ONLY the TOC can be ordered above the prose; the
     related + hub cards stay after it. */
  .bc-single__cols {
    display: flex; flex-direction: column; padding-top: 18px;
    align-items: stretch;   /* desktop sets align-items:start for the sticky rail;
                               stacked, that shrinks each card to its content width */
  }
  .bc-single .bc-side { display: contents; }
  /* ⚠ flex items default to min-width:auto, so the wide comparison tables pushed
     .bc-entry past the viewport and clipped the prose. min-width:0 lets the item
     shrink and the table scroll inside its own container as designed. */
  .bc-single__cols > *, .bc-single .bc-entry { min-width: 0; max-width: 100%; }
  .bc-single .bc-entry { order: 1; }
  .bc-single .bc-side__card--toc { order: 0; margin: 0 0 22px; }
  .bc-single .bc-side__card:not(.bc-side__card--toc) { order: 2; margin-top: 22px; }
  .bc-single .bc-side__hub { order: 3; margin-top: 22px; }
  /* the TOC is long on some posts: cap it and let it scroll rather than pushing
     the article a screen and a half down */
  .bc-single .bc-side__card--toc .bc-side__nav { max-height: 220px; overflow-y: auto; }
  .bc-stickycta { display: flex; }
  .bc-authorbox { padding: 16px; gap: 13px; }
  .bc-authorbox .bc-avatar { width: 48px; height: 48px; font-size: 17px; }
}

/* ==========================================================================
   Search results + Category archive — 6a/6b + 4a/4b
   ========================================================================== */
.bc-search__head { padding-top: 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(43,35,32,.12); }
.bc-search__head h1 { margin: 0 0 8px; font: 500 40px/1.08 var(--serif); letter-spacing: -.015em; }
.bc-search__head p { margin: 0; font: 400 15.5px/1.5 var(--sans); color: var(--body-muted); }

.bc-search__bar { background: var(--cream-2); border-bottom: 1px solid rgba(43,35,32,.12); }
.bc-search__barin { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-top: 18px; padding-bottom: 18px; }
.bc-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: var(--cream);
  border: 1px solid rgba(43,35,32,.18);
  border-radius: 2px;
  font: 500 13.5px/1 var(--sans); color: var(--ink);
  min-height: 30px;
}
.bc-chip span { font: 400 12px/1 var(--sans); color: var(--meta); }
.bc-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.bc-chip.is-on span { color: rgba(255,255,255,.7); }
.bc-search__sort { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bc-seg { display: flex; border: 1px solid rgba(43,35,32,.22); border-radius: 2px; overflow: hidden; }
.bc-seg a { padding: 8px 14px; background: var(--cream); color: var(--ink); font: 500 13.5px/1 var(--sans); border-left: 1px solid rgba(43,35,32,.22); }
.bc-seg a:first-child { border-left: 0; }
.bc-seg a.is-on { background: var(--ink); color: #fff; }

.bc-search__cols { display: grid; grid-template-columns: 1fr 300px; gap: var(--content-gap); padding-top: 28px; padding-bottom: 40px; align-items: start; }
.bc-result {
  display: grid; grid-template-columns: 190px 1fr; gap: 22px;
  align-items: start; padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.bc-result__img { display: block; aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--r-sm); border: 1px solid rgba(43,35,32,.13); background: var(--placeholder); }
.bc-result__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bc-result__t { font: 500 21px/1.22 var(--serif); color: var(--ink); text-wrap: pretty; }
.bc-result:hover .bc-result__t { color: var(--terra-dark); }
.bc-result__x { font: 400 14.5px/1.55 var(--sans); color: var(--body-muted); text-wrap: pretty; }
.bc-result__d { font: 400 12.5px/1.2 var(--sans); color: var(--meta); }
.bc-noresults { padding: 26px 0; }

@media (max-width: 900px) {
  .bc-search__head { padding-top: 16px; padding-bottom: 16px; }
  .bc-search__head h1 { font-size: 29px; }
  .bc-search__barin { padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
  /* Sort must OWN its row. As a plain flex sibling it wrapped up alongside the
     last chip ("Gear Guides 23  SORT Newest Oldest"), which read as a mistake.
     flex-basis 100% forces a break so filter chips and sort are two clean groups.
     Applies to both the search results and the author archive (same component). */
  .bc-search__sort {
    flex: 0 0 100%;
    margin-left: 0;
    margin-top: 2px;
  }
  .bc-seg { flex-wrap: wrap; }
  .bc-seg a, .bc-chip { font-size: 12.5px; padding: 7px 11px; }
  .bc-search__cols { display: block; padding-top: 16px; }
  .bc-result { grid-template-columns: 112px 1fr; gap: 13px; padding: 14px 0; }
  .bc-result__t { font-size: 16.5px; }
  .bc-result__x { font-size: 13px; }
  .bc-search .bc-side { margin-top: 24px; position: static; }
}

/* Category archive */
.bc-catarch { padding-top: 24px; padding-bottom: 44px; }
.bc-catarch__head h1 { margin: 0 0 8px; font: 500 40px/1.08 var(--serif); letter-spacing: -.015em; }
.bc-catarch__head p { margin: 0 0 22px; font: 400 15.5px/1.5 var(--sans); color: var(--body-muted); }
.bc-starthere {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--brown); border-radius: var(--r-md);
  padding: 20px 24px; margin-bottom: 30px;
}
.bc-starthere .t { display: block; margin-top: 7px; font: 500 21px/1.2 var(--serif); color: #fff; }
.bc-starthere .d { display: block; margin-top: 5px; font: 400 13.5px/1.5 var(--sans); color: rgba(255,255,255,.7); max-width: 560px; }
.bc-starthere .bc-btn { flex: none; }
.bc-leadpost {
  display: grid; grid-template-columns: 520px 1fr; gap: 30px;
  align-items: center;
  padding-bottom: 30px; margin-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
}
.bc-leadpost__img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); }
.bc-leadpost__body { display: flex; flex-direction: column; gap: 10px; }
.bc-leadpost__t { font: 500 32px/1.15 var(--serif); color: var(--ink); text-wrap: pretty; }
.bc-leadpost:hover .bc-leadpost__t { color: var(--terra-dark); }
.bc-leadpost__x { font: 400 15px/1.6 var(--sans); color: var(--body-muted); }
.bc-relcats { margin-top: 44px; }
.bc-relcats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.bc-relcat {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff; padding: 20px 22px;
}
.bc-relcat .t { font: 500 21px/1.15 var(--serif); color: var(--ink); }
.bc-relcat .d { font: 400 13.5px/1.5 var(--sans); color: var(--body-muted); }
.bc-relcat .c { margin-top: 6px; font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }
.bc-relcat:hover { border-color: var(--terra); }

@media (max-width: 900px) {
  .bc-catarch { padding-top: 16px; }
  .bc-catarch__head h1 { font-size: 29px; }
  .bc-starthere { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .bc-leadpost { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 20px; }
  .bc-leadpost__t { font-size: 22px; }
  .bc-relcats__grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Video facade */
.bc-video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: var(--r-md); overflow: hidden; background: var(--ink); cursor: pointer; }
.bc-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.bc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bc-video__play {
  position: absolute; inset: 0; margin: auto;
  width: 68px; height: 48px; border: 0; border-radius: 10px;
  background: var(--terra); cursor: pointer;
  transition: background-color .15s ease;
}
.bc-video__play::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-style: solid; border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}
.bc-video:hover .bc-video__play { background: var(--terra-dark); }

/* ==========================================================================
   Utility pages (About / Privacy / Contact) — design-system pass.
   No sidebar => wide measure. Hero band mirrors the search-results head.
   ========================================================================== */
.bc-utility__head {
  position: relative;
  padding-top: 26px; padding-bottom: 24px;
}
/* The rule must line up with the CONTENT, not the container. The head carries
   `bc-pad`, so a plain border-bottom spans the padding box and overhangs the
   columns below by var(--pad-x) on each side (56px desktop). Inset it instead. */
.bc-utility__head::after {
  content: '';
  position: absolute;
  left: var(--pad-x); right: var(--pad-x); bottom: 0;
  height: 1px;
  background: rgba(43,35,32,.12);
}
.bc-utility__head h1 { margin: 0 0 8px; font: 500 40px/1.08 var(--serif); letter-spacing: -.015em; }
.bc-utility__head p { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--body-muted); max-width: 720px; text-wrap: pretty; }
.bc-utility__body { padding-top: 30px; padding-bottom: var(--sect-gap); }

/* Wide entry: fills the container, body copy capped at a readable measure */
.bc-entry--wide { max-width: none; }
.bc-entry--wide > p, .bc-entry--wide > ul, .bc-entry--wide > ol { max-width: 860px; }
.bc-entry--wide > h2 { max-width: 1128px; }
.bc-entry--wide .has-text-align-center { max-width: none; text-align: left; }

@media (max-width: 900px) {
  .bc-utility__head { padding-top: 16px; padding-bottom: 16px; }
  .bc-utility__head h1 { font-size: 29px; }
}

/* Contact page */
.bc-contact__cols {
  display: grid; grid-template-columns: 1fr 380px;
  gap: var(--content-gap);
  align-items: start;
  padding-top: 30px; padding-bottom: var(--sect-gap);
}
.bc-contact__formcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 30px 30px;
}
.bc-contact__formcard h2 { margin: 0 0 6px; font: 500 24px/1.15 var(--serif); }
.bc-contact__formcard > p { margin: 0 0 20px; font: 400 14.5px/1.55 var(--sans); color: var(--body-muted); }
.bc-contact .wpcf7 label {
  display: block;
  margin-bottom: 16px;
  font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--meta);
}
.bc-contact .wpcf7 input[type="text"],
.bc-contact .wpcf7 input[type="email"],
.bc-contact .wpcf7 input[type="url"],
.bc-contact .wpcf7 textarea {
  display: block; width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid rgba(43,35,32,.3);
  border-radius: var(--r-sm);
  background: var(--cream);
  font: 400 15px/1.4 var(--sans); color: var(--ink);
  letter-spacing: normal; text-transform: none;
}
.bc-contact .wpcf7 input:focus, .bc-contact .wpcf7 textarea:focus {
  outline: 2px solid var(--terra); outline-offset: 0; border-color: var(--terra);
}
.bc-contact .wpcf7 textarea { min-height: 170px; resize: vertical; }
.bc-contact .wpcf7 input[type="submit"] {
  display: inline-block;
  padding: 14px 26px; border: 0; border-radius: var(--r-sm);
  background: var(--terra); color: #fff;
  font: 600 12.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
}
.bc-contact .wpcf7 input[type="submit"]:hover { background: var(--terra-dark); }
.bc-contact .wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 5px; font: 400 12.5px/1.4 var(--sans); color: var(--terra-dark); letter-spacing: normal; text-transform: none; }
.bc-contact .wpcf7 .wpcf7-response-output { margin: 18px 0 0; padding: 13px 16px; border: 1px solid var(--border); border-left: 3px solid var(--terra); border-radius: var(--r-sm); background: var(--cream-2); font: 400 14px/1.5 var(--sans); }

.bc-contact__aside { display: flex; flex-direction: column; gap: 20px; }
.bc-contact__aside .bc-side__card p { margin: 0; font: 400 13.5px/1.55 var(--sans); color: var(--body-muted); }
.bc-contact__expect { display: flex; flex-direction: column; }
.bc-contact__expect span {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  font: 400 13.5px/1.5 var(--sans); color: var(--body-muted);
}
.bc-contact__expect b { font: 500 14.5px/1.35 var(--serif); color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .bc-contact__cols { display: block; padding-top: 18px; }
  .bc-contact__formcard { padding: 18px 16px 20px; }
  .bc-contact__aside { margin-top: 22px; }
}

/* ==========================================================================
   Content components promoted from legacy coloured groups (restyle-boxes.php)
   .bc-cta-box  — the design's "Still deciding?" dark panel (Post Templates 3c)
   .bc-callout  — extends the common-mistake callout for grouped funnel boxes
   ========================================================================== */
.bc-entry .bc-cta-box {
  background: var(--brown);
  border-radius: var(--r-sm);
  padding: 24px 26px;
  margin: 2.2em 0;
}
.bc-entry .bc-cta-box h2,
.bc-entry .bc-cta-box h3,
.bc-entry .bc-cta-box h4 { color: #fff; margin-top: 0; }
.bc-entry .bc-cta-box h2 { border-bottom: 1px solid rgba(255,255,255,.22); font-size: 24px; padding-bottom: 10px; }
.bc-entry .bc-cta-box p,
.bc-entry .bc-cta-box li { color: rgba(255,255,255,.78); }
.bc-entry .bc-cta-box strong { color: #fff; }
.bc-entry .bc-cta-box a { color: var(--sand); text-decoration-color: rgba(227,183,162,.5); }
.bc-entry .bc-cta-box a:hover { color: #fff; }
.bc-entry .bc-cta-box > *:last-child { margin-bottom: 0; }
.bc-entry .bc-cta-box .wp-block-button__link { background: var(--terra); color: #fff; }
.bc-entry .bc-cta-box .wp-block-button__link:hover { background: var(--terra-dark); }

.bc-entry .wp-block-group.bc-callout { margin: 2em 0; padding: 18px 22px; }
.bc-entry .bc-callout > *:last-child { margin-bottom: 0; }
.bc-entry .bc-callout p { font-size: 15px; }

/* ==========================================================================
   Mini-review product image — for the H2-per-product review format.
   Floats right so prose keeps its full measure (no squeezed column).
   ========================================================================== */
.bc-entry figure.wp-block-image.bc-minireview-img {   /* outranks the generic figure margin rule */
  float: left;
  width: 300px;
  margin: 6px 30px 18px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px;
}
.bc-entry .bc-minireview-img img { display: block; width: 100%; height: auto; border-radius: 2px; }
.bc-entry .bc-minireview-img figcaption { margin-top: 9px; font: 400 11.5px/1.45 var(--sans); color: var(--meta); }
.bc-entry h2 { clear: both; } /* each product section contains its own float */
@media (max-width: 900px) {
  .bc-entry figure.wp-block-image.bc-minireview-img { float: none; width: 100%; margin: 4px 0 16px; }
}

/* ==========================================================================
   About page — team cards (legacy Twentig media-text blocks, redesigned)
   ========================================================================== */
.bc-about .wp-block-media-text {
  display: grid;
  grid-template-columns: 320px 1fr !important; /* legacy inline 45% grid overridden */
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 0 0 26px;
  max-width: 1128px;
}
.bc-about .wp-block-media-text__media {
  margin: 0;
  height: 100%;
  min-height: 260px;
  background-size: cover;
  background-position: 50% 35%;
}
.bc-about .wp-block-media-text__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-about .wp-block-media-text__content {
  padding: 26px 30px 28px !important;
  align-self: center;
}
.bc-about .wp-block-media-text__content h3,
.bc-about .wp-block-media-text__content h4 { margin: 0 0 4px; font: 500 24px/1.15 var(--serif); color: var(--ink); }
.bc-about .wp-block-media-text__content > p:first-of-type strong,
.bc-about .wp-block-media-text__content > p strong:only-child {
  font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--meta);
}
.bc-about .wp-block-media-text__content p { margin: 0 0 12px; font: 400 15px/1.65 var(--sans); color: var(--body-muted); }
.bc-about .wp-block-media-text__content p:last-child { margin-bottom: 0; }
.bc-about .wp-block-social-links { margin: 2px 0 14px; }
.bc-about h2 { max-width: 1128px; }
@media (max-width: 900px) {
  .bc-about .wp-block-media-text { display: block; }
  .bc-about .wp-block-media-text__media { min-height: 0; }
  .bc-about .wp-block-media-text__media img { height: auto; }
  .bc-about .wp-block-media-text__content { padding: 16px !important; }
}

/* ==========================================================================
   Product-section divider — SITE-WIDE (rolled out 11 Aug; 22 posts / 65 seams).
   A heading immediately after a CHECK PRICE buttons block = the seam between
   two product reviews. Hairline + air, tied to the heading — no ornament blocks,
   no content edits; degrades to normal spacing if the pattern is absent.
   ========================================================================== */
.bc-entry .wp-block-buttons + h2,
.bc-entry .wp-block-buttons + h3 {
  margin-top: 2.6em;
  padding-top: 44px;
  border-top: 1px solid var(--hairline);
}

/* ==========================================================================
   Brand palette utility classes — generated by the editor palette
   (inc/setup.php editor-color-palette). Classic API emits the classes in
   saved markup but not the CSS; both sides live here + editor.css.
   ========================================================================== */
.has-bc-ink-color { color: #2B2320; }
.has-bc-ink-background-color { background-color: #2B2320; }
.has-bc-brown-color { color: #443B37; }
.has-bc-brown-background-color { background-color: #443B37; }
.has-bc-terracotta-color { color: #C0552B; }
.has-bc-terracotta-background-color { background-color: #C0552B; }
.has-bc-slate-color { color: #7593AC; }
.has-bc-slate-background-color { background-color: #7593AC; }
.has-bc-sand-color { color: #E3B7A2; }
.has-bc-sand-background-color { background-color: #E3B7A2; }
.has-bc-cream-color { color: #FBF8F3; }
.has-bc-cream-background-color { background-color: #FBF8F3; }

/* ==========================================================================
   Post FAQ (Yoast faq-block passthrough) — mirrors the hub .bc-faq__item
   rhythm so long FAQ sections read as a scannable list of Q&As instead of
   an undifferentiated wall of bold-then-paragraph. Server-rendered and
   always visible: no collapse, so indexing is unaffected.
   ========================================================================== */
.bc-entry .schema-faq-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  margin: 0;
}
/* No border-top on the first Q&A: the FAQ h2 above already draws the 2px rule.
   Site rule: a thick section rule is never followed by a thin divider. */
.bc-entry .schema-faq-question {
  display: block;
  margin-bottom: 6px;
  font: 500 18px/1.35 var(--serif);
  color: var(--ink);
}
/* Prod authored some FAQ questions bold, so ~35 posts carry a redundant
   <strong> INSIDE <strong class="schema-faq-question">. Left alone those
   questions render at 700 while the rest render at 500 — an inconsistency
   between posts. Neutralise the nested weight instead of rewriting content. */
.bc-entry .schema-faq-question strong,
.bc-entry .schema-faq-question b { font-weight: inherit; }

.bc-entry .schema-faq-answer {
  margin: 0;
  font: 400 15px/1.65 var(--sans);
  color: var(--body-muted);
  text-wrap: pretty;
}
.bc-entry .schema-faq-answer > ol,
.bc-entry .schema-faq-answer > ul { margin: 8px 0 0; padding-left: 22px; }
.bc-entry .schema-faq-answer li { font: 400 15px/1.6 var(--sans); color: var(--body-muted); margin: 2px 0; }
@media (max-width: 900px) {
  .bc-entry .schema-faq-section { padding: 14px 0; }
  .bc-entry .schema-faq-question { font-size: 17px; }
  .bc-entry .schema-faq-answer, .bc-entry .schema-faq-answer li { font-size: 14.5px; }
}

/* ==========================================================================
   404 — recovery page (404.php). Single column: too little content for a
   main+sidebar grid, which left a void beside the hub cards.
   ========================================================================== */
.bc-404__body { padding-top: 30px; padding-bottom: var(--sect-gap); }
.bc-404__search { max-width: 560px; margin-bottom: 36px; }
.bc-404__search .bc-side__label { margin-bottom: 10px; }
.bc-404__sect { margin-bottom: 34px; }
.bc-404__sect:last-child { margin-bottom: 0; }

/* Hub cards reuse the homepage .bc-hubcard component (photo + colour band).
   The .bc-hubs band wrapper is deliberately NOT used here (its var(--pad-x)
   would double up inside bc-pad), so restore the spacing it provided. */
.bc-404 .bc-hubs__grid { margin-top: 22px; }

.bc-404__popular {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 34px;
  margin-top: 22px;
}
.bc-404__pop {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.bc-404__pop .t { font: 500 16.5px/1.3 var(--serif); color: var(--ink); }
.bc-404__pop:hover .t { color: var(--terra-dark); }

@media (max-width: 900px) {
  .bc-404__body { padding-top: 18px; }
  .bc-404__search { max-width: none; margin-bottom: 26px; }
  .bc-404__popular { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   Mobile polish — from real-device testing on an iPhone 15 Pro (11 Aug 2026)
   ========================================================================== */

/* 🔴 iOS Safari ZOOMS THE PAGE when a focused input has font-size < 16px. That is
   what pushed "Cancel" off the edge of the search overlay: the layout was fine at
   393px (measured), the browser had zoomed. 16px is the threshold, not a
   preference — do not lower these. A headless/desktop harness cannot catch this,
   it is iOS behaviour, not geometry. */
@media (max-width: 900px) {
  .bc-soverlay__field input,
  .bc-hsearch__field input,
  .bc-hero__search input,
  .bc-404__main input[type="search"],
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="url"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea,
  .wpcf7 select { font-size: 16px; }

  /* keep the overlay bar comfortable now the field is a shade taller */
  .bc-soverlay__bar { gap: 8px; }
  .bc-soverlay__cancel { flex: none; white-space: nowrap; }
}

/* Secondary copy read small on a real handset. Body prose was already 17px; these
   are the bits that lagged behind it. Chosen over a bespoke font-size widget:
   iOS already offers pinch-zoom, Reader and Dynamic Type, and a custom control
   nobody finds does not fix the default experience. */
@media (max-width: 900px) {
  .bc-entry .wp-block-table td { font-size: 15px; }
  .bc-entry .wp-block-table td:first-child { font-size: 15px; }
  .bc-entry .schema-faq-answer,
  .bc-entry .schema-faq-answer li { font-size: 15.5px; }
  .bc-side__nav a { font-size: 15.5px; }
  .bc-postcard__x { font-size: 14px; }
  .bc-footer__brand p { font-size: 14px; }
}

/* ==========================================================================
   Author archive (author.php) — reuses the SEARCH RESULTS furniture
   (.bc-search__head / __bar / __barin / __cols, .bc-chip, .bc-seg, .bc-result),
   so only the author identity block needs its own rules.
   ========================================================================== */
.bc-autharch__id { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.bc-autharch__id .bc-avatar { width: 64px; height: 64px; font-size: 22px; flex: none; }
.bc-autharch__id h1 { margin: 0 !important; }
.bc-autharch__role {
  margin: 4px 0 0 !important;
  font: 600 11.5px/1 var(--sans); letter-spacing: .11em;
  text-transform: uppercase; color: var(--meta);
}
.bc-autharch__bio { margin: 0 0 10px !important; max-width: 720px; }

@media (max-width: 900px) {
  .bc-autharch__id { gap: 14px; margin-bottom: 12px; }
  .bc-autharch__id .bc-avatar { width: 52px; height: 52px; font-size: 18px; }
}
