/* Las Vegas Reader — one stylesheet, no framework.
   Palette: sun-bleached paper, charcoal ink, sign teal, marquee gold (decor only), coral for posting. */
/* Archivo (SIL Open Font License, see ../fonts/ARCHIVO-OFL.txt), self-hosted: weight 100–900, width 62–125 */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"), url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f7f6;
  --surface: #ffffff;
  --ink: #22252a;
  --ink-soft: #545a63;
  --rule: #d9dedc;
  --teal: #0b7a78;        /* links & focus; 5.2:1 on paper */
  --teal-deep: #075e5c;
  --teal-wash: #e3f1f0;
  --gold: #e9b12e;        /* bulbs and small accents only, never text */
  --coral: #c8402a;       /* Post an ad; 5.0:1 with white */
  --coral-deep: #a63320;
  --ok: #1d6b3a;
  --bad: #a1271b;
  --radius: 6px;
  --wrap: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-stretch: 75%; font-variation-settings: "wdth" 75; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted, .hint { color: var(--ink-soft); }
.hint { font-size: .875rem; margin: .25em 0 .75em; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .875em; }

/* ---------- Masthead ---------- */
.masthead { background: var(--surface); }
.masthead-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 24px;
  padding-top: 14px; padding-bottom: 12px;
}
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.wm-city {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--teal);
  font-variation-settings: "wdth" 125; margin-left: 2px;
}
.wm-name {
  font-size: 2.1rem; font-weight: 800; letter-spacing: -.01em;
  font-variation-settings: "wdth" 62; margin-top: 1px;
}
.wordmark:hover .wm-name { color: var(--ink); }

/* The signature: a row of marquee bulbs under the masthead */
.bulbs {
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, var(--gold) 0 3px, rgba(233,177,46,.28) 3.5px 5px, transparent 5.5px) 0 0 / 18px 12px repeat-x,
    var(--surface);
  border-bottom: 1px solid var(--rule);
}

.searchbar { display: flex; gap: 6px; min-width: 0; }
.searchbar input[type=search] { flex: 1 1 auto; min-width: 0; }
.searchbar select { flex: 0 0 auto; width: auto; max-width: 210px; }

