/* Rockin' C Ranch — design system
   Warm, modern ranch: cream paper, saddle leather, sage and a sunset accent.
   Every text/background pair below meets WCAG 2.2 AA contrast (most meet AAA). */

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

:root {
  --paper: #fbf7f1;
  --paper-2: #f3ebdf;
  --card: #ffffff;
  --ink: #1f1a14;
  --ink-2: #4a4036;          /* 9.6:1 on paper */
  --muted: #5d5247;          /* 7.3:1 on paper */
  --line: #ddd0bf;
  --line-strong: #8a7a68;    /* 3.9:1 — for input borders (non-text 3:1) */
  --saddle: #7a3e14;         /* 8.3:1 with white */
  --saddle-hover: #5e2f0f;
  --saddle-tint: #f5e6d8;
  --sage: #3f5a42;           /* 7.5:1 with white */
  --sage-tint: #e3ece2;
  --sunset: #e39a4f;
  --danger: #a1231b;         /* 6.9:1 on white */
  --danger-tint: #fbe7e5;
  --ok: #2d6a3a;
  --ok-tint: #e2f1e5;
  --warn-tint: #fdf1d8;
  --focus: #1b5fd1;
  --shadow: 0 1px 2px rgb(31 26 20 / .06), 0 8px 24px rgb(31 26 20 / .08);
  --shadow-lg: 0 2px 6px rgb(31 26 20 / .08), 0 24px 48px rgb(31 26 20 / .14);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16120e;
    --paper-2: #1f1913;
    --card: #231c16;
    --ink: #f6efe6;
    --ink-2: #ddd1c2;
    --muted: #c4b6a5;
    --line: #3a3027;
    --line-strong: #8f7f6d;
    --saddle: #e7a36b;
    --saddle-hover: #f3bb8a;
    --saddle-tint: #3a2618;
    --sage: #9cc3a0;
    --sage-tint: #1f2c21;
    --danger: #ff9a90;
    --danger-tint: #3b1a17;
    --ok: #8fd19d;
    --ok-tint: #17301d;
    --warn-tint: #3a2f16;
    --focus: #7fb0ff;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .4), 0 24px 48px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; font-family: var(--font); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--saddle); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--saddle-hover); text-decoration-thickness: .14em; }
strong { font-weight: 650; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }
ul.clean { list-style: none; padding: 0; margin: 0; }

/* Focus: always visible for keyboard users, never removed. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Headings and messages receive focus only so screen readers read them. */
[tabindex="-1"]:focus { outline: none; }
/* On photos and dark panels, a white ring with a dark edge stays visible (3:1+). */
.hero :focus-visible, dialog.lightbox :focus-visible, .site-footer :focus-visible, .cam .view :focus-visible, .device-mock :focus-visible {
  outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 2px #000;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--paper); }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important;
  white-space: nowrap !important; border: 0 !important;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section.alt { background: var(--paper-2); }
.eyebrow {
  display: inline-block; font: 650 .8rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--saddle); margin-bottom: 14px;
}
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 650 1.2rem/1 var(--display); }
.brand:hover { color: var(--ink); }
/* The ranch's own oval logo (traced from the owner's artwork), drawn in the ink colour so it
   follows light and dark mode. 1680 x 1030 is the logo's own shape. */
.brand .brand-logo { height: 52px; width: calc(52px * 1680 / 1030); color: var(--ink); flex: none; }
.brand small { display: block; font: 500 .72rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* On phones the logo already names the ranch; the tagline would push the menu button off-screen. */
@media (max-width: 480px) { .brand small { display: none; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 550; padding: 10px 14px; border-radius: 999px;
}
.nav a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--saddle-tint); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 600 1rem var(--font); cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; box-shadow: var(--shadow);
  }
  .nav[hidden] { display: none; }
  .nav a:not(.btn) { padding: 14px 12px; border-radius: 10px; }
  .nav .btn { margin: 8px 0 0; }
}
@media (min-width: 861px) { .nav[hidden] { display: flex; } }

