/*
 * Pagician shared theme styles. © Digital Titan. All rights reserved.
 * Proprietary: see themes/LICENSE.md.
 */
/* Pagician base: layout, forms, menu. Themes set the look in theme.css via these variables. */
:root {
  --brand: #16794c;
  --on-brand: #fff;
  --accent-text: var(--accent, var(--brand-text));
  --brand-text: var(--brand); /* brand colour for text; the site's head sets a version that passes 4.5:1 */
  --ink: #1d2320;
  --muted: #5b6660;
  --bg: #fff;
  --surface: #f3f5f4;
  --line: #e1e6e3;
  --radius: 10px;
  --wrap: 1120px;
  --gutter: 20px;
  --section: clamp(56px, 8vw, 104px);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-body);
  --menu-break: 820px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 17px/1.65 var(--font-body); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--brand-text); text-underline-offset: 0.15em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.block { padding-block: var(--section); }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.prose { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---- buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.5em; border: 2px solid var(--brand); border-radius: var(--radius);
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 650; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button--ghost { background: transparent; color: inherit; border-color: currentColor; }
.button--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); filter: none; }

/* ---- header + menu */
.site-header { position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; min-height: 72px; }
.logo { font-family: var(--font-head); font-weight: 750; font-size: 1.3rem; color: inherit; text-decoration: none; margin-right: auto; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-nav a { color: inherit; text-decoration: none; font-weight: 550; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brand); }
.phone-link { font-weight: 700; text-decoration: none; white-space: nowrap; }

.menu-button { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1.5px solid currentColor; border-radius: 8px; background: none; color: inherit; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; user-select: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; }
  .logo { flex: 1 1 0; min-width: 0; line-height: 1.2; } /* long names wrap instead of pushing the menu button down */
  .js .menu-button { display: inline-flex; flex-shrink: 0; }
  .site-nav { flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
  .site-nav a[aria-current="page"] { border-bottom-color: color-mix(in srgb, currentColor 15%, transparent); color: var(--brand-text); }
  .js .site-nav { display: none; }
  .js .menu-button[aria-expanded="true"] ~ .site-nav { display: flex; }
  .header-phone { display: none; }
}

