/* ============================================================================
   CTV Guides — the /guides/ hub. Every rule scoped under .ctv-guidehub.
   Tokens from design_handoff_city_page/tokens/ ONLY.
   Breakpoints 860 and 640. Card grid 3 -> 1 at 860, never 3 -> 2 -> 1.
   ========================================================================== */

.ctv-guidehub {
  --gh-max: var(--container-max, 1200px);
  --gh-gutter: 24px;
  box-sizing: border-box;
  width: 100%;
}
.ctv-guidehub *, .ctv-guidehub *::before, .ctv-guidehub *::after { box-sizing: border-box; }
.ctv-guidehub__wrap { width: min(100%, var(--gh-max)); margin-inline: auto; padding-inline: var(--gh-gutter); }

/* ---- Hero: burgundy band. NOT a photo hero — the article hero puts its H1 on a
   photograph, but the hub has no single representative image and a stock crop
   would be decoration standing in for meaning. ---- */
.ctv-guidehub-hero { background: var(--ctv-burgundy); padding: 72px 0 64px; }
.ctv-guidehub-hero__title {
  font-family: var(--font-serif); font-size: 54px; line-height: 1.06; letter-spacing: -0.02em;
  font-weight: 600; color: var(--ctv-cream); margin: 0;
}
.ctv-guidehub-hero__sub {
  font-family: var(--font-ui); font-size: 19px; line-height: 1.55;
  color: rgba(253, 246, 238, 0.88); margin: 18px 0 0; max-width: 60ch;
}

/* ---- Universal section header, reused: eyebrow -> 48x2 gold rule -> serif H2 ---- */
.ctv-guidehub-section { padding: 72px 0 96px; }
.ctv-guide-hd { margin: 0 0 32px; }
.ctv-guide-hd__eyebrow {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ctv-gold-deep); margin: 0;
}
/* .ctv-guide-hd__rule MOVED to ctv-guides.css (P11) — the article's two bands
   need it too, and ctv-guides.css is loaded by BOTH the hubs and the article
   while this sheet is hub-only. One copy, not a second. */
.ctv-guide-hd__h2 {
  font-family: var(--font-serif); font-size: 36px; line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 600; color: var(--ctv-charcoal); margin: 0;
}
/* .ctv-guide-hd__sub MOVED to ctv-guides.css — the article's FAQ header needs it
   too, and ctv-guides.css is loaded by BOTH the hubs and the article while this
   sheet is hub-only. Same reason .ctv-guide-hd__rule moved in P11. */

/* ---- Cards. NO DATE by decision — a guide is maintained, not published-and-
   abandoned, and a visible date invites "is this still current?". ---- */
.ctv-guidehub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* LOW-COUNT STATE. One card in a 3-column grid reads as broken, so the column
   count is capped at the card count. This is a design case at launch, not an
   edge case: the hub ships with one or two guides. */
.ctv-guidehub-grid[data-count="1"] { grid-template-columns: minmax(0, 720px); }
.ctv-guidehub-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }

.ctv-guidehub-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--ctv-white); border: 1px solid var(--ctv-linen); border-radius: 6px;
  overflow: hidden; box-shadow: var(--shadow-sm); /* P11 */
  transition: box-shadow .18s ease, transform .18s ease;
}
.ctv-guidehub-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); } /* P11: see ctv-guides.css */
/* P11: <img> for the real thumb, <span> only for the placeholder. object-fit
   replaces background-size:cover; width:100% stops the intrinsic image width
   blowing out the grid column. */
.ctv-guidehub-card__thumb {
  display: block; width: 100%; height: 220px; background: var(--ctv-linen);
  object-fit: cover; object-position: center;
}
.ctv-guidehub-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.ctv-guidehub-card__eyebrow {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ctv-gold-deep);
}
/* min-height aligns titles ACROSS A ROW. Zeroed at <=860 where there are no rows. */
/* K-11 EDITORIAL TIER, outside the directory ramp on purpose: guide cards are
   editorial voice, not listings. All five properties declared so a future tag
   change cannot pick up Bricks' bare h2/h3 rules.
   ⚠ --font-serif and --font-heading are the SAME stack (Fraunces), so this tier
   is separated from tiers 1 and 2 by SIZE and LEADING, not by family. */
