/* OK Events — design system: "Garnet & Chalk Editorial"
   Editorial, warm, data-forward. Inter for UI, Fraunces for display.
   Garnet accent, charcoal structure, deepened slate-blue tertiary,
   warm-stone hairlines on a chalk ground. Pale blue = keystone/rules.

   Fonts are SELF-HOSTED variable fonts (public/fonts/, latin subsets of
   Google's own VF woff2s) — replaces the render-blocking Google Fonts
   css2 request. `font-display: swap`; variable axes mean one file per
   family covers every weight (Inter 100–900, Fraunces 100–900 + opsz). */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter-vf.woff2") format("woff2-variations");
}
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: normal;
    font-display: swap;
    src: url("/fonts/fraunces-vf.woff2") format("woff2-variations");
}

:root {
    --bg: #F2EEE6;             /* chalk page bg */
    --bg2: #EAE5DA;            /* deeper chalk tint */
    --surface: #FFFFFF;        /* card / panel surface */
    --text: #22201F;           /* charcoal — near-black editorial text */
    --text-2: #6C6158;         /* warm muted body text (AA on chalk) */
    --text-3: #8A8078;         /* faint warm meta / icons */
    --border: #E3DDD0;         /* warm stone hairline */
    --border-strong: #D4CDBE;
    --accent: #7A1F2B;         /* garnet — the brand accent */
    --accent-hover: #A84C57;   /* rose — warm interaction / link hover */
    --accent-soft: #F1E3E1;    /* date-stamp bg / soft garnet wash */
    --accent-wash: rgba(122,31,43,.25);  /* hover border / focus-ring wash */
    --accent-text: #ffffff;
    --slate: #22201F;          /* structural: dark nav/btn ground, charcoal family */
    --slate-text: #F2EEE6;     /* chalk reverse tint on dark ground */
    --sage: #46647E;           /* deepened slate-blue tertiary (text + rules, AA) */
    --sage-soft: #E6EEF3;      /* pale-blue soft wash */
    --blue: #A9C3D9;           /* pale blue — keystone / quiet rules / soft accent */
    --amber: #7a5314;          /* functional-only: long-running */
    --radius: 16px;            /* cards + image containers */
    --radius-sm: 8px;          /* inputs + badges */
    /* elevation */
    --shadow-card: 0 4px 20px -2px rgba(34,32,31,.04);
    --shadow-pop: 0 8px 30px rgba(34,32,31,.12);
    --shadow-sheet: 0 -8px 28px rgba(34,32,31,.14);
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --tap: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }

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

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Uppercase letter-spaced micro-label, used for metadata keys/pills */

/* ---------- Header ---------- */

/* Distinctive touch: 3px accent edge flush to the viewport top */

/* Brand: W1 wordmark lockup (Fraunces). Mark deleted round 4. */
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    justify-self: start; color: var(--text); padding: 6px 0;
    line-height: 1;
}
.brand:hover { text-decoration: none; color: var(--text); }

/* Nav: segmented control on a hairline track */

.nav-link.active {
    background: var(--surface); border-color: var(--border-strong);
    color: var(--accent); font-weight: 650;
}
.nav-link.active:hover { color: var(--accent); }

