/* Shared finish for the public website. Page content keeps its own layout. */
:is(body.fm-exported, body.fm-public) {
    --fm-sage: #e6eddf;
    --fm-blue: #e4edf0;
    --fm-ochre: #f4e2bc;
    --fm-readable: #655640;
}
/* Clip decorative overflow without creating a scroll container around the sticky header. */
body.fm-exported { overflow-x: clip; }
body.fm-exported .sc-host > div { background-image: none !important; overflow-x: clip !important; }
:is(body.fm-exported, body.fm-public) :is(h1, h2, h3) { text-wrap: balance; }
:is(body.fm-exported, body.fm-public) :is(button, input, select, textarea, a):focus-visible {
    /* Exported form controls carry inline outline:none. Keep keyboard focus visible. */
    outline: 3px solid #ad3524 !important;
    outline-offset: 4px;
}
:is(body.fm-exported, body.fm-public) :is(section[id], h2[id], details[id]) { scroll-margin-top: 110px; }
body.fm-exported header > nav { padding-block: 14px !important; }
body.fm-exported header > nav > a:first-child img { width: 42px !important; height: 42px !important; }
body.fm-exported .fm-responsive-nav-links { gap: clamp(14px, 1.5vw, 24px) !important; }
body.fm-exported .fm-responsive-nav-links > a,
body.fm-public .fm-nav-links > a { font-size: 14px; font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; }
body.fm-exported .fm-responsive-nav-links > a[aria-current="page"],
body.fm-public .fm-nav-links > a[aria-current="page"] {
    color: #ad3524 !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}
body.fm-exported .fm-responsive-nav-action,
body.fm-public a.fm-btn-brown { background: #2e4a36 !important; color: #fbf8f1 !important; }
body.fm-public a.fm-btn-primary { color: #fbf8f1; }
body.fm-public a.fm-btn-ghost { color: #fbf8f1; }
body.fm-public a.fm-btn-brown:hover,
body.fm-exported .fm-responsive-nav-action:hover { background: #203b29 !important; }
body.fm-exported footer p { color: #d8ded3 !important; }
body.fm-exported footer a { min-height: 32px; }
body.fm-public .fm-footer-main p,
body.fm-public .fm-footer-main a { color: #d8ded3; }
body.fm-public .fm-footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
body.fm-public .fm-page { min-height: 65vh; }
body.fm-public .fm-lede { color: #655640; }
body.fm-public .fm-guide-hero .fm-lede,
body.fm-public .fm-guide-section--green .fm-lede { color: #e5ebdf; }
body.fm-public .fm-skip-link {
    position: fixed; left: 12px; top: 12px; z-index: 10000; padding: 12px 18px;
    background: #2e4a36; color: #fff; border-radius: 8px; transform: translateY(-160%);
}
body.fm-public .fm-skip-link:focus { transform: none; }
body.fm-public .fm-cookie-notice { background: #23382a; box-shadow: 0 -3px 18px #23382a20; }
body.fm-public .fm-cookie-notice__inner button { background: #f4e2bc; color: #382213; border-radius: 999px; }

/* Booking: a calm introduction and clearly separated steps. */
.fm-book-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.fm-book-intro p { max-width: 600px; color: #655640 !important; }
.fm-book-intro .fm-book-note { flex: none; display: flex; gap: 12px; align-items: center; color: #2e4a36; font-size: 14px; }
.fm-book-note > span:first-child { display: grid; place-items: center; width: 48px; height: 48px; background: #e6eddf; border-radius: 50%; font-size: 24px; }
.fm-book-note strong { display: block; }
.fm-book-steps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; list-style: none; }
.fm-book-steps li { display: inline-flex; align-items: center; gap: 8px; color: #655640; font-size: 13px; font-weight: 650; }
.fm-book-steps li + li::before { content: '→'; margin-inline: 3px 8px; color: #88775e; }
.fm-book-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e6eddf; color: #2e4a36; font-size: 12px; }
.booking-dates, .booking-map, .booking-panel { box-shadow: 0 8px 30px #38221305; }
.booking-dates { border-top: 4px solid #2e4a36 !important; }
.booking-map { border-top: 4px solid #de9630 !important; }
.booking-panel { border-top: 4px solid #ad3524 !important; }
.booking-flow h2 { color: #2e4a36; }
.booking-flow label > span:first-child { color: #655640 !important; }
.booking-flow input:not([type="checkbox"]):not([type="radio"]), .booking-flow textarea { min-height: 48px; background: #fffdf8 !important; }
.booking-flow input[type="checkbox"], .booking-flow input[type="radio"] { accent-color: #2e4a36 !important; }
.booking-flow .booking-service-filter-card { min-height: 58px; }
.booking-flow details > summary { min-height: 36px; padding-block: 7px; }
.booking-step-title { display: flex; align-items: center; gap: 10px; }
.booking-step-title > span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; background: #e6eddf; color: #2e4a36; border-radius: 50%; font: 700 14px/1 system-ui; }

/* Rules and policies: topic navigation and readable, numbered sections. */
.fm-policy-hero, .fm-policy-content { max-width: 1060px !important; }
.fm-policy-hero { padding-top: 48px !important; }
.fm-policy-heading { display: flex; align-items: center; gap: 18px; }
.fm-policy-symbol { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: #e6eddf; color: #2e4a36; }
.fm-policy-symbol svg { width: 34px; height: 34px; }
.fm-policy-heading h1 { margin-top: 4px !important; }
.fm-policy-hero > p { color: #655640 !important; }
.fm-policy-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.fm-policy-jump a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; background: #fbf8f1; border: 1px solid #d9d6c9; border-radius: 999px; font-size: 13px; font-weight: 650; }
.fm-policy-jump a:hover { background: #e6eddf; border-color: #2e4a36; }
.fm-policy-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; counter-reset: policy; }
.fm-policy-card { counter-increment: policy; min-width: 0; padding: 25px !important; background: #fbf8f1; border: 1px solid #e1ddd2; border-radius: 18px; }
.fm-policy-card::before { content: counter(policy, decimal-leading-zero); display: block; width: fit-content; color: #2e4a36; background: #e6eddf; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.fm-policy-card:nth-child(3n + 2)::before { background: #e4edf0; color: #254954; }
.fm-policy-card:nth-child(3n)::before { background: #f4e2bc; color: #65410d; }
.fm-policy-card p { line-height: 1.7; }
.fm-policy-card h2 { color: #2e4a36; }
.fm-policy-grid--reading { grid-template-columns: minmax(0, 1fr); }
.fm-policy-grid--reading .fm-policy-card { padding: 26px 30px 26px 88px !important; position: relative; }
.fm-policy-grid--reading .fm-policy-card::before { position: absolute; top: 28px; left: 26px; }

/* Guest sign-in uses the same clear form styling as the main site. */
body.fm-public .fm-guest-welcome { display: grid; grid-template-columns: .9fr 1.1fr; max-width: 1000px; margin: 0 auto; border: 1px solid #e1ddd2; border-radius: 24px; overflow: hidden; background: #fffdf8; box-shadow: 0 18px 50px #38221307; }
.fm-guest-aside { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 42px); background: #2e4a36; color: #fbf8f1; }
.fm-guest-aside svg { width: 58px; height: 58px; color: #f4e2bc; margin-bottom: 24px; }
.fm-guest-aside h2 { color: #fbf8f1; font: 700 32px/1.1 'Bricolage Grotesque', system-ui; margin-bottom: 18px; }
.fm-guest-aside p { color: #d8e2d0; font-size: 15px; line-height: 1.65; margin: 0; }
.fm-guest-aside ul { list-style: none; padding: 0; margin: 25px 0 0; display: grid; gap: 14px; }
.fm-guest-aside li { display: flex; gap: 10px; font-size: 14px; }
.fm-guest-aside li::before { content: '✓'; color: #f4e2bc; font-weight: 800; }
body.fm-public .fm-guest-welcome .booking-form-card { box-shadow: none; border: 0; border-radius: 0; margin: 0; background: transparent; padding: clamp(24px, 4vw, 42px); }
body.fm-public .guest-portal-action { background: #2e4a36; color: #fffdf8; border-radius: 12px; text-transform: none; font-size: 16px; }
body.fm-public .guest-portal-action::before, body.fm-public .guest-portal-action::after { display: none; }
body.fm-public .guest-portal-action:hover { background: #203b29; }
body.fm-public .guest-portal-content .form-control { border: 1px solid #cfcdbf; border-radius: 10px; min-height: 48px; padding: 12px 14px; background: #fffdf8; color: #382213; }
body.fm-public .guest-portal-content .form-control:focus { border-color: #2e4a36; box-shadow: 0 0 0 3px #2e4a3618; }
body.fm-public .guest-portal-secondary-link { color: #2e4a36; text-decoration: underline; text-underline-offset: 3px; }

/* The guide opens with useful facts; detailed policies remain available below. */
.fm-guide-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.fm-guide-quick > div { border: 1px solid #ffffff30; border-radius: 15px; padding: 18px; background: #ffffff09; }
.fm-guide-quick span { display: block; color: #d8e2d0; font-size: 12px; margin-bottom: 7px; }
.fm-guide-quick strong { color: #fffdf8; font: 700 22px/1.15 'Bricolage Grotesque', system-ui; }
.fm-guide-downloads { padding: 18px 22px; border: 1px solid #d9d6c9; border-radius: 16px; }
.fm-guide-downloads summary { cursor: pointer; font-weight: 700; min-height: 28px; }
.fm-guide-downloads .fm-guide-machine__links { margin-top: 18px; }
.fm-guide .fm-guide-card h3 { display: flex; align-items: center; gap: 10px; }
.fm-guide .fm-guide-card h3::before { content: ''; width: 9px; height: 9px; flex: none; border-radius: 3px; background: #de9630; }
.fm-guide .fm-guide-card-grid > :nth-child(2) { background: #e6eddf; }
.fm-guide .fm-guide-card-grid > :nth-child(3) { background: #e4edf0; }
.fm-guide .fm-guide-site-card { border-top: 3px solid #2e4a36; }
.fm-guide .fm-guide-hero__inner { padding-block: clamp(36px, 5vw, 60px); }

@media (max-width: 1120px) {
    body.fm-exported .fm-responsive-nav-links > a { padding: 10px 14px !important; border-radius: 9px; background: #fffdf7; }
    body.fm-exported .fm-responsive-nav-links > a[aria-current="page"] { background: #e6eddf; text-decoration: none; color: #2e4a36 !important; }
}
@media (max-width: 760px) {
    .fm-book-intro { align-items: flex-start; flex-direction: column; gap: 16px; }
    .fm-book-intro .fm-book-note { display: none; }
    .fm-book-steps { gap: 6px 9px; }
    .fm-book-steps li { font-size: 12px; }
    .fm-book-steps li + li::before { display: none; }
    .fm-policy-hero { padding-top: 28px !important; }
    .fm-policy-heading { gap: 13px; }
    .fm-policy-symbol { width: 52px; height: 52px; border-radius: 16px; }
    .fm-policy-symbol svg { width: 28px; height: 28px; }
    .fm-policy-grid { grid-template-columns: minmax(0, 1fr); }
    .fm-policy-card, .fm-policy-grid--reading .fm-policy-card { padding: 22px !important; }
    .fm-policy-grid--reading .fm-policy-card::before { position: static; }
    .fm-policy-jump { gap: 7px; }
    .fm-policy-jump a { padding: 8px 12px; font-size: 12px; }
    body.fm-public .fm-guest-welcome { grid-template-columns: minmax(0, 1fr); }
    .fm-guest-aside { padding: 24px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 16px; }
    .fm-guest-aside svg { width: 38px; height: 38px; margin: 0; }
    .fm-guest-aside h2 { font-size: 24px; margin: 0; }
    .fm-guest-aside h2 br, .fm-guest-aside p, .fm-guest-aside ul { display: none; }
    .fm-guide-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fm-guide-quick > div { padding: 14px; }
    .fm-guide-quick strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    :is(body.fm-exported, body.fm-public) { scroll-behavior: auto; }
    :is(body.fm-exported, body.fm-public) *,
    :is(body.fm-exported, body.fm-public) *::before,
    :is(body.fm-exported, body.fm-public) *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
