/* The Remedy Dog Bar
   Look: mowed turf stripes, tennis-ball yellow, espresso-brown ink, one wide grotesque.
   Light and dark themes share the tokens below. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --bg-alt: #EEF3E7;
  --bg-alt-2: #E6EDDD;
  --surface: #FFFFFF;
  --surface-2: #F6F8F1;
  --ink: #22160D;
  --ink-2: #5B4E43;
  --line: #DED8CD;
  --line-strong: #B9B0A2;
  --input-bg: #FFFFFF;
  --turf: #2E5B2C;
  --turf-2: #346431;
  --turf-deep: #1B3619;
  --ball: #DCE34A;
  --ball-hover: #CBD332;
  --ball-ink: #1F2606;
  --link: #2E5B2C;
  --accent-rule: #2E5B2C;
  --inv-bg: #22160D;
  --inv-ink: #FFFFFF;
  --ok: #1F6B27;  --ok-bg: #E2F1DF;  --ok-solid: #23722A;
  --warn: #7A5000; --warn-bg: #FFF1D1;
  --bad: #A3261E; --bad-bg: #FBE5E2; --bad-solid: #A3261E;
  --demo-bg: #F7FAD2;
  --focus: #2563EB;
  --metal-1: #F7F6F1; --metal-2: #D5D3C9; --engrave: rgba(255,255,255,.75);
  --shadow: 0 18px 40px -22px rgba(34, 22, 13, .55);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111A10; --bg-alt: #16211A; --bg-alt-2: #1A2719;
    --surface: #1B2A1B; --surface-2: #213221;
    --ink: #EEF0E6; --ink-2: #B7BCAC; --line: #2F422E; --line-strong: #4F654C; --input-bg: #142014;
    --turf: #1E3E1D; --turf-2: #224722; --turf-deep: #0B160B;
    --link: #D7E06A; --accent-rule: #DCE34A;
    --inv-bg: #EEF0E6; --inv-ink: #111A10;
    --ok: #8FD69A; --ok-bg: #173320; --warn: #F2C46B; --warn-bg: #362A0D; --bad: #F4A49B; --bad-bg: #3A1714;
    --demo-bg: #2C3112;
    --focus: #93C5FD;
    --metal-1: #4A504A; --metal-2: #2A2F2A; --engrave: rgba(0,0,0,.6);
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111A10; --bg-alt: #16211A; --bg-alt-2: #1A2719;
  --surface: #1B2A1B; --surface-2: #213221;
  --ink: #EEF0E6; --ink-2: #B7BCAC; --line: #2F422E; --line-strong: #4F654C; --input-bg: #142014;
  --turf: #1E3E1D; --turf-2: #224722; --turf-deep: #0B160B;
  --link: #D7E06A; --accent-rule: #DCE34A;
  --inv-bg: #EEF0E6; --inv-ink: #111A10;
  --ok: #8FD69A; --ok-bg: #173320; --warn: #F2C46B; --warn-bg: #362A0D; --bad: #F4A49B; --bad-bg: #3A1714;
  --demo-bg: #2C3112;
  --focus: #93C5FD;
  --metal-1: #4A504A; --metal-2: #2A2F2A; --engrave: rgba(0,0,0,.6);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
p, ul, ol { margin: 0 0 1em; }
p { max-width: 68ch; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.05; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem); font-weight: 850; font-stretch: 125%; letter-spacing: -.015em; line-height: .95; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 750; font-stretch: 105%; }
.lede { font-size: clamp(1.125rem, 1rem + .45vw, 1.3rem); line-height: 1.5; max-width: 58ch; color: var(--ink-2); }
.lede-sm { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.fine { font-size: .875rem; color: var(--ink-2); }
.hint { font-size: .875rem; color: var(--ink-2); margin: 0 0 6px; }
.empty { color: var(--ink-2); }
.center { text-align: center; margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ball); color: var(--ball-ink); padding: 10px 16px; font-weight: 700; border-radius: 8px; }
.skip:focus { left: 16px; }
.inline { display: inline; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.band { padding-block: clamp(48px, 7vw, 96px); }
.band-pale { background: var(--bg-alt); }
.band-top-0 { padding-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: .7em 1.3em;
  font: inherit; font-weight: 750; font-stretch: 108%; line-height: 1.1; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 38px; padding: .45em 1em; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-ball { background: var(--ball); color: var(--ball-ink); }
.btn-ball:hover { background: var(--ball-hover); }
.btn-dark { background: var(--inv-bg); color: var(--inv-ink); }
.btn-dark:hover { opacity: .88; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--bg-alt); }
.btn-line-light { color: #fff; border-color: rgba(255,255,255,.85); }
.btn-line-light:hover { background: rgba(255,255,255,.12); }
.btn.danger, .btn-line.danger { color: var(--bad); border-color: var(--bad); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.danger { color: var(--bad); }
.text-link { font-weight: 700; }

/* ---------- header ---------- */
.announce { background: var(--ball); color: var(--ball-ink); font-weight: 700; text-align: center; padding: 8px 0; font-size: .95rem; }
.site-head { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 72px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; border: 1px solid var(--line); }
.brand-name { font-weight: 850; font-stretch: 122%; font-size: 1.15rem; line-height: 1; letter-spacing: -.01em; }
.brand-name span { display: block; font-size: .78rem; font-weight: 600; font-stretch: 100%; color: var(--ink-2); letter-spacing: .01em; margin-top: 3px; }
.nav { display: none; }
.nav a { padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 650; text-decoration: none; }
.nav a:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent-rule); border-radius: 0; }
.head-actions { display: none; align-items: center; gap: 14px; }
.head-link { color: var(--ink); font-weight: 650; text-decoration: none; }
.head-link:hover { text-decoration: underline; }
.theme-btn {
  margin-left: auto; width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.theme-btn:hover { background: var(--bg-alt); }
.theme-icon { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.mnav summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-icon, .mnav-icon::before, .mnav-icon::after { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; }
.mnav-icon::before, .mnav-icon::after { content: ''; position: absolute; left: 0; }
.mnav-icon::before { top: -7px; } .mnav-icon::after { top: 7px; }
.mnav[open] .mnav-icon { background: transparent; }
.mnav[open] .mnav-icon::before { top: 0; transform: rotate(45deg); }
.mnav[open] .mnav-icon::after { top: 0; transform: rotate(-45deg); }
.mnav-panel { position: absolute; top: 100%; left: -16px; right: -16px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
.mnav-panel nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1.3rem; font-weight: 800; font-stretch: 118%; }
.mnav-panel nav a[aria-current="page"] { color: var(--link); }
.mnav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 16px; }
.mnav-actions .head-link, .mnav-actions a:not(.btn) { color: var(--ink); font-weight: 650; }
@media (min-width: 980px) {
  .nav { display: flex; gap: 2px; margin-left: auto; }
  .head-actions { display: flex; }
  .theme-btn { margin-left: 4px; order: 3; }
  .head-actions { order: 4; }
  .mnav { display: none; }
}

.flash { padding: 14px 0; font-weight: 650; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--bad-bg); color: var(--bad); }