/* ---- hero */
.hero-title { font-size: clamp(2.3rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { display: none; }

/* ---- services */
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { padding: 28px; border-radius: var(--radius); background: var(--surface); }
.card-title { font-size: 1.2rem; margin-bottom: 0.35em; }
.card-text { margin: 0; color: var(--muted); }
.card-num { display: none; }

/* ---- contact */
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 760px) { .contact-inner { grid-template-columns: 1fr; } }
.contact-list { margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list dt { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-size: 1.1rem; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; width: 100%; padding: 12px 14px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: calc(var(--radius) * 0.7);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.contact-form .button { justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; }
/* ---- custom forms (Form block); inputs share the contact form's look */
.custom-form-inner .contact-form { max-width: 680px; margin-top: 24px; }
.block.align-center .custom-form-inner .contact-form { margin-inline: auto; text-align: left; }
.contact-form select { font: inherit; font-weight: 400; width: 100%; padding: 12px 14px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: calc(var(--radius) * 0.7); }
.contact-form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.form-field { display: grid; gap: 6px; }
.form-field > label, .form-choices legend { font-weight: 600; font-size: 0.95rem; }
.contact-form .form-field > label { display: block; }
.form-choices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form-choices legend { padding: 0; margin-bottom: 6px; }
.contact-form label.choice { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.contact-form input:is([type="radio"], [type="checkbox"]) { width: 22px; height: 22px; padding: 0; margin: 0; flex: none; accent-color: var(--brand); }
.field-help { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.form-check { display: grid; gap: 4px; }
.form-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.contact-form .req { color: var(--brand-text, var(--brand)); }
.form-done { padding: 20px 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 10%, var(--bg)); border: 1px solid var(--line); }

/* ---- events (live: lib/Events.php) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.events { margin-top: 24px; }
.events-empty { color: var(--muted); }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.event { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); text-align: left; }
.event-date { display: grid; place-items: center; padding: 8px 0 10px; border-radius: calc(var(--radius) * 0.7); background: var(--brand); color: var(--on-brand, #fff); line-height: 1.1; }
.event-month { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.event-day { font-size: 1.8rem; font-weight: 750; font-family: var(--font-head); }
.event-title { margin: 0 0 4px; font-size: 1.2rem; }
.event-meta { margin: 0; color: var(--muted); font-size: 0.95rem; }
.event-desc { margin-top: 8px; } .event-desc p { margin: 0 0 8px; }
.event-body p:last-child { margin-bottom: 0; }
.event-img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) * 0.7); }
@media (max-width: 680px) { .event { grid-template-columns: 60px 1fr; gap: 14px; padding: 14px; } .event-img { grid-column: 1 / -1; width: 100%; } }
.event-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.event-cal-month { margin: 0; font-size: 1.3rem; text-align: center; }
.button.button-small { padding: 8px 14px; font-size: 0.9rem; }
.event-cal { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 24px; background: var(--bg); color: var(--ink); }
.event-cal th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 8px 4px; }
.event-cal abbr { text-decoration: none; }
.event-cal td { border: 1px solid var(--line); height: 88px; vertical-align: top; padding: 6px; font-size: 0.85rem; }
.event-cal td.is-empty { background: color-mix(in srgb, var(--line) 30%, transparent); }
.event-cal td.is-today .event-cal-day { background: var(--brand); color: var(--on-brand, #fff); border-radius: 50%; }
.event-cal-day { display: inline-grid; place-items: center; min-width: 26px; height: 26px; font-weight: 650; }
.event-cal-item { display: block; margin-top: 4px; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 14%, var(--bg)); color: var(--ink); text-decoration: none; font-size: 0.8rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-cal-item:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .event-cal td { height: 48px; padding: 3px; text-align: center; }
  .event-cal-item { font-size: 0; height: 8px; width: 8px; padding: 0; margin: 2px auto 0; border-radius: 50%; background: var(--brand); }
  .event-cal-nav .button { padding: 8px 10px; }
}

/* ---- appointment booking (live: lib/Bookings.php) */
.booking { margin-top: 24px; }
.booking-form { max-width: 760px; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.booking-form > *, .booking-form fieldset { min-width: 0; }
.block.align-center .booking-form { margin-inline: auto; text-align: left; }
.booking-step { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; padding: 0; font-family: var(--font-body); }
.booking-days ul { list-style: none; margin: 0; padding: 2px 2px 8px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; }
.booking-day { position: relative; display: grid; justify-items: center; min-width: 64px; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * 0.7); background: var(--bg); color: var(--ink); text-decoration: none; line-height: 1.2; scroll-snap-align: start; }
.booking-day:hover { border-color: var(--brand); }
.booking-day[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.booking-dow, .booking-mon { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.booking-date { font-size: 1.4rem; font-weight: 750; }
.booking-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.contact-form label.booking-slot { position: relative; display: block; }
.contact-form .booking-slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.booking-slot span { display: block; text-align: center; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * 0.7); background: var(--bg); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.booking-slot:hover span { border-color: var(--brand); }
.booking-slot input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.booking-slot input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.booking-details { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.booking-empty { color: var(--muted); }

/* ---- shop (live: lib/Shop.php; basket in site.js). Colours come from the site's palette. */
.shop { margin-top: 24px; }
.shop-form { display: block; }
/* Designs frame their contact forms; the shop's cards and checkout have their own frames instead. */
.shop .shop-form.contact-form { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.shop-notice { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 10%, var(--card, var(--bg))); color: var(--ink); font-weight: 600; }
.product-grid { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.product { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); background: var(--card, var(--bg)); color: var(--ink); overflow: hidden;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.product:hover { box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--ink) 28%, transparent); transform: translateY(-2px); }
.product-media { position: relative; overflow: hidden; background: var(--surface, var(--line)); }
.product-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--surface, var(--line)); transition: transform 0.4s ease; }
.product:hover .product-img { transform: scale(1.04); }
.product-noimg { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--surface, var(--line))), var(--surface, var(--line))); }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.product-badge.is-low { background: var(--card, var(--bg)); color: var(--ink); box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 20%, transparent); }
.product-badge.is-out { background: var(--ink); color: var(--bg); }
.product-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.product-name { font-size: 1.1rem; margin: 0; line-height: 1.25; }
.product-desc { color: var(--muted); font-size: 0.93rem; margin: 0; }
.product-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: auto; padding-top: 8px; }
.product-price { font-weight: 750; font-size: 1.2rem; margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
.product-price.is-sale { color: var(--brand-text); }
.product-price.is-sale del { font-weight: 400; color: var(--muted); font-size: 0.85em; margin-left: 4px; }
.product-sale-ends { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.product-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.contact-form .product-qty label { display: inline; margin: 0; }
.contact-form .product-qty input { width: 5.5em; }
.product-add { padding: 0.7em 1.15em; font-size: 0.95rem; }
.product-add[hidden] { display: none; }
.product-add:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }
.product-add.is-added { animation: shop-pop 0.35s ease; }
@keyframes shop-pop { 50% { transform: scale(1.06); } }
.product-in-basket { margin: 0; font-size: 0.86rem; font-weight: 650; color: var(--brand-text); }
.product-in-basket::before { content: "✓ "; }
.product-stock { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.product.is-sold-out .product-img { opacity: 0.5; filter: grayscale(0.6); }
.shop.has-basket .product-qty { display: none; }

/* Checkout: the order summary beside the form on wide screens, above it on phones */
.shop-checkout { scroll-margin-top: 96px; padding: clamp(18px, 3vw, 32px); border-radius: calc(var(--radius) * 1.4); background: var(--card, var(--bg)); color: var(--ink); border: 1px solid var(--line); }
.shop-checkout:focus { outline: none; }
.shop-checkout[hidden] { display: none; }
.shop-checkout-title { margin: 0 0 18px; font-size: 1.5rem; }
.shop-checkout-grid { display: grid; gap: 24px 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .shop-checkout-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .shop-summary { order: 2; position: sticky; top: 20px; align-self: start; } }
.shop-checkout-main { display: grid; gap: 18px; align-content: start; }
.block.align-center .shop-checkout { text-align: left; }
.shop-summary { display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface, color-mix(in srgb, var(--ink) 4%, var(--bg))); }
.shop-summary-title { margin: 0; font-size: 1.1rem; }
.shop-total { font-weight: 650; margin: 0; }
.shop-sum { display: grid; gap: 6px; }
.shop-sum-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 400; }
.shop-sum-row > :last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-sum-row.is-discount { font-weight: 600; color: var(--brand-text); }
.shop-sum-row.is-total { font-weight: 750; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.shop-problem { display: block; margin-top: 8px; font-weight: 600; }
.shop-edit { justify-self: start; padding: 0; border: 0; background: none; color: var(--brand-text); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.shop-edit[hidden] { display: none; }
.shop-details { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.shop-details legend, .shop-address legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; padding: 0; }
.shop-delivery-price { display: block; font-size: 0.9em; color: var(--muted); }
.shop-address { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.shop-address[hidden], [data-shop-country][hidden] { display: none; }
.shop-code-row { display: flex; gap: 8px; }
.shop-code-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.shop-pay > :last-child { margin-bottom: 0; }
.shop-pay { color: var(--muted); }
.shop-empty { color: var(--muted); }
.shop-pay-choice label.choice { align-items: flex-start; }
.shop-pay-choice label.choice input { margin-top: 1px; }
.contact-form .shop-submit { justify-self: stretch; font-size: 1.05rem; padding-block: 1em; }

/* The basket button (every page, once something is in the basket) and the basket panel */
.basket-button { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--ink) 45%, transparent); }
.basket-button[hidden] { display: none; }
.basket-button:hover { filter: brightness(1.08); }
.basket-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.basket-button-icon { width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h15l-1.5 9h-12z'/%3E%3Cpath d='M6 7 5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h15l-1.5 9h-12z'/%3E%3Cpath d='M6 7 5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.basket-button-count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--on-brand); color: var(--brand); display: inline-grid; place-items: center; font-size: 0.85rem; }
.basket-button-total { font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .basket-button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media print { .basket-button { display: none; } }

.basket-panel { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); max-width: 100vw; padding: 0; border: 0;
  background: var(--bg); color: var(--ink); box-shadow: -20px 0 50px -20px color-mix(in srgb, var(--ink) 40%, transparent); }
.basket-panel[open] { display: flex; flex-direction: column; animation: basket-in 0.25s ease; }
@keyframes basket-in { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .basket-panel[open], .product-add.is-added { animation: none; } .product, .product-img { transition: none; } }
.basket-panel::backdrop { background: color-mix(in srgb, #000 45%, transparent); }
.basket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.basket-head h2 { margin: 0; font-size: 1.35rem; }
.basket-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: none; color: inherit; font-size: 1rem; cursor: pointer; }
.basket-lines { list-style: none; margin: 0; padding: 8px 22px; overflow-y: auto; flex: 1; }
.basket-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info total" "img step remove"; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.basket-img { grid-area: img; width: 64px; height: 64px; border-radius: calc(var(--radius) * 0.8); object-fit: cover; background: var(--surface, var(--line)); align-self: start; }
.basket-noimg { display: block; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--surface, var(--line))), var(--surface, var(--line))); }
.basket-info { grid-area: info; min-width: 0; }
.basket-name { margin: 0; font-weight: 650; line-height: 1.3; }
.basket-price { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; }
.basket-line-total { grid-area: total; margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; align-self: start; }
.basket-step { grid-area: step; display: inline-flex; align-items: center; justify-self: start; border: 1.5px solid var(--line); border-radius: 999px; }
.basket-step button { width: 36px; height: 34px; border: 0; background: none; color: inherit; font: inherit; font-size: 1.15rem; cursor: pointer; border-radius: 999px; }
.basket-step button:disabled { opacity: 0.35; cursor: default; }
.basket-step button:focus-visible, .basket-remove:focus-visible, .basket-close:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.basket-qty { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.basket-remove { grid-area: remove; justify-self: end; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px; }
.basket-empty { display: none; margin: 0; padding: 32px 22px; color: var(--muted); flex: 1; }
.basket-panel.is-empty .basket-empty { display: block; }
.basket-panel.is-empty .basket-lines, .basket-panel.is-empty .basket-sub, .basket-panel.is-empty .basket-note, .basket-panel.is-empty .basket-checkout { display: none; }
.basket-foot { display: grid; gap: 10px; padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--surface, var(--bg)); }
.basket-sub { display: flex; justify-content: space-between; margin: 0; font-size: 1.1rem; }
.basket-sub strong { font-variant-numeric: tabular-nums; }
.basket-note { margin: 0; color: var(--muted); font-size: 0.85rem; }
.basket-foot .button { width: 100%; }

/* ---- footer */
.site-footer { padding-block: 48px; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 20px 40px; grid-template-columns: 1fr auto; align-items: start; }
.footer-name { display: block; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 4px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: right; }
.footer-contact a { color: inherit; }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } .footer-contact { text-align: left; } }

/* ======================================================================
   Element library (shared by all themes; restyled through the theme's variables)
   ====================================================================== */

.section-intro { max-width: 62ch; color: var(--muted); font-size: 1.08rem; margin-top: -0.2em; }
.caption { color: var(--muted); font-size: 0.92rem; margin: 10px 0 0; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich h2, .rich h3, .rich h4 { margin: 1.4em 0 0.5em; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 1em; }
.rich li + li { margin-top: 0.3em; }
.rich blockquote { margin: 1.2em 0; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--brand); color: var(--muted); }
.rich a { color: var(--brand-text); }

