:root {
  /* Brand: navy and volt. */
  --navy: #14213D; --volt: #C4E538;
  --bg: #f5f6f8; --surface: #fff; --text: #1b1f24; --muted: #5b6470; --line: #dde1e6;
  --accent: #23407a; --ok: #1a7f37; --warn: #9a6700; --bad: #cf222e;
  /* Primary action (Search) and contact action (Call). */
  --primary-bg: var(--navy); --primary-fg: var(--volt);
  --cta-bg: var(--volt); --cta-fg: var(--navy);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1424; --surface: #16203a; --text: #e6e9ed; --muted: #9aa4b0; --line: #2a3654;
          --accent: var(--volt); --ok: #3fb950; --warn: #d29922; --bad: #f85149;
          --primary-bg: var(--volt); --primary-fg: var(--navy); }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h1, h2, .listing-title { overflow-wrap: anywhere; }
.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px; background: var(--navy); }
.top nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.top nav a, .top nav button.link { color: #dfe5ee; text-decoration: none; }
.top nav a:hover, .top nav button.link:hover { color: var(--volt); }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 30px; width: auto; }
.hero { text-align: center; padding: 64px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); }
.pill.Published, .pill.Open { color: var(--ok); border-color: var(--ok); }
.pill.NeedsReview, .pill.Limited { color: var(--warn); border-color: var(--warn); }
.pill.Rejected, .pill.Full, .pill.Canceled { color: var(--bad); border-color: var(--bad); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
.flyer { max-width: 100%; border: 1px solid var(--line); border-radius: 6px; }
label { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
input[type=text], input[type=date], input[type=time], textarea, select { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
button { padding: 6px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
button.primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); font-weight: 600; }
button.danger { color: var(--bad); border-color: var(--bad); }
button.link { border: 0; background: none; color: var(--accent); padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inline { display: inline; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; min-width: 130px; }
.stat b { display: block; font-size: 22px; }
pre.msg { white-space: pre-wrap; background: var(--bg); padding: 8px; border-radius: 6px; margin: 4px 0; }
.check { display: flex; gap: 12px; flex-wrap: wrap; }
.check label { display: flex; gap: 6px; align-items: center; color: var(--text); margin: 0; }
/* Public site */
.preview-bar { background: var(--warn); color: #fff; text-align: center; font-size: 13px; padding: 4px 16px; }
.search { padding: 24px 0 8px; }
.search h1 { margin: 0 0 12px; font-size: 26px; color: var(--accent); }
@media (prefers-color-scheme: dark) { .search h1 { color: var(--text); } }
.search-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.search-form label { margin-top: 0; }
.search-form input, .search-form select { padding: 8px; }
.search-go button { width: 100%; padding: 8px 18px; }
.search-form > div { min-width: 0; }
@media (max-width: 800px) { .search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .search-form > div:first-child, .search-go { grid-column: 1 / -1; } }
.summary { margin: 12px 0; }
.notice { border-color: var(--warn); }
.listings { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.listing { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.listing-date { flex: none; width: 62px; text-align: center; text-decoration: none; color: var(--text); border-right: 1px solid var(--line); padding-right: 12px; }
.listing-date b { display: block; font-size: 13px; text-transform: uppercase; color: var(--accent); letter-spacing: 0.5px; }
.listing-date span { font-size: 15px; font-weight: 600; }
.listing-date.host b { color: var(--ok); text-transform: none; }
.listing-date.host span { font-size: 13px; font-weight: 400; }
.listing-body { flex: 1; min-width: 0; }
.listing-title { font-weight: 600; font-size: 16px; text-decoration: none; color: var(--text); }
.listing-title:hover { color: var(--accent); }
.divs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.listing-actions { flex: none; display: flex; gap: 6px; }
@media (max-width: 600px) { .listing { flex-wrap: wrap; } .listing-actions { width: 100%; } .listing-actions .btn { flex: 1; text-align: center; } }
.btn { display: inline-block; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 500; }
.btn.primary { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-fg); font-weight: 600; }
.listing-actions .btn:first-child { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-fg); font-weight: 600; }
.small { font-size: 13px; }
.lead { font-size: 17px; }
.place { display: block; }
.divs-table { margin: 12px 0 16px; }
.prose { max-width: 680px; }
.narrow { max-width: 560px; }
.hp { position: absolute; left: -9999px; }
.error { color: var(--bad); font-size: 13px; }
.foot { max-width: 1100px; margin: 24px auto; padding: 16px; border-top: 1px solid var(--line); text-align: center; }
.listing-more { flex: none; font-weight: 600; text-decoration: none; padding: 8px 4px; }
.elsewhere-link { margin-top: 8px; }
