/* SHARED GOLDEN PRESENTATION: templates/partials/golden-presentation.php loads this original source for every consumer in docs/golden-presentation-contract.json. Keep that emitter and its callers in sync; see docs/GOLDEN-PRESENTATION.md. */
/* =============================================================================
   CITY HUB · MAIN CONTENT VIEWER  ("The Complete Charlotte Buyer's Guide")
   -----------------------------------------------------------------------------
   2026-06-25 (owner): this file was previously AUTO-GENERATED by
   bin/scope-cityhub-cv.py from the polygon-map-source. That ZIP-map dashboard is
   removed, so this file is now HAND-OWNED — the source stylesheet for the new
   .cityhub-cv main-content-viewer module. Do NOT re-run scope-cityhub-cv.py
   against this file; it would clobber the redesign.

   This is NOT an override layer. Every rule is scoped under .cityhub-cv so it can
   neither bleed out nor be reached by sitewide rules, and because cityhub-cv.css
   loads after style.css / market-intel.css / mockup-overrides.css, these scoped
   rules win the cascade with NO !important (RULE 8/9 compliant).

   Ported (values + layout intact) from the owner's "Complete Charlotte Buyer's
   Guide" mockup (index.html + styles.css), then namespaced: the mockup's :root →
   .cityhub-cv, body/.buyer-guide-page → .cityhub-cv, every component selector
   gains the .cityhub-cv prefix. Tune values in the LAYOUT CONTROL PANEL first.
   ============================================================================= */

/* ==========================================================
   LAYOUT CONTROL PANEL  (scoped design tokens for this module)
   ========================================================== */
