@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plexsans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plexsans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plexsans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plexmono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plexmono-600.woff2') format('woff2');
}

:root {
  --bg: #F4F6F3;
  --surface: #FFFFFF;
  --border: #DADFD6;
  --border-strong: #B8C0B2;
  --text-primary: #1B241C;
  --text-secondary: #566052;
  --text-muted: #8A9285;
  --accent: #1F6F54;
  --accent-bg: #E4F1EA;
  --accent-text: #12503C;
  --closed-bg: #ECEEEA;
  --closed-text: #5A6156;
  --focus: #0B63C4;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  border: 2px solid var(--focus);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }

header.top { padding: 20px 0 16px; }

.brand { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.brand h1 { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.brand h1 .dot { color: var(--accent); }
.brand .place {
  font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}

.today-date {
  margin: 4px 0 0; font-size: 13px; color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

.search-row { display: flex; gap: 8px; margin-top: 18px; }
.search-row label { position: absolute; left: -9999px; }
.search-row input[type="text"] {
  flex: 1; height: 48px; padding: 0 16px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-primary);
}
.search-row input[type="text"]::placeholder { color: var(--text-muted); }
.search-row button {
  width: 48px; height: 48px; flex-shrink: 0; border: 1.5px solid var(--accent);
  background: var(--accent); border-radius: var(--radius-sm); color: #fff;
  font-size: 18px; cursor: pointer;
}
.search-row button:hover { background: var(--accent-text); }
#geo-btn { background: var(--surface); border-color: var(--border-strong); color: var(--text-secondary); }
#geo-btn:hover { background: var(--closed-bg); }
#geo-btn.is-active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-text); }

.geo-status { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; min-height: 18px; }

.context-banner {
  margin-top: 14px; background: var(--accent-bg); color: var(--accent-text);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.context-banner svg { flex-shrink: 0; }

nav.filters { display: flex; gap: 8px; overflow-x: auto; margin: 18px 0 4px; padding-bottom: 4px; }
nav.filters button {
  flex-shrink: 0; font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border-strong);
  background: var(--surface); color: var(--text-primary); cursor: pointer;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
nav.filters button svg { width: 15px; height: 15px; }
nav.filters button[aria-pressed="true"] { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }

main { padding-bottom: 100px; }

h2.section-label {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); font-weight: 600; margin: 24px 0 10px;
}
h2.section-label--referral { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

ul.listings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.card.is-closed { background: transparent; border-style: dashed; }
.card.is-hidden-by-filter { display: none; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-main { display: flex; gap: 12px; min-width: 0; }
.card-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--text-secondary); }
.card-name { font-weight: 500; font-size: 15px; margin: 0; }
.card-meta { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--text-secondary); margin: 3px 0 0; }

.badge { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.badge.open { background: var(--accent-bg); color: var(--accent-text); }
.badge.closed { background: var(--closed-bg); color: var(--closed-text); }

.card-action {
  margin-top: 10px; font-family: inherit; font-size: 12.5px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-secondary); cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
}
.card-action:hover { border-color: var(--text-primary); color: var(--text-primary); }

.report-form { display: none; margin-top: 10px; gap: 8px; flex-direction: column; }
.report-form.is-open { display: flex; }
.report-form label { font-size: 12.5px; color: var(--text-secondary); }
.report-form textarea {
  font-family: inherit; font-size: 13px; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong); resize: vertical; min-height: 60px;
}
.report-form .report-actions { display: flex; gap: 8px; }
.report-form button {
  font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 14px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--accent); background: var(--accent);
  color: #fff; cursor: pointer;
}
.report-form button.cancel { background: transparent; border-color: var(--border-strong); color: var(--text-secondary); }
.report-confirm { font-size: 12.5px; color: var(--accent-text); margin-top: 8px; display: none; }
.report-confirm.is-visible { display: block; }

.empty-state { text-align: center; padding: 40px 16px; color: var(--text-secondary); }

.card.is-referral { background: transparent; border-style: dashed; }
.card.is-referral .card-name { color: var(--text-secondary); }
.card.is-referral .referral-note { font-size: 13px; color: var(--text-muted); margin: 3px 0 0; }
.card.is-referral .card-action { margin-top: 12px; border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.card.is-referral .card-action:hover { background: var(--accent-bg); }

.subscribe-bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 0; }
.subscribe-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.subscribe-bar p { margin: 0; font-size: 13.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.subscribe-bar button {
  font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 16px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--accent); background: var(--accent);
  color: #fff; cursor: pointer; flex-shrink: 0;
}
.subscribe-bar button:hover { background: var(--accent-text); border-color: var(--accent-text); }

footer.legal { padding: 20px 0 40px; font-size: 12.5px; color: var(--text-muted); text-align: center; }
footer.legal p { margin: 0 0 8px; }
footer.legal nav a { color: var(--text-secondary); margin: 0 8px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