.account-nav { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.account-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.account-nav > a:not(.btn):hover { text-decoration: underline; }

.menu { position: relative; }
.menu summary { cursor: pointer; font-weight: 600; list-style: none; padding: 6px 2px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(34,37,42,.12); min-width: 190px; padding: 6px;
}
.menu-panel a, .menu-panel .linklike { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.menu-panel a:hover, .menu-panel .linklike:hover { background: var(--teal-wash); }

@media (max-width: 860px) {
  .masthead-row { grid-template-columns: 1fr auto; }
  .searchbar { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
  .searchbar input[type=search] { flex-basis: 100%; }
  .searchbar select { flex: 1 1 auto; }
  .account-nav { gap: 10px; font-size: .95rem; }
}
@media (max-width: 480px) {
  .wm-name { font-size: 1.75rem; }
  .account-nav > a[href="/register"] { display: none; }
}

/* ---------- Forms & buttons ---------- */
input[type=text], input[type=search], input[type=email], input[type=password], input[type=tel],
input[type=date], input:not([type]), select, textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid #b8bfbd; border-radius: var(--radius); padding: 9px 11px; width: 100%;
}
select { padding-right: 28px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.field-error { color: var(--bad); font-size: .9rem; margin: .25em 0 .75em; font-weight: 500; }
label { display: block; font-weight: 600; margin: .9em 0 .3em; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: .5em 0; }
label.check input { margin-top: .3em; flex: none; width: auto; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 750; font-size: 1.15rem; font-variation-settings: "wdth" 75; padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius); padding: 10px 16px; white-space: nowrap;
}
.btn-post { background: var(--coral); color: #fff; }
.btn-post:hover { background: var(--coral-deep); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: #aab2b0; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #134d29; color: #fff; }
.btn-sm { padding: 6px 10px; font-size: .9rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike.danger, a.danger { color: var(--bad); }

.stack > .btn, .stack > button { margin-top: 1em; }
.actions, .form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 1.25em; }

/* ---------- Messages ---------- */
.flash { padding: 12px 14px; border-radius: var(--radius); margin: 16px 0; border-left: 4px solid; background: var(--surface); }
.flash-success { border-color: var(--ok); }
.flash-error { border-color: var(--bad); }
.flash-info { border-color: var(--teal); background: var(--teal-wash); }
.empty { background: var(--surface); border: 1px dashed #b8bfbd; border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.empty p { margin-bottom: 14px; }

/* ---------- Home ---------- */
.intro { color: var(--ink-soft); margin: 20px 0 18px; max-width: 70ch; }
.directory {
  columns: 4 220px; column-gap: 32px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px 24px 6px;
}
.dir-group { break-inside: avoid; margin-bottom: 20px; }
.dir-group h2 {
  font-size: 1.25rem; margin: 0 0 6px; padding-bottom: 5px;
  border-bottom: 2px solid var(--ink);
}
.dir-group h2 a { color: var(--ink); text-decoration: none; }
.dir-group h2 a:hover { color: var(--teal); }
.dir-group ul { list-style: none; margin: 0; padding: 0; }
.dir-group li a { display: block; padding: 3px 0; text-decoration: none; }
.dir-group li a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .directory { columns: 2; column-gap: 18px; padding: 16px 14px 4px; }
  .dir-group h2 { font-size: 1.1rem; }
  .dir-group li a { font-size: .92rem; padding: 4px 0; line-height: 1.3; }
}
.directory-choose { margin-top: 16px; }
.directory-choose li a { padding: 6px 0; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 32px 0 10px; }
.section-head h2 { margin: 0; }

/* ---------- Listing rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.row + .row { border-top: 1px solid var(--rule); }
.row-link { display: flex; gap: 14px; padding: 10px 12px; text-decoration: none; color: var(--ink); align-items: center; }
.row-link:hover { background: #fafcfb; }
.row-link:hover .row-title { text-decoration: underline; color: var(--teal-deep); }
.row-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; flex: none; background: #e8ecea; }
.row-thumb-none {
  display: block; width: 96px; height: 72px; border-radius: 4px; flex: none;
  background: radial-gradient(circle at 50% 50%, #cfd6d3 0 3px, transparent 3.5px) 0 0 / 12px 12px, #eef1f0;
}
.row-thumb-none.small { width: 72px; height: 54px; }
.row-body { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.row-title { font-weight: 600; color: var(--teal); overflow-wrap: anywhere; }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; color: var(--ink-soft); }
.row-price { color: var(--ink); }
@media (max-width: 520px) {
  .row-thumb, .row-thumb-none { width: 72px; height: 54px; }
  .row-cat { display: none; }
}

/* ---------- Results ---------- */
.crumbs { font-size: .9rem; color: var(--ink-soft); margin: 18px 0 8px; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.results-head h1 { margin: 0; }
.in-loc { font-weight: 500; color: var(--ink-soft); }
.count { color: var(--ink-soft); margin: 0; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: block; padding: 5px 11px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: .92rem; color: var(--ink); }
.chips a:hover { border-color: var(--teal); color: var(--teal-deep); }
.results-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 18px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px 18px; position: sticky; top: 12px; }
.filters-h { font-size: 1.1rem; margin: 0; }
.filters label:first-of-type { margin-top: .6em; }
.filters .btn { width: 100%; margin-top: 14px; }
.filters .clear { display: block; text-align: center; margin-top: 10px; font-size: .92rem; }
.price-range { display: flex; align-items: center; gap: 6px; margin-top: .9em; flex-wrap: wrap; }
.price-range legend { font-size: 1rem; font-weight: 600; font-variation-settings: "wdth" 100; margin-bottom: .3em; width: 100%; }
.price-range input { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

.alert-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-top: 18px; padding: 14px 18px; background: var(--teal-wash); border: 1px solid #b9dad8; border-radius: var(--radius);
}
.alert-box h2 { font-size: 1.1rem; margin: 0 0 2px; }
.alert-box p { margin: 0; font-size: .95rem; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; align-items: center; }
.pager a, .pager span[aria-current] { padding: 6px 11px; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); text-decoration: none; }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { color: var(--ink-soft); }

/* ---------- Listing page ---------- */
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 8px; align-items: start; }
.listing-main { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; }
.listing-title { margin-bottom: .2em; overflow-wrap: anywhere; }
.listing-price { font-size: 1.5rem; font-weight: 800; font-variation-settings: "wdth" 75; margin: 0 0 .2em; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-soft); font-size: .95rem; }
.gallery { margin: 16px 0; }
.gallery-main { display: block; background: #1d2024; border-radius: var(--radius); text-align: center; }
.gallery-main img { max-height: 560px; width: auto; display: inline-block; vertical-align: middle; }
.gallery-thumbs { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-thumbs a { display: block; border: 2px solid transparent; border-radius: 4px; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--teal); }
.gallery-thumbs img { display: block; width: 80px; height: 60px; object-fit: cover; border-radius: 2px; }
.attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.attrs dt { font-size: .85rem; color: var(--ink-soft); }
.attrs dd { margin: 0; font-weight: 600; }
.listing-body { max-width: 72ch; overflow-wrap: anywhere; }
.listing-id { color: var(--ink-soft); font-size: .85rem; margin-top: 1.5em; }
.listing-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
.contact-box { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--teal); border-radius: var(--radius); padding: 16px; }
.contact-box h2 { font-size: 1.15rem; }
.contact-box .btn { width: 100%; margin-top: 12px; }
.contact-box label:first-of-type { margin-top: .4em; }
.phone { font-size: 1.05rem; }
.side-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.report-link { font-size: .92rem; color: var(--ink-soft); }
.safety-note { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .listing { grid-template-columns: 1fr; }
  .listing-side { position: static; }
  .listing-main { padding: 16px; }
}

.share { border-top: 1px solid var(--rule); padding-top: 12px; }
.share-h { font-size: 1rem; margin-bottom: 8px; }
.share-row { display: flex; flex-wrap: wrap; gap: 6px; }
.share-btn {
  font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); text-decoration: none;
}
.share-btn:hover { border-color: var(--teal); color: var(--teal-deep); }
.share-native { background: var(--teal); color: #fff; border-color: var(--teal); }
.share-native:hover { background: var(--teal-deep); color: #fff; }
.share-status { font-size: .88rem; color: var(--ok); min-height: 1.2em; margin: 6px 0 0; }

.preview-bar { background: var(--teal-wash); border: 1px solid #b9dad8; border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.pv-title { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.pv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fee-note, .fee-box { background: #fff8e6; border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 4px; }
.fee-box.fee-free { background: var(--surface); }

/* ---------- Status labels & tags ---------- */
.status, .tag { display: inline-block; font-size: .78rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: #e7ebea; color: var(--ink); vertical-align: middle; font-variation-settings: "wdth" 100; }
.status-active { background: #dcefe3; color: var(--ok); }
.status-pending { background: #fff1cc; color: #6b4d00; }
.status-rejected, .status-removed, .tag-bad { background: #f8dcd8; color: var(--bad); }

/* ---------- Posting form ---------- */
.post-head { margin-top: 18px; }
.post-form { max-width: 760px; }
.post-form fieldset { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px 18px; margin: 16px 0; }
.post-form legend { float: left; width: 100%; margin-bottom: .2em; }
.post-form legend + * { clear: both; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 18px; clear: both; }
.field-check { align-self: end; padding-bottom: 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 4px 20px; clear: both; }
.money-input { display: flex; align-items: center; gap: 6px; max-width: 220px; }
.money-input span { font-weight: 700; }
.photo-edit { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 12px; clear: both; }
.photo-edit li { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: .9rem; position: relative; }
.photo-edit img { border-radius: 4px; object-fit: cover; }
.cover-tag { position: absolute; top: 4px; left: 4px; background: var(--ink); color: #fff; font-size: .72rem; padding: 1px 6px; border-radius: 3px; }

/* ---------- My listings / account ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 6px; }
.page-head h1 { margin: 0; }
.mylist { margin-top: 22px; }
.mylist h2 .count { font-weight: 400; font-size: .95rem; }
.manage { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.manage-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; flex-wrap: wrap; }
.manage-row + .manage-row { border-top: 1px solid var(--rule); }
.manage-info { display: flex; gap: 12px; min-width: 0; flex: 1 1 320px; }
.manage-info img { border-radius: 4px; object-fit: cover; width: 72px; height: 54px; flex: none; }
.manage-title { font-weight: 600; margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.manage-meta { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.note { font-size: .9rem; margin: 4px 0 0; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .95rem; }
.narrow { max-width: 520px; margin: 24px auto 40px; }
.narrow.error-page { text-align: center; }
.error-code { font-size: 3.5rem; font-weight: 800; font-variation-settings: "wdth" 62; color: var(--gold); margin: 0; line-height: 1; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 14px; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px 20px; margin-bottom: 18px; }
.panel h2 { font-size: 1.2rem; }
.panel-danger { border-color: #e6b3ad; }

.prose { max-width: 72ch; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 28px; margin: 22px 0 32px; }
.prose h2 { margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-top: 18px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; align-self: start; }
.admin-nav a { padding: 8px 10px; border-radius: 4px; color: var(--ink); text-decoration: none; display: flex; justify-content: space-between; }
.admin-nav a:hover { background: var(--teal-wash); }
.admin-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.badge { background: var(--coral); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .8rem; font-weight: 700; }
.admin-main { min-width: 0; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; position: static; }
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 14px 0 20px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink-soft); display: flex; flex-direction: column; }
.stat:hover { border-color: var(--teal); }
.stat-n { font-size: 2rem; font-weight: 800; font-variation-settings: "wdth" 62; color: var(--ink); line-height: 1.1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-col.wide-left { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
@media (max-width: 900px) { .two-col, .two-col.wide-left { grid-template-columns: 1fr; } }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl thead th { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.tbl .num { text-align: right; }
.tbl .details { color: var(--ink-soft); max-width: 340px; overflow-wrap: anywhere; }
.admin-main > .tbl { border: 1px solid var(--rule); }
@media (max-width: 700px) { .admin-main .tbl { display: block; overflow-x: auto; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 10px 0; }
.toolbar label { margin: 0; align-self: center; }
.toolbar input, .toolbar select { width: auto; }
.tabs { display: flex; gap: 6px; margin: 8px 0 14px; }
.tabs a { padding: 6px 12px; border-radius: 4px; text-decoration: none; border: 1px solid var(--rule); background: var(--surface); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.inline-form { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.inline-form input { width: auto; flex: 1 1 140px; padding: 6px 8px; }
.plain { padding-left: 1.1em; }
.cat-fields { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.cat-fields label { margin: 0; font-size: .85rem; font-weight: 600; }
.cat-fields label input, .cat-fields label select { display: block; margin-top: 3px; width: auto; padding: 6px 8px; }
.cat-fields label.check { align-self: center; font-size: .93rem; }
.sub-row { padding: 10px 0; border-top: 1px dashed var(--rule); }
.sub-row.is-hidden { opacity: .65; }
.cat-group details summary { cursor: pointer; margin: 10px 0 4px; font-weight: 600; color: var(--teal); }
.settings-form fieldset.panel legend { margin-bottom: .2em; }
.setting { padding: 6px 0 10px; border-bottom: 1px solid #edf0ef; }
.setting:last-child { border-bottom: 0; }
.setting input[inputmode] { width: 110px; }
.stack.wide { max-width: 900px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; background: var(--ink); color: #d7dbd9; padding: 26px 0 18px; }
.site-footer a { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer-mark { font-weight: 800; font-size: 1.3rem; font-variation-settings: "wdth" 62; color: #fff; margin: 0; }
.tagline { margin: 2px 0 0; color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fine { font-size: .85rem; color: #a9b0ad; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .masthead, .site-footer, .listing-side, .filters { display: none; } }
