/* ==========================================================================
   ADDITIONAL COMPONENT STYLES (matching template class names)
   ========================================================================== */

/* --- Buttons --- */
.btn--gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.85rem;
  font-weight: 600;
  font-size: clamp(0.92rem, 1vw, 1.0625rem);
  letter-spacing: 0.005em;
  color: #0a0a0a;
  background-color: #c9a84c;
  border-radius: 50px;
  border: 1.5px solid #c9a84c;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
  background-color: #d4b45a;
  border-color: #d4b45a;
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.85rem;
  font-weight: 600;
  font-size: clamp(0.92rem, 1vw, 1.0625rem);
  letter-spacing: 0.005em;
  color: #fff;
  background-color: transparent;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, color 0.2s, background-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--outline:hover {
  border-color: #c9a84c;
  background-color: rgba(201, 168, 76, 0.08);
  color: #c9a84c;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 11vw, 9rem) 0 clamp(4rem, 7vw, 6rem);
  overflow: hidden;
}
.hero--short {
  min-height: 44vh;
  padding: clamp(7rem, 11vw, 9rem) 0 clamp(3rem, 5vw, 4.5rem);
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero__subtitle {
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 2.25rem;
}
.hero__subtitle-legal {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* --- Cards --- */
.card--tilted {
  transform: rotate(-2deg);
}
.card--tilted:nth-child(even) {
  transform: rotate(2deg);
}
.card--tilted:hover {
  transform: rotate(0deg) translateY(-4px);
}
.card__zone {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9a84c;
  margin-bottom: 0.5rem;
}
.card__stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

/* --- Stat Boxes --- */
.stat-box {
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
}
.stat-number {
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #c9a84c;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}
.section--light .stat-label {
  color: rgba(26,26,26,0.6);
}

/* --- Process Timeline --- */
.process-timeline {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}
.process-step {
  flex: 0 0 auto;
  width: 200px;
  text-align: center;
  scroll-snap-align: start;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.section--light .process-step {
  background: rgba(255,255,255,0.7);
  border-color: rgba(13, 43, 30, 0.2);
}
.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c9a84c;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.process-step__title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.process-step__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.section--light .process-step__desc {
  color: rgba(26,26,26,0.6);
}

@media (max-width: 768px) {
  .process-timeline {
    flex-direction: column;
    align-items: stretch;
  }
  .process-step {
    width: 100%;
  }
  .hero__stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Data Tables --- */
.sortable-table th {
  cursor: pointer;
  user-select: none;
  position: relative;
}
.sortable-table th::after {
  content: ' \2195';
  font-size: 0.7em;
  opacity: 0.4;
}
.sortable-table th.sort-asc::after {
  content: ' \2191';
  opacity: 1;
}
.sortable-table th.sort-desc::after {
  content: ' \2193';
  opacity: 1;
}

/* --- Disclaimer Text --- */
.disclaimer-text {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
}
.section--light .disclaimer-text {
  color: rgba(26,26,26,0.4);
}

/* --- FAQ Sections --- */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
}
.section--light .faq-item {
  border-bottom-color: rgba(0,0,0,0.1);
}
.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  color: inherit;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item--open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  line-height: 1.7;
}
.faq-item--open .faq-answer {
  max-height: 500px;
  padding-bottom: 0.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #c9a84c;
}
.breadcrumb span {
  margin: 0 0.4rem;
}

/* --- Warning Box --- */
.warning-box {
  background: rgba(255, 100, 50, 0.1);
  border: 1px solid rgba(255, 100, 50, 0.4);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.warning-box strong {
  color: #ff6432;
}

/* --- Disclaimer Highlight Box --- */
.disclaimer-highlight {
  background: rgba(201, 168, 76, 0.08);
  border-left: 4px solid #c9a84c;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Legal Content --- */
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: #0d2b1e;
}
.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.15rem;
  color: #1a4a2e;
}
.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
}
.legal-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #1a1a1a;
}

/* --- Scorecard Bars --- */
.scorecard-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.scorecard-bar__label {
  width: 120px;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.scorecard-bar__track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.scorecard-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #c9a84c, #e8c860);
  border-radius: 4px;
  transition: width 1s ease;
}
.scorecard-bar__value {
  width: 36px;
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
  color: #c9a84c;
}

/* --- Container Narrow --- */
.container--narrow {
  max-width: 800px;
}

/* --- Updated At Badge --- */
.updated-badge {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.section--light .updated-badge {
  color: rgba(26,26,26,0.4);
}

/* --- TOC Sidebar --- */
.toc-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(123, 47, 255, 0.2);
}
.toc-sidebar a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}
.toc-sidebar a:hover,
.toc-sidebar a.toc-link--active {
  color: #c9a84c;
  border-left-color: #c9a84c;
}

@media (max-width: 768px) {
  .toc-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 2rem;
  }
}