.cityhub-cv {
  content-visibility:auto;contain-intrinsic-size:auto 1000px;
  /* Match the listings carousel exactly: its region renders at a hard 1276px,
     centered, at every viewport (the black stage frame inside is 1154px). With
     margin:0 auto in the full-width #hh-main-content, 1276 lines this unit up
     edge-to-edge with the carousel above. (owner 2026-06-25: "as wide as the
     carousel" — the carousel is 1276, not 1320 as the filename suggests.) */
  --page-width: var(--hhr-reference-content-width,1276px);
  --page-bg: #ffffff;
  --cream: #ffffff;
  --cream-2: #ffffff;
  --cream-line: #e5e1de;

  --charcoal: #252525;
  --charcoal-2: #3b3836;
  --black-panel: #ffffff;
  --black-panel-2: #f7f5f3;

  --kw-red: var(--hhr-brand-accent,#c8102e);
  --blue: var(--hhr-brand-accent,#c8102e);
  --blue-dark: var(--hhr-brand-accent,#c8102e);
  --blue-soft: #f7f5f3;
  --navy: #252525;
  --gold: var(--hhr-brand-accent,#c8102e);
  --gold-light: var(--hhr-brand-chart,#a75d6e);
  --gold-dark: var(--hhr-brand-accent,#c8102e);
  --bronze: var(--hhr-brand-accent,#c8102e);
  --green: #28745d;

  --text-dark: #252525;
  --text-light: #ffffff;
  --muted-dark: #66615e;
  --muted-light: #e5e1de;

  --hero-height: 184px;
  --top-nav-height: 64px;
  --sidebar-width: 268px;
  --content-width: 773px;
  --page-body-min-height: 1332.5px;

  --content-padding-top: 18px;
  --content-padding-x: 18px;
  --content-gap: 10px;

  --radius-hard: 4px;
  --radius-panel: 7px;
  --line: 1px solid #e5e1de;
  --line-strong: 1px solid #d8cfca;

  --shadow-none: 0 12px 30px rgba(37, 37, 37, .08);
  --cv-font-heading:Arial,Helvetica,sans-serif;
  --cv-font-serif:Arial,Helvetica,sans-serif;
  /* Feed the existing shared heading/text rules through their public tokens. */
  --lion-font-heading:Arial,Helvetica,sans-serif;
  --c-text: #252525;
  --chart: var(--hhr-brand-chart,#a75d6e);
  --chart-secondary: #aa9582;
  --chart-remainder: var(--hhr-brand-tint,#eadde0);
  --cv-font-body:Arial,Helvetica,sans-serif;
}

/* ==========================================================
   WRAPPER  (was body + .buyer-guide-page)
   ========================================================== */
.cityhub-cv,
.cityhub-cv *,
.cityhub-cv *::before,
.cityhub-cv *::after { box-sizing: border-box; }

.cityhub-cv {
  width: min(var(--hhr-reference-content-available,100%), var(--page-width));
  margin: 16px auto 0;
  background: var(--page-bg);
  color: var(--text-dark);
  font-family: var(--cv-font-body);
  font-size: 14px;
  line-height: 1.6;
  overflow: visible;
  border: 1px solid #e5e1de;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(37, 37, 37, .10);
}
.cityhub-cv a { color: var(--blue); text-underline-offset: 3px; }
.cityhub-cv img { display: block; max-width: 100%; }
.cityhub-cv button,
.cityhub-cv a { -webkit-tap-highlight-color: transparent; }

/* Golden guide lead and advisor: independent SSR siblings of .cityhub-cv,
   rendered by includes/_cityhub-cv.php. Existing viewer geometry stays owned below. */
.hsclt-guide-intro,
.hsclt-guide-author {
  --hhr-heading-align: left;
  --site-font: var(--hhr-market-font, Inter, Arial, sans-serif);
  --lion-font-heading:Arial,Helvetica,sans-serif;
  box-sizing: border-box;
  width: min(var(--hhr-reference-content-available, calc(100% - 32px)), var(--hhr-reference-content-width, 1276px));
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 8px;
  font-family: var(--hhr-market-font, Inter, Arial, sans-serif);
  color: #172235;
}
.hsclt-guide-intro *, .hsclt-guide-author * { box-sizing: border-box; }
.hsclt-guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  background: #f1f3f5;
  border: 1px solid #f1f3f5;
}
.hsclt-guide-intro__copy { padding: 32px 42px; }
.hsclt-guide-intro__eyebrow {
  margin: 0 0 12px;
  color: #172235;
  font: 700 11px/1.4 var(--hhr-market-font, Inter, Arial, sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hsclt-guide-intro__title {
  margin: 0;
  color: #172235;
  font-family: var(--hhr-market-font, Inter, Arial, sans-serif);
  font-size: clamp(30px, 2.2vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.hsclt-guide-intro__title span { display: block; }
.hsclt-guide-intro__description {
  max-width: 54ch;
  margin: 14px 0 0;
  color: #425572;
  font: 400 16px/1.6 var(--hhr-market-font, Inter, Arial, sans-serif);
}
.hsclt-guide-intro__hint {
  margin: 20px 0 0;
  color: #172235;
  font: 500 12px/1.5 var(--hhr-market-font, Inter, Arial, sans-serif);
}
.hsclt-guide-intro__hint span { margin-left: 8px; color: #172235; font-size: 17px; }
.hsclt-guide-intro__visual { position: relative; min-width: 0; min-height: 250px; }
.hsclt-guide-intro__visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 65% 65%; }
/* Golden-only advisor markup lives in includes/_cityhub-cv.php.
   Keep the original portrait complete: no cover crop, masks or generated edits. */
.hsclt-guide-author {
  display: grid;
  grid-template-columns: minmax(190px, 24%) minmax(0, 1fr);
  background: #fff;
  border: 1px solid #f1f3f5;
  margin-bottom: 28px;
}
.hsclt-guide-author__portrait { min-width: 0; display: flex; justify-content: center; align-items: center; padding: 18px; background: #f1f3f5; }
.hsclt-guide-author__portrait img { display: block; width: auto; max-width: 100%; height: 342px; object-fit: contain; border-radius: 5px; }
.hsclt-guide-author__copy { align-self: center; min-width: 0; padding: 28px 40px; }
.hsclt-guide-author__title { margin: 0; color: #172235; font: 500 clamp(24px, 1.75vw, 32px)/1.2 var(--hhr-market-font, Inter, Arial, sans-serif); letter-spacing: -.03em; }
.hsclt-guide-author__name { margin: 14px 0 0; color: #172235; font: 400 34px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.hsclt-guide-author__role { margin: 7px 0 0; color: #506175; font: 400 13px/1.5 var(--hhr-market-font, Inter, Arial, sans-serif); }
.hsclt-guide-author__description { max-width: 72ch; margin: 16px 0 0; color: #425572; font: 400 16px/1.6 var(--hhr-market-font, Inter, Arial, sans-serif); }
.hsclt-guide-author__invitation { margin: 15px 0 0; color: #172235; font: italic 21px/1.4 Georgia, "Times New Roman", serif; }
.hsclt-guide-author__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.hsclt-guide-author__contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border: 0; border-radius: 5px; background: #172235; color: #fff; font: 600 14px/1.4 var(--hhr-market-font, Inter, Arial, sans-serif); cursor: pointer; }
.hsclt-guide-author__contact:hover { background: #172235; }
.hsclt-guide-author__phone { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; white-space: nowrap; color: #172235; font: 600 14px/1.45 var(--hhr-market-font, Inter, Arial, sans-serif); text-decoration: none; }
.hsclt-guide-author__phone svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hsclt-guide-author__phone:hover { color: #172235; text-decoration: underline; text-underline-offset: 4px; }
.hsclt-guide-author__contact:focus-visible, .hsclt-guide-author__phone:focus-visible, .hsclt-guide-author__report:focus-visible { outline: 3px solid #172235; outline-offset: 4px; }
.hsclt-guide-author__report { display: inline-flex; align-items: center; min-height: 44px; color: #172235; font: 500 14px/1.45 var(--hhr-market-font, Inter, Arial, sans-serif); text-decoration: underline; text-underline-offset: 4px; }
.hsclt-guide-author__report:hover { color: #172235; }
.hsclt-guide-author__broker { display: block; width: 140px; height: auto; margin-left: auto; filter: grayscale(1); }
@media (max-width: 900px) {
  .hsclt-guide-intro__copy, .hsclt-guide-author__copy { padding: 26px; }
  .hsclt-guide-intro__title { font-size: 30px; }
  .hsclt-guide-intro__visual { min-height: 240px; }
  .hsclt-guide-author { grid-template-columns: 190px minmax(0, 1fr); }
  .hsclt-guide-author__portrait { padding: 16px; }
  .hsclt-guide-author__portrait img { height: auto; width: 100%; }
  .hsclt-guide-author__title { font-size: 25px; }
  .hsclt-guide-author__name { font-size: 30px; }
  .hsclt-guide-author__actions { gap: 14px 20px; }
  .hsclt-guide-author__broker { width: 124px; }
}
@media (max-width: 560px) {
  .hsclt-guide-intro, .hsclt-guide-author { margin-top: 22px; }
  .hsclt-guide-intro { grid-template-columns: 1fr; }
  .hsclt-guide-intro__copy { padding: 24px; }
  .hsclt-guide-intro__visual { display: none; }
  .hsclt-guide-intro__title { font-size: 29px; }
  .hsclt-guide-intro__description { font-size: 15px; }
  .hsclt-guide-intro__hint { margin-top: 16px; max-width: 28ch; }
  .hsclt-guide-author { grid-template-columns: 108px minmax(0, 1fr); gap: 0 18px; padding: 22px; }
  .hsclt-guide-author__portrait { grid-column: 1; grid-row: 2 / 4; align-self: center; padding: 0; border-radius: 5px; }
  .hsclt-guide-author__portrait img { width: 100%; height: auto; }
  .hsclt-guide-author__copy { display: contents; }
  .hsclt-guide-author__title { grid-column: 1 / -1; grid-row: 1; margin: 0 0 20px; font-size: 25px; }
  .hsclt-guide-author__name { grid-column: 2; grid-row: 2; align-self: end; margin: 0; font-size: 28px; }
  .hsclt-guide-author__role { grid-column: 2; grid-row: 3; align-self: start; margin-top: 8px; font-size: 12px; }
  .hsclt-guide-author__description { grid-column: 1 / -1; grid-row: 4; margin: 18px 0 0; font-size: 15px; line-height: 1.6; }
  .hsclt-guide-author__invitation { grid-column: 1 / -1; grid-row: 5; margin: 14px 0 0; font-size: 20px; }
  .hsclt-guide-author__actions { grid-column: 1 / -1; grid-row: 6; gap: 12px 16px; margin-top: 18px; }
  .hsclt-guide-author__contact { order: 1; padding: 11px 16px; font-size: 13px; }
  .hsclt-guide-author__broker { order: 2; width: 124px; max-width: 44%; }
  .hsclt-guide-author__phone { order: 3; font-size: 14px; }
  .hsclt-guide-author__report { order: 4; flex-basis: 100%; font-size: 13px; }
}

/* ==========================================================
   COMPACT GUIDE HEADER
   ========================================================== */
.cityhub-cv .guide-header {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background-color: #ffffff;
  background-image: none;
  border-bottom: 1px solid #e5e1de;
}
.cityhub-cv .header-content {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  color: var(--text-dark);
}
.cityhub-cv .brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 24px;
}
/* Owner-supplied complete report/contact banner, full width of the guide header. */
.cityhub-cv .cv-agent-card {
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  display: block;
  line-height: 0;
  cursor: pointer;
}
.cityhub-cv .cv-agent-card img { display: block; width: 100%; height: auto; }
/* Owner-approved independent AI-created WebP panels, 2026-10-08. */
.cityhub-cv .cv-banner-panels { display:grid; grid-template-columns:1fr 1fr; }
.cv-banner-open { display:block; min-width:0; border:0; border-radius:0; padding:0; margin:0; background:transparent; cursor:zoom-in; }
.cv-banner-open:focus-visible { outline:3px solid var(--hhr-brand-accent,#c8102e); outline-offset:-3px; }
.cv-banner-art { display:block; aspect-ratio:4 / 3; }
.cityhub-cv .cv-banner-art img, .cv-banner-dialog .cv-banner-art img { display:block; width:100%; max-width:100%; height:auto; }
.cv-banner-dialog { box-sizing:border-box; width:min(96vw,1000px); max-width:96vw; max-height:94vh; max-height:94dvh; padding:12px; border:0; border-radius:12px; background:#fff; color:#222; overflow:auto; box-shadow:0 20px 70px #0005; }
.cv-banner-dialog::backdrop { background:rgba(0,0,0,.78); }
.cv-banner-dialog__bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; font:600 16px/1.4 system-ui,sans-serif; }
.cv-banner-dialog__close { flex:0 0 44px; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:#222; color:#fff; font:30px/1 system-ui,sans-serif; cursor:pointer; }
.cv-banner-dialog__contact { display:block; width:fit-content; margin:16px auto 4px; padding:12px 24px; border-radius:6px; background:var(--hhr-brand-accent,#c8102e); color:#fff; font:600 16px/1.4 system-ui,sans-serif; text-decoration:none; }

.cityhub-cv .title-block { width: 100%; max-width: 620px; }
.cityhub-cv .title-block .cv-guide-title {
  margin: 0;
  color: var(--text-dark);
  font-family: var(--cv-font-serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: none;
}
.cityhub-cv .title-block p {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--muted-dark);
  font-family: var(--cv-font-heading);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: none;
}
.cityhub-cv .cv-guide-meta {
  position: static;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 0;
  font-family: var(--cv-font-heading);
  color: var(--muted-dark);
  font-size: 10px;
  font-weight: 700;
}
.cityhub-cv .cv-guide-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cityhub-cv .cv-guide-meta svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; }

/* ==========================================================
   HORIZONTAL GUIDE NAVIGATION  (7 section tabs)
   Active state uses .active (set by JS), matching the JS — not .is-active.
   ========================================================== */
.cityhub-cv .guide-nav {
  width: 100%;
  height: var(--top-nav-height);
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e5e1de;
  position: sticky;
  top: 0;
  z-index: 20;
  border-radius: 7px 7px 0 0;
}
.cityhub-cv .guide-nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: stretch;
  padding: 7px;
  gap: 4px;
}
.cityhub-cv .guide-nav-link {
  color: #66615e;
  text-decoration: none;
  text-transform: none;
  font-family: var(--cv-font-heading);
  font-weight: 800;
  letter-spacing: 0;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  min-width: 0;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.cityhub-cv .guide-nav-link:hover { color: var(--blue-dark); background: var(--blue-soft); }
.cityhub-cv .guide-nav-link.active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 5px 14px rgba(37, 37, 37,.20);
}
.cityhub-cv .nav-icon {
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  font-family: Arial, sans-serif;
  font-weight: 400;
}
.cityhub-cv .guide-nav-link.active .nav-icon { color: #ffffff; }
.cityhub-cv .nav-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}
.cityhub-cv .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* metric / feature / tip icons rendered as gold line SVGs */
.cityhub-cv .metric-icon svg,
.cityhub-cv .tip-icon svg,
.cityhub-cv .cta-icon svg,
.cityhub-cv .sidebar-cta-icon svg,
.cityhub-cv .chart-insight span svg,
.cityhub-cv .feature-content-card a svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cityhub-cv .metric-icon svg { width: 22px; height: 22px; }
.cityhub-cv .tip-icon svg { width: 30px; height: 30px; }
.cityhub-cv .cta-icon svg { width: 22px; height: 22px; }
.cityhub-cv .sidebar-cta-icon svg { width: 26px; height: 26px; }
.cityhub-cv .guide-card span svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cityhub-cv .date-pill span svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.cityhub-cv .chart-insight span svg { width: 22px; height: 22px; }

/* ==========================================================
   MAIN BODY GRID  (sidebar | content)
   ========================================================== */
/* Scroll track: JS sets its height = panel + hidden content so the sticky
   .page-body inside it stays pinned while page-scroll drives the inner scroll.
   Plain block by default (no JS / mobile = normal flow). owner 2026-06-26 */
.cityhub-cv .cv-scroll-track { position: relative; }

/* Right column: branded header stacked on the content viewer (owner 2026-07-03) */
.cityhub-cv .cv-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.cityhub-cv .page-body {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: stretch;
  /* Locked-height viewer restored (owner 2026-08-30): content scrolls inside the pane. */
  position: relative;
  height: var(--page-body-min-height);
  width: 100%;
  background: #ffffff;
  overflow: visible;
}

/* ==========================================================
   SIDEBAR / TABLE OF CONTENTS
   ========================================================== */
.cityhub-cv .toc-sidebar {
  background: #fcfbfa;
  color: var(--text-dark);
  padding: 24px 18px 22px;
  border-right: 1px solid #e5e1de;
  /* Locked-height column: scroll internally if the TOC + CTA exceed the viewport. */
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c9b8b1 transparent;
}
.cityhub-cv .toc-sticky {
  position: sticky;
  top: 18px;
}
.cityhub-cv .toc-title {
  font-family: var(--cv-font-heading);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 11px;
  line-height: 1;
  color: var(--navy);
  margin: 0 8px 14px;
}
.cityhub-cv .toc-list {
  display: grid;
  gap: 0;
}
.cityhub-cv .toc-link {
  min-height: 42px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: #66615e;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid transparent;
  border-bottom-color: #e5e1de;
  border-radius: 5px;
  padding: 7px 8px;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.cityhub-cv .toc-link::before {
  content: attr(data-icon);
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 17px;
  text-align: center;
}
.cityhub-cv .toc-link.is-active,
.cityhub-cv .toc-link:hover {
  border-color: #d8cfca;
  color: var(--navy);
  background: var(--blue-soft);
}
/* Jump-link landing highlight — a slight light-brown wash over the exact
   heading the sidebar link names; set/cleared by cityhub-cv.js on each jump. */
.cityhub-cv .cv-jump-lit {
  background-color: rgba(37, 37, 37, .10);
  box-shadow: 0 0 0 8px rgba(37, 37, 37, .10);
  border-radius: 6px;
  transition: background-color .5s ease, box-shadow .5s ease;
}
.cityhub-cv .sidebar-cta {
  margin-top: 22px;
  border: 1px solid #d8cfca;
  border-radius: var(--radius-panel);
  padding: 18px;
  background: var(--blue-soft);
  display: grid;
  gap: 12px;
}
.cityhub-cv .sidebar-cta-icon {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}
.cityhub-cv .sidebar-cta h3:where(:not([data-cv-heading-style])) {
  font-family: var(--cv-font-heading);
  color: var(--text-dark);
  font-size: 13px;
  line-height: 1.5;
  margin: -30px 0 0 44px;
  font-weight: 800;
}
.cityhub-cv .sidebar-cta p {
  color: var(--muted-dark);
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.cityhub-cv .outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid var(--blue);
  border-radius: var(--radius-hard);
  min-height: 38px;
  font-family: var(--cv-font-heading);
  font-weight: 800;
  font-size: 12px;
  background: #ffffff;
  color: var(--blue);
}

/* ==========================================================
   MAIN CONTENT VIEWER  (scoped .content-viewer beats style.css)
   ========================================================== */
.cityhub-cv .content-viewer {
  width: 100%;
  /* Internal scrollbar: content scrolls INSIDE the locked-height viewer.
     min-height:0 lets this grid cell shrink below its content so overflow
     actually scrolls instead of stretching the row. (owner 2026-06-26) */
  /* Inner scrollbox restored (owner 2026-08-30): content scrolls inside the locked-height viewer. */
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c9b8b1 transparent;
  background: #ffffff;
  padding: 22px 22px 26px;
}
.cityhub-cv .content-viewer::-webkit-scrollbar { width: 10px; }
.cityhub-cv .content-viewer::-webkit-scrollbar-track { background: transparent; }
.cityhub-cv .content-viewer::-webkit-scrollbar-thumb {
  background: #c9b8b1;
  border-radius: 6px;
  border: 2px solid #ffffff;
}
/* tab-switched panels: only the active section shows */
.cityhub-cv .cv-panel { display: none; }
.cityhub-cv .cv-panel.is-active { display: block; }

.cityhub-cv .market-section { max-width: 100%; }
.cityhub-cv .section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 20px;
  align-items: start;
  margin: 0 2px 16px;
}
.cityhub-cv .section-label {
  font-family: var(--cv-font-heading);
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 2px;
}
.cityhub-cv .content-viewer .cv-section-title,
.cityhub-cv .content-viewer :is(h2,:where([data-cv-heading-style="h2"])),
.cityhub-cv .content-viewer h3:where(:not([data-cv-heading-style])) {
  font-family: var(--cv-font-heading);
  color: var(--text-dark);
  margin: 0;
  letter-spacing: 0;
}
.cityhub-cv .section-heading-row .cv-section-title {
  font-family: var(--cv-font-serif);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 500;
  color: var(--navy);
}
.cityhub-cv .lede {
  font-size: 12px;
  margin: 10px 0 0;
  line-height: 1.35;
}
.cityhub-cv .intro-copy,
.cityhub-cv .updated-note {
  max-width: 500px;
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
}
.cityhub-cv .updated-note { margin-top: 1px; }
.cityhub-cv .date-pill {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #e5e1de;
  border-radius: var(--radius-panel);
  background: #f7f5f3;
  font-family: var(--cv-font-heading);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.cityhub-cv .date-pill span { color: var(--blue); font-size: 16px; }

/* ==========================================================
   METRIC CARDS
   ========================================================== */
.cityhub-cv .metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.cityhub-cv .metric-card {
  min-height: 112px;
  border: 1px solid #e5e1de;
  border-radius: var(--radius-hard);
  background: #fcfbfa;
  padding: 15px 10px 12px;
  display: grid;
  grid-template-columns: 27px 1fr;
  grid-template-areas:
    "icon label"
    "value value"
    "change vs";
  align-items: center;
  column-gap: 7px;
  box-shadow: 0 6px 16px rgba(37, 37, 37, .05);
}
.cityhub-cv .metric-icon { grid-area: icon; color: var(--blue); font-size: 22px; line-height: 1; }
.cityhub-cv .metric-label {
  grid-area: label;
  font-family: var(--cv-font-heading);
  font-size: 8px;
  font-weight: 800;
  color: #66615e;
  line-height: 1.1;
}
.cityhub-cv .metric-value {
  grid-area: value;
  font-family: var(--cv-font-heading);
  font-size: 21px;
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
  color: var(--navy);
  margin-top: 10px;
}
.cityhub-cv .metric-change {
  grid-area: change;
  align-self: end;
  font-family: var(--cv-font-heading);
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
  margin-top: 12px;
}
.cityhub-cv .metric-vs {
  grid-area: vs;
  justify-self: end;
  align-self: end;
  font-family: var(--cv-font-body);
  font-size: 8px;
  color: var(--muted-dark);
  white-space: nowrap;
}

/* ==========================================================
   CHARTS
   ========================================================== */
.cityhub-cv .chart-grid {
  display: grid;
  grid-template-columns: 1fr 1.34fr 1.07fr;
  gap: 8px;
  margin-bottom: 18px;
}
/* Section-3 Affordability: TWO wider cards instead of three (modifier, not an
   override — the base grid stays 3-up). owner 2026-06-26 */
.cityhub-cv .chart-grid.chart-grid--two { grid-template-columns: 1fr 1fr; gap: 8px; }
/* Wider rows for text labels + price values (home-type budget bars, school names). */
.cityhub-cv .content-viewer .horizontal-bars--wide .area-row { grid-template-columns: 108px minmax(0, 1fr) 52px; }
.cityhub-cv .content-viewer .horizontal-bars--wide .area-row span { white-space: normal; line-height: 1.12; }
/* Module-wide attribution line (e.g. Section-4 schools data/assignment disclaimer). */
.cityhub-cv .content-viewer .cv-report-attribution { font-size: 10px; color: var(--muted-dark); line-height: 1.45; margin: 0 2px 16px; }
.cityhub-cv .chart-card {
  min-height: 248px;
  border: 1px solid #e5e1de;
  border-radius: var(--radius-hard);
  background: #ffffff;
  padding: 13px 13px 11px;
  overflow: hidden;
  box-shadow: 0 7px 18px rgba(37, 37, 37, .06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .45s cubic-bezier(.22, .61, .36, 1);
}
/* Hover-zoom: each report card grows to 1.4x on its own (not the whole row).
   z-index + shadow lift it above its neighbours; per-position transform-origin
   keeps the enlarged card inside the locked .content-viewer instead of being
   clipped — first grows down-right, last down-left, middle straight down.
   Owner 2026-09-06: restored after the blue restyle dropped it; 1.4 = the old
   2x turned down 30%. Do not remove. */
.cityhub-cv .chart-grid > .chart-card:hover {
  border-color: #c9b8b1;
  box-shadow: 0 18px 40px rgba(37, 37, 37, .20);
  transform: scale(1.4);
  transform-origin: top center;
  position: relative;
  z-index: 50;
}
.cityhub-cv .chart-grid > .chart-card:first-child:hover { transform-origin: top left; }
.cityhub-cv .chart-grid > .chart-card:last-child:hover  { transform-origin: top right; }
.cityhub-cv .chart-card :is(h2,:where([data-cv-heading-style="h2"])) {
  font-size: 14px;
  line-height: 1.2;
  font-family: var(--cv-font-serif);
  font-weight: 600;
  margin-bottom: 4px;
}
.cityhub-cv .chart-card p {
  font-size: 9px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.cityhub-cv .donut-layout {
  display: grid;
  grid-template-columns: 114px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  padding-top: 16px;
}
.cityhub-cv .inventory-donut {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  /* Burgundy arc fills to --p (live price-cut share); pale remainder. */
  background: conic-gradient(var(--chart) 0 calc(var(--p, 30) * 1%), var(--hhr-brand-tint,#eadde0) calc(var(--p, 30) * 1%) 100%);
  display: grid;
  place-items: center;
}
.cityhub-cv .donut-center {
  width: 69px;
  height: 69px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--cv-font-heading);
  line-height: 1.05;
}
.cityhub-cv .donut-center strong { font-size: 20px; font-weight: 600; }
.cityhub-cv .donut-center span { font-size: 9px; font-family: var(--cv-font-body); }
.cityhub-cv .donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 8px;
  line-height: 1.35;
}
.cityhub-cv .donut-legend li { position: relative; padding-left: 12px; }
.cityhub-cv .legend-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.cityhub-cv .legend-dot.seller { background: var(--chart); }
.cityhub-cv .legend-dot.balanced { background: #aa9582; }
.cityhub-cv .legend-dot.buyer { background: var(--hhr-brand-tint,#eadde0); border: 1px solid #aa9582; }

.cityhub-cv .bar-chart {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 7px;
  height: 133px;
  margin-top: 12px;
}
.cityhub-cv .y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--cv-font-heading);
  font-size: 10px;
  color: #66615e;
  padding-bottom: 18px;
}
.cityhub-cv .bars {
  display: grid;
  grid-auto-flow: column;            /* count-agnostic: works for 6 price bands or N */
  grid-auto-columns: 1fr;
  align-items: end;
  gap: 10px;
  border-left: 1px solid #e5e1de;
  border-bottom: 1px solid #e5e1de;
  padding: 0 6px 0 8px;
  background: repeating-linear-gradient(to top, transparent 0, transparent 31px, rgba(37, 37, 37,.08) 32px);
}
/* % value label sitting just above each price-band bar */
.cityhub-cv .price-bar em {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-family: var(--cv-font-heading);
  font-size: 8px;
  font-weight: 700;
  color: #252525;
}
.cityhub-cv .price-bar {
  height: var(--bar-height);
  background: var(--chart);
  min-width: 8px;
  position: relative;
}
.cityhub-cv .price-bar span {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  translate: -50% 0;
  font-family: var(--cv-font-heading);
  font-size: 7px;
  line-height: 1;
  white-space: nowrap;
  color: #66615e;
  text-align: center;
}
.cityhub-cv .chart-insight {
  margin-top: 14px;
  min-height: 45px;
  border: 1px solid #e5e1de;
  border-radius: var(--radius-hard);
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  padding: 8px 14px 8px 8px;
  font-size: 10px;
  line-height: 1.45;
  background: #f7f5f3;
}
.cityhub-cv .chart-insight > span:first-child { color: var(--blue); font-size: 23px; }
.cityhub-cv .horizontal-bars {
  display: grid;
  gap: 12px;
  margin-top: 21px;
}
.cityhub-cv .area-row {
  display: grid;
  grid-template-columns: 70px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-family: var(--cv-font-heading);
  font-size: 10px;
}
.cityhub-cv .area-track {
  height: 13px;
  display: block;
  background: var(--hhr-brand-tint,#eadde0);
  border-radius: 2px;
  overflow: hidden;
}
.cityhub-cv .area-track i {
  display: block;
  width: var(--bar-value);
  height: 100%;
  background: var(--chart);
}
.cityhub-cv .area-row em {
  color: var(--text-dark);
  font-style: normal;
  justify-self: end;
  font-size: 10px;
}
.cityhub-cv .source-note {
  text-align: right;
  font-size: 7px;
  margin-top: 28px;
}

/* ==========================================================
   PARAGRAPH CONTENT
   ========================================================== */
.cityhub-cv .content-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: 0 7px 6px;
}
.cityhub-cv .content-two-column p {
  margin: 0 0 13px;
  font-size: 11px;
  line-height: 1.82;
}

/* ==========================================================
   FEATURE CONTENT CARDS
   ========================================================== */
.cityhub-cv .feature-card-grid {
  display: grid;
  grid-template-columns: 1.06fr 1.1fr .95fr;
  gap: 10px;
  margin: 0;
}
.cityhub-cv .feature-content-card {
  min-height: 154px;
  border: 1px solid #e5e1de;
  border-radius: var(--radius-hard);
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 7px 18px rgba(37, 37, 37, .06);
}
.cityhub-cv .feature-content-card.with-image {
  display: grid;
  grid-template-columns: 114px minmax(0,1fr);
}
.cityhub-cv .content-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cityhub-cv .feature-card-copy {
  padding: 19px 11px 12px;
}
.cityhub-cv .feature-content-card :is(h2,:where([data-cv-heading-style="h2"])) {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.cityhub-cv .feature-content-card p {
  font-size: 8px;
  line-height: 1.62;
  margin: 0 0 12px;
}
.cityhub-cv .feature-content-card a {
  font-family: var(--cv-font-heading);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}
.cityhub-cv .market-tip-card {
  padding: 19px 20px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  grid-template-areas: "icon title" "space p1" "space p2";
  column-gap: 13px;
  align-content: start;
}
.cityhub-cv .tip-icon { grid-area: icon; color: var(--gold); font-size: 31px; line-height: 1; }
.cityhub-cv .market-tip-card :is(h2,:where([data-cv-heading-style="h2"])) { grid-area: title; color: var(--navy); font-size: 13px; padding-top: 3px; }
.cityhub-cv .market-tip-card p { grid-column: 2; font-size: 9px; line-height: 1.85; margin: 0 0 5px; }

.cityhub-cv .hidden-content-sections {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ==========================================================
   CTA STRIP
   ========================================================== */
.cityhub-cv .cta-strip {
  width: 100%;
  background: var(--page-bg);
  padding: 16px 22px;
}
.cityhub-cv .cta-strip-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 78px minmax(0,1fr) 194px;
  align-items: center;
  gap: 12px;
  background: #f7f5f3;
  border: 1px solid #d8cfca;
  border-radius: var(--radius-panel);
  color: var(--text-dark);
  padding: 0 24px;
  box-shadow: 0 6px 18px rgba(37, 37, 37,.10);
}
.cityhub-cv .cta-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #d8cfca;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--blue);
  background: #ffffff;
  margin-left: -2px;
}
.cityhub-cv .cta-copy :is(h2,:where([data-cv-heading-style="h2"])) {
  color: var(--text-dark);
  font-family: var(--cv-font-serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 2px;
}
.cityhub-cv .cta-copy p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 10px;
  line-height: 1.45;
}
.cityhub-cv .cta-button {
  justify-self: end;
  min-height: 38px;
  width: 194px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--blue-dark);
  border-radius: var(--radius-hard);
  color: #ffffff;
  background: var(--blue);
  font-family: var(--cv-font-heading);
  font-weight: 800;
  font-size: 12px;
}

/* ==========================================================
   EXPLORE GUIDE CARDS
   ========================================================== */
.cityhub-cv .explore-guide-section {
  background: #ffffff;
  border-top: 1px solid #e5e1de;
  padding: 18px 22px 22px;
}
.cityhub-cv .explore-guide-inner > :is(h2,:where([data-cv-heading-style="h2"])) {
  font-family: var(--cv-font-serif);
  text-align: center;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--navy);
}
.cityhub-cv .explore-guide-inner > p {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.35;
}
.cityhub-cv .explore-guide-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 12px;
}
.cityhub-cv .guide-card {
  --lion-font-heading:Arial,Helvetica,sans-serif;
  min-height: 91px;
  border: 1px solid #e5e1de;
  border-radius: var(--radius-hard);
  background: #ffffff;
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  grid-template-areas: "icon title" "icon body";
  column-gap: 8px;
  padding: 15px 10px 10px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(37, 37, 37,.05);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.cityhub-cv .guide-card:hover { border-color: #c9b8b1; background: var(--blue-soft); box-shadow: 0 8px 18px rgba(37, 37, 37,.09); }
.cityhub-cv .guide-card span { grid-area: icon; font-size: 27px; color: var(--blue); line-height: 1; }
.cityhub-cv .guide-card h3:where(:not([data-cv-heading-style])) { grid-area: title; font-family: var(--cv-font-heading); font-size: 12px; font-weight: 600; line-height: 1.2; }
.cityhub-cv .guide-card p { grid-area: body; margin: 5px 0 0; font-size: 11px; line-height: 1.4; }

/* ==========================================================
   GENERIC PROSE  (Directus section_2..7 payloads inside a .cv-panel)
   ========================================================== */
.cityhub-cv .content-viewer .cv-prose { color: var(--text-dark); max-width: 58rem; }
.cityhub-cv .content-viewer .cv-prose .cv-pending { color: var(--muted-dark); font-style: italic; font-size: 13px; }
.cityhub-cv .content-viewer .cv-prose p:not(:where(.hhr-disclaimer *)):where(:not(.hhr-paragraph-summary *)) { font-size: 14px; line-height: 1.72; margin: 0 0 13px; }
.cityhub-cv .content-viewer .cv-prose :is(h2,:where([data-cv-heading-style="h2"])) {
  font-family: var(--cv-font-serif);
  display: block; width: fit-content; max-width: 85%; box-sizing: border-box;
  padding: 8px 14px;
  border: 0;
  border-left: 3px solid var(--gold);
  border-radius: 0 5px 5px 0;
  background: var(--blue-soft);
  font-size: 22px; font-weight: 500; line-height: 1.22;
  color: var(--navy); letter-spacing: 0; margin: 26px 0 14px;
  text-align: left;
}
.cityhub-cv .content-viewer .cv-prose > :is(h2,:where([data-cv-heading-style="h2"])):first-child { font-size: 23px; margin-top: 4px; }
.cityhub-cv .content-viewer .cv-prose:not(.cv-overview-body) > :is(h2,:where([data-cv-heading-style="h2"])):first-child {
  font-size: 23px; font-weight: 500; line-height: 1.18; margin-top: 2px;
  max-width: 85%; text-align: left;
}

/* ----------------------------------------------------------
   FLOATED EDITORIAL IMAGE (Helen at her desk) — the chapter's
   heading + paragraphs WRAP to the RIGHT of the image, inside
   the same .cv-prose block (owner 2026-06-26: image left, copy
   right, no white-space gap). flow-root contains the float so
   it can't bleed into the metric squares below.
   ---------------------------------------------------------- */
.cityhub-cv .content-viewer .cv-has-float { display: flow-root; }
.cityhub-cv .content-viewer .cv-advice-float {
  display: block;
  float: left;
  width: clamp(220px, 38%, 400px);     /* cap < native 1448px — never upscales */
  margin: 2px 22px 8px 0;              /* gutter so copy doesn't jam the image */
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.cityhub-cv .content-viewer .cv-advice-float img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 1448 / 1086;           /* HELEN-CONSULTATION.webp native ratio */
  object-fit: cover;
}
.cityhub-cv .content-viewer .cv-advice-float + :is(h2,:where([data-cv-heading-style="h2"])) { font-size: 25px; margin-top: 2px; }

/* Reusable per-section feature image (sections 2-7). Float so the body prose wraps
   around it; aspect-ratio is set inline per image (real intrinsic ratio) so it can
   never smoosh; the clamp-max caps below each image's native width so it never
   upscales/blurs. owner 2026-06-26 */
.cityhub-cv .content-viewer .cv-section-banner {
  display: block;
  width: 100%;
  margin: 6px 0 22px;
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.cityhub-cv .content-viewer .cv-section-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cityhub-cv .content-viewer .cv-section-float {
  display: block;
  float: left;
  width: clamp(260px, 46%, 560px);
  margin: 4px 26px 14px 0;             /* gutter so copy doesn't jam the image */
  border-radius: var(--radius-panel);
  overflow: hidden;
  cursor: zoom-in;                     /* signals the hover-to-expand below */
}
.cityhub-cv .content-viewer .cv-section-float--right { float: right; margin: 4px 0 14px 26px; }
.cityhub-cv .content-viewer .cv-section-float img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform-origin: left center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.cityhub-cv .content-viewer .cv-section-float--right img { transform-origin: right center; }

.cityhub-cv .content-viewer .cv-section-float:hover { overflow: visible; position: relative; z-index: 1000; }
.cityhub-cv .content-viewer .cv-section-float:hover img {
  transform: scale(1.03);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(37, 37, 37,.18);
}
.cityhub-cv .content-viewer .cv-section-float + :is(h2,:where([data-cv-heading-style="h2"])) { font-size: 25px; margin-top: 2px; }
.cityhub-cv .content-viewer .cv-prose h3:where(:not([data-cv-heading-style])):where(:not(.hhr-paragraph-summary *)) {
  font-family: var(--cv-font-heading);
  font-size: 16px; font-weight: 800; color: var(--bronze); margin: 20px 0 6px;
}
.cityhub-cv .content-viewer .cv-prose a:where(:not(.hhr-paragraph-summary *)) { color: var(--blue); text-decoration: underline; }
.cityhub-cv .content-viewer .cv-prose ul,
.cityhub-cv .content-viewer .cv-prose ol { font-size: 14px; line-height: 1.7; margin: 0 0 13px; padding-left: 22px; }
.cityhub-cv .content-viewer .cv-prose li { margin: 0 0 5px; }
.cityhub-cv .content-viewer .cv-prose table:where(:not(.hhr-paragraph-summary *)) { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 14px 0 18px; }
.cityhub-cv .content-viewer .cv-prose caption:where(:not(.hhr-paragraph-summary *)) { text-align: left; font-weight: 700; font-family: var(--cv-font-heading); padding: 0 0 6px; }
.cityhub-cv .content-viewer .cv-prose th:where(:not(.hhr-paragraph-summary *)),
.cityhub-cv .content-viewer .cv-prose td:where(:not(.hhr-paragraph-summary *)) { border: 1px solid #e5e1de; padding: 7px 10px; text-align: left; vertical-align: top; }
.cityhub-cv .content-viewer .cv-prose thead th:where(:not(.hhr-paragraph-summary *)),
.cityhub-cv .content-viewer .cv-prose th:where(:not(.hhr-paragraph-summary *)) { background: var(--blue-soft); font-family: var(--cv-font-heading); font-weight: 700; }
.cityhub-cv .content-viewer .cv-prose tbody tr:nth-child(even) td:where(:not(.hhr-paragraph-summary *)) { background: #fcfbfa; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .cityhub-cv {
    --hero-height: 176px;
    --sidebar-width: 1fr;
    width: 100%;
    margin-top: 16px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .cityhub-cv .guide-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cityhub-cv .guide-nav::-webkit-scrollbar { display: none; }
  .cityhub-cv .guide-nav-inner { min-width: 820px; }
  .cityhub-cv .header-content { padding: 0; }
  .cityhub-cv .brand-copy { max-width: 100%; }
  .cityhub-cv .cv-main { display: contents; }
  .cityhub-cv .page-body {
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
    position: static;
    height: auto;
    overflow: visible;
  }
  .cityhub-cv .guide-header { order: 1; }
  .cityhub-cv .content-viewer {
    order: 3;
    flex: 0 0 auto;
    height: 1121.25px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .cityhub-cv .toc-sidebar {
    order: 2;
    padding: 14px 18px 12px;
    background: #f7f5f3;
    border-right: 0;
    border-bottom: 1px solid #e5e1de;
    overflow: hidden;
  }
  .cityhub-cv .toc-sticky { position: static; }
  .cityhub-cv .toc-title { margin: 0 2px 10px; }
  .cityhub-cv .toc-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .cityhub-cv .toc-list::-webkit-scrollbar { display: none; }
  .cityhub-cv .toc-link {
    flex: 0 0 min(70vw, 320px);
    scroll-snap-align: start;
    border-color: #e5e1de;
    background: #ffffff;
  }
  .cityhub-cv .sidebar-cta { display: none; }
  .cityhub-cv .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cityhub-cv .chart-grid { grid-template-columns: 1fr; }
  .cityhub-cv .chart-grid.chart-grid--two { grid-template-columns: 1fr; }
  .cityhub-cv .feature-card-grid { grid-template-columns: 1fr; }
  .cityhub-cv .cta-strip-inner { grid-template-columns: 48px 1fr; padding: 16px; }
  .cityhub-cv .cta-button { grid-column: 2; justify-self: start; }
  .cityhub-cv .explore-guide-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .cityhub-cv { --hero-height: auto; }
  .cityhub-cv .guide-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .cityhub-cv .header-content { grid-column: 1; grid-row: 1; }
  .cityhub-cv .guide-nav { height: 58px; }
  .cityhub-cv .guide-nav-inner { min-width: 760px; padding: 6px; }
  .cityhub-cv .guide-nav-link { font-size: 10px; }
  .cityhub-cv .header-content { padding: 0; }
  .cityhub-cv .cv-agent-card { width: 100%; margin: 0; }
  .cityhub-cv .title-block .cv-guide-title { font-size: 30px; }
  .cityhub-cv .title-block p { font-size: 11px; line-height: 1.42; }
  .cityhub-cv .cv-guide-meta { gap: 10px; font-size: 9px; flex-wrap: wrap; }
  .cityhub-cv .section-heading-row { grid-template-columns: 1fr; }
  .cityhub-cv .date-pill { justify-self: start; }
  .cityhub-cv .metric-grid,
  .cityhub-cv .content-two-column,
  .cityhub-cv .explore-guide-grid { grid-template-columns: 1fr; }
  .cityhub-cv .toc-link { flex-basis: min(82vw, 310px); }
  .cityhub-cv .guide-card { min-height: 86px; }
  .cityhub-cv .content-viewer { height: 1056.25px; padding: 18px 16px 22px; }
  .cityhub-cv .cta-strip { padding: 12px; }
  .cityhub-cv .cta-strip-inner { grid-template-columns: 42px minmax(0,1fr); }
  .cityhub-cv .cta-button { width: 100%; }
  .cityhub-cv .explore-guide-section { padding: 16px; }
}
