@layer kordo-base {
:root { --brand-accent: #116dff; --brand-accent-ink: #000000; }
/*
 * The base layer: every block's and part's basic look, built from the variables every site's
 * :root defines. It sits in @layer kordo-base, under the site's own stylesheet, which always wins.
 * It exists so a block added later looks right on a site whose stylesheet predates it; a check
 * holds every block to a rule here.
 */
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--text-size)/1.6 var(--font-body); overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The skip link: off screen until it has focus. */
.site-skip { position: absolute; left: -100vw; }
.site-skip:focus { left: 1rem; top: 1rem; z-index: 2; padding: 0.5rem 1rem; background: var(--surface); color: var(--ink); }

/* The parts. */
/* A long one-word name wraps rather than pushing the page sideways on a phone. */
.site-brand { color: var(--ink); text-decoration: none; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
/* A logo keeps its own shape: a wide wordmark is never squeezed into a square. */
.site-logo { height: 2rem; width: auto; max-width: 12rem; object-fit: contain; }
.site-menu ul, .site-menu-narrow ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.site-menu-narrow summary { cursor: pointer; }
/* The footer's content lines up with the page's column, however wide the screen. */
.site-footer { padding: var(--gap) max(var(--gap), calc((100% - var(--measure)) / 2 + var(--gap))); border-top: 1px solid var(--line); }
.site-footer-about, .site-copyright { color: var(--muted); }
.site-footer-contact { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.75rem; font-style: normal; }
.page { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gap); }
.button { display: inline-block; padding: 0.6rem 1.1rem; border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.button-primary { background: var(--accent); color: var(--accent-ink); }

/* Every block: spacing and the minimum to read it. */
.hero, .cards, .gallery, .band, .faq, .reviews, .resource, .resources, .price-list, .team, .contact, .map { margin-block: var(--gap); }
.hero-photos { display: flex; gap: 0.5rem; overflow-x: auto; }
.hero-photos img { flex: 0 0 auto; max-height: 28rem; width: auto; }
.cards-list, .reviews-list, .resources-list, .team-list, .price-list ul, .hero-highlights { list-style: none; padding: 0; }
.gallery-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem; }
.band { padding: var(--gap); background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); }
.band a { color: var(--accent-ink); }
.faq-item { border-top: 1px solid var(--line); padding-block: 0.5rem; }
.reviews-by, .price-list-time, .price-list-description, .team-role { color: var(--muted); }
.price-list-item, .team-member { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; }
.team-member img { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.resource-facts { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; }
.book, .button-block { margin-block: 1rem; }
.social { display: flex; gap: 1rem; list-style: none; padding: 0; }
/* Google's map fills the column: 4:3 on a phone, no taller than a band on a wide screen; it needs
   200px each way to draw. */
.map-frame { display: block; width: 100%; aspect-ratio: 4 / 3; min-height: 240px; max-height: 24rem; border: 0; }
.map-branch + .map-branch { margin-top: var(--gap); }

/* The hero's arrows, which its script adds beside a strip of several photos. */
.hero-nav { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.5rem; }
.hero-arrow { min-width: 44px; min-height: 44px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
}

/* sidebar: the starting look. Each site gets its own copy; the common decisions are the :root variables. */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --line: #e4e0d6;
  --ink: #1f2430;
  --muted: #59606e;
  --side: #1f2a44;
  --side-ink: #eef1f6;
  --accent: var(--brand-accent, #a9442d);
  --accent-ink: var(--brand-accent-ink, #ffffff);
  --radius: 10px;
  --font-body: "Avenir Next", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: var(--font-body);
  --text-size: 1.0625rem;
  --gap: 2rem;
  --measure: 62rem;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--text-size)/1.6 var(--font-body); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: 1.7rem; font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
/* The accent is for fills only: a brand's accent may be pale, so text stays in --ink. */
a { color: var(--ink); }
img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* The frame: a sticky sidebar on the left, the page beside it. */
.site-skip { position: absolute; left: -100vw; }
.site-skip:focus { left: 1rem; top: 1rem; z-index: 2; padding: 0.5rem 1rem; background: var(--surface); }
.layout-frame { display: grid; grid-template-columns: 16rem 1fr; min-height: 100vh; }
.layout-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2rem; padding: 2.5rem 1.75rem; background: var(--side); color: var(--side-ink); }
.site-brand { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; font-weight: 700; color: var(--side-ink); text-decoration: none; }
.site-logo { height: 2rem; width: auto; }
.layout-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.layout-side nav a { color: var(--side-ink); text-decoration: none; }
.layout-side a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.layout-book { margin-top: auto; }
.layout-book .button { width: 100%; text-align: center; }
.site-menu-narrow { display: none; }
.layout-body { min-width: 0; }

@media (max-width: 860px) {
  :root { --gap: 1.25rem; }
  .layout-frame { grid-template-columns: 1fr; }
  .layout-side { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem var(--gap); }
  .site-menu, .layout-book { display: none; }
  .site-menu-narrow { display: block; position: relative; flex: none; }
  .site-brand { white-space: nowrap; font-size: 0.85rem; gap: 0.4rem; min-width: 0; }
  .site-logo { height: 1.25rem; }
  .site-menu-narrow ul { position: absolute; right: 0; z-index: 1; padding: 1rem 1.5rem; background: var(--side); }
}

.page { max-width: var(--measure); padding: 0 var(--gap); margin: 0 auto; }
.page > * { margin: 0 0 calc(var(--gap) * 1.5); }

/* Hero: the text first, then up to five photos as a mosaic, the first one large. */
.hero { display: flex; flex-direction: column-reverse; padding-top: calc(var(--gap) * 1.5); }
.hero-text { max-width: 40rem; margin-bottom: var(--gap); }
.hero-lede { font-size: 1.2rem; color: var(--muted); }
.hero-highlights { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-highlights li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.8rem; font-size: 0.9rem; }
.hero-photos { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 9rem; gap: 0.5rem; }
.hero-photos img { height: 100%; object-fit: cover; }
.hero-photos img:first-child { grid-column: span 2; grid-row: span 2; }
.hero-photos img:nth-child(n + 6) { display: none; }
.hero[data-photos="1"] .hero-photos { grid-auto-rows: 22rem; }
.hero[data-photos="1"] .hero-photos img:first-child { grid-column: span 4; grid-row: span 1; }

@media (max-width: 860px) {
  .hero-photos { grid-template-columns: repeat(2, 1fr); }
}

.button { display: inline-block; padding: 0.7rem 1.3rem; background: #007a80; border: 1px solid #007a80; border-radius: var(--radius); color: #ffffff; font-weight: 600; text-decoration: none; }
.button-primary { background: #007a80; border-color: #007a80; color: #ffffff; }
.book, .button-block { margin: 1.25rem 0; }
.social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* The map sits like the photos: same corners, or the same hairline frame. */
.map-frame { border-radius: var(--radius); }

/* Cards: white tiles in a grid. */
.cards-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.cards-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.cards-item p { margin: 0; }

.gallery-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.5rem; }
.gallery-photos img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Band: the brand colour, full width of the page column. */
.band { background: var(--accent); color: var(--accent-ink); padding: var(--gap); border-radius: var(--radius); }
.band a:not(.button) { color: var(--accent-ink); }
.band .button-primary { background: #007a80; border-color: #ffffff; color: #ffffff; }
.band .resource-facts dt, .band .resource-facts dd { color: var(--accent-ink); }

.reviews-badge { margin-left: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.reviews-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.reviews-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.reviews-list blockquote { margin: 0; }
.reviews-by { margin: 0; color: var(--muted); font-size: 0.85rem; }

.resource-facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin: 0; }
.resource-facts dt { color: var(--muted); font-size: 0.85rem; }
.resource-facts dd { margin: 0; font-size: 1.2rem; font-weight: 650; }
.resources-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.resources-item a { display: block; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }

.price-list ul { list-style: none; padding: 0; margin: 0; }
.price-list-item { display: grid; grid-template-columns: 1fr auto auto; gap: 0 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.price-list-name, .price-list-price { font-weight: 650; }
.price-list-time, .price-list-description { color: var(--muted); font-size: 0.9rem; }
.price-list-description { grid-column: 1 / -1; }

.team-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.team-member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.team-role { display: block; color: var(--muted); }

.faq-item { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq-item summary { cursor: pointer; font-weight: 650; }

.contact-address { font-style: normal; }
.contact-hours { border-collapse: collapse; margin: 1rem 0; }
.contact-hours caption { text-align: left; font-weight: 650; margin-bottom: 0.5rem; }
.contact-hours th, .contact-hours td { text-align: left; padding: 0.3rem 2rem 0.3rem 0; font-weight: normal; }
.contact-exceptions { color: var(--muted); }

.site-footer { padding: var(--gap); border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.site-copyright { grid-column: 1 / -1; }