/* ---------- hero: mowed turf ---------- */
.hero {
  background: repeating-linear-gradient(90deg, var(--turf) 0 96px, var(--turf-2) 96px 192px);
  color: #fff;
  padding-block: clamp(56px, 9vw, 120px);
}
.hero-grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(2.9rem, 1.1rem + 6.4vw, 6.4rem); max-width: 11ch; margin-bottom: .35em; }
.hero .lede { color: rgba(255,255,255,.92); }
.hero :focus-visible { outline-color: var(--ball); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.today { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); align-self: end; }
.today-status { display: flex; align-items: center; gap: 10px; font-weight: 750; margin: 0; }
.today-status .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.is-open .dot { background: #34A853; box-shadow: 0 0 0 4px rgba(52,168,83,.22); }
.is-closed .dot { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.today-h { font-size: .95rem; font-weight: 700; font-stretch: 100%; color: var(--ink-2); margin: 20px 0 4px; letter-spacing: 0; }
.today-list { list-style: none; padding: 0; margin: 0; }
.today-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.today-list a { color: var(--ink); font-weight: 800; font-stretch: 112%; font-size: 1.15rem; text-decoration: none; }
.today-list a:hover { text-decoration: underline; }
.today-time { display: block; color: var(--ink-2); font-size: .9rem; font-variant-numeric: tabular-nums; }
.today-addr { margin: 14px 0 0; font-size: .95rem; color: var(--ink-2); }
.today-addr a { margin-right: 12px; font-weight: 650; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: end; } }

/* ---------- shared layouts ---------- */
.split { display: grid; gap: 48px; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.trio { display: grid; gap: 44px; }
@media (min-width: 780px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.trio h2 { font-size: 1.5rem; font-stretch: 115%; margin-top: 20px; }
.photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--bg-alt-2); }
.photo-tall { aspect-ratio: 7 / 8; }
@media (max-width: 779px) { .trio .photo { aspect-ratio: 16 / 9; } }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

.page-head {
  background: repeating-linear-gradient(90deg, var(--bg-alt) 0 96px, var(--bg-alt-2) 96px 192px);
  padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px);
}
.page-head-tight { background: none; padding-block: clamp(28px, 4vw, 48px) 20px; }
.page-head-tight h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
.page-head .lede { margin-bottom: 0; }
.crumb { margin: 0 0 10px; font-weight: 650; }
.crumb a { color: var(--ink-2); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-size: .95rem; text-decoration: none; }
.jump a:hover { border-color: var(--ink); }

