/* HEREandNOW — styles. Night (After Dark) is the default; body.day switches to By Day. */

/* Fonts are included with the app (free under the SIL Open Font Licence, see fonts/OFL-*.txt),
   so nothing is loaded from Google. */
@font-face { font-family: 'Big Shoulders Display'; src: url('fonts/big-shoulders-display-800-900.woff') format('woff'); font-weight: 800 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-italic-900.woff') format('woff'); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-500-800.woff') format('woff'); font-weight: 500 800; font-style: normal; font-display: swap; }

:root {
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.night {
  --bg: #08080D; --card: #13131C; --card-line: #262638; --chip: #13131C; --chip-line: #2E2E44;
  --text: #F5F5FA; --muted: #A3A3BD; --accent: #FF2E88; --accent-ink: #08080D;
  --accent-soft: #160A12; --accent-strong: #FF2E88; --offer: #2EE6FF; --nav: #0D0D14;
  --chip-on-bg: #F5F5FA; --chip-on-text: #08080D; --and: #FF2E88;
}
body.day {
  --bg: #F4F6FA; --card: #FFFFFF; --card-line: #E3E6EE; --chip: #FFFFFF; --chip-line: #DDE1EA;
  --text: #12131A; --muted: #555A6B; --accent: #FF6A2E; --accent-ink: #12131A;
  --accent-soft: #FFF1EA; --accent-strong: #B53C0B; --offer: #0B7A6E; --nav: #FFFFFF;
  --chip-on-bg: #12131A; --chip-on-text: #FFFFFF; --and: #E8541A;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.45;
  transition: background .25s, color .25s;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 20px 0 10px; }
.brand { min-width: 0; }
.wordmark { display: flex; align-items: baseline; gap: 1px; font-family: var(--display); font-weight: 900; font-size: clamp(24px, 7.4vw, 32px); line-height: 1; letter-spacing: .5px; white-space: nowrap; }
.wordmark .and { font-family: var(--serif); font-style: italic; font-size: .84em; color: var(--and); }
.sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 6px; font-size: 13px; }
.mode-tag, #town-time { white-space: nowrap; }
.mode-tag { background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: 1.2px; padding: 2px 7px; border-radius: 6px; }
.switch { display: flex; padding: 3px; border-radius: 22px; background: var(--chip); border: 1px solid var(--chip-line); flex: none; }
.switch button { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 9px; border: 0; border-radius: 19px; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); }
.switch button svg { width: 15px; height: 15px; }
.switch button[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-text); }

.demo-banner { margin: 4px 0 8px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; background: #FFF4CC; color: #4A3B00; }

/* Live banner */
.live-banner { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; padding: 12px 16px; border-radius: 16px; border: 1.5px solid var(--accent); background: var(--accent-soft); }
.pulse { width: 12px; height: 12px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,46,136,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,46,136,0); } 100% { box-shadow: 0 0 0 0 rgba(255,46,136,0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.live-title { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 1px; color: var(--accent-strong); line-height: 1.1; }
.live-counts { font-size: 13px; }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 10px; }
.chips button { flex: 1 1 auto; height: 36px; padding: 0 10px; border-radius: 19px; border: 1px solid var(--chip-line); background: var(--chip); font-weight: 600; font-size: 13px; white-space: nowrap; color: var(--text); }
.chips button[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-text); border-color: transparent; font-weight: 700; }

/* Feed */
.feed { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.card.new { animation: arrive .5s ease-out; }
@keyframes arrive { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.card-head { display: flex; align-items: center; gap: 10px; }
.badge { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; background: #1F2A3A; color: #2EE6FF; }
body.day .badge { background: #DDF3EF; color: #0B7A6E; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.name { font-weight: 700; font-size: 15px; }
.name svg { width: 14px; height: 14px; stroke: var(--offer); stroke-width: 3; vertical-align: -2px; margin-left: 4px; }
.meta { font-size: 12px; color: var(--muted); }
.tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--accent-strong); color: var(--accent-strong); white-space: nowrap; flex: none; }
.tag.offer { background: var(--offer); border-color: var(--offer); color: var(--bg); }
.body { margin: 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.photo { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; display: block; }
.ends { font-size: 13px; font-weight: 700; color: var(--offer); }
.actions { display: flex; align-items: center; gap: 6px; }
.react { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--card-line); background: transparent; font-weight: 700; font-size: 13px; color: var(--text); }
.react svg { width: 16px; height: 16px; }
.react.fire svg { stroke: #FF8A3D; }
.react.here svg { stroke: var(--offer); }
.react[aria-pressed="true"] { border-color: var(--accent); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.distance { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--offer); }
.distance svg { width: 16px; height: 16px; }
.actions .directions { margin-left: auto; text-decoration: none; }
.actions .react { white-space: nowrap; }
@media (max-width: 420px) {
  .actions .directions { padding: 0; width: 40px; justify-content: center; }
  .actions .dir-text { display: none; }
}
.actions .directions svg { width: 15px; height: 15px; stroke: var(--offer); }

/* Location bar */
.loc-bar { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.loc-bar:empty { display: none; }
.loc-note { display: flex; align-items: center; gap: 6px; }
.loc-note svg { width: 16px; height: 16px; stroke: var(--offer); }
.loc-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-align: left; border-radius: 14px; border: 1px dashed var(--chip-line); background: transparent; color: var(--text); font-size: 14px; line-height: 1.3; }
.loc-btn svg { width: 22px; height: 22px; stroke: var(--offer); }
.loc-btn .small { color: var(--muted); }
.sort { display: flex; padding: 2px; border-radius: 16px; border: 1px solid var(--chip-line); background: var(--chip); }
.sort button { height: 30px; padding: 0 10px; border: 0; border-radius: 14px; background: transparent; font-size: 12px; font-weight: 700; color: var(--muted); }
.sort button[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-text); }

/* Post button */
.post-cta { position: fixed; left: 16px; right: 16px; margin: 0 auto; max-width: 448px; bottom: calc(18px + env(safe-area-inset-bottom)); height: 58px; border: 0; border-radius: 18px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: clamp(17px, 5.4vw, 22px); letter-spacing: 1px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 5; }
.post-cta svg { stroke-width: 3; width: 22px; height: 22px; }
.post-cta.static { position: static; max-width: none; width: 100%; margin-top: 8px; box-shadow: none; }
.post-cta:disabled { opacity: .55; cursor: default; }
.post-cta-space { height: 96px; }

/* Forms */
.screen-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 12px; }
.screen-title { margin: 0; font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: 1px; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--card-line); background: var(--card); display: flex; align-items: center; justify-content: center; }
.icon-spacer { width: 44px; }
.form { display: flex; flex-direction: column; gap: 8px; }
.field-label { margin-top: 10px; font-size: 12px; letter-spacing: 1.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--chip-line); background: var(--card); font-size: 15px; }
textarea.input { resize: none; }
.hint { text-align: right; font-size: 12px; color: var(--muted); margin-top: -4px; }
.templates { display: flex; flex-wrap: wrap; gap: 8px; }
.templates button, .expiry button { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--chip-line); background: var(--chip); font-weight: 600; font-size: 13px; color: var(--text); }
.templates button[aria-pressed="true"] { border: 1.5px solid var(--accent); background: var(--accent-soft); }
.expiry { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.expiry button { padding: 0; border-radius: 12px; }
.expiry.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-btn { border: 0; background: none; padding: 0; color: var(--offer); font-weight: 700; text-decoration: underline; }
.expiry button[aria-checked="true"] { background: var(--offer); border-color: var(--offer); color: var(--bg); font-weight: 800; }
.photo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin-top: 4px; border-radius: 14px; border: 1px dashed var(--chip-line); font-weight: 700; font-size: 14px; cursor: pointer; }
.error { color: #FF6B6B; font-size: 14px; margin: 4px 0 0; }
body.day .error { color: #B42318; }

.toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; text-align: center; bottom: calc(92px + env(safe-area-inset-bottom)); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; z-index: 10; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .photo-btn:focus-within { outline: 2px solid var(--offer); outline-offset: 2px; }

/* Open now */
.status { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.status .dot { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.status.is-open { color: #2BD47D; } .status.is-open .dot { background: #2BD47D; }
body.day .status.is-open { color: #12803F; } body.day .status.is-open .dot { background: #12803F; }
.status.is-closed { color: var(--muted); } .status.is-closed .dot { background: var(--muted); }
.open-now { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.section-title { margin: 6px 0 2px; font-size: 12px; letter-spacing: 1.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.open-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; }
.open-row .badge { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.open-row .name { font-size: 14px; }
.react.icon-only { padding: 0; width: 40px; justify-content: center; flex: none; }

/* Opening hours screen */
.hours-link { align-self: flex-start; margin-top: 2px; font-size: 13px; }
.hours-business { margin: 0; font-weight: 800; font-size: 18px; }
.hours-days { display: flex; flex-direction: column; }
.day-row { padding: 12px 0; border-bottom: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 8px; }
.day-head { display: flex; align-items: center; justify-content: space-between; }
.day-name { font-weight: 700; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 32px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.input.time { width: auto; flex: 1 1 110px; padding: 9px 10px; }
.icon-btn.small-x { width: 36px; height: 36px; }
.overnight { flex-basis: 100%; }
.link-btn.small { align-self: flex-start; font-size: 13px; }

/* Website and social links */
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.link-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--card-line); font-size: 12px; font-weight: 700; color: inherit; text-decoration: none; min-height: 32px; }
.link-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.biz-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.input[aria-invalid="true"] { border-color: #FF5A5A; }

/* Regular events */
.card .every { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); margin-right: auto; }
.card .every svg { width: 16px; height: 16px; }
.time-badge { flex: none; min-width: 52px; padding: 6px 8px; border-radius: 10px; background: var(--chip-line); font-size: 13px; font-weight: 800; text-align: center; }
.event-list { display: flex; flex-direction: column; }
.event-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--card-line); }
.event-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.event-row .name { font-weight: 700; }
.event-row .meta { font-size: 13px; color: var(--muted); }
.link-btn.danger { color: #E5484D; font-size: 13px; }
.field-label.sub { font-size: 11px; margin-top: 2px; }
.day-chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day-chip { min-height: 40px; border-radius: 10px; border: 1px solid var(--card-line); background: var(--card); color: inherit; font-weight: 700; font-size: 13px; padding: 0; }
.day-chip[aria-pressed="true"] { background: var(--chip-on-bg); border-color: transparent; color: var(--chip-on-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* What the venue has */
.features-box { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.feature { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.feature input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.note { color: var(--offer); }

/* Dogs welcome */
.dogs { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.dogs svg { width: 15px; height: 15px; }

/* Live now / Explore switch */
.main-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 10px; border-radius: 16px; background: var(--chip); border: 1px solid var(--chip-line); }
.main-tabs button { height: 42px; border: 0; border-radius: 12px; background: none; font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.main-tabs button[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-text); }
.pulse.small { width: 8px; height: 8px; border-radius: 4px; }

/* Explore */
.sub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.sub-chips button { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px dashed var(--chip-line); background: none; font-size: 13px; font-weight: 600; color: var(--text); }
.sub-chips button[aria-pressed="true"] { border-style: solid; border-color: var(--text); font-weight: 800; }
.explore-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 4px; }
.tool-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; min-height: 36px; cursor: pointer; }
.tool-toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
#explore-loc:empty { display: none; }
#explore-list { margin-top: 10px; }
.place-row { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; }
.place-open { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.small-status { font-size: 12px; margin-top: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--card-line); font-size: 12px; font-weight: 700; color: var(--muted); }
.pill svg { width: 13px; height: 13px; }
.pill.live { border-color: var(--accent); color: var(--accent-strong); }
.name-link { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.name-link:hover { text-decoration: underline; }

/* A venue's page */
.small-title { font-size: 16px; letter-spacing: 2px; color: var(--muted); }
.place { display: flex; flex-direction: column; gap: 12px; }
.place-top { display: flex; align-items: center; gap: 14px; }
.badge.big { width: 58px; height: 58px; border-radius: 16px; font-size: 19px; }
.place-name { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: .5px; }
.place-name svg { width: 20px; height: 20px; stroke: var(--offer); stroke-width: 3; vertical-align: 2px; margin-left: 6px; }
.place-actions { display: flex; flex-direction: column; gap: 8px; }
.place-share { align-self: flex-start; height: 40px; padding: 0 16px; }
.react.share svg { stroke: var(--accent); }

/* Search in Explore */
.search-bar { position: relative; margin: 4px 0 12px; }
.search-bar input { width: 100%; height: 46px; padding: 0 44px 0 42px; border-radius: 23px; border: 1px solid var(--chip-line); background: var(--chip); color: var(--text); font: inherit; font-size: 16px; }
.search-bar input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-icon { position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-clear { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 18px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }
.search-count { margin: 0 0 8px; }

/* Busy times in the monthly report */
.bars { display: grid; gap: 4px; margin: 6px 0 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bar-row { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 8px; font-size: 13px; }
.bar-track { display: block; height: 14px; border-radius: 3px; background: var(--card-line); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar-row.bar-top .bar-label { font-weight: 800; }
.bar-num { text-align: right; font-variant-numeric: tabular-nums; }
.place-go { text-decoration: none; height: 52px; margin-top: 0; }
.place-about { margin: 0; font-size: 15px; }
.place-section { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table th, .hours-table td { padding: 8px 0; border-bottom: 1px solid var(--card-line); text-align: left; font-weight: 500; }
.hours-table td { text-align: right; }
.hours-table tr.today th, .hours-table tr.today td { font-weight: 800; color: var(--text); }
.hours-table tr:not(.today) { color: var(--muted); }
.event-row .tag { flex: none; }

/* Real Ale Trail */
.trail { display: flex; flex-direction: column; gap: 12px; }
.trail-head { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-line); }
.trail-name { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .5px; line-height: 1; }
.trail-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.trail-stop { display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; }
.stop-num { flex: none; width: 34px; height: 34px; border-radius: 17px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.trail-walk { display: flex; align-items: center; gap: 6px; padding: 8px 0 8px 28px; margin-left: 0; font-size: 12px; font-weight: 700; color: var(--muted); border-left: 2px dashed var(--chip-line); margin: 0 0 0 28px; }
.trail-walk svg { width: 14px; height: 14px; }
.on-tap { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; font-size: 13px; }
.on-tap-title { font-weight: 800; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--offer); }
.period .grow { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; }
.period .abv { flex: 0 1 100px; display: flex; flex-direction: column; gap: 4px; }
.trail-stop .react.icon-only { margin-top: 0; }

/* Admin */
.admin-btn { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--chip-line); background: none; font-weight: 700; font-size: 14px; color: var(--text); text-align: left; }
.admin-btn svg { width: 18px; height: 18px; }
.admin-tabs { margin: 0 0 12px; }
.admin-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--card-line); background: none; text-align: left; cursor: pointer; }
.admin-row .chev { font-size: 22px; color: var(--muted); }
.pill.warn { border-color: #E5A23A; color: #E5A23A; }
.input.short { max-width: 120px; }
.big-toggle { margin-top: 8px; }
.owner-form { display: flex; gap: 8px; align-items: stretch; }
.owner-form .input { flex: 1; min-width: 0; }
.small-cta { flex: none; padding: 0 18px; min-height: 46px; border: 0; border-radius: 12px; background: var(--chip-on-bg); color: var(--chip-on-text); font-weight: 800; }
.setup-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 4px; }
.admin-stops { list-style: none; margin: 0; padding: 0; }
.admin-stops .event-row { gap: 8px; }
.small-num { width: 28px; height: 28px; font-size: 16px; }
.grow { flex: 1; min-width: 0; }
.icon-btn:disabled { opacity: .35; }
#venue-extra { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--card-line); }

/* Offer codes */
.code-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; border: 1.5px dashed var(--offer); background: none; color: var(--offer); font-weight: 800; font-size: 14px; }
.code-btn svg { width: 16px; height: 16px; stroke-width: 3; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--offer); }
.code-box .small { color: var(--muted); font-weight: 700; }
.code { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: 6px; color: var(--offer); line-height: 1; }

/* Dashboard */
.dash-btn { border-style: solid; margin-bottom: 4px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-line); min-width: 0; }
.tile-num { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; }
.tile-label { font-size: 12px; font-weight: 800; }
.tile-week { font-size: 11px; color: var(--muted); }
.redeem { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.code-input { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: 6px; text-transform: uppercase; }
.redeem-result { margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 800; }
.redeem-result.good { background: rgba(43, 212, 125, .14); color: #2BD47D; }
body.day .redeem-result.good { color: #12803F; }
.redeem-result.bad { background: rgba(229, 72, 77, .12); color: #E5484D; }
.meta.strong { color: var(--text); font-weight: 700; }
#dash-scheduled, #dash-posts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

.legal-links { margin: 28px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.legal-links a { color: var(--muted); }
.version { margin: 6px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
#view-feed:not([hidden]) ~ .version { margin-bottom: 76px; }

/* Town notices */
.notice { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--accent-soft); border: 1.5px solid var(--offer); }
.notice-safety { border-color: #E5A23A; }
.notice-head { display: flex; align-items: center; gap: 8px; }
.notice-from { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--offer); margin-right: auto; }
.notice-safety .notice-from { color: #E5A23A; }
.notice-from svg { width: 16px; height: 16px; }
.notice-x { width: 32px; height: 32px; }
.notice-title { margin: 0; font-size: 17px; line-height: 1.25; }
.notice-body { margin: 0; font-size: 14px; }
.notice .link-chip { align-self: flex-start; }

/* Getting home */
.home-jump { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--chip-line); background: var(--card); font-weight: 800; font-size: 14px; color: var(--text); text-align: left; }
.home-jump span { margin-left: auto; }
.getting-home { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--card-line); scroll-margin-top: 12px; }
.home-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--card-line); }
.home-row:last-of-type { border-bottom: 0; }
.home-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--chip-line); }
.home-icon svg { width: 20px; height: 20px; }
.home-help .home-icon { color: #E5A23A; }
.home-actions { display: flex; gap: 6px; flex: none; }
.home-actions .react { text-decoration: none; }

/* Moderation */
.mod-item { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-line); }
.mod-body { margin: 0; font-weight: 600; }
.mod-reports { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.mod-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mod-actions .small-cta { min-height: 40px; }
.audit { display: flex; flex-direction: column; }
.audit-row { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--card-line); font-size: 13px; overflow-wrap: anywhere; }

/* QR codes */
.qr-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--card-line); }
.qr-pic { flex: none; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: #fff; }
.qr-pic svg { width: 100%; height: 100%; display: block; stroke: none; }
.qr-pic svg path { fill: #000; stroke: none; }
.qr-pic svg rect { fill: #fff; stroke: none; }
.qr-url { overflow-wrap: anywhere; }
.qr-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }

/* Monthly report */
.report { display: flex; flex-direction: column; gap: 10px; }
.report-title { margin: 6px 0 0; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.05; }
.report .section-title { margin-top: 10px; }
.report-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.small-cta.ghost { background: none; color: var(--text); border: 1px solid var(--chip-line); }
.report-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report-table th, .report-table td { padding: 7px 4px; border-bottom: 1px solid var(--card-line); text-align: left; font-weight: 500; }
.report-table thead th { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.report-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.report-table tbody th { font-weight: 700; }

@media print {
  body.night, body.day { --bg: #fff; --text: #111; --muted: #555; --card: #fff; --card-line: #ccc; --chip-line: #ccc; }
  html, body { background: #fff !important; color: #111 !important; }
  .top, .demo-banner, .main-tabs, .no-print, .version, .legal-links, .toast, .post-cta:not(.static) { display: none !important; }
  .app { max-width: none; padding: 0; }
  .tile { border-color: #ccc; background: #fff; break-inside: avoid; }
  .tile-label, .report-table th, .report-table td { color: #000; }
  .report-table th, .report-table td { border-color: #ccc; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

/* Open / Closed switch on the opening hours screen */
.open-switch { display: flex; padding: 3px; border-radius: 12px; background: var(--chip); border: 1px solid var(--chip-line); }
.open-switch button { min-height: 36px; min-width: 70px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.open-switch button[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-text); }

/* List your venue form */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { align-items: flex-start; font-weight: 600; line-height: 1.4; }
.consent input { margin-top: 2px; flex: none; }
#view-join .section-title { margin-top: 14px; }
.app-line { display: flex; flex-direction: column; gap: 0; font-size: 14px; overflow-wrap: anywhere; }
.mod-item .name .pill { margin-left: 8px; vertical-align: 1px; }

/* Local news (Explore) */
.news-list { display: grid; gap: 10px; }
.news-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--card); color: var(--text); text-decoration: none; }
.news-row:hover, .news-row:focus-visible { border-color: var(--accent); }
.news-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-row .name { font-weight: 800; }
.news-row .meta { font-size: 13px; color: var(--muted); }
.news-go svg { width: 18px; height: 18px; stroke: var(--accent); }

/* Menus */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
.menu-thumb { display: flex; flex-direction: column; gap: 6px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.menu-thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--card-line); background: var(--card); }
#place-menu .news-row { margin-top: 8px; }
.menu-mini { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; border: 1px solid var(--card-line); }
.input.slim { height: 38px; padding: 0 10px; font-size: 15px; }
.upload-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 2px dashed var(--chip-line); border-radius: 14px; font-weight: 800; cursor: pointer; margin-top: 8px; }
.upload-btn:hover, .upload-btn:focus-within { border-color: var(--accent); }
.upload-btn.busy { opacity: .6; pointer-events: none; }
/* Following and alerts */
.place-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.react.follow svg { stroke: var(--accent); }
.react.follow.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.react.follow.on svg { stroke: var(--accent-ink); }
.follow-help { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--accent); background: var(--card); margin: 0; }
.dash-alerts { display: grid; gap: 10px; margin-top: 18px; }
.venue-msg { border-top: 1px solid var(--card-line); padding-top: 16px; margin-top: 8px; }

/* Admin: venue visits (4.1) */
.loc-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.visit-box { border: 1px solid var(--card-line); border-radius: 16px; padding: 14px 14px 16px; display: grid; gap: 6px; margin-bottom: 18px; }
.visit-box .field-label .small { font-weight: 600; letter-spacing: 0; text-transform: none; }
.inline-field { display: flex; gap: 10px; align-items: center; }
.inline-field .input { flex: 1; min-width: 0; }
.inline-field .link-btn { flex: none; }
.pill.visit-signed_up { border-color: #34D399; color: #1f9d6d; }
.pill.visit-interested, .pill.visit-follow_up { border-color: var(--accent); color: var(--accent-strong); }
.pill.visit-not_interested { opacity: .7; }
#admin-status { margin-top: 8px; }

/* Map on the venue page (4.2) */
.place-map { height: 260px; border-radius: 16px; overflow: hidden; border: 1px solid var(--card-line); background: var(--card); position: relative; z-index: 0; }
.place-map .map-fail { padding: 16px; }
.map-note { display: flex; align-items: center; gap: 6px; font-weight: 700; margin: 10px 0 2px; }
.map-note svg { width: 18px; height: 18px; }
.map-out { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.map-out svg { width: 15px; height: 15px; }
.map-pin span { display: block; width: 30px; height: 30px; background: #FF2E88; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.leaflet-tooltip.map-label { font-family: inherit; font-weight: 800; font-size: 13px; border-radius: 8px; padding: 3px 8px; }
.leaflet-container { font-family: inherit; }

/* Admin: delete a venue (4.3) */
.danger-zone { border-top: 1px solid var(--card-line); margin-top: 22px; padding-top: 16px; display: grid; gap: 8px; }
.danger-btn { justify-self: start; border: 2px solid #E5484D; color: #E5484D; background: transparent; border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer; }
.danger-btn.armed { background: #E5484D; color: #fff; }

/* Steps-away chip on cards (4.6) */
.react.steps-chip { white-space: nowrap; }
.react.steps-chip svg { width: 16px; height: 16px; }

/* Featured spot (4.8) */
.card.featured { border: 2px solid #FFB800; box-shadow: 0 0 0 3px rgba(255, 184, 0, .18); }
.featured-label { display: inline-block; align-self: flex-start; width: fit-content; margin: -2px 0 8px; padding: 3px 10px; border-radius: 999px; background: #FFE14D; color: #12131A; font-weight: 800; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.open-row.featured, .place-row.featured { border-radius: 14px; background: rgba(255, 225, 77, .14); box-shadow: inset 3px 0 0 #FFB800; }
.featured-mini { margin-left: 8px; font-size: 11px; font-weight: 800; color: #B37F00; white-space: nowrap; }
.pill.featured-pill { border-color: #FFB800; color: #B37F00; background: rgba(255, 225, 77, .2); }
.dash-featured { margin: 6px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 225, 77, .2); border: 1px solid #FFB800; font-weight: 700; font-size: 14px; }
#btn-bulk-hide { margin-top: 8px; }
body.night .featured-mini, body.night .pill.featured-pill { color: #FFD24D; }
body.night .open-row.featured, body.night .place-row.featured { background: rgba(255, 225, 77, .08); }

/* Food times (5.0) */
.hours-tabs { margin: 4px 0 8px; }
.hours-table.with-food th, .hours-table.with-food td { font-size: 14px; }
.hours-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); text-align: left; font-weight: 800; padding-bottom: 4px; }

/* Venue record (5.1) */
.record-section { border-top: 1px solid var(--card-line); padding-top: 14px; margin-top: 10px; display: grid; gap: 6px; }
.day-grid { display: grid; gap: 6px; }
.day-line { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 10px; }
.day-line .day-name { font-weight: 800; font-size: 14px; }
.day-line .input[aria-invalid="true"] { border-color: #E5484D; }
.save-sticky { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 4; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
#visit-form { margin-top: 12px; }

/* DEMO VERSION strip (5.2): on every screen while config.js has DEMO_VERSION = true */
.demo-version { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 26px; display: flex; align-items: center; justify-content: center;
  background: #FFE14D; color: #12131A; font-weight: 900; font-size: 13px; letter-spacing: 3px; pointer-events: none;
  padding-top: env(safe-area-inset-top); box-sizing: content-box; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.demo-version span { animation: demo-flash 1.2s ease-in-out infinite; }
@keyframes demo-flash { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .demo-version span { animation: none; } }
html.has-demo-version body { padding-top: calc(26px + env(safe-area-inset-top)); }
@media print { .demo-version { display: none !important; } html.has-demo-version body { padding-top: 0; } }
