/* Placentia Leak Repair Experts — Reference Design System v2.7
   Locked layout per network standard (Cerritos/Altadena/Maricopa-style).
   Per-site palette only: --primary (deep brick-red) / --accent (warm amber).
   WCAG AA verified: primary on white 9.37:1 | white on primary 9.37:1 |
   white on accent 5.02:1 (accent-text = white, not dark, per AA check) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #7C2D12;
  --primary-dark:  #4B1B0B;
  --primary-light: #AD3F19;
  --accent:        #B45309;
  --accent-dark:   #7F3A06;
  --accent-light:  #E96C0C;
  --accent-text:   #FFFFFF;

  --text-base:  #1e293b;
  --text-muted: #4a5568;
  --text-light: #5c6b7f;

  --bg-alt: #fafbfc;
  --border: #e2e8f0;
  --white:  #FFFFFF;

  --radius:    6px;
  --radius-lg: 10px;
  --shadow:    0 2px 8px rgba(15,31,46,0.08);
  --shadow-lg: 0 8px 24px rgba(15,31,46,0.12);
  --transition: 0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-base);
  background: #fff;
}

h1,h2,h3,h4,h5 { font-weight: 800; line-height: 1.25; color: #0f1f2e; }
h1 { font-size: clamp(1.625rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--primary); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p  { margin-bottom: 0.9em; max-width: 72ch; color: var(--text-base); }
p:last-child { margin-bottom: 0; }
a  { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--primary-dark); }
ul,ol { padding-left: 1.4em; margin-bottom: 0.9em; }
li { margin-bottom: 0.3em; }
strong { font-weight: 700; }
em.city-accent { font-style: italic; color: var(--primary); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 0.6rem 1rem;
  z-index: 1000; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, .btn-primary:focus-visible,
.btn-secondary:focus-visible, .nav-phone:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--primary); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.88); }
.section-dark a { color: var(--white); text-decoration: underline; }

.top-strip {
  display: block;
  background: var(--primary);
  height: 4px;
  transition: background var(--transition);
}
.top-strip:hover { background: var(--primary-dark); }
.top-strip:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 1px; }

.site-header {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 400;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1rem;
}
.logo-lockup { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { line-height: 1.2; }
.logo-name { display: block; font-weight: 800; font-size: 1.02rem; color: #0f1f2e; }
.logo-sub  { display: block; font-size: 0.7rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.03em; }

.nav-menu { display: flex; align-items: center; gap: 0.15rem; flex: 1; justify-content: center; }
.nav-menu > li { list-style: none; position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-base);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { background: var(--bg-alt); color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  z-index: 410;
  padding: 0.5rem 0;
  list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-base);
  text-decoration: none;
}
.nav-dropdown-menu li a:hover { background: var(--bg-alt); color: var(--primary); }

.nav-phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  flex-shrink: 0;
  min-height: 44px;
  transition: background var(--transition);
}
.nav-phone:hover { background: var(--accent-dark); color: var(--accent-text); }
.nav-phone svg { width: 17px; height: 17px; flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--primary);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 26px; height: 26px; }

.hero {
  background: #fff;
  padding: 3rem 0 0;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero-sub { font-size: 1.08rem; color: var(--text-muted); max-width: 68ch; margin-bottom: 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-image-wrap { margin-bottom: 0; }
.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}

.trust-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  margin-top: 2.25rem;
}
.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-base);
}
.trust-item { display: flex; align-items: center; gap: 0.35rem; }
.trust-item svg { color: var(--primary); flex-shrink: 0; width: 16px; height: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  min-height: 44px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; border: 1.5px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: var(--bg-alt); color: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--accent-text); border: 1.5px solid var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-text); }
.btn-amber { background: var(--accent); color: var(--accent-text); border: 1.5px solid var(--accent); }
.btn-amber:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-text); }
.btn-green { background: var(--primary); color: #fff; border: 1.5px solid var(--primary); }
.btn-green:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.75); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-card .card-glyph { font-size: 1.6rem; margin-bottom: 0.6rem; display: block; }
.service-card h3 { font-size: 1.02rem; margin-bottom: 0.5rem; color: #0f1f2e; }
.service-card p { font-size: 0.89rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.service-card a.card-link { color: var(--primary); font-weight: 700; font-size: 0.86rem; text-decoration: none; }
.service-card a.card-link:hover { text-decoration: underline; }

.hero-service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; }
.hero-service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.hero-service-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.hero-service-card p { font-size: 0.89rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.hero-service-card a { color: var(--primary); font-weight: 700; text-decoration: none; }
.hero-services { padding: 3.5rem 0; background: var(--bg-alt); }

.context-band { background: var(--primary); color: var(--white); padding: 3.5rem 0; }
.context-band-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.context-band h2 { color: var(--white); margin-bottom: 1.25rem; }

/* ── EMBEDDED MAP (OpenStreetMap, no API key) ── */
.map-block { margin: 2rem 0; }
.map-block h2 { margin-bottom: 1rem; }
.map-embed {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
}
.map-attribution {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  max-width: none;
}
.map-attribution a { color: var(--text-light); text-decoration: underline; }
.map-attribution a:hover { color: var(--primary); }
/* Homepage variant: sits full-width inside .container, slightly taller */
.section .map-block .map-embed { height: 420px; }
@media (max-width: 600px) {
  .map-embed { height: 280px; }
  .section .map-block .map-embed { height: 320px; }
}

