/* =============================================================================
   CA Landlord Laws — Topic page shared styles
   Used by all "topic" / "scenario" / "form" / "city" deep-dive pages.
   Designed to be the only CSS link on these pages (deduplicates ~40 lines × 120 pages).
   ============================================================================= */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.breadcrumb { padding: 10px 0; font-size: .8rem; color: #6b7280; }
.breadcrumb a { color: #0057A8; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #0057A8 55%, #003d7a 100%);
  color: #fff;
  padding: 54px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .tag {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.15;
}
.hero h1 em { color: #F5A623; font-style: normal; }
.hero p {
  font-size: 1rem;
  opacity: .9;
  margin: 0 auto;
  max-width: 620px;
}

/* ── TL;DR block ──────────────────────────────────────────────────────── */
.tldr {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 5px solid #d97706;
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
}
.tldr .label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #92400e;
  margin-bottom: 6px;
}
.tldr p {
  font-size: 1rem;
  color: #78350f;
  line-height: 1.6;
  margin: 0;
  font-weight: 600;
}

/* ── Section ──────────────────────────────────────────────────────────── */
.section { padding: 28px 0 8px; background: #fff; }
.section h2 {
  font-size: 1.32rem;
  font-weight: 800;
  color: #0057A8;
  margin: 28px 0 12px;
  padding-top: 12px;
  border-top: 2px solid #e5e7eb;
}
.section h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.section h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: #0a1628;
  margin: 20px 0 8px;
}
.section p {
  color: #374151;
  font-size: .95rem;
  line-height: 1.7;
  margin: 0 0 12px;
}
.section ul, .section ol {
  margin: 0 0 14px 22px;
  color: #374151;
  font-size: .95rem;
  line-height: 1.7;
}
.section li { margin-bottom: 6px; }

/* ── Key-rule / pull-out ──────────────────────────────────────────────── */
.key-rule {
  background: #eff6ff;
  border-left: 4px solid #0057A8;
  padding: 14px 20px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  font-size: .92rem;
  color: #1e3a5f;
}
.key-rule strong { color: #0a1628; }

/* ── Alerts ───────────────────────────────────────────────────────────── */
.alert {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: .9rem;
}
.alert.red    { background: #fef2f2; border-left: 4px solid #dc2626; color: #991b1b; }
.alert.amber  { background: #fffbeb; border-left: 4px solid #d97706; color: #92400e; }
.alert.green  { background: #f0fdf4; border-left: 4px solid #16a34a; color: #166534; }
.alert .label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .4px;
  margin-bottom: 4px;
}

/* ── Tables ───────────────────────────────────────────────────────────── */
.section table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: .9rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.section th {
  background: #0057A8;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: .82rem;
}
.section td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}
.section tr:last-child td { border-bottom: none; }

/* ── Step list ────────────────────────────────────────────────────────── */
.step-list { counter-reset: step; margin: 16px 0; }
.step-list .step {
  position: relative;
  padding: 14px 18px 14px 62px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.step-list .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px; top: 14px;
  width: 34px; height: 34px;
  background: #0057A8;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}
.step-list .step h4 {
  font-size: .98rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 5px;
}
.step-list .step p {
  font-size: .88rem;
  color: #444;
  margin: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-section { margin-top: 36px; }
.faq-section h2 {
  font-size: 1.32rem;
  font-weight: 800;
  color: #0057A8;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}
.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq-item h3 {
  font-size: .96rem;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 6px;
}
.faq-item p {
  font-size: .9rem;
  color: #374151;
  margin: 0;
  line-height: 1.6;
}

/* ── Cross-links block ────────────────────────────────────────────────── */
.cross-link {
  background: #f8fafc;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
}
.cross-link h3 {
  font-size: .95rem;
  color: #0057A8;
  margin: 0 0 8px;
  font-weight: 700;
}
.cross-link ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.cross-link li { margin-bottom: 6px; }
.cross-link a { color: #0057A8; text-decoration: none; font-weight: 600; }
.cross-link a:hover { text-decoration: underline; }

/* ── Sample form / verbatim text block ───────────────────────────────── */
.verbatim {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: .86rem;
  color: #1e293b;
  white-space: pre-wrap;
  line-height: 1.55;
}
.verbatim .label {
  font-family: var(--font, 'Segoe UI', system-ui, sans-serif);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #475569;
  margin-bottom: 8px;
  display: block;
}

/* ── Bottom CTA ───────────────────────────────────────────────────────── */
.cta {
  background: #0a1628;
  color: #fff;
  padding: 36px 0;
  text-align: center;
  margin-top: 36px;
}
.cta h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.cta p {
  opacity: .88;
  margin: 0 auto;
  max-width: 520px;
  font-size: .95rem;
}
.cta a {
  display: inline-block;
  background: #F5A623;
  color: #0a1628;
  padding: 12px 26px;
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
  margin-top: 14px;
}
.cta a:hover { background: #e09615; }

/* ── Hero background image with darkening scrim (optional) ───────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,.45) 0%, rgba(10,22,40,.75) 100%);
  pointer-events: none;
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }
