/* Report-only layout: keep the public form, account and administration styles unchanged. */
.report-view { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.report-view .header-inner { flex-wrap: wrap; gap: 16px; padding-block: 18px; }
.report-view .brand { flex-shrink: 0; }
.report-back { color: var(--blue); font-size: 14px; font-weight: 650; line-height: 1.5; padding-block: 8px; }
.report-view .report-layout { width: min(1040px, calc(100% - 48px)); flex: 1; padding-block: 48px 64px; }
.report-layout *, .report-layout > *, .report-options > *, .report-stats > * { min-width: 0; }
.report-intro { margin-bottom: 32px; }
.report-intro .kicker { margin: 0 0 14px; line-height: 1.5; }
.report-layout h1 { max-width: 850px; margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.18; letter-spacing: -.04em; overflow-wrap: anywhere; }
.report-layout h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.35; letter-spacing: -.025em; overflow-wrap: anywhere; }
.report-layout p { line-height: 1.7; }
.report-layout .button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 48px; padding: 13px 20px; font-size: 14px; line-height: 1.4; text-align: center; white-space: normal; text-decoration: none; }
.report-layout .report-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.report-layout .form-status:not(:empty) { margin: 0 0 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; line-height: 1.7; }
.report-layout .form-status:empty { display: none; }
.report-layout .flow-retry { margin: 0 0 20px; }

/* Equal-width cards, with a shared row for the primary action. */
.report-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
.report-option { display: grid; grid-template-rows: auto 1fr auto auto; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 4px 16px rgba(13, 76, 151, .035); }
.report-option h2 { margin: 0; }
.report-option-copy { margin: 0; color: var(--muted); font-size: 15px; }
.report-option .button { justify-self: start; align-self: start; }
.report-option .report-option-note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
@supports (grid-template-rows: subgrid) {
  .report-option { grid-row: span 4; grid-template-rows: subgrid; }
}

.report-details { display: grid; gap: 12px; }
.report-details #premium { scroll-margin-top: 112px; }
.report-details #premium:target { border-color: #aac6e8; }
.report-layout .report-details details { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.report-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; color: var(--blue); font-size: 15px; font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; }
.report-details summary::-webkit-details-marker { display: none; }
.report-details summary::after { content: "+"; flex: 0 0 24px; text-align: center; font-size: 24px; font-weight: 400; line-height: 1; }
.report-details details[open] summary { background: var(--surface); }
.report-details details[open] summary::after { content: "−"; }
.report-details-body { padding: 20px 24px 24px; font-size: 14px; color: var(--muted); }
.report-details-body ul { margin: 0; padding-left: 20px; }
.report-details-body li { padding-left: 4px; margin-bottom: 10px; line-height: 1.65; }
.report-details-body li:last-child { margin-bottom: 0; }
.report-details-body p { margin: 16px 0 0; }
.report-details-body p:first-child { margin-top: 0; }
.report-layout .report-disclaimer { margin-top: 24px; max-width: 850px; }

