:root {
  --bg: #fafaf9; --surface: #ffffff; --text: #1c1917; --muted: #57534e; --border: #e7e5e4;
  --accent: #0f766e; --accent-soft: #ccfbf1; --warn: #9a3412; --ok: #166534;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1917; --surface: #292524; --text: #f5f5f4; --muted: #a8a29e; --border: #44403c;
    --accent: #5eead4; --accent-soft: #134e4a; --warn: #fdba74; --ok: #86efac; }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; margin: .75rem 0; }
h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding-block: .75rem; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; margin-right: auto; }
.city-search input { width: 12rem; max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: .45rem .6rem; width: 100%; }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: .45rem .9rem; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); text-decoration: none; cursor: pointer; }
.btn-outline { background: var(--accent-soft); color: var(--text); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .25rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.chips a { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: .9rem; }
.chips a.active { background: var(--accent-soft); border-color: var(--accent); }

.featured-lists { margin: 1rem 0 0; }
.featured-lists-title { font-size: .95rem; margin: 0 0 .4rem; }
.featured-lists-row { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.featured-lists-row a { display: inline-block; padding: .25rem .65rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); text-decoration: none; font-size: .85rem; font-weight: 600; }
.featured-lists-row a.active { background: var(--accent-soft); border-color: var(--accent); }
.columns { columns: 2 10rem; padding: 0; list-style: none; }
.columns li { padding: .15rem 0; }
.state-grid, .city-rows { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.state-grid li, .city-rows li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .75rem; }
.state-grid li { display: flex; flex-direction: column; }
.city-rows p { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.count { float: right; font-size: .8rem; color: var(--muted); }

.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1rem; border-top: 1px solid var(--border); }
.row { display: flex; gap: .8rem; padding: .7rem .25rem; border-bottom: 1px solid var(--border); }
.row img { width: 96px; height: 72px; flex: none; border-radius: 4px; object-fit: cover; }
.row-body { min-width: 0; }
.row h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.row-meta { margin: .15rem 0; font-size: .8rem; color: var(--muted); }
.row-summary { margin: .15rem 0 0; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.types { margin-top: 1rem; font-size: .9rem; }
.types summary { cursor: pointer; font-weight: 600; }
.types ul { columns: 2 12rem; margin: .5rem 0 0; }
.pager .gap { border: 0; }
.tag { font-weight: 600; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .03em; color: var(--warn); border: 1px solid currentColor; border-radius: 4px; padding: .1rem .4rem; }
.hero { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; margin: 1rem 0; }
.body { font-size: 1.05rem; }
.empty { padding: 1rem; border: 1px dashed var(--border); border-radius: 8px; }

.pager { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.5rem 0; }
.pager a, .pager span { padding: .3rem .65rem; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; }
.pager span[aria-current] { background: var(--accent-soft); border-color: var(--accent); }

.guide { border-top: 1px solid var(--border); margin-top: 2.5rem; }
.guide ul { padding-left: 1.2rem; }
.faq dt { font-weight: 600; margin-top: .75rem; }
.faq dd { margin: .2rem 0 0; color: var(--muted); }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .25rem 1rem; margin: 1.5rem 0; }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.filter label { flex-basis: 100%; font-weight: 600; }
.filter input { flex: 1 1 14rem; width: auto; }
.loc-state h2 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
[hidden] { display: none !important; }

.stack { display: grid; gap: .4rem; }
.stack label { font-weight: 600; margin-top: .5rem; }
.stack .btn { justify-self: start; margin-top: .75rem; }
.alert { padding: .6rem .8rem; border-radius: 6px; border: 1px solid currentColor; }
.alert.ok { color: var(--ok); }
.alert.err { color: var(--warn); }

.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.5rem 0 2rem; font-size: .9rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }

@media (max-width: 480px) {
  .city-search { order: 3; flex-basis: 100%; }
  .city-search input { width: 100%; }
  .row img { width: 72px; height: 54px; }
  .row-summary { white-space: normal; }
}

/* accounts, posting, moderation */
.header-links { display: flex; gap: .75rem; font-size: .9rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td { text-align: left; padding: .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.actions { white-space: nowrap; }
.actions form { display: inline; margin-left: .5rem; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }
.status { font-weight: 600; font-size: .85rem; }
.s-approved { color: var(--ok); }
.s-rejected { color: var(--warn); }
.mod-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: .75rem 1rem; margin: .75rem 0; }
.mod-item h3 { margin-top: 0; }
.mod-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.inline input { width: auto; flex: 1 1 14rem; }
.pre { white-space: pre-wrap; }
ul.alert { padding-left: 1.5rem; }
.saved-title { font-size: 1.05rem; margin: 0 0 .25rem; }

/* photos */
.gallery { margin: 1rem 0; }
.gallery figure { display: none; margin: 0; }
.gallery figure:first-of-type, .gallery figure:target { display: block; }
.gallery:has(figure:target) figure:first-of-type:not(:target) { display: none; }
.gallery figure img { width: 100%; height: auto; border-radius: 8px; background: var(--surface); }
.thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .5rem 0; }
.thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); }
.photo-edit { border: 1px solid var(--border); border-radius: 6px; display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-choice { display: flex; align-items: center; gap: .3rem; font-weight: normal; }
.photo-choice img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; }

/* report dialog */
.dialog { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; max-width: min(36rem, calc(100vw - 32px)); width: 100%; background: var(--bg); color: var(--text); }
.dialog::backdrop { background: rgb(0 0 0 / .5); }
.report-dialog h2 { margin-top: 0; }

/* publication agreement */
.agreement-box { max-height: 24rem; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: .25rem 1rem; margin: 1rem 0; }
.agreement-text h2 { font-size: 1rem; margin: 1rem 0 .35rem; }
.agree { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.agree input { width: auto; margin-top: .3rem; }