.ctv-guidehub-card__title {
  font-family: var(--card-ed-family);
  font-size: var(--card-ed-size);
  font-weight: var(--card-ed-weight);
  line-height: var(--card-ed-lh);
  letter-spacing: var(--card-ed-ls);
  color: var(--ctv-charcoal);
  min-height: 58px;
}
.ctv-guidehub-card:hover .ctv-guidehub-card__title { color: var(--ctv-burgundy); }
.ctv-guidehub-card__blurb { font-family: var(--font-ui); font-size: 15px; line-height: 1.55; color: var(--ctv-slate); }

.ctv-guidehub-empty { font-family: var(--font-ui); font-size: 17px; color: var(--ctv-slate); margin: 0; }

/* ============================================================================ */
@media (max-width: 860px) {
  .ctv-guidehub-hero { padding: 56px 0 48px; }
  .ctv-guidehub-hero__title { font-size: 40px; }
  .ctv-guidehub-hero__sub { font-size: 17px; }
  .ctv-guidehub-section { padding: 56px 0 72px; }
  .ctv-guide-hd__h2 { font-size: 28px; }
  /* 3 -> 1. All data-count variants collapse together; a 2-up at 860 would
     reintroduce the half-row the city lane already rejected. */
  .ctv-guidehub-grid,
  .ctv-guidehub-grid[data-count="1"],
  .ctv-guidehub-grid[data-count="2"] { grid-template-columns: 1fr; gap: 24px; }
  .ctv-guidehub-card__title { min-height: 0; }
}

@media (max-width: 640px) {
  .ctv-guidehub-hero { padding: 44px 0 40px; }
  .ctv-guidehub-hero__title { font-size: 32px; }
  .ctv-guidehub-hero__sub { font-size: 16px; }
  .ctv-guidehub__wrap { padding-inline: 20px; }
  .ctv-guidehub-section { padding: 44px 0 64px; }
  .ctv-guide-hd__h2 { font-size: 26px; }
  .ctv-guidehub-card__thumb { height: 180px; }
  .ctv-guidehub-card__title { font-size: var(--card-ed-size-sm); }
}

/* News-only: the card date. Scoped, not forked — the sheet serves both archives
   and Guide cards simply never emit this element (D4). */
.ctv-guidehub-card__date {
  font-family: var(--font-ui); font-size: 13px; color: var(--ctv-slate);
  margin-top: 4px;
}

/* ---- Hero, PHOTO variant. Added 2026-08-24.

   ⚠⚠ THIS REVERSES THE RECORDED DECISION AT THE TOP OF THIS FILE, ON PURPOSE.
   The comment above .ctv-guidehub-hero says the hub is NOT a photo hero because
   "the hub has no single representative image and a stock crop would be
   decoration standing in for meaning". Jeff reversed it on 2026-08-24. What
   changed is the PREMISE, not the reasoning: every photograph on this site is
   his own, so the image is not a stock crop standing in for meaning.

   🔴 THE ORIGINAL DECISION STILL SHIPS UNTIL AN OPTION IS SET. All photo
   behaviour hangs off the --photo modifier, which the renderer only adds when
   ctv_guides_hero_image / ctv_news_hero_image resolves. With them unset the
   burgundy band is byte-identical to what it was, and clearing an option is a
   complete revert with no code change.

   Scrim is --ctv-scrim-hero (0.72), derived in ctv-global.css §11b against pure
   white. This band's own binding case is lower than the portal's (0.652, the
   19px subline at 0.88 opacity, since there is no 12px eyebrow here) but the
   value is shared rather than re-derived so the two heroes cannot drift apart.
   ---- */
.ctv-guidehub-hero--photo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 420px;
}
.ctv-guidehub-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.ctv-guidehub-hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--ctv-scrim-hero);
  z-index: 1;
}
.ctv-guidehub-hero--photo > .ctv-guidehub__wrap { position: relative; z-index: 2; }

/* 🔴 Scoped to --photo, NOT to .ctv-guidehub-hero. The imageless band keeps its
   padding-driven height at every width; only the photo variant has a min-height
   to step down. */
@media (max-width: 860px) { .ctv-guidehub-hero--photo { min-height: 360px; } }
@media (max-width: 640px) { .ctv-guidehub-hero--photo { min-height: 300px; } }