/* Search: left affordance icon shifts to accent + border draws in on focus */
.header-search {
    justify-self: end; display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 5px 5px 5px 14px;
    width: 280px; transition: border-color .15s, box-shadow .15s;
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.header-search:focus-within .search-icon { color: var(--accent); }
.header-search input {
    border: 0; background: transparent; outline: none;
    font: inherit; font-size: 14px; flex: 1; color: var(--text);
    min-width: 0;
}
.header-search button {
    border: 0; background: var(--accent); color: #fff;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
    transition: background .15s;
}
.header-search button:hover { background: var(--accent-hover); }

/* ---------- Hero ---------- */
.hero {
    padding: 72px 0 20px; text-align: center;
    max-width: 780px; margin: 0 auto;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 700; margin: 0 0 14px;
    letter-spacing: -0.025em; line-height: 1.03;
    color: var(--text); text-wrap: balance;
}
.hero-sub {
    color: var(--text-2); font-size: 18px; margin: 0 0 30px;
    font-variant-numeric: tabular-nums; text-wrap: pretty;
}
.hero-search {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 10px; padding: 7px 7px 7px 18px;
    transition: border-color .15s, box-shadow .15s;
    text-align: left;
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero-search input {
    border: 0; background: transparent; outline: none;
    font: inherit; font-size: 16px; flex: 1; color: var(--text); min-width: 0;
}

/* ---------- Section titles / featured rail ---------- */

/* ---------- Filter bar (single sticky row) ---------- */
.filter-bar {
    position: sticky; top: 66px; z-index: 40;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 14px 0; margin: 36px 0 4px;
    background: rgba(247,246,242,.9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.chip-group { display: flex; gap: 6px 18px; flex-wrap: wrap; }
/* Base .chip is the pill-button shape that the date-navigation chips build on
   and opt out of below (landing/map "When" rows). */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 15px; border-radius: 999px; min-height: var(--tap);
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-2); font-weight: 550; font-size: 13.5px;
    cursor: pointer; transition: border-color .15s, color .15s, background .15s;
    text-decoration: none; box-sizing: border-box;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Date navigation (landing + map "When"): quiet underline links, not pills —
   the same terracotta selected rule the primary nav and browse rail use, so
   every date surface reads as one system. Scoped to .chip-group so the Clear
   button keeps its button shape. */
.chip-group .chip {
    position: relative; gap: 0; min-height: var(--tap); padding: 9px 0;
    border: 0; background: none; border-radius: 0;
    color: var(--text-2); font-weight: 600; font-size: 13.5px;
}
.chip-group .chip:hover { color: var(--text); background: none; border-color: transparent; }
.chip-group .chip-active,
.chip-group .chip-active:hover { color: var(--accent-hover); }
.chip-group .chip-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 3px;
    height: 2px; background: var(--accent); border-radius: 2px;
}

/* When filter: a plain wrapped row of date links — no track, no inner pill,
   no shadow. The selected date carries a single terracotta underline, matching
   the primary nav rule and the landing/map date chips. */
.seg {
    display: flex; flex-wrap: wrap; gap: 4px 18px;
}
.seg-item {
    position: relative; display: inline-flex; align-items: center;
    white-space: nowrap; min-height: var(--tap); padding: 9px 0;
    color: var(--text-2); font-size: 13.5px; font-weight: 600;
    transition: color .15s;
}
.seg-item:hover { color: var(--text); text-decoration: none; }
.seg-item.is-active { color: var(--accent-hover); font-weight: 700; }
.seg-item.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 3px;
    height: 2px; background: var(--accent); border-radius: 2px;
}
.filter-bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Plain reset link on filtered landings — quiet until hovered, terracotta cue. */
.filter-clear { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text-2); font-size: 13px; font-weight: 600; }
.filter-clear:hover { color: var(--accent); text-decoration: none; }
.select {
    padding: 0 34px 0 13px; height: var(--tap); border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--surface);
    font: inherit; font-size: 14px; color: var(--text);
    cursor: pointer; min-width: 170px;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b919b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.select:hover { border-color: var(--border-strong); }
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Grid & cards ---------- */
.grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(3, 1fr);
    padding: 28px 0 32px;
}
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid { grid-template-columns: 1fr; } }

/* Event card: a flat, bordered editorial surface — no shadow, no hover
   lift. Hierarchy and a crisp hairline footer carry it; the whole card is
   one link, so focus lands on the link, not the article. */
.event-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    transition: border-color .15s ease;
    cursor: pointer; height: 100%;
    display: flex; flex-direction: column;
}
.event-card:hover, .event-card:focus-within { border-color: var(--border-strong); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.card-image {
    position: relative; aspect-ratio: 16/9; overflow: hidden;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
}
/* Missing / broken thumbnail: a flat parchment field (no gradient) with a
   single line-art ticket motif — intentional, not a blank grey box or emoji. */
.card-image.img-missing {
    background: var(--bg2);
}
.card-image.img-missing::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: center / 48px 48px no-repeat
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322201F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v2a2 2 0 0 0 0 4v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2a2 2 0 0 0 0-4z'/%3E%3Cpath d='M15 6v12'/%3E%3C/svg%3E");
    opacity: .14;
}
.card-image img {
    width: 100%; height: 100%; object-fit: cover;
}
/* Stacked date stamp: square parchment tile, hairline border, terracotta
   numerals — a clean ticket stub, not a floating glossy badge. */
.date-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 4px; padding: 5px 8px; text-align: center; line-height: 1.04;
    display: flex; flex-direction: column; align-items: center;
    font-variant-numeric: tabular-nums;
    font-size: 17px; font-weight: 700; color: var(--accent);
}
.date-badge strong {
    font-size: 9.5px; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: .1em;
}
.card-body { padding: 15px 17px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--text-2);
    font-variant-numeric: tabular-nums;
}

.card-title {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700; margin: 1px 0 0;
    letter-spacing: -0.015em; line-height: 1.18; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .15s;
}
.event-card:hover .card-title { color: var(--accent); }
.card-when {
    margin: 0; font-size: 13.5px; color: var(--text-2); font-weight: 550;
    font-variant-numeric: tabular-nums; letter-spacing: -0.005em;
    line-height: 1.4;
}
.card-price {
    font-size: 14px; color: var(--text); font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 0; overflow-wrap: anywhere;
}
.card-price strong { color: var(--text); font-weight: 700; }
.card-detail-link {
    display: inline-flex; align-items: center; gap: 3px; margin-left: auto;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    color: var(--accent); white-space: nowrap; flex-shrink: 0;
    transition: gap .15s;
}
.event-card:hover .card-detail-link { gap: 7px; }
/* Footer: a hairline rule, price and action on one baseline */
.card-foot {
    display: flex; align-items: baseline; gap: 10px;
    margin-top: auto; padding-top: 12px;
    border-top: 1px solid var(--border);
}
.card-city {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; color: var(--text-2); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.card-city::before {
    content: ""; flex-shrink: 0;
    width: 12px; height: 12px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.5-7-11a7 7 0 0 1 14 0c0 4.5-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-7-6.5-7-11a7 7 0 0 1 14 0c0 4.5-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat;
    color: var(--text-3);
}
.card-cat {
    display: inline-flex; align-self: center;
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: transparent; color: var(--sage);
    padding: 2px 0; border-radius: 0;
    border-top: 2px solid var(--sage);
    flex-shrink: 0; white-space: nowrap;
}
/* ---------- Empty state ---------- */
.empty-state {
    grid-column: 1 / -1; text-align: center; padding: 72px 20px;
    color: var(--text-2);
}
.empty-icon { margin-bottom: 14px; color: var(--text-3); }
.empty-icon svg { width: 46px; height: 46px; display: inline-block; }
.empty-state h3 { margin: 0 0 6px; color: var(--text); font-size: 19px; }
.empty-state p { margin: 0 0 18px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--radius-sm); min-height: var(--tap);
    font: inherit; font-size: 14.5px; font-weight: 600;
    cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(221,80,36,.28); }
