@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-latin-variable.woff2') format('woff2'); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'ADLaM Display'; src: url('../fonts/adlam-display-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Livvic'; src: url('../fonts/livvic-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
    color-scheme: light;
    --page: #faf8fd; --surface: #ffffff; --ink: #2e0a4e; --muted: #746183; --outside: #786587;
    --line: #e6dcf1; --control-border: #b9a2ce; --field: #f7f3fc; --range: #d5b9e5;
    --endpoint: #522768; --on-endpoint: #ffffff; --lime: #b7ed47; --lime-hover: #a7df34;
    --focus: #713a96; --error: #9a2529; --error-bg: #fff0f0; --hover: #eee4f7; --selection: #e4d4ef;
    --radius: 18px; --font-body: 'Manrope', sans-serif; --font-brand: 'ADLaM Display', sans-serif; --font-total: 'Livvic', sans-serif;
    font-family: var(--font-body); font-size: 100%; line-height: 1.4; color: var(--ink); background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0 18px 20px; }
[hidden] { display: none !important; }
::selection { background: var(--selection); color: var(--ink); }
button, select, input { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
button { touch-action: manipulation; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
.site-header { min-height: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: 20px 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-family: var(--font-brand); font-size: 2.5625rem; line-height: 1.1; overflow-wrap: anywhere; }
.brand-mark { width: 54px; height: 50px; fill: currentColor; stroke: none; flex: 0 0 auto; }
h1 { border-left: 1px solid var(--control-border); padding-left: 32px; font-size: 2.375rem; font-weight: 400; line-height: 1.15; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.calendar-panel, .settings-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; min-height: 929px; }
.calendar-panel { padding: 16px; }
.month-navigation { display: grid; grid-template-columns: 58px minmax(0,1fr) 58px; gap: 16px; align-items: center; min-height: 100px; padding: 0 6px 0 16px; }
.month-navigation h2 { text-align: center; font-size: 2.8125rem; font-weight: 800; letter-spacing: -.035em; }
.month-arrow { border: 1px solid var(--line); width: 58px; height: 58px; border-radius: 50%; background: var(--field); display: grid; place-items: center; font-size: 1.5rem; }
.month-arrow:hover { background: var(--hover); }
button:disabled { opacity: .45; cursor: not-allowed; }
.weekdays, .week-row { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.weekdays { min-height: 50px; align-items: center; text-align: center; color: var(--muted); font-size: 1.3125rem; font-weight: 700; }
#calendar-days { border: 1px solid var(--line); border-radius: 16px; overflow: clip; }
.week-row + .week-row { border-top: 1px solid var(--line); }
.week-row > div { min-width: 0; display: flex; }
.week-row > div + div { border-left: 1px solid var(--line); }
.calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 132px; padding: 8px 2px; background: transparent; border: 0; border-radius: 0; font-size: 1.75rem; font-weight: 600; position: relative; }
.calendar-day:hover { background: var(--hover); }
.calendar-day:focus-visible { outline-offset: -4px; z-index: 1; }
.calendar-day.outside-month { color: var(--outside); }
.calendar-day.in-range { background: var(--range); color: var(--ink); }
.calendar-day.endpoint { background: var(--endpoint); color: var(--on-endpoint); border-radius: 18px; }
.calendar-day.endpoint:focus-visible { outline-color: var(--lime); }
.endpoint-label { font-size: 1rem; font-weight: 500; max-width: 100%; overflow-wrap: anywhere; }
.endpoint-short { display: none; }
.endpoint-dot { width: 12px; height: 12px; background: currentColor; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.calendar-day[aria-current=date] .day-number { text-decoration: underline; text-underline-offset: .25em; }
.settings-panel { padding: 20px 24px 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .time-fields label { font-size: 1.5rem; font-weight: 700; padding: 0; margin-bottom: 7px; display: block; }
.dog-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: clip; }
.dog-option { position: relative; min-width: 0; }
.dog-option + .dog-option { border-left: 1px solid var(--line); }
.dog-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dog-option span { display: grid; place-items: center; min-height: 56px; background: var(--field); font-size: 1.5rem; font-weight: 700; cursor: pointer; }
.dog-option input:checked + span { background: var(--lime); }
.dog-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -4px; }
.dog-option:hover span { background: var(--hover); }
.dog-option:hover input:checked + span { background: var(--lime-hover); }
.time-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 31px; }
.time-fields > div { min-width: 0; }
select { width: 100%; min-width: 0; min-height: 60px; height: auto; border: 1px solid var(--control-border); border-radius: 12px; background: var(--field); padding: .625rem 1rem; font-size: 1.5rem; font-weight: 600; }
.stay-details { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); border-block: 1px solid var(--line); margin-top: 22px; padding: 18px 0; gap: 20px; }
.stay-details > div { min-width: 0; }
.stay-details .dates-detail { border-left: 1px solid var(--line); padding-left: 24px; }
.detail-label { display: block; color: var(--muted); font-size: 1.1875rem; margin-bottom: 4px; }
#stay-summary { font-size: 1.875rem; font-weight: 800; }
.date-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: 1.25rem; font-weight: 600; min-height: 40px; }
.date-buttons button { border: 0; background: transparent; border-radius: 4px; padding: 2px 0; text-align: left; min-height: 40px; }
.date-buttons button:hover { color: var(--focus); text-decoration: underline; }
[aria-invalid=true] { outline: 2px solid var(--error); outline-offset: 2px; background: var(--error-bg); }
.total-section { padding-top: 18px; container-type: inline-size; }
.total-section h2 { font-size: 1.5rem; font-weight: 700; }
.total-amount { font-family: var(--font-total); font-size: clamp(1.5rem, 14cqi, 4.125rem); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cost-summary { background: var(--field); padding: 12px 22px; margin: 12px 0 0; border-radius: 14px; font-size: 1.25rem; }
.cost-summary > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 8px 0; }
.cost-summary dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.form-actions { display: grid; gap: 12px; margin-top: 22px; }
.form-actions button { width: 100%; min-height: 64px; border-radius: 20px; font-size: 1.5rem; font-weight: 700; }
.reset-button { background: var(--field); border: 1px solid var(--line); }
.reset-button:hover { background: var(--hover); }
#error { margin-top: 16px; padding: 12px; border-radius: 10px; background: var(--error-bg); color: var(--error); }
.calculator-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.calculator-notes details { min-width: 0; }
summary { cursor: pointer; min-height: 44px; align-content: center; font-size: 1.0625rem; color: var(--focus); }
.calculator-notes ul { padding-left: 18px; font-size: .875rem; line-height: 1.6; }
.calculator-notes li { margin-bottom: 8px; }
#nightly-breakdown { font-size: .8125rem; }
h3 { font-size: .9375rem; }
.cost-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cost-line span:first-child { flex: 1 1 10rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Reflow from text-relative constraints rather than squeezing controls. */
@media (max-width: 85rem) {
    .site-header { padding-inline: 20px; }
    .wordmark { font-size: 2rem; }
    h1 { font-size: 1.875rem; padding-left: 24px; }
    .calendar-layout { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
    .calendar-panel, .settings-panel { min-height: 0; }
    .calendar-panel { padding-bottom: 36px; }
    .month-navigation { padding-inline: 4px; }
    .month-navigation h2 { font-size: 2.25rem; }
    .calendar-day { min-height: 112px; }
    legend, .time-fields label { font-size: 1.25rem; }
    select { font-size: 1.25rem; padding-inline: 12px; }
    .stay-details { grid-template-columns: 1fr; gap: 12px; }
    .stay-details .dates-detail { border: 0; padding-left: 0; }
    .detail-label { font-size: 1rem; }
    #stay-summary { font-size: 1.5rem; }
    .cost-summary { font-size: 1rem; padding-inline: 16px; }
    .form-actions button { font-size: 1.25rem; min-height: 56px; border-radius: 14px; }
}
@media (max-width: 65rem) {
    .calendar-layout { grid-template-columns: 1fr; }
    .calendar-panel { padding-bottom: 16px; }
    .calendar-day { min-height: 90px; }
    .settings-panel { padding: 24px; }
    .stay-details { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); }
    .stay-details .dates-detail { border-left: 1px solid var(--line); padding-left: 24px; }
    .time-fields { grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); }
}
@media (max-width: 40rem) {
    body { padding: env(safe-area-inset-top) max(10px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); }
    .site-header { padding: 20px 8px; gap: 10px; }
    .wordmark { font-size: 1.5rem; gap: 10px; }
    .brand-mark { width: 34px; height: 34px; }
    h1 { flex-basis: 100%; border: 0; padding: 0; font-size: 1.125rem; }
    .calendar-layout { gap: 16px; }
    .calendar-panel { padding: 8px; border-radius: 14px; }
    .month-navigation { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; min-height: 76px; padding: 0; }
    .month-navigation h2 { font-size: 1.5rem; overflow-wrap: anywhere; }
    .month-arrow { width: 44px; height: 44px; font-size: 1.25rem; }
    .weekdays { font-size: .75rem; min-height: 36px; }
    .calendar-day { min-height: 64px; font-size: 1rem; gap: 2px; padding-block: 6px; }
    .calendar-day.endpoint { border-radius: 10px; }
    .endpoint-label { font-size: .625rem; }
    .endpoint-full { display: none; }
    .endpoint-short { display: inline; }
    .endpoint-dot { width: 6px; height: 6px; margin-top: 2px; }
    .settings-panel { padding: 20px; border-radius: 14px; }
    .dog-option span { font-size: 1.125rem; min-height: 48px; }
    .time-fields { margin-top: 24px; gap: 14px; }
    legend, .time-fields label { font-size: 1rem; }
    select { font-size: 1rem; min-height: 50px; height: auto; padding-inline: 8px; }
    .stay-details { grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: 12px; padding-block: 16px; }
    .stay-details .dates-detail { border: 0; padding: 0; }
    .date-buttons { font-size: .9375rem; }
    .date-buttons button { min-height: 44px; }
    .total-section h2 { font-size: 1.125rem; }
    .calculator-notes { grid-template-columns: repeat(auto-fit,minmax(min(100%,8rem),1fr)); }
    summary { font-size: .9375rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .calendar-day, .dog-option span { transition: background-color 120ms ease-out; }
}
@media print {
    body { padding: 0; }
    .calendar-layout { display: block; }
    .calendar-panel, .settings-panel { min-height: 0; break-inside: avoid; }
    .calendar-day { min-height: 54px; }
    .form-actions, .calculator-notes, .month-arrow { display: none; }
}
.weekday-short { display: none; }
@media (max-width: 40rem) {
    .weekday-full { display: none; }
    .weekday-short { display: inline; }
}
