/* Sizes and placement chosen in the site editor's panel (apps/landing/styles.py writes them as
   data-s-* attributes; nothing typed by an editor reaches this file). Shared by the platform's
   site and organizations' websites. Phones: every block takes the full row. */

/* Images never grow past their place, and never past the width chosen for them. */
.s-section img:not(.s-bg) { max-width: min(100%, var(--s-img, 100%)); height: auto; }
[style*="--s-img"] .s-split-media, [style*="--s-img"] .s-hero-media { max-width: var(--s-img); justify-self: center; }

/* --- Sections ------------------------------------------------------------------------------ */
.s-section[data-s-width="narrow"] .s-inner { max-width: 760px; }
.s-section[data-s-width="wide"] .s-inner { width: min(1520px, 100% - 32px); }
.s-section[data-s-width="full"] .s-inner { width: calc(100% - 32px); max-width: none; }
.s-section[data-s-height="quarter"] { --s-hh: 25svh; min-height: 25vh; min-height: 25svh; }
.s-section[data-s-height="s"] { --s-hh: 40svh; min-height: 40vh; }
.s-section[data-s-height="half"] { --s-hh: 50svh; min-height: 50vh; min-height: 50svh; }
.s-section[data-s-height="m"] { --s-hh: 60svh; min-height: 60vh; }
.s-section[data-s-height="l"] { --s-hh: 80svh; min-height: 80vh; }
.s-section[data-s-height="screen"] { --s-hh: 100svh; min-height: 100vh; min-height: 100svh; }
.s-section[style*="--s-sh"] { --s-hh: var(--s-sh); min-height: var(--s-sh); }
.s-section[data-s-height], .s-section[style*="--s-sh"] { display: flex; align-items: center; }
/* The content keeps the width chosen for it (normal, narrow, wide, full): it may shrink on a
   small screen, never grow past it (flex: 1 made it as wide as the screen). */
.s-section[data-s-height] > .s-inner, .s-section[style*="--s-sh"] > .s-inner { flex: 0 1 auto; min-width: 0; }
.s-section[data-s-pad="none"] { padding-block: 0; }
.s-section[data-s-pad="s"] { padding-block: 32px; }
.s-section[data-s-pad="m"] { padding-block: 64px; }
.s-section[data-s-pad="l"] { padding-block: 112px; }
.s-section[data-s-pad="xl"] { padding-block: 160px; }
.s-section[data-s-align="start"] .s-head { margin-inline: 0; text-align: left; }
.s-section[data-s-align="start"] .s-head .s-lead { margin-inline: 0; }
.s-section[data-s-align="start"] .s-actions { justify-content: flex-start; }
.s-section[data-s-align="center"] .s-inner { text-align: center; }
.s-section[data-s-align="center"] .s-actions { justify-content: center; }
.s-section[data-s-align="end"] .s-head { margin-inline: auto 0; text-align: right; }
.s-section[data-s-align="end"] .s-actions { justify-content: flex-end; }
.s-section[data-s-gap="s"] { --s-gap: 12px; }
.s-section[data-s-gap="m"] { --s-gap: 24px; }
.s-section[data-s-gap="l"] { --s-gap: 44px; }
.s-section[data-s-gap] .s-grid, .s-section[data-s-gap] .s-free, .s-section[data-s-gap] .s-group { gap: var(--s-gap); }

/* --- Free layout and groups ---------------------------------------------------------------- */
.s-free, .s-group { display: flex; flex-wrap: wrap; gap: var(--s-gap, 24px); align-items: flex-start; }
.s-free > .s-b, .s-group > .s-b { flex: 1 1 100%; min-width: 0; }
.s-b[data-s-direction="column"] > .s-group { flex-direction: column; }
.s-b[data-s-direction="column"] > .s-group > .s-b { flex-basis: auto; width: 100%; }
.s-b-group > .s-group { width: 100%; }
.s-b-title { font-family: var(--display, inherit); font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; }
.s-b-text { margin: 0; line-height: 1.65; }
.s-b-media { margin: 0; }
.s-b-media img { display: block; width: 100%; border-radius: inherit; }
.s-b-media figcaption { font-size: 0.9rem; opacity: 0.75; margin-top: 8px; }
.s-b-spacer { height: 48px; }
.s-b-divider { border: 0; border-top: 1px solid var(--line, rgb(0 0 0 / 0.12)); margin: 8px 0; width: 100%; }
.s-b-card { padding: 22px; border-radius: var(--card-radius, var(--radius, 14px)); background: var(--t-card, var(--card, rgb(255 255 255 / 0.6))); border: 1px solid var(--t-card-line, transparent); box-shadow: var(--card-shadow, none); color: var(--t-card-ink, inherit); }

@media (min-width: 760px) {
  .s-b[data-s-width="1/4"] { flex: 0 1 calc(25% - var(--s-gap, 24px) * 3 / 4); }
  .s-b[data-s-width="1/3"] { flex: 0 1 calc(33.333% - var(--s-gap, 24px) * 2 / 3); }
  .s-b[data-s-width="1/2"] { flex: 0 1 calc(50% - var(--s-gap, 24px) / 2); }
  .s-b[data-s-width="2/3"] { flex: 0 1 calc(66.666% - var(--s-gap, 24px) / 3); }
  .s-b[data-s-width="3/4"] { flex: 0 1 calc(75% - var(--s-gap, 24px) / 4); }
  .s-b[data-s-width="full"] { flex: 1 1 100%; }
}

