/* Action Wildlife Foundation: "Pink in the details".
   Pink marks the next action (~10% of a screen); forest green holds the structure. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Caveat:wght@600&display=swap');

:root {
  --peony: #B8175A;
  --peony-deep: #8E0F44;
  --peony-ink: #5E0A2D;
  --petal: #F4B8CC;
  --blush: #FBE4EC;
  --forest: #1E3A2B;
  --forest-deep: #16291F;
  --moss-wash: #E6EEE7;
  --paper: #FFFAF6;
  --white: #FFFFFF;
  --ink: #1C1B19;
  --ink-soft: #4F4A44;
  --muted: #6B645C;
  --line: #EFE6DF;
  --line-strong: #D9CFC7;
  --warn-bg: #FFF1E6;
  --warn-ink: #8A3B00;
  --ok: #2F6B45;
  --radius: 16px;
  --radius-lg: 22px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); }
/* Public pages: the footer sits at the bottom of the window even when the page is short. */
body:has(> #site-footer) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> #site-footer) > main { flex: 1 0 auto; width: 100%; }
body:has(> #site-footer) > #site-header, body:has(> #site-footer) > #site-footer { flex: 0 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--peony-deep); }
a:hover { color: var(--peony-ink); }
h1, h2, h3 { font-family: var(--display); color: var(--forest); margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); }
h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--petal); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 64px; padding-bottom: 64px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .aside { flex: 1 1 320px; }
.hand { font-family: var(--hand); font-size: 28px; color: var(--peony); line-height: 1.1; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.highlight { background: linear-gradient(transparent 60%, var(--petal) 60%); padding: 0 4px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Top bar, header, footer */
.topbar { background: var(--forest); color: var(--white); font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--forest); color: var(--petal); display: grid; place-items: center; font: 600 18px var(--hand); letter-spacing: -0.02em; }
.brand-name { font: 800 20px/1.1 var(--display); display: block; }
.brand-sub { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 0; border-bottom: 2px solid transparent; }
.main-nav a[aria-current="page"], .main-nav a:hover { border-bottom-color: var(--peony); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }
.show-sm { display: none; }
.topbar a { color: var(--white); }
.cart-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--blush); color: var(--peony-ink); font-weight: 700; text-decoration: none; }
.site-footer { background: var(--forest-deep); color: #DCE6DE; margin-top: 64px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.site-footer a { color: var(--white); }
.site-footer .staff-link { color: var(--petal); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { padding: 4px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font: 700 16px var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--peony); color: var(--white); }
.btn-primary:hover { background: var(--peony-deep); color: var(--white); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-ghost { background: transparent; color: var(--forest); padding: 0 10px; }
.btn-danger { border-color: #A3261B; color: #A3261B; background: transparent; }
.btn-lg { min-height: 54px; font-size: 17px; padding: 0 30px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cards, tags, stamps */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card-flush { padding: 0; overflow: hidden; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card-dark { background: var(--forest); color: var(--white); border-color: var(--forest); }
.card-dark h2, .card-dark h3 { color: var(--white); }
.band-blush { background: var(--blush); }
.photo { aspect-ratio: 4 / 3; background: #C9D3C4; display: grid; place-items: center; color: var(--forest); font-size: 14px; text-align: center; padding: 16px; }
.photo-hero { aspect-ratio: 5 / 4; border-radius: 28px; }
img.photo { display: block; width: 100%; height: auto; padding: 0; object-fit: cover; }
.photo-placeholder { background: linear-gradient(135deg, var(--moss-wash) 0%, #C9D3C4 100%); }
.photo-placeholder span { font-family: var(--hand); font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: var(--forest); opacity: .55; line-height: 1.15; max-width: 85%; }
.support-card { padding: 40px; gap: 32px; border-radius: 28px; }
.event-date { width: 96px; height: 96px; border-radius: 16px; font: 800 26px var(--display); color: var(--white); text-align: center; flex: 0 0 auto; }
.events-grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.price-tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; background: var(--blush); color: var(--peony-ink); font-weight: 700; font-size: 14px; }
.stamp { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--peony); color: var(--peony-deep); background: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-3deg); }
.tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--moss-wash); color: var(--forest); }
.tag-pink { background: var(--blush); color: var(--peony-ink); }
.tag-warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--blush); color: var(--peony-ink); font-size: 15px; }
.notice-warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice-ok { background: var(--moss-wash); color: var(--forest); }

/* Choice tiles: encounters, days, times */
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--radius); border: 1px solid #E8DED6; background: var(--white); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.choice[aria-pressed="true"] { border: 2px solid var(--peony); background: var(--blush); }
.choice-title { font: 700 18px var(--display); color: var(--forest); }
.visit-list { list-style: none; margin: 0; padding: 0; }
.visit-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit-item:last-child { border-bottom: 0; }
.visit-bar { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
/* Season picker (staff Settings): choice tiles backed by real radio buttons */
.season-choice { position: relative; }
.season-choice input { position: absolute; opacity: 0; pointer-events: none; }
.season-choice:has(input:checked) { border: 2px solid var(--peony); background: var(--blush); }
.season-choice:has(input:focus-visible) { outline: 3px solid var(--petal); outline-offset: 2px; }
.season-choice:has(input:disabled) { cursor: default; }
/* Phone booking: day tabs + big time buttons instead of the week grid */
.day-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; }
.day-tab { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 64px; padding: 8px 2px; border-radius: 12px; border: 1px solid #E8DED6;
  background: var(--white); font: inherit; color: var(--ink); cursor: pointer; }
