/* ==================================================================
   BCB Blog — landing (index) CSS
   ------------------------------------------------------------------
   Shared primitives (placeholders, category chips, post cards, meta,
   newsletter band) used by BOTH landing layouts, plus the layout-
   specific blocks for Option A (featured magazine grid) and Option B
   (search + category-sectioned river).
   Load order:  colors_and_type.css → bcb-chrome.css → blog-landing.css
   ================================================================== */

body.page-blog {
  font-family: var(--font-sans);
  color: var(--navy-600);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.page-blog [id] { scroll-margin-top: 130px; }

/* The top filter strip sits flush under the fixed nav. nav.css paints the
   nav-clearance band white via .hub-subnav::before, but the sitewide
   html,body{overflow-x:hidden} clips that pseudo on this template, so the page
   ombré shows as a band above the strip. Paint the top band white via the body
   background itself (clip-proof). The white layer is scroll-attached so it only
   covers the very top of the page and scrolls away; the ombré stays fixed
   beneath. ~120px = nav clearance + strip height; tune if a white edge shows
   above the masthead. */
body.page-blog {
  background:
    linear-gradient(#fff, #fff) left top / 100% 120px no-repeat scroll,
    var(--grad-page-v3) no-repeat fixed;
}

/* ─── Shared layout shells ─────────────────────────────────────── */
.bl-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bl-section { padding: clamp(32px, 4vw, 56px) 0; }

/* ══════════════════════════════════════════════════════════════
   PLACEHOLDER — striped "image drops in here" surface
   Set --cat on the element to tint the stripes per category.
   ══════════════════════════════════════════════════════════════ */
.blog-ph {
  position: relative;
  --cat: var(--navy-400);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.92) 0, rgba(255,255,255,0.92) 11px,
      color-mix(in srgb, var(--cat) 16%, transparent) 11px,
      color-mix(in srgb, var(--cat) 16%, transparent) 22px);
  border: 1px solid color-mix(in srgb, var(--cat) 24%, transparent);
  display: grid; place-items: center;
  overflow: hidden;
}
.blog-ph__label {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--cat) 78%, var(--navy-700));
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  padding: 6px 12px; border-radius: var(--radius-pill);
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY CHIP — colored per category via --cat
   ══════════════════════════════════════════════════════════════ */
.cat-chip {
  --cat: var(--pink-500);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-accent);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 11%, #fff);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  width: fit-content;
}
.cat-chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cat); flex: none; }

/* ══════════════════════════════════════════════════════════════
   POST META — monogram avatar · name · date · reading time
   ══════════════════════════════════════════════════════════════ */
.pm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm__avatar {
  --cat: var(--pink-500);
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cat) 88%, #000 0%);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-accent);
  font-weight: 800; font-size: 12px; letter-spacing: 0.02em;
}
.pm__text { display: flex; flex-direction: column; min-width: 0; }
.pm__name { font-weight: 700; font-size: 13.5px; color: var(--navy-700); line-height: 1.2; }
.pm__sub  { font-size: 12px; color: var(--navy-400); line-height: 1.35; }
.pm__sub time + span::before,
.pm__sub span + span::before { content: " · "; }

/* ══════════════════════════════════════════════════════════════
   POST CARD — the workhorse
   ══════════════════════════════════════════════════════════════ */
.post-card {
  display: flex; flex-direction: column;
  background: var(--card-lift-bg);
  -webkit-backdrop-filter: var(--card-lift-blur); backdrop-filter: var(--card-lift-blur);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-lift);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(31,45,64,.08), 0 22px 44px -16px rgba(31,45,64,.26);
}
.post-card__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
/* Image fills the 3/2 box and crops, so every card photo is the same height
   on the /blog/ grid AND the single-post "Keep reading" related grid. Without
   height:100%+object-fit the natural image height overrides the aspect-ratio. */
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__media.blog-ph { border-radius: 0; border-width: 0 0 1px 0; }
.post-card__body {
  display: flex; flex-direction: column; gap: 11px;
  padding: clamp(16px, 1.6vw, 22px);
  flex: 1;
}
.post-card__title {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.24; letter-spacing: -0.015em;
  color: var(--navy-700);
  margin: 0;
  text-wrap: balance;
  transition: color var(--dur-fast) var(--ease-out);
}
.post-card:hover .post-card__title { color: var(--pink-600); }
.post-card__excerpt {
  margin: 0;
  font-size: 14.5px; line-height: 1.58;
  color: var(--navy-500);
  text-wrap: pretty;
}
.post-card__foot { margin-top: auto; padding-top: 4px; }