/* --- Neighborhood Card Grid --- */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.neighborhood-card {
  padding: 1.5rem;
  border-radius: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.neighborhood-card:hover {
  transform: translateY(-4px);
}
.neighborhood-card__name {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.neighborhood-card__price {
  font-weight: 600;
  color: #c9a84c;
  font-size: 1rem;
}
.neighborhood-card__score {
  font-size: 0.85rem;
  opacity: 0.7;
}
.neighborhood-card__note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.neighborhood-card__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #c9a84c;
  text-decoration: none;
}
.neighborhood-card__link:hover {
  text-decoration: underline;
}

/* --- Wave Divider --- */
.wave-divider {
  height: 60px;
  position: relative;
  overflow: hidden;
}
.wave-divider--dark-to-light {
  background: var(--canvas-green, #0d2b1e);
}
.wave-divider--dark-to-light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fafaf8;
  clip-path: ellipse(55% 60% at 50% 100%);
}
.wave-divider--light-to-dark {
  background: #fafaf8;
}
.wave-divider--light-to-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--canvas-green, #0d2b1e);
  clip-path: ellipse(55% 60% at 50% 100%);
}

/* --- Footer --- */
.footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.75rem;
}
.footer .container {
  max-width: 1280px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer__logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #c9a84c;
  text-decoration: none;
  display: block;
  margin-bottom: 0.85rem;
}
.footer__tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin-bottom: 0.65rem;
  max-width: 32ch;
}
.footer__updated {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.5;
}
.footer__heading {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c9a84c;
  margin-bottom: 0.9rem;
}
.footer__link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  padding: 0.18rem 0;
  line-height: 1.35;
  transition: color 0.2s, transform 0.2s;
}
.footer__link:hover {
  color: #c9a84c;
  transform: translateX(2px);
}
.footer__col {
  min-width: 0;
  align-self: start;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.footer__disclaimer {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.footer__copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.42);
  margin: 0;
}
.footer__legal {
  font-size: 0.78rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.3rem 0 0.4rem;
}
.footer__legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__legal a:hover {
  color: #c9a84c;
}
.footer__credit {
  font-size: 0.75rem;
  color: rgba(201, 168, 76, 0.55);
  margin: 0.5rem 0 0;
}
.footer__credit a {
  color: rgba(201, 168, 76, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__credit a:hover {
  color: #d4b45a;
}


/* ==========================================================================
   GUIDE EDITORIAL SYSTEM — figures, callouts & prose rhythm
   Breaks up long-form text walls on guide / neighborhood / outside-Rio pages.
   Shared across EN/FR/DE/ES (single source of truth).
   ========================================================================== */

/* Scope: only the four long-form guide pages carry <body class="guide-page">
   (added by build.py). Keeps prose rhythm off the homepage / neighborhood
   pages, which share .section / .container but are already image-rich.
   Structure differs per guide — buying_guide wraps sections in <article>,
   the others in <div class="container"> — so we target descendants of
   .section (excluding the hero), which holds for every guide. */

/* --- Anchored sections clear the fixed nav when jumped to --- */
.guide-page .section[id] { scroll-margin-top: 100px; }

/* --- Prose breathing: stop paragraphs/lists from clumping --- */
.guide-page .section:not(.hero) p {
  line-height: 1.78;
  margin-bottom: 1.25rem;
}
.guide-page .section:not(.hero) ul,
.guide-page .section:not(.hero) ol {
  margin: 1.4rem 0;
  padding-left: 1.4rem;
}
.guide-page .section:not(.hero) li {
  margin-bottom: 0.7rem;
  line-height: 1.7;
  padding-left: 0.25rem;
}

/* Lead paragraph — first paragraph of a section reads larger.
   An editorial <figure> is injected between the H2 and the first <p>,
   so match both the direct-sibling and the post-figure cases. */
.guide-page .section:not(.hero) h2 + p,
.guide-page .section:not(.hero) h2 + .guide-figure + p {
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
}
.guide-page .section--light h2 + p,
.guide-page .section--light h2 + .guide-figure + p { color: rgba(10,10,10,0.78); }

/* Sub-section headings get air + a gold tick so the eye can find structure */
.guide-page .section:not(.hero) h3 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  padding-left: 0.95rem;
  position: relative;
  font-size: clamp(1.2rem, 1.5vw + 0.4rem, 1.55rem);
}
.guide-page .section:not(.hero) h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #c9a84c, #8a6f2a);
}
.guide-page .section:not(.hero) h2 + h3 { margin-top: 1.25rem; }

/* Any box element gets guaranteed separation from surrounding text */
.guide-page .section :is(
  .card, .card--light, .card--dark, .warning-box,
  .data-table-wrapper, .disclaimer-highlight,
  .guide-figure, .callout, .key-facts
) {
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}