.btn-secondary { background: var(--slate); border-color: var(--slate); color: var(--slate-text); }
.btn-secondary:hover { background: #343230; border-color: #343230; color: var(--slate-text); }
/* Ghost: stone hairline on transparent, hover fills to a soft parchment tint */
.btn-ghost { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--bg2); border-color: var(--border-strong); color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Pagination ---------- */
.pagination { padding: 12px 0 64px; }
.pagination-nav { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: var(--tap); min-height: var(--tap); padding: 0 14px;
    border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-2); font-size: 14px; font-weight: 550;
    font-variant-numeric: tabular-nums;
}
a.page-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.page-link.disabled { opacity: .4; cursor: default; }

/* ---------- Detail page ---------- */

.detail-aside { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 48px 0 0; margin-top: 40px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand .apb-wordmark { font-size: 20px; }   /* W1 wordmark at footer scale */
.footer-blurb { color: var(--text-2); font-size: 14px; line-height: 1.6; max-width: 320px; margin: 0; text-wrap: pretty; }
.footer-col h3 {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-3); margin: 0 0 8px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.footer-col a {
    color: var(--text-2); font-size: 14px; font-weight: 500;
    display: inline-block; padding: 9px 0;   /* ~40px tap target */
}
.footer-col a:hover { color: var(--accent); }

/* Mobile detail: top back link (hidden on desktop) */

/* Info-card links (tel/mailto/web) need real tap height */

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
    /* Full-bleed scroll rails (carousel, chip row) must not widen the page */
    html, body { overflow-x: clip; }
    .wrap { padding: 0 16px; }

    /* Header: brand + segmented toggle only; search lives in hero.
       Grid keeps 1fr auto 1fr so the toggle still sits far right. */
    .header-search { display: none; }
    
       /* ~40px tap height */
    .filter-bar { top: 58px; }

    /* Hero */
    .hero { padding: 44px 0 12px; }
    .hero h1 { font-size: clamp(34px, 9vw, 46px); }
    .hero-sub { font-size: 15.5px; margin-bottom: 22px; }
    .hero-search { padding: 6px 6px 6px 16px; }
    /* 16px prevents iOS auto-zoom on focus */
    .hero-search input { font-size: 16px; }

    /* Sticky filter bar: scrollable chip row, stacked selects */
    .filter-bar {
        gap: 10px; padding: 10px 0;
        margin: 22px 0 0;
    }
    .chip-group {
        flex-wrap: nowrap; overflow-x: auto;
        margin: 0 -16px; padding: 0 16px 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        mask-image: linear-gradient(to right, #000 88%, transparent 100%);  /* soft right fade = scroll cue */
        -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    }
    .chip-group::-webkit-scrollbar { display: none; }
    .chip {
        flex: 0 0 auto; padding: 10px 15px;   /* 40px+ tap target */
        font-size: 14px;
    }
    .filter-bar-right { margin-left: 0; width: 100%; gap: 8px; }
    /* Landing date subnav: omit the mobile reset row and its reserved space. */
    #filter-bar .filter-bar-right:has(> .filter-clear) { display: none; }
    .select { min-width: 0; flex: 1 1 45%; }

    /* Grid & cards */
    .grid { gap: 16px; padding: 18px 0 8px; }
    .card-body { padding: 14px 15px 15px; }
    .card-title { font-size: 18px; }
    .card-foot { flex-wrap: wrap; row-gap: 6px; }
    .card-cat { margin-left: auto; }

    /* Pagination: generous tap targets */
    .pagination { padding: 8px 0 44px; }

    /* Detail page */
    

    /* Footer */
    .site-footer { padding: 40px 0 0; }
    .footer-grid { gap: 26px; padding-bottom: 32px; }
}

/* Small phones */

/* ============================================================
   PASS 3 — Data-cockpit hero (home only): no photo, the live
   data IS the hero. Left-axis headline + search, a 4-tile
   "right now" board, quick-jump chips.
   ============================================================ */

.hero-cockpit {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 0 0;
}

.hcx-search {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1.5px solid var(--border-strong);
    border-radius: 12px; padding: 8px 8px 8px 18px;
    max-width: 640px; margin-top: 24px;
    box-shadow: 0 1px 0 rgba(23,25,29,.03);
    transition: border-color .15s, box-shadow .15s;
}
.hcx-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hcx-search svg { color: var(--text-3); flex-shrink: 0; }
.hcx-search input {
    flex: 1; min-width: 0; border: none; outline: none;
    font: inherit; font-size: 16px; background: transparent; color: var(--text);
}
.hcx-search input::placeholder { color: var(--text-3); }

/* Quick-jump strip */
.hcx-strip {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 16px 0 26px;
}
.hcx-strip-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .13em; color: var(--text-3); margin-right: 4px;
    white-space: nowrap; flex-shrink: 0;
}
/* Quick-browse shortcuts: plain inline navigation links — no box, border,
   fill or left rule. The labelled place/type clusters carry the grouping, so
   the links themselves stay quiet and read as editorial navigation. */