/* small/compact card (sidebars, related, sectioned rows) */
.post-card--compact .post-card__media { aspect-ratio: 16 / 9; }
.post-card--compact .post-card__title { font-size: clamp(16px, 1.1vw, 18px); }

/* ══════════════════════════════════════════════════════════════
   NEWSLETTER BAND — navy, sits on the gradient's dark base
   ══════════════════════════════════════════════════════════════ */
/* QA 2026-06-10 (Suzanne): hide the newsletter band until MailerLite is wired
   (the Subscribe form is inert). Reversible — delete this one rule to restore. */
.news-band { display: none; }
.news-band { padding: clamp(36px, 5vw, 64px) 24px; }
.news-band__inner {
  max-width: 880px; margin: 0 auto;
  background: linear-gradient(150deg, #2c3a50 0%, #1f2d40 70%);
  border-radius: var(--radius-2xl);
  padding: clamp(30px, 4vw, 56px) clamp(24px, 4vw, 56px);
  text-align: center;
  box-shadow: 0 1px 3px rgba(31,45,64,.1), 0 26px 60px -22px rgba(31,45,64,.5);
  position: relative; overflow: hidden;
}
.news-band__inner::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194,99,138,.4), transparent 68%);
  pointer-events: none;
}
.news-band__eyebrow {
  font-family: var(--font-accent); font-weight: 700; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink-300);
  margin: 0 0 12px; position: relative;
}
.news-band__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.14; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 12px; text-wrap: balance; position: relative;
}
.news-band__sub {
  font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.6;
  color: rgba(255,255,255,.78); margin: 0 auto 26px; max-width: 46ch;
  text-wrap: pretty; position: relative;
}
.news-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  position: relative; flex-wrap: wrap; justify-content: center;
}
.news-form__input {
  flex: 1; min-width: 220px;
  height: 54px; padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: var(--font-sans); font-size: 15px;
}
.news-form__input::placeholder { color: rgba(255,255,255,.5); }
.news-form__input:focus { outline: none; border-color: var(--pink-300); background: rgba(255,255,255,.12); }
.news-band .news-note {
  margin: 16px 0 0; font-size: 12.5px; color: rgba(255,255,255,.55);
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   OPTION A — featured magazine grid
   ══════════════════════════════════════════════════════════════ */
.la-masthead { padding: clamp(14px, 1.8vw, 26px) 0 clamp(12px, 1.6vw, 20px); text-align: center; }

/* nav.css applies `body.full-width-content section { padding: clamp(40px,5vw,72px) 0 }`
   to EVERY full-width <section>. The blog landing stacks many small bands, so
   that 72px top+bottom compounds into huge empty gaps. Collapse it on the small
   bands (they carry their own margins) and give the grid a modest, intentional
   rhythm. These selectors outrank the nav.css rule, scoped to the blog only. */
body.page-blog .la-featured,
body.page-blog .la-browse,
body.page-blog .la-filter { padding-top: 0; padding-bottom: 0; }
body.page-blog .bl-section { padding-top: clamp(16px, 1.8vw, 26px); padding-bottom: clamp(34px, 4vw, 56px); }
/* Session 3: more breathing room above the browse/search bar, and a hairline
   divider between it and the article grid below (matches the .lb-cat hairline). */
body.page-blog .la-browse {
  padding-top: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(20px, 2.6vw, 32px);
  border-bottom: 1px solid rgba(62,80,104,0.14);
}
.la-masthead__eyebrow {
  font-family: var(--font-accent); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink-600);
  margin: 0 0 14px;
}
.la-masthead__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.024em;
  color: var(--pink-500); margin: 0 auto; max-width: 16ch; text-wrap: balance;
}
.la-masthead__lede {
  font-weight: 500; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6;
  color: var(--navy-600); margin: 18px auto 0; max-width: 52ch; text-wrap: pretty;
}