.day-tab .dow { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day-tab .num { font: 800 20px var(--display); color: var(--forest); }
.day-tab .day-count { font-size: 12px; color: var(--peony-deep); font-weight: 700; }
.day-tab[aria-selected="true"] { background: var(--peony); border-color: var(--peony); }
.day-tab[aria-selected="true"] .dow, .day-tab[aria-selected="true"] .num, .day-tab[aria-selected="true"] .day-count { color: var(--white); }
.days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; padding: 10px 8px; border-radius: 14px; border: 1px solid #E8DED6; background: var(--white); font: inherit; color: var(--ink); cursor: pointer; flex: 0 0 auto; }
.day .num { font: 800 24px var(--display); }
.day .dow, .day .mon { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.day[aria-pressed="true"] { background: var(--peony); border-color: var(--peony); color: var(--white); }
.times { display: flex; flex-wrap: wrap; gap: 10px; }
.time { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 96px; min-height: 58px; padding: 6px 12px; border-radius: 12px; border: 1px solid #E8DED6; background: var(--white); font: inherit; color: var(--ink); cursor: pointer; }
.time strong { font-size: 16px; }
.time span { font-size: 12px; }
.time[aria-pressed="true"] { border: 2px solid var(--peony); background: var(--blush); color: var(--peony-ink); }
.time:disabled { border-style: dashed; background: #F6F1EC; color: #8A827A; cursor: not-allowed; }

/* Development release notes (/development) */
.release-card { text-decoration: none; color: inherit; transition: border-color .15s; }
.release-card:hover { border-color: var(--petal); }
.release-more { font-weight: 700; color: var(--peony-deep); }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.stack-list { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.stack-list dt { font-weight: 700; color: var(--forest); margin-top: 8px; }
.stack-list dt:first-child { margin-top: 0; }
.stack-list dd { margin: 0; color: var(--ink-soft); font-size: 15px; }
.release-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.release-toc { border-left: 3px solid var(--petal); padding: 4px 0 4px 16px; }
.release-toc ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.release-toc-steps { margin: 4px 0 6px; padding-left: 18px; font-size: 14px; list-style: lower-alpha; gap: 2px; }
.release-step { scroll-margin-top: 16px; }
a.release-num { text-decoration: none; }
a.release-num:hover { background: var(--petal); }
.release-top { align-self: flex-start; }
.release-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.release-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.release-step:not(:has(figure)) { grid-template-columns: 1fr; }
.release-step h3 { display: flex; align-items: center; gap: 10px; }
.release-num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blush); color: var(--peony-ink); font: 800 15px var(--display); }
.release-tips { margin: 4px 0 0; padding-left: 20px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
.release-figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.release-figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(30, 58, 43, 0.08); }
@media (max-width: 860px) { .release-step { grid-template-columns: 1fr; padding: 18px; } }

/* Ticket page (/ticket/<code>) */
.ticket-wrap { max-width: 900px; gap: 20px; }
.ticket-match { display: flex; flex-direction: column; gap: 2px; }

/* Send secure (/secure) */
.secure-wrap { max-width: 720px; gap: 20px; }
.secure-notice { border-left: 4px solid var(--peony); }
.secure-message { margin: 0; padding: 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line);
  font: 500 16px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-word; user-select: all; }
.secure-link { display: block; padding: 12px 14px; border-radius: 12px; background: var(--blush); color: var(--peony-ink); font-size: 14px; word-break: break-all; }

/* Week calendar (booking page + staff timeslots). Scrolls sideways inside its card on phones. */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.week-nav .week-label { font: 700 18px var(--display); color: var(--forest); }
.wk-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.wk { --wk-gutter: 56px; --wk-col-min: 96px; display: grid; min-width: 560px; }
.wk-short { display: none; }
.wk-corner, .wk-head { position: sticky; top: 0; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.wk-head { display: flex; flex-direction: column; align-items: center; padding: 10px 4px 8px; border-left: 1px solid var(--line); }
.wk-dow, .wk-mon { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wk-num { font: 800 22px var(--display); color: var(--forest); line-height: 1.1; }
.wk-today .wk-num { color: var(--peony); }
.wk-gutter { position: relative; }
.wk-hour { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.wk-hour:first-child { transform: none; }
.wk-col { position: relative; border-left: 1px solid var(--line);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); }
.wk-past { background-color: #FAF6F2; }
.wk-draggable { cursor: crosshair; touch-action: none; user-select: none; }
.wk-empty { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); padding: 0 6px; }
.wk-slot { position: absolute; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
  padding: 4px 8px; overflow: hidden; border-radius: 10px; border: 1px solid var(--petal); background: var(--blush); color: var(--peony-ink);
  font: 400 12px/1.25 var(--body); text-align: left; cursor: pointer; }
.wk-slot strong { font-size: 13px; }
.wk-slot:hover { border-color: var(--peony); }
.wk-slot:focus-visible { outline: 3px solid var(--peony); outline-offset: 1px; }
.wk-slot[aria-pressed="true"] { background: var(--peony); border-color: var(--peony); color: var(--white); }
.wk-slot:disabled, .wk-slot.is-full { background: #F6F1EC; border: 1px dashed var(--line-strong); color: #8A827A; cursor: not-allowed; }
.wk-slot.is-full { cursor: pointer; }
.wk-slot.is-booked { background: var(--peony); border-color: var(--peony); color: var(--white); }
.wk-slot.is-blocked { background: #EEE8E2; border-color: var(--line-strong); color: var(--muted); }
/* Staff bookings calendar: pink until a staff member is assigned, solid once assigned. */
/* Wider days so names fit; the calendar scrolls sideways inside its card on smaller screens. */
.wk-wide .wk { --wk-col-min: 180px; min-width: 960px; }
.wk-booking { gap: 1px; }
.wk-booking strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wk-booking span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wk-booking .wk-staff { font-weight: 700; color: var(--peony-deep); }
.wk-booking.is-assigned { background: var(--peony); border-color: var(--peony); color: var(--white); }
.wk-booking.is-assigned .wk-staff { color: var(--petal); }
.wk-booking.is-attention { background: var(--warn-bg); border-color: var(--warn-ink); color: var(--warn-ink); }
/* My Schedule booking details */
.schedule-guest { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.schedule-note { padding: 12px 14px; border-radius: 12px; background: var(--blush); color: var(--peony-ink); white-space: pre-wrap; }
/* Phone day-by-day list for staff calendars */
.agenda { display: flex; flex-direction: column; gap: 18px; }
.agenda-date { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.agenda-items { display: flex; flex-direction: column; gap: 8px; }
.agenda-items.is-two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agenda-items.is-two-up .agenda-item { min-height: 56px; padding: 8px 10px; }
.wk-slot.agenda-item { position: static; width: 100%; min-height: 64px; padding: 10px 14px; font-size: 14px; gap: 2px; border-radius: 12px; }
.wk-slot.agenda-item strong { font-size: 16px; white-space: normal; }
/* Phones show sessions two across: let "12 spots left of 12" wrap instead of being cut off. */
.agenda-items.is-two-up .agenda-item strong + strong { font-size: 14px; }
.wk-select { position: absolute; left: 3px; right: 3px; z-index: 3; border-radius: 10px; border: 2px dashed var(--peony);
  background: rgba(184, 23, 90, 0.12); color: var(--peony-ink); font: 700 12px var(--body); padding: 4px 8px; pointer-events: none; }

/* Forms */
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
input, select, textarea { font: 400 16px var(--body); color: var(--ink); }
.input, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper);
}
textarea { padding: 10px 12px; min-height: 90px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--peony); }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-row > * { flex: 1 1 140px; }
.form-error { color: #A3261B; font-size: 14px; min-height: 1em; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #E8DED6; background: var(--paper); font-size: 22px; color: var(--forest); cursor: pointer; }
.band { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--blush); color: var(--peony-ink); }
.band.infant { background: var(--moss-wash); color: var(--forest); }

/* Steps */
.steps { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.steps [aria-current="step"] { color: var(--peony); font-weight: 700; }

/* Order summary */
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary-line.pass { color: var(--ok); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.summary-total .amount { font: 800 30px var(--display); color: var(--forest); }
.res-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.res-item > :last-child { flex: 0 0 auto; white-space: nowrap; }
.hold-timer { font-size: 13px; color: var(--muted); }

/* Signature pad */
.sig-pad { width: 100%; height: 160px; border: 2px dashed var(--peony); border-radius: 12px; background: var(--white); touch-action: none; cursor: crosshair; }
/* Waiver clauses, each with the signer's initials beside it (below it on phones). */
.waiver-clauses { list-style: none; margin: 0; padding: 0 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.waiver-clause { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.waiver-clause:first-child { border-top: 0; }
label.waiver-initials { flex: 0 0 92px; width: 92px; }
label.waiver-initials input { text-align: center; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; background: var(--white); }
.guardian { border-left: 0; padding: 16px; border-radius: 12px; background: var(--blush); }

/* A button that reads as an inline link (e.g. "make a new link" in a sentence). */
.link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--peony-deep); text-decoration: underline; cursor: pointer; }

/* Launch guide (/deployment) */
.deploy code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--blush); color: var(--peony-ink); overflow-wrap: anywhere; }
.card-dark.deploy code, .deploy .card-dark code { background: rgba(255, 255, 255, .12); color: var(--white); }
.deploy-big { font: 800 24px/1.1 var(--display); color: var(--forest); }
.deploy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.deploy-list > li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.deploy-list .check { align-items: flex-start; font-size: 16px; line-height: 1.5; }
.deploy-list .check input { margin-top: 3px; }
.deploy-list .check:has(input:checked) > span { color: var(--muted); }
.deploy-list .check:has(input:checked) strong { text-decoration: line-through; text-decoration-color: var(--petal); }
.deploy-owner, .deploy-time { display: inline-flex; margin: 2px 4px 0 0; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.deploy-owner { background: var(--moss-wash); color: var(--forest); }
.deploy-time { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.deploy-vars { display: block; margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; line-height: 1.9; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px 8px; border-bottom: 1px solid #F4EDE7; vertical-align: top; }
.encounters-table { min-width: 1240px; }
.encounters-table td:first-child { min-width: 220px; }
.encounters-table td:first-child textarea { width: 100%; min-height: 64px; font-size: 14px; resize: vertical; }
.encounters-table td:nth-child(9) { min-width: 240px; }
/* Below very wide screens each encounter becomes a card with its fields in a grid,
   so nothing (including Save) hides behind sideways scrolling. Phones use .stack-table. */
@media (min-width: 641px) and (max-width: 1600px) {
  .encounters-table { min-width: 0; }
  .encounters-table thead { display: none; }
  .encounters-table tbody { display: block; }
  .encounters-table tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 18px; align-items: end;
    padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
  .encounters-table td { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; min-width: 0; }
  .encounters-table td::before { content: attr(data-label); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .encounters-table td[data-label=""]::before { content: none; }
  .encounters-table td:first-child, .encounters-table td:nth-child(8), .encounters-table td:nth-child(9) { grid-column: span 2; }
  .encounters-table td input:not([type=checkbox]), .encounters-table td select { width: 100% !important; }
  .encounters-table td:last-child { align-items: flex-end; }
}

/* Staff app */
.sandbox-banner { background: var(--peony); color: var(--white); text-align: center; font-size: 14px; font-weight: 700; padding: 8px 16px; }
.staff-shell { display: flex; flex-wrap: wrap; min-height: 100vh; background: #F6F3EF; }
.staff-nav { flex: 1 1 220px; max-width: 100%; background: var(--forest); color: var(--white); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.staff-nav a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--white); text-decoration: none; }
.staff-nav a[aria-current="page"] { background: var(--petal); color: var(--peony-ink); font-weight: 700; }
.staff-nav .who { padding: 0 12px 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.staff-links { display: flex; flex-direction: column; gap: 4px; }
.week-toolbar { display: flex; align-items: center; gap: 10px; }
.week-toolbar .week-label { white-space: nowrap; }
.week-toolbar .btn-sm { min-width: 44px; min-height: 44px; padding: 0; font-size: 20px; }
.staff-nav-toggle, .staff-current { display: none; }
.staff-main { flex: 999 1 640px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.slot-grid td.cell { border-radius: 10px; padding: 10px; cursor: pointer; }
.slot-grid { border-collapse: separate; border-spacing: 8px; width: 100%; min-width: 600px; }
.cell-open { background: var(--blush); color: var(--peony-ink); }
.cell-full { background: var(--peony); color: var(--white); }
.cell-blocked { background: #EEE8E2; color: var(--muted); }
.cell-none { background: transparent; color: #B9B1A9; cursor: default; }
dialog { border: 0; border-radius: var(--radius-lg); padding: 24px; max-width: 520px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(28, 27, 25, .45); }
.weekdays { display: flex; flex-wrap: wrap; gap: 6px; }
.weekdays button { min-width: 48px; min-height: 40px; border-radius: 10px; border: 1px solid #E2D9D1; background: var(--white); font: 500 13px var(--body); cursor: pointer; }
.weekdays button[aria-pressed="true"] { border: 2px solid var(--peony); background: var(--blush); color: var(--peony-ink); font-weight: 700; }
/* Toasts are click-through: they float over the page for ~3s and must never eat a click meant for what is underneath. */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--forest); color: var(--white); padding: 12px 20px; border-radius: 12px; font-weight: 500; z-index: 50; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.qr { width: 220px; height: 220px; background: var(--white); border-radius: 16px; padding: 10px; border: 2px solid var(--peony); }

.cart-pill { white-space: nowrap; }

/* Season themes ------------------------------------------------------------------------
   The server sets <html data-season="summer|fall|winter"> from staff Settings. Same palette
   in every season: only small line motifs (sun / leaf / snowflake in Petal and Sage) change.
   --season-mark   one motif, used for the badge and the hero watermark
   --season-strip  a repeating band under the header and above the footer               */
:root {
  --season-mark: none;
  --season-strip: none;
  --season-strip-dark: none;
}
[data-season="summer"] {
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8175A' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2.5v2.5M12 19v2.5M2.5 12H5M19 12h2.5M5.3 5.3l1.8 1.8M16.9 16.9l1.8 1.8M5.3 18.7l1.8-1.8M16.9 7.1l1.8-1.8'/%3E%3C/svg%3E");
  --season-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16' fill='none' stroke-width='1.3' stroke-linecap='round'%3E%3Cg stroke='%23F4B8CC'%3E%3Ccircle cx='16' cy='8' r='2.6'/%3E%3Cpath d='M16 2v1.6M16 12.4V14M10 8h1.6M20.4 8H22M11.8 3.8l1.1 1.1M19.1 11.1l1.1 1.1M11.8 12.2l1.1-1.1M19.1 4.9l1.1-1.1'/%3E%3C/g%3E%3Cpath stroke='%23C9D3C4' d='M42 10c2-3 6-3 8 0M46 10V6.5'/%3E%3C/svg%3E");
  --season-strip-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16' fill='none' stroke='%23F4B8CC' stroke-opacity='.45' stroke-width='1.3' stroke-linecap='round'%3E%3Ccircle cx='16' cy='8' r='2.6'/%3E%3Cpath d='M16 2v1.6M16 12.4V14M10 8h1.6M20.4 8H22M42 10c2-3 6-3 8 0M46 10V6.5'/%3E%3C/svg%3E");
}
[data-season="fall"] {
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8175A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19C5 11 10.5 5 19 5c0 8.5-6 14-14 14z'/%3E%3Cpath d='M5 19l9-9M10.5 13.5H7.5M13.5 10.5V7.5'/%3E%3C/svg%3E");
  --season-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16' fill='none' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='%23F4B8CC' d='M11 13c0-5 3.5-9 9-9 0 5.5-4 9-9 9zM11 13l5.5-5.5'/%3E%3Cpath stroke='%23C9D3C4' d='M45 3.5c1.8 0 3.2 1.2 3.2 2.8h-6.4c0-1.6 1.4-2.8 3.2-2.8zM42.6 6.3c0 3.2 1.1 5.7 2.4 6.7 1.3-1 2.4-3.5 2.4-6.7'/%3E%3C/svg%3E");
  --season-strip-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16' fill='none' stroke='%23F4B8CC' stroke-opacity='.45' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 13c0-5 3.5-9 9-9 0 5.5-4 9-9 9zM11 13l5.5-5.5M45 3.5c1.8 0 3.2 1.2 3.2 2.8h-6.4c0-1.6 1.4-2.8 3.2-2.8zM42.6 6.3c0 3.2 1.1 5.7 2.4 6.7 1.3-1 2.4-3.5 2.4-6.7'/%3E%3C/svg%3E");
}
[data-season="winter"] {
  --season-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8175A' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 2.5v19M3.8 7.25l16.4 9.5M3.8 16.75l16.4-9.5M9.6 4.1 12 6.4l2.4-2.3M9.6 19.9 12 17.6l2.4 2.3'/%3E%3C/svg%3E");
  --season-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16' fill='none' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath stroke='%23F4B8CC' d='M16 2.5v11M11.2 5.25l9.6 5.5M11.2 10.75l9.6-5.5'/%3E%3Cpath stroke='%23C9D3C4' d='M46 5.5v5M43.8 6.75l4.4 2.5M43.8 9.25l4.4-2.5'/%3E%3C/svg%3E");
  --season-strip-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16' fill='none' stroke='%23F4B8CC' stroke-opacity='.45' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M16 2.5v11M11.2 5.25l9.6 5.5M11.2 10.75l9.6-5.5M46 5.5v5M43.8 6.75l4.4 2.5M43.8 9.25l4.4-2.5'/%3E%3C/svg%3E");
}
/* Band under the header and along the top of the footer */
[data-season] #site-header::after { content: ""; display: block; height: 16px; background: var(--season-strip) repeat-x left center / 64px 16px; }
[data-season] .site-header { border-bottom: 0; }
[data-season] .site-footer { background-image: var(--season-strip-dark); background-repeat: repeat-x; background-size: 64px 16px; background-position: left 10px; }
/* Badge in the hours bar: "Winter at the park" */
.season-badge { display: none; align-items: center; gap: 6px; font-weight: 700; color: var(--petal); }
[data-season] .season-badge { display: inline-flex; }
.season-badge::before { content: ""; width: 14px; height: 14px; background: var(--petal); -webkit-mask: var(--season-mark) center / contain no-repeat; mask: var(--season-mark) center / contain no-repeat; }
/* Faint motif behind the home hero headline (never over photos) */
.hero { position: relative; isolation: isolate; overflow: clip; }
[data-season] .hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 340px; height: 340px; left: -90px; top: -40px;
  background: var(--season-mark) center / contain no-repeat; opacity: .06; }
/* Seasonal copy: only the line for the current season shows (summer copy without a season) */
.s-fall, .s-winter { display: none; }
[data-season="fall"] .s-summer, [data-season="winter"] .s-summer { display: none; }
[data-season="fall"] .s-fall, [data-season="winter"] .s-winter { display: inline; }
/* Anything that's only true while the main park is open. */
[data-season="winter"] .s-warm { display: none; }

@media (max-width: 640px) {
  .section { padding-top: 40px; padding-bottom: 40px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .site-header .container { gap: 8px 16px; }
  .header-actions { width: 100%; flex-wrap: wrap; gap: 8px; }
  .header-actions .btn-primary { flex: 1 1 auto; }
  .header-actions .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .header-actions .cart-pill { padding: 0 12px; font-size: 14px; }
  .hide-sm { display: none; }
  .has-visit-bar .visit-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30, 58, 43, .08); }
  .visit-bar-summary { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
  .visit-bar-summary strong { font: 800 22px var(--display); color: var(--forest); }
  .has-visit-bar { padding-bottom: 84px; }
  .has-visit-bar .toast { bottom: 96px; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .choice-grid[role="radiogroup"] { grid-template-columns: 1fr; }
  .choice { padding: 12px; gap: 4px; }
  .choice-title { font-size: 16px; }
  .times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .time { min-width: 0; min-height: 64px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card-flush .photo { aspect-ratio: 16 / 9; }
  .photo-hero { aspect-ratio: 4 / 3; }
  .support-card { padding: 28px 22px; gap: 20px; }
  .support-card .btn { width: 100%; }
  .event-date { width: 64px; height: 64px; font-size: 18px; border-radius: 12px; }
  .events-grid .card { flex-wrap: nowrap; }
  .card:not(.card-flush) { padding: 20px; }
  .show-sm { display: inline; }
  .topbar .container { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
  /* Menu button + fold-down nav */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 72px; padding: 0 16px; border-radius: 999px;
    border: 2px solid var(--forest); background: transparent; color: var(--forest); font: 700 15px var(--body); cursor: pointer; }
  .nav-toggle[aria-expanded="true"] { background: var(--forest); color: var(--white); }
  .main-nav { display: none; order: 4; width: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 48px; display: flex; align-items: center; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .main-nav a[aria-current="page"] { color: var(--peony-deep); font-weight: 700; border-bottom-color: var(--line); }
  .header-actions { order: 3; }
  .footer-cols div { gap: 2px; }
  .footer-cols a { min-height: 40px; display: flex; align-items: center; }
  .staff-main { padding: 16px; gap: 18px; }
  .page-head { gap: 12px; }
  /* Wide staff tables: one card per row, label on the left */
  .stack-table { min-width: 0 !important; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; }
  .stack-table thead { display: none; }
  .stack-table tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 12px; background: var(--white); }
  .stack-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F4EDE7; }
  .stack-table td:last-child { border-bottom: 0; }
  .stack-table td::before { content: attr(data-label); flex: 0 0 auto; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .stack-table td[data-label=""]::before { content: none; }
  .stack-table td > input:not([type=checkbox]), .stack-table td > select { width: 60% !important; min-width: 0; }
  .form-row > * { flex-basis: 120px; }
  dialog { padding: 20px; }
  .page-actions { width: 100%; gap: 8px; }
  .page-actions > * { flex: 1 1 100%; }
  .page-actions > .btn-sm { flex: 1 1 auto; }
  .week-toolbar { justify-content: space-between; }
  .week-toolbar .week-label { flex: 1 1 auto; text-align: center; font-size: 16px; }
  /* Staff nav becomes a top bar with a Menu button */
  .staff-nav { flex-basis: 100%; padding: 12px 16px; position: sticky; top: 0; z-index: 30; }
  .staff-nav .who { padding: 0; align-items: center; }
  .staff-current { display: inline; color: var(--petal); font-weight: 700; font-size: 14px; }
  .staff-nav .who .small { display: none; }
  .staff-nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 76px; padding: 0 16px; border-radius: 999px;
    border: 2px solid var(--petal); background: transparent; color: var(--white); font: 700 15px var(--body); cursor: pointer; flex: 0 0 auto; }
  .staff-nav-toggle[aria-expanded="true"] { background: var(--petal); color: var(--peony-ink); }
  .staff-links { display: none; padding-top: 12px; }
  .staff-nav.is-open .staff-links { display: flex; }
  .staff-nav .small { font-size: 13px; }
  /* Phones: all five days fit; slots show a short "2 left" label. */
  .wk { --wk-gutter: 40px; --wk-col-min: 0px; min-width: 0; }
  .wk-wide .wk { --wk-col-min: 150px; min-width: 790px; }
  .wk-hour { right: 4px; font-size: 10px; }
  .wk-num { font-size: 18px; }
  .wk-slot { padding: 3px 4px; font-size: 10px; border-radius: 8px; }
  .wk-slot strong { font-size: 11px; white-space: nowrap; }
  .wk-long { display: none; }
  .wk-short { display: inline; }
  .week-nav .week-label { order: -1; flex: 1 1 100%; text-align: center; font-size: 16px; }
  .week-nav > * { flex: 1 1 auto; }
}
