/* Beachside Automation — county report styles. Loads after site.css. */

.report-hero { padding: clamp(40px, 6vw, 72px) 0 32px; }
.report-hero h1 { color: var(--navy-900); }
.report-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.report-meta strong { color: var(--navy-900); }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.report-toc { position: sticky; top: 92px; }
.report-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.report-toc a { color: var(--slate-700); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.report-toc a:hover { color: var(--atlantic); }
.report-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .report-layout { grid-template-columns: 1fr; } .report-toc { position: static; } }

.report-section { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.report-section:first-child { border-top: none; padding-top: 0; }
.report-section h2 { font-size: 1.8rem; }
.report-section p { max-width: 62em; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.tile-stat .v { font-family: var(--font-display); font-variation-settings: 'SOFT' 100, 'opsz' 72; font-weight: 600; font-size: 1.9rem; color: var(--navy-700); line-height: 1.1; }
.tile-stat .l { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* Simple bar list — no JS, no library */
.bars { display: grid; gap: 10px; margin: 16px 0; max-width: 720px; }
.bar { display: grid; grid-template-columns: 180px 1fr 140px; gap: 12px; align-items: center; font-size: 0.95rem; }
.bar .lbl { color: var(--navy-900); font-weight: 600; }
.bar .trk { height: 14px; background: var(--slate-100); border-radius: 999px; overflow: hidden; }
.bar .trk span { display: block; height: 100%; background: var(--atlantic); border-radius: 999px; }
.bar .trk.sun span { background: var(--sun-deep); }
.bar .trk.slate span { background: var(--slate); }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 560px) { .bar { grid-template-columns: 1fr; gap: 4px; } .bar .val { text-align: left; } }

.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 16px 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { background: var(--seaglass); color: var(--navy-900); font-weight: 700; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.hl td { background: #FFF8E1; font-weight: 700; }
.tbl-wrap { overflow-x: auto; }

.figure { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }

.observations { counter-reset: obs; list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 14px; }
.observations li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.observations li::before { counter-increment: obs; content: counter(obs); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: var(--navy-900); font-weight: 800; align-items: center; justify-content: center; }

.sources { font-size: 0.92rem; }
.sources li { margin-bottom: 6px; }
.callout { background: var(--seaglass); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--navy-900); }
.report-footer-cta { background: var(--navy-900); color: var(--white); border-radius: var(--radius); padding: 32px; margin-top: 40px; }
.report-footer-cta h3 { color: var(--white); }

@media print {
  .site-header, .site-footer, .report-toc, .report-actions, .report-footer-cta { display: none; }
  body { background: #fff; }
  .report-layout { grid-template-columns: 1fr; }
}

/* phone widths: let the content column shrink below its tables' intrinsic width; tables scroll inside .tbl-wrap */
.report-layout > * { min-width: 0; } /* phone */
.tbl-wrap { max-width: 100%; }
.report-section { min-width: 0; }

@media print {
  html { font-size: 11px; }
  body { line-height: 1.35; }
  .report-section { margin: 0 0 10px; padding: 0; break-inside: auto; }
  h2, h3 { break-after: avoid; margin: 10px 0 4px; }
  table, svg, figure, .tile, .callout { break-inside: avoid; }
  tr { break-inside: avoid; }
  .tbl-wrap { overflow: visible; }
  .tbl-wrap table { font-size: 9.5px; }
  .container, .report-layout { max-width: none; padding: 0; }
}