/* ── Buttons & form controls ─────────────────────────── */
.btn {
  --bg: var(--saddle); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font: 650 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
@media (prefers-color-scheme: dark) { .btn { --fg: #1a120b; } }
.btn:hover { background: var(--saddle-hover); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn.secondary { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--paper-2); }
.btn.ghost-light { --bg: rgb(255 255 255 / .14); --fg: #fff; border-color: rgb(255 255 255 / .7); backdrop-filter: blur(6px); }
.btn.ghost-light:hover { background: rgb(255 255 255 / .26); color: #fff; }
.btn.danger { --bg: var(--danger); --fg: #fff; }
@media (prefers-color-scheme: dark) { .btn.danger { --fg: #1a120b; } }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { background: none; border: 0; padding: 0; color: var(--saddle); font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .label { font-weight: 600; font-size: .98rem; }
.hint { color: var(--muted); font-size: .9rem; margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"],
input[type="number"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  font: 400 1rem/1.4 var(--font);
}
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field-error { color: var(--danger); font-size: .92rem; font-weight: 550; margin: 0; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "⚠"; font-weight: 700; }
.field-error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--saddle); }
.check label { font-size: .98rem; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 650; padding: 0; margin-bottom: 10px; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.alert:empty { display: none; }
.alert.error { background: var(--danger-tint); border-color: color-mix(in srgb, var(--danger) 45%, transparent); color: var(--ink); }
.alert.success { background: var(--ok-tint); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.alert.info { background: var(--sage-tint); border-color: color-mix(in srgb, var(--sage) 40%, transparent); }
.alert.warn { background: var(--warn-tint); border-color: #c89a3a; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-track { display: flex; height: 100%; margin: 0; padding: 0; list-style: none; transition: transform 1.1s cubic-bezier(.45, 0, .2, 1); }
.hero-slide { flex: 0 0 100%; height: 100%; }
.hero-pause { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .55); background: rgb(20 12 6 / .55); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.hero-pause:hover { background: rgb(20 12 6 / .75); }
/* Two bars for pause; a triangle for play. */
.hero-pause-icon { width: 14px; height: 16px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero-pause.is-paused .hero-pause-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Shade only where the text sits, so the sunset keeps its colour. Still at least 4.5:1
     for white text over the brightest part of the sky. */
  background: linear-gradient(180deg, rgb(20 12 6 / .25) 0%, rgb(20 12 6 / .55) 45%, rgb(20 12 6 / .8) 100%);
}
@media (min-width: 900px) {
  .hero::after {
    background: linear-gradient(90deg, rgb(20 12 6 / .72) 0%, rgb(20 12 6 / .6) 62%, rgb(20 12 6 / .26) 84%, rgb(20 12 6 / .14) 100%);
  }
}
.hero .wrap { padding-top: 120px; padding-bottom: clamp(40px, 8vw, 88px); }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.hero .lede, .hero .eyebrow { text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
.hero .lede { color: #fff; opacity: .95; max-width: 52ch; }
.hero .eyebrow { color: #fff; }
.hero-badges a { color: #fff; text-decoration: none; }
.hero-badges a:hover { text-decoration: underline; color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.hero-badges li { background: rgb(20 12 6 / .55); border: 1px solid rgb(255 255 255 / .35); padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 550; backdrop-filter: blur(6px); }

/* ── Feature cards ────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--saddle-tint); color: var(--saddle); margin-bottom: 16px; }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); }

/* ── Split / camera promo ─────────────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--saddle); color: #fff; font: 700 1.05rem var(--font);
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #1a120b; } }
.steps strong { display: block; }
.device-mock {
  position: relative; border-radius: 28px; padding: 14px; background: #1b1511; box-shadow: var(--shadow-lg);
  max-width: 520px; justify-self: center; width: 100%;
}
.device-mock .screen { border-radius: 18px; overflow: hidden; background: #000; position: relative; aspect-ratio: 16/10; }
.device-mock img { width: 100%; height: 100%; object-fit: cover; }
.live-pill { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 8px; background: rgb(0 0 0 / .66); color: #fff; font: 650 .8rem/1 var(--font); letter-spacing: .06em; padding: 7px 11px; border-radius: 999px; }
.live-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 3px rgb(255 77 61 / .3); }
.cam-label { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; color: #fff; font: 600 .88rem/1 var(--font); text-shadow: 0 1px 6px rgb(0 0 0 / .7); }

/* ── Gallery ──────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--card); color: var(--ink); font: 600 .95rem var(--font); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 15vw, 200px); grid-auto-flow: dense; gap: 12px; padding: 0; margin: 0; list-style: none; }
.gallery li.wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 28vw, 220px); } }
@media (max-width: 600px) { .gallery li.wide { grid-row: span 1; } }
.gallery li[hidden] { display: none; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; border-radius: 12px; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery button:hover img { transform: scale(1.04); }
.gallery .tag { position: absolute; left: 10px; bottom: 10px; background: rgb(20 12 6 / .72); color: #fff; font: 600 .78rem/1 var(--font); padding: 6px 10px; border-radius: 999px; }

dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100dvh; margin: 0; color: #fff; overflow: auto; }
dialog.lightbox::backdrop { background: rgb(10 7 4 / .97); }
.lightbox-inner { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 12px; gap: 8px; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; }
.lightbox figure img { max-height: max(160px, calc(100dvh - 180px)); width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { text-align: center; font-size: 1rem; max-width: 70ch; margin: 10px auto 0; }
.lightbox-nav { display: flex; justify-content: center; gap: 12px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgb(255 255 255 / .6); background: rgb(255 255 255 / .1); color: #fff; font: 600 1rem var(--font); padding: 0 14px; gap: 6px;
}
.icon-btn:hover { background: rgb(255 255 255 / .22); }
.icon-btn svg { width: 22px; height: 22px; }

/* ── Booking ──────────────────────────────────────────── */
.booking { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 980px) { .booking { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
/* The calendar stays in view while the form scrolls, but only on screens tall enough to
   show all of it (dates included); otherwise it would hide its own date fields. */
@media (min-width: 981px) and (min-height: 860px) { .booking > .panel:first-child { position: sticky; top: 88px; } }

.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.cal-nav button:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--paper-2); }
.cal-nav button:disabled, .cal-nav button[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.cal-nav svg { width: 20px; height: 20px; }
/* Month names sit centered over each grid, with the arrows either side of them. */
.cal-body { position: relative; }
.cal-months { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 440px; margin-inline: auto; }
.cal-months.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.cal-body .cal-nav { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; z-index: 1; }
.cal-body .cal-nav button { pointer-events: auto; width: 40px; height: 40px; }
.month-title { font: 700 1.2rem/40px var(--font); text-align: center; margin: 0 0 6px; letter-spacing: 0; }
.cal-months.two .day { aspect-ratio: auto; height: 40px; min-height: 0; }
.hint.keys { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
table.cal { width: 100%; border-collapse: separate; border-spacing: 0 4px; table-layout: fixed; }
table.cal th { font: 600 .78rem var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0 8px; }
table.cal td { padding: 0; text-align: center; }
table.cal td[role="gridcell"] { position: relative; }
.day {
  width: 100%; aspect-ratio: 1; min-height: 44px; display: grid; place-content: center; gap: 1px;
  border: 0; background: transparent; color: var(--ink); font: 600 1rem/1 var(--font); cursor: pointer; border-radius: 12px;
  position: relative;
}
.day:hover:not([aria-disabled="true"]) { background: var(--paper-2); }
.day.range-start:hover, .day.range-end:hover { background: var(--saddle-hover) !important; }
.day[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; opacity: .5; }
.day.full { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.day.in-range { background: var(--saddle-tint); border-radius: 0; }
.day.range-start, .day.range-end { background: var(--saddle); color: #fff; border-radius: 12px; }
@media (prefers-color-scheme: dark) { .day.range-start, .day.range-end { color: #1a120b; } }
.day.today::after { content: ""; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.day:focus-visible { outline-offset: -3px; z-index: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; display: inline-block; border: 1px solid var(--line-strong); }
.swatch.sel { background: var(--saddle); border-color: var(--saddle); }
.swatch.range { background: var(--saddle-tint); }
.swatch.full { background: linear-gradient(135deg, transparent 45%, var(--danger) 45% 55%, transparent 55%); }
.date-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .date-inputs { grid-template-columns: 1fr; } }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stepper:last-of-type { border-bottom: 0; }
.stepper .what { min-width: 0; }
.stepper .what strong { display: block; }
.stepper .what span { color: var(--muted); font-size: .9rem; }
.stepper .ctrl { display: flex; align-items: center; gap: 8px; flex: none; }
.stepper .ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font: 600 1.3rem/1 var(--font); cursor: pointer; }
.stepper .ctrl button:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--paper-2); }
.stepper .ctrl button:disabled, .stepper .ctrl button[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
.stepper .ctrl output { min-width: 2ch; text-align: center; font: 650 1.1rem var(--font); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch { position: relative; width: 56px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.switch input:checked + .track { background: var(--saddle); }
.switch input:checked + .track::after { transform: translateX(24px); }
@media (prefers-color-scheme: dark) { .switch input:checked + .track::after { background: #1a120b; } }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 3px; }

.quote { margin: 18px 0; padding: 16px; border-radius: 14px; background: var(--paper-2); }
.quote table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.quote td { padding: 5px 0; vertical-align: top; }
.quote td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.quote tfoot td { border-top: 1px solid var(--line-strong); padding-top: 10px; font-weight: 700; font-size: 1.08rem; }
.trust { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .88rem; margin-top: 12px; }
.trust svg { width: 18px; height: 18px; flex: none; color: var(--sage); }
.step-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; font: 650 1.1rem var(--font); }
.step-title .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: .9rem; }

/* ── Info blocks, FAQ ─────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Four across only once every heading fits on one line, so the row reads evenly. */
@media (min-width: 1180px) { .info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .info h3 { white-space: nowrap; } }
.info { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
.info h3 { display: flex; gap: 8px; align-items: center; }
.info h3 svg { width: 22px; height: 22px; color: var(--saddle); flex: none; }
.info ul { margin: 0; padding-left: 1.2em; }
.info li { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--saddle); }
.faq details[open] summary::after { content: "−" / ""; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: #1b1511; color: #eadfd2; padding: 56px 0 32px; }
.site-footer a { color: #ffd2a8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.1rem; font-family: var(--font); margin-bottom: 12px; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #3a3027; margin-top: 40px; padding-top: 20px; font-size: .88rem; color: #c9bcad; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ── App pages (auth, account, admin) ─────────────────── */
.app-main { padding: clamp(28px, 5vw, 56px) 0 80px; min-height: 70vh; }
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-card h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs [role="tab"] {
  appearance: none; border: 0; background: none; padding: 12px 16px; min-height: 48px; font: 600 1rem var(--font); color: var(--muted);
  border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--saddle); }
.tabs [role="tab"]:hover { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.stay-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stay-card h3 { margin-bottom: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 650 .78rem/1.4 var(--font); letter-spacing: .02em; }
.badge svg { width: 14px; height: 14px; flex: none; }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge.warn { background: var(--warn-tint); color: var(--ink); }
.badge.bad { background: var(--danger-tint); color: var(--danger); }
.badge.neutral { background: var(--paper-2); color: var(--ink-2); }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.cam { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cam .view { position: relative; aspect-ratio: 16/9; background: #0d0a08; }
.cam .view video, .cam .view img { width: 100%; height: 100%; object-fit: contain; }
.cam .view .placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: #eadfd2; padding: 20px; gap: 12px; }
.cam .view .placeholder svg { width: 36px; height: 36px; }
.cam .body { padding: 14px 16px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.cam .body h3 { margin: 0; font-size: 1.08rem; }
.cam .body p { margin: 0; color: var(--muted); font-size: .9rem; }
.cam-actions { display: flex; gap: 8px; }
.empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--saddle); }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data caption { text-align: left; padding: 14px 16px 0; font-weight: 650; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 240px; }
code.secret { font-size: 1.05rem; letter-spacing: .12em; word-break: break-all; background: var(--paper-2); padding: 4px 8px; border-radius: 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.status-hero { text-align: center; max-width: 620px; margin: 0 auto; }
.status-hero .big-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; }
.status-hero .big-icon svg { width: 38px; height: 38px; }
.status-hero .big-icon.ok { background: var(--ok-tint); color: var(--ok); }
.status-hero .big-icon.wait { background: var(--saddle-tint); color: var(--saddle); }
.status-hero .big-icon.bad { background: var(--danger-tint); color: var(--danger); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
[hidden] { display: none !important; }

@media (forced-colors: active) {
  .day.range-start, .day.range-end { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .day.in-range { border: 1px solid Highlight; }
  .switch .track { border: 1px solid ButtonText; }
  .btn { border-color: ButtonText; }
}

/* Utilities (the CSP forbids inline style attributes) */
.m-0 { margin: 0; }
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }
@media (max-width: 360px) {
  .brand small { display: none; }
  .brand { font-size: 1.1rem; }
  .brand .brand-logo { height: 44px; width: calc(44px * 1680 / 1030); }
  .menu-toggle { padding: 0 12px; }
}


/* ── Round-2 additions ─────────────────────────────────── */
.status-region:empty { display: block; }
.status-region .alert { margin-top: 14px; }
.cal-msg { margin: 12px 0 0; min-height: 1.5em; font-weight: 600; }
.cal-msg.error { color: var(--danger); }
.cal-msg.ok { color: var(--ink-2); font-weight: 500; }
.hint.keys { display: block; }
@media (pointer: coarse) { .hint.keys { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.stepper .what .left { display: block; color: var(--sage); font-weight: 600; font-size: .85rem; }
.confirm-email { margin: 0 0 14px; font-size: .95rem; color: var(--ink-2); overflow-wrap: anywhere; }
.pending-banner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.pending-banner .row-actions { flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .pending-banner .row-actions { justify-content: flex-start; } .pending-banner .row-actions .btn { flex: 1 1 auto; } }

/* Floating "add dates" booking bar, like Airbnb's: follows the guest down the page and
   hides while the hero or the booking section is on screen. Phones get a slim bar with the
   price and a button; wider screens get a floating card with the two date fields too. */
.quick-book {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .08);
}
.qb-summary { margin: 0; min-width: 0; display: grid; line-height: 1.25; }
.qb-summary strong { font-size: 1rem; }
.qb-summary span { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-summary span.error { color: var(--danger); white-space: normal; }
.quick-book .btn { flex: none; }
.qb-box { display: none; }
/* Only when there's room to spare: at high zoom (short viewports) the bar would hide what
   has focus, so it stays away. Padding follows the bar's measured height. */
@media (min-height: 560px) {
  .quick-book:not([hidden]) { display: flex; }
  html.has-cta { scroll-padding-bottom: calc(var(--cta-h, 64px) + 24px); }
  html.has-cta body { padding-bottom: calc(var(--cta-h, 64px) + 24px); }
}
/* Wider screens: a card in the bottom-right corner, laid out like Airbnb's booking box. */
@media (min-width: 861px) {
  .quick-book {
    left: auto; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); width: 340px;
    flex-direction: column; align-items: stretch; gap: 16px; padding: 22px 22px 20px;
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  }
  .qb-summary strong { font: 650 1.35rem/1.2 var(--display); }
  .qb-summary span { margin-top: 2px; }
  .qb-box { display: block; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
  .qb-dates { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1.5px solid var(--line-strong); }
  .qb-field { position: relative; display: grid; gap: 2px; padding: 10px 12px; min-width: 0; }
  .qb-date + .qb-date { border-left: 1.5px solid var(--line-strong); }
  .qb-field label { font: 750 .66rem/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0; }
  .qb-shown { font-size: .95rem; color: var(--ink); white-space: nowrap; }
  .qb-shown.is-empty { color: var(--muted); }
  /* The real date field sits over the whole box, invisible: a click opens its picker and the
     keyboard and screen readers use it as normal. */
  .qb-date input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; min-height: 0; }
  .qb-count select { border: 0; padding: 0; min-height: 0; background: transparent; font-size: .95rem; color: var(--ink); width: 100%; cursor: pointer; }
  .qb-count select:focus-visible { outline: none; }
  .qb-field:hover { background: var(--paper-2); }
  .qb-field:focus-within { outline: 3px solid var(--focus); outline-offset: -3px; background: var(--paper-2); }
  .quick-book .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 1rem; }
}


/* Camera: CSS full-screen fallback (iPhone Safari can't full-screen an element). */
.cam.expanded { position: fixed; inset: 0; z-index: 100; border-radius: 0; display: grid; grid-template-rows: 1fr auto; background: #000; }
.cam.expanded .view { aspect-ratio: auto; height: 100%; }
.cam.expanded .body { background: var(--card); }
.cam .body h3, .cam .body h4 { margin: 0; font-size: 1.08rem; font-family: var(--font); }
.stay-card h4 { font-size: 1.15rem; margin: 0 0 4px; font-family: var(--font); }

/* Admin: tables become stacked cards on phones and small tablets. */
@media (max-width: 900px) {
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td { display: block; width: 100%; }
  table.data.stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.data.stack td { border: 0; padding: 6px 16px; }
  table.data.stack td[data-label]::before { content: attr(data-label) " "; display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
}
.new-dot { display: inline-block; margin-left: 6px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.filters-row .field { margin: 0; min-width: 180px; }
.occ-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); position: relative; }
table.occ { border-collapse: collapse; font-size: .85rem; min-width: 100%; }
table.occ th, table.occ td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; white-space: nowrap; }
table.occ thead th { position: sticky; top: 0; background: var(--paper-2); font-size: .78rem; }
table.occ tbody th { position: sticky; left: 0; background: var(--card); z-index: 1; }
table.occ td.guest { background: var(--saddle-tint); }
table.occ td.block { background: var(--paper-2); color: var(--ink-2); font-style: italic; }
table.occ td.pending { background: var(--warn-tint); }
.units-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; }

@media (forced-colors: active) {
  .switch .track { forced-color-adjust: none; background: Canvas; border: 2px solid ButtonText; }
  .switch .track::after { background: ButtonText; }
  .switch input:checked + .track { background: Highlight; border-color: Highlight; }
  .switch input:checked + .track::after { background: HighlightText; }
  .filters button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .tabs [role="tab"] { border-bottom-color: Canvas; }
  .tabs [role="tab"][aria-selected="true"] { border-bottom-color: Highlight; }
  .swatch { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; }
  .swatch.sel { background: Highlight; }
  .swatch.range { background: Canvas; border: 2px solid Highlight; }
  .swatch.full { background: linear-gradient(135deg, Canvas 45%, CanvasText 45% 55%, Canvas 55%); }
  .day.today::after { forced-color-adjust: none; background: CanvasText; }
  .live-pill::before { forced-color-adjust: none; background: Mark; }
}
dialog.panel { max-width: min(520px, calc(100vw - 32px)); width: 100%; border: 1px solid var(--line); color: var(--ink); background: var(--card); box-shadow: var(--shadow-lg); }
dialog.panel::backdrop { background: rgb(20 12 6 / .55); }
dialog.panel h2 { font-size: 1.4rem; }

table.data.stack caption { caption-side: top; }
@media (max-width: 900px) { table.data.stack caption { display: block; width: auto; padding: 14px 16px 6px; } }
.cam.expanded .body { position: relative; }
.cam:fullscreen { display: grid; grid-template-rows: 1fr auto; background: #000; }
.cam:fullscreen .view { aspect-ratio: auto; height: 100%; }

/* ── Animated logo in the hero (wide screens) ────────────────────────────────
   Rebuilt from the ranch's logo-reveal animation: the oval ropes around, ROCKIN stamps
   down, the rocker draws out and the C drops on and rocks to rest, then Ranch writes on
   and the diamonds pop. It plays once per visit; reduced-motion users see it finished. */
.logo-reveal { display: none; }
/* Wide screens: two columns inside the page width. The words take the wider left column
   (fewer, longer lines); the logo sits centred beside them, its right edge lined up with
   the header's Book now button. */
@media (min-width: 1100px) {
  .hero .wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 29%, 340px);
    column-gap: clamp(40px, 3.5vw, 48px); align-items: center;
  }
  .hero .wrap > :not(.logo-reveal) { grid-column: 1; }
  .hero h1 { max-width: 20ch; }
  .hero .lede { max-width: 62ch; }
  .logo-reveal {
    display: block; grid-column: 2; grid-row: 2 / 4; align-self: center; justify-self: end;
    width: 100%; height: auto; color: #fff; fill: currentColor; pointer-events: none;
    filter: drop-shadow(0 4px 18px rgb(0 0 0 / .45));
  }
}
.rv-all { transform-box: view-box; transform-origin: 1050px 713px; animation: rv-settle 5.6s cubic-bezier(.65, 0, .35, 1) both; }
.rv-sweep { stroke-dashoffset: 0; animation: rv-sweep 1.15s .1s cubic-bezier(.65, 0, .35, 1) both; }
.rv-letter { transform-box: fill-box; transform-origin: center; animation: rv-stamp .38s cubic-bezier(.34, 1.56, .64, 1) both; }
#rv-L0 { --r: -9deg; animation-delay: 1.35s; } #rv-L1 { --r: 9deg; animation-delay: 1.45s; }
#rv-L2 { --r: -9deg; animation-delay: 1.55s; } #rv-L3 { --r: 9deg; animation-delay: 1.65s; }
#rv-L4 { --r: -9deg; animation-delay: 1.75s; } #rv-L5 { --r: 9deg; animation-delay: 1.85s; }
.rv-wipe-mid { transform-box: fill-box; transform-origin: center; animation: rv-wipe .4s 2.5s cubic-bezier(.65, 0, .35, 1) both; }
#rv-mark { animation: rv-drop .35s 2.75s cubic-bezier(.33, 1, .68, 1) both; }
#rv-rock { transform-box: view-box; transform-origin: 1040px 570px; animation: rv-rock 1.6s 3.1s linear both; }
.rv-wipe-left { transform-box: fill-box; transform-origin: left center; animation: rv-wipe 1.05s 4.1s cubic-bezier(.65, 0, .35, 1) both; }
.rv-diamond { transform-box: fill-box; transform-origin: center; animation: rv-pop .38s cubic-bezier(.34, 1.56, .64, 1) both; }
#rv-dL { animation-delay: 4.9s; } #rv-dR { animation-delay: 5s; }
@keyframes rv-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rv-sweep { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes rv-stamp { 0% { opacity: 0; transform: scale(1.9) rotate(var(--r, 0deg)); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes rv-wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rv-drop { from { opacity: 0; transform: translateY(-260px); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rv-pop { from { opacity: 0; transform: scale(0) rotate(-90deg); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rv-rock {
  0% { transform: translateX(0.0px) rotate(0.00deg); }
  3.13% { transform: translateX(-21.5px) rotate(-4.44deg); }
  6.25% { transform: translateX(-36.2px) rotate(-7.48deg); }
  9.38% { transform: translateX(-43.6px) rotate(-9.01deg); }
  12.50% { transform: translateX(-44.1px) rotate(-9.12deg); }
  15.63% { transform: translateX(-39.0px) rotate(-8.07deg); }
  18.75% { transform: translateX(-30.0px) rotate(-6.20deg); }
  21.88% { transform: translateX(-18.9px) rotate(-3.91deg); }
  25% { transform: translateX(-7.6px) rotate(-1.56deg); }
  28.13% { transform: translateX(2.6px) rotate(0.53deg); }
  31.25% { transform: translateX(10.5px) rotate(2.17deg); }
  34.38% { transform: translateX(15.6px) rotate(3.22deg); }
  37.50% { transform: translateX(17.7px) rotate(3.67deg); }
  40.63% { transform: translateX(17.3px) rotate(3.57deg); }
  43.75% { transform: translateX(14.7px) rotate(3.05deg); }
  46.88% { transform: translateX(10.8px) rotate(2.24deg); }
  50% { transform: translateX(6.3px) rotate(1.30deg); }
  53.13% { transform: translateX(1.8px) rotate(0.38deg); }
  56.25% { transform: translateX(-2.0px) rotate(-0.41deg); }
  59.38% { transform: translateX(-4.9px) rotate(-1.01deg); }
  62.50% { transform: translateX(-6.6px) rotate(-1.36deg); }
  65.63% { transform: translateX(-7.1px) rotate(-1.48deg); }
  68.75% { transform: translateX(-6.7px) rotate(-1.39deg); }
  71.88% { transform: translateX(-5.5px) rotate(-1.14deg); }
  75% { transform: translateX(-3.8px) rotate(-0.80deg); }
  78.13% { transform: translateX(-2.0px) rotate(-0.42deg); }
  81.25% { transform: translateX(-0.3px) rotate(-0.06deg); }
  84.38% { transform: translateX(1.2px) rotate(0.24deg); }
  87.50% { transform: translateX(2.2px) rotate(0.45deg); }
  90.63% { transform: translateX(2.7px) rotate(0.57deg); }
  93.75% { transform: translateX(2.8px) rotate(0.59deg); }
  96.88% { transform: translateX(2.6px) rotate(0.53deg); }
  100% { transform: translateX(2.0px) rotate(0.42deg); }
}
/* Already seen this visit, or motion turned off: show the finished logo. */
.logo-reveal.is-static *, .logo-reveal.is-static { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .logo-reveal, .logo-reveal * { animation: none !important; } }

/* A small lock after a step, pointing to the privacy note below it (like a footnote mark). */
.inline-lock { display: inline-block; width: .95em; height: .95em; margin-left: 5px; vertical-align: -.12em; color: var(--saddle); }

/* Keeps a hyphenated word from splitting across two lines on wide screens; on phones the
   narrow column wraps more evenly without it. */
@media (min-width: 1100px) { .nowrap { white-space: nowrap; } }
.hero .lede { text-wrap: pretty; }

/* Admin: stall extras */
.addon-list { display: grid; gap: 14px; }
.addon-card h4 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.addon-card { display: grid; gap: 4px; }
#unit-rows input[type="text"] { max-width: 260px; }
.unit-note { display: block; margin-top: 4px; }
.unit-status { display: block; margin-top: 4px; }
.unit-status.ok { color: var(--ok); }
.unit-status.error { color: var(--danger); font-weight: 600; }
.addon-card .row-actions { align-items: center; }
.addon-card .row-actions .unit-status { margin: 0; }
/* A row or card with changes that aren't saved yet. */
tr.is-dirty td:first-child { box-shadow: inset 4px 0 0 var(--sunset); }
.addon-card.is-dirty { border-color: var(--sunset); }

/* Extras under the stall stepper, indented a touch so they read as part of the stalls.
   One stall: a tick box per extra. More stalls: a count per extra. */
.extras { margin: 2px 0 6px; padding: 12px 0 0 16px; border-left: 3px solid var(--saddle-tint); }
.extras-title { font: 700 .78rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--saddle); margin: 0 0 2px; }
.stepper.extra { padding: 10px 0; }
.stepper.extra .extra-name { display: block; font-weight: 650; cursor: pointer; }
.stepper.extra .ctrl button { width: 40px; height: 40px; font-size: 1.15rem; }
.stepper .what span.small { display: block; font-size: .85rem; }
.extra-check { display: none; flex: none; }
.extra-check input { width: 24px; height: 24px; accent-color: var(--saddle); cursor: pointer; }
.extras.single .extra-check { display: block; }
.extras.single .stepper.extra .ctrl { display: none; }
#extras-which { margin-top: 4px; }

/* Admin extras cards and add form use the same plain headings as the other panels. */
.addon-card h4, #addon-new h4 { font-family: var(--font); font-weight: 650; font-size: 1.05rem; letter-spacing: 0; }

/* Admin: Edit site */
.editor-help { display: grid; gap: 6px; margin-bottom: 18px; }
.editor-help > * { min-width: 0; }
.editor-help code { font-size: .9em; background: var(--paper-2); padding: 1px 5px; border-radius: 5px; }
.editor-grid { display: grid; gap: 24px; }
@media (min-width: 1100px) { .editor-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.editor-forms { display: grid; gap: 16px; }
.content-card h3, .editor-photos h3 { font-size: 1.1rem; margin: 0 0 4px; }
.content-card textarea, .photo-card textarea { width: 100%; }
.content-card.is-dirty, .photo-card.is-dirty { border-color: var(--sunset); }
.content-card .row-actions, .photo-card .row-actions { align-items: center; flex-wrap: wrap; }
.content-card .row-actions .unit-status, .photo-card .row-actions .unit-status { margin: 0; }
.faq-fieldset { border: 0; padding: 0; margin: 0; }
.faq-fieldset legend { font-weight: 650; margin-bottom: 8px; }
.faq-edit { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.faq-edit > li { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; gap: 2px; }
.photo-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.photo-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.photo-card img { width: 160px; height: auto; border-radius: 10px; object-fit: cover; }
.editor-jump { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; }
.editor-jump a { font-weight: 600; padding: 6px 0; }
.token-help summary, .more-options summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.preview { margin: 6px 0 0; padding: 8px 10px; background: var(--paper-2); border-radius: var(--radius-sm); font-size: .92rem; overflow-wrap: anywhere; }
.content-card > summary, .photo-group > summary { cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.content-card > summary .summary-title { font-weight: 700; font-size: 1.1rem; margin-right: auto; }
.content-card[open] > summary { margin-bottom: 12px; }
.photo-group { margin-top: 12px; }
.photo-group > summary .summary-title { font-weight: 650; }
.photo-group[open] > summary { margin-bottom: 8px; }
.dirty-badge { display: none; }
.is-dirty .dirty-badge { display: inline-block; }
.more-options { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.more-options .btn { margin-top: 4px; }
.photo-fields { display: grid; gap: 4px; min-width: 0; }
.danger-row { margin-top: 10px; }
@media (max-width: 560px) {
  .photo-card { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .photo-card img { width: 96px; }
}
.photo-fields > .badge { justify-self: start; }
.content-card > summary, .photo-group > summary { list-style: none; }
.content-card > summary::-webkit-details-marker, .photo-group > summary::-webkit-details-marker { display: none; }
.content-card > summary::before, .photo-group > summary::before { content: "▸"; color: var(--saddle); font-size: 1.1rem; transition: transform .15s; }
.content-card[open] > summary::before, .photo-group[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .content-card > summary::before, .photo-group > summary::before { transition: none; } }
.token-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; }
.token-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.token-list .token-label { font-weight: 600; }
.token-list code { justify-self: start; font-size: .85rem; }
@media (min-width: 760px) { .token-list li { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: baseline; } }
.insert-name { margin-top: 6px; }
.insert-name summary { cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--saddle); padding: 6px 0; min-height: 32px; }
.insert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.insert-row select { flex: 1 1 200px; min-width: 0; max-width: 100%; }
.insert-row label { font-weight: 600; }

/* Admin: prices */
.price-grid { display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.money-input { display: flex; align-items: center; gap: 6px; }
.money-input span { font-weight: 650; color: var(--ink-2); }
.money-input input { max-width: 9rem; }

/* Admin: accounts */
.role-pick { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.role-pick legend { font-weight: 650; margin-bottom: 6px; }
.acct-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.acct-card { display: grid; gap: 8px; align-content: start; }
.acct-card.is-off { opacity: .85; border-style: dashed; }
.acct-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.acct-head h4 { margin: 0 auto 0 0; font: 650 1.05rem var(--font); overflow-wrap: anywhere; }
.acct-role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acct-role label { font-weight: 600; }
.acct-role select { flex: 1 1 140px; max-width: 220px; }
.link-share { display: grid; gap: 6px; margin-top: 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--paper-2); }
.link-share label { font-weight: 600; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-row input { flex: 1 1 200px; min-width: 0; font-family: ui-monospace, monospace; font-size: .85rem; }
/* Ten admin tabs: wrap onto a second row on wide screens instead of hiding the last ones. */
@media (min-width: 900px) { .tabs { flex-wrap: wrap; overflow-x: visible; } }
.price-grid .field { display: flex; flex-direction: column; }
.price-grid .money-input { margin-top: auto; padding-top: 6px; }
.hero-track.no-anim { transition: none; }
/* Keep the hero badges clear of the slideshow's pause button on phones. */
@media (max-width: 600px) { .hero .wrap { padding-bottom: 76px; } }

/* Weddings page */
.hero.hero-short { min-height: min(70vh, 640px); }
.wed-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .wed-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 14px; height: 8px; border-left: 3px solid var(--saddle); border-bottom: 3px solid var(--saddle); transform: rotate(-45deg); }
.wed-price h3 { margin-top: 0; }
.price-list { margin: 0 0 14px; display: grid; gap: 10px; }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.price-list dt { font-weight: 600; }
.price-list dd { margin: 0; font: 700 1.35rem var(--font); }
.wed-services { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.wed-services h3 { margin: 0 0 4px; font-size: 1.1rem; }
.wed-book { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .wed-book { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.wed-cal .cal-months { max-width: 440px; }
.wd-services { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.wd-services legend { font-weight: 600; margin-bottom: 6px; }
.wed-due { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.wrap.narrow { max-width: 760px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plain-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.q-item { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.q-item .badge { margin-left: 8px; }
.q-item.is-done { opacity: .8; }
.q-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wed-terms { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.legend-day { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font: 600 .9rem var(--font); color: var(--ink); }
.legend-day.full { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.legend-day.off { color: var(--muted); }