/* ---- section style options */
.block.pad-compact { padding-block: calc(var(--section) * 0.5); }
.block.pad-spacious { padding-block: calc(var(--section) * 1.5); }
.block.align-center { text-align: center; }
.block.align-center .section-intro, .block.align-center .prose, .block.align-center .hero-lead { margin-inline: auto; }
.block.align-center .hero-actions, .block.align-center .social-links { justify-content: center; }
.block.align-left { text-align: left; }
.block.bg-subtle { background: var(--surface); }
.block.bg-brand { background: var(--brand); --line: rgb(255 255 255 / 25%); --surface: rgb(255 255 255 / 10%); }
.block.bg-dark { background: var(--dark, #14171a); --line: rgb(255 255 255 / 14%); --surface: rgb(255 255 255 / 6%); }
body .block.bg-brand.bg-brand, body .block.bg-brand.bg-brand :is(h1, h2, h3, h4, p, dt, dd, li, span, strong, blockquote, figcaption, address, summary, label, a:not(.button)) { color: var(--on-brand, #fff); }
body .block.bg-dark.bg-dark, body .block.bg-dark.bg-dark :is(h1, h2, h3, h4, p, dt, dd, li, span, strong, blockquote, figcaption, address, summary, label, a:not(.button)) { color: #fff; }
body .block.bg-brand.bg-brand :is(.section-intro, .card-text, .caption, .price-desc, .team-role, .quote-detail, .muted) { color: color-mix(in srgb, var(--on-brand, #fff) 94%, transparent); }
body .block.bg-dark.bg-dark :is(.section-intro, .card-text, .caption, .price-desc, .team-role, .quote-detail, .muted) { color: rgb(255 255 255 / 78%); }
body .block.bg-brand.bg-brand .button { background: var(--on-brand, #fff); border-color: var(--on-brand, #fff); color: var(--brand); }
body .block.bg-brand.bg-brand .button--ghost { background: transparent; color: var(--on-brand, #fff); border-color: currentColor; }
body .block.bg-dark.bg-dark .button--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 70%); }
body .block.bg-brand.bg-brand .card, body .block.bg-dark.bg-dark .card { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 18%); box-shadow: none; }
body .block.bg-brand.bg-brand .section-title::after { background: currentColor; }

/* ---- image + text */
.image-text-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.image-right .image-text-media { order: 2; }
.image-text-media { margin: 0; }
.image-text-img { width: 100%; border-radius: var(--radius); object-fit: cover; }
@media (max-width: 760px) { .image-text-inner { grid-template-columns: 1fr; } .image-right .image-text-media { order: 0; } }

/* ---- columns */
.col-grid { display: grid; gap: 22px; margin-top: 28px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.col-grid.cols-2 { --cols: 2; } .col-grid.cols-3 { --cols: 3; } .col-grid.cols-4 { --cols: 4; }
@media (max-width: 900px) { .col-grid.cols-4 { --cols: 2; } }
@media (max-width: 680px) { .col-grid { --cols: 1 !important; } }
.col-item { display: flex; flex-direction: column; gap: 6px; }
.col-img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 14px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.col-link { margin-top: auto; padding-top: 8px; font-weight: 650; text-decoration: none; }

/* ---- call to action */
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin: 0 0 0.3em; }
.cta-text { margin: 0; max-width: 56ch; }
.align-center .cta-inner { flex-direction: column; justify-content: center; }
.cta-button { flex-shrink: 0; }

/* ---- spacer */
.block.spacer { padding: 0; }
.spacer-small { height: 24px; } .spacer-medium { height: 64px; } .spacer-large { height: 128px; }
.spacer { display: flex; align-items: center; }
.spacer-line { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- single image */
.single-image-figure { margin: 0 auto; }
.image-narrow .single-image-figure { max-width: 720px; }
.single-image-img { width: 100%; border-radius: var(--radius); }
.image-full .single-image-img { border-radius: 0; }
.image-full .caption { padding-inline: var(--gutter); max-width: var(--wrap); margin-inline: auto; }
.block.image-full { padding-block: 0; }

/* ---- gallery + lightbox */
.gallery-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: var(--gallery-gap, 12px); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.gallery-grid.cols-2 { --cols: 2; } .gallery-grid.cols-3 { --cols: 3; } .gallery-grid.cols-4 { --cols: 4; }
@media (max-width: 680px) { .gallery-grid { --cols: 2 !important; --gallery-gap: 8px; } }
.gallery-figure { margin: 0; }
.gallery-item { display: block; overflow: hidden; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.gallery-item:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.gallery-img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.35s ease, filter 0.35s ease; }
.gallery-item:hover .gallery-img, .gallery-item:focus-visible .gallery-img { transform: scale(1.04); }
.gallery-grid .caption { margin: 8px 0 0; font-size: 0.92rem; color: var(--muted); }
.shape-landscape .gallery-img { aspect-ratio: 4 / 3; }
.shape-portrait .gallery-img { aspect-ratio: 3 / 4; }
/* Masonry: columns of photos at their own shape. */
.gallery-grid.layout-masonry { display: block; columns: var(--cols, 3); column-gap: var(--gallery-gap, 12px); }
.layout-masonry .gallery-cell { break-inside: avoid; margin-bottom: var(--gallery-gap, 12px); }
.layout-masonry .gallery-img { aspect-ratio: auto; height: auto; }
/* Feature: the first photo takes a 2 x 2 spot. */
.layout-feature { grid-auto-flow: dense; }
.layout-feature .gallery-img { aspect-ratio: 1; }
.layout-feature .is-feature { grid-column: span 2; grid-row: span 2; }
.layout-feature .is-feature .gallery-figure { height: 100%; display: flex; flex-direction: column; }
.layout-feature .is-feature .gallery-item { flex: 1; }
.layout-feature .is-feature .gallery-img { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 680px) { .layout-feature .is-feature { grid-row: span 1; } .layout-feature .is-feature .gallery-img { aspect-ratio: 4 / 3; } }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr auto; background: rgb(8 10 12 / 94%); padding: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; color: #fff; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.lightbox::backdrop { background: rgb(8 10 12 / 94%); }
.lightbox[open] { animation: lb-in 0.2s ease; }
@keyframes lb-in { from { opacity: 0; } }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 0.95rem; }
.lb-count { color: rgb(255 255 255 / 85%); font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lb-figure { margin: 0; display: grid; place-items: center; gap: 12px; max-height: 100%; min-height: 0; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: 4px; transition: opacity 0.2s ease; }
.lightbox img.is-loading { opacity: 0.35; }
.lightbox figcaption { text-align: center; max-width: 70ch; padding: 0 16px 20px; color: #fff; line-height: 1.5; }
.lightbox figcaption:empty { display: none; }
.lightbox button { background: rgb(255 255 255 / 14%); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgb(255 255 255 / 26%); }
.lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }
@media (max-width: 680px) {
  .lightbox { padding-bottom: 76px; }
  .lb-stage { padding: 0 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { position: fixed; top: auto; bottom: 16px; translate: none; }
  .lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; }
  .lightbox img { max-height: calc(100dvh - 210px); }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-img, .lightbox img { transition: none; }
  .gallery-item:hover .gallery-img, .gallery-item:focus-visible .gallery-img { transform: none; }
  .lightbox[open] { animation: none; }
}

/* ---- logo strip */
.logos-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); text-align: center; font-family: var(--font-body); }
.logo-strip { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; }
.logo-strip-img { max-height: 56px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.2s, opacity 0.2s; }
.logo-strip a:hover .logo-strip-img { filter: none; opacity: 1; }
.logo-strip-name { display: inline-block; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; padding: 6px 4px; }

/* ---- prices */
.price-list { list-style: none; margin: 28px 0 0; padding: 0; max-width: 760px; }
.align-center .price-list { margin-inline: auto; text-align: left; }
.price-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-row-main { display: flex; align-items: baseline; gap: 12px; }
.price-name { font-weight: 650; }
.price-dots { flex: 1; border-bottom: 2px dotted var(--line); translate: 0 -4px; min-width: 24px; }
.price-amount { font-weight: 700; color: var(--brand-text); white-space: nowrap; }
.price-desc { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.price-row.is-highlight .price-name::after { content: "★"; color: var(--brand); margin-left: 6px; font-size: 0.85em; }
.price-note { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.price-cards { display: grid; gap: 20px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.price-card { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.price-card .price-amount { font-size: 2rem; display: block; margin: 4px 0 8px; }
.price-card.is-highlight { outline: 3px solid var(--brand); outline-offset: -3px; }

/* ---- opening hours */
.hours-card { max-width: 520px; }
.align-center .hours-card { margin-inline: auto; }
.hours-list { margin: 20px 0 0; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-row dt { font-weight: 600; }
.hours-row dd { margin: 0; text-align: right; }
.hours-note { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }

/* ---- map (loads from Google only after a click) */
.map-frame { margin-top: 20px; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); height: 380px; display: grid; place-items: center; }
.map-small .map-frame { height: 260px; } .map-large .map-frame { height: 520px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent { text-align: center; padding: 24px; display: grid; gap: 10px; justify-items: center; }
.map-address { font-weight: 650; font-size: 1.1rem; margin: 0; }
.map-note { font-size: 0.82rem; color: var(--muted); margin: 0; }
.map-open { font-size: 0.92rem; }

/* ---- questions */
.faq-list { margin-top: 20px; border-top: 1px solid var(--line); text-align: left; max-width: 820px; }
.align-center .faq-list { margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.05rem; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: rotate 0.2s; }
.faq-item[open] summary::after { rotate: 45deg; }
.faq-answer { padding: 0 0 18px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---- team */
.team-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.team-member { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.team-initial { display: grid; place-items: center; background: var(--surface); color: var(--brand-text); font-size: 3rem; font-family: var(--font-head); }
.team-name { font-size: 1.15rem; margin: 0 0 2px; }
.team-role { margin: 0; color: var(--brand-text); font-weight: 600; font-size: 0.92rem; }
.team-bio { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ---- testimonials */
.quote-grid { display: grid; gap: 20px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.quote blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; }
/* In the flow (not absolutely placed) so the mark follows the quote's alignment, left or centred */
.quote blockquote::before { content: "“"; display: block; height: 36px; margin: -14px 0 0 -2px; font-size: 3.6rem; line-height: 1; color: var(--brand); font-family: Georgia, serif; }
.quote figcaption { margin-top: auto; font-size: 0.95rem; }
.quote-detail { color: var(--muted); }
.quote-detail::before { content: "· "; }

/* ---- video (loads from YouTube/Vimeo only after a click) */
.video-frame { margin-top: 20px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0d0f12; position: relative; max-width: 960px; }
.align-center .video-frame { margin-inline: auto; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: radial-gradient(circle at center, #23272e, #0d0f12); color: #fff; display: grid; place-content: center; justify-items: center; gap: 14px; font: inherit; }
.video-play-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); position: relative; transition: transform 0.2s; }
.video-play-icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-play:hover .video-play-icon { transform: scale(1.08); }
.video-note { font-size: 0.82rem; opacity: 0.75; }

/* ---- social links */
.social-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600; font-size: 0.92rem; transition: border-color 0.15s, background 0.15s; }
.social-link:hover { border-color: var(--brand); }
.social-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand, #fff); font-size: 0.8rem; font-weight: 800; }
.site-footer .social-links { grid-column: 1 / -1; margin: 4px 0 0; }
.site-footer .social-link { border-color: currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.footer-text { margin: 4px 0 6px; max-width: 46ch; }

/* ---- contact details */
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.contact-cards .card { padding: 22px; }
.section-intro + .contact-list, .contact-details .section-intro { margin-top: 8px; }

/* ---- logo image */
.logo.has-logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img { width: auto; display: block; max-width: 260px; object-fit: contain; }

/* ---- designer-only placeholders (never on the live site) */
.img-placeholder { display: grid; place-items: center; min-height: 180px; aspect-ratio: 4 / 3; width: 100%; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 0.9rem; cursor: pointer; }
.col-item .img-placeholder { width: calc(100% + 56px); margin: -28px -28px 14px; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 10; min-height: 0; }
.team-member .img-placeholder { aspect-ratio: 1; min-height: 0; margin-bottom: 12px; }
.pagician-empty { margin-top: 18px; padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); font-size: 0.95rem; }
.align-center .section-title::after, .align-center .section-title::before { margin-inline: auto; }
/* Logos on dark backgrounds show as white silhouettes */
body .block.bg-dark.bg-dark .logo-strip-img, body .block.bg-brand.bg-brand .logo-strip-img { filter: brightness(0) invert(1); opacity: 0.8; }
/* Lists keep their bullets next to the text even when a theme centres its text */
.rich ul, .rich ol { display: inline-block; text-align: left; max-width: 100%; }

/* Optional header button (Site design › Header). Themes can restyle .header-cta. */
.header-cta { flex: none; padding: 0.6em 1.1em; font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 820px) { .site-header .header-cta { display: none; } }
.site-header .header-cta.is-squeezed { display: none; } /* set by site.js when it would wrap under the logo */

/* ---- hero photo: a real <img> (crawlable, fetched first) with the theme's overlay on top */
.hero--image:not(.hero--art) { position: relative; isolation: isolate; overflow: hidden; }
.hero--image:not(.hero--art) > .hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero--image:not(.hero--art)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay, linear-gradient(rgb(0 0 0 / 45%), rgb(0 0 0 / 45%))); pointer-events: none; }
.hero--art .hero-art > .hero-media { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Long "prices" (e.g. "from €12 per employee") wrap on the right instead of pushing past the screen */
.price-amount { max-width: 55%; text-align: right; white-space: normal; overflow-wrap: break-word; }
.price-card .price-amount { max-width: none; text-align: center; }

/* ---- process steps */
.step-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); counter-reset: step; }
.step { display: grid; gap: 8px; align-content: start; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--brand); color: var(--brand-text); font-weight: 800; font-family: var(--font-head); margin-bottom: 6px; }
.step-title { font-size: 1.15rem; margin: 0; }
.step-text { margin: 0; color: var(--muted); }
.align-center .step { justify-items: center; }

/* ---- key figures */
.stat-list { margin: 20px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--surface); }
.stat-value { margin: 0; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 750; line-height: 1; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 0.95rem; }
.block.stats:not(:has(.section-title)) .stat-list { margin-top: 0; }

/* ---- timeline */
.time-list { list-style: none; margin: 28px 0 0; padding: 0; max-width: 880px; border-left: 2px solid var(--line); }
.align-center .time-list { margin-inline: auto; text-align: left; }
.time-item { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 0 0 26px 28px; }
.time-item::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); }
.time-when { font-weight: 700; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.time-title { font-size: 1.12rem; margin: 0; }
.time-detail { margin: 2px 0 0; font-weight: 600; color: var(--muted); font-size: 0.95rem; }
.time-text { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 600px) { .time-item { grid-template-columns: 1fr; gap: 4px; } }

/* Skip link for keyboard and screen-reader users: hidden until focused */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--bg); color: var(--ink); font-weight: 700; box-shadow: 0 4px 16px rgb(0 0 0 / 20%); }
.skip-link:focus { left: 12px; }
main:focus { outline: none; }
/* Figures on dark or brand sections: tinted glass instead of the theme's light card */
body .block.bg-dark.bg-dark .stat, body .block.bg-brand.bg-brand .stat { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 28%); box-shadow: none; }
body .block.bg-brand.bg-brand .stat { background: rgb(0 0 0 / 10%); } /* darker, not lighter, so light text keeps its contrast */

/* Image + text: the heading lines up with its paragraph and button (themes that centre
   section titles otherwise leave a centred heading over left-aligned copy on phones) */
.image-text-copy .section-title { text-align: left; margin-left: 0; }
.image-text-copy .section-title::before, .image-text-copy .section-title::after { margin-left: 0; }
.image-text-copy > p:has(> .button) { margin-top: 1.4em; }
/* Contact form: the heading sits over left-aligned details and fields, so keep it left */
.contact-inner .section-title { text-align: left; margin-left: 0; }
.contact-inner .section-title::before, .contact-inner .section-title::after { margin-left: 0; }
.contact-cards ~ .section-intro { margin-top: 20px; }
/* Card numbers are decoration (hidden from screen readers), drawn from data-num so they are not page text */
.card-num::before { content: attr(data-num); }
/* Footer links to the privacy notice and accessibility statement */
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.9rem; }
.footer-legal a { color: inherit; display: inline-block; padding-block: 4px; }
.form-privacy { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---- exchange rates (Forex block): a ticker that scrolls only with JavaScript and without "reduce motion"; otherwise a still, wrapping row */
.fx-ticker { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.fx-bar { display: flex; align-items: stretch; gap: 10px; }
.fx-viewport { flex: 1; min-width: 0; overflow: hidden; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * 0.7); background: var(--surface, transparent); }
.fx-belt { display: flex; width: max-content; }
.fx-track { list-style: none; margin: 0; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-variant-numeric: tabular-nums; }
.fx-ticker.is-moving .fx-track { flex-wrap: nowrap; padding-right: 32px; }
.fx-ticker.is-moving .fx-belt { animation: fx-scroll var(--fx-duration, 40s) linear infinite; }
.fx-ticker.is-moving.is-paused .fx-belt, .fx-ticker.is-moving .fx-viewport:hover .fx-belt, .fx-ticker.is-moving:focus-within .fx-belt { animation-play-state: paused; }
@keyframes fx-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fx-ticker.is-moving .fx-belt { animation: none; } }
.fx-item { white-space: nowrap; }
.fx-pair { font-weight: 700; }
.fx-rate { margin-left: 4px; }
.fx-change { margin-left: 6px; font-size: 0.9em; font-weight: 600; }
.fx-up { color: #12703a; }
.fx-down { color: #b42318; }
.fx-same { color: var(--muted); }
.fx-pause { flex: none; font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0 14px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: calc(var(--radius) * 0.7); cursor: pointer; }
.fx-pause:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.fx-note { margin: 0; color: var(--muted); font-size: 0.85rem; }
.fx-table-wrap { display: grid; gap: 10px; overflow-x: auto; }
.fx-table { width: 100%; max-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.block.align-center .fx-table { margin-inline: auto; }
.fx-table :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.fx-table thead th { font-size: 0.85rem; color: var(--muted); }
.block:is(.bg-dark, .bg-brand) .fx-table :is(th, td), .block:is(.bg-dark, .bg-brand) .fx-pause { color: inherit; }
.block:is(.bg-dark, .bg-brand) .fx-pause { background: transparent; }
.fx-table tbody th { font-weight: 400; }
.fx-code { font-weight: 700; margin-right: 6px; }

/* ---- photo banner + parallax */
.block.photo-banner { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; padding-block: 0; color: #fff; background: var(--dark, #14171a); }
.photo-banner--small { min-height: clamp(220px, 34vw, 340px); }
.photo-banner--medium { min-height: clamp(300px, 48vw, 520px); }
.photo-banner--large { min-height: clamp(380px, 70vw, 720px); }
.photo-banner-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.photo-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--banner-overlay, color-mix(in srgb, var(--dark, #000) 60%, transparent)); pointer-events: none; }
.photo-banner--empty::before { display: none; }
.photo-banner-inner { padding-block: clamp(48px, 7vw, 88px); text-align: center; }
.photo-banner-title { color: #fff; font-size: clamp(1.8rem, 4.5vw, 3rem); margin: 0 auto; max-width: 22ch; text-wrap: balance; }
.photo-banner-text { color: rgb(255 255 255 / 92%); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 46ch; margin: 14px auto 0; }
.photo-banner-inner .button { margin-top: 26px; }
.block.photo-banner.align-left .photo-banner-inner { text-align: left; }
.block.photo-banner.align-left :is(.photo-banner-title, .photo-banner-text) { margin-left: 0; }
.photo-banner .img-placeholder { position: absolute; inset: 0; z-index: -2; }
/* Parallax: the photo is a little taller than its section and slides as the section crosses the screen.
   Browsers with scroll-driven animations do it in CSS; site.js does it for the others. Never for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .block.is-parallax { overflow: clip; } /* clip, not hidden: a hidden overflow would make the section its own scroller and stop the effect */
  .block.is-parallax > :is(.photo-banner-media, .hero-media) { top: -12%; bottom: auto; height: 124%; will-change: transform; }
  @supports (animation-timeline: view()) {
    .block.is-parallax > :is(.photo-banner-media, .hero-media) { animation: pagician-parallax linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes pagician-parallax { from { transform: translateY(-9%); } to { transform: translateY(9%); } }

/* Blog */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.post-list--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { display: grid; gap: 12px; align-content: start; }
.post-list:not(.post-list--grid) .post-card { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: start; }
@media (max-width: 680px) { .post-list:not(.post-list--grid) .post-card { grid-template-columns: 1fr; } }
.post-card-img { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.post-card-img img, .post-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { display: grid; gap: 6px; }
.post-card-cat { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.post-card-title { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover, .post-card-title a:focus-visible { text-decoration: underline; }
.post-card-meta, .post-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.post-card-excerpt { margin: 0; }
.post-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.post-pager-at { color: var(--muted); }
.posts-more { margin-top: 28px; }
.posts-empty { color: var(--muted); }
.post-wrap { max-width: 760px; }
.post-crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.post-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.post-crumbs li + li::before { content: "/"; margin-right: 6px; }
.post-crumbs a { color: inherit; }
.post-head { display: grid; gap: 10px; margin-bottom: 24px; }
.post-title { margin: 0; }
.post-image { margin: 0 0 28px; }
.post-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.post-body img { max-width: 100%; height: auto; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.post-tags a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface); color: inherit; text-decoration: none; font-size: .9rem; }
.post-tags a:hover, .post-tags a:focus-visible { text-decoration: underline; }
.post-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Classifieds */
.cl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.cl-search { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px 14px; align-items: end; padding: 18px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cl-search .cl-q { grid-column: 1 / -1; }
.cl-search-go .button { width: 100%; }
.cl-count { color: var(--muted); margin: 0 0 14px; }
.cl-empty { color: var(--muted); }
.cl-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cl-card { display: grid; align-content: start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cl-card-img { display: block; background: var(--surface); }
.cl-card-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cl-noimg { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--muted); font-size: .9rem; background: var(--surface); }
.cl-card-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.cl-card-kind { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.cl-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.cl-badge--sale { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.cl-badge--sold { background: var(--ink); color: var(--bg); border-color: transparent; }
.cl-card-title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.cl-card-title a { color: inherit; text-decoration: none; }
.cl-card-title a:hover, .cl-card-title a:focus-visible { text-decoration: underline; }
.cl-card-price, .cl-price { margin: 0; font-weight: 700; font-size: 1.1rem; }
.cl-price { font-size: 1.6rem; }
.cl-card-meta, .cl-muted { margin: 0; color: var(--muted); font-size: .9rem; }
.cl-wrap { max-width: 1040px; }
.cl-narrow { max-width: 640px; }
.cl-flash { padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--brand) 9%, var(--bg)); margin: 0 0 20px; }
.cl-flash.is-error { background: #fdecea; border-color: #f1b7b1; color: #7a1c12; }
.cl-flash.is-info { background: var(--surface); }
.cl-item { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 40px; }
@media (max-width: 820px) { .cl-item { grid-template-columns: 1fr; gap: 20px; } }
.cl-photo-main { margin: 0; }
.cl-photo-main img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: var(--surface); border-radius: var(--radius); }
.cl-photo-none { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface); border-radius: var(--radius); color: var(--muted); }
.cl-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.cl-thumbs a { display: block; border: 2px solid transparent; border-radius: 8px; overflow: hidden; }
.cl-thumbs a[aria-current="true"] { border-color: var(--brand); }
.cl-thumbs img { display: block; width: 72px; height: 72px; object-fit: cover; }
.cl-info { display: grid; gap: 12px; }
.cl-title { margin: 0; }
.cl-swap { margin: 0; }
.cl-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 6px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.cl-facts dt { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cl-facts dd { margin: 2px 0 0; }
.cl-desc { overflow-wrap: anywhere; }
.cl-contact { max-width: 680px; margin-bottom: 32px; }
.cl-contact h2 { margin-top: 0; }
.cl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .cl-two { grid-template-columns: 1fr; } }
.cl-safety { margin-top: 16px; padding: 12px 16px; background: var(--surface); border-radius: var(--radius); font-size: .95rem; }
.cl-report, .cl-delete { max-width: 680px; margin: 0 0 24px; }
.cl-report summary, .cl-delete summary { cursor: pointer; font-weight: 600; display: list-item; padding: 10px 0; }
.cl-report form, .cl-delete form { margin-top: 12px; }
.cl-code { font-size: 1.6rem; letter-spacing: .3em; max-width: 12ch; }
.cl-rules { padding: 14px 18px; background: var(--surface); border-radius: var(--radius); }
.cl-rules h2 { font-size: 1.05rem; margin: 0 0 6px; }
.cl-rules p { margin: 0 0 6px; }
.cl-inline { margin-top: 14px; }
.cl-link { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; color: var(--brand-text, var(--brand)); text-decoration: underline; cursor: pointer; }
.cl-dash-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cl-dash-head h1 { margin: 0; }
.cl-section { margin: 0 0 40px; }
.cl-section-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cl-section-head h2, .cl-section > h2 { margin: 0 0 14px; }
.cl-section-head h2 { margin: 0; }
.cl-mine, .cl-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cl-mine-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.cl-mine-img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; aspect-ratio: auto; }
.cl-mine-body h3 { margin: 0 0 4px; font-size: 1.1rem; }
.cl-mine-body h3 a { color: inherit; }
.cl-mine-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cl-mine-actions form { margin: 0; }
.button--small { padding: 8px 14px; min-height: 40px; font-size: .9rem; }
.cl-status { font-weight: 700; color: var(--ink); }
.cl-reason { margin: 6px 0 0; font-size: .9rem; }
.cl-msgs li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.cl-msgs p { margin: 0; }
.cl-msgs blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--line); }
.cl-kinds .choice { align-items: flex-start !important; }
.cl-kinds .field-help { display: block; }
.cl-photo-edit { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 12px; }
.cl-photo-edit img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.cl-photo-edit-fields { display: grid; gap: 8px; }
.contact-form input[type="file"] { padding: 10px; }
.contact-form .form-field[hidden] { display: none; }
