/* EcoSpot design system
   Serif headings, sans body, thin rules, small radii, one green accent. */

@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --green: #246B45;
  --green-deep: #174B34;
  --green-light: #EAF4EC;
  --page: #FAFAF7;
  --surface: #FFFFFF;
  --text: #222A24;
  --muted: #5C665E;
  --line: #E2E8E2;
  --line-strong: #8A968C;
  --warn: #8F4E0B;
  --warn-bg: #FDF1E2;
  --info: #1D5A86;
  --info-bg: #E8F1F8;
  --error: #A32F2A;
  --error-bg: #FBECEA;
  --radius: 6px;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 1.125rem/1.6 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.22; margin: 0 0 .6rem; color: var(--green-deep); }
h1 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid #D4872B; outline-offset: 2px; }
pre { overflow: auto; }
code { font-size: .95em; background: var(--green-light); padding: 0 .25em; border-radius: 3px; }

.wrap { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2rem, 520px); }
.section { padding-block: 2.25rem; }
.tinted { background: var(--green-light); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 40rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 1rem; }
.prose { max-width: 42rem; }
.reference { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .03em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -5rem; background: var(--surface); padding: .6rem 1rem; z-index: 2000; }
.skip:focus { top: .5rem; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .55rem 1.15rem;
  border: 2px solid var(--green); border-radius: var(--radius); background: var(--green); color: #fff; font: 600 1.0625rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-secondary { background: var(--surface); color: var(--green-deep); }
.btn-secondary:hover { background: var(--green-light); color: var(--green-deep); }
.btn-quiet { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-quiet:hover { background: var(--green-light); color: var(--green-deep); }
.btn-danger { background: var(--surface); border-color: var(--error); color: var(--error); }
.btn-danger:hover { background: var(--error-bg); border-color: var(--error); color: var(--error); }
.btn-large { min-height: 56px; padding-inline: 1.6rem; font-size: 1.175rem; }
.btn-block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.actions .hint { margin: 0; }

/* Header and footer ------------------------------------------------------ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header.is-admin { border-bottom: 4px solid var(--green-deep); }
.header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; min-height: 72px; padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .55rem; font: 600 1.45rem var(--serif); color: var(--green-deep); text-decoration: none; }
.brand small { font: 600 .85rem var(--sans); color: var(--muted); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.site-nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .8rem; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav > a:not(.btn):hover { border-bottom-color: var(--line-strong); }
.site-nav > a[aria-current="page"]:not(.btn) { border-bottom-color: var(--green); font-weight: 600; }
.nav-cta { margin-left: .75rem; }
.site-nav form { margin: 0 0 0 .75rem; }
.menu-toggle { display: none; min-height: 44px; padding: .4rem 1rem; border: 2px solid var(--green); border-radius: var(--radius); background: var(--surface); color: var(--green-deep); font: 600 1rem var(--sans); cursor: pointer; }

main { display: block; min-height: 60vh; }
.site-footer { background: var(--green-deep); color: #DCE8DF; padding-block: 2.5rem; margin-top: 3rem; font-size: 1.0625rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid nav a { padding-block: .3rem; }
.footer-brand { font: 600 1.35rem var(--serif); color: #fff; margin-bottom: .5rem; }

/* Messages --------------------------------------------------------------- */
.alert { padding: .9rem 1.1rem; border: 1px solid; border-left-width: 5px; border-radius: var(--radius); margin-block: 1rem; }
.alert ul { margin: .4rem 0; padding-left: 1.2rem; }
.alert p { margin: 0; }
.alert-success { background: var(--green-light); border-color: var(--green); }
.alert-error { background: var(--error-bg); border-color: var(--error); }
.note { border-left: 4px solid var(--warn); background: var(--warn-bg); padding: .75rem 1rem; max-width: 46rem; }
.success-panel { background: var(--green-light); border: 2px solid var(--green); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.success-panel .reference { display: inline-block; background: var(--surface); padding: .15rem .6rem; border: 1px dashed var(--green); font-size: 1.25rem; }
.success-panel .actions { margin-bottom: 0; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 2rem; text-align: center; background: var(--surface); }

/* Home ------------------------------------------------------------------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); }
.kicker { color: var(--green); font-weight: 700; margin-bottom: .5rem; }
.hero-map { margin: 0; }
.hero-map .map { height: 400px; }
.hero-map figcaption { font-size: .95rem; color: var(--muted); margin-top: .5rem; }

.ledger { background: var(--surface); border-block: 1px solid var(--line); }
.ledger dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.ledger dl > div { display: flex; flex-direction: column; padding: 1.25rem 1.25rem; border-left: 1px solid var(--line); }
.ledger dl > div:first-child { border-left: 0; padding-left: 0; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font: 600 2.5rem/1.1 var(--serif); color: var(--green-deep); font-variant-numeric: tabular-nums; }
.ledger .hint { margin: 0; padding-block: .6rem; border-top: 1px solid var(--line); font-size: .95rem; }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 0; margin: 1.25rem 0 0; }
.steps li { counter-increment: step; border-top: 3px solid var(--green); padding-top: 1rem; }
.steps li::before { content: "Step " counter(step); display: block; font-weight: 700; color: var(--green); font-size: 1rem; margin-bottom: .25rem; }

.split { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.category-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.category-list li + li { border-top: 1px solid var(--line); }
.category-list a { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; text-decoration: none; color: var(--text); }
.category-list a:hover { background: var(--page); }
.category-list a:hover strong { text-decoration: underline; }
.category-list .icon { width: 32px; height: 32px; color: var(--c); }
.category-list small { display: block; color: var(--muted); font-size: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; }

/* Categories, status, severity ------------------------------------------- */
.cat-garbage { --c: #9A5B13; }
.cat-water   { --c: #1F6391; }
.cat-trees   { --c: #2E7D46; }
.cat-air     { --c: #5E5A78; }
.cat-other   { --c: #8C3F5D; }
.icon { width: 22px; height: 22px; flex: none; }
.cat { display: inline-flex; align-items: center; gap: .35rem; color: var(--c); font-weight: 600; font-size: 1rem; }
.cat .icon { width: 19px; height: 19px; }
.status { display: inline-block; padding: .1rem .6rem; border-radius: 3px; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.status.status-reported    { background: var(--warn-bg); color: var(--warn); }
.status.status-in_progress { background: var(--info-bg); color: var(--info); }
.status.status-resolved    { background: var(--green-light); color: var(--green-deep); }
.sev::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .35rem; background: var(--line-strong); }
.sev-medium::before { background: #C7751A; }
.sev-high::before { background: var(--error); }
.sample { display: inline-block; border: 1px dashed var(--line-strong); border-radius: 3px; padding: 0 .45rem; font-size: .875rem; color: var(--muted); }

/* Report cards ----------------------------------------------------------- */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.report-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.report-card:hover { border-color: var(--green); }
.report-card:focus-within { outline: 3px solid #D4872B; outline-offset: 2px; }
.report-media { aspect-ratio: 16 / 9; background: var(--green-light); }
.report-media img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; height: 100%; color: var(--c); font-size: .95rem; background: color-mix(in srgb, var(--c) 8%, #fff); }
.no-photo .icon { width: 44px; height: 44px; }
.report-body { display: flex; flex-direction: column; flex: 1; padding: 1rem; }
.report-body h3 { margin-block: .55rem .35rem; }
.report-body h3 a { color: var(--text); text-decoration: none; }
.report-body h3 a::after { content: ""; position: absolute; inset: 0; }
.report-card:hover h3 a { text-decoration: underline; }
.report-place { color: var(--muted); font-size: 1rem; margin-bottom: .75rem; }
.report-top { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.report-body .report-top { justify-content: space-between; }
.report-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: auto 0 0; padding-top: .65rem; border-top: 1px solid var(--line); font-size: .95rem; }

/* Forms ------------------------------------------------------------------ */
.field { margin-bottom: 1.25rem; min-width: 0; }
label, .label { display: block; font-weight: 600; margin-bottom: .35rem; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 48px; padding: .6rem .75rem; font: 400 1.0625rem/1.4 var(--sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
textarea { resize: vertical; }
input[type="file"] { padding: .55rem; }
input[type="file"]::file-selector-button { font: 600 1rem var(--sans); padding: .35rem .8rem; margin-right: .75rem; border: 1px solid var(--green); border-radius: 4px; background: var(--green-light); color: var(--green-deep); cursor: pointer; }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 2px !important; }
.field .hint { margin: .35rem 0 0; }
.field-error { color: var(--error); font-weight: 600; margin: .35rem 0 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.panel h2 { font-size: 1.3rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-page { max-width: 760px; }
.form-section { border: 0; border-top: 2px solid var(--line); margin: 2rem 0; padding: 0; min-width: 0; }
.form-section legend { float: left; width: 100%; padding: 1.25rem 0 1rem; font: 600 1.4rem var(--serif); color: var(--green-deep); }
.form-section legend + * { clear: left; }
.form-section legend span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .6rem; border-radius: 50%; background: var(--green); color: #fff; font: 700 1rem var(--sans); vertical-align: 2px; }
.form-section legend em { font: 400 1rem var(--sans); color: var(--muted); }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .6rem; }
.choices-3 { grid-template-columns: repeat(3, 1fr); }
.choice { display: flex; align-items: center; gap: .6rem; min-height: 56px; margin: 0; padding: .6rem .8rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }
.choice input { width: 1.2rem; height: 1.2rem; margin: 0; flex: none; accent-color: var(--green); }
.choice .icon { color: var(--c); width: 26px; height: 26px; }
.choice:hover { background: var(--green-light); }
.choice:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--green-light); }

.photo-preview { max-height: 260px; width: auto; margin-top: .75rem; border: 1px solid var(--line); border-radius: var(--radius); }
.chosen { font-weight: 600; margin-block: .6rem 1rem; }
details { margin-bottom: 1.25rem; }
summary { cursor: pointer; color: var(--green); font-weight: 600; padding-block: .5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.filters .field { margin: 0; flex: 0 1 180px; }
.filters .field.grow { flex: 1 1 220px; }
.result-count { color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }

/* Maps ------------------------------------------------------------------- */
.map { position: relative; isolation: isolate; width: 100%; background: var(--green-light); border: 1px solid var(--line-strong); border-radius: var(--radius); font-family: var(--sans); }
.map-explore { height: min(68vh, 640px); min-height: 380px; }
.map-picker { height: 380px; }
.map-detail { height: 300px; margin-bottom: .5rem; }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; padding: 1.5rem; text-align: center; color: var(--muted); }
.map-warning { position: absolute; z-index: 1000; left: 50px; right: 10px; top: 10px; margin: 0; padding: .5rem .75rem; background: var(--warn-bg); border: 1px solid var(--warn); border-radius: 4px; font-size: .95rem; }
.pin { background: none; border: 0; }
.pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4); }
.pin svg { width: 19px; height: 19px; transform: rotate(45deg); color: #fff; }
.pin-resolved span { opacity: .6; }
.pin-resolved::after { content: "✓"; position: absolute; right: -4px; top: -6px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--green-deep); border: 1px solid #fff; color: #fff; font: 700 11px var(--sans); }
.leaflet-popup-content { font-size: 1rem; line-height: 1.45; min-width: 200px; }
.leaflet-popup-content p { margin: .25rem 0; }
.popup-title { font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: .8rem; }
.legend-note { color: var(--muted); font-size: 1rem; }
.map-list ul { list-style: none; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.map-list li { padding: .65rem 1rem; }
.map-list li + li { border-top: 1px solid var(--line); }
.map-list small { display: block; color: var(--muted); font-size: .95rem; }

/* Report detail ---------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2.5rem; margin-top: 1rem; align-items: start; }
.detail-grid h2, .admin-grid h2 { margin-top: 1.75rem; }
.detail-grid > div > :first-child, .admin-grid > div > :first-child, .admin-side h2 { margin-top: 0; }
.facts { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: .25rem 1.1rem; }
.facts dl { margin: 0; }
.facts dl > div { padding-block: .7rem; }
.facts dl > div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: .95rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.detail-photo img { max-height: 480px; width: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.75rem; }
.timeline li { position: relative; padding-bottom: 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: -1.75rem; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--warn); z-index: 1; }
.timeline li.status-in_progress::before { border-color: var(--info); }
.timeline li.status-resolved::before { border-color: var(--green); background: var(--green); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: calc(-1.75rem + 6px); top: .8rem; bottom: -.35rem; width: 2px; background: var(--line); }
.timeline p { margin-bottom: .25rem; }
.timeline-date { color: var(--muted); font-size: .95rem; }
.timeline blockquote { margin: .5rem 0; padding: .6rem .9rem; background: var(--surface); border-left: 3px solid var(--line-strong); }
.timeline figure { margin: .75rem 0 0; }
.timeline figure img { max-height: 300px; width: auto; border-radius: var(--radius); }
.timeline figcaption { font-size: .95rem; color: var(--muted); }

/* Tables, charts, admin -------------------------------------------------- */
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font-size: .95rem; color: var(--muted); border-bottom: 2px solid var(--line-strong); }
tbody th { font-weight: 600; }
tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.chart-grid > section { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.chart-grid .wide { grid-column: 1 / -1; }
.chart-grid details { margin: .75rem 0 0; }
.chart-box { position: relative; height: 280px; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; margin-top: 1.25rem; }
.admin-side .btn-block + .btn-block { margin-top: .6rem; }
.bars { list-style: none; padding: 0; max-width: 640px; }
.bars li { display: grid; grid-template-columns: 190px 1fr 2.5rem; align-items: center; gap: .75rem; padding-block: .45rem; border-bottom: 1px solid var(--line); }
.bars strong { text-align: right; }
.bars progress { width: 100%; height: 12px; appearance: none; border: 0; background: var(--green-light); }
.bars progress::-webkit-progress-bar { background: var(--green-light); }
.bars progress::-webkit-progress-value { background: var(--green); }
.bars progress::-moz-progress-bar { background: var(--green); }
.ledger dt a { color: var(--muted); }

/* Smaller screens -------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .split, .detail-grid, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-map .map { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .menu-toggle { display: inline-block; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  html:not(.js) .menu-toggle { display: none; }
  .site-nav > a:not(.btn) { border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  .site-nav > a[aria-current="page"]:not(.btn) { border-bottom-color: var(--line); border-left-color: var(--green); }
  .nav-cta, .site-nav form { margin: .6rem 0 .25rem; }
  .site-nav form .btn { width: 100%; }
}

@media (max-width: 760px) {
  .steps, .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 1.25rem; }
  .ledger dl { grid-template-columns: 1fr 1fr; }
  .ledger dl > div { padding: .9rem 1rem; }
  .ledger dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ledger dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .filters .field, .filters .field.grow { flex: 1 1 100%; }
  .filters .btn { width: 100%; }

  /* Admin table becomes a stack of rows */
  .admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table th, .admin-table td { display: block; }
  .admin-table tr { padding-block: .5rem; border-bottom: 2px solid var(--line); }
  .admin-table th, .admin-table td { border: 0; padding: .3rem .8rem; }
  .admin-table td[data-label] { display: flex; justify-content: space-between; gap: 1rem; }
  .admin-table td[data-label]::before { content: attr(data-label); color: var(--muted); }
  .admin-table td .btn { width: 100%; }
}

@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .hero .btn, #use-location { width: 100%; }
  .choices-3, .two-col { grid-template-columns: minmax(0, 1fr); }
  .map-picker { height: 320px; }
  .bars li { grid-template-columns: 1fr 2.5rem; }
  .bars progress { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .actions, .map { display: none; }
  body { background: #fff; }
}
