/*
 * Jeffreys Bay theme: "sand, sea and aloe". Taken whole from the approved
 * mockups (docs/mockups/stoei-redesign/site.css, approved 17 Nov 2026).
 * A mild redesign of today's jeffreysbay.com on Stoei CSS: same colours,
 * fonts, 2px ink lines and hard offset shadows, on Stoei's own parts.
 *
 * Load order: stoei/tokens.css, base.css, web.css, directory.css, then this.
 * Part 1 sets Stoei settings only (docs/THEME-SETTINGS.md in Stoei Core).
 * Part 2 adds the few looks that are Jeffreys Bay's own (jb- classes).
 */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("fonts/bricolage.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("fonts/outfit.woff2") format("woff2"); }

/* ---------- Part 1: Stoei settings ---------- */
:root {
  --st-font-body: "Outfit", var(--st-font-sans);
  --st-font-display: "Bricolage Grotesque", var(--st-font-sans);
  --st-weight-heading: 700;
  --st-tracking-heading: -0.01em;
  --st-tracking-title: -0.025em;

  /* Colours: light-dark(light, dark). Today's names in brackets. */
  --st-color-bg: light-dark(#F7F3EA, #0B1622);            /* sand */
  --st-color-surface: light-dark(#FFFFFF, #132233);
  --st-color-sunk: light-dark(#E4ECF3, #172738);          /* foam */
  --st-color-text: light-dark(#0E1B2A, #DCE5EE);          /* ink */
  --st-color-text-muted: light-dark(#3A4757, #A9B8C7);    /* slate, mist */
  --st-color-line: light-dark(#0E1B2A, #5D7389);          /* 2px ink lines */
  --st-color-line-strong: var(--st-color-line);
  --st-color-accent: light-dark(#C93C00, #FF7A3D);        /* aloe-dark */
  --st-color-on-accent: light-dark(#FFFFFF, #0B1622);
  --st-color-accent-hover: light-dark(#A93200, #FF9663);
  --st-color-band: light-dark(#0E1B2A, #060E17);          /* ink bands, footer */
  --st-color-on-band: light-dark(#F7F3EA, #DCE5EE);
  --st-color-band-accent: light-dark(#FF7A3D, #FF7A3D);
  --st-color-featured: light-dark(#FFF1E8, #241A16);
  --st-color-placeholder: light-dark(#B3C6D8, #1D2B3A);   /* sky */
  --st-color-on-placeholder: light-dark(#1D2B3A, #A9B8C7);
  --st-color-ok: light-dark(#2E7D2C, #6CC46A);            /* green, tag */
  --st-color-bad: light-dark(#A3271F, #F08A80);
  --st-color-focus: light-dark(#003F7D, #8EC1F5);         /* sea */

  --st-line-width: 2px;
  --st-radius-card: 1rem;
  --st-radius-control: 0.75rem;
  --st-radius-big: 1.25rem;

  /* Jeffreys Bay's own: link blue and the hard shadow */
  --jb-link: light-dark(#003F7D, #8EC1F5);                /* sea */
  --jb-sky: light-dark(#B3C6D8, #1D2B3A);
  --jb-shadow-color: light-dark(#0E1B2A, #02070D);
  --jb-shadow-s: 3px 3px 0 var(--jb-shadow-color);
  --jb-shadow-m: 4px 4px 0 var(--jb-shadow-color);
  --jb-shadow-l: 6px 6px 0 var(--jb-shadow-color);
  --jb-wave: 20px;
  --jb-text-top: clamp(2.6rem, 6vw, 4.5rem);      /* home title */
  --jb-text-display: clamp(2.2rem, 5vw, 3.6rem);  /* page titles on sand and ink */
  --jb-on-band-accent: #0E1B2A;
  --jb-on-photo: #FFFFFF;
  --jb-photo-shade: linear-gradient(90deg, rgb(14 27 42 / .78), rgb(14 27 42 / .45));
  --jb-backdrop: rgb(14 27 42 / .55);
  --jb-accent-on-foam: light-dark(#A93200, #FF7A3D); /* orange text on foam, 4.5:1 */
}

/* ---------- Part 2: Jeffreys Bay's own looks ---------- */

/* Links are sea blue, buttons aloe orange (as today) */
.st-prose a, .st-contact a:not(.st-btn), .st-location__link, .st-section-head a:not(.st-btn), .st-breadcrumb a, .st-meta a { color: var(--jb-link); }
.st-prose a:hover, .st-contact a:not(.st-btn):hover, .st-section-head a:not(.st-btn):hover { color: var(--st-color-accent); }

/* Hard offset shadows on cards, buttons and boxes */
.st-card:not(.st-card--article), .st-btn, .st-callout, .st-contact, .st-panel, .jb-box, .st-search { box-shadow: var(--jb-shadow-m); }
.st-btn { border: var(--st-line-width) solid var(--st-color-line); transition: transform var(--st-motion, .15s), box-shadow var(--st-motion, .15s); }
.st-btn--primary { border-color: var(--st-color-line); }
.st-btn:hover { transform: translate(-1px, -1px); box-shadow: var(--jb-shadow-l); }
.st-card:not(.st-card--article) { transition: transform .15s, box-shadow .15s; }
.st-card:not(.st-card--article):hover { transform: translate(-2px, -2px); box-shadow: var(--jb-shadow-l); }
.st-card--article .st-photo { border: var(--st-line-width) solid var(--st-color-line); box-shadow: var(--jb-shadow-m); }
.st-card .st-photo { border-bottom: var(--st-line-width) solid var(--st-color-line); }
.st-callout, .st-header .st-hsearch { border: var(--st-line-width) solid var(--st-color-line); background: var(--st-color-surface); }

/* Header: light like today, with the round logo. The dark band stays for the footer. */
.st-header { background: var(--st-color-bg); color: var(--st-color-text); border-bottom: var(--st-line-width) solid var(--st-color-line); }
.st-header .st-logo { color: var(--st-color-text); display: inline-flex; align-items: center; gap: var(--st-space-2); }
.st-logo img { width: 40px; height: 40px; }
.st-header .st-nav a { color: var(--st-color-text); }
.st-header .st-nav a[aria-current="page"] { text-decoration-color: var(--st-color-accent); }
.st-header .st-theme-switch, .st-header .st-icon-btn { color: var(--st-color-text); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-control); }
.st-header .st-hsearch input { border: 0; background: transparent; }
.jb-signin { display: inline-flex; align-items: center; gap: var(--st-space-2); font-weight: var(--st-weight-strong); color: var(--jb-link); padding-inline: var(--st-space-2); }

/* Footer: ink band with the newsletter sign-up */
.st-footer .st-logo img { width: 36px; height: 36px; }
.st-footer .st-logo { display: inline-flex; align-items: center; gap: var(--st-space-2); }
.jb-foot-news { display: flex; flex-direction: column; gap: var(--st-space-3); max-width: 420px; }
.jb-foot-news p { margin: 0; }
.jb-foot-news__title { font-family: var(--st-font-display); font-size: var(--st-text-9); font-weight: 700; }
.jb-foot-news form { display: flex; gap: var(--st-space-2); flex-wrap: wrap; }
.jb-foot-news input { flex: 1 1 200px; min-height: var(--st-control-height); border-radius: var(--st-radius-control); border: var(--st-line-width) solid var(--st-color-on-band); padding: 0 var(--st-space-4); background: transparent; color: var(--st-color-on-band); font: inherit; }
.jb-foot-news input::placeholder { color: color-mix(in srgb, var(--st-color-on-band) 75%, transparent); }
.st-footer .st-btn { box-shadow: none; border-color: var(--st-color-band-accent); }

/* Home top: sand, big title, search, and a tilted photo */
.jb-top { padding-block: var(--st-section-space); }
.jb-top__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-8) var(--st-space-10); }
.jb-top__text { flex: 999 1 460px; display: flex; flex-direction: column; gap: var(--st-space-4); }
.jb-top__media { flex: 1 1 280px; max-width: 420px; }
.jb-top h1 { font-size: var(--jb-text-top); line-height: 1; letter-spacing: var(--st-tracking-title); margin: 0; }
.jb-top .st-lead { max-width: 560px; margin: 0; }
.jb-top .st-search { max-width: 640px; margin-top: var(--st-space-2); }
.st-search { border: var(--st-line-width) solid var(--st-color-line); }

/* Tilted photos (About today) */
.jb-tilt { transform: rotate(-2.5deg); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-big); overflow: hidden; box-shadow: var(--jb-shadow-l); }
.jb-tilt--right { transform: rotate(2deg); }
.jb-tilt .st-photo { border: 0; }

/* Full-width bands: foam, ink, and the wave edge */
.jb-band { padding-block: var(--st-section-space); }
.jb-band--foam { background: var(--st-color-sunk); }
.jb-band--ink { background: var(--st-color-band); color: var(--st-color-on-band); }
.jb-band--ink h2, .jb-band--ink h3 { color: var(--st-color-on-band); }
.jb-band--ink .st-lead, .jb-band--ink p { color: var(--st-color-on-band); }
.jb-band--ink .st-card p.st-eyebrow { color: var(--st-color-accent); }
.jb-band--ink .st-eyebrow { color: var(--st-color-band-accent); }
.jb-wave { position: relative; z-index: 1; margin-block: calc(var(--jb-wave) * -1); padding-block: calc(var(--st-section-space) + var(--jb-wave));
  --jb-wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 C20 0 60 0 80 10 S140 20 160 10 V20 H0Z'/%3E%3C/svg%3E") top left / 160px var(--jb-wave) repeat-x, linear-gradient(#000, #000) center / 100% calc(100% - var(--jb-wave) * 2 + 2px) no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 C20 20 60 20 80 10 S140 0 160 10 V0 H0Z'/%3E%3C/svg%3E") bottom left / 160px var(--jb-wave) repeat-x;
  -webkit-mask: var(--jb-wave-mask); mask: var(--jb-wave-mask); }
.jb-band .st-section-head { margin-bottom: var(--st-space-6); }
.jb-band__lead { margin: calc(var(--st-space-4) * -1) 0 var(--st-space-6); color: var(--st-color-text-muted); max-width: 640px; }
.jb-band--ink .jb-band__lead { color: color-mix(in srgb, var(--st-color-on-band) 85%, transparent); }

/* Numbered set tags: "SET 01 — THE WAVE" */
.jb-set { display: flex; align-items: center; gap: var(--st-space-3); font-size: var(--st-text-label); font-weight: 700; letter-spacing: var(--st-tracking-label); text-transform: uppercase; color: var(--st-color-accent); margin: 0 0 var(--st-space-3); }
.jb-set b { background: var(--st-color-accent); color: var(--st-color-on-accent); padding: 2px var(--st-space-2); border-radius: var(--st-radius-1); }
.jb-set::after { content: ""; flex: 1; max-width: 320px; height: var(--st-line-width); background: currentColor; opacity: .35; }
.jb-band--ink .jb-set { color: var(--st-color-band-accent); }
.jb-band--ink .jb-set b { background: var(--st-color-band-accent); color: var(--jb-on-band-accent); }

/* Advertisement panel */
.jb-ad { background: var(--st-color-sunk); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-big); padding: var(--st-space-4) var(--st-space-6) var(--st-space-6); }
.jb-ad__label { text-align: center; font-size: var(--st-text-caption); color: var(--st-color-text-muted); margin: 0 0 var(--st-space-3); }
.jb-ad__slots { display: grid; gap: var(--st-space-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.jb-ad__banner { display: block; border-radius: var(--st-radius-control); overflow: hidden; min-height: 150px; }
.jb-ad__house { border: var(--st-line-width) dashed var(--st-color-line); border-radius: var(--st-radius-control); padding: var(--st-space-5); display: flex; flex-direction: column; gap: var(--st-space-2); align-items: flex-start; justify-content: center; }
.jb-ad__house p { margin: 0; }
/* Ad spot Top (Settings › Ad spot): close under the breadcrumb, a little more room before the title. */
.st-breadcrumb + .jb-ad { margin-top: var(--st-space-4); }
.st-head > .jb-ad { margin-bottom: var(--st-space-4); }
.jb-ad__house strong { font-family: var(--st-font-display); font-size: var(--st-text-9); }

/* Generic bordered box with a hard shadow */
.jb-box { background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-big); padding: var(--st-space-7); }
.jb-property { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--st-space-5) var(--st-space-8); }
.jb-property > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: var(--st-space-2); }
.jb-property h2, .jb-property p { margin: 0; }

/* Numbers (Advertise rate card, Surf at a glance) */
.jb-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--st-space-4); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.jb-stats li { background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-card); padding: var(--st-space-5); box-shadow: var(--jb-shadow-s); display: flex; flex-direction: column; gap: var(--st-space-1); color: var(--st-color-text); }
.jb-stats b { font-family: var(--st-font-display); font-size: var(--st-text-13); line-height: 1.05; }
.jb-stats span { font-size: var(--st-text-small); color: var(--st-color-text-muted); }
.jb-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--st-space-3); font-size: var(--st-text-small); }
.jb-bars li { display: grid; grid-template-columns: 1fr auto; gap: var(--st-space-1) var(--st-space-3); }
.jb-bars i { grid-column: 1 / -1; height: 10px; border-radius: var(--st-radius-pill); background: var(--st-color-sunk); border: 1px solid var(--st-color-line); overflow: hidden; }
.jb-bars i::before { content: ""; display: block; height: 100%; width: var(--w); background: var(--st-color-accent); }

/* "Down the point" numbered list */
.jb-points { list-style: none; margin: 0; padding: 0; counter-reset: pt; }
.jb-points li { counter-increment: pt; display: flex; gap: var(--st-space-4); align-items: baseline; padding-block: var(--st-space-3); border-bottom: 1px solid var(--st-color-line); font-weight: 600; }
.jb-points li::before { content: counter(pt, decimal-leading-zero); color: var(--st-color-accent); font-size: var(--st-text-small); font-weight: 700; }

/* Surf spots: level tag on the card */
.jb-level, .jb-tag { align-self: flex-start; font-size: var(--st-text-label); font-weight: 700; text-transform: uppercase; letter-spacing: var(--st-tracking-label); padding: 2px var(--st-space-2); border-radius: var(--st-radius-1); border: var(--st-line-width) solid currentColor; margin: 0; }
.jb-level--easy { color: var(--st-color-ok); }
.jb-level--mid { color: var(--jb-link); }
.jb-level--hard { color: var(--st-color-bad); }
.jb-spot dl { margin: var(--st-space-2) 0 0; font-size: var(--st-text-small); display: grid; gap: var(--st-space-1); }
.jb-spot dt { font-weight: 700; display: inline; }
.jb-spot dd { display: inline; margin: 0; color: var(--st-color-text-muted); }
.jb-spot dl div { display: block; }

/* Contact and Advertise: text left, form right */
.jb-two { display: flex; flex-wrap: wrap; gap: var(--st-space-8) var(--st-space-10); align-items: flex-start; }
.jb-two > :first-child { flex: 1 1 340px; display: flex; flex-direction: column; gap: var(--st-space-4); }
.jb-two > :last-child { flex: 1.4 1 420px; }
.jb-two h1, .jb-two h2, .jb-two p { margin: 0; }

/* Page heads: the big display title. Spacing comes from Stoei Core's
   page-head tokens (--st-page-top, --st-head-space), not from here. */
.jb-pagehead h1, .jb-display { font-size: var(--jb-text-display); line-height: 1.02; letter-spacing: var(--st-tracking-title); }

@media (max-width: 640px) {
  :root { --st-section-space: var(--st-space-9); --st-page-top: var(--st-space-6); --st-head-space: var(--st-space-6); } /* 48px above and below sections, 24px around the page head, on phones */
  .jb-box { padding: var(--st-space-5); }
  .jb-tilt, .jb-tilt--right { transform: none; }
}

/* Article rails: four across on wide screens */
.jb-band .st-grid--articles { --st-grid-min: 230px; }

@media (max-width: 640px) {
  /* Phone header on one line: logo, switch, Sign in (icon), Menu */
  .st-header__inner { flex-wrap: wrap; }
  .st-header .st-logo { order: 0; }
  .st-header__actions { order: 1; gap: var(--st-space-1); }
  .st-header .st-hsearch { order: 2; flex-basis: 100%; }
  .jb-signin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* Home: the photo waits for bigger screens, so search sits near the top */
  .jb-top .jb-top__media { display: none; }
  /* Home rails swipe sideways on phones instead of one long column */
  .jb-rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--st-space-2) var(--st-space-3) 0; }
  .jb-rail > li { scroll-snap-align: start; }
}
.jb-free { background: var(--st-color-featured); border-color: var(--st-color-accent); }
/* Orange text on foam needs the darker orange to reach 4.5:1 */
.jb-band--foam .jb-set, .jb-band--foam > .st-container > .st-eyebrow { color: var(--jb-accent-on-foam); }
.jb-band--foam .jb-set b { background: var(--jb-accent-on-foam); }

/* Search box: one clean bar (input | area | button), no boxes inside a box */
.st-search { box-shadow: none; padding: var(--st-space-1); align-items: stretch; gap: 0; }
.st-search__q { min-height: var(--st-control-height); }
.st-search__area { border: 0; border-left: var(--st-line-width) solid var(--st-color-line); border-radius: 0; background: transparent; min-height: var(--st-control-height); flex: 0 1 190px; }
.st-search .st-btn { box-shadow: none; border-color: transparent; min-height: var(--st-control-height); padding: 0 var(--st-space-6); margin-left: var(--st-space-1); }
.st-search .st-btn:hover { transform: none; box-shadow: none; }
@media (max-width: 640px) {
  .st-search__area { border-left: 0; border-top: 1px solid var(--st-color-line); }
  .st-search .st-btn { margin: var(--st-space-1) 0 0; }
}

/* Full-width photo masthead (About, Surf, Advertise), as today */
.jb-mast { position: relative; isolation: isolate; overflow: hidden; background: var(--st-color-band); color: var(--jb-on-photo); padding-block: var(--st-space-11) calc(var(--st-space-11) + var(--jb-wave)); }
.jb-mast__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.jb-mast::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--jb-photo-shade); }
.jb-mast__inner { display: flex; flex-direction: column; gap: var(--st-space-4); }
.jb-mast h1, .jb-mast p { margin: 0; color: var(--jb-on-photo); }
.jb-mast .st-eyebrow { color: var(--jb-on-photo); opacity: .85; }
.jb-mast .st-lead { max-width: 620px; }
.jb-mast .st-btn { box-shadow: none; }
/* The page column keeps the same space above and below its sections (Stoei Core rule);
   next to a wave band it adds the wave's height, since the band overlaps it by that much. */
.jb-wave + .st-page { padding-top: calc(var(--st-section-space) + var(--jb-wave)); }
.st-page:has(+ .jb-wave) { padding-bottom: calc(var(--st-section-space) + var(--jb-wave)); }

/* Articles list: three across, like the rails */
.jb-grid-articles { --st-grid-min: 280px; }

/* Phone menu: a panel from the right with a dimmed page, as today */
.jb-nav-cta { display: none; }
@media (max-width: 959px) {
  .st-js .st-nav.is-open { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: 80; margin: 0; background: var(--st-color-surface); border-left: var(--st-line-width) solid var(--st-color-line); padding: calc(var(--st-space-11) + var(--st-space-2)) var(--st-space-6) var(--st-space-7); overflow-y: auto; box-shadow: var(--jb-shadow-l); }
  .st-js .st-nav.is-open ul { padding: 0; }
  .st-js .st-nav.is-open li { border-bottom: 1px solid color-mix(in srgb, var(--st-color-line) 30%, transparent); }
  .st-js .st-nav.is-open a { font-size: var(--st-text-7); font-weight: 600; padding-block: var(--st-space-3); }
  .st-js .st-nav.is-open .jb-nav-cta { display: block; border: 0; margin-top: var(--st-space-6); }
  .st-js .st-nav.is-open .jb-nav-cta .st-btn { display: flex; width: 100%; color: var(--st-color-on-accent); font-size: var(--st-text-6); }
  .st-js .st-header:has(.st-nav.is-open)::after { content: ""; position: fixed; inset: 0; z-index: 70; background: var(--jb-backdrop); }
  .st-js .st-menu-btn[aria-expanded="true"] { position: fixed; top: var(--st-space-5); right: calc(min(86vw, 360px) - 64px); z-index: 90; background: var(--st-color-band); color: var(--st-color-on-band); border-color: var(--st-color-band); }
}

/* ---------- Signed-in pages (Stoei Market on Stoei CMS) ---------- */
.jb-acc__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--st-space-3) var(--st-space-6); }
.jb-acc__head h1 { margin: 0; }
.jb-acc > .jb-acc__tabs { margin-top: var(--st-space-6); padding-bottom: var(--st-space-5); border-bottom: var(--st-line-width) solid var(--st-color-line); }
.jb-acc > .jb-acc__tabs + * { margin-top: var(--st-space-8); }
.jb-wide { width: 100%; justify-content: center; }
.jb-signin-box { display: flex; flex-direction: column; gap: var(--st-space-4); max-width: 440px; }
.jb-or { display: flex; align-items: center; gap: var(--st-space-3); color: var(--st-color-text-muted); font-size: var(--st-text-small); margin: 0; }
.jb-or::before, .jb-or::after { content: ""; flex: 1; height: 1px; background: var(--st-color-line); opacity: .4; }
.jb-rows { list-style: none; margin: var(--st-space-5) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--st-space-4); }
.jb-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-4) var(--st-space-6); background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-card); padding: var(--st-space-4); box-shadow: var(--jb-shadow-s); }
.jb-row > .st-photo { width: 140px; flex: none; border-radius: var(--st-radius-control); border: 0; }
.jb-row__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: var(--st-space-1); min-width: 0; }
.jb-row__text h3, .jb-row__text p { margin: 0; }
.jb-row__text h3 { font-size: var(--st-text-9); }
.jb-row__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--st-space-3); }
.jb-row__actions .st-btn { min-height: var(--st-control-height-sm, 36px); padding-inline: var(--st-space-4); font-size: var(--st-text-small); }
.jb-tag--ok { color: var(--st-color-ok); }
.jb-tag--warn { color: var(--st-color-accent); }
.jb-tag--info { color: var(--jb-link); }
.jb-switch { display: inline-flex; align-items: center; gap: var(--st-space-2); font-weight: 600; font-size: var(--st-text-small); }
.jb-switch input { width: 2.4em; height: 1.3em; accent-color: var(--st-color-ok); }
.jb-formwrap > * + * { margin-top: var(--st-space-4); }
.jb-formwrap .st-form { max-width: 760px; }
.jb-four { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--st-space-4); }
.jb-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--st-space-2) var(--st-space-5); }
.jb-price { font-family: var(--st-font-display); font-weight: 700; font-size: var(--st-text-10); margin: 0; }
.jb-price small { font-size: var(--st-text-small); font-weight: 500; color: var(--st-color-text-muted); }
.jb-price--lg { font-size: var(--st-text-13); }
.jb-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--st-space-2); }
.jb-ticks li::before { content: "✓"; color: var(--st-color-ok); font-weight: 700; margin-right: var(--st-space-2); }
.jb-ticks.jb-cols { display: grid; }
.jb-facts { margin: 0; font-weight: 600; font-size: var(--st-text-small); }
.jb-keyfacts { list-style: none; margin: var(--st-space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--st-space-3); }
.jb-keyfacts li { border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-control); padding: var(--st-space-2) var(--st-space-4); background: var(--st-color-surface); font-size: var(--st-text-small); }
.jb-keyfacts b { display: block; font-family: var(--st-font-display); font-size: var(--st-text-10); }
.jb-agent { display: flex; align-items: center; gap: var(--st-space-3); margin-bottom: var(--st-space-4); }
.jb-agent p { margin: 0; }
.jb-avatar { flex: none; width: 52px; height: 52px; border-radius: var(--st-radius-full); background: var(--jb-sky); color: var(--st-color-text); border: var(--st-line-width) solid var(--st-color-line); display: grid; place-items: center; font-family: var(--st-font-display); font-weight: 700; }
.jb-avatar--lg { width: 96px; height: 96px; font-size: var(--st-text-11); }
.jb-agency { display: flex; flex-wrap: wrap; gap: var(--st-space-6); align-items: flex-start; }
.jb-agency > .st-stack { flex: 1 1 320px; }
.st-listing__aside .st-contact .st-actions { flex-direction: column; margin-bottom: var(--st-space-4); }
@media (max-width: 640px) { .jb-row > .st-photo { width: 100%; } }
.st-contact .st-form { padding: 0; }