/* Featured hero card */
.la-featured { padding-bottom: clamp(8px, 1.4vw, 16px); }
.la-featured__card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: rgba(255,255,255,0.62);
  -webkit-backdrop-filter: var(--card-lift-blur); backdrop-filter: var(--card-lift-blur);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card-lift);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.la-featured__card:hover { transform: translateY(-3px); box-shadow: 0 2px 8px rgba(31,45,64,.1), 0 30px 60px -20px rgba(31,45,64,.32); }
.la-featured__media { aspect-ratio: 16 / 10; border-radius: 0; border-width: 0 0 1px 0; overflow: hidden; }
/* Make the image fill its box and crop (cover) instead of rendering at its
   full natural height, which was forcing the whole card ~980px tall. */
.la-featured__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.la-featured__body {
  padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 13px; justify-content: center;
}
.la-featured__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-accent); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink-600);
}
.la-featured__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.2vw, 32px); line-height: 1.12; letter-spacing: -0.022em;
  color: var(--navy-700); margin: 0; text-wrap: balance;
  transition: color var(--dur-fast) var(--ease-out);
}
.la-featured__card:hover .la-featured__title { color: var(--pink-600); }
.la-featured__excerpt {
  font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.62; color: var(--navy-600);
  margin: 0; max-width: 52ch; text-wrap: pretty;
  /* cap at 3 lines so a long excerpt can't balloon the card height */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
@media (min-width: 860px) {
  .la-featured__card { grid-template-columns: 1.15fr 1fr; }
  /* Definite aspect-ratio (not auto) so the IMAGE can't dictate height; the
     img covers this box. Without a definite height here, grid-stretch + the
     image's natural height blew the card up to ~980px. */
  .la-featured__media { aspect-ratio: 16 / 9; min-height: 0; border-width: 0 1px 0 0; }
}

/* Filter strip (folder tabs reuse hub-subnav).
   The base .hub-subnav paints a 600px-tall white ::before above itself to
   fill the space under the fixed nav — correct when the strip is the first
   thing on a page, but here it sits mid-page and would blank out the
   featured area above it. Kill the fill and let the slim white tab strip
   sit on the gradient on its own. */
.la-filter { margin-top: clamp(10px, 1.2vw, 15px); }
.la-filter.hub-subnav::before { display: none; }

/* The grid */
.la-grid {
  display: grid; gap: clamp(18px, 2vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.la-grid__item.is-hidden { display: none; }
.la-empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 0;
  font-size: 16px; color: var(--navy-400);
}
.la-more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* ══════════════════════════════════════════════════════════════
   OPTION B — search + category-sectioned river
   ══════════════════════════════════════════════════════════════ */
.lb-hero { text-align: center; padding: clamp(34px, 5vw, 68px) 24px clamp(24px, 3vw, 40px); }
.lb-hero__eyebrow {
  font-family: var(--font-accent); font-weight: 700; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--pink-600);
  margin: 0 0 16px;
}
.lb-hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.03; letter-spacing: -0.025em;
  color: var(--pink-500); margin: 0 auto; max-width: 14ch; text-wrap: balance;
}
.lb-hero__lede {
  font-weight: 500; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6;
  color: var(--navy-600); margin: 20px auto 0; max-width: 50ch; text-wrap: pretty;
}
.lb-search { position: relative; max-width: 540px; margin: clamp(24px, 3vw, 34px) auto 0; }
.lb-search__input {
  width: 100%; height: 56px; padding: 0 22px 0 52px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(62,80,104,0.16);
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-sans); font-size: 16px; color: var(--navy-700);
}
.lb-search__input::placeholder { color: var(--navy-400); }
.lb-search__input:focus { outline: none; border-color: var(--pink-400); background: #fff; }
.lb-search__icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--navy-400); pointer-events: none;
}