/* ---------- steps (a real sequence, so numbered) ---------- */
.steps { list-style: none; padding: 0; margin: 24px 0 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ball); color: var(--ball-ink); font-weight: 850; font-stretch: 120%;
}
.steps strong { font-size: 1.1rem; font-weight: 750; }
.steps span { color: var(--ink-2); }

/* ---------- passes ---------- */
.passes { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 640px) { .passes { grid-template-columns: 1fr 1fr; } }
.pass-card { border: 2px solid var(--ink); border-radius: 18px; padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.pass-card h2, .pass-card h3 { font-size: 1.35rem; font-stretch: 112%; margin: 0; }
.pass-card .btn { margin-top: auto; }
.pass-card-feature { background: var(--turf); border-color: var(--turf); color: #fff; }
.pass-card-feature .hint, .pass-card-feature label { color: rgba(255,255,255,.9); }
.price { font-size: 2.6rem; font-weight: 850; font-stretch: 122%; line-height: 1; margin: 8px 0 10px; }
.price span { font-size: 1rem; font-weight: 500; font-stretch: 100%; }
.perks { list-style: none; padding: 0; margin: 0 0 16px; }
.perks li { position: relative; padding: 4px 0 4px 26px; }
.perks li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 7px; border-left: 3px solid var(--ball); border-bottom: 3px solid var(--ball); transform: rotate(-45deg); }
.pass-card:not(.pass-card-feature) .perks li::before { border-color: var(--turf); }

/* ---------- requirements & rules ---------- */
.req-grid { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 640px) { .req-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .req-grid { grid-template-columns: repeat(3, 1fr); } }
.req { border-left: 4px solid var(--accent-rule); padding: 2px 0 2px 16px; }
.req h3 { margin-bottom: .3em; }
.req p { margin: 0; color: var(--ink-2); }
.rules { list-style: none; padding: 0; margin: 24px 0 32px; }
.rules li { border-bottom: 1px solid var(--line); }
.rules summary { display: flex; align-items: center; gap: 14px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 750; font-size: 1.1rem; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: '+'; margin-left: auto; font-size: 1.5rem; font-weight: 500; line-height: 1; color: var(--ink-2); }
.rules details[open] summary::after { content: '–'; }
.rule-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--turf); color: #fff; font-weight: 800; font-size: .9rem; font-stretch: 110%; }
.rules details p { padding-left: 48px; margin: 0 0 14px; color: var(--ink-2); }

/* ---------- menu ---------- */
@media (min-width: 880px) { .menu { column-count: 2; column-gap: 64px; } }
.menu-section { break-inside: avoid; margin-bottom: 44px; }
.menu-section h2 { border-bottom: 3px solid var(--ink); padding-bottom: 8px; font-size: 1.7rem; }
.menu-section ul { list-style: none; padding: 0; margin: 0; }
.menu-item { padding: 12px 0; border-bottom: 1px dashed var(--line-strong); }
.menu-line { display: flex; align-items: baseline; gap: 12px; }
.menu-name { font-weight: 750; font-stretch: 105%; font-size: 1.08rem; }
.menu-price { margin-left: auto; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-item p { margin: 4px 0 0; color: var(--ink-2); font-size: .97rem; }
.menu-images { display: grid; gap: 16px; }
@media (min-width: 760px) { .menu-images { grid-template-columns: repeat(3, 1fr); } }
.menu-images img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-alt); }