.hcx-tile {
    display: inline-flex; align-items: center; min-height: 40px;
    font-size: 14px; font-weight: 600; color: var(--text);
    transition: color .15s;
}
.hcx-tile:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hcx-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; text-decoration: underline; text-underline-offset: 3px; }

/* Home quick-browse: one aligned index — a label column and a link row per
   facet, hairline-ruled. Metros lead the place row, set off from the cities
   by a vertical hairline. Real links, wrapping (never clipped) on phones. */
.hcx-browse { padding: 0 0 6px; }
.hcx-browse-col {
    display: grid; grid-template-columns: minmax(0, 1fr);
    align-items: center; column-gap: 12px; padding: 4px 0;
}
.hcx-browse-col + .hcx-browse-col { border-top: 1px solid var(--border); }

.hcx-browse-row { display: flex; flex-wrap: wrap; column-gap: 24px; }
.hcx-browse .hcx-tile-metro { font-weight: 700; }
.hcx-browse .hcx-tile-metro + .hcx-tile:not(.hcx-tile-metro) {
    padding-left: 24px; border-left: 1px solid var(--border-strong);
}

/* ---------- Full-width accent CTA band ---------- */
.band-cta { background: var(--accent); color: #fff; margin-top: 8px; }
.band-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    padding-top: 34px; padding-bottom: 34px;
}
.band-cta-line {
    margin: 0; font-family: var(--font-display);
    font-size: clamp(22px, 3.4vw, 32px); font-weight: 600;
    letter-spacing: -0.02em; line-height: 1.15; color: #fff; text-wrap: balance;
}
.band-cta-btn {
    display: inline-flex; align-items: center; min-height: var(--tap);
    padding: 13px 26px; border-radius: var(--radius-sm); flex-shrink: 0;
    background: #fff; color: var(--accent); font-weight: 700; font-size: 15px; white-space: nowrap;
    transition: background .15s, color .15s;
}
.band-cta-btn:hover { background: var(--bg); color: var(--accent-hover); text-decoration: none; }

