:root {
 color-scheme: light;
 --paper: #fafaf7;
 --ink: #212421;
 --muted: #565c58;
 --line: #d2d4cb;
 --blue: #253fba;
 --yellow: #f2d764;
 font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.48; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); font-weight: 600; }
button:hover { border-color: var(--blue); color: var(--blue); }
button:disabled { opacity: .5; cursor: default; }
button.primary { border-color: var(--blue); background: var(--blue); color: white; }
button.primary:hover { background: #1c3198; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 3; background: white; padding: 10px; }
.skip:focus { top: .5rem; }
.masthead { border-bottom: 1px solid var(--ink); }
.mastrow, main, footer { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.mastrow { display: flex; gap: clamp(18px,4vw,56px); align-items: center; min-height: 72px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 850; font-size: 26px; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.brand span { color: #253fba; }
nav { display: flex; gap: 22px; }
nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
nav a[aria-current], nav a:hover { color: var(--blue); }
#publish { margin-left: auto; white-space: nowrap; }
.page-title { margin: 42px 0 22px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(32px,4vw,50px); line-height: 1.05; letter-spacing: -.055em; font-weight: 800; }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(168px, 1fr) auto; align-items: end; gap: 12px; }
label { display: grid; min-width: 0; gap: 5px; font-size: 14px; font-weight: 650; }
input, select, textarea { display: block; width: 100%; min-width: 0; border: 1px solid #9da39b; border-radius: 4px; background: white; color: var(--ink); padding: 10px 12px; font-size: 16px; font-weight: 400; }
textarea { resize: vertical; }
input[type=file] { font-size: 14px; }
.filters input, .filters select, .filters .quiet { min-height: 47px; }
.categories { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 5px 6px; padding: 5px 0 18px; border-bottom: 1px solid var(--ink); }
.categories:empty { min-height: 20px; }
.categories button { min-height: 35px; padding: 5px 10px; font-size: 14px; border-color: transparent; background: transparent; }
.categories button[aria-pressed=true] { color: var(--ink); background: #f6e7a1; }
.categories button:hover { color: var(--blue); }
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .39fr); gap: clamp(28px,5vw,76px); margin: 28px 0 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
#count, .station-count { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); }
#status:not(:empty) { margin: 14px 0; color: var(--muted); }
.empty { padding: 26px 0 30px; border-block: 1px solid var(--line); }
.empty p, #geo p { margin: 7px 0; color: var(--muted); }
.empty button { margin-top: 8px; }
#map-pins { margin-top: 10px; }
#map-pins button { display: flex; width: 100%; justify-content: space-between; text-align: left; gap: 5px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 9px 0; border-radius: 0; font-size: 15px; }
#map-pins button[aria-pressed=true] { color: var(--blue); font-weight: 750; }
#map-pins button[aria-pressed=true] > span:first-child { text-decoration: underline; }
#geo { margin: 14px 0; }
#geo summary { color: var(--blue); font-size: 14px; font-weight: 650; }
#geo p, #geo a { font-size: 13px; }
#street-map iframe { display: block; width: 100%; height: 245px; margin: 10px 0; border: 0; }
.card { display: flex; gap: 15px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.card img { width: clamp(72px,9vw,112px); height: auto; aspect-ratio: 1; border-radius: 3px; }
.card-body { flex: 1; min-width: 0; }
.meta { font-size: 13px; color: var(--muted); }
.card h3 { margin: 4px 0 6px; }
.card h3 button { font: inherit; font-weight: 730; padding: 0; text-align: left; background: transparent; color: var(--blue); border: 0; }
.excerpt { font-size: 15px; }
.price { font-size: 17px; font-weight: 750; }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-block: 16px 28px; font-size: 14px; }
footer span { margin-right: auto; font-weight: 700; }
footer button { font-size: inherit; }
dialog { width: min(540px, calc(100% - 24px)); max-height: calc(100dvh - 30px); overflow: auto; border: 1px solid var(--ink); border-radius: 8px; padding: 24px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #20232291; }
.dialog-head { float: right; margin: -5px -4px 4px 8px; }
.dialog-head button { line-height: 1; width: 36px; height: 36px; padding: 0; font-size: 22px; }
dialog h2 { margin: 0 36px 20px 0; }
dialog h3 { margin-top: 12px; }
dialog form, #submitted { display: grid; gap: 14px; clear: both; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent { display: flex; gap: 9px; font-weight: 400; align-items: flex-start; }
.consent input { accent-color: var(--blue); flex: none; width: 19px; height: 19px; }
small,.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
dialog p[role=status]:empty { display: none; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
#detail-body { display: grid; gap: 12px; }
.detail-price { font-size: 24px; font-weight: 750; }
.contact { border-block: 1px solid var(--line); padding: 12px 0; }
.contact span { display: block; color: var(--muted); font-size: 13px; }
#contact-link { overflow-wrap: anywhere; }
@media (max-width: 760px) {
 .mastrow, main, footer { width: calc(100% - 32px); }
 .mastrow { flex-wrap: wrap; padding: 12px 0 9px; gap: 8px 16px; }
 .mastrow nav { order: 3; width: 100%; gap: 18px; }
 .page-title { margin: 25px 0 16px; }
 .filters { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
 .search { grid-column: 1 / -1; }
 .board-layout { grid-template-columns: 1fr; gap: 26px; margin: 22px 0 34px; }
 .map-panel { border-top: 1px solid var(--line); padding-top: 18px; }
 #map-pins { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
 .card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
 .card img { grid-row: span 2; }
 .card-body, .price { grid-column: 2; }
 .card:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
 .card:not(:has(img)) .card-body, .card:not(:has(img)) .price { grid-column: 1; }
}
@media (max-width: 420px) {
 .categories { gap: 3px; }
 .categories button { font-size: 13px; padding: 6px 8px; }
 .form-row { grid-template-columns: 1fr; }
 dialog { padding: 16px; }
 .brand { font-size: 24px; }
 #publish { padding: 8px 10px; font-size: 14px; }
}