/* Category pill filters */
.lb-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
  margin: clamp(22px, 2.6vw, 30px) auto 0; max-width: 900px;
}
.lb-pill {
  --cat: var(--navy-500);
  font-family: var(--font-accent); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-600);
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(62,80,104,0.16);
  padding: 9px 17px; border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.lb-pill:hover { background: #fff; color: var(--cat); border-color: color-mix(in srgb, var(--cat) 40%, transparent); }
.lb-pill.is-active { background: var(--cat); color: #fff; border-color: var(--cat); }

/* Category section */
.lb-cat { padding: clamp(28px, 3.4vw, 48px) 0; }
.lb-cat + .lb-cat { border-top: 1px solid rgba(62,80,104,0.1); }
.lb-cat__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 2vw, 26px);
}
.lb-cat__title {
  --cat: var(--pink-500);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--navy-700); margin: 0;
  display: flex; align-items: center; gap: 12px;
}
.lb-cat__title::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px;
  background: var(--cat); transform: rotate(45deg); flex: none;
}
.lb-cat__all {
  font-family: var(--font-accent); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pink-600); text-decoration: none; white-space: nowrap;
}
.lb-cat__all:hover { color: var(--pink-700); }
.lb-cat__all::after { content: " →"; }
.lb-row {
  display: grid; gap: clamp(16px, 1.8vw, 26px);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.lb-cat.is-hidden { display: none; }

/* Featured trio at the top of B */
.lb-trio { padding: clamp(8px, 1.4vw, 18px) 0 clamp(20px, 2.6vw, 36px); }
.lb-trio__grid { display: grid; gap: clamp(16px, 1.8vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 880px) {
  .lb-trio__grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
  .lb-trio__lead { grid-row: 1 / 3; }
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .la-grid, .lb-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   BCB blog SEARCH (hybrid: live card filter on the landing +
   full-text results page). Added post-handoff; not in the original
   design package. Pill-input treatment mirrors .lb-search above.
   ══════════════════════════════════════════════════════════════ */
/* Browse-by-topic bar: heading (left) + search (right), above the tabs. */
.la-browse { margin-top: clamp(16px, 2vw, 26px); }
.la-browse__bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap;
}
.la-browse__intro { min-width: 0; }
.la-browse__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 1.9vw, 27px); line-height: 1.12; letter-spacing: -0.02em;
  color: var(--navy-700); margin: 0; text-wrap: balance;
}
.la-browse__sub { margin: 5px 0 0; font-size: 14px; line-height: 1.5; color: var(--navy-500); }
.la-search { position: relative; max-width: 560px; }
.la-browse__bar .la-search { max-width: 380px; flex: 0 1 380px; width: 100%; }
.la-search__input {
  width: 100%; height: 54px; padding: 0 116px 0 50px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(62,80,104,0.16);
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-sans); font-size: 16px; color: var(--navy-700);
}
.la-search__input::placeholder { color: var(--navy-400); }
.la-search__input:focus { outline: none; border-color: var(--pink-400); background: #fff; }
.la-search__icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--navy-400); pointer-events: none;
}
.la-search__submit {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 42px; padding: 0 18px; border: 0; cursor: pointer;
  border-radius: var(--radius-pill);
  font-family: var(--font-accent); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; color: #fff; background: var(--pink-500);
  transition: background var(--dur-fast) var(--ease-out);
}
.la-search__submit:hover { background: var(--pink-600); }
.la-search__hint { margin: 11px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--navy-500); }

/* Results page: masthead + .la-grid are reused; this is the empty state. */
.la-noresults { text-align: center; padding: clamp(30px, 5vw, 60px) 0; color: var(--navy-600); }
.la-noresults p { margin: 0 0 16px; font-size: 17px; line-height: 1.55; }

@media (max-width: 640px) {
  /* heading stacks above a full-width search */
  .la-browse__bar { align-items: stretch; }
  .la-browse__bar .la-search { max-width: none; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .la-search__input { padding: 0 18px 0 50px; }
  .la-search__submit { position: static; transform: none; display: block; width: 100%; height: 46px; margin-top: 10px; }
}