/* ---------------------------------------------------------------------------
   Guide figure — the primary text-breaker (image + caption)
   --------------------------------------------------------------------------- */
.guide-figure {
  margin: 2.5rem 0;
  border-radius: var(--radius-card, 22px);
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 50px -18px rgba(0,0,0,0.55);
  background: #0a0a0a;
  isolation: isolate;
}
.guide-figure img {
  display: block;
  width: 100%;
  height: clamp(240px, 38vw, 460px);
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.guide-figure:hover img { transform: scale(1.035); }

.guide-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.75rem 1.6rem 1.15rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.78) 70%);
  letter-spacing: 0.01em;
}
.guide-figure figcaption b,
.guide-figure figcaption strong { color: #e2c879; font-weight: 600; }

/* Thin gold hairline frame ties figures to the brand */
.guide-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(201,168,76,0.28);
  pointer-events: none;
}

.guide-figure--tall img { height: clamp(320px, 52vw, 600px); }
.guide-figure--short img { height: clamp(180px, 26vw, 300px); }

/* Side-by-side image + pull text (alternating bands) */
.guide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
  margin: 2.75rem 0;
}
.guide-split .guide-figure { margin: 0; }
.guide-split--reverse .guide-figure { order: 2; }
.guide-split__body { font-size: 1rem; line-height: 1.75; }
.guide-split__body h3 { margin-top: 0 !important; }

/* ---------------------------------------------------------------------------
   Callout boxes — pull key info out of the prose stream
   --------------------------------------------------------------------------- */