/* ---------- Mobile: board folds to 2x2, chips scroll ---------- */
@media (max-width: 720px) {
    .hero-cockpit { padding-top: 6px; }
    
    .hcx-search { margin-top: 18px; }
    .hcx-search input { font-size: 16px; }   /* no iOS zoom */
    .hcx-strip {
        flex-wrap: nowrap; overflow-x: auto;
        margin: 0 -16px; padding: 12px 16px 22px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .hcx-strip::-webkit-scrollbar { display: none; }
    .hcx-tile { flex: 0 0 auto; }

    /* Home browse: label sits above its links; links wrap onto a second line
       rather than scroll, so every destination stays visible and focusable. */
    .hcx-browse-col { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding: 8px 0 2px; }
    .hcx-browse-row { column-gap: 20px; }
    .hcx-browse .hcx-tile-metro + .hcx-tile:not(.hcx-tile-metro) { padding-left: 0; border-left: 0; }

    .band-cta-inner { flex-direction: column; align-items: flex-start; padding-top: 26px; padding-bottom: 26px; }
    .band-cta-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ==== SITE HEADER — two-band light layout ====
   Row 1 (brand · search · view switch · submit CTA), Row 2
   (quick-browse category strip). Sticky, glassmorphism, all
   light — no dark slate bar. --apb-h drives the sticky offset
   of the browse filter rail/bar beneath it.
   ============================================================ */
.header-variant-b { --apb-h: 115px; }   /* row1 60 + strip 1+53 + header border 1 */

.appbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250,249,246,.88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(34,32,31,.06);
}
.apb-inner {
    display: flex; align-items: center;
    max-width: 1440px; margin: 0 auto; padding: 0 32px;
}

/* Row 1 — brand · search · view switch · submit */
.apb-band-main .apb-inner { gap: 20px; height: 60px; }
.apb-brand {
    display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
    color: var(--text); line-height: 1;
}
.apb-brand:hover { text-decoration: none; color: var(--text); }
/* W1 "Editorial masthead" wordmark — two-tone Fraunces 700 with a garnet
   keystone hairline beneath. Charcoal "Oklahoma" + garnet "Events".
   Sized in px here; the em-based rule/padding scale with font-size. */
.apb-wordmark {
    font-family: var(--font-display); font-optical-sizing: auto; font-weight: 700;
    font-size: 22px; letter-spacing: -0.02em; line-height: 1; color: var(--text);
    white-space: nowrap; display: inline-block;
    border-bottom: .05em solid var(--accent); padding-bottom: .1em;
}
.apb-wordmark-accent { color: var(--accent); }

/* Search: pill that flexes to fill the row, border draws to terracotta on focus */
.apb-search {
    display: flex; align-items: center; gap: 9px;
    flex: 1 1 auto; max-width: 520px; min-width: 0;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 999px; padding: 0 5px 0 16px; height: 42px;
    transition: border-color .15s, box-shadow .15s;
}
.apb-search:focus-within { border-color: var(--accent); border-width: 2px; box-shadow: 0 0 0 3px var(--accent-soft); }
.apb-search-icon { display: flex; color: var(--text-3); flex-shrink: 0; transition: color .15s; }
.apb-search:focus-within .apb-search-icon { color: var(--accent); }
.apb-search input {
    flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
    font: inherit; font-size: 14px; color: var(--text);
}
.apb-search input::placeholder { color: var(--text-3); }
/* Explicit submit affordance so the search is obviously submittable */
.apb-search-go {
    flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 999px;
    background: var(--accent); color: #fff; cursor: pointer;
    display: grid; place-items: center; transition: background .15s;
}
.apb-search-go:hover { background: var(--accent-hover); }
.apb-search-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.apb-search-go svg { width: 17px; height: 17px; display: block; }

/* Submit CTA: solid terracotta primary, tiny lift on hover */
.apb-submit {
    display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
    height: 42px; padding: 0 18px; border-radius: 8px;
    background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.apb-submit:hover {
    background: var(--accent-hover); color: #fff; text-decoration: none;
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(221,80,36,.28);
}
.apb-submit svg { width: 17px; height: 17px; flex-shrink: 0; }

/* View switch (Map view / List view): a quiet bordered action beside Submit,
   so the primary CTA stays the only filled control. Icon-only on mobile. */
.apb-view {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    height: 42px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 8px;
    color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.apb-view:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.apb-view:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.apb-view svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Row 2 — quick-browse category strip (sticky with the header, scrolls sideways) */
.apb-chip-strip { border-top: 1px solid rgba(34,32,31,.04); }
.apb-chip-strip-inner {
    display: flex; gap: 22px; align-items: center;
    max-width: 1440px; margin: 0 auto; padding: 0 32px; height: 53px;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.apb-chip-strip-inner::-webkit-scrollbar { display: none; }
.apb-chip {
    position: relative; flex: 0 0 auto; display: inline-flex; align-items: center;
    min-height: 40px; white-space: nowrap;
    color: var(--text-2); font-size: 13px; font-weight: 500;
    transition: color .15s;
}
.apb-chip:hover { color: var(--text); text-decoration: none; }
.apb-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
/* Selected category: terracotta text + a 2px underline rule, not a filled pill. */
.apb-chip-on { color: var(--accent-hover); font-weight: 600; }
.apb-chip-on:hover { color: var(--accent-hover); }
.apb-chip-on::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
    height: 2px; background: var(--accent); border-radius: 2px;
}

/* Browse filter rail/bar pins directly beneath the full header */
.header-variant-b .filter-bar { top: var(--apb-h); }

@media (max-width: 720px) {
    .header-variant-b { --apb-h: 108px; }   /* row1 56 + strip 1+50 + header border 1 */
    .apb-inner { padding: 0 16px; }
    .apb-band-main .apb-inner { gap: 12px; height: 56px; }
    .apb-wordmark { font-size: 19px; }
    .apb-search { height: 40px; }
    .apb-search input { font-size: 16px; }   /* 16px prevents iOS auto-zoom */
    .apb-submit { display: none; }   /* Submit CTA lives on desktop only; frees the search row on mobile */
    .apb-view { display: none; }   /* no map/list switch on mobile — search gets the room; /map still reachable by URL */
    .apb-chip-strip-inner { gap: 18px; padding: 0 16px; height: 50px; }
}

/* Small phones: the wordmark IS the brand now (no mark since round 4) — keep it
   visible as a compact lockup instead of hiding it, and let the search pill flex
   tighter so row 1 still fits (footer wordmark was never hidden). */
@media (max-width: 560px) {
    .apb-wordmark { font-size: 16px; }
    .apb-band-main .apb-inner { gap: 10px; }
}

/* ============================================================
   PASS 4 — Prairie & Twilight restyle: left filter rail + card
   grid browse layout with a mobile filter sheet, and the
   redesigned event-detail page.
   ============================================================ */

/* ---------- Browse layout: sticky filter rail + card grid ---------- */
.browse {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 32px; align-items: start; padding-top: 12px;
}
.browse-main { min-width: 0; }
.browse-main .grid { padding-top: 0; }
/* Desktop: a quiet editorial filter column — no card, no border. The three
   concepts (When / Place / Category) read as groups through spacing rhythm:
   generous air between groups, tight within the place pair. */
.filter-rail {
    position: sticky; top: calc(var(--apb-h, 158px) + 8px);
    display: flex; flex-direction: column; gap: 26px;
}
.filter-rail-head { display: flex; align-items: center; justify-content: space-between; }
.rail-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text); }
.filter-rail-close {
    display: none; align-items: center; justify-content: center;
    border: 0; background: transparent; cursor: pointer;
    color: var(--text-2); padding: 4px 6px; line-height: 0;
}
.filter-rail-close svg { width: 20px; height: 20px; display: block; }
.filter-rail-close:hover { color: var(--text); }
.rail-group { display: flex; flex-direction: column; gap: 10px; }
/* A labelled field (label + control). Multiple fields in one group (place)
   sit a step tighter than the gap between groups, so they read as a pair. */
.rail-field { display: flex; flex-direction: column; gap: 6px; }
.rail-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: var(--text-2);
}
.filter-rail .chip-group { gap: 8px; }
.filter-rail .select { width: 100%; min-width: 0; }

