/* Shared styles for the Seattle Freshies pages. */
:root {
    --bg: #faf6ef;
    --card: #ffffff;
    --text: #2b2118;
    --muted: #7a6a5a;
    --border: #e8dccb;
    --accent: #b4531c;
    --leaf: #4f7a28;
    --chip: #f3e9da;
    --radius: 10px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1b1612;
        --card: #251e18;
        --text: #f1e8dc;
        --muted: #b3a38f;
        --border: #3a2f25;
        --accent: #e38a4e;
        --leaf: #9cc46b;
        --chip: #32281f;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

.container { max-width: 820px; margin: 0 auto; padding: 16px 16px 24px; }

/* Pinned top bar (title + page tabs) and bottom credit bar. */
.topbar, .creditbar {
    position: sticky;
    z-index: 10;
    background: var(--bg);
}
.topbar { top: 0; border-bottom: 1px solid var(--border); }
.creditbar { bottom: 0; border-top: 1px solid var(--border); }
.bar-inner { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.topbar h1 { padding-top: 12px; font-size: 1.5rem; }
h1 { font-size: 1.9rem; letter-spacing: -0.5px; line-height: 1.15; }
h1 .leaf { color: var(--leaf); }
.tagline { color: var(--muted); font-size: 15px; }
.summary { margin-top: 14px; font-size: 14px; }
.summary strong { color: var(--accent); }

.search {
    width: 100%;
    margin: 4px 0 18px;
    padding: 10px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.venue {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.venue-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.venue-name { font-size: 16px; font-weight: 700; }
.venue-count {
    font-size: 12px;
    color: var(--muted);
    background: var(--chip);
    border-radius: 999px;
    padding: 1px 8px;
    margin-left: 6px;
    font-weight: 500;
}
.venue-link { font-size: 13px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.venue-link:hover { text-decoration: underline; }

.beer { padding: 8px 0; border-top: 1px dashed var(--border); }
.beer:first-of-type { border-top: none; }
.beer-name { font-weight: 600; font-size: 15px; }
.beer-meta { font-size: 13px; color: var(--muted); margin-top: 1px; }

h2 { font-size: 1.1rem; margin: 28px 0 10px; }
.event { padding: 8px 0; border-top: 1px dashed var(--border); }
.event-date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.event .beer-name a { color: inherit; text-decoration: none; }
.event .beer-name a:hover { color: var(--accent); text-decoration: underline; }
.calendar-link { font-size: 13px; color: var(--accent); }

.notice { font-size: 13px; color: var(--muted); margin-top: 18px; }
.notice a { color: inherit; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.about { margin-top: 28px; font-size: 12px; color: var(--muted); }
.about p + p { margin-top: 6px; }
[hidden] { display: none !important; }


.tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    margin-top: 4px;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--muted);
}
.credits a { color: var(--accent); }
.credits a { display: inline-flex; align-items: center; gap: 4px; }
.github-logo { width: 14px; height: 14px; }

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    padding: 0 7px;
    margin-left: 4px;
    vertical-align: 2px;
}
.tag-fresh-hop { color: var(--leaf); background: var(--chip); }
.tag-festbier { color: var(--accent); background: var(--chip); }

/* Phones: fit all four tabs and keep the credit bar to about two lines. */
@media (max-width: 480px) {
    .topbar h1 { font-size: 1.25rem; padding-top: 10px; }
    .tabs a { padding: 8px 7px; font-size: 13px; }
    .credits { font-size: 11px; gap: 0 10px; padding: 6px 16px; line-height: 1.4; }
    .credits .sep { display: none; }
}
