/* ═══════════════════════════════════════════════════════════
   NestVerdict — Shared Guide/Article Styles
   Used by /guides/ index and every individual post.
═══════════════════════════════════════════════════════════ */

.guide-hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 32px;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
}
.guide-hero__inner { max-width: 720px; }
.guide-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--teal-dim);
  color: var(--teal-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.guide-hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 12px;
}
.guide-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 12px;
}
.guide-hero__dek {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 14px;
}
.guide-hero__meta {
  font-size: 13px;
  color: var(--gray-400);
}

.guide-cover {
  margin-top: 28px;
}
.guide-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: block;
}

.guide-list-card__cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  display: block;
}

.guide-article {
  padding: 40px 0 60px;
}
.guide-article__body {
  max-width: 680px;
  margin: 0 auto;
}
.guide-article__body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 14px;
}
.guide-article__body h2:first-child { margin-top: 0; }
.guide-article__body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}
.guide-article__body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-base);
  margin-bottom: 16px;
}
.guide-article__body ul,
.guide-article__body ol {
  margin: 0 0 16px 22px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-base);
}
.guide-article__body li { margin-bottom: 6px; }
.guide-article__body strong { color: var(--navy); }
.guide-article__body a { color: var(--teal-text); font-weight: 600; }

.guide-callout {
  background: var(--teal-dim);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-base);
}
.guide-callout strong { color: var(--navy); }

.guide-tool-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 32px 0;
}
.guide-tool-cta__text h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.guide-tool-cta__text p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.guide-disclaimer {
  max-width: 680px;
  margin: 40px auto 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

.guide-back-link {
  display: block;
  max-width: 680px;
  margin: 0 auto 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal-text);
}

/* ── Hub / listing page ─────────────────────────────────── */
.guides-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.guide-list-card {
  display: block;
  padding: 24px 4px;
  border-bottom: 1px solid var(--gray-100);
}
.guide-list-card:first-child { padding-top: 0; }
.guide-list-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.guide-list-card:hover .guide-list-card__title { color: var(--teal-text); }
.guide-list-card__dek {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── In-article diagrams (illustrative, not precise data — labeled as such in copy) ── */
.guide-diagram {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  margin: 28px 0;
}
.guide-diagram__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 18px;
}

/* Equity progress bar (PMI post) — single-series magnitude bar with two
   threshold markers; real, universal thresholds, not fabricated data. */
.equity-bar {
  position: relative;
  height: 10px;
  background: var(--gray-100);
  border-radius: 100px;
  margin: 8px 0 28px;
}
.equity-bar__fill {
  height: 100%;
  width: 20%;
  background: var(--teal);
  border-radius: 100px;
}
.equity-bar__marker {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 22px;
  background: var(--navy);
}
.equity-bar__endlabel {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-400);
}
.equity-bar__legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}
.equity-bar__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-base);
}
.equity-bar__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}

/* Breakeven timeline (rent-vs-buy post) — schematic, not literal data;
   copy makes clear the crossover point varies by market. */
.breakeven-bar {
  position: relative;
  height: 34px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
}
.breakeven-bar__segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}
.breakeven-bar__segment--rent { background: var(--gray-400); width: 40%; }
.breakeven-bar__segment--buy { background: var(--teal); flex: 1; }
.breakeven-bar__scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-400);
}

@media (max-width: 480px) {
  .guide-tool-cta { flex-direction: column; align-items: flex-start; }
}