/* Contact buttons on business and accommodation cards: Stoei Core's .st-card__contact
   (side by side only when the card is wide enough, else stacked); here just the shadow. */
.st-card__contact .st-btn { box-shadow: var(--jb-shadow-s); }

/* ---------- Stay listings: features and units (site package step 2, 17 Nov 2026) ---------- */
/* Features: the ticked list from the property pages, in two columns where there is room. */
.jb-ticks--wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); column-gap: var(--st-space-6); }
.jb-units-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--st-space-1) var(--st-space-4); }
.jb-units-head h2 { margin: 0; }
.jb-units-head p { margin: 0; }
/* Units: one row each, opening to its photos, text and features. */
.jb-units { display: grid; gap: var(--st-space-4); margin-top: var(--st-space-5); }
.jb-unit { background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-card); box-shadow: var(--jb-shadow-s); overflow: hidden; }
.jb-unit__head { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--st-space-4); padding: var(--st-space-3); padding-right: var(--st-space-5); min-height: var(--st-touch); }
.jb-unit__head::-webkit-details-marker { display: none; }
.jb-unit__head::after { content: "+"; margin-left: auto; flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: var(--st-line-width) solid var(--st-color-line); border-radius: 50%; font: 700 1.4rem/1 var(--st-font-body); color: var(--st-color-accent); }
.jb-unit[open] > .jb-unit__head::after { content: "−"; background: var(--st-color-accent); color: var(--st-color-on-accent); }
.jb-unit[open] > .jb-unit__head { border-bottom: var(--st-line-width) solid var(--st-color-line); }
.jb-unit__head:hover .jb-unit__title { color: var(--st-color-accent); }
.jb-unit__head:focus-visible { outline: 3px solid var(--st-color-accent); outline-offset: -3px; }
.jb-unit__thumb { flex: none; width: 96px; height: 54px; object-fit: cover; border-radius: calc(var(--st-radius-card) / 2); border: var(--st-line-width) solid var(--st-color-line); }
.jb-unit__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jb-unit__title { font-family: var(--st-font-display); font-weight: 700; font-size: var(--st-text-8); line-height: 1.2; }
.jb-unit__meta { color: var(--st-color-text-muted); font-size: var(--st-text-small); }
.jb-unit__body { display: grid; gap: var(--st-space-5); padding: var(--st-space-5); }
.jb-unit__body p { margin: 0; max-width: var(--st-measure-reading); }
.jb-unit__photos { list-style: none; margin: 0; padding: 0 0 var(--st-space-2); display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: var(--st-space-3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.jb-unit__photos li { scroll-snap-align: start; }
.jb-unit__photos .st-photo { border-radius: calc(var(--st-radius-card) / 1.5); }
@media (max-width: 520px) {
  .jb-unit__thumb { width: 72px; height: 48px; }
  .jb-unit__body { padding: var(--st-space-4); }
}

/* ---------- Part 3: recipe parts (starter kit) ---------- */

/* Directory recipe: every photo of a listing, and the listing logo beside the name */
.st-grid--photos { --st-grid-min: 150px; }
.st-grid--photos .st-photo { border-radius: var(--st-radius-card); }
.st-listing-head__name { display: flex; align-items: center; gap: var(--st-space-4); }
.st-listing-logo { flex: none; width: 72px; height: 72px; object-fit: contain; padding: 6px; border-radius: var(--st-radius-control); border: var(--st-line-width) solid var(--st-color-line); background: #fff; }
@media (max-width: 600px) { .st-listing-logo { width: 56px; height: 56px; padding: 4px; } }

/* FAQ recipe: /faq and question pages */
.st-page > .st-faq + .st-faq { margin-top: var(--st-space-7); }
.st-faq[id] { scroll-margin-top: var(--st-scroll-offset); }
.st-faq-about { margin-top: var(--st-space-6); display: flex; flex-direction: column; gap: var(--st-space-2); }
.st-faq-about p { margin: 0; }
.st-faq-links { list-style: none; margin: 0; padding: 0; border-top: var(--st-line-width) solid var(--st-color-line); }
.st-faq-links li { border-bottom: var(--st-line-width) solid var(--st-color-line); }
.st-faq-links a { display: flex; align-items: center; min-height: var(--st-control-height); padding-block: var(--st-space-3); font-weight: var(--st-weight-strong); font-size: var(--st-text-6); color: inherit; text-decoration: none; }
.st-faq-links a:hover { color: var(--st-color-accent); }
.st-faq-links a::after { content: "→"; margin-left: auto; padding-left: var(--st-space-4); color: var(--st-color-accent); }
/* Question pages and /faq: one centred column, so the title, answers and lists line up. */
.st-faq-col > * { max-width: var(--st-measure); margin-inline: auto; width: 100%; }
.st-faq-col .st-reading { max-width: none; margin-inline: 0; }
.st-faq-col > .st-article + section { margin-top: var(--st-space-8); }

/* ---------- Part 4: site package templates (step 3, 17 Nov 2026) ---------- */
/* Small headings inside boxes (About and Surf list boxes, Contact's "Want to advertise?") */
.jb-box__title { font-size: var(--st-text-10); margin: 0 0 var(--st-space-3); }
/* Home: the Property box under the Advertisement panel */
.jb-home-property { margin-block: var(--st-space-8) var(--st-space-10); }
.jb-top + .st-container > .jb-ad { margin-top: 0; }
/* Info cards: a button sits at the bottom of its card */
.jb-card-btn { align-self: flex-start; margin-top: auto; }
/* "All …" links on a dark band */
.jb-band--ink .st-section-head a { color: var(--st-color-band-accent); }
.jb-stats.st-after-head { margin-top: var(--st-space-6); }