/* When: a vertical list of date links in the sidebar/sheet — scannable as a
   set, where the wrapped horizontal row was not. Selected date carries the
   site's terracotta underline, hugging the word via text-decoration so it
   reads under the label rather than floating at the row's base. */
.filter-rail .seg { flex-direction: column; align-items: flex-start; gap: 0; }
.filter-rail .seg .seg-item.is-active::after { content: none; }
.filter-rail .seg .seg-item.is-active {
    text-decoration: underline; text-decoration-color: var(--accent);
    text-decoration-thickness: 2px; text-underline-offset: 5px;
}

/* Clear: a quiet reset link, terracotta only on hover — not a bordered pill. */
.rail-foot {
    display: flex; align-items: center; gap: 10px;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.rail-clear {
    display: inline-flex; align-items: center; min-height: var(--tap);
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600;
    transition: color .15s;
}
.rail-clear:hover { color: var(--accent); }
.rail-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.filter-fab, .filter-backdrop { display: none; }

/* Tablet: rail collapses to a horizontal sticky filter bar above the grid */
@media (min-width: 768px) and (max-width: 1199px) {
    .browse { grid-template-columns: 1fr; gap: 18px; }
    .filter-rail {
        position: sticky; top: calc(var(--apb-h, 158px) + 8px); z-index: 30;
        flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px;
        padding: 12px 16px;
        background: rgba(250,249,246,.9); backdrop-filter: saturate(180%) blur(12px);
    }
    .filter-rail-head { display: none; }
    .rail-group { flex-direction: row; align-items: center; gap: 8px; }
    .rail-field { flex-direction: row; align-items: center; }
    .rail-label { display: none; }
    .filter-rail .select { width: auto; min-width: 150px; }
    /* Toolbar layout: dates go back to a horizontal underline row. */
    .filter-rail .seg { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
    .filter-rail .seg .seg-item.is-active::after { content: ""; }
    .filter-rail .seg .seg-item.is-active { text-decoration: none; }
    .rail-foot { margin-left: auto; padding-top: 0; border-top: 0; }
}

/* Mobile: single-column grid + bottom-sheet filters behind a floating button */
@media (max-width: 767px) {
    .browse { display: block; }
    .browse-main .grid { grid-template-columns: 1fr; }
    .filter-rail {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto;
        flex-direction: column; align-items: stretch; gap: 22px;
        background: var(--surface); border: 0; border-radius: 18px 18px 0 0;
        box-shadow: var(--shadow-sheet);
        transform: translateY(115%); transition: transform .28s cubic-bezier(.4,0,.2,1);
        z-index: 90; max-height: 82vh; overflow-y: auto;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    }
    .filters-open .filter-rail { transform: none; }
    .filter-rail-head { display: flex; }
    .filter-rail-close { display: inline-flex; }
    .rail-group { flex-direction: column; align-items: stretch; }
    .filter-rail .chip-group { flex-wrap: wrap; }
    /* 16px keeps iOS from zooming the viewport when a select is focused. */
    .filter-rail .select { font-size: 16px; }
    .rail-foot { padding-top: 14px; border-top: 1px solid var(--border); }
    .filter-fab {
        display: inline-flex; align-items: center; gap: 8px;
        position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
        z-index: 80; border: 0; cursor: pointer;
        background: var(--slate); color: var(--slate-text);
        border-radius: 999px; padding: 13px 22px; font: inherit; font-size: 14px; font-weight: 650;
        box-shadow: 0 8px 24px rgba(34,32,31,.3);
    }
    .filter-fab svg { width: 17px; height: 17px; }
    .filters-open .filter-fab { display: none; }
    .filter-backdrop { position: fixed; inset: 0; background: rgba(34,32,31,.45); z-index: 85; }
    .filters-open .filter-backdrop { display: block; }
}

/* ---------- Event detail: hero band (ambient-canvas pattern) ----------
   Small source images don't scale to full-bleed. Instead: a blurred,
   darkened copy of the image fills the band as ambient backdrop, while the
   actual image renders crisp at contained size in a framed panel. */

.detail-hero-band.no-img { background-image: linear-gradient(125deg, #22201F 0%, #7A1F2B 100%); }
/* Ambient layer: the small image, blurred far past recognition + dimmed.
   Blur hides pixelation; only color/mood survives. */

/* Framed art panel: the real image, contained (no crop) at its native
   aspect inside a parchment-mat frame — stays crisp at any source size. */

/* Copy column next to the art panel */

/* Band height adapts with content */

/* ---------- Detail content panels ---------- */

/* Key facts as icon rows */

/* Map card */
.map-card {
    display: block; margin-top: 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.map-canvas { width: 100%; min-height: 400px; display: block; background: var(--bg2); z-index: 0; }

/* Venue name strip under the map */

@media (max-width: 640px) {
    .map-canvas, .map-canvas-empty { min-height: 250px; }
}

/* Detail-page map: unboxed. No card frame/background/border/shadow/padding —
   just the rounded embed and venue strip on the page. Iframe sizing retained. */

/* ---------- Event share row (detail page) ---------- */
.event-share {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    margin: 4px 0 22px;
}
.event-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: var(--tap); padding: 0 10px;
    font-family: var(--font); font-size: 13px; font-weight: 600; line-height: 1;
    color: var(--text-2); background: transparent;
    border: 0; border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none;
    transition: color .15s ease, background .15s ease;
}
/* inline-flex would otherwise defeat the UA [hidden] on the native button */
.share-btn[hidden] { display: none; }
.share-btn:hover {
    color: var(--accent); background: var(--accent-soft); text-decoration: none;
}
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-feedback {
    font-size: 13px; font-weight: 500; color: var(--sage);
    min-height: 1em;
}

/* Landing pages (/oklahoma-city, /music): editorial hero reusing cockpit
   typography, with a terracotta band accent. */
.land-hero {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 44px 0 0;
    position: relative;
}
.land-hero::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--accent);
}
.land-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.6vw, 58px);
    font-weight: 700; letter-spacing: -0.025em; line-height: 1.04;
    margin: 0; max-width: 20ch; color: var(--text); text-wrap: balance;
}
@media (max-width: 720px) {
    .land-hero { padding-top: 28px; }
    .land-title { font-size: clamp(30px, 8.5vw, 40px); }
}

