/* Rollin'4 Initiative site styles (D-047).
   Light, warm "parchment" pages for reading and booking, with dark
   "dungeon" bands for the hero and footer where the logo lives.
   No third-party fonts: the CSP allows only this origin. */

:root {
    --bg: #f7f3ec;
    --surface: #ffffff;
    --surface-2: #efe8dc;
    --ink: #1d1915;
    --muted: #5f564b;
    --line: #e2d8c8;
    --line-strong: #cbbda7;

    --primary: #8a252b;
    --primary-hover: #6f1c21;
    --primary-soft: #f6e7e5;
    --gold: #b8893a;
    --gold-ink: #7a5a1e;
    --gold-soft: #f5ecd9;

    --night: #15110d;
    --night-2: #221a13;
    --on-night: #f1e6d2;
    --on-night-muted: #bfb09a;
    --night-line: rgba(197, 160, 90, 0.25);

    --ok: #1f6b43;
    --ok-soft: #e6f2ea;
    --warn: #8a5a00;
    --warn-soft: #fbf1dc;
    --error: #a3262e;
    --error-soft: #fbe9ea;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(40, 28, 16, 0.06), 0 8px 24px -12px rgba(40, 28, 16, 0.18);
    --gutter: clamp(1rem, 4vw, 2rem);
    --max: 72rem;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-underline-offset: 0.15em; }
a:hover { color: var(--primary-hover); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 0.5em;
    text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------------------------------------------------------------- layout */

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 44rem; }
.container-mid { max-width: 58rem; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-alt { background: var(--surface-2); }
.section-white { background: var(--surface); }

.section-head { max-width: 40rem; margin: 0 0 2.25rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.eyebrow {
    display: inline-block;
    margin: 0 0 0.75rem;
    color: var(--gold-ink);
    font: 700 0.78rem/1.3 var(--sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 44rem) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 44rem) and (max-width: 63.99rem) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) {
    .split { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; }
    .split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
}

.stack { display: flex; flex-direction: column; gap: 1rem; }
.row, .search { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.search input { flex: 1; min-width: 12rem; }

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--night);
    color: var(--on-night);
    border-bottom: 1px solid var(--night-line);
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--on-night);
    text-decoration: none;
    font: 600 1.15rem/1.1 var(--serif);
    margin-right: auto;
    white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand img { width: 2.75rem; height: 2.75rem; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--night-line);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--on-night);
    font: 600 0.95rem var(--sans);
    cursor: pointer;
}
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a, .site-nav button.nav-link {
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--on-night);
    font-size: 0.96rem;
    text-decoration: none;
    background: none;
    border: 0;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
}
.site-nav a:hover, .site-nav button.nav-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav .nav-sep { width: 1px; height: 1.5rem; background: var(--night-line); margin: 0 0.4rem; }
.site-nav form { display: contents; }
.site-nav a.btn { margin-left: 0.5rem; padding: 0.55rem 1.1rem; color: #fff; background: var(--primary); border-radius: var(--radius-sm); }
.site-nav a.btn:hover { background: var(--primary-hover); }

@media (max-width: 74.99rem) {
    .js .nav-toggle { display: inline-flex; }
    .js .site-nav {
        display: none;
        position: absolute;
        inset: 100% 0 auto;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem var(--gutter) 1.25rem;
        background: var(--night);
        border-bottom: 1px solid var(--night-line);
        box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.6);
    }
    .js .site-nav.is-open { display: flex; }
    .js .site-nav a, .js .site-nav button.nav-link { padding: 0.8rem 0.5rem; font-size: 1.05rem; text-align: left; }
    .js .site-nav .nav-sep { width: auto; height: 1px; margin: 0.4rem 0; }
    .js .site-nav .btn { margin: 0.75rem 0 0; }
    /* Without JavaScript the links simply wrap under the brand. */
    html:not(.js) .site-header .container { flex-wrap: wrap; padding-block: 0.5rem; }
    html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* Admin sub-navigation, under the site header on /admin/ pages. */
.admin-bar { background: var(--night-2); border-bottom: 1px solid var(--night-line); }
.admin-bar .container { display: flex; gap: 0.25rem; overflow-x: auto; padding-block: 0.35rem; }
.admin-bar a {
    flex: none;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--on-night-muted);
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
}
.admin-bar a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.admin-bar a[aria-current="page"] { color: #fff; background: rgba(197, 160, 90, 0.18); }
.admin-bar .count {
    display: inline-block;
    min-width: 1.35rem;
    margin-left: 0.3rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
}

/* ---------------------------------------------------------------- page heads */

.page-head { padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem); }
.page-head p { color: var(--muted); font-size: 1.12rem; max-width: 42rem; }
.page-head.dark { background: var(--night); color: var(--on-night); }
.page-head.dark h1 { color: var(--on-night); }
.page-head.dark p { color: var(--on-night-muted); }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }

/* Narrow single-column pages (account, login, legacy auth pages). */
main.narrow { width: 100%; max-width: 34rem; margin: 0 auto; padding: 2.5rem var(--gutter) 4rem; }
main.wide { width: 100%; max-width: var(--max); margin: 0 auto; padding: 2rem var(--gutter) 4rem; }

/* ---------------------------------------------------------------- hero (dark) */

.hero {
    position: relative;
    background:
        radial-gradient(ellipse 40rem 30rem at 20% 40%, rgba(214, 150, 70, 0.16), transparent 70%),
        radial-gradient(ellipse 50rem 26rem at 70% 110%, rgba(138, 37, 43, 0.35), transparent 70%),
        var(--night);
    color: var(--on-night);
    overflow: hidden;
}
.hero .container { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { color: var(--on-night); font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem); }
.hero h1 em { color: #dcb978; font-style: italic; font-weight: 500; }
.hero .lead { color: var(--on-night-muted); max-width: 34rem; }
.hero .eyebrow { color: #dcb978; }
.hero-logo { width: min(78vw, 24rem); margin: 0 auto; mix-blend-mode: lighten; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: var(--on-night-muted); font-size: 0.95rem; }
.hero-points li::before { content: "✦"; color: #dcb978; margin-right: 0.45rem; }
@media (min-width: 60rem) {
    .hero .container { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
    .hero-logo { width: min(100%, 30rem); }
}

/* ---------------------------------------------------------------- buttons */

.btn, button:not(.nav-link):not(.nav-toggle):not(.link-button):not(.chip):not(.cal-day):not(.slot) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    padding: 0.6rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font: 600 1rem/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover, button:not(.nav-link):not(.nav-toggle):not(.link-button):not(.chip):not(.cal-day):not(.slot):hover { background: var(--primary-hover); color: #fff; }

.btn-secondary, button.btn-secondary { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line-strong) !important; }
.btn-secondary:hover, button.btn-secondary:hover { border-color: var(--ink) !important; }
.btn-ghost, button.btn-ghost { background: transparent !important; color: var(--primary) !important; border-color: transparent !important; padding-inline: 0.6rem; }
.btn-ghost:hover, button.btn-ghost:hover { background: var(--primary-soft) !important; }
.btn-gold, button.btn-gold { background: #c5a05a !important; color: #1d1508 !important; }
.btn-gold:hover, button.btn-gold:hover { background: #d6b26c !important; }
.btn-on-dark { background: transparent !important; color: var(--on-night) !important; border-color: var(--night-line) !important; }
.btn-on-dark:hover { border-color: #dcb978 !important; color: #fff !important; }
.btn-danger, button.btn-danger { background: var(--surface) !important; color: var(--error) !important; border-color: #e3b5b8 !important; }
.btn-danger:hover, button.btn-danger:hover { background: var(--error-soft) !important; }
.btn-lg { min-height: 3.3rem !important; padding-inline: 1.7rem !important; font-size: 1.05rem !important; }
.btn-block { width: 100%; }
.btn-small, button.small { min-height: 2.25rem !important; padding: 0.35rem 0.85rem !important; font-size: 0.9rem !important; }

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
form.inline { display: inline; }

/* ---------------------------------------------------------------- cards */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card-flat { box-shadow: none; }
.card h3 { margin-bottom: 0.35rem; }

.package-card { display: flex; flex-direction: column; gap: 0.9rem; }
.package-card .price { font: 600 1.6rem/1.1 var(--serif); color: var(--ink); }
.package-card .price small { font: 400 0.9rem var(--sans); color: var(--muted); }
.package-card .meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.package-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.badge-gold { background: var(--gold-soft); color: var(--gold-ink); }
.badge-red { background: var(--primary-soft); color: var(--primary); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.list-check li { position: relative; padding-left: 1.6rem; }
.list-check li::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.45em;
    width: 0.9rem;
    height: 0.5rem;
    border-left: 2px solid var(--ok);
    border-bottom: 2px solid var(--ok);
    transform: rotate(-45deg);
}

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold-ink);
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.feature p { color: var(--muted); margin: 0; }

.how-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .how-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.how-steps li { counter-increment: step; position: relative; padding-top: 3.25rem; }
.how-steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--night);
    color: #dcb978;
    font: 600 1.15rem var(--serif);
}
.how-steps h3 { font-size: 1.15rem; }
.how-steps p { color: var(--muted); margin: 0; }

/* Audience chooser on the home page. */
.audience-card { display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.audience-card:hover { border-color: var(--gold); color: inherit; transform: translateY(-2px); }
.audience-card .go { margin-top: auto; color: var(--primary); font-weight: 600; }

/* ---------------------------------------------------------------- reviews */

.review { display: flex; flex-direction: column; gap: 0.75rem; }
.review blockquote { margin: 0; font: 1.08rem/1.55 var(--serif); }
.review .who { color: var(--muted); font-size: 0.92rem; }
.review .who strong { color: var(--ink); }
.stars { color: #b07d1a; letter-spacing: 0.1em; font-size: 1.05rem; }
.rating-summary { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.rating-summary .big { font: 600 2.4rem/1 var(--serif); }

/* ---------------------------------------------------------------- FAQ */

.faq { display: grid; gap: 0.75rem; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.faq summary {
    position: relative;
    padding: 1rem 3rem 1rem 1.15rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-ink);
    font-size: 1.4rem;
    font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.15rem 1rem; color: var(--muted); }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- CTA band */

.cta-band { background: var(--night); color: var(--on-night); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta-band h2 { color: var(--on-night); margin: 0 0 0.35rem; }
.cta-band p { color: var(--on-night-muted); margin: 0; }

/* ---------------------------------------------------------------- forms */

label { font-weight: 600; }
.stack > label, label.field-label { display: flex; flex-direction: column; gap: 0.35rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.15rem; }
.field > label, .field > .label { font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.help, .hint { color: var(--muted); font-size: 0.9rem; font-weight: 400; margin: 0; }
.hint { min-height: 1.4em; }
.hint.met { color: var(--ok); }
.field-error { color: var(--error); font-size: 0.92rem; font-weight: 600; margin: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="search"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="url"],
input:not([type]), select, textarea {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 400;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
select { padding-right: 2rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(184, 137, 58, 0.45); outline-offset: 0; border-color: var(--gold); }
[aria-invalid="true"] { border-color: var(--error) !important; }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--primary); flex: none; margin: 0.2rem 0 0; }

.check { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check strong { font-weight: 600; }

.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) {
    .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
}

fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
legend { font: 600 1.25rem var(--serif); margin-bottom: 0.75rem; padding: 0; }

/* Choice cards (radio or checkbox inside a label). */
.choices { display: grid; gap: 0.75rem; }
.choice {
    position: relative;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.choice:hover { border-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--primary); background: #fffafa; box-shadow: 0 0 0 1px var(--primary); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice .choice-body { flex: 1; min-width: 0; }
.choice .choice-title { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; }
.choice .choice-price { font-weight: 700; white-space: nowrap; }
.choice p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- notices */

.alert, .notice {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: 1.25rem;
}
.alert ul, .notice ul { margin: 0; padding-left: 1.2rem; }
.alert > :last-child, .notice > :last-child { margin-bottom: 0; }
.alert-error, .notice-error { background: var(--error-soft); border-color: #efc4c7; color: #7d1b22; }
.alert-ok, .notice-ok { background: var(--ok-soft); border-color: #bfdcc9; color: #174f32; }
.notice-warn { background: var(--warn-soft); border-color: #ecd6a6; color: #5f3e00; }
.notice-info { background: var(--gold-soft); border-color: #e7d4ad; color: #4f3b14; }
.notice-dev { background: #eef2ff; border-color: #c7d0f5; color: #27306b; }

/* ---------------------------------------------------------------- booking */

.progress-steps {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    counter-reset: ps;
}
.progress-steps li {
    counter-increment: ps;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}
.progress-steps li::before {
    content: "";
    height: 4px;
    border-radius: 2px;
    background: var(--line);
}
.progress-steps li.done::before, .progress-steps li.current::before { background: var(--primary); }
.progress-steps li.current { color: var(--ink); }
.progress-steps a { color: inherit; text-decoration: none; }
.progress-steps a:hover { color: var(--primary); }
@media (max-width: 30rem) {
    .progress-steps li span.label { display: none; }
    .progress-steps li.current span.label { display: inline; }
}

.summary { position: sticky; top: 5.5rem; }
.summary h2 { font-size: 1.25rem; }
.summary dl { margin: 0; display: grid; gap: 0.6rem; }
.summary dt { color: var(--muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.summary dd { margin: 0 0 0.35rem; }

.price-lines { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.price-lines td { padding: 0.35rem 0; vertical-align: top; }
.price-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.price-lines tr.total td { border-top: 1px solid var(--line); padding-top: 0.7rem; font-weight: 700; font-size: 1.1rem; }
.price-lines tr.due td { color: var(--primary); font-weight: 700; }
.price-lines tr.minus td:last-child { color: var(--ok); }

/* Month calendar used for picking a date (and in the admin). */
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.cal-head h3 { margin: 0; font-size: 1.2rem; }
.cal-nav { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cal-nav:hover { border-color: var(--ink); color: var(--ink); }
.cal-nav[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; }
.cal-dow { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding-bottom: 0.25rem; }
.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    color: var(--line-strong);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.98rem;
}
a.cal-day { color: var(--ink); background: var(--gold-soft); border-color: #ead9b5; }
a.cal-day:hover { border-color: var(--gold); color: var(--ink); }
a.cal-day .dot { font-size: 0.68rem; font-weight: 500; color: var(--gold-ink); }
.cal-day[aria-current="date"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.cal-day[aria-current="date"] .dot { color: #fbe3e5; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); }
.cal-legend span::before { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px; margin-right: 0.35rem; vertical-align: -1px; background: var(--gold-soft); border: 1px solid #ead9b5; }
.cal-legend span.off::before { background: transparent; border-color: var(--line); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.5rem; }
.slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: 600 0.98rem var(--sans);
    cursor: pointer;
}
.slot:hover { border-color: var(--primary); color: var(--primary); }
label.slot:has(input:checked) { background: var(--primary); border-color: var(--primary); color: #fff; }
label.slot input { position: absolute; opacity: 0; pointer-events: none; }
label.slot:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font: 600 0.9rem var(--sans);
    text-decoration: none;
    cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.status-pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.status-confirmed, .status-completed { background: var(--ok-soft); color: var(--ok); }
.status-requested, .status-pending_payment { background: var(--warn-soft); color: var(--warn); }
.status-cancelled, .status-expired { background: var(--surface-2); color: var(--muted); }

/* Detail lists (booking pages and the account page). */
.details, .kv { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.55rem 1.25rem; }
.details dt, .kv dt { color: var(--muted); font-weight: 600; }
.details dd, .kv dd { margin: 0; }
@media (max-width: 30rem) {
    .details, .kv { grid-template-columns: 1fr; gap: 0.1rem; }
    .details dd, .kv dd { margin-bottom: 0.6rem; }
}

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.data th, table.data td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--surface-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
.pager { display: flex; gap: 1rem; margin-top: 1rem; align-items: center; }

/* ---------------------------------------------------------------- legacy auth bits */

.checklist { list-style: none; margin: -0.5rem 0 0; padding: 0; color: var(--muted); font-size: 0.92rem; }
.checklist li::before { content: "\2610  "; }
.checklist li.met { color: var(--ok); }
.checklist li.met::before { content: "\2611  "; }
pre.debug { white-space: pre-wrap; word-break: break-word; font-size: 0.8rem; background: #fff; border: 1px solid var(--line); padding: 0.75rem; border-radius: 6px; }
.qr { display: block; width: 220px; height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.secret { font-size: 1rem; letter-spacing: 0.05em; word-break: break-all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.codes code { display: block; padding: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 1.05rem; text-align: center; }
.steps { padding-left: 1.2rem; margin-bottom: 0.5rem; }
.role-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.role-list li { display: flex; gap: 1rem; align-items: center; }
.role-list span { min-width: 8rem; }
main.narrow h2, main.wide h2 { margin-top: 2rem; font-size: 1.35rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--night); color: var(--on-night-muted); font-size: 0.95rem; }
.site-footer .container { padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h2 { color: var(--on-night); font: 700 0.8rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.85rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: #dcb978; text-decoration: underline; }
.site-footer .brand { margin-bottom: 0.75rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem; }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .admin-bar, .no-print { display: none !important; }
    body { background: #fff; }
}

/* ---------------------------------------------------------------- utilities */

.h3 { font-size: 1.3rem; }
.h4 { font-size: 1.1rem; margin-top: 1.25rem; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.todo-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; }
.todo-list li { position: relative; padding-left: 2rem; }
.todo-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
}
.todo-list li.done::before { border-color: var(--ok); background: var(--ok-soft); }
.todo-list li.done::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0.45em;
    width: 0.4rem;
    height: 0.65rem;
    border-right: 2px solid var(--ok);
    border-bottom: 2px solid var(--ok);
    transform: rotate(45deg);
}
.promo-input { max-width: 14rem; }
.waiver-text { max-height: 24rem; overflow-y: auto; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 0.95rem; }
.waiver-text h2, .waiver-text h3 { font-size: 1.1rem; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.25rem; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 2rem; line-height: 1; color: var(--line-strong); cursor: pointer; padding: 0 0.1rem; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #b07d1a; }
.rating-input input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.row-between { justify-content: space-between; }
.row-between > h2, .row-between > h3 { margin: 0; }


/* Pirata One display lettering on the home page; body copy remains readable. */
body:has(.hero) h1,
body:has(.hero) h2,
body:has(.hero) h3 {
    font-family: "Pirata One", var(--serif);
    font-weight: 400;
    letter-spacing: 0.01em;
}