.context-band p { color: rgba(255,255,255,0.88); max-width: 800px; margin-bottom: 1rem; }
.context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.context-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.context-item h4 { color: #FCD34D; font-size: 0.92rem; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
.context-item p { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin: 0; }
.context-item-image {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 0.85rem; display: block;
}

.locations-section { padding: 3.5rem 0; background: #fff; }
.locations-section h2 { text-align: center; margin-bottom: 0.5rem; }
.locations-section .sub { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
  max-width: 1200px;
  margin: 0 auto;
}
.location-chip {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.87rem; font-weight: 600;
  color: var(--text-base);
  text-decoration: none;
  background: #fff;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.location-chip:hover { background: var(--bg-alt); color: var(--primary); border-color: var(--primary); text-decoration: none; }
.location-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.location-chip.adjacent .dot { background: var(--primary); }

.blog-section { background: var(--bg-alt); padding: 3.5rem 0; }
.blog-section h2 { text-align: center; margin-bottom: 2rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--accent);
}
.blog-card h3 { font-size: 0.97rem; margin-bottom: 0.6rem; color: #0f1f2e; line-height: 1.35; }
.blog-card a { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 0.87rem; }
.blog-card a:hover { text-decoration: underline; }

.cta-band { background: var(--primary); color: var(--white); padding: 3rem 0; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; font-size: clamp(1.3rem, 3.5vw, 2rem); }
.cta-band p { color: rgba(255,255,255,0.88); margin: 0 auto 1.5rem; max-width: 600px; }
.cta-band-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.6rem; font-weight: 800;
  color: var(--white); text-decoration: none;
  margin-bottom: 0.75rem;
}
.cta-band-phone:hover { color: var(--accent-light); text-decoration: underline; }
.cta-band .sub-text { font-size: 0.87rem; color: rgba(255,255,255,0.82); margin-top: 0.5rem; }

.breadcrumb { padding: 0.75rem 0; font-size: 0.85rem; color: var(--text-light); max-width: 1200px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; }

.faq-list { margin-top: 1.25rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-weight: 700; color: #0f1f2e; margin-bottom: 0.5rem; font-size: 1rem; }
.faq-a { color: var(--text-muted); font-size: 0.95rem; }

footer { background: #0f1f2e; color: #aab4c0; padding: 2.5rem 0 1.5rem; font-size: 0.88rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}
footer h4 { color: #fff; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.35rem; }
footer ul li a { color: #aab4c0; text-decoration: none; }
footer ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0; padding: 1.25rem 1.25rem 0;
  border-top: 1px solid #25344a;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  font-size: 0.8rem; color: #8a96a8;
}
.footer-bottom a { color: #8a96a8; text-decoration: none; }
.footer-bottom a:hover { color: #aab4c0; }

.mobile-sticky { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 500; background: var(--accent); padding: 0.75rem 1rem; text-align: center; }
.mobile-sticky a { color: var(--accent-text); font-weight: 800; font-size: 1.05rem; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; }

.page-body { max-width: 860px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.page-body h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.page-body h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.page-body ul { margin-bottom: 1rem; }
.page-body p  { margin-bottom: 1rem; }

.mid-cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.mid-cta p { margin: 0; font-weight: 600; color: #0f1f2e; max-width: none; }
.mid-cta a { white-space: nowrap; }

.svc-hero-image {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-lg); margin: 1.25rem 0 1.75rem; box-shadow: var(--shadow);
  display: block;
}

.services-index { padding: 2.5rem 0 3.5rem; max-width: 1200px; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.services-index h1 { margin-bottom: 0.5rem; }
.services-index .intro { color: var(--text-muted); margin-bottom: 2rem; max-width: 680px; }
.services-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.85rem; }
.svc-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--text-base);
  font-size: 0.91rem; font-weight: 600;
  background: #fff;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.svc-chip:hover { background: var(--bg-alt); border-color: var(--primary); color: var(--primary); text-decoration: none; }
.svc-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.svc-chip.detection .dot { background: var(--accent); }

.about-page { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.about-page h1 { margin-bottom: 1.25rem; }
.about-page h2 { margin-top: 2rem; margin-bottom: 0.75rem; }

.contact-page { max-width: 700px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.contact-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-top: 1.5rem; }
.contact-phone-big {
  font-size: 2rem; font-weight: 800; color: var(--primary); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0;
}
.contact-phone-big:hover { color: var(--primary-dark); }

.privacy-page { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.privacy-page h1 { margin-bottom: 1.5rem; }
.privacy-page h2 { margin-top: 2rem; margin-bottom: 0.75rem; }

.error-page { text-align: center; padding: 5rem 1.25rem; max-width: 600px; margin: 0 auto; }
.error-page h1 { font-size: 4rem; color: var(--primary); margin-bottom: 0.5rem; }

@media (max-width: 860px) {
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
  .nav-inner { height: auto; min-height: 66px; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .nav-menu.open {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; order: 3;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }
  .nav-menu.open > li > a { padding: 0.7rem 0.5rem; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 0.75rem; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}
@media (max-width: 768px) {
  .mobile-sticky { display: block; }
  body { padding-bottom: 70px; }
  .context-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .mid-cta { flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .cta-band-phone { font-size: 1.35rem; }
}

@media print {
  .top-strip, .site-header, .mobile-sticky, footer, .cta-band, .trust-bar { display: none; }
  body { color: #000; }
  a { color: #000; }
}

/* ══════════════════════════════════════════════════════════════════════
   STRUCTURAL REDESIGN — two-column page layout, justified text,
   tables/charts, sidebar. Replaces the narrow single-column blog-style
   .page-body with a wider, reference-page layout used on service,
   location, and blog pages.
   ══════════════════════════════════════════════════════════════════════ */

/* ── PAGE LAYOUT: two-column grid (content + sidebar) ── */
.page-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
}
.page-main { min-width: 0; }
.page-main h1 { margin-bottom: 1rem; }

/* Body copy: wider than the old 72ch global cap, justified on desktop,
   left-aligned on mobile (justification at narrow widths creates ugly
   whitespace rivers and WCAG flags it as a readability concern below
   ~500px columns). Hyphenation softens justify rivers at this width. */
.page-main p {
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  line-height: 1.7;
}
.page-main h2 { margin-top: 2.25rem; margin-bottom: 0.85rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
.page-main h3 { margin-top: 1.6rem; margin-bottom: 0.6rem; }
.page-main ul, .page-main ol { margin-bottom: 1.1rem; }
.page-main li { text-align: left; } /* never justify list items, only flowing prose */

/* ── SIDEBAR ── */
.page-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
}
.sidebar-card h4 {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); margin-bottom: 0.85rem;
}
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { margin-bottom: 0.55rem; text-align: left; }
.sidebar-card a { font-size: 0.91rem; font-weight: 600; color: var(--text-base); text-decoration: none; }
.sidebar-card a:hover { color: var(--primary); text-decoration: underline; }
.sidebar-cta {
  background: var(--primary); color: #fff; border-radius: var(--radius-lg);
  padding: 1.35rem; text-align: center;
}
.sidebar-cta p { color: rgba(255,255,255,0.9); font-size: 0.88rem; margin-bottom: 0.9rem; max-width: none; text-align: center; }
.sidebar-cta .btn { width: 100%; justify-content: center; }
.sidebar-trust { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-base); text-align: left; }
.sidebar-trust-item svg { color: var(--primary); flex-shrink: 0; width: 15px; height: 15px; }

/* ── STAT / INFO BOX (breaks up long prose stretches) ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin: 1.75rem 0;
}
.stat-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1rem; text-align: center;
}
.stat-box .stat-value { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1.15; }
.stat-box .stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 600; }

/* ── DATA TABLE ── */
.data-table-wrap { margin: 1.75rem 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.91rem; min-width: 480px; }
table.data-table caption {
  text-align: left; font-weight: 700; font-size: 0.95rem; color: #0f1f2e;
  padding: 0.9rem 1.1rem 0.6rem; background: var(--bg-alt);
}
table.data-table th {
  background: var(--primary); color: #fff; text-align: left;
  padding: 0.7rem 1rem; font-weight: 700; font-size: 0.84rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
table.data-table td { padding: 0.7rem 1rem; border-top: 1px solid var(--border); text-align: left; }
table.data-table tr:nth-child(even) td { background: var(--bg-alt); }
table.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── SVG CHART WRAP ── */
.chart-wrap {
  margin: 1.75rem 0; padding: 1.25rem 1.4rem 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.chart-wrap .chart-title { font-size: 0.95rem; font-weight: 700; color: #0f1f2e; margin-bottom: 0.9rem; text-align: left; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-wrap .chart-caption { font-size: 0.78rem; color: var(--text-light); margin-top: 0.6rem; text-align: left; max-width: none; }

/* ── MID-CTA: align with the new wider body, never justified ── */
.page-main .mid-cta p { text-align: left; }

/* ── RESPONSIVE: collapse to single column, drop justify ── */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; order: 2; }
  .page-main { order: 1; }
}
@media (max-width: 640px) {
  .page-main p { text-align: left; hyphens: none; -webkit-hyphens: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