/* Related events */
.related { margin-top: 48px; }
.related .featured-head { border-bottom: 1px solid var(--border); }
.related .grid { padding: 0; }

/* Respect reduced-motion: drop smooth scroll + hover/transition animation. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Submit-event flow: auth cards, submit form, submissions list
   (appended for the public account + /submit feature). Plain CSS,
   existing tokens only.
   ============================================================ */

/* Centered single-column canvas (~640px) on the parchment page. */
.auth-wrap {
    max-width: 680px;
    padding-top: 40px; padding-bottom: 72px;
    display: flex; flex-direction: column; gap: 24px;
}
/* Login/register are short — cap at a standard auth-card width (/submit keeps 680). */
.auth-wrap.auth-narrow { max-width: 460px; }
.auth-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-card);
    padding: 32px 32px 36px;
}
.auth-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: 30px; line-height: 1.15; letter-spacing: -0.01em;
    margin: 0 0 6px; color: var(--text);
}
.auth-sub { margin: 0 0 22px; color: var(--text-2); font-size: 15px; }
.auth-alt { margin: 20px 0 0; color: var(--text-2); font-size: 14px; }

/* Form primitives */
.form-field { margin-bottom: 16px; }
.form-label {
    display: block; margin-bottom: 6px;
    font-size: 13px; font-weight: 600; color: var(--text);
}
.form-opt { font-weight: 500; color: var(--text-3); }
.form-input {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    font: inherit; font-size: 15px; line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}
.form-input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}
textarea.form-input { resize: vertical; min-height: 84px; }
select.form-input { appearance: auto; }
.form-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: 1.4fr 0.7fr 0.9fr; }
.form-row .form-field { margin-bottom: 16px; }
@media (max-width: 720px) {
    .form-input { font-size: 16px !important; }   /* 16px prevents iOS auto-zoom on focus */
}
@media (max-width: 560px) {
    .form-row, .form-row.three { grid-template-columns: 1fr; gap: 0; }
    .auth-card { padding: 24px 20px 28px; }
}

.check-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--text-2); margin-bottom: 20px; cursor: pointer;
}

/* Honeypot: off-screen, never shown to humans, skipped by tab order. */
.hp-field {
    position: absolute; left: -9999px; width: 1px; height: 1px;
    overflow: hidden; opacity: 0;
}

