:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #202b28;
    background: #f5f3ec;
    line-height: 1.55;
    --green: #174839;
    --line: #dadfd5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
h1, h2, h3 { font-family: Georgia, serif; line-height: 1.12; color: #173329; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 500; margin: 0 0 1rem; }
h2 { font-size: 1.8rem; margin: 0 0 1rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.25rem; }
small { color: #4f6058; }
.wrap { width: min(73rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header { background: #fcfbf7; border-bottom: 1px solid var(--line); }
.site-header nav, .nav-links, .actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.site-header nav { justify-content: space-between; min-height: 4.2rem; padding-block: .5rem; }
.brand { font: bold 1.35rem Georgia, serif; text-decoration: none; }
main { padding-block: clamp(1.6rem, 5vw, 4rem); }
.hero { max-width: 44rem; margin-bottom: 2rem; }
.hero p { font-size: 1.12rem; }
.booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.panel { background: #fffefa; border: 1px solid var(--line); border-radius: .75rem; padding: clamp(1rem, 3vw, 2rem); }
.narrow { max-width: 29rem; }
.narrow h1 { font-size: 2.6rem; }
.stack { display: grid; gap: .9rem; }
.stack button { justify-self: start; }
label { display: block; font-weight: 600; }
input:not([type=radio]), select { width: 100%; display: block; margin-top: .25rem; padding: .65rem; border: 1px solid #83978a; border-radius: .35rem; font: inherit; color: inherit; background: white; }
button { background: var(--green); color: white; border: 1px solid var(--green); border-radius: .4rem; padding: .55rem .85rem; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { filter: brightness(1.15); }
.secondary, .plain { color: var(--green); background: transparent; }
.plain { border-color: transparent; }
:focus-visible { outline: 3px solid #89601c; outline-offset: 3px; }
fieldset { border: 1px solid var(--line); border-radius: .35rem; min-width: 0; margin: 0; padding: .8rem; }
.time-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.time-options label { padding: .35rem .55rem; border: 1px solid var(--line); border-radius: .35rem; }
.time-options label:has(input:checked) { border-color: var(--green); background: #e1efe6; }
.month-calendar { max-width: 30rem; }
.calendar-instructions { margin-top: 1rem; }
.calendar-nav { display: grid; grid-template-columns: 2.5rem 1fr 2.5rem; align-items: center; text-align: center; margin-bottom: .65rem; }
.calendar-nav a { font-size: 1.6rem; line-height: 1.5; border: 1px solid var(--line); border-radius: .4rem; text-decoration: none; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; text-align: center; }
.calendar-weekday { font-size: .78rem; color: #4f6058; }
.calendar-day { display: grid; width: 100%; place-items: center; min-height: 2.4rem; padding: .15rem; border: 1px solid transparent; border-radius: .35rem; text-decoration: none; font-size: .9rem; }
.month-calendar .open { background: #e1efe6; color: #164836; }
.month-calendar .closed { background: #f8e4df; color: #8a2521; }
.month-calendar [aria-current="date"] { background: var(--green); color: white; }
.calendar-day[aria-pressed="true"] { border-color: var(--green); }
.calendar-legend { display: flex; gap: .55rem; flex-wrap: wrap; margin: .8rem 0; font-size: .8rem; }
.calendar-legend span { padding: .15rem .45rem; border-radius: .25rem; }
.booking-hero { max-width: none; text-align: center; }
.booking-wizard { overflow: hidden; padding: 0; }
.booking-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; margin: 0; list-style: none; background: var(--line); border-bottom: 1px solid var(--line); }
.booking-steps li { background: #fcfbf7; color: #4f6058; }
.booking-steps li[aria-current] { background: var(--green); color: white; }
.booking-steps a, .step-label { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .85rem .3rem; text-align: center; }
.booking-steps a:hover { background: #e1efe6; }
.booking-steps a span, .step-label span { font-variant-numeric: tabular-nums; font-weight: 700; }
.wizard-content { padding: clamp(1rem, 4vw, 2.5rem); }
.wizard-content h3 { margin: 0 0 .75rem; }
.service-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.service-cards li { display: flex; flex-direction: column; align-items: start; padding: 1.25rem; background: #eef3eb; border: 1px solid var(--line); border-radius: .6rem; }
.service-cards p { flex: 1; }
.button-link { display: inline-block; color: white; background: var(--green); border-radius: .4rem; padding: .55rem .85rem; font-weight: 600; text-decoration: none; }
.button-link:hover { filter: brightness(1.15); }
.details-form { max-width: 32rem; }
.details-form p { margin: 0; }
.time-options { margin-top: .5rem; }
.notice, .errors { padding: .75rem 1rem; border-radius: .4rem; margin: 0 0 1.2rem; background: #e1efe6; }
.errors { padding-left: 2rem; background: #f8e4df; color: #751d16; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.status { display: inline-block; background: #edf1eb; border-radius: 1rem; padding: .15rem .6rem; font-size: .85rem; }
.pending { background: #faedc8; }
.confirmed { background: #dcefe2; }
.declined { background: #f5e2dd; }
.pagination { margin-block: 1rem; }
.admin-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: 1.4rem; }
.admin-heading h1 { margin: 0; }
.admin-settings { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); align-items: start; gap: 1rem; }
.settings-nav { display: grid; gap: .3rem; background: #fffefa; border: 1px solid var(--line); border-radius: .75rem; padding: .45rem; }
.settings-nav a, .service-switcher a { padding: .6rem .8rem; border-radius: .4rem; font-weight: 600; text-decoration: none; }
.settings-nav a:hover, .service-switcher a:hover { background: #e1efe6; }
.settings-nav a[aria-current], .service-switcher a[aria-current] { background: var(--green); color: white; }
.admin-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); align-items: start; gap: .85rem; }
.admin-card { background: #f8f9f3; border: 1px solid var(--line); border-radius: .65rem; padding: 1rem; }
.admin-card h3 { margin: 0; }
.admin-card fieldset { padding: 0; border: 0; }
.admin-card legend { font-weight: 700; }
.schedule-status { color: #4f6058; margin: .15rem 0 .65rem; font-size: .85rem; }
.service-switcher { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.service-switcher a { background: #eef3eb; }
.calendar-instructions:last-child { margin-bottom: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
fieldset .actions { margin-top: .7rem; }
.records { padding: 0; list-style: none; }
.records li { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.pager { list-style: none; padding: 0; display: flex; gap: 1rem; }
@media (max-width: 48rem) {
    .booking-grid, .admin-settings { grid-template-columns: minmax(0, 1fr); }
    .settings-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
