@layer site-base {
@media (max-width: 1099px) {
  .site-header nav > ul.nav-list {
    display: none;
  }

  .site-header .nav-mobile {
    display: block;
    position: relative;
  }
}
}
@layer site-theme {
:root {
  --accent: #2d5a43;
  --accent-text: #ffffff;
  --background: #faf9f6;
  --surface: #ffffff;
  --text: #1e2b24;
  --text-muted: #5b6a62;
  --border: #ece7de;
  --shadow-color: #1b3729;
  --invert-bg: #13281e;
  --invert-text: #f5f3ee;
  --accent-2: #e5ece7;
  --accent-2-text: #13281e;
  --accent-3: #f5f3ee;
  --accent-3-text: #2b2721;
  --success: #2d5a43;
  --error: #b42318;
  --status-text: #ffffff;
  --font-heading: "Playfair Display", "Noto Serif", "Noto Serif Armenian", "Noto Serif Georgian", "Noto Serif Thai", "Noto Serif Hebrew", "Noto Naskh Arabic", "Noto Serif Devanagari", "Noto Serif Bengali", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Noto Sans", "Noto Sans Armenian", "Noto Sans Georgian", "Noto Sans Thai", "Noto Sans Hebrew", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Bengali", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-size-xs-value: 0.8125rem;
  --font-size-xs: calc(var(--font-size-xs-value) * var(--k-font-size-xs));
  --font-size-sm-value: 0.9375rem;
  --font-size-sm: calc(var(--font-size-sm-value) * var(--k-font-size-sm));
  --font-size-md-value: 1rem;
  --font-size-md: calc(var(--font-size-md-value) * var(--k-font-size-md));
  --font-size-lg-value: 1.25rem;
  --font-size-lg: calc(var(--font-size-lg-value) * var(--k-font-size-lg));
  --font-size-xl-value: 2.25rem;
  --font-size-xl: calc(var(--font-size-xl-value) * var(--k-font-size-xl));
  --font-size-2xl-value: 2.75rem;
  --font-size-2xl: calc(var(--font-size-2xl-value) * var(--k-font-size-2xl));
  --font-size-3xl-value: 3.75rem;
  --font-size-3xl: calc(var(--font-size-3xl-value) * var(--k-font-size-3xl));
  --space-1-value: 0.25rem;
  --space-1: calc(var(--space-1-value) * var(--k-space-1));
  --space-2-value: 0.5rem;
  --space-2: calc(var(--space-2-value) * var(--k-space-2));
  --space-3-value: 0.75rem;
  --space-3: calc(var(--space-3-value) * var(--k-space-3));
  --space-4-value: 1rem;
  --space-4: calc(var(--space-4-value) * var(--k-space-4));
  --space-5-value: 1.5rem;
  --space-5: calc(var(--space-5-value) * var(--k-space-5));
  --space-6-value: 2rem;
  --space-6: calc(var(--space-6-value) * var(--k-space-6));
  --space-7-value: 3rem;
  --space-7: calc(var(--space-7-value) * var(--k-space-7));
  --space-8-value: 6rem;
  --space-8: calc(var(--space-8-value) * var(--k-space-8));
  --radius: 1rem;
  --radius-button: 160px;
  --measure: 42rem;
  --gap: 1.5rem;
  --shadow-sm: 0 1px 2px 0 color-mix(in srgb, var(--shadow-color) 10%, transparent);
  --shadow-md: 0 10px 30px -10px color-mix(in srgb, var(--shadow-color) 7%, transparent), 0 4px 12px -4px color-mix(in srgb, var(--shadow-color) 5%, transparent);
  --shadow-lg: 0 20px 35px -12px color-mix(in srgb, var(--shadow-color) 14%, transparent), 0 6px 14px -6px color-mix(in srgb, var(--shadow-color) 6%, transparent);
  --button-bg: var(--accent);
  --button-text: var(--accent-text);
  --focus: var(--accent);
  --font-meta: var(--font-body);
  --sage-background: var(--background);
  --sage-text: var(--text);
  --sage-text-muted: var(--text-muted);
  --sage-border: var(--border);
  --sage-surface: var(--surface);
  --k-font-size-xs: 1;
  --k-font-size-sm: 1;
  --k-font-size-md: 1;
  --k-font-size-lg: 1;
  --k-font-size-xl: 1;
  --k-font-size-2xl: 1;
  --k-font-size-3xl: 1;
  --k-space-1: 1;
  --k-space-2: 1;
  --k-space-3: 1;
  --k-space-4: 1;
  --k-space-5: 1;
  --k-space-6: 1;
  --k-space-7: 1;
  --k-space-8: 1;
}
@media (max-width: 1023px) {
  :root {
    --k-font-size-lg: 0.95;
    --k-font-size-xl: 0.9;
    --k-font-size-2xl: 0.85;
    --k-font-size-3xl: 0.85;
    --k-space-5: 0.9;
    --k-space-6: 0.85;
    --k-space-7: 0.85;
    --k-space-8: 0.8;
  }
}
@media (max-width: 639px) {
  :root {
    --k-font-size-lg: 0.9;
    --k-font-size-xl: 0.85;
    --k-font-size-2xl: 0.78;
    --k-font-size-3xl: 0.7;
    --k-space-4: 0.9;
    --k-space-5: 0.8;
    --k-space-6: 0.75;
    --k-space-7: 0.7;
    --k-space-8: 0.65;
  }
}

/* --- Header: sticky and frosted, hairline below --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* The default header (Step 103): the row is a sticky Section, so the notice bar above it scrolls away and the row
   stays, frosted with a hairline below (base CSS gives the header no box of its own then). */
.site-header > .block-section-sticky {
  background: color-mix(in srgb, var(--background) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* A Section holding a header or footer bar takes no band padding of its own (the bar has its own, as in base CSS,
   which the band padding below would otherwise override). */
.block-section:has(> .block-section-inner > .wrap) {
  padding-block: 0;
}

/* The brand: the name over the tagline, taking the free space before the menu like the name alone does. */
.site-header-inner > .block-stack {
  gap: var(--space-1);
  margin-inline-end: auto;
}

.site-tagline {
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* The letter tile when there is no logo image: a round accent disc with a serif letter. */
.site-logo-tile {
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  padding-block: var(--space-4);
  gap: var(--space-4) var(--space-5);
}

.site-header-inner > .block.block {
  margin-block-start: 0;
}

.site-logo {
  height: 2.5rem;
}

.site-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.site-header nav > ul {
  gap: var(--space-6);
}

.site-header nav > ul a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-header nav > ul a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-header nav > ul a[aria-current='page'] {
  color: var(--accent);
}

/* The menu sits between the name and the buttons: both sides take the free space. */
@media (min-width: 768px) {
  .site-header-inner > nav:not(.language-switcher) {
    margin-inline-end: auto;
  }
}

/* One row from 768px, as in the mockup: the row never wraps (a wrapped row put the button under the logo). It makes
   room step by step instead: a tighter menu, then no phone link below 1200px (the notice bar has the number), then
   the menu button below 1100px (the theme's `menuCollapseWidth`). A menu of about five short items fits the full
   row at the 1200px page width. */
@media (min-width: 768px) {
  .site-header-inner {
    flex-wrap: nowrap;
  }

  .site-header-inner .site-name,
  .site-header-inner .site-tagline,
  .site-header nav > ul.nav-list {
    white-space: nowrap;
  }

  .site-header nav > ul.nav-list {
    flex-wrap: nowrap;
    gap: var(--space-5);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .site-header-inner > .block-button:has(> .button-link) {
    display: none;
  }
}

/* The header's buttons: small, uppercase and tracked; the phone link plain. */
.site-header-inner .button {
  padding: 0.625rem var(--space-5);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.site-header-inner .button-link {
  padding-inline: var(--space-2);
  box-shadow: none;
  text-decoration: none;
}

.language-switcher a[aria-current] {
  color: var(--accent);
}

/* The notice bar above the header row: a slim dark strip of small type. */
.site-header > .block-section:not(.block-section-sticky) {
  padding-block: 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.site-header > .block-section:not(.block-section-sticky) .block-stack {
  gap: var(--space-2) var(--space-5);
}

.site-header > .block-section:not(.block-section-sticky) .block-rich-text p {
  margin: 0;
}

.site-header > .block-section:not(.block-section-sticky) .block-rich-text a {
  color: var(--text);
  text-underline-offset: 0.2em;
}

.site-header > .block-section:not(.block-section-sticky) .badge {
  padding: 0.125rem 0.375rem;
  border: 0;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--accent) 70%, var(--invert-bg));
  color: var(--accent-2);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 639px) {
  .site-header > .block-section:not(.block-section-sticky) .block-stack {
    justify-content: center;
    text-align: center;
  }
}

/* The mobile menu (Step 94): a pill button and a rounded surface panel with a soft shadow, links lighting up in the
   pale jade of the theme's second accent. */
.nav-mobile-toggle {
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-mobile[open] > .nav-mobile-toggle {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-mobile .nav-mobile-list {
  min-width: 14rem;
  padding: var(--space-2);
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.nav-mobile .nav-mobile-list a {
  padding: var(--space-3) var(--space-4);
  border-radius: calc(var(--radius) * 0.75);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-mobile .nav-mobile-list a:hover {
  background: var(--accent-2);
  color: var(--accent-2-text);
  text-decoration: none;
}

.nav-mobile .nav-mobile-list a[aria-current='page'] {
  color: var(--accent);
  font-weight: 600;
}

/* --- Headings: Playfair, semibold, tight --- */

.block-heading,
.post-title,
.blog-title,
.post-card-title,
.not-found h1 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h3.block-heading,
.post-card-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.block-rich-text h2,
.block-rich-text h3,
.block-rich-text h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* --- Page rhythm: sections are full-width bands that meet edge to edge --- */

main {
  padding-block: var(--space-7) var(--space-8);
}

.block + .block {
  margin-block-start: var(--space-6);
}

/* Inside a column or a card the blocks sit closer, as in the mockup's stacked copy. */
.block-columns-col > .block + .block {
  margin-block-start: var(--space-5);
}

.block-card-inner > .block + .block {
  margin-block-start: var(--space-4);
}

.block-heading + .block-rich-text {
  margin-block-start: var(--space-4);
}

main > .block-section:first-child {
  margin-block-start: calc(-1 * var(--space-7));
  padding-block: var(--space-8);
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--accent-3) 60%, transparent), var(--background));
}

/* The opening section's two columns (copy and photo) meet in the middle. */
main > .block-section:first-child .block-columns {
  align-items: center;
}

main > .block-section:last-child {
  margin-block-end: calc(-1 * var(--space-8));
}

main > .block-section + .block-section {
  margin-block-start: 0;
  border-block-start: 1px solid var(--border);
}

.block-section {
  padding-block: var(--space-8);
}

.block-section .block-columns {
  gap: var(--space-7);
}

/* The tone says which text colour reads on the owner's background; :where() keeps the owner's own colour able to win. */
:where(.block-section)[data-tone='dark'] {
  color: var(--invert-text);
}

:where(.block-section)[data-tone='light'] {
  color: var(--text);
}

.block-section[data-tone='dark'] .block-rich-text a:not(.button) {
  color: inherit;
}

/* --- Buttons: pills, semibold, a little shadow --- */

.button {
  padding: var(--space-4) var(--space-6);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition:
    filter 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.button-primary {
  box-shadow: var(--shadow-md);
}

.button-primary:hover {
  box-shadow: var(--shadow-lg);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--border) 60%, var(--text-muted));
}

.button-secondary:hover {
  background: var(--accent-3);
  filter: none;
}

.button-link {
  padding: 0;
  font-weight: 600;
}

/* --- Cards: on the surface colour, rounded, hairline border, lift on hover --- */

.block-card,
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .block-card:hover,
  .post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.block-card-inner {
  padding: var(--space-6);
}

/* Cards side by side in a grid are as tall as the tallest; a closing details list sits at the bottom of each. */
.block-grid > .block-card {
  display: flex;
  flex-direction: column;
}

.block-grid > .block-card > .block-card-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.block-card-inner > .block-rich-text.is-style-details:last-child {
  margin-block-start: auto;
}

.block-card-inner > .block:has(+ .block-rich-text.is-style-details:last-child) {
  margin-block-end: var(--space-5);
}

/* A card that leads to its own page ends with a link under the details list: the two sit at the bottom together. */
.block-card-inner > .block-rich-text.is-style-details:has(+ .block-button:last-child) {
  margin-block-start: auto;
}

.block-card-inner > .block:has(+ .block-rich-text.is-style-details + .block-button:last-child) {
  margin-block-end: var(--space-5);
}

.post-card-content {
  padding: var(--space-5);
}

.post-card-date,
.post-date {
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card-tag,
.post-tag {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.block-image img,
.post-cover-image {
  border-radius: var(--radius);
}

.block-rich-text blockquote {
  border-inline-start: 3px solid var(--accent);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-style: italic;
  line-height: 1.5;
}

/* --- Forms: small tracked labels, soft inputs, a jade focus ring, a full-width pill --- */

.form-field label {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-field-checkbox label {
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.form-field input[type='text'],
.form-field input[type='email'],
.form-field input[type='tel'],
.form-field input[type='date'],
.form-field textarea,
.form-field select {
  background: color-mix(in srgb, var(--background) 60%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--border) 60%, var(--text-muted));
  border-radius: 0.5rem;
  padding: 0.625rem var(--space-4);
  font-size: 0.875rem;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.form-submit {
  justify-self: stretch;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-success {
  background: var(--success);
  color: var(--status-text);
  border-color: var(--success);
}

.form-error {
  background: var(--error);
  color: var(--status-text);
  border-color: var(--error);
}

/* --- Archives --- */

.blog-header {
  padding-block-end: var(--space-5);
  border-block-end: 1px solid var(--border);
}

.pagination a {
  border-radius: var(--radius-button);
}

/* --- Footer: dark jade, small type; everything inside reads on the reversed colours --- */

.site-footer {
  --background: var(--invert-bg);
  --text: var(--invert-text);
  --text-muted: color-mix(in srgb, var(--invert-text) 68%, var(--invert-bg));
  --border: color-mix(in srgb, var(--invert-text) 14%, var(--invert-bg));
  --surface: color-mix(in srgb, var(--invert-text) 8%, var(--invert-bg));
  padding-block: 0 var(--space-6);
  background: var(--invert-bg);
  color: var(--text-muted);
  border-block-start: 0;
  font-size: 0.8125rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer > .block-section {
  padding-block: var(--space-7);
  border-block-end: 1px solid var(--border);
}

.site-footer > .block-section + .wrap,
.site-footer > .wrap:first-child {
  padding-block-start: var(--space-6);
}

.site-footer > .block-section + .wrap {
  font-size: 0.75rem;
}

.site-footer .block-columns {
  gap: var(--space-6) var(--space-7);
}

.site-footer .block-columns-col > .block + .block {
  margin-block-start: var(--space-4);
}

.site-footer .site-name {
  color: var(--text);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.site-footer .site-logo {
  height: 2rem;
}

.site-footer .block-rich-text p {
  margin-block-end: var(--space-2);
}

.site-footer .block-rich-text.is-style-eyebrow {
  color: var(--text);
}

/* A menu inside a footer column (not collapsing): one link per line. */
.site-footer .block-columns nav ul {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .badge {
  border: 0;
  border-radius: 0.25rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Block variants (Step 96): the shared ones in sage tints and soft shadows --- */

.block-card.is-style-muted,
.block-section.is-style-muted {
  background: var(--accent-2);
  color: var(--accent-2-text);
}

.block-card.is-style-muted {
  border-color: transparent;
  box-shadow: none;
}

.block-card.is-style-inverted {
  background: var(--invert-bg);
  border-color: transparent;
}

.block-card.is-style-outlined {
  background: transparent;
  box-shadow: none;
}

.block-card.is-style-dots,
.block-section.is-style-dots {
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1.5px);
  background-size: 1.25rem 1.25rem;
}

/* A dotted card with an icon reads as a map pin on a plan: the icon centred in an accent circle. */
.block-card.is-style-dots > .tile {
  display: flex;
  margin: var(--space-6) auto 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-md);
}

/* `*word*` in a heading: an italic in the accent colour (the text colour on a dark band). */
.block-heading em {
  font-style: italic;
  color: var(--accent);
}

.block-section[data-tone='dark'] .block-heading em,
.is-style-inverted .block-heading em {
  color: inherit;
}

/* --- Sage's own variants --- */

/* Eyebrow: a small tracked label over a heading (pale jade on a dark band). */
.block-rich-text.is-style-eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.block-rich-text.is-style-eyebrow p {
  margin: 0;
}

/* `+ nav`: a Menu block (a footer column's named menu) renders a bare <nav>, without .block. */
.block-rich-text.is-style-eyebrow + .block,
.block-rich-text.is-style-eyebrow + nav {
  margin-block-start: var(--space-3);
}

.is-style-inverted .block-rich-text.is-style-eyebrow {
  color: var(--accent-2);
}

/* Lead: an introduction a size up, in the muted text colour. */
.block-rich-text.is-style-lead {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Small: notes, prices and fine print. */
.block-rich-text.is-style-small {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.block-rich-text.is-style-small p:last-child,
.block-rich-text.is-style-lead p:last-child {
  margin-block-end: 0;
}

/* Figure: a serif number or name over a short line. */
.block-rich-text.is-style-stat p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.block-rich-text.is-style-stat p:first-child {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.3;
}

/* Details: a closing list of small points under a hairline, each with a dot. */
.block-rich-text.is-style-details {
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.block-rich-text.is-style-details ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.block-rich-text.is-style-details li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.block-rich-text.is-style-details li::before {
  content: '';
  flex: none;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.1em);
}

.block-rich-text.is-style-details li p {
  margin: 0;
}

.is-style-inverted .block-rich-text.is-style-details li::before {
  background: var(--accent-2);
}

/* Figures: a row of figures under a hairline. */
.block-grid.is-style-stats {
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: var(--space-4);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--border);
}

/* Intro: a centred heading group over a section, with room below. */
.block-stack.is-style-intro {
  max-width: var(--measure);
  margin-inline: auto;
  gap: var(--space-4);
  text-align: center;
}

.block-stack.is-style-intro .block-rich-text p:last-child {
  margin-block-end: 0;
}

.block-stack.is-style-intro + .block {
  margin-block-start: calc(var(--space-7) + var(--space-4));
}

/* Ruled: a row with a hairline below, as in a table of opening hours. */
.block-stack.is-style-ruled {
  width: 100%;
  gap: var(--space-4);
  padding-block: var(--space-2);
  border-block-end: 1px solid var(--border);
  font-size: 0.8125rem;
}

.block-stack.is-style-ruled p {
  margin: 0;
}

.block-stack:has(> .block-stack.is-style-ruled) {
  gap: 0;
}

/* Plain card: no frame, for numbered steps; its monogram a large rounded tile. */
.block-card.is-style-plain {
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.block-card.is-style-plain:hover {
  transform: none;
  box-shadow: none;
}

.block-card.is-style-plain > .tile {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 0 var(--space-5);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--accent-2));
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.block-card.is-style-plain .block-card-inner {
  padding: 0;
}

/* Soft card: the page colour with a hairline and no lift, for reviews and small facts. */
.block-card.is-style-soft {
  background: var(--background);
  box-shadow: none;
}

.block-card.is-style-soft:hover {
  transform: none;
  box-shadow: none;
}

.block-card.is-style-soft .block-card-inner {
  padding: var(--space-5);
}

.block-grid > .block-card.is-style-soft .block-card-inner {
  padding: var(--space-6);
}

/* Sheet: a large light panel that stays light on a dark band (the page colours, saved on :root, put back). */
.block-card.is-style-sheet {
  --background: var(--sage-background);
  --text: var(--sage-text);
  --text-muted: var(--sage-text-muted);
  --border: var(--sage-border);
  --surface: var(--sage-surface);
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow-md);
}

.block-card.is-style-sheet:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.block-card.is-style-sheet > .block-card-inner {
  padding: clamp(var(--space-6), 5vw, var(--space-8));
}

/* Float: a small card that overlaps the block above it, as over a photo. */
.block.block-card.is-style-float {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  max-width: 17rem;
  margin-block-start: calc(-1 * var(--space-7));
  margin-inline-start: calc(-1 * var(--space-5));
  box-shadow: var(--shadow-md);
}

.block-card.is-style-float > .tile {
  margin: var(--space-4) 0 var(--space-4) var(--space-4);
}

.block-card.is-style-float > .block-card-inner {
  padding: var(--space-4);
}

.block-card.is-style-float .block-heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0;
}

.block-card.is-style-float .block-card-inner > .block + .block {
  margin-block-start: var(--space-1);
}

.block-card.is-style-float .block-rich-text {
  font-size: 0.75rem;
}

/* Nothing above it (no photo chosen yet): it sits in the flow. */
.block.block-card.is-style-float:first-child {
  margin-block-start: 0;
}

@media (max-width: 639px) {
  .block.block-card.is-style-float {
    margin-inline-start: var(--space-4);
  }
}

/* Glass: a frosted card for photos and gradients. */
.block-card.is-style-glass {
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  border-color: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Portrait: a framed 4:5 photo with its caption laid over the bottom on a dark fade. */
.block-image.is-style-portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 4px solid var(--surface);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--border);
  box-shadow: var(--shadow-md);
}

.block-image.is-style-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.block-image.is-style-portrait figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: var(--space-8) var(--space-5) var(--space-5);
  background: linear-gradient(to top, color-mix(in srgb, var(--invert-bg) 82%, transparent), transparent);
  color: var(--invert-text);
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  line-height: 1.4;
}

/* Initials: a round avatar badge. */
.block-badge.is-style-avatar .badge {
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.block-badge.is-style-avatar + .block-rich-text p {
  margin: 0;
  font-size: 0.75rem;
}

.block-badge.is-style-avatar + .block-rich-text p + p {
  color: var(--text-muted);
  font-size: 0.6875rem;
}

/* --- Step 99 parts: soft pills, sage tints, questions as surface panels --- */

.badge {
  border-color: transparent;
  background: var(--accent-2);
  color: var(--accent-2-text);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* A rating with words is a surface pill with a soft shadow; stars alone are just stars. */
.badge:has(> .badge-stars) {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  letter-spacing: 0;
  text-transform: none;
}

.badge:has(> .badge-stars:only-child) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tile {
  border-radius: calc(var(--radius) * 0.75);
  background: var(--accent-2);
  color: var(--accent);
}

.button .tile {
  background: transparent;
  color: inherit;
}

.accordion-item {
  margin-block-end: var(--space-4);
  padding-inline: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.accordion-item:first-child {
  border-top: 1px solid var(--border);
}

.accordion-title {
  padding-block: var(--space-5);
  font-family: var(--font-heading);
  font-weight: 700;
}

.accordion-title:hover {
  color: var(--accent);
}

.accordion-title::after {
  color: var(--accent);
}

.accordion-content {
  padding-block: var(--space-4) var(--space-5);
  border-block-start: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Grid and Stack space their items with gap (base.css says so too, but this layer's block rhythm above wins over it). */
:is(.block-grid, .block-stack) > .block.block {
  margin-block-start: 0;
}

}