/* ---------- events ---------- */
.events-home { display: grid; gap: 40px; }
@media (min-width: 960px) { .events-home { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.events-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .events-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } .events-grid aside { position: sticky; top: 96px; } }
.regulars { background: var(--bg-alt); border-radius: 18px; padding: 20px 24px; margin-bottom: 36px; }
.regulars h2 { font-size: 1.35rem; margin-bottom: 8px; }
.regulars ul { list-style: none; padding: 0; margin: 0; }
.regulars li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.regulars li a { font-weight: 750; color: var(--ink); }
.regulars li span { color: var(--ink-2); }
.agenda-title { font-size: 1.6rem; }
.agenda-title-gap { margin-top: 48px; }
.checkin-card .dog-picks { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.checkin-card .dog-picks legend { width: 100%; }
.agenda-day { margin-top: 20px; border-top: 2px solid var(--ink); padding-top: 10px; }
.agenda-date { font-size: 1.05rem; font-weight: 800; font-stretch: 116%; margin: 0 0 2px; }
.agenda-day ul { list-style: none; margin: 0; padding: 0; }
.agenda-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.agenda-time { grid-column: 1 / -1; color: var(--ink-2); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.agenda-body a { font-weight: 750; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.agenda-body a:hover { text-decoration: underline; }
.agenda-body small { display: block; color: var(--ink-2); font-size: .92rem; }
@media (min-width: 560px) {
  .agenda-item { grid-template-columns: 112px 1fr auto; }
  .agenda-time { grid-column: auto; font-size: .97rem; }
}
.tag-chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag-members { background: var(--ball); color: var(--ball-ink); border-color: transparent; }
.subscribe { background: var(--bg-alt); border-radius: 18px; padding: 24px; }
.band-pale .subscribe { background: var(--surface); }
.subscribe h2 { font-size: 1.55rem; }
.sub-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.copy-row label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 6px; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; min-width: 0; }
.when { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1.15rem; margin: 0; }
.when span { color: var(--ink-2); }
.event-grid { display: grid; gap: 40px; }
@media (min-width: 880px) { .event-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.event-body .photo { aspect-ratio: auto; max-height: 560px; object-fit: contain; margin-bottom: 24px; }
.event-side { display: flex; flex-direction: column; gap: 10px; }
.side-h { font-size: 1rem; font-weight: 750; font-stretch: 100%; margin: 14px 0 0; }
.date-list { list-style: none; padding: 0; margin: 0; }
.date-list li { padding: 5px 0; border-bottom: 1px solid var(--line); }

/* ---------- about ---------- */
.prose p { font-size: 1.1rem; line-height: 1.7; }
.team { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 640px) { .team { grid-template-columns: 1fr 1fr; } }
.team figure { margin: 0; }
.team figcaption { margin-top: 12px; }
.team figcaption strong { display: block; font-size: 1.2rem; font-stretch: 110%; }
.team figcaption span { color: var(--ink-2); }

/* ---------- cards & forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.card-h { font-size: 1.25rem; font-weight: 800; font-stretch: 110%; margin: 0 0 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.card-head .card-h { margin: 0; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 650; margin-bottom: 6px; }
.opt { font-weight: 400; font-size: .85rem; color: var(--ink-2); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 12px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--input-bg);
}
textarea { resize: vertical; min-height: 110px; }
input[type="file"] { padding: 9px; background: var(--surface-2); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--turf); flex: none; margin: 2px 0 0; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.has-error input, .has-error textarea { border-color: var(--bad); }
.err { color: var(--bad); font-weight: 650; font-size: .92rem; margin: 6px 0 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font-size: 1.2rem; font-weight: 800; font-stretch: 112%; margin-bottom: 12px; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-weight: 500; }
.radio-row { display: flex; gap: 24px; }
.radio-row label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.form-error { background: var(--bad-bg); color: var(--bad); padding: 12px 14px; border-radius: 10px; font-weight: 650; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.form-inline .field { margin: 0; flex: 1 1 200px; }
.danger-zone { margin-top: 28px; }
.auth-grid { display: grid; gap: 40px; }
@media (min-width: 880px) { .auth-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.h-page { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); }
.auth { padding-top: clamp(32px, 5vw, 72px); }

.notice { padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); border-left: 4px solid var(--accent-rule); margin-bottom: 16px; }
.notice-warn { background: var(--warn-bg); border-color: var(--warn); }
.notice-ok { background: var(--ok-bg); border-color: var(--ok); }
.notice-demo { background: var(--demo-bg); border: 2px dashed var(--line-strong); }

.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; vertical-align: middle; white-space: nowrap; font-stretch: 100%; letter-spacing: 0; }
.pill-pending { background: var(--warn-bg); color: var(--warn); }
.pill-approved { background: var(--ok-bg); color: var(--ok); }
.pill-needs_update { background: var(--bad-bg); color: var(--bad); }
.pill-declined { background: var(--line); color: var(--ink-2); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 7px 0; align-items: flex-start; }
.checks .mark { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; margin-top: 1px; color: #fff; font-size: .8rem; font-weight: 900; }
.checks .ok .mark { background: var(--ok-solid); }
.checks .ok .mark::after { content: '✓'; }
.checks .no .mark { background: var(--bad-solid); }
.checks .no .mark::after { content: '✕'; }
.checks strong { display: block; font-weight: 650; }
.checks small { display: block; color: var(--ink-2); font-size: .88rem; }

/* ---------- member portal ---------- */
.portal-grid { display: grid; gap: 24px; }
/* On phones the pass comes first: it's what people open the page for at the host stand. */
@media (max-width: 979px) { .portal-side.is-ready { order: -1; } }
@media (min-width: 980px) { .portal-grid { grid-template-columns: 1.6fr 1fr; align-items: start; gap: 32px; } }
.progress { list-style: none; padding: 0; margin: 0; }
.progress li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.progress strong { display: block; font-weight: 700; }
.progress small { display: block; color: var(--ink-2); }
.progress .text-link { display: inline-block; margin-top: 2px; }
.progress-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .8rem; }
.is-done .progress-mark { background: var(--ok-solid); border-color: var(--ok-solid); }
.is-done .progress-mark::after { content: '✓'; }
.is-done strong { color: var(--ink-2); font-weight: 600; }
.is-waiting .progress-mark { border-style: dashed; border-color: var(--warn); }
.is-later { opacity: .55; }

.dog-list { list-style: none; padding: 0; margin: 0; }
.dog-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.dog-row > .btn { grid-column: 2; justify-self: start; }
@media (min-width: 560px) { .dog-row { grid-template-columns: 56px 1fr auto; } .dog-row > .btn { grid-column: auto; } }
.dog-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.dog-initial { display: grid; place-items: center; background: var(--ball); color: var(--ball-ink); font-weight: 850; font-size: 1.5rem; font-stretch: 120%; }
.dog-name { font-size: 1.15rem; font-weight: 800; font-stretch: 110%; margin: 0; }
.dog-name a { color: var(--ink); text-decoration: none; margin-right: 6px; }
.dog-meta { color: var(--ink-2); margin: 2px 0 8px; }
.review-note { background: var(--warn-bg); padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.dog-checks summary { cursor: pointer; color: var(--link); font-weight: 650; font-size: .95rem; }
.visit-list { list-style: none; padding: 0; margin: 0; }
.visit-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.visit-list li span:first-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.doc-list { list-style: none; padding: 0; margin: 0 0 8px; }
.doc-list li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.doc-list span { font-size: .875rem; color: var(--ink-2); }
.pass-list { list-style: none; padding: 0; margin: 0; }
.pass-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.stack { display: grid; gap: 8px; margin-bottom: 14px; }

/* The member pass, stamped like a dog tag */
.tag {
  position: relative; width: min(320px, 100%); margin: 0 auto 10px; padding: 48px 24px 24px; text-align: center;
  border-radius: 40px 40px 56px 56px;
  background: linear-gradient(155deg, var(--metal-1) 0%, var(--metal-2) 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.08), var(--shadow);
}
.tag::before {
  content: ''; position: absolute; top: 16px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 2px 3px rgba(0,0,0,.35), 0 0 0 3px rgba(0,0,0,.06);
}
.tag-name { margin: 0; font-size: 1.4rem; font-weight: 850; font-stretch: 125%; letter-spacing: .01em; line-height: 1.1; text-shadow: 0 1px 0 var(--engrave); }
.tag-dogs { margin: 4px auto 0; color: var(--ink-2); font-weight: 650; text-shadow: 0 1px 0 var(--engrave); }
.tag-qr { width: 196px; margin: 16px auto 10px; background: #fff; padding: 10px; border-radius: 16px; }
.tag-qr svg { display: block; width: 100%; height: auto; }
.tag-status { margin: 0 auto; font-weight: 850; font-stretch: 112%; }
.tag-ready .tag-status { color: var(--ok); }
.tag-notready .tag-status { color: var(--bad); }
.tag-pass { margin: 2px auto 0; font-size: .9rem; color: var(--ink-2); }

.agreement { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px; }
.agreement:first-of-type { border-top: 0; padding-top: 0; }
.agreement h2 { font-size: 1.35rem; }
.agreement-text { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; max-height: 280px; overflow: auto; }
.agreement-text p { font-size: .97rem; }
.agreement-text p:last-child { margin-bottom: 0; }

/* ---------- staff tools ---------- */
body.admin { background: var(--bg-alt); }
body.admin .site-head { background: var(--surface); }
.admin-head { padding: 28px 0 20px; }
.admin-head h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); font-stretch: 115%; margin: 0; }
.admin-head p { color: var(--ink-2); margin: 6px 0 0; }
.admin-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.scan-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.scan-box label { display: block; font-weight: 800; font-stretch: 110%; font-size: 1.2rem; margin-bottom: 10px; }
.scan-box input { font-size: 1.15rem; }
.scan-box .hint { margin: 10px 0 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--ink); }
.tile strong { display: block; font-size: 2.2rem; font-weight: 850; font-stretch: 120%; line-height: 1.1; }
.tile span { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.tile-alert { border-color: var(--warn); border-width: 2px; }
.tile-alert strong { color: var(--warn); }
.admin-cols { display: grid; gap: 20px; }
@media (min-width: 980px) { .admin-cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.member-list { list-style: none; padding: 0; margin: 0; }
.member-row { display: grid; gap: 4px 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; align-items: center; }
.member-row a { color: var(--ink); }
.member-row span { color: var(--ink-2); }
.member-row .pill { justify-self: start; }
@media (min-width: 780px) { .member-row { grid-template-columns: 1.2fr 1.3fr 1fr auto; } }
.sub-h { margin-top: 36px; font-size: 1.3rem; }
.verdict { padding: 18px 22px; border-radius: 16px; margin-bottom: 20px; color: #fff; }
.verdict strong { display: block; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 850; font-stretch: 122%; line-height: 1.1; }
.verdict-ok { background: var(--ok-solid); }
.verdict-no { background: var(--bad-solid); }
.dog-card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.dog-card-head .card-h { margin-bottom: 2px; }
.dog-photo { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; flex: none; }
.dog-notes { background: var(--bg-alt); padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.dog-picks legend { font-size: 1rem; font-stretch: 100%; font-weight: 700; }
.doc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.doc { margin: 0; }
.doc img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.doc-file { display: grid; place-content: center; text-align: center; aspect-ratio: 3 / 4; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.6rem; font-stretch: 120%; padding: 10px; }
.doc-file span { display: block; font-size: .8rem; font-weight: 500; font-stretch: 100%; word-break: break-word; margin-top: 6px; }
.doc figcaption { font-size: .8rem; color: var(--ink-2); margin-top: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 12px; }
.facts dt { color: var(--ink-2); font-size: .85rem; }
.facts dd { margin: 0; font-weight: 650; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .85rem; color: var(--ink-2); font-weight: 700; }
.table a { color: var(--ink); }
.table tr.is-past { opacity: .55; }
.menu-table { margin-top: 20px; }
.menu-table thead { display: none; }
.menu-table td { padding: 10px 12px; }
.menu-row { display: grid; gap: 8px; }
.menu-row input { padding: 8px 10px; font-size: .95rem; }
.menu-row span { display: flex; gap: 12px; align-items: center; }
@media (min-width: 980px) { .menu-row { grid-template-columns: 1fr 1.3fr .6fr 2fr 70px auto; align-items: center; } }
.day-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.day-picks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-picks span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 650; cursor: pointer; }
.day-picks input:checked + span { background: var(--turf); border-color: var(--turf); color: #fff; }
:root[data-theme="dark"] .day-picks input:checked + span { background: var(--ball); border-color: var(--ball); color: var(--ball-ink); }
.day-picks input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.inq-list { list-style: none; padding: 0; margin: 0; }
.inq.is-new { border-left: 6px solid var(--ball); }
.inq-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inq-head span { color: var(--ink-2); font-size: .9rem; }
.inq-msg { white-space: pre-wrap; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; }

/* ---------- footer ---------- */
.site-foot { background: var(--turf-deep); color: #E6ECDD; padding: 56px 0 24px; }
.site-foot a { color: #fff; }
.site-foot .btn-ball { color: var(--ball-ink); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.1fr 1fr 1fr 1.2fr; } }
.foot-brand { font-weight: 850; font-stretch: 122%; font-size: 1.25rem; color: #fff; }
.foot-h { font-size: 1rem; font-weight: 750; font-stretch: 100%; color: #fff; margin: 0 0 10px; letter-spacing: 0; }
.hours { margin: 0 0 10px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 320px; padding: 3px 0; }
.hours dt, .hours dd { white-space: nowrap; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.foot-note { font-size: .875rem; color: #C6D1BA; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 6px 0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.16); margin-top: 40px; padding-top: 18px; font-size: .875rem; color: #C6D1BA; }
.foot-base p { margin: 0; }
.foot-base-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.theme-pick { display: inline-flex; align-items: center; gap: 8px; }
.theme-pick select { width: auto; padding: 5px 8px; font-size: .875rem; background: var(--surface); color: var(--ink); }

@media print {
  .site-head, .site-foot, .announce, .flash { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- staff pass scanner ---------- */
.scan-cta { min-height: 56px; font-size: 1.15rem; }
.scan-or { text-align: center; color: var(--ink-2); margin: 12px 0; font-size: .95rem; }
.scanner { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.scan-frame { position: relative; aspect-ratio: 1 / 1; max-height: 70vh; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #0b120b; }
.scan-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-target { position: absolute; inset: 18%; border: 4px solid var(--ball); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); opacity: 0; }
.scanner.is-live .scan-target { opacity: 1; }
.scanner.is-found .scan-target { border-color: #34A853; }
.scanner.is-unavailable .scan-frame { display: none; }
.scan-status { margin: 14px 0 10px; font-weight: 650; text-align: center; max-width: none; }
.scan-ok { color: var(--ok); }
.scan-warn { color: var(--bad); }

.price-note { margin: -4px 0 12px; font-size: .95rem; opacity: .9; }
.add-dog-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.add-dog-row p { margin-bottom: 8px; }
.passes + .fine { margin-top: 14px; }

/* uploaded / chosen files with remove buttons */
.doc-list-h { font-size: 1rem; font-stretch: 100%; margin: 16px 0 6px; }
.doc-list li { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.doc-info { display: flex; flex-direction: column; min-width: 0; }
.doc-info a { overflow-wrap: anywhere; }
.picked-files { list-style: none; padding: 0; margin: 8px 0 0; }
.picked-files:empty { display: none; }
.picked-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; margin-top: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; }
.picked-files li span { overflow-wrap: anywhere; }
.btn-sm.danger { flex: none; }
.logout-form { display: inline-flex; }
.mnav-actions .logout-form { margin-left: auto; }

/* membership management */
.member-status { padding: 12px 14px; border-radius: 12px; border-left: 4px solid var(--ok); background: var(--ok-bg); }
.member-status.is-paused { border-color: var(--warn); background: var(--warn-bg); }
.member-status.is-ending { border-color: var(--bad); background: var(--bad-bg); }
.membership-actions:empty { display: none; }
.membership-actions { margin-bottom: 14px; }
.pause-form { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.pause-form fieldset { margin-bottom: 10px; }
.pause-form legend { font-size: 1rem; font-stretch: 100%; font-weight: 750; }
.pause-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pause-picks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pause-picks span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 650; cursor: pointer; }
.pause-picks input:checked + span { background: var(--inv-bg); color: var(--inv-ink); border-color: var(--inv-bg); }
.pause-picks input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cancel-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.on-dark { color: #fff; }
.membership-actions { display: flex; flex-wrap: wrap; gap: 8px; }
