/* Villa Selvaria: SAMPLE site by Godelic. Fictional business.
   Palette: Shell #FAF6F0 · Night Sea #13293D · Pine Teal #136F63 · Apricot #F4A672 (decoration; Night Sea text only) · Stone #ECE6DA · Driftwood #5A6B78
   Fonts: Fraunces (headings) + Figtree (body), self-hosted, OFL */
@font-face { font-family: "Fraunces"; src: url("../../assets/fonts/fraunces-var.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../../assets/fonts/figtree-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
:root {
  --bg: #FAF6F0; --fg: #13293D; --pri: #136F63; --pri-fg: #FFFFFF; --link: #136F63; --focus: #136F63;
  --panel: #ECE6DA; --line: #D9D1C0; --muted: #4F606D;
  --foot-bg: #13293D; --foot-fg: #FAF6F0; --foot-muted: #C9D1D8; --foot-focus: #F4A672;
  --f-head: "Fraunces", Georgia, serif; --f-body: "Figtree", system-ui, sans-serif;
  --r-btn: 999px; --r-card: 12px; --r-sim: 16px; --fs-body: 17px;
  --s-bg: #FFFFFF; --s-frame: #FFFFFF; --s-fg: #13293D; --s-acc: #136F63; --s-acc-fg: #FFFFFF; --s-line: #ECE6DA; --s-line-strong: #5A6B78; --s-soft: #4F606D; --s-pill-bg: #13293D; --s-pill-fg: #FFFFFF; --s-radius: 999px;
}
/* ---- Godelic demo kit (shared by the four newer samples): ribbon, footer note, mobile bar, sim frame. Colours come from the :root variables of each demo. ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 40px 0 76px; overflow-x: hidden; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: var(--fs-body, 17px); line-height: 1.6; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; }
a { color: var(--link, var(--pri)); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus, var(--pri)); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tiny { font-size: 14px; line-height: 1.45; margin: 10px 0 0; color: var(--muted); max-width: 34em; }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: block; }
html:not(.js) .sim { display: none; }
.js-only { display: none; }
.js .js-only { display: block; }

/* Ribbon, skip link (identical on every sample) */
.gd-ribbon { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 40px; display: flex; align-items: center; justify-content: center; background: #0A0714; color: #EEEAFB; border-bottom: 1px solid #2E2450; box-shadow: 0 1px 12px rgba(112, 48, 240, .35); font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.gd-ribbon a { display: inline-flex; align-items: center; min-height: 44px; color: #EEEAFB; padding: 12px 12px; text-decoration: underline; text-decoration-color: #9B6BFF; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gd-ribbon a:hover { color: #C9B8FF; }
.gd-ribbon a:focus-visible { outline: 3px solid #C9B8FF; outline-offset: -3px; }
.gd-ribbon picture { display: block; flex: none; margin-right: 8px; }
.gd-ribbon .gd-mark { display: block; width: auto; height: 20px; max-width: none; }
@media (max-width: 380px) { .gd-ribbon { font-size: 13px; } .gd-ribbon a { padding: 8px 6px; } .gd-ribbon .gd-mark { height: 16px; } }
.gd-skip { position: absolute; left: 12px; top: -80px; z-index: 1100; background: #0A0714; color: #EEEAFB; padding: 10px 14px; border-radius: 8px; font: 600 15px system-ui, sans-serif; }
.gd-skip:focus { top: 48px; outline: 3px solid #C9B8FF; outline-offset: 2px; }
.gd-skip2 { left: 172px; }

/* Footer brand */
.brand { font-family: var(--f-head); color: var(--fg); text-decoration: none; font-size: 22px; font-weight: 700; line-height: 1.1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 12px 24px; border-radius: var(--r-btn, 12px); border: 2px solid var(--pri); background: var(--pri); color: var(--pri-fg); font: 700 17px/1.2 var(--f-btn, var(--f-body)); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn-alt { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .btn-row .btn { flex: 0 0 auto; } }
.link-ig { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }

/* Tags and map placeholder */
.map-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; padding: 16px; border-radius: var(--r-card, 14px); background: var(--panel); border: 1px dashed var(--muted); color: var(--fg); text-align: center; font-weight: 600; }
.map-ph svg { width: 40px; height: 40px; }

/* Footer, disclaimer, credits */
.foot { background: var(--foot-bg); color: var(--foot-fg); padding: 40px 0 32px; }
.foot .brand { color: var(--foot-fg); font-size: 26px; display: block; margin: 0 0 6px; }
.foot a { color: var(--foot-fg); }
.foot :focus-visible { outline-color: var(--foot-focus, #fff); }
.gd-credits { margin: 12px 0 0; font-size: 14px; }
.gd-credits a { display: inline-block; padding: 12px 0; min-height: 44px; box-sizing: border-box; }
.gd-sample-note { border-top: 1px dashed currentColor; margin-top: 26px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.gd-sample-note p { margin: 0; }
.gd-disclaimer { flex: 1 1 100%; max-width: 46em; font-size: 13px; line-height: 1.5; color: var(--foot-muted); }
.gd-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border-radius: 999px; background: #6D3FE0; color: #FFFFFF !important; font: 600 15px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none; border: 1.5px solid #6D3FE0; box-shadow: 0 0 18px rgba(112, 48, 240, .4); }
.gd-cta:hover { background: #5A2FC8; border-color: #5A2FC8; }
.gd-cta:focus-visible { outline: 3px solid #C9B8FF; outline-offset: 3px; }
.own-photos { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

/* Mobile action bar */
.m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.m-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; border: 2px solid var(--fg); color: var(--fg); text-decoration: none; font-weight: 700; font-size: 15px; text-align: center; line-height: 1.15; padding: 4px 6px; }
.m-bar a.go { background: var(--pri); border-color: var(--pri); color: var(--pri-fg); }
@media (min-width: 768px) { .m-bar { display: none; } body { padding-bottom: 0; } }

/* Reveal + lightbox */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.lb { display: block; position: relative; overflow: hidden; border-radius: inherit; height: 100%; }
.lb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lb:hover img { transform: scale(1.04); }
.lbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; color: #fff; }
.lbox::backdrop { background: rgba(8, 6, 12, .9); }
.lbox figure { margin: 0; }
.lbox img { display: block; max-width: min(90vw, 1100px); max-height: 78vh; width: auto; height: auto; border-radius: 10px; }
.lbox figcaption { text-align: center; font: 600 14px/1.4 system-ui, sans-serif; padding: 10px 0 0; }
.lb-close, .lb-nav { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.6); color: #fff; font: 400 30px/1 system-ui, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.lb-close { top: 52px; right: 12px; }
.lb-nav { top: 50%; margin-top: -24px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Simulation frame */
.sim { position: relative; background: var(--s-frame, #fff); color: var(--s-fg); border: 2px solid var(--s-line-strong); border-radius: var(--r-sim, 20px); padding: 10px; font-size: 16px; line-height: 1.45; text-align: left; box-shadow: 0 18px 44px rgba(0, 0, 0, .14); }
.sim-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 4px 6px 10px; }
.sim-pill { margin: 0; background: var(--s-pill-bg); color: var(--s-pill-fg); font: 700 12px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; text-align: center; }
.sim-addon { margin: 0; font: 600 12px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--s-soft); border: 1.5px solid var(--s-soft); border-radius: 999px; padding: 4px 10px; text-align: center; }
.sim-screen { background: var(--s-bg); border-radius: calc(var(--r-sim, 20px) - 6px); padding: 18px 14px 20px; }
.sim-screen h3 { font-size: 22px; margin: 0 0 12px; }
.sim-screen h3:focus { outline: none; }
.sim-screen h3:focus-visible { outline: 2px dashed var(--s-acc); outline-offset: 4px; }
.sim-screen p { margin: 0 0 10px; }
.sim :focus-visible { outline: 3px solid var(--s-focus, var(--s-acc)); outline-offset: 2px; }
.sim-step { font-size: 14px; color: var(--s-soft); margin: 0 0 6px !important; font-weight: 600; }
.sim-btn { display: flex; width: 100%; align-items: center; justify-content: center; text-align: center; min-height: 48px; margin: 12px 0 0; padding: 10px 16px; border-radius: var(--s-radius, 12px); border: 2px solid var(--s-acc); background: var(--s-acc); color: var(--s-acc-fg); font-weight: 700; font-size: 16px; line-height: 1.2; font-family: inherit; cursor: pointer; }
.sim-btn:hover { filter: brightness(1.07); }
.sim-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.sim-link { display: block; margin: 10px auto 0; min-height: 48px; padding: 8px 12px; background: none; border: 0; color: var(--s-fg); font-weight: 600; font-size: 15px; font-family: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sim-cta { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; margin: 14px 0 0; padding: 10px 14px; border-radius: 999px; background: #6D3FE0; color: #fff; font: 700 15px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none; }
.sim-cta:hover { background: #5A2FC8; }
.sim-disclaimer { font-size: 14px; color: var(--s-soft); border-top: 1px dashed var(--s-line-strong); padding-top: 10px; margin-top: 14px !important; }
.sim-label { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 6px; }
.sim-input, .sim-select { width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--s-fg); background: #fff; border: 2px solid var(--s-line-strong); border-radius: 10px; padding: 8px 12px; }
.sim-hint { font-size: 14px; color: var(--s-soft); margin-top: 4px !important; }
.sim-note { border: 2px solid var(--s-line-strong); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0 !important; font-weight: 600; }
.sim-total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 17px; border-top: 2px solid var(--s-line); padding-top: 10px; margin-top: 12px !important; }
.sim-total strong { font-size: 22px; }
.sim-choices { display: grid; gap: 8px; margin: 0 0 4px; padding: 0; border: 0; }
.sim-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; border: 2px solid var(--s-line-strong); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; }
.sim-choice input { width: 22px; height: 22px; flex: none; accent-color: var(--s-acc); }
.sim-choice:has(input:checked) { border-color: var(--s-acc); background: var(--s-line); box-shadow: inset 0 0 0 1px var(--s-acc); }
.sim-choice small { display: block; font-weight: 400; color: var(--s-soft); font-size: 14px; }
.sim-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 6px 0 12px; }
.sim-seg button { min-height: 48px; padding: 6px 10px; border: 2px solid var(--s-line-strong); background: #fff; color: var(--s-fg); border-radius: 10px; font-weight: 700; font-size: 15px; line-height: 1.2; font-family: inherit; cursor: pointer; }
.sim-seg button[aria-pressed="true"] { background: var(--s-acc); border-color: var(--s-acc); color: var(--s-acc-fg); }
.sim-stepper { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.sim-stepper button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--s-line-strong); background: #fff; color: var(--s-fg); font: 700 22px/1 system-ui, sans-serif; cursor: pointer; }
.sim-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.sim-stepper output { min-width: 2ch; text-align: center; font-weight: 700; font-size: 20px; }
.sim-lines { list-style: none; margin: 0 0 4px; padding: 0; }
.sim-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--s-line); font-size: 15px; }
.sim-lines li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sim-ticket { margin: 10px 0; padding: 12px 14px; border: 2px dashed var(--s-line-strong); border-radius: 12px; background: #fff; }
.sim-ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 15px; }
.sim-ticket dt { color: var(--s-soft); font-weight: 600; }
.sim-ticket dd { margin: 0; font-weight: 700; }
.sim-err { color: var(--s-err, #9B1C1C); font-weight: 700; margin: 8px 0 0 !important; font-size: 15px; }
.sim-err:empty { display: none; }
.sim-day { position: relative; min-height: 44px; padding: 0; border-radius: 8px; border: 2px solid transparent; background: #fff; color: var(--s-fg); font-weight: 600; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; }
.sim-day:disabled, .sim-slot:disabled { cursor: not-allowed; color: var(--s-soft); text-decoration: line-through; background: repeating-linear-gradient(45deg, transparent 0 4px, var(--s-line) 4px 6px); }
.sim-day[aria-pressed="true"], .sim-slot[aria-pressed="true"] { background: var(--s-acc); color: var(--s-acc-fg); border-color: var(--s-acc); text-decoration: none; }
.sim-day.in-range { background: var(--s-line); }
.sim-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--s-soft); margin: 0 0 8px; padding: 0; list-style: none; }
.sim-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--s-line-strong); vertical-align: -2px; margin-right: 5px; background: #fff; }
.sim-legend i.k-taken { background: repeating-linear-gradient(45deg, transparent 0 3px, var(--s-line-strong) 3px 4px); }
.sim-legend i.k-sel { background: var(--s-acc); border-color: var(--s-acc); }
@media (min-width: 640px) { .sim-screen { padding: 22px 22px 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } *, *::before, *::after { animation: none !important; transition: none !important; } .js .rv { opacity: 1; transform: none; } }


/* ---- Villa Selvaria v2: a travel-magazine feature about one house ---- */
:root { --sky: 0; --gold: #F4A672; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 7vw, 56px); margin-bottom: 14px; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.btn { font-family: var(--f-body); }
.btn-s { min-height: 48px; padding: 8px 18px; font-size: 15px; }

/* Sky in the margin (decoration only, never under text) */
.sky { position: fixed; left: 0; top: 40px; bottom: 0; width: 8px; z-index: 5; pointer-events: none; overflow: hidden; background: linear-gradient(#BFE0F2, #F8E7C6); }
.sky::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#4F5489, #E8836B 60%, #F4A672); opacity: var(--sky); }
.sky i { position: absolute; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #F4A672; top: calc(var(--sky) * (100% - 8px)); box-shadow: 0 0 10px 3px rgba(244, 166, 114, .7); }
@media (min-width: 1300px) { .sky { width: 56px; } .sky i { left: 14px; width: 28px; height: 28px; top: calc(var(--sky) * (100% - 28px)); } }


/* Running head: always-on masthead strip with folio numbers (multi-page) */
html { scroll-padding-top: 132px; }
.run { position: sticky; top: 40px; z-index: 60; background: rgba(250, 246, 240, .98); border-bottom: 1px solid var(--line); }
.run-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; flex-wrap: wrap; }
.mini { display: inline-flex; align-items: center; min-height: 44px; font: 600 21px/1 var(--f-head); letter-spacing: .04em; text-transform: uppercase; color: var(--fg); text-decoration: none; }
.folio { min-height: 44px; padding: 6px 16px; border: 2px solid var(--fg); border-radius: 999px; background: #fff; color: var(--fg); font: 700 14px/1.15 var(--f-body); cursor: pointer; }
.folio::after { content: " ▾"; }
.folio[aria-expanded="true"]::after { content: " ▴"; }
html:not(.js) .folio { display: none; }
.contents { flex: 1 1 100%; padding-bottom: 8px; }
.js .contents { display: none; position: absolute; right: 20px; top: 100%; flex: none; width: min(330px, calc(100vw - 40px)); margin-top: 6px; background: #fff; border: 2px solid var(--fg); border-radius: 14px; padding: 6px; box-shadow: 0 14px 34px rgba(19, 41, 61, .22); }
.js .contents.open { display: block; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents a { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 600; line-height: 1.25; }
.contents a b { flex: none; min-width: 3em; color: #0E5A50; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.contents a:hover { background: var(--panel); }
.contents a[aria-current="page"] { background: var(--panel); box-shadow: inset 4px 0 0 var(--gold); }
.contents .nav-cta a { margin-top: 4px; background: var(--pri); color: #fff; justify-content: center; border-radius: 999px; }
.contents .nav-cta a b { display: none; }
.contents .nav-cta a[aria-current="page"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pri); background: var(--pri); }
.demo-row { text-align: center; padding: 0 20px 7px; }
.demo-row .sim-pill { display: inline-block; }
@media (min-width: 1000px) {
  .folio { display: none; }
  .contents, .js .contents { display: block; position: static; flex: 0 1 auto; width: auto; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .contents ol { display: flex; align-items: center; gap: 2px; }
  .contents a { flex-direction: column; align-items: flex-start; gap: 0; min-height: 52px; padding: 6px 10px; justify-content: center; font-size: 15px; }
  .contents a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--gold); border-radius: 8px 8px 0 0; }
  .contents .nav-cta { margin-left: 8px; }
  .contents .nav-cta a { margin: 0; min-height: 46px; padding: 6px 20px; }
  .contents .nav-cta a[aria-current="page"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pri); border-radius: 999px; }
}

/* Inner page head */
.phead { padding: 44px 0 8px; }
.phead h1 { font-size: clamp(40px, 9.5vw, 84px); letter-spacing: -.015em; margin: 0 0 16px; }
.phead .standfirst { max-width: 36em; }
.sec { padding: 40px 0 24px; }
.sec h2 { font-size: clamp(28px, 5.6vw, 44px); }
.sec-stone { background: var(--panel); padding: 48px 0 40px; margin-top: 24px; }
.lead { font-size: 19px; max-width: 38em; }
.cols2 { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 800px) { .cols2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* Home */
.intro { padding: 56px 0 8px; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--fg); border-bottom: 1px solid var(--fg); }
.facts li { padding: 14px 8px; border-bottom: 1px dotted #8D8A80; }
.facts b { display: block; font: 600 30px/1.1 var(--f-head); color: var(--pri); }
.facts span { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); } .facts li { border-bottom: 0; border-left: 1px solid #8D8A80; padding-left: 16px; } .facts li:first-child { border-left: 0; padding-left: 8px; } }
.tiles { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.tile:hover { border-color: var(--fg); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-b { padding: 14px 16px 18px; }
.tile-b .pg { display: block; font: 700 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #0E5A50; margin-bottom: 6px; }
.tile-b h3 { margin: 0 0 6px; }
.tile-b p { margin: 0; font-size: 15px; }
.tile-b .more { display: inline-block; margin-top: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cta-band { margin-top: 48px; padding: 32px 22px; background: var(--fg); color: #fff; display: grid; gap: 18px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(26px, 5vw, 38px); }
.cta-band p { margin: 0; color: #DCE3E9; }
.cta-band .btn { background: var(--gold); border-color: var(--gold); color: #13293D; }
.cta-band .btn-alt { background: transparent; color: #fff; border-color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1.4fr 1fr; padding: 40px 44px; } }
.mini-rates { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
@media (min-width: 640px) { .mini-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* House */
.rooms { margin: 20px 0 0; display: grid; gap: 0; }
.rooms > div { display: grid; gap: 4px 20px; padding: 14px 0; border-bottom: 1px dotted #8D8A80; }
.rooms dt { font: 600 20px/1.2 var(--f-head); }
.rooms dd { margin: 0; }
.room-img { display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 12px; }
@media (min-width: 640px) { .rooms > div { grid-template-columns: 190px 1fr; } }
.amen-groups { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
@media (min-width: 700px) { .amen-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .amen-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.amen-groups .sidebar { margin: 0; }
.gal { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .gal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gal .lb { height: auto; border-radius: 0; }
.gal img { aspect-ratio: 4 / 5; object-fit: cover; }
.gal figure { margin: 0; }
.gal figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); font-style: italic; }

/* Availability */
.rate-table { width: 100%; border-collapse: collapse; margin-top: 18px; background: #fff; font-variant-numeric: tabular-nums; }
.rate-table caption { text-align: left; font: 600 22px/1.2 var(--f-head); padding-bottom: 8px; }
.rate-table th, .rate-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rate-table thead th { background: var(--fg); color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.rate-table tbody th { font-weight: 700; }
.table-wrap { overflow-x: auto; }
.rate-table .num { white-space: nowrap; font-weight: 700; }
.extras { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 700px) { .extras { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.extras .rate { padding: 18px; }
.extras .rate p { margin: 0; }
.extras .rate b { display: block; font: 600 22px/1.2 var(--f-body); margin-bottom: 4px; }
.sim-addon a { color: var(--link); }

/* Area */
.places { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
@media (min-width: 760px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.place { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--pri); padding: 18px 20px; }
.place h3 { margin-bottom: 4px; }
.place .when { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: #D5E6E2; font-size: 14px; font-weight: 700; }
.place p:last-child { margin-bottom: 0; }
.map-ph.wide { min-height: 260px; }

/* Winter */
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px dotted #8D8A80; }
.checklist li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: translateY(1px); }
.day { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.day li { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 12px 14px; background: #fff; border-left: 4px solid var(--gold); }
.day b { font: 600 18px/1.2 var(--f-head); }
.calc .btn { width: 100%; }

/* FAQ */
.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; padding: 12px 18px; font: 600 19px/1.25 var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--fg); display: flex; align-items: center; justify-content: center; font: 700 20px/1 system-ui, sans-serif; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--fg); }
.faq .ans { padding: 0 18px 8px; }
.faq .ans p:last-child { margin-bottom: 8px; }
.rules-big { font-size: 17px; }

/* Enquire form */
.form-card { background: #fff; border: 2px solid var(--fg); border-radius: 16px; padding: 20px 18px; }
html:not(.js) .form-card { display: none; }
.f-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .f-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--fg); background: #fff; border: 2px solid #5A6B78; border-radius: 10px; padding: 8px 12px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.field .hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.field .err { color: #9B1C1C; font-weight: 700; font-size: 15px; margin: 6px 0 0; }
.field .err:empty { display: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #9B1C1C; }
.done h2:focus { outline: none; }
.done[hidden], .form-card form[hidden] { display: none; }
.side-box { padding: 20px 22px; background: var(--panel); border-top: 6px solid var(--pri); }
.side-box h2, .side-box h3 { margin-bottom: 10px; }
.side-box ul { margin: 0 0 12px; padding-left: 20px; }
.side-box .btn { width: 100%; margin-top: 8px; }

/* Site footer */
.foot-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; } }
.foot h2 { font: 700 13px/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--foot-muted); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-block; padding: 10px 0; min-height: 44px; box-sizing: border-box; }
.foot p { margin: 0 0 8px; }
.foot-dl { margin: 0; display: grid; gap: 6px; }
.foot-dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted #5A6B78; padding-bottom: 6px; }
.foot-dl dt { color: var(--foot-muted); }
.foot-dl dd { margin: 0; font-weight: 600; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--foot-fg); border-radius: 50%; }
.social svg { width: 22px; height: 22px; }
.foot .btn { background: transparent; color: var(--foot-fg); border-color: var(--foot-fg); min-height: 48px; padding: 8px 18px; font-size: 15px; margin: 0 8px 8px 0; }
.foot .gd-credits a { color: var(--foot-fg); }
.m-bar button { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; border: 2px solid var(--fg); background: transparent; color: var(--fg); font: 700 15px/1.15 var(--f-body); }
.toast-host { position: fixed; left: 16px; right: 16px; bottom: 90px; z-index: 1100; pointer-events: none; display: flex; justify-content: center; }
.toast-host .sim-toast { max-width: 420px; margin: 0; padding: 12px 16px; border-radius: 12px; background: #fff; color: #111; border: 2px solid var(--fg); font: 600 15px/1.35 system-ui, sans-serif; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.35); opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast-host .sim-toast.show { opacity: 1; transform: none; }
@media (min-width: 768px) { .toast-host { bottom: 28px; } }

/* 404 */
.nf { padding: 72px 0 80px; text-align: center; }
.nf .big { font: 600 clamp(96px, 28vw, 220px)/.9 var(--f-head); color: var(--pri); margin: 0 0 8px; }
.nf .btn-row { justify-content: center; margin-top: 22px; }

/* Cover: full-bleed photo, one refined title, light caption links (no boxes) */
.cover { padding: 0; }
.cover-photo { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: clamp(520px, calc(100svh - 250px), 820px); background: #13293D; color: #fff; }
.cover-photo picture, .cover-photo picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-photo img { animation: drift 30s ease-in-out infinite alternate; transform-origin: 60% 70%; }
.cover.is-off .cover-photo img { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.2%, -1%); } }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 30, 46, .78) 0%, rgba(14, 30, 46, .42) 38%, rgba(14, 30, 46, .08) 68%, rgba(14, 30, 46, 0) 100%); }
.cover-in { position: relative; padding-top: 40px; padding-bottom: 22px; }
.issue { margin: 0 0 10px; font: 700 12px/1.3 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.mast { margin: 0 0 8px; font: 500 clamp(44px, 11vw, 104px)/1 var(--f-head); letter-spacing: .01em; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .4); }
.facts-line { margin: 0 0 18px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.cl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cl a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .5); color: #fff; text-decoration: none; font: 500 16px/1.25 var(--f-head); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.cl a:hover { border-top-color: var(--gold); }
.cl a:hover .pg { text-decoration: underline; }
.cl .pg { font: 700 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #FFD9BE; }
.cover-cta { display: none; margin-top: 14px; background: #fff; color: #13293D; border-color: #fff; }
.cover-photo :focus-visible { outline-color: #fff; }
.js.on-cover .mini-home { visibility: hidden; }
@media (min-width: 900px) {
  .cover-photo { min-height: clamp(520px, calc(100svh - 150px), 820px); }
  .cover-in { padding-top: 60px; padding-bottom: 40px; }
  .cl { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; max-width: 900px; }
  .cl a { font-size: 18px; }
  .cover-cta { display: inline-flex; }
  .facts-line { font-size: 17px; }
}

/* Magazine pages */
.pgsec { padding: 72px 0 48px; scroll-margin-top: 96px; }
.pgsec-stone { background: var(--panel); }
.pg-head { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 700 13px/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #0E5A50; }
.pg-head::after { content: ""; flex: 1; height: 1px; background: #8D8A80; }
.standfirst { max-width: 33em; margin: 0 0 8px; font: 500 clamp(19px, 3.2vw, 23px)/1.5 var(--f-head); }
.standfirst::first-letter { float: left; margin: .06em .1em 0 0; font-size: 3.1em; line-height: .82; font-weight: 600; color: var(--pri); }
.pull { margin: 40px 0; padding: 14px 0 14px 20px; border-left: 4px solid var(--gold); max-width: 22em; }
.pull p { margin: 0; font: 500 clamp(24px, 4.6vw, 38px)/1.2 var(--f-head); }
.fig { margin: 0 0 24px; }
.fig .lb { display: block; border-radius: 0; height: auto; }
.fig img { width: 100%; height: auto; }
.fig figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); font-style: italic; }
.pgsec-stone .fig figcaption { color: #4F606D; }
.pair { display: grid; gap: 0 24px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 8px; }
@media (min-width: 640px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fig-wide { margin-top: 36px; }
.own-photos { margin: 14px 0 0; font-size: 15px; color: #4F606D; }

/* p.2 walk-through */
.walks { display: grid; gap: 52px; margin-top: 40px; grid-template-columns: minmax(0, 1fr); }
.walk { position: relative; }
.walk h3 { margin-bottom: 10px; }
.walk-photo { position: relative; }
.walk-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.dot { position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border-radius: 50%; border: 2px solid #13293D; background: var(--gold); color: #13293D; font: 700 17px/1 var(--f-body); cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0, 0, 0, .4); }
.dot:hover { background: #fff; }
.dot[aria-pressed="true"] { background: #13293D; color: #fff; border-color: var(--gold); }
.dot:focus-visible { outline: 3px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 3px #13293D; }
.rv.in .dot { animation: dotpulse 1.4s ease-out .5s 1; }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(244, 166, 114, .95); } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 20px rgba(244, 166, 114, 0); } }
.spots { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.spots img { width: 180px; margin-top: 8px; aspect-ratio: 4 / 3; object-fit: cover; }
.js .spots { display: none; }
.spot-card { position: relative; margin-top: 12px; padding: 14px 16px; background: #fff; border: 2px solid var(--fg); border-radius: 14px; box-shadow: 0 10px 28px rgba(19, 41, 61, .16); }
.spot-card[hidden] { display: none; }
.spot-card p { margin: 0 0 12px; }
.spot-card img { width: 160px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 12px; border-radius: 6px; }
.spot-row { display: flex; flex-wrap: wrap; gap: 10px; }
.spot-card.pop { animation: pop .3s ease-out both; transform-origin: var(--ox, 50%) var(--oy, 0); }
@keyframes pop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@media (min-width: 800px) {
  .spot-card { position: absolute; top: 62px; width: 310px; margin: 0; }
  .spot-card.side-l { left: 16px; } .spot-card.side-r { right: 16px; }
  .spot-card img { width: 120px; float: right; margin: 0 0 8px 12px; }
}
.spread { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; align-items: start; }
@media (min-width: 900px) { .spread { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } .sidebar { position: sticky; top: 112px; } }
.spread-main .fig { max-width: 520px; }
.sidebar { margin-top: 40px; padding: 24px 22px; background: var(--panel); border-top: 6px solid var(--pri); }
.sidebar h3 { margin-bottom: 14px; }
.amen { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.amen li { display: flex; gap: 10px; align-items: baseline; font-weight: 500; padding-bottom: 8px; border-bottom: 1px dotted #8D8A80; }
.amen li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: translateY(1px); }

/* p.4 season strip and booking */
.strip-box { margin-top: 36px; }
.strip { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.mo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 66px; padding: 4px; border: 2px solid var(--fg); border-radius: 10px; font-family: var(--f-body); color: var(--fg); background: #fff; cursor: pointer; }
.mo b { font: 600 18px/1 var(--f-head); }
.mo span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mo[data-kind="short"] { background: var(--pri); border-color: var(--pri); color: #fff; }
.mo[data-kind="long"] { background: #D5E6E2; border-color: var(--pri); }
.mo[data-kind="ask"] { background: transparent; border-style: dashed; color: #3C4C58; }
.mo:hover { transform: translateY(-2px); }
.mo[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--fg); }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.legend i { display: inline-block; width: 18px; height: 14px; margin-right: 8px; border-radius: 4px; border: 2px solid var(--pri); vertical-align: -2px; }
.lg-short { background: var(--pri); } .lg-long { background: #D5E6E2; } .lg-ask { background: transparent; border: 2px dashed var(--fg) !important; }
.strip-msg { margin-top: 16px; padding: 14px 16px; border: 2px dashed var(--fg); border-radius: 12px; background: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.strip-msg[hidden] { display: none; }
.strip-msg p { margin: 0; font-weight: 600; }
.js-only { margin-top: 16px; }
.drawer { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s ease, visibility .45s; }
.drawer.open { grid-template-rows: 1fr; visibility: visible; }
.drawer-in { min-height: 0; overflow: hidden; }
.drawer.open .drawer-in { padding: 24px 6px 12px; margin: 0 -6px; }
.drawer .sim { max-width: 760px; }
.no-js-only { margin-top: 20px; }
.rate-row { display: grid; gap: 28px; margin-top: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 800px) { .rate-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; } }
.rate { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--pri); border-radius: 12px; padding: 22px; }
.rate h3 { margin-bottom: 4px; }
.rate .price { font: 600 26px/1.2 var(--f-body); font-variant-numeric: tabular-nums; margin: 0 0 8px; }
.rate p:last-child { margin: 0; }
.steps3 { padding-left: 22px; display: grid; gap: 8px; }
.ask { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px; }
.cal-title { font: 600 20px var(--f-head); }
.cal-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--s-line-strong); background: #fff; color: var(--s-fg); font: 700 24px/1 system-ui, sans-serif; cursor: pointer; }
.cal-arrow:disabled { opacity: .35; cursor: not-allowed; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 10px; }
.cal-wd { text-align: center; font-size: 13px; font-weight: 700; color: var(--s-soft); padding: 4px 0; }
.cal-wd abbr { text-decoration: none; }
.cal .sim-day { border-color: var(--s-line); }
/* chosen nights draw as one continuous band */
.cal .sim-day.in-range { background: #CFE3DF; border-color: #CFE3DF; border-radius: 0; box-shadow: 3px 0 0 #CFE3DF, -3px 0 0 #CFE3DF; animation: band .35s ease-out both; animation-delay: calc(var(--i, 0) * 25ms); transform-origin: left center; }
@keyframes band { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.mtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.mtile { min-height: 52px; }
.sim-link-inline { background: none; border: 0; padding: 8px 4px; min-height: 44px; color: var(--s-fg); font: 700 15px/1.2 var(--f-body); text-decoration: underline; cursor: pointer; }
.sim-total strong { font-variant-numeric: tabular-nums; }
.sim-lines li span:first-child { min-width: 0; }
.sim-addon a { color: var(--link, var(--pri)); text-decoration: underline; text-underline-offset: 3px; }
/* postcard */
.postcard { perspective: 1100px; margin: 8px 0 4px; }
.pc-inner { position: relative; display: grid; transition: transform .7s ease; transform-style: preserve-3d; }
.postcard.flipped .pc-inner { transform: rotateY(180deg); }
.pc-face { grid-area: 1 / 1; position: relative; min-height: 270px; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; border: 2px solid var(--s-line-strong); }
.pc-front { background: #13293D; }
.pc-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-back { transform: rotateY(180deg); background: #FFFDF7; padding: 16px 16px 52px; display: flex; flex-direction: column; background-image: repeating-linear-gradient(transparent 0 33px, #E6DFD0 33px 34px); }
.pc-hello { margin: 0 0 8px !important; font: 600 24px/1.1 var(--f-head); color: var(--pri); }
.pc-back dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 15px; }
.pc-back dt { color: var(--s-soft); font-weight: 600; }
.pc-back dd { margin: 0; font-weight: 700; }
.pc-line { margin: 10px 0 0 !important; font-size: 14px; color: var(--s-soft); }
.pc-stamp { position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; background: #FFFDF7; color: #13293D; border: 2px dashed #13293D; border-radius: 4px; font: 700 12px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg); }

/* p.6 distance rings */
.area-grid { display: grid; gap: 28px; margin-top: 36px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 800px) { .area-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.rings svg { display: block; width: 100%; max-width: 420px; margin: 0 auto; overflow: visible; }
.ring { fill: none; stroke: #13293D; stroke-width: 2; opacity: .35; }
.ring.is-on { stroke: var(--pri); stroke-width: 6; opacity: 1; }
.js .ring { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease, stroke-width .25s, opacity .25s; }
.js .rings.in .ring { stroke-dashoffset: 0; }
.js .rings .r2 { transition-delay: .35s, 0s, 0s; } .js .rings .r3 { transition-delay: .7s, 0s, 0s; }
.mk circle { fill: #FAF6F0; stroke: #13293D; stroke-width: 2; }
.mk text { font: 700 17px var(--f-body); fill: #13293D; }
.mk.is-on circle { fill: var(--gold); stroke-width: 3; }
.house path { fill: #13293D; } .house .door { fill: var(--gold); }
.ring-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ring-btn { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; text-align: left; border: 2px solid var(--fg); border-radius: 12px; background: #fff; color: var(--fg); font: 600 17px/1.25 var(--f-body); cursor: pointer; }
.ring-btn span { font-size: 14px; color: #4F606D; font-weight: 600; }
.ring-btn[aria-expanded="true"] { background: var(--pri); border-color: var(--pri); color: #fff; }
.ring-btn[aria-expanded="true"] span { color: #E6F1EE; }
.ring-list .note { margin: 8px 4px 4px; }
.js .ring-list .note { display: none; }
.js .ring-list .is-on .note { display: block; }

/* p.8 winter */
.winter-grid { display: grid; gap: 28px; margin: 28px 0 8px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 800px) { .winter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.calc { margin-top: 22px; padding: 20px; background: #fff; border: 2px solid var(--fg); border-radius: 16px; max-width: 460px; }
.calc h3 { margin-bottom: 4px; }
.calc-res { font: 600 20px/1.35 var(--f-body); margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.calc .btn { width: 100%; }

/* Back page */
.back { background: var(--bg); padding-bottom: 72px; }
.back-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .back-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; } }
.small-print { font-size: 15px; padding: 20px 22px; background: var(--panel); border-top: 6px solid var(--fg); align-self: start; }
.small-print h2 { font-size: 26px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules li { padding-bottom: 8px; border-bottom: 1px dotted #8D8A80; }

@media (prefers-reduced-motion: reduce) {
  .cover-photo img { animation: none !important; }
  .js .ring { stroke-dashoffset: 0; }
  .rv.in .dot, .spot-card.pop, .cal .sim-day.in-range { animation: none !important; }
  .mo:hover { transform: none; }
}

/* Tap area: ribbon link is at least 44px tall without changing the 40px bar */
.gd-ribbon a { position: relative; }
.gd-ribbon a::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; }
.field label, .sim-label { display: flex; align-items: flex-end; min-height: 44px; margin-bottom: 0; padding-bottom: 6px; box-sizing: border-box; }
.gd-credits a { display: inline-flex; align-items: center; }