/* Matching metric cards for live local reports and archived monthly reports. */
.report-layout .report-locality { margin: 0 0 20px; color: var(--blue); font-size: 21px; }
.report-layout .report-period { display: inline-block; margin: 0 0 8px; padding: 8px 14px; border-radius: 8px; background: var(--surface); color: var(--blue); font-size: 14px; font-weight: 650; }
.report-layout .report-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 20px; align-items: stretch; }
.report-layout .report-stats article { display: flex; flex-direction: column; padding: 24px; border: 1px solid #dae5f2; border-radius: 14px; background: #f5f8fd; }
.report-layout .report-stats h3 { min-height: 2.8em; margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.4; }
.report-layout .report-stats strong { display: block; color: var(--blue); font-size: clamp(36px, 4.5vw, 46px); font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-layout .report-stats p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.report-layout .report-notice { padding: 16px 20px; border-left: 3px solid #ba861b; border-radius: 6px; background: #fffbef; }
.report-history { margin-top: 36px; }
.report-layout .report-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.report-layout .report-table { width: 100%; table-layout: fixed; }
.report-table caption { padding: 18px 20px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: left; caption-side: top; }
.report-layout .report-table th, .report-layout .report-table td { padding: 16px 20px; font-size: 14px; line-height: 1.5; vertical-align: middle; overflow-wrap: anywhere; }
.report-layout .report-table th { background: var(--surface); color: var(--blue); font-weight: 650; }
.report-layout .report-table th:not(:first-child), .report-layout .report-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-table tbody tr:nth-child(even) { background: #fcfdff; }
.report-meta { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line); }
.report-next{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
.report-next section{border:1px solid var(--line);border-radius:12px;padding:16px;background:#f8fafc}
.report-next h2{margin:0 0 6px;font-size:clamp(17px,4vw,21px);line-height:1.2}
.report-next p{margin:0 0 10px}
.report-next .form-status:empty{display:none}
.report-next .form-status{margin:8px 0 0}
.report-subscribe-row{display:flex;flex-wrap:wrap;gap:8px}
.report-subscribe-row input{flex:1 1 170px;width:auto}
.report-share-links{display:flex;gap:7px;flex-wrap:wrap}
.report-share-links a,.report-share-links button{color:var(--blue);background:white;border:1px solid var(--line);border-radius:7px;min-height:40px;padding:9px 12px;cursor:pointer;font-weight:700;font-size:13px;display:inline-flex;align-items:center}
.report-share-links a{gap:7px}
.social-logo{width:17px;height:17px;flex:none;fill:currentColor}
[data-share="facebook"] .social-logo{color:#0866ff}
[data-share="linkedin"] .social-logo{color:#0a66c2}
[data-share="whatsapp"] .social-logo{color:#168648}
[data-share="x"] .social-logo{color:#0f1419}
#share-fallback{margin-top:8px}
.resident-map{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:white}
.perimeter-intro h1{font-size:clamp(24px,4vw,36px)}
.resident-map-legend{display:flex;gap:6px 12px;flex-wrap:wrap;align-items:center}
.resident-map-total{color:var(--blue);font-size:clamp(15px,3.4vw,20px)}
.resident-map-canvas{position:relative;width:min(100%,640px);aspect-ratio:8/5;margin:8px auto 0;border:1px solid #dce7f4;border-radius:8px;overflow:hidden;background:#edf3f9}
#resident-map-svg,#resident-map-tiles{position:absolute;inset:0;display:block;width:100%;height:100%}
#resident-map-tiles img{position:absolute;display:block;max-width:none;object-fit:fill;user-select:none}
#resident-map-attribution{position:absolute;right:0;bottom:0;padding:2px 5px;background:#fffe;color:#26364a;font-size:10px}
#resident-map-svg .resident-radius{fill:#d3e5ff;stroke:#0d4c97;stroke-width:2.5;vector-effect:non-scaling-stroke}
#resident-map-tiles:not([hidden])+#resident-map-svg .resident-radius{fill-opacity:.22}
#resident-map-svg .resident-point{fill:#132641;stroke:white;stroke-width:2;vector-effect:non-scaling-stroke}
#resident-map-svg .resident-interest circle{fill:#f4bd62;stroke:#7c3c09;stroke-width:2;vector-effect:non-scaling-stroke}
#resident-map-svg .resident-interest text{fill:#431e08;font-size:11px;font-weight:800}
.resident-map-legend{list-style:none;margin:9px 0 0;padding:0;font-size:12px;font-weight:700}
.resident-key{display:inline-block;margin-right:5px;vertical-align:middle}
.resident-key.point{width:9px;height:9px;border-radius:50%;background:#132641}
.resident-key.radius{width:12px;height:12px;border:2px solid #0d4c97;border-radius:50%;background:#d3e5ff}
.resident-key.interest{width:11px;height:11px;border-radius:50%;background:#f4bd62;border:1px solid #7c3c09}
.resident-map .report-note{margin:6px 0 0}
#resident-map-note:empty{display:none}
.resident-counts{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:white}
.resident-counts h2{margin:0 0 6px;font-size:clamp(16px,4vw,20px)}
.resident-counts table{width:100%;border-collapse:collapse;font-size:clamp(13px,3.2vw,15px)}
.resident-counts th,.resident-counts td{padding:8px 4px;border-bottom:1px solid var(--line);text-align:right}
.resident-counts th:first-child{text-align:left}
.resident-counts td{font-weight:700;font-variant-numeric:tabular-nums}
.resident-counts .report-note{margin:8px 0 0}
.resident-grid small,.resident-grid td a{display:block;font-size:.82em;font-weight:400;color:var(--muted)}
.resident-grid td[id$="-missing"]{font-weight:400;color:var(--muted)}
.resident-grid th,.resident-grid td{overflow-wrap:anywhere}
@media(max-width:680px){.report-next{grid-template-columns:1fr}.report-subscribe-row .button{flex:1 1 auto}}
.report-explanation { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.report-layout .report-explanation h2 { margin: 0 0 12px; font-size: 18px; }
.report-explanation p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.report-view .footer-inner { min-height: 100px; }

@media (max-width: 680px) {
  .report-view .report-layout { width: calc(100% - 32px); padding-block: 32px 44px; }
  .report-intro { margin-bottom: 24px; }
  .report-options { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
  .report-option { grid-row: auto; grid-template-rows: auto auto auto auto; padding: 22px; }
  .report-option .button { width: 100%; }
  .report-layout h2 { font-size: 21px; }
  .report-layout .report-stats { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
  .report-layout .report-stats article { padding: 22px; }
  .report-layout .report-stats h3 { min-height: 0; margin-bottom: 10px; }
  .report-layout .report-stats strong { font-size: 40px; }
  .report-details summary { gap: 12px; padding: 18px 20px; }
  .report-details-body { padding: 18px 20px 20px; }
  .report-layout .report-table th, .report-layout .report-table td { padding: 14px 12px; font-size: 12px; }
  .report-table caption { padding: 16px 12px; }
  .report-explanation { padding: 20px; }
  .report-view .footer-inner { align-items: flex-start; min-height: 100px; gap: 12px; padding-block: 24px; }
  .report-view .footer-inner p { margin: 0; }
}
@media (max-width: 360px) {
  .report-view .header-inner { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 14px; }
  .report-layout .report-table th, .report-layout .report-table td { padding-inline: 8px; }
}
