/* ============================================================
   Horizon Releaf — inner page styles (SEO/AEO/GEO page system).
   Loaded on generated pages only, after tokens.css + base.css.
   ============================================================ */

/* Nav is position:absolute over the page top; reserve room for it. */
.page-main { padding-top: 0; }
/* Sub-pages: the nav sits in normal flow right under the utility bar and
   sticks on scroll (the homepage overlays it on the hero instead). */
.util + .nav, .util + .nav.is-stuck { position: sticky; top: 0; background: var(--paper); border-bottom-color: var(--line); }

/* ---------- Breadcrumb bar ---------- */
.crumbs { border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 10px 0;
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "›"; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Hero band (image or sand) ---------- */
.phero {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 104px);
}
.phero-media, .phero-media img { position: absolute; inset: 0; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
/* Same white-wash scrim as the homepage hero. */
.phero--img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(251,249,245,.88) 0%, rgba(251,249,245,.62) 45%, rgba(251,249,245,.28) 75%);
  z-index: 1;
  pointer-events: none;
}
.phero-inner { position: relative; z-index: 2; }
.phero h1 {
  font-size: clamp(32px, 4.8vw, 64px);
  max-width: 18ch;
  color: var(--navy);
}
.phero-kw { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 60ch; }

/* ---------- Answer box (AEO snippet target) ---------- */
.answer {
  margin-top: clamp(32px, 4vw, 48px);
  background: var(--sand);
  border-left: 3px solid var(--dawn);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 19px;
  line-height: 1.55;
  max-width: 72ch;
}

/* ---------- "What Florida law says" callout (condition pages) ---------- */
.law {
  margin-top: 24px;
  max-width: 72ch;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.law h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.law p { color: var(--muted); font-size: 15.5px; }

/* ---------- Key facts table ---------- */
.keyfacts { margin-top: clamp(32px, 4vw, 48px); max-width: 820px; }
.keyfacts table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.keyfacts caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 10px;
  color: var(--ink);
}
.keyfacts th, .keyfacts td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.keyfacts tr:last-child th, .keyfacts tr:last-child td { border-bottom: 0; }
.keyfacts th { font-weight: 600; width: 34%; color: var(--navy); }
sup.src { font-size: 11px; }
sup.src a { color: var(--act); text-decoration: none; }
sup.src a:hover { text-decoration: underline; }

/* ---------- Content grid + sticky TOC ---------- */
.page-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.page-grid > * { min-width: 0; }

/* Tables never force horizontal page overflow; they scroll instead. */
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap table { min-width: 480px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 20px; }
.toc-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.toc a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--muted);
}
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1100px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .page-grid .toc { order: 2; position: sticky; top: 104px; }
  .page-grid .page-body { order: 1; }
}

/* ---------- Body sections ---------- */
.psec { margin-top: clamp(44px, 6vw, 72px); }
.psec:first-child { margin-top: 0; }
.psec h2 { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 18px; }
.psec h3 { font-size: 20px; font-weight: 600; margin: 24px 0 10px; }
.psec p { max-width: 68ch; margin-bottom: 14px; }
.psec ul { margin: 0 0 14px; padding-left: 22px; max-width: 68ch; }
.psec li { margin-bottom: 8px; }

.ptable { width: 100%; max-width: 720px; border-collapse: collapse; margin: 18px 0 14px; background: #fff; border: 1px solid var(--line); font-size: 15.5px; }
.ptable caption { caption-side: top; text-align: left; font-weight: 600; padding-bottom: 10px; color: var(--ink); }
.ptable th, .ptable td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable thead th { font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); }
.ptable tbody tr:last-child td { border-bottom: 0; }

/* ---------- City blocks ---------- */
.local {
  margin-top: 28px;
  max-width: 72ch;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.local h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.local p, .local li { font-size: 15.5px; color: var(--ink); }
.local p { margin-bottom: 10px; }
.local ul { margin: 0; padding-left: 20px; }
.local li { margin-bottom: 6px; }

/* ---------- About: mission + portrait (photo ONLY on /about/) ---------- */
.mission {
  max-width: 34ch;
  margin-bottom: clamp(32px, 4vw, 48px);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 90%;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.22;
  color: var(--ink);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 56px; align-items: center; }
.portrait {
  background: var(--sand);
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 32px 0;
}
.portrait img { width: 100%; max-width: 300px; height: auto; }
@media (max-width: 899px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } .portrait { max-width: 340px; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); max-width: 72ch; }
.faq summary {
  cursor: pointer;
  padding: 16px 2px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.faq summary:hover { color: var(--act); }
.faq details p { padding: 0 2px 18px; color: var(--muted); max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta {
  margin-top: clamp(48px, 7vw, 80px);
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: clamp(28px, 4vw, 48px);
}
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); }
.cta p { color: rgba(255, 255, 255, .82); margin: 12px 0 22px; max-width: 56ch; }

/* ---------- Legal notice (Fla. Stat. 456.062, verbatim) ---------- */
.legal {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- Sources ---------- */
.sources { margin-top: clamp(36px, 5vw, 56px); max-width: 72ch; }
.sources h2 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.sources ol { margin: 0; padding-left: 22px; color: var(--muted); font-size: 14.5px; }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--act); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Byline ---------- */
.byline {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 14px;
  color: var(--muted);
  max-width: 72ch;
}

/* ---------- Related links: typographic list with the dawn tick ---------- */
.related { margin-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
.related-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.related ul { list-style: none; margin: 12px 0 0; padding: 0; }
.related li { position: relative; padding: 9px 0 9px 30px; }
.related li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 20px;
  height: 1px;
  background: var(--dawn);
}
.related a { font-weight: 600; font-size: 17px; color: var(--ink); }
.related a:hover { color: var(--act); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(64px, 10vw, 128px); }
.nf h1 { font-size: clamp(38px, 6vw, 80px); color: var(--navy); }
.nf p { margin-top: 16px; max-width: 52ch; color: var(--muted); }
.nf .related { margin-top: 32px; padding-bottom: 0; }