/* Inline alerts */
.form-alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 20px; font-size: 14px; border: 1px solid;
}
.form-alert ul { margin: 0; padding-left: 18px; }
.form-alert-error { background: #FDECEA; border-color: #F3C7C0; color: #9B2314; }
.form-alert-success { background: var(--sage-soft); border-color: #9FB8C9; color: #2C4257; }

/* Submit page: button sits flush with apb-submit weight (terracotta solid). */
.submit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.submit-logout { margin: 0; }
.ghost-link-btn {
    background: none; border: 0; padding: 0; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.ghost-link-btn:hover { color: var(--accent); text-decoration: underline; }

.form-group {
    border: 0; margin: 0 0 8px; padding: 0 0 20px;
    border-bottom: 1px solid var(--border);
}
.form-group:last-of-type { border-bottom: 0; }
.form-group legend {
    padding: 0; margin-bottom: 14px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em;
    color: var(--text-2);
}

/* Your submissions list */
.sub-list-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: 20px; margin: 0 0 16px; color: var(--text);
}
.sub-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sub-row:last-child { border-bottom: 0; }
.sub-main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sub-name { font-weight: 600; font-size: 15px; color: var(--text); }
.sub-date { font-size: 13px; color: var(--text-2); }
.sub-empty { color: var(--text-2); font-size: 14px; margin: 0; }
.sub-tag-pending {
    color: #92400e;  /* darker amber text for AA contrast on white; bar stays --amber */
    border-left: 2px solid var(--amber); padding: 1px 0 1px 7px;
}
.sub-tag-approved {
    color: var(--sage);
    border-top: 2px solid var(--sage); padding: 4px 0 1px;
}
.sub-tag-denied {
    color: var(--accent);
    border-left: 2px solid var(--accent); padding: 1px 0 1px 7px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Status tags — site's editorial border-bar idiom, NOT soft-bg pills. */
.sub-tag {
    display: inline-block; margin-top: 12px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.sub-deny-reason { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }

/* Cloudflare Turnstile widget slot — sits between the top of the form and
   the first field. The iframe is 65px tall in standard mode; appearance
   interaction-only collapses it visually until a challenge is needed. */
.ts-field { margin: 0 0 18px; min-height: 0; }
.ts-field .cf-turnstile { min-height: 0; }

/* Screen-reader-only (keeps the document outline for SEO without visual
   duplication when the heading text is redundant with the nav). */

/* ---------- AdSense placements (manual, non-intrusive) ----------
   Slots live in natural whitespace: below the filter rail's dead column,
   inside the grid rhythm (in-feed), at the end-of-results pause, and in
   the detail page's dead aside column. Nothing sticky, nothing animated,
   no header/footer/hero/map placements. Layout-shift is prevented by the
   reserved min-heights in the partial. */

.ad-slot { margin: 0; }

/* Home rail: only exists where the rail is a real column (desktop).
   Hidden once the rail becomes a chip bar / bottom sheet. */
.ad-slot-home-rail { margin-top: 4px; }
@media (max-width: 1023px) { .ad-slot-home-rail { display: none; } }

/* In-feed: spans the grid width on desktop (3-col), full width on mobile.
   Sits inside .grid so it inherits the gap rhythm. */
.ad-slot-home-feed { grid-column: 1 / -1; padding: 2px 0; }

/* Leaderboard after the grid, before pagination. */
.ad-slot-home-bottom { padding: 0 0 20px; }

/* Detail aside: hidden below 800px where the aside stacks above the fold. */
.ad-slot-detail-aside { margin-top: 18px; }
@media (max-width: 800px) { .ad-slot-detail-aside { display: none; } }

/* In-article: quiet spacing inside the description panel. */
.ad-slot-detail-article { margin: 18px 0 6px; }

/* Reserved-but-inactive slots (client set, slot id missing): keep the
   reserved space invisible rather than showing an empty box. */
.ad-slot-reserved { visibility: hidden; }

/* ---------- Weekend digest signup / preferences ---------- */
.digest-areas { border: 0; padding: 0; margin: 0 0 20px; }
.digest-areas legend { padding: 0; }
.digest-area { margin-bottom: 8px; }
.auth-form .form-hint { text-align: center; }
.band-cta-sub { margin: 10px 0 0; font-size: 14px; }
.band-cta-sub a { color: #fff; text-decoration: underline; font-weight: 600; }
.band-cta-sub a:hover { color: var(--bg); }

/* ---------- Venue directory + venue pages ---------- */
/* Factual meta line under the venue H1 (city · address · official site). */
.venue-meta {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
    margin: 12px 0 20px; color: var(--text-2); font-size: 15px;
}
.venue-meta-sep { color: var(--text-3); }
.venue-search-note { margin: 0 0 4px; color: var(--text-2); font-size: 14px; }

/* Directory: a plain, scannable list of published venues (no counts). */
.venue-dir { list-style: none; margin: 24px 0 40px; padding: 0; display: grid; gap: 14px; }
.venue-dir-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card);
}
.venue-dir-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; text-decoration: none; }
.venue-dir-link:hover { text-decoration: none; }
.venue-dir-name {
    font-family: var(--font-display); font-size: 21px; font-weight: 600;
    letter-spacing: -0.015em; color: var(--text);
}
.venue-dir-link:hover .venue-dir-name { color: var(--accent); }
.venue-dir-city { font-size: 14px; color: var(--sage); font-weight: 600; }
.venue-dir-desc { margin: 8px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* Venue page map: keyless Google embed, same unboxed treatment as the detail. */
.venue-map { margin: 32px 0 40px; }
.venue-map-title {
    font-family: var(--font-display); font-size: 22px; font-weight: 600;
    letter-spacing: -0.015em; margin: 0 0 12px; color: var(--text);
}
.venue-map-frame {
    width: 100%; height: 360px; border: 1px solid var(--border);
    border-radius: var(--radius); display: block;
}
.venue-map-addr { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }
@media (max-width: 640px) { .venue-map-frame { height: 260px; } }