/* --- Elements added to a section of any kind (templates/landing/site/_extras.html) -------- */
.s-extras { margin-top: clamp(20px, 3vw, 32px); }
.s-extras.is-end { margin-top: clamp(28px, 4vw, 48px); }
.s-extras > .s-b-button:not([data-s-width]), .s-extras > .s-b-figure:not([data-s-width]) { flex: 0 0 auto; }
.s-head:not(.is-left) .s-extras, .layout-center .s-extras, .s-cta .s-extras, .s-section[data-s-align="center"] .s-extras { justify-content: center; }
.s-head:not(.is-left) .s-extras > .s-b, .layout-center .s-extras > .s-b, .s-cta .s-extras > .s-b { text-align: center; }
.s-section[data-s-align="end"] .s-extras { justify-content: flex-end; }
.s-inner:has(> .s-head:not(.is-left)) > .s-extras.is-end { justify-content: center; }
.s-inner:has(> .s-head:not(.is-left)) > .s-extras.is-end > .s-b { text-align: center; }
.s-actions + .s-extras { margin-top: 14px; }
.s-section[data-s-align="start"] .s-extras { justify-content: flex-start; }

/* --- Blocks (any section) ------------------------------------------------------------------ */
[data-block][data-s-align="start"] { text-align: left; }
[data-block][data-s-align="center"] { text-align: center; }
[data-block][data-s-align="center"] .s-card-icon, [data-block][data-s-align="center"] img { margin-inline: auto; }
[data-block][data-s-align="end"] { text-align: right; }
[data-block][data-s-align="end"] img { margin-left: auto; }
[data-block][data-s-valign="center"] { align-self: center; }
[data-block][data-s-valign="end"] { align-self: flex-end; }
[data-block][data-s-pad="none"] { padding: 0; }
[data-block][data-s-pad="s"] { padding: 10px; }
[data-block][data-s-pad="m"] { padding: 22px; }
[data-block][data-s-pad="l"] { padding: 36px; }
[data-block][data-s-pad="xl"] { padding: 52px; }
[data-block][data-s-card="none"] { background: none; box-shadow: none; border: 0; }
[data-block][data-s-card="outline"] { background: none; box-shadow: none; border: 1px solid var(--line, rgb(0 0 0 / 0.14)); border-radius: var(--radius, 14px); }
[data-block][data-s-card="filled"] { background: var(--card, rgb(255 255 255 / 0.7)); box-shadow: none; border-radius: var(--radius, 14px); }
[data-block][data-s-card="raised"] { background: var(--card, #fff); box-shadow: var(--shadow, 0 18px 40px -24px rgb(0 0 0 / 0.4)); border-radius: var(--radius, 14px); }
[data-block][data-s-text-size="s"] { font-size: 0.9rem; }
[data-block][data-s-text-size="l"] { font-size: 1.15rem; }
[data-block][data-s-text-size="xl"] { font-size: 1.35rem; }

/* Corners and image shapes, for sections and blocks alike. */
[data-s-radius="none"] img, [data-s-radius="none"][data-block], [data-s-radius="none"] .s-split-media { border-radius: 0; }
[data-s-radius="s"] img, [data-s-radius="s"][data-block], [data-s-radius="s"] .s-split-media { border-radius: 6px; }
[data-s-radius="m"] img, [data-s-radius="m"][data-block], [data-s-radius="m"] .s-split-media { border-radius: 14px; }
[data-s-radius="l"] img, [data-s-radius="l"][data-block], [data-s-radius="l"] .s-split-media { border-radius: 28px; }
[data-s-image-shape] img:not(.s-bg), [data-s-image-shape] .s-split-media { object-fit: cover; height: auto; }
[data-s-image-shape="square"] img:not(.s-bg), [data-s-image-shape="square"] .s-split-media { aspect-ratio: 1 / 1; }
[data-s-image-shape="landscape"] img:not(.s-bg), [data-s-image-shape="landscape"] .s-split-media { aspect-ratio: 4 / 3; }
[data-s-image-shape="wide"] img:not(.s-bg), [data-s-image-shape="wide"] .s-split-media { aspect-ratio: 16 / 9; }
[data-s-image-shape="portrait"] img:not(.s-bg), [data-s-image-shape="portrait"] .s-split-media { aspect-ratio: 3 / 4; }
[data-s-image-shape="circle"] img:not(.s-bg) { aspect-ratio: 1 / 1; border-radius: 50%; }
[data-s-image-fit="contain"] img:not(.s-bg) { object-fit: contain; }
[data-s-image-shape] .s-split-media img { height: 100%; }

/* Show on: hidden for visitors on that screen; the editor still shows it, marked. */
@media (max-width: 759px) { [data-s-hide-on="mobile"]:not(.is-editing *) { display: none !important; } }
@media (min-width: 760px) { [data-s-hide-on="desktop"]:not(.is-editing *) { display: none !important; } }
.is-editing [data-s-hide-on] { outline: 2px dashed rgb(160 120 40 / 0.6); outline-offset: -2px; }

/* --- Page navigation: breadcrumbs and On this page ----------------------------------------- */
.s-pagenav { position: sticky; top: var(--head-h, 72px); z-index: 20; background: color-mix(in srgb, var(--paper, #fff) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line, rgb(0 0 0 / 0.1)); }
.s-pagenav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding-block: 10px; font-size: 0.9rem; }
.s-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft, inherit); }
.s-crumbs li + li::before { content: "›"; margin-right: 6px; opacity: 0.6; }
.s-crumbs a { color: inherit; }
.s-onpage { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.s-onpage a { display: inline-block; white-space: nowrap; padding: 6px 12px; border-radius: 999px; color: var(--ink, inherit); text-decoration: none; }
.s-onpage a:hover { background: var(--brand-wash, rgb(0 0 0 / 0.06)); color: var(--brand, inherit); }

/* --- Columns: a section's blocks (or a group's) in the number of columns chosen in the panel,
   or as many as fit (Auto-fit); each block takes 1 to 12 of them, or the whole row. ------- */
[data-s-cols="1"] { --s-cols: 1; } [data-s-cols="2"] { --s-cols: 2; } [data-s-cols="3"] { --s-cols: 3; }
[data-s-cols="4"] { --s-cols: 4; } [data-s-cols="5"] { --s-cols: 5; } [data-s-cols="6"] { --s-cols: 6; }
[data-s-cols="12"] { --s-cols: 12; }
.s-section[data-s-cols] .s-blocks, .s-b[data-s-cols] > .s-group {
  display: grid; grid-template-columns: repeat(var(--s-cols), minmax(0, 1fr)); justify-content: stretch;
}
.s-section[data-s-cols="auto"] .s-blocks, .s-b[data-s-cols="auto"] > .s-group {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--s-min, 240px)), 1fr));
}
.s-section[data-s-cols] .s-blocks > *, .s-b[data-s-cols] > .s-group > * { min-width: 0; width: auto; }
@media (min-width: 960px) {
  .s-section[data-s-head="side"] .s-checklist { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

/* How many columns a block takes (the panel and the handle offer no more than there are). */
.s-blocks > [data-s-span="1"], .s-group > [data-s-span="1"] { grid-column: span 1; }
.s-blocks > [data-s-span="2"], .s-group > [data-s-span="2"] { grid-column: span 2; }
.s-blocks > [data-s-span="3"], .s-group > [data-s-span="3"] { grid-column: span 3; }
.s-blocks > [data-s-span="4"], .s-group > [data-s-span="4"] { grid-column: span 4; }
.s-blocks > [data-s-span="5"], .s-group > [data-s-span="5"] { grid-column: span 5; }
.s-blocks > [data-s-span="6"], .s-group > [data-s-span="6"] { grid-column: span 6; }
.s-blocks > [data-s-span="7"], .s-group > [data-s-span="7"] { grid-column: span 7; }
.s-blocks > [data-s-span="8"], .s-group > [data-s-span="8"] { grid-column: span 8; }
.s-blocks > [data-s-span="9"], .s-group > [data-s-span="9"] { grid-column: span 9; }
.s-blocks > [data-s-span="10"], .s-group > [data-s-span="10"] { grid-column: span 10; }
.s-blocks > [data-s-span="11"], .s-group > [data-s-span="11"] { grid-column: span 11; }
.s-blocks > [data-s-span="12"], .s-group > [data-s-span="12"] { grid-column: span 12; }
.s-blocks > [data-s-span="full"], .s-group > [data-s-span="full"] { grid-column: 1 / -1; }
/* A free layout switched to the fine grid keeps its fraction widths as spans of 12. */
[data-s-cols="12"] .s-blocks > [data-s-width="1/4"]:not([data-s-span]), [data-s-cols="12"] > .s-group > [data-s-width="1/4"]:not([data-s-span]) { grid-column: span 3; }
[data-s-cols="12"] .s-blocks > [data-s-width="1/3"]:not([data-s-span]), [data-s-cols="12"] > .s-group > [data-s-width="1/3"]:not([data-s-span]) { grid-column: span 4; }
[data-s-cols="12"] .s-blocks > [data-s-width="1/2"]:not([data-s-span]), [data-s-cols="12"] > .s-group > [data-s-width="1/2"]:not([data-s-span]) { grid-column: span 6; }
[data-s-cols="12"] .s-blocks > [data-s-width="2/3"]:not([data-s-span]), [data-s-cols="12"] > .s-group > [data-s-width="2/3"]:not([data-s-span]) { grid-column: span 8; }
[data-s-cols="12"] .s-blocks > [data-s-width="3/4"]:not([data-s-span]), [data-s-cols="12"] > .s-group > [data-s-width="3/4"]:not([data-s-span]) { grid-column: span 9; }
[data-s-cols="12"] .s-blocks > [data-s-width="full"]:not([data-s-span]), [data-s-cols="12"] > .s-group > [data-s-width="full"]:not([data-s-span]) { grid-column: 1 / -1; }

/* Image share beside the text (text and image, hero), in the order the layout puts them. */
@media (min-width: 900px) {
  .s-section[data-s-media="1/4"] .s-split:not(.no-image), .s-section[data-s-media="1/4"] .s-hero-grid.has-image:not(.layout-center) { grid-template-columns: 3fr 1fr; }
  .s-section[data-s-media="1/3"] .s-split:not(.no-image), .s-section[data-s-media="1/3"] .s-hero-grid.has-image:not(.layout-center) { grid-template-columns: 2fr 1fr; }
  .s-section[data-s-media="1/2"] .s-split:not(.no-image), .s-section[data-s-media="1/2"] .s-hero-grid.has-image:not(.layout-center) { grid-template-columns: 1fr 1fr; }
  .s-section[data-s-media="2/3"] .s-split:not(.no-image), .s-section[data-s-media="2/3"] .s-hero-grid.has-image:not(.layout-center) { grid-template-columns: 1fr 2fr; }
  .s-section[data-s-media="3/4"] .s-split:not(.no-image), .s-section[data-s-media="3/4"] .s-hero-grid.has-image:not(.layout-center) { grid-template-columns: 1fr 3fr; }
  .s-section[data-s-media="1/4"] .layout-left:not(.no-image) { grid-template-columns: 1fr 3fr; }
  .s-section[data-s-media="1/3"] .layout-left:not(.no-image) { grid-template-columns: 1fr 2fr; }
  .s-section[data-s-media="2/3"] .layout-left:not(.no-image) { grid-template-columns: 2fr 1fr; }
  .s-section[data-s-media="3/4"] .layout-left:not(.no-image) { grid-template-columns: 3fr 1fr; }
}

/* Smaller screens: many columns become two, then one (unless "Keep the columns"). */
@media (max-width: 959px) {
  .s-section:is([data-s-cols="4"], [data-s-cols="5"], [data-s-cols="6"]):not([data-s-stack="keep"]),
  .s-b:is([data-s-cols="4"], [data-s-cols="5"], [data-s-cols="6"]):not([data-s-stack="keep"]) { --s-cols: 2; }
  .s-section:is([data-s-cols="4"], [data-s-cols="5"], [data-s-cols="6"]):not([data-s-stack="keep"]) .s-blocks > [data-s-span]:not([data-s-span="1"]),
  .s-b:is([data-s-cols="4"], [data-s-cols="5"], [data-s-cols="6"]):not([data-s-stack="keep"]) > .s-group > [data-s-span]:not([data-s-span="1"]) { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .s-section[data-s-cols]:not([data-s-stack="keep"]) .s-blocks, .s-b[data-s-cols]:not([data-s-stack="keep"]) > .s-group { grid-template-columns: minmax(0, 1fr); }
  .s-section[data-s-cols]:not([data-s-stack="keep"]) .s-blocks > *, .s-b[data-s-cols]:not([data-s-stack="keep"]) > .s-group > * { grid-column: auto; }
}
@media (min-width: 700px) {
  .s-section:not([data-s-cols]) .s-blocks.cols-1 { --s-cols: 1; }
  .s-section:not([data-s-cols]) .s-blocks.cols-2 { --s-cols: 2; }
  .s-section:not([data-s-cols]) .s-blocks.cols-3 { --s-cols: 3; }
  .s-section:not([data-s-cols]) .s-blocks.cols-4 { --s-cols: 4; }
}

/* --- Margins: space outside a section, block or text ---------------------------------------- */
[data-s-margin-top="none"], [data-t-margin-top="none"] { margin-top: 0 !important; }
[data-s-margin-top="s"], [data-t-margin-top="s"] { margin-top: 12px !important; }
[data-s-margin-top="m"], [data-t-margin-top="m"] { margin-top: 28px !important; }
[data-s-margin-top="l"], [data-t-margin-top="l"] { margin-top: 56px !important; }
[data-s-margin-top="xl"], [data-t-margin-top="xl"] { margin-top: 96px !important; }
[data-s-margin-bottom="none"], [data-t-margin-bottom="none"] { margin-bottom: 0 !important; }
[data-s-margin-bottom="s"], [data-t-margin-bottom="s"] { margin-bottom: 12px !important; }
[data-s-margin-bottom="m"], [data-t-margin-bottom="m"] { margin-bottom: 28px !important; }
[data-s-margin-bottom="l"], [data-t-margin-bottom="l"] { margin-bottom: 56px !important; }
[data-s-margin-bottom="xl"], [data-t-margin-bottom="xl"] { margin-bottom: 96px !important; }
[data-s-margin-sides="none"], [data-t-margin-sides="none"] { margin-inline: 0 !important; }
[data-s-margin-sides="s"], [data-t-margin-sides="s"] { margin-inline: 12px !important; }
[data-s-margin-sides="m"], [data-t-margin-sides="m"] { margin-inline: 28px !important; }
[data-s-margin-sides="l"], [data-t-margin-sides="l"] { margin-inline: 56px !important; }
[data-s-margin-sides="xl"], [data-t-margin-sides="xl"] { margin-inline: 96px !important; }

/* --- The heading area and single texts: as wide as chosen (the whole row when asked) -------- */
.s-section[data-s-head-width="wide"] .s-head, .s-section[data-s-head-width="wide"] .s-cta { max-width: 1100px; }
.s-section[data-s-head-width="full"] .s-head, .s-section[data-s-head-width="full"] .s-cta { max-width: none; }
.s-section[data-s-head-width] .s-cta .s-lead { max-width: none; }
.s-cta:has(> [data-t-width="wide"]) { max-width: 1100px; }
.s-cta:has(> [data-t-width="full"]) { max-width: none; }
.s-section[data-s-head-width] .s-head .s-lead { max-width: none; }
.s-head:has(> [data-t-width="wide"]) { max-width: 1100px; }
.s-head:has(> [data-t-width="full"]) { max-width: none; }
[data-t-width="narrow"] { max-width: 40ch !important; }
[data-t-width="wide"] { max-width: 90ch !important; }
[data-t-width="full"] { max-width: none !important; width: 100%; }
[data-t-align="start"] { text-align: left !important; margin-left: 0; margin-right: auto; }
[data-t-align="center"] { text-align: center !important; margin-inline: auto; }
[data-t-align="end"] { text-align: right !important; margin-left: auto; margin-right: 0; }
[data-t-size="s"] { font-size: 0.85em !important; }
[data-t-size="l"] { font-size: 1.25em !important; }
[data-t-size="xl"] { font-size: 1.6em !important; }
[data-t-size="xxl"] { font-size: 2.2em !important; line-height: 1.1; }
[data-t-weight="normal"] { font-weight: 400 !important; }
[data-t-weight="bold"] { font-weight: 700 !important; }
@media (max-width: 639px) {
  [data-s-margin-sides], [data-t-margin-sides] { margin-inline: 0 !important; }
  [data-s-margin-top="xl"], [data-t-margin-top="xl"] { margin-top: 48px !important; }
  [data-s-margin-bottom="xl"], [data-t-margin-bottom="xl"] { margin-bottom: 48px !important; }
}

/* --- Typography of one text (editor panel: Colour, Typeface, Letters, Style, spacing) ------ */
[data-t-color="ink"] { color: var(--ink, #2f2520) !important; }
[data-t-color="muted"] { color: var(--ink-soft, #6b5f57) !important; }
[data-t-color="brand"] { color: var(--brand, #7a1e16) !important; }
[data-t-color="accent"] { color: var(--accent, #b58a4c) !important; }
[data-t-color="light"] { color: #fff !important; }
[data-t-font="display"] { font-family: var(--display, Georgia, serif) !important; }
[data-t-font="body"] { font-family: var(--sans, system-ui, sans-serif) !important; }
[data-t-font="mono"] { font-family: ui-monospace, "Courier New", monospace !important; }
[data-t-case="upper"] { text-transform: uppercase !important; }
[data-t-case="small"] { font-variant-caps: all-small-caps !important; }
[data-t-case="title"] { text-transform: capitalize !important; }
[data-t-style="italic"] { font-style: italic !important; }
[data-t-leading="tight"] { line-height: 1.1 !important; }
[data-t-leading="relaxed"] { line-height: 1.75 !important; }
[data-t-leading="loose"] { line-height: 2 !important; }
[data-t-tracking="tight"] { letter-spacing: -0.02em !important; }
[data-t-tracking="wide"] { letter-spacing: 0.06em !important; }
[data-t-tracking="wider"] { letter-spacing: 0.16em !important; }

/* --- A block's background, border and hover ------------------------------------------------ */
[data-s-fill] { border-radius: var(--radius, 14px); padding: 22px; }
[data-s-fill="paper"], [data-s-fill="card"], [data-s-fill="accent"] { --t-heading: var(--heading, var(--brand)); --t-muted: var(--ink-soft); --t-link: var(--link, var(--brand)); --t-card-muted: var(--ink-soft); --t-ink: var(--ink); }
[data-s-fill="paper"] { background: var(--paper, #fbf7f0) !important; color: var(--ink, #2f2520); }
[data-s-fill="card"] { background: var(--card, #fff) !important; color: var(--ink, #2f2520); }
[data-s-fill="brand"] { background: linear-gradient(135deg, var(--brand, #7a1e16), var(--brand-band-end, var(--brand-deep, #5c140e))) !important; color: var(--on-brand, #fff); --t-heading: var(--on-brand, #fff); --t-muted: var(--on-brand, #fff); --t-link: var(--on-brand, #fff); --t-card-muted: var(--on-brand, #fff); --t-ink: var(--on-brand, #fff); }
[data-s-fill="accent"] { background: var(--accent-wash, #f3eadc) !important; color: var(--ink, #2f2520); }
[data-s-fill="dark"] { background: var(--night, #1d1714) !important; color: #fff; --t-heading: #fff; --t-muted: rgb(255 255 255 / 0.82); --t-link: #fff; --t-card-muted: rgb(255 255 255 / 0.8); --t-ink: #fff; }
[data-s-fill="glass"] { background: rgb(255 255 255 / 0.14) !important; backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); }
[data-s-fill="brand"] :is(h2, h3, h4, p, a, dt, dd), [data-s-fill="dark"] :is(h2, h3, h4, p, a, dt, dd) { color: inherit; }
[data-s-border="none"] { border: 0 !important; box-shadow: none !important; }
[data-s-border="line"] { border: 1px solid var(--line, rgb(0 0 0 / 0.12)) !important; }
[data-s-border="accent"] { border-left: 4px solid var(--accent, #b58a4c) !important; }
[data-s-border="top"] { border-top: 4px solid var(--accent, #b58a4c) !important; }
[data-s-border="dashed"] { border: 1.5px dashed var(--pencil, rgb(0 0 0 / 0.35)) !important; }
[data-s-hover] { transition: transform 0.25s ease, box-shadow 0.25s ease; }
[data-s-hover="lift"]:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.45); }
[data-s-hover="glow"]:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #b58a4c) 45%, transparent), 0 18px 40px -24px rgb(0 0 0 / 0.4); }
[data-s-hover="zoom"] { overflow: hidden; }
[data-s-hover="zoom"] img { transition: transform 0.6s ease; }
[data-s-hover="zoom"]:hover img { transform: scale(1.05); }

/* --- Shaped section edges: the edge is cut away, showing the page behind ------------------- */
.s-section[data-s-shape-top], .s-section[data-s-shape-bottom] { --s-edge: clamp(28px, 5vw, 72px); --s-shape-t: linear-gradient(#000 0 0); --s-shape-b: linear-gradient(#000 0 0); }
.s-section[data-s-shape-top] { padding-top: calc(var(--s-edge) + 24px); }
.s-section[data-s-shape-bottom] { padding-bottom: calc(var(--s-edge) + 24px); }
.s-section[data-s-shape-top], .s-section[data-s-shape-bottom] {
  -webkit-mask: var(--s-shape-t) top / 100% var(--s-edge) no-repeat, var(--s-shape-b) bottom / 100% var(--s-edge) no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--s-edge) + 2px) no-repeat;
  mask: var(--s-shape-t) top / 100% var(--s-edge) no-repeat, var(--s-shape-b) bottom / 100% var(--s-edge) no-repeat, linear-gradient(#000 0 0) center / 100% calc(100% - 2 * var(--s-edge) + 2px) no-repeat;
}
/* Bottom edges keep what is above the line; top edges are the same shapes turned over. */
.s-section[data-s-shape-bottom="curve"] { --s-shape-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v2C70 12 30 12 0 2z'/%3E%3C/svg%3E"); }
.s-section[data-s-shape-bottom="wave"] { --s-shape-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v5c-8 4-17 4-25 0s-17-4-25 0-17 4-25 0S8 1 0 5z'/%3E%3C/svg%3E"); }
.s-section[data-s-shape-bottom="slant"] { --s-shape-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v1L0 10z'/%3E%3C/svg%3E"); }
.s-section[data-s-shape-bottom="ridge"] { --s-shape-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v6l-9-3-8 4-10-6-7 4-9-2-12 7-9-5-8 3-11-6-9 5-8-2z'/%3E%3C/svg%3E"); }
.s-section[data-s-shape-bottom="torn"] { --s-shape-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v4l-4 2-3-3-5 4-4-3-6 3-3-2-5 3-4-4-6 4-3-2-5 3-4-3-5 2-4-3-6 4-3-3-5 3-4-2-6 3-3-4-5 3-4-2-3 2z'/%3E%3C/svg%3E"); }
.s-section[data-s-shape-top="curve"] { --s-shape-t: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10h100V8C70-2 30-2 0 8z'/%3E%3C/svg%3E"); }
.s-section[data-s-shape-top="wave"] { --s-shape-t: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10h100V5c-8-4-17-4-25 0s-17 4-25 0-17-4-25 0S8 9 0 5z'/%3E%3C/svg%3E"); }
.s-section[data-s-shape-top="slant"] { --s-shape-t: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10h100V0L0 9z'/%3E%3C/svg%3E"); }
.s-section[data-s-shape-top="ridge"] { --s-shape-t: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10h100V4l-9 3-8-4-10 6-7-4-9 2-12-7-9 5-8-3-11 6-9-5-8 2z'/%3E%3C/svg%3E"); }
.s-section[data-s-shape-top="torn"] { --s-shape-t: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10h100V6l-4-2-3 3-5-4-4 3-6-3-3 2-5-3-4 4-6-4-3 2-5-3-4 3-5-2-4 3-6-4-3 3-5-3-4 2-6-3-3 4-5-3-4 2-3-2z'/%3E%3C/svg%3E"); }

/* --- Entrance as visitors scroll (static/js/site-appear.js adds .is-in) -------------------- */
@media (prefers-reduced-motion: no-preference) {
  .s-motion [data-s-appear]:not(.is-in) { opacity: 0; }
  .s-motion [data-s-appear="rise"]:not(.is-in) { transform: translateY(28px); }
  .s-motion [data-s-appear="zoom"]:not(.is-in) { transform: scale(0.94); }
  .s-motion [data-s-appear="slide"]:not(.is-in) { transform: translateX(-36px); }
  .s-motion [data-s-appear] { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
}
.is-editing [data-s-appear] { opacity: 1 !important; transform: none !important; }

/* Live journey (templates/landing/site/sections/journey_live.html): a 14-second loop in which the
   trip's stages light up in turn, the bar fills, and the team's feed scrolls past. */
.jl { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
@media (max-width: 900px) { .jl { grid-template-columns: 1fr; } }
.jl-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.jl-facts li { display: flex; align-items: baseline; gap: 12px; opacity: 0.88; }
.jl-facts strong { font-family: var(--display, inherit); font-size: 1.9rem; min-width: 3.2ch; color: var(--accent); }
.jl-stage { position: relative; display: grid; gap: 14px; }
.jl-card { border-radius: 20px; padding: 22px 24px; background: color-mix(in srgb, var(--paper) 6%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55); backdrop-filter: blur(6px); }
.tone-paper .jl-card, .tone-card .jl-card { background: var(--card, #fff); border-color: var(--line); }
.jl-card-head { display: flex; justify-content: space-between; font-size: 0.8rem; opacity: 0.8; }
.jl-ref { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.jl-trip { font-family: var(--display, inherit); font-size: 1.45rem; margin: 10px 0 2px; }
.jl-who { margin: 0 0 18px; opacity: 0.75; font-size: 0.92rem; }
.jl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.jl-steps li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 0.72rem; }
.jl-dot { width: 14px; height: 14px; border-radius: 999px; border: 2px solid currentColor; opacity: 0.35; }
.jl-step { opacity: 0.55; }
.jl-bar { margin-top: 16px; height: 4px; border-radius: 999px; background: color-mix(in srgb, currentColor 15%, transparent); overflow: hidden; }
.jl-bar span { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; }
.jl-feed { height: 132px; overflow: hidden; border-radius: 16px; padding: 0 18px; background: color-mix(in srgb, var(--paper) 5%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 12%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.tone-paper .jl-feed, .tone-card .jl-feed { background: var(--card, #fff); border-color: var(--line); }
.jl-feed p { margin: 0; height: 44px; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-feed b { color: var(--accent); font-weight: 600; }
.jl-feed time { margin-left: auto; opacity: 0.6; font-size: 0.78rem; }

@media (prefers-reduced-motion: no-preference) {
  .jl-steps li .jl-dot { animation: jl-dot 14s infinite; animation-delay: calc(var(--n) * 1.6s); }
  .jl-steps li .jl-step { animation: jl-step 14s infinite; animation-delay: calc(var(--n) * 1.6s); }
  .jl-bar span { transform-origin: left; animation: jl-bar 14s linear infinite; }
  .jl-feed-track { animation: jl-feed 14s steps(7) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .jl-dot { opacity: 1; background: var(--accent); border-color: var(--accent); }
  .jl-step { opacity: 1; }
}
@keyframes jl-dot {
  0% { opacity: 0.35; background: transparent; transform: scale(1); }
  3% { opacity: 1; background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
  8%, 88% { opacity: 1; background: var(--accent); border-color: var(--accent); transform: scale(1); }
  96%, 100% { opacity: 0.35; background: transparent; }
}
@keyframes jl-step {
  0% { opacity: 0.55; }
  3%, 88% { opacity: 1; font-weight: 600; }
  96%, 100% { opacity: 0.55; }
}
@keyframes jl-bar {
  0% { transform: scaleX(0.02); }
  80% { transform: scaleX(1); }
  92% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes jl-feed {
  from { transform: translateY(0); }
  to { transform: translateY(-308px); }
}

/* --- Data lists (templates/landing/site/sections/collection.html) --------------------------- */
.s-data { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 900px) {
  .s-data-cards.cols-2, .s-data-compact.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-data-cards.cols-3, .s-data-compact.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-data-cards.cols-4, .s-data-compact.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.s-data-item { display: flex; min-width: 0; }
.s-data-card { position: relative; display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 14px; border-radius: var(--radius, 16px); background: var(--card, #fff); color: inherit; text-decoration: none; box-shadow: 0 0 0 1px var(--line, rgb(0 0 0 / 0.08)), 0 18px 36px -30px rgb(0 0 0 / 0.45); transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.s-data-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand, #2f7d4a) 45%, transparent), 0 24px 44px -28px rgb(0 0 0 / 0.5); }
a.s-data-card:focus-visible { outline: 3px solid var(--brand, #2f7d4a); outline-offset: 3px; }
.s-data-img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: calc(var(--radius, 16px) - 6px); object-fit: cover; background: var(--paper-deep, #f2efe8); }
.s-data-img.is-logo { aspect-ratio: 3 / 2; object-fit: contain; padding: 18px; }
.s-data-img.is-blank { display: grid; place-items: center; font: 600 2rem var(--display, inherit); color: color-mix(in srgb, var(--brand, #2f7d4a) 70%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--brand, #2f7d4a) 14%, transparent), color-mix(in srgb, var(--accent, #c2802f) 16%, transparent)); }
.s-data-body { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; padding: 2px 4px 4px; }
.s-data-title { font: 600 1.1rem/1.25 var(--display, inherit); color: var(--ink, inherit); }
.s-data-meta { font-size: 0.86rem; color: var(--pencil, #6b6b6b); }
.s-data-text { font-size: 0.94rem; line-height: 1.5; color: var(--ink-soft, inherit); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-data-price { margin-top: 2px; font-weight: 600; color: var(--brand, #2f7d4a); }
.s-data-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.s-data-tags span { padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; background: var(--brand-wash, rgb(47 125 74 / 0.1)); color: var(--brand, #2f7d4a); }
.s-data-badge { align-self: flex-start; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--accent, #c2802f); color: #fff; }
.s-data-card .s-card-link { margin-top: auto; padding-top: 8px; }
/* List: one row each, the picture at the side. */
.s-data-list { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
.s-data-list .s-data-card { flex-direction: row; align-items: center; }
.s-data-list .s-data-img { width: clamp(84px, 16vw, 168px); flex-shrink: 0; aspect-ratio: 4 / 3; }
/* Compact tiles: name and one line, small pictures. */
.s-data-compact .s-data-card { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
.s-data-compact .s-data-img { width: 52px; height: 52px; aspect-ratio: 1; flex-shrink: 0; padding: 6px; }
.s-data-compact .s-data-text, .s-data-compact .s-data-tags, .s-data-compact .s-card-link { display: none; }
.s-data-compact .s-data-title { font-size: 1rem; }
.s-data-empty { text-align: center; }
.s-data-more { margin-top: clamp(20px, 3vw, 32px); text-align: center; }
.tone-dark .s-data-card, .tone-brand .s-data-card { background: rgb(255 255 255 / 0.06); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.tone-dark .s-data-title, .tone-brand .s-data-title { color: inherit; }
.tone-dark .s-data-meta, .tone-brand .s-data-meta, .tone-dark .s-data-text, .tone-brand .s-data-text { color: inherit; opacity: 0.8; }
html[data-theme="dark"] .s-data-card { background: color-mix(in srgb, var(--card, #1b211d) 92%, #fff 3%); }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .s-data-card { background: color-mix(in srgb, var(--card, #1b211d) 92%, #fff 3%); } }
@media (prefers-reduced-motion: reduce) { .s-data-card { transition: none; } a.s-data-card:hover { transform: none; } }
/* In the editor: what the list is, and the way to its settings. */
.s-data-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; border: 1px dashed color-mix(in srgb, currentColor 30%, transparent); font: 13px/1.4 system-ui, sans-serif; }
.s-data-note span { font-weight: 700; }
.s-data-note button { margin-left: auto; border: 0; border-radius: 8px; padding: 5px 11px; background: #1f7a4c; color: #fff; font: 600 12.5px system-ui, sans-serif; cursor: pointer; }

/* --- Block height and what sits inside (styles.py BLOCK: height, block_height, place) ------ */
[data-block][data-s-height="s"] { min-height: 160px; }
[data-block][data-s-height="m"] { min-height: 280px; }
[data-block][data-s-height="l"] { min-height: 420px; }
[data-block][data-s-height="xl"] { min-height: 560px; }
[data-block][data-s-height="row"] { align-self: stretch; }
[data-block][style*="--s-h"] { min-height: var(--s-h); }
[data-block][data-s-place] { display: flex; flex-direction: column; }
[data-block][data-s-place^="top-"] { justify-content: flex-start; }
[data-block][data-s-place^="middle-"] { justify-content: center; }
[data-block][data-s-place^="bottom-"] { justify-content: flex-end; }
[data-block][data-s-place$="-start"] { align-items: flex-start; text-align: left; }
[data-block][data-s-place$="-center"] { align-items: center; text-align: center; }
[data-block][data-s-place$="-end"] { align-items: flex-end; text-align: right; }
[data-block][data-s-place] > .s-group { width: 100%; }
/* Groups: the blocks inside along the row (justify) and across it (items). */
.s-b[data-s-justify="center"] > .s-group { justify-content: center; }
.s-b[data-s-justify="end"] > .s-group { justify-content: flex-end; }
.s-b[data-s-justify="between"] > .s-group { justify-content: space-between; }
.s-b[data-s-justify="evenly"] > .s-group { justify-content: space-evenly; }
.s-b[data-s-justify] > .s-group > .s-b { flex-grow: 0; }
.s-b[data-s-items="center"] > .s-group { align-items: center; }
.s-b[data-s-items="end"] > .s-group { align-items: flex-end; }
.s-b[data-s-items="stretch"] > .s-group { align-items: stretch; }
.s-b[data-s-direction="column"][data-s-justify] > .s-group { min-height: 100%; }
/* A section with a height: its content at the top or bottom instead of the middle. */
.s-section[data-s-height][data-s-content-place="top"], .s-section[style*="--s-sh"][data-s-content-place="top"] { align-items: flex-start; }
.s-section[data-s-height][data-s-content-place="bottom"], .s-section[style*="--s-sh"][data-s-content-place="bottom"] { align-items: flex-end; }

/* --- A hero with a height: exactly that tall ------------------------------------------------
   Other sections grow past their height when their content needs it; a hero is made to sit in
   it. From 700px wide: tighter padding, the picture filling the height (no fixed 4:3), the
   title and lead scaled to the height. On phones the content decides (nothing is cut). */
@media (min-width: 700px) {
  .s-section:is(.s-hero, .s-tour_hero):is([data-s-height], [style*="--s-sh"]) {
    height: var(--s-hh); min-height: 0; padding-block: clamp(12px, calc(var(--s-hh) * .1), 72px);
    container-type: size; overflow: hidden;
  }
  .s-section:is(.s-hero, .s-tour_hero):is([data-s-height], [style*="--s-sh"]) > .s-inner { height: 100%; }
  .s-section:is(.s-hero, .s-tour_hero):is([data-s-height], [style*="--s-sh"]) :is(.s-hero-grid, .t-hero) { height: 100%; align-content: center; }
  .s-section.s-hero:is([data-s-height], [style*="--s-sh"]) .s-hero-grid.has-image:not(.layout-center) { align-items: stretch; }
  .s-section.s-hero:is([data-s-height], [style*="--s-sh"]) .s-hero-media { aspect-ratio: auto; height: 100%; min-height: 0; }
  .s-section.s-hero:is([data-s-height], [style*="--s-sh"]) .s-hero-grid.layout-center .s-hero-media { height: auto; max-height: 45cqh; aspect-ratio: 16 / 9; }
  .s-section:is(.s-hero, .s-tour_hero):is([data-s-height], [style*="--s-sh"]) .s-title { font-size: clamp(1.5rem, 0.6rem + 9cqh, 4.6rem); }
  .s-section:is(.s-hero, .s-tour_hero):is([data-s-height], [style*="--s-sh"]) .s-lead { font-size: clamp(0.95rem, 0.7rem + 1.8cqh, 1.2rem); }
  .s-section:is(.s-hero, .s-tour_hero):is([data-s-height], [style*="--s-sh"]) :is(.s-actions, .t-hero .s-actions) { margin-top: clamp(10px, 4cqh, 28px); }
}