.callout {
  position: relative;
  border-radius: var(--radius-md, 12px);
  padding: 1.4rem 1.6rem 1.4rem 3.4rem;
  margin: 2.25rem 0;
  font-size: 0.97rem;
  line-height: 1.65;
  background: rgba(201,168,76,0.09);
  border: 1px solid rgba(201,168,76,0.32);
}
.callout::before {
  content: 'i';
  position: absolute;
  left: 1.15rem;
  top: 1.3rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: normal;
  color: #0a0a0a;
  background: #c9a84c;
}
.callout strong:first-child { display: block; margin-bottom: 0.3rem; color: #d4b45a; }
.section--light .callout strong:first-child { color: #8a6f2a; }

.callout--tip { background: rgba(26,74,46,0.14); border-color: rgba(26,74,46,0.4); }
.callout--tip::before { content: '\2713'; background: #2e7d4f; color: #fff; }
.callout--tip strong:first-child { color: #5fae7e; }
.section--light .callout--tip { background: rgba(26,74,46,0.08); }
.section--light .callout--tip strong:first-child { color: #1a4a2e; }

.callout--key { background: rgba(123,47,255,0.10); border-color: rgba(157,78,221,0.38); }
.callout--key::before { content: '\2605'; background: linear-gradient(135deg,#7b2fff,#9d4edd); color:#fff; }
.callout--key strong:first-child { color: #b98bff; }
.section--light .callout--key strong:first-child { color: #6a23c9; }

/* ---------------------------------------------------------------------------
   Key-facts strip — compact at-a-glance stat row inside an article
   --------------------------------------------------------------------------- */
.key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  background: rgba(201,168,76,0.28);
  border: 1px solid rgba(201,168,76,0.28);
}
.key-facts__item {
  background: var(--surface-on-green, #16462e);
  padding: 1.4rem 1.25rem;
  text-align: center;
}
.section--light .key-facts__item { background: var(--surface-on-white, #ffffff); }
.key-facts__num {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  color: #c9a84c;
  line-height: 1.1;
}
.key-facts__label {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.4;
}
.section--light .key-facts__label { color: rgba(10,10,10,0.55); }

/* Section intro divider flourish under H2 */
.guide-page .section:not(.hero) h2 {
  position: relative;
  padding-bottom: 0.65rem;
}
.guide-page .section:not(.hero) h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c9a84c, rgba(201,168,76,0));
}

@media (max-width: 768px) {
  .guide-split { grid-template-columns: 1fr; }
  .guide-split--reverse .guide-figure { order: 0; }
  .guide-figure img { height: clamp(200px, 56vw, 320px); }
  .callout { padding-left: 3rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL PRIMITIVES — added 2026-05-27
   Use these to break up running-text walls anywhere on the site. Works inside
   any .section (light or dark). Standalone classes — no .guide-page wrapper
   required, so the homepage and neighborhood pages can use them too.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------------------------------------------------------------------------
   Bleed figure — cinematic edge-to-edge image with gradient caption overlay.
   Pulls outside the .container max-width to span the full section width.
   --------------------------------------------------------------------------- */
.bleed-figure {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  width: 100vw;
  overflow: hidden;
  background: #0a0a0a;
  isolation: isolate;
}
.bleed-figure img,
.bleed-figure picture {
  display: block;
  width: 100%;
  height: clamp(320px, 60vw, 640px);
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.16,1,.3,1);
}
.bleed-figure:hover img { transform: scale(1.03); }

.bleed-figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 80%);
  color: rgba(255,255,255,0.94);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  max-width: 1200px;
}
.bleed-figure__caption strong,
.bleed-figure__caption b { color: #e2c879; font-weight: 600; }

.bleed-figure__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Pull-quote — large gold-marked editorial quote that breaks the prose flow.
   --------------------------------------------------------------------------- */
.pull-quote {
  position: relative;
  margin: clamp(2.5rem, 5vw, 4rem) auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  max-width: 720px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35;
  font-weight: 300;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.95);
  font-style: italic;
}
.pull-quote::before {
  content: '\201C';  /* opening curly quote */
  position: absolute;
  left: 0;
  top: -0.4em;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  color: #c9a84c;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-weight: 400;
}
.pull-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.85);
  font-weight: 600;
}
.section--light .pull-quote { color: rgba(10,10,10,0.86); }
.section--light .pull-quote::before { color: #8a6f2a; }
.section--light .pull-quote cite { color: rgba(138,111,42,0.9); }

/* ---------------------------------------------------------------------------
   Bar chart — horizontal price/value bars, pure CSS. No JS, no SVG.
   Pass --w as inline style on each row to set bar fill % (0-100).
   --------------------------------------------------------------------------- */
.bar-chart {
  margin: clamp(2rem, 4vw, 3rem) 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-card, 22px);
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.22);
}
.bar-chart__title {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a84c;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 30%) 1fr auto;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 1.2rem);
  margin: 0.85rem 0;
  font-size: 0.95rem;
}
.bar-row__label {
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  line-height: 1.3;
}
.bar-row__track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.bar-row__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: 6px;
  background: linear-gradient(90deg, #c9a84c, #d4b45a);
  box-shadow: 0 0 16px -4px rgba(201,168,76,0.55);
}
.bar-row__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #d4b45a;
  white-space: nowrap;
  font-size: 0.92rem;
}
/* Color-coded fill variants for tiering */
.bar-row--premium .bar-row__fill { background: linear-gradient(90deg, #c9a84c, #e2c879); }
.bar-row--mid .bar-row__fill { background: linear-gradient(90deg, #7b2fff, #9d4edd); }
.bar-row--mid .bar-row__value { color: #b98bff; }
.bar-row--frontier .bar-row__fill { background: linear-gradient(90deg, #2e7d4f, #5fae7e); }
.bar-row--frontier .bar-row__value { color: #5fae7e; }

.section--light .bar-chart { background: rgba(201,168,76,0.07); }
.section--light .bar-row__label { color: rgba(10,10,10,0.86); }
.section--light .bar-row__track { background: rgba(10,10,10,0.08); }
.section--light .bar-row__value { color: #8a6f2a; }

@media (max-width: 640px) {
  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .bar-row__value { justify-self: end; }
}

/* ---------------------------------------------------------------------------
   Editorial band — alternating image + text grid, cinematic spacing.
   Wraps three or more side-by-side bands into a stacked narrative flow.
   --------------------------------------------------------------------------- */
.editorial-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin: clamp(3rem, 6vw, 5rem) 0;
}
.editorial-band--reverse { direction: rtl; }
.editorial-band--reverse > * { direction: ltr; }

.editorial-band__media {
  position: relative;
  border-radius: var(--radius-card, 22px);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  isolation: isolate;
  aspect-ratio: 4 / 3;
}
.editorial-band__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.editorial-band__media:hover img { transform: scale(1.04); }
.editorial-band__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(201,168,76,0.25);
  pointer-events: none;
  z-index: 1;
}
.editorial-band__media-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(0,0,0,0.55);
  color: #e2c879;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.editorial-band__body h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.editorial-band__body h3 .tier-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a84c;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.editorial-band__body p { font-size: 1rem; line-height: 1.7; }
.editorial-band__body p:last-child { margin-bottom: 0; }

.editorial-band__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1.2rem 0;
}
.editorial-band__stats > div {
  padding: 0.85rem 1rem;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 10px;
}
.editorial-band__stats .num {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d4b45a;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.editorial-band__stats .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.25rem;
}
.section--light .editorial-band__stats > div { background: rgba(201,168,76,0.08); }
.section--light .editorial-band__stats .lbl { color: rgba(10,10,10,0.55); }

@media (max-width: 880px) {
  .editorial-band {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .editorial-band--reverse { direction: ltr; }
  .editorial-band__media { aspect-ratio: 16 / 10; }
}

/* Caption credit line — small attribution line under a figure */
.media-credit {
  display: block;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.42);
  font-style: italic;
}
.section--light .media-credit { color: rgba(10,10,10,0.42); }
