/**
 * Fleet layout CSS — shared structural rules for every sangha site.
 * Depends on samye-tokens (samye plugin). Site-specific CSS goes in
 * the samye-<site> plugin, never here.
 *
 * NOTE: rem values assume the fleet's ACSS 62.5% root (1rem = 10px) —
 * do not "fix" them to 16px-root sizes.
 *
 * @package samye-base
 */

/* ----- Fleet base typography ---------------------------------------- */
/* ACSS 4 regression fix: v4 wraps its body text-size rule in :where(body),
   whose zero specificity loses to Bricks core's `body { font-size: 15px }`
   (frontend-light.min.css). Re-assert the ACSS base text size the way
   3.3.6's automatic-bricks.css did. Affects every Bricks site on ACSS 4;
   works from here because fleet.css enqueues after Bricks' frontend CSS. */
body {
  font-size: var(--default-font-size, var(--text-m));
}

/* ACSS 3 regression fix — the mirror image of the ones below. Not something v4
   dropped, something v3 still ships. `--btn-width` is a v4 variable: the base
   layer's button rule sizes with `inline-size: var(--btn-width, auto)`, and the
   canon sets it to max-content. ACSS 3.x also declares `:root { --btn-width: 0 }`
   and never consumes it, so the slot sits there harmlessly until a v4 consumer
   arrives with the theme. Then it wins — the variable IS defined, so the `auto`
   fallback never fires, and every ACSS button collapses onto its own padding.

   samyetranslations.org shipped exactly that on 2026-08-29: it adopted
   samye-base while still running ACSS 3.3.7, and all ten buttons on its home
   page rendered 31px wide — border plus padding around a zero content box, with
   "Read More" spilling out of the red. Measured in the browser 2026-08-30, and
   measured against samyenewyork.org on 4.0.1 the same day for the contrast:
   max-content there, buttons 120-139px, correct.

   This restates canon rather than inventing a value, so it is a no-op wherever
   ACSS 4 is live. Remove it when no fleet site runs ACSS 3.x — the same
   condition the --shade* and --*-trans-* revivals below are waiting on. */
:root {
  --btn-width: max-content;
}

/* The *-trans-*, --shade* and --black-trans-80 variables used to be hand-written
   here as an ACSS 4 regression fix. Moved 2026-08-30 to canon: plugin/samye/canon/bricks-design-1.0.json. */

/* Bricks ships its own colour palette and nobody ever chose it. Its stock
   `--bricks-color-primary` is #ffd64f, a mustard yellow, and
   `.bricks-background-primary` paints with it — so any element a builder gives
   "Primary" comes out amber on a crimson-and-cream site. Bali's empty-cart
   "Return to shop" button is exactly that, and it has looked wrong for as long
   as that page has existed.

   Not a setting anywhere: no option on any fleet site contains ffd64f, because
   the value is hardcoded in Bricks' own frontend-light-layer.min.css. Pointing
   it at the token is the only place to answer it once.

   Blast radius checked before writing rather than assumed — across all seven
   sites exactly one element carries a `bricks-background-primary` class in the
   rendered HTML, plus Bali's cart button, and both want the brand red.

   --bricks-color-secondary is left at Bricks' #fc5778 deliberately. Nothing in
   the fleet uses it, and "what is Samye's secondary" is a question for the
   guide, not a default to pick here. */
:root {
  --bricks-color-primary: var(--samye-crimson, #B83029);
}

/* And the foreground to go with it. Bricks' `.bricks-background-*` utilities
   set a background and say nothing about text, which was survivable while the
   background was mustard and the text crimson — poor, but legible. Repointing
   the background at the brand red made it crimson on crimson and the label
   vanished, which is a worse bug than the one being fixed and was caught by
   measuring the button straight after deploying rather than assuming.

   Scoped to `.bricks-button` on purpose: the same background utility can be
   put on a section, and forcing white on a section would take every word
   inside it with it. */
.bricks-button.bricks-background-primary {
  color: var(--samye-white, #FFFFFF);
}

/* ----- Fleet base motion and touch ----------------------------------- */
/* CROSS-DOCUMENT VIEW TRANSITIONS. Every click between pages currently
   flashes the browser's white paint before the next page arrives, which is
   the single loudest "this is a website" cue a multi-page WordPress site
   gives off. Opting in replaces it with a short cross-fade of the whole
   page, done by the browser, with no script and no framework.

   THE ROOT ONLY, deliberately. Naming an element (`view-transition-name`)
   morphs it between the two snapshots, and the obvious candidate — the
   header — is exactly wrong here: it is not sticky, so on a page scrolled
   down it is off-screen, and a named header would fly in from above on
   every navigation. A whole-page cross-fade has no such geometry to get
   wrong.

   Chrome, Edge and Safari 18.2+ honour it. Firefox ignores the at-rule and
   keeps today's behaviour exactly, which is the whole reason this is worth
   doing from a stylesheet rather than from a script. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* TAP FEEDBACK. Mobile Chrome and Safari paint a grey box over whatever was
   tapped unless told otherwise, and that grey is nobody's brand. A crimson
   at 8% reads as the site answering rather than as the browser interrupting.

   touch-action: manipulation on the same set drops the double-tap-to-zoom
   wait, which is the 300ms that makes a phone feel like a desktop site being
   poked. Zoom itself is untouched: pinch still works, this only removes the
   double-tap gesture on controls. */
:where(a, button, summary, [role="button"], input[type="submit"]) {
  -webkit-tap-highlight-color: rgba(184, 48, 41, 0.08);
  touch-action: manipulation;
}

/* ----- The fleet's content column ------------------------------------
   ONE figure, and it is Bricks' own. Every centre site's Bricks theme style
   sets `container.width: var(--content-width)` — verified on all seven on
   2026-08-24 — so Bricks emits `.brxe-container { width: var(--content-width) }`
   and this variable resolves to exactly what a Bricks-built page uses. It is
   not a second opinion about how wide the site is.

   Bricks caps every element with `[class*=brxe-] { max-width: 100% }`, which
   is why its `width` and our `max-width` come out the same: both are
   min(content-width, available). #brx-content.wordpress is the one exception,
   because it carries no brxe- class and so is not capped — see the note on
   that rule, which overrides Bricks' fixed width for exactly that reason.

   The ladder below it is the fallback for a site without ACSS, then for one
   without the plugin whose tokens.css defines --samye-content-max. It used to
   be written out in all six places that needed it, which made the figure look
   like six figures. Change it here. */
:root {
  --samye-container: var(--content-width, var(--samye-content-max, 1200px));
}

/* Unified content width across the fleet (institute-established rule).
   ACSS's --content-width is the live source of truth — Bricks containers
   key on it via the theme style — so anything sized here follows it first
   and only falls back to the token mirror. */
.samye-content,
.brxe-container.samye-content {
  max-width: var(--samye-container);
  margin-inline: auto;
}

/* Header logo sizing: stacked lockup, established fleet rule of 160px max
   on mobile. Desktop scale is set on the header template itself. */
@media (max-width: 767px) {
  .samye-wordmark {
    max-width: 160px;
  }
}

/* ----- Fleet hero ---------------------------------------------------- */
/* Styles the standard template hero (h1.bricks-type-hero) on every page:
   a warm dark band, title, crimson rule. Browsers without
   :has() keep the theme-style default — graceful.

   The title takes --samye-t-hero, which resolves to the guide's heading face.
   Until 0.45.12 that token led to Marcellus SC, so this rule — and only this
   rule — put every page title on a face the guide does not name and the
   styleguide screen had already refused to present as house type. Point the
   hero somewhere new by changing the token, never by naming a family here:
   this file is shared by every centre. */

#brx-content > .brxe-section:has(h1.bricks-type-hero) {
  position: relative;
  overflow: hidden;
  /* Block flow on purpose: a grid track would size to the Bricks
     container's fixed width and overflow small viewports. Tightened
     2026-08-18 (Matt): the hero is a title band, not a landing splash. */
  padding-block: 6.4rem 4.8rem;
  /* --base-ultra-dark: the warm dark ACSS derives from the fleet's sand base
     (hue 84), the ONLY warm dark available from canon — the approved guide names
     none. It replaces a hand-mixed gradient, #332e28 -> #57493c, that appeared in
     no canon file at all: not tokens.css, not brand.json, not the ACSS config.
     Same warmth, sourced instead of invented.

     Depth matters here, not just provenance. The crimson rule under the title
     scored 1.64:1 against the old brown, which is invisible; against this it is
     2.82:1 and reads. --base-dark, the nearest match to the old colour, would
     have made it worse at 1.52:1.

     An ACSS variable rather than a --samye-* token because there is nothing to
     mirror: this is a derived ramp shade with no brand equivalent, so ACSS is
     the authority and the literal is only the fallback for a site without it. */
  background: var(--base-ultra-dark, #211C12);
}

#brx-content > .brxe-section:has(h1.bricks-type-hero) > .brxe-container {
  position: relative;
  z-index: 1;
}

/* !important: template elements carry ID-level (#brxe-…) styles that
   otherwise outrank any class selector we can write from the theme. */
h1.bricks-type-hero {
  font-family: var(--samye-t-hero, Georgia, serif) !important;
  font-weight: 400 !important;
  font-size: clamp(3.6rem, 2.8rem + 2vw, 5.6rem) !important;
  line-height: 1.08;
  letter-spacing: 0.015em;
  color: var(--samye-cream, #F8F4ED) !important;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

h1.bricks-type-hero::after {
  content: "";
  display: block;
  width: 6.4rem;
  height: 0.3rem;
  margin-top: 2rem;
  background: var(--samye-crimson, #B83029);
}

@media (max-width: 640px) {
  #brx-content > .brxe-section:has(h1.bricks-type-hero) {
    padding-block: 4.8rem 4rem;
  }
}

/* Bricks lets a container render as <ol> or <ul>, and Frames uses that for
   anything semantically a list — the process-steps grid on New York's home page
   is an <ol> of cards. The browser's default list indent then applies:
   `padding-inline-start: 40px`, left only. Inside a centred content column that
   reads as a wide gutter on one side and none on the other, which is exactly
   what it looks like — measured at 1440 the cards ran 160→1320 inside a grid
   spanning 120→1320 (Matt, 2026-08-24).

   Container is not the only layout element that does it. Translations' single
   template builds More Translations out of a Bricks BLOCK set to <ul>, class
   `brxe-block brx-grid`, and the first rule here — scoped to `.brxe-container`
   — missed it for that reason alone. Measured on
   /translation/music-to-delight-the-dakini-.../ at 1280: the section and every
   other band ran 60→1220, the grid ran 60→1220, and the cards inside it ran
   100→1220. Same 40px, same one-sided gutter, different Bricks element
   (Matt, 2026-08-30). `list--none` on that ul is an ACSS 4 utility ST's ACSS
   3.3.7 does not ship, so it resets nothing — see the --btn-width note above
   for the same shape of failure.

   Scoped to Bricks' three LAYOUT classes on purpose: they mark structure,
   never prose. A real list in post content keeps its indent, because there it
   is meaning rather than an accident of the markup Bricks chose. */
#brx-content :is(ol, ul):is(.brxe-container, .brxe-block, .brxe-div) {
  padding-inline-start: 0;
}

/* ----- Pages Bricks did not build ----------------------------------- */
/* Bricks renders a page with no builder content through its own fallback and
   marks it `#brx-content.wordpress` — the title and the_content, in an
   <article> with no container of any kind. Nothing else in the fleet gives
   that element a measure, so every such page runs edge to edge.

   It is not a rare case. Taiwan's and Brasil's Contact pages are exactly this:
   post_content is the `[samye_contact]` shortcode and nothing else, no Bricks
   content at all. Measured on samyetaiwan.org/contact 2026-08-23 at 390px, the
   h1 and every input computed to left 0 and right 0 with wrapper padding 0.
   `.samye-contact` has a 56rem max-width of its own, which is why this looked
   fine at 1280 — the content-width cap happened to leave a margin — and only
   below that does the absence show.

   `width: 100%` and not `auto`, which is worth stating because auto is the
   obvious choice and it fails here. The canon Bricks theme style carries
   `#brx-content.wordpress { width: var(--content-width) }` — a FIXED width, so
   on a site running that style these pages overflow horizontally below 1200px
   rather than merely touching the edges, and max-width cannot undo a width.
   But `width: auto` overrides it into a shrink-to-fit: Bricks lays the body
   out as a centring flex column, so the article stops being full-bleed and
   collapses to its content. Measured at 390px it came out 240px wide, centred,
   narrower than before the fix. `100%` fills the flex line and max-width caps
   it, and box-sizing is already border-box so the inline padding comes out of
   the width instead of adding to it.

   Block padding matches .brxe-post-content above so a shortcode page and a
   built page have the same rhythm. */
#brx-content.wordpress {
  width: 100%;
  max-width: var(--samye-container);
  margin-inline: auto;
  padding-inline: var(--gutter, 2.4rem);
  padding-block: 6.4rem 9.6rem;
}

/* Calendar templates provide their own gutters and vertical spacing. Keep
   the fluid outer width, but do not add a second layer of page padding. */
body:is(.post-type-archive-tribe_events, .tax-tribe_events_cat, .single-tribe_events) #brx-content.wordpress {
  padding: 0;
}

/* ----- Fleet page template: post_content prose ---------------------- */
/* Template pages render hero + post_content. TEC also adds brxe-post-content
   to archive wrappers and event cards. These are layouts, not prose: leave
   their width, spacing, controls and images to the calendar styles. */

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content {
  /* 62ch like every other measure — this was 72ch, which set 84 characters.
     min() so a narrow container wins, matching the other three. */
  max-width: min(62ch, 100%);
  padding-block: 6.4rem 9.6rem;
  font-family: var(--samye-t-body, sans-serif);
  line-height: 1.75;
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content > * + * {
  margin-top: 1.1em;
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content h2,
body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content h3 {
  font-family: var(--samye-t-heading, Georgia, serif);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2em;
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content h2::after {
  content: "";
  display: block;
  width: 4.8rem;
  height: 0.3rem;
  margin-top: 1.2rem;
  background: var(--samye-crimson, #B83029);
}

/* Buttons are excluded. WooCommerce, Bricks and the block editor all render
   buttons as <a class="…button…">, and post content is where a shortcode-built
   cart or checkout lands — so this rule was painting buttons crimson and
   underlining them. Measured on samyebali.org/cart 2026-08-21: "Continue
   shopping" came out crimson-on-green inside its own success notice, and
   "Proceed to checkout" read as a broken link rather than the primary action.
   Editorial links carry no class; every button class in play (button,
   brxe-button, bricks-button, checkout-button, wp-element-button,
   wc-block-components-button) contains the substring.

   `.restore-item` is the exception that proves it needs naming: the "Undo?"
   link WooCommerce puts in the removed-from-cart notice is the one action
   control in the cart flow whose class does not contain "button"
   (class-wc-form-handler.php:746). It was still rendering crimson and
   underlined on a dark green fill after 0.45.10 (Matt, 2026-08-21). Woo's
   notice action links are a closed set of two — `.button` and
   `.restore-item` — so naming the second is completeness, not whack-a-mole. */
body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content a:not([class*="button"]):not(.restore-item) {
  color: var(--samye-crimson, #B83029);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content a:not([class*="button"]):not(.restore-item):hover {
  color: var(--samye-crimson-deep, #93261F);
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content ul,
body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content ol {
  padding-inline-start: 2.4rem;
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content li {
  margin-top: 0.5em;
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content li::marker {
  color: var(--samye-crimson, #B83029);
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content blockquote {
  margin: 1.5em 0;
  padding: 2rem 2.8rem;
  border-left: 3px solid var(--samye-crimson, #B83029);
  border-radius: var(--samye-radius, 4px);
  background: var(--samye-cream, #F8F4ED);
  font-family: var(--samye-t-heading, Georgia, serif);
  font-style: italic;
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content blockquote p {
  margin: 0;
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content img {
  border-radius: var(--samye-radius, 4px);
  max-width: 100%;
  height: auto;
}

/* Bricks' frontend CSS gives every figure `margin: 1em 40px`, and the rule
   above only sets the top margin, so images, galleries and embeds sat 80px
   narrower than the text (a 234px image in a 314px column on a phone).
   Aligned figures keep WordPress' own margins: .aligncenter centres on auto
   margins, and this selector would outrank it. */
body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content figure:not(.alignleft, .alignright, .aligncenter) {
  margin-inline: 0;
}

body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content hr {
  border: 0;
  height: 1px;
  margin: 3.2rem 0;
  background: var(--samye-silver-soft, #E5E3E0);
}

/* The events list may exceed the prose measure — let it. */
body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content .samye-events {
  max-width: none;
}

@media (max-width: 640px) {
  body:not(.post-type-archive-tribe_events):not(.tax-tribe_events_cat):not(.single-tribe_events) #brx-content .brxe-post-content {
    padding-block: 4rem 6.4rem;
  }
}

/* ----- WooCommerce -------------------------------------------------- */
/* This is feature-scoped, not site-scoped: every selector below needs
   WooCommerce markup to match, so the block is inert on the five centres
   with no shop. It sits here rather than in a `samye-bali` plugin because
   docs/CANON.md holds samye-newyork as the only per-site plugin — a second
   one would reach its server by hand, outside the lint gate, the backup swap
   and the drift check. A shop is a fleet capability; its buttons are brand
   canon. Bali is simply the first centre to open one.

   Scoped on `.woocommerce`, never `body.woocommerce`: WooCommerce only adds
   that body class where `is_woocommerce()` is true, which EXCLUDES cart,
   checkout and account. Bali's cart body reads `woocommerce-cart
   woocommerce-page` and nothing else — the shared handle on every one of
   these pages is the `div.woocommerce` wrapper Woo prints around its own
   output. The element qualifier in `:is(a, button, input)` is what carries
   the specificity past Bricks' `.woocommerce .button`; it is not decoration.

   Buttons follow WooCommerce's own semantics: `.alt` is the primary action
   (add to cart, proceed to checkout, place order) and gets the filled Samye
   button; a plain `.button` is secondary (update cart, apply coupon) and gets
   the outline. Values track `.samye-btn` in the plugin's primitives.css.

   `:is(.button, .restore-item)` throughout, because Woo's action controls are
   NOT all `.button`. The "Undo?" link in the removed-from-cart notice is
   `.restore-item` (class-wc-form-handler.php:746) and nothing else in the cart
   flow is — 0.45.10 keyed everything on `.button` and left that one link
   rendering as crimson underlined text on a dark green fill (Matt,
   2026-08-21). Two classes is the complete set, not the start of a list. */

/* Metrics come from ACSS, colour from tokens.css. Nothing here restates a
   number ACSS already owns, so retuning buttons in the ACSS panel moves the
   shop with everything else — and the Frames product template, which reads
   the same variables through the aliases further down, cannot drift away
   from the cart. --samye-* fallbacks cover a site whose plugin is inactive;
   the ACSS ones cover a site with no ACSS at all. */
.woocommerce :is(a, button, input):is(.button, .restore-item) {
  border: var(--btn-border-width, 1px) var(--btn-border-style, solid)
    var(--samye-crimson, #B83029);
  border-radius: var(--btn-radius, var(--samye-radius, 4px));
  background-color: transparent;
  color: var(--samye-crimson, #B83029);
  font-family: var(--btn-font-family, var(--samye-t-body));
  font-weight: var(--btn-font-weight, 600);
  padding: var(--btn-padding-block, 0.65em) var(--btn-padding-inline, 1.6em);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.woocommerce :is(a, button, input).button.alt {
  background-color: var(--samye-crimson, #B83029);
  color: var(--samye-white, #FFFFFF);
}

.woocommerce :is(a, button, input):is(.button, .restore-item):hover,
.woocommerce :is(a, button, input):is(.button, .restore-item):focus-visible {
  background-color: var(--samye-crimson, #B83029);
  border-color: var(--samye-crimson, #B83029);
  color: var(--samye-white, #FFFFFF);
}

.woocommerce :is(a, button, input).button.alt:hover,
.woocommerce :is(a, button, input).button.alt:focus-visible {
  background-color: var(--samye-crimson-deep, #93261F);
  border-color: var(--samye-crimson-deep, #93261F);
}

/* Notice buttons ("Continue shopping" on the added-to-cart message) are
   secondary actions sitting inside a tinted notice, so they take the outline
   treatment keyed to the notice's OWN foreground rather than to crimson —
   `color: inherit` picks up success green, info blue or danger red, and
   currentColor draws the border to match. Measured on the Bali success
   notice: #047857 on #E6F6ED is 4.96:1, clear of AA.

   Written to inherit rather than to re-state Bricks' three notice colours,
   which are private `--bricks-woo-notice-*` variables this stylesheet has no
   business copying. No `.woocommerce` ancestor either: Woo prints notices
   outside the wrapper on some templates, which is why Bricks' own notice
   rules do not assume one. */
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error)
  :is(a, button, input):is(.button, .restore-item) {
  background-color: transparent;
  border-color: currentColor;
  color: inherit;
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error)
  :is(a, button, input):is(.button, .restore-item):hover,
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error)
  :is(a, button, input):is(.button, .restore-item):focus-visible {
  /* A neutral tint, not an invert: `background-color: currentColor` would
     resolve against this element's own colour, so filling with the notice
     colour and flipping the text to white in one rule paints white on white.
     A translucent black reads correctly over all three notice tints. */
  background-color: rgba(0, 0, 0, 0.06);
  color: inherit;
}

/* WooCommerce hides fixed-quantity inputs, but Bricks leaves the bordered
   wrapper in the product form. Keep editable quantities untouched. */
.woocommerce form.cart .quantity:has(> input[type="hidden"][name="quantity"]) {
  display: none;
}

/* ----- Fleet footer: assets/footer.css (its own handle since 2026-10-29) ----- */

/* ----- Managed home page (templates/home.php) ----------------------------
   Drawn by samye_pages_render_home() when Samye Digital → Pages has the home
   page in managed mode. Ported from canon/page-templates/home-1.0.json, so
   the spacing aliases the ACSS names that canon used, with the token mirror
   as fallback — never a restated value (CANON.md). Colours are the Samye
   tokens, which is the one place the fleet states them on purpose. */

.samye-home {
  display: block;
  font-family: var(--samye-t-body, sans-serif);
  font-size: var(--text-m, 1.6rem);
  line-height: 1.6;
  color: var(--samye-ink, #111);
}

/* THE FLEET CONTAINER — one idiom, used by every band on every page.

   The gutter lives on the OUTER band; the inner is purely a centred cap. That
   is what .samye-header, .samye-footer and Bricks' own .samye-content already
   do, and what ACSS does for you: `:where(section:not(section section))` in
   automatic.css puts padding-inline: var(--gutter) on every top-level section.

   The managed pages used to cap and pad the SAME element. Two faults came out
   of that. On the home page, whose inner sits inside a <section>, ACSS's
   gutter and the inner's own gutter BOTH applied: measured at 1280 the content
   began at x=120 and ran 1040px against the header's x=60 and 1160px. On the
   contact and listing pages, whose inner is a direct child of <main> and gets
   no ACSS gutter, border-box made the padding eat into the cap instead, giving
   1080px. Three managed pages, three different content columns, none of them
   the header's.

   The band rules below restate the gutter ACSS already sets. That is
   deliberate and cannot double it: a class beats :where()'s zero specificity
   and sets the same value, and it keeps the pages correct on a site with no
   ACSS at all, which is the fallback every var() here is written for. */
.samye-home__hero,
.samye-home__section,
.samye-contact-page,
/* The gutter .samye-page-head pulls back against. A band inside one of these
   sets margin-inline to minus this and padding-inline to plus it, so a main
   that carries no padding sends the band PAST the viewport edge instead of to
   it: the teacher profile did exactly that and scrolled sideways by 60px at a
   1280 viewport (measured 2026-08-29). Any main holding a page-head belongs in
   this list. */
.samye-listing,
.samye-404,
.samye-teacher,
.samye-page {
  padding-inline: var(--gutter, 2.4rem);
}

/* The teacher profile's own close. Every other main in the list above sets
   one where its own section of this file is (`.samye-page`,
   `.samye-contact-page`, `.samye-listing`, all on --section-space-m); the
   profile has no such section, because its body rules live in the plugin's
   primitives.css with the rest of the module, and it shipped with no bottom
   padding at all — the last line of a bio sat on the footer's top edge on all
   sixteen New York profiles (measured 2026-08-29).

   Here rather than in primitives.css, and block-END only: the gutter this
   main carries is set two lines up, the band owns the top, and the same
   --section-space-m as its peers so the four managed pages close alike. */
.samye-teacher {
  padding-block-end: var(--section-space-m, 6.4rem);
  /* White like the other fleet-drawn shells. Without it the body's cream
     (--body-bg-color, the same on all nine sites) showed through, so the
     sixteen New York profiles were the only fleet pages on cream. */
  background: var(--samye-white, #fff);
}

/* ----- Shared page hero ---------------------------------------------
   The Institute's page-header standard (Matt, 2026-11-06: "bring the fleet up
   to the same header and hero styles", approved on the mock in
   reports/2026-11-06-fleet-page-head-mock/). A stone band closed by a
   hairline, compact padding, the title in dark grey at 1.25 leading and a
   light, balanced intro, the same values as the Institute's Bricks classes
   page-header, page-header__title and page-header__intro. It replaces option
   B of 2026-09-29 (white, a short gold rule above the title, 77px on top).
   All ten sites resolve these ACSS variables to the same values; the
   fallbacks are those values, for a site without ACSS.
   Keep the negative gutter paired with the main's padding: no viewport
   units, which include a scrollbar and can widen the page. */
.samye-page-head {
  margin-inline: calc(var(--gutter, 2.4rem) * -1);
  padding-inline: var(--gutter, 2.4rem);
  padding-block: var(--space-m, 3rem);
  margin-block-end: var(--space-l, 4.5rem);
  background: var(--base-ultra-light, oklch(0.967305 0.002041 75));
  color: var(--samye-ink, #111);
  border-block-end: var(--border-size, 1px) solid var(--base-light, oklch(0.899003 0.006306 75));
}

.samye-page-head__inner {
  width: 100%;
  max-width: var(--samye-container);
  margin-inline: auto;
}

.samye-contact-page__head,
.samye-page__head,
.samye-listing__head,
.samye-teacher__head {
  max-width: min(96rem, 100%);
  min-width: 0;
  margin: 0;
}

/* The title's own measure; the header above is wide only so a title can
   use it. */
.samye-page-head h1 {
  max-width: 24ch;
  margin: 0;
  color: var(--neutral-dark, oklch(0.371495 0 89.875563));
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.samye-page-head h1 + * {
  margin-block-start: calc(var(--space-xs, 1rem) * 1.2);
}

/* A list that opens straight under the head drops its first row's top rule:
   the head's hairline already draws that line, and with both the News page
   and a category page showed two parallel rules 37px apart (measured on
   samyetranslations at 390px, 0.63.3). Only when the list is the body's
   first child; anything written above it keeps the row's own rule. */
.samye-page-head + :is(.samye-listing__inner, .samye-page__inner) > :is(.samye-listing__body, .samye-page__body) > :is(.samye-news, .samye-events):first-child > :first-child {
  border-top: 0;
}

.samye-event-single__eyebrow {
  margin: 0 0 1.8rem;
  color: var(--samye-ink-soft, #4A4A4A);
  font-size: var(--text-s, 1.6rem);
  line-height: 1.5;
}

.samye-event-single__intro {
  max-width: 49ch;
  margin: 1.5rem 0 0;
  color: var(--samye-ink-soft, #4A4A4A);
  font-size: var(--text-m, 1.8rem);
  line-height: 1.7;
}

.samye-event-single__details {
  display: flex;
  align-items: center;
  gap: clamp(2.4rem, 3vw, 4rem);
  min-width: 0;
  margin-block-start: 2.8rem;
  padding-block-start: 2.3rem;
  border-block-start: 1px solid var(--samye-gold, #9A874A);
  border-block-start-color: color-mix(in srgb, var(--samye-gold, #9A874A) 40%, transparent);
  color: var(--samye-ink, #111);
  font-size: var(--text-s, 1.6rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.samye-event-single__details dl {
  display: flex;
  flex: 1;
  gap: clamp(2.4rem, 3vw, 4rem);
  min-width: 0;
}

.samye-event-single__details dl,
.samye-event-single__details dd {
  margin: 0;
}

.samye-event-single__details dl > div {
  flex: 1;
  min-width: 0;
}

.samye-event-single__details dt {
  margin: 0 0 0.6rem;
  color: var(--samye-ink-soft, #4A4A4A);
  font-size: 0.85em;
  font-weight: 400;
}

.samye-event-single__date,
.samye-event-single__hours,
.samye-event-single__timezone {
  display: block;
}

.samye-event-single__timezone {
  margin-block-start: 0.5rem;
  font-size: 0.85em;
  color: var(--samye-ink-soft, #4A4A4A);
}

.samye-event-single__details .samye-event-register {
  display: flex;
  flex: 0 1 auto;
  justify-content: center;
  align-items: center;
  min-height: 4.4rem;
  max-width: 24rem;
  padding: 1.2rem 1.9rem;
  font-size: var(--text-s, 1.6rem);
  text-align: center;
  white-space: normal;
}

@media (max-width: 767px) {
  .samye-event-single__details,
  .samye-event-single__details dl {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }
  .samye-event-single__details .samye-event-register {
    width: 100%;
    max-width: none;
  }
}

.samye-home__inner,
.samye-contact-page__inner,
.samye-page__inner,
.samye-listing__inner,
.samye-teacher__inner,
.samye-search__inner,
.samye-404__inner {
  /* width, not just max-width: on the live sites every top-level section
     COMPUTES as a column flex (measured 2026-08-27; which rule wins is
     deliberately left open — the pages carry no @layer, bare specificity
     favours Bricks' display:block rule for section elements, and the
     cross-origin sheets refuse rule enumeration, so naming a source here
     would be a guess; no braces in this comment, the pinned test parses
     this block by them),
     and a flex child with auto inline margins does not stretch — it
     shrinks to fit-content. The text bands hid it (an unwrapped
     paragraph's max-content beats the cap, so fit-content hit 1200 anyway);
     the grids did not: malaysia's events inner measured 792px at a 1440
     viewport and auto-fill drew 2 columns where the design draws 4 (Matt,
     2026-08-27). 100% fills the flex line, max-width caps it — the same
     answer #brx-content.wordpress documents below, for the same reason. */
  width: 100%;
  max-width: var(--samye-container);
  margin-inline: auto;
}

.samye-home__section {
  /* One step down the ACSS ladder from --section-space-m, which is what this
     was until 2026-08-28. At the m step the six bands spent 1080px of a
     4086px page on their own padding (measured on live malaysia at a 1440
     viewport), and because every band spent the same, the page read as six
     equal boxes rather than as a welcome followed by its contents. The s step
     is 60px at 1440 and 37px at 390; the hero keeps the l step, so the
     difference between the welcome and everything under it is now visible.
     The colour alternation and the headings do the rest of the separating. */
  padding-block: var(--section-space-s, 4.8rem);
  background: var(--samye-white, #fff);
}

/* The bands alternate white and cream by POSITION, counted from the bottom:
   the last band is white against the parchment footer, the one above it
   cream, and so on up. Colour used to belong to the band (Rinpoche and the
   photographs cream, the rest white), which alternated only in the fleet's
   default order; since 0.59.0 a centre sets its own order, and taiwan's put
   the two cream bands together and ended on cream against the footer.
   Counted from the bottom, every home that kept the default order keeps its
   colours exactly (malaysia, brasil, barcelona, measured before and after).
   Only drawn bands are elements, so a band switched off or empty never
   breaks the count; the hero is a section but carries no __section class.
   This also retires the events + news join rule that sat here: it existed
   because both were white and adjacent, and neighbours never share a
   colour now. */
.samye-home > .samye-home__section:nth-last-of-type(even) {
  background: var(--samye-cream, #F8F4ED);
}

.samye-home__heading {
  margin: 0 0 var(--content-gap, 3.2rem);
  font-family: var(--samye-t-heading, Georgia, serif);
  font-weight: 400;
  font-size: var(--h2, clamp(2.6rem, 2.2rem + 1vw, 3.2rem));
  line-height: 1.2;
}

/* Hero: cream ground, the picture behind, the words centred on it. The
   image rides in as a custom property set inline by the template, which is
   the only per-site value here and the only inline style on the page. */
.samye-home__hero {
  position: relative;
  padding-block: var(--section-space-l, 9.6rem);
  background-color: var(--samye-cream, #F8F4ED);
  background-image: var(--samye-home-hero-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* A dark scrim over the photograph, always, with WHITE type on top.
   The heading, the lede and the button sit directly on this background, and
   that background is always a photograph: the centre's own, or the shipped
   placeholder, which is New York's centre.

   This was a cream wash under dark type until 2026-08-24, and it bleached the
   photograph badly enough to read as a broken image. The cause was arithmetic,
   not taste: the weakest text was the lede at --samye-ink-soft (#4a4a4a), and
   holding that at AA over a black frame needed 0.76 of cream. Three quarters of
   cream over any photograph is a fog.
   Inverting buys the legibility far more cheaply. White text over a dark
   overlay clears AA at 0.575, so the floor here is 0.60 and the photograph
   survives it. The worst case is now a WHITE photograph rather than a black
   one: #111 at 0.60 over white computes to #707070, giving white type 4.95:1 —
   clear of the 4.5:1 line. At 0.55 it is 4.17:1 and fails.
   bali already runs exactly this on its own Bricks hero (#111 at 0.60, white
   serif type), so this is the fleet agreeing with itself, not a new idea.
   With no image at all — the plugin absent, so no placeholder URL — this lays
   grey over cream, which is why the type colours below are set on the hero
   rather than left to inherit. */
.samye-home__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 17, 17, 0.66),
    rgba(17, 17, 17, 0.60)
  );
  pointer-events: none;
}

.samye-home__hero > .samye-home__inner {
  position: relative;
  z-index: 1;
}

.samye-home__hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s, 1.6rem);
  text-align: center;
}

/* White, not inherited. The hero is the one region of this page whose ground
   is dark, and a host theme's h1 colour would otherwise win here and put dark
   type on the scrim. Stated on both, because losing either one alone is the
   worst outcome available: #4a4a4a on #707070 is 1.9:1. */
.samye-home__title {
  margin: 0;
  font-family: var(--samye-t-hero, var(--samye-t-heading, Georgia, serif));
  font-weight: 400;
  /* ACSS's fluid --h1 wins on every fleet site; the fallback is fluid too so
     a site without it still fits a phone. */
  font-size: var(--h1, clamp(3.2rem, 2.4rem + 2vw, 4.4rem));
  line-height: 1.15;
  color: var(--samye-white, #fff);
}

/* THE FLEET READING MEASURE: 62ch, everywhere prose is read.
   ch is the width of the "0" glyph rather than of an average character, and
   across this fleet's fonts a line runs about 1.15 characters per ch — so
   62ch lands at 71 characters, inside the 45-80 that is comfortable to read.
   Because ch scales with the font, the SAME 62 holds the character count
   steady across different sizes: the lede at 24px and the contact heading at
   18px measure 827px and 621px, and both set 71 characters.
   Anything that is continuous prose set FLUSH LEFT uses this number. Three
   things deliberately do not: the hero lede immediately below, which is
   centred and carries its own note; the footer tagline (36ch), which is not
   prose; and the contact form's 56rem in the plugin's primitives.css, which
   is a form width, not a measure. */

/* The one place the fleet measure is deliberately not used, because this text
   is CENTRED. A centred line gives the eye no fixed left edge to return to,
   so the return sweep gets harder the longer the line runs, and the band the
   lines make gets wider than the heading standing over it. Measured on live
   malaysia at 1440: 62ch here is 908px, about 71 characters, two long lines
   under a 536px title. 46ch is 674px, about 53 characters, three shorter
   lines that stack into a block roughly the title's own width.
   min(…, 100%) leaves the phone alone: at 390px the column is already the
   cap, and the lede measured 347px both before and after. */
.samye-home__lede {
  max-width: min(46ch, 100%);
  font-size: var(--text-l, 2rem);
  line-height: 1.6;
  color: var(--samye-white, #fff);
}

.samye-home__lede p {
  margin: 0;
}

.samye-home__lede p + p {
  margin-top: var(--space-xs, 0.8rem);
}

.samye-home__hero-cta,
.samye-home__rinpoche-cta {
  margin: var(--space-s, 1.6rem) 0 0;
}

.samye-home__button {
  font-size: 1.6rem;
}

/* Scoped to the hero, and it has to stay scoped: .samye-home__button is worn
   by two buttons, this one on the dark scrim and the Rinpoche section's on
   cream. Painting the shared class white would erase the second one.
   Crimson cannot be used here — #B83029 against the scrimmed ground is 1.13:1,
   so the button keeps a readable label but loses its shape entirely. White
   gives the shape 5.33:1 and the label its own 12.6:1. bali solves it the
   same way on the same treatment. */
.samye-home__hero .samye-home__button {
  background: var(--samye-white, #fff);
  border-color: var(--samye-white, #fff);
  color: var(--samye-ink, #111);
}

.samye-home__hero .samye-home__button:hover,
.samye-home__hero .samye-home__button:focus-visible {
  background: var(--samye-cream, #F8F4ED);
  border-color: var(--samye-cream, #F8F4ED);
  color: var(--samye-crimson-deep, #93261F);
}

/* The news list brings its own heading (primitives.css); size it like the
   events heading beside it so the two bands read as one page — and space it
   like one too. Sizing alone left it sitting 24px above its cards where every
   other heading on this page sits --content-gap above its content. */
.samye-home__news .samye-news__heading {
  font-size: var(--h2, clamp(2.6rem, 2.2rem + 1vw, 3.2rem));
  line-height: 1.2;
  margin-bottom: var(--content-gap, 3.2rem);
}

/* The home news row fills. primitives.css draws these cards on a 26rem track
   minimum, which is the right answer on the news archive, where the count is
   a whole page of posts. On the home band the count is a SETTING and it
   defaults to three, so 26rem drew four tracks in the 1200 container: three
   cards and a 306px hole on the right, every time. 34rem draws three tracks
   of 384px — the number the band actually holds — and it is the gallery's
   track size a band above, so the two grids on this page now agree.
   The events grid keeps 26rem: its count is whatever the calendar holds. */
.samye-home__news .samye-news--cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr));
}

/* Home event cards use one title link across the card. The redundant image
   link stays outside the tab order; each event is one keyboard stop. */
.samye-home__events .samye-events__card {
  position: relative;
}

.samye-home__events .samye-events__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.samye-home__events .samye-events__card:has(:focus-visible) {
  outline: 3px solid var(--samye-ink, #252525);
  outline-offset: 4px;
}

/* Fill the homepage card frame; near-square posters lose only a narrow edge. */
.samye-home__events .samye-events__card-img {
  object-fit: cover;
}

/* The four-column homepage grid is used for near-square event posters.
   The shared 3:2 frame leaves large bars above and below that artwork. */
.samye-home__events.samye-home__section--cols-4 .samye-events__card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.samye-home__events .samye-events__card:is(:hover, :has(:focus-visible)) a[href] .samye-events__card-img {
  transform: none;
}

/* Columns a centre chose on the Home page screen (0.60.0), for the news and
   events cards. Blank draws no class, so the rules above still decide for
   every site that never chose. The choice holds on a desktop; from 900px
   down three and four become two, and from 640px down every choice is one
   column, the steps the gallery takes. The doubled class outweighs the band
   rules above wherever a later edit moves them. */
.samye-home__section.samye-home__section--cols-2 .samye-news--cards,
.samye-home__section.samye-home__section--cols-2 .samye-events--cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.samye-home__section.samye-home__section--cols-3 .samye-news--cards,
.samye-home__section.samye-home__section--cols-3 .samye-events--cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.samye-home__section.samye-home__section--cols-4 .samye-news--cards,
.samye-home__section.samye-home__section--cols-4 .samye-events--cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .samye-home__section.samye-home__section--cols-3 .samye-news--cards,
  .samye-home__section.samye-home__section--cols-3 .samye-events--cards,
  .samye-home__section.samye-home__section--cols-4 .samye-news--cards,
  .samye-home__section.samye-home__section--cols-4 .samye-events--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .samye-home__section.samye-home__section--cols-2 .samye-news--cards,
  .samye-home__section.samye-home__section--cols-2 .samye-events--cards,
  .samye-home__section.samye-home__section--cols-3 .samye-news--cards,
  .samye-home__section.samye-home__section--cols-3 .samye-events--cards,
  .samye-home__section.samye-home__section--cols-4 .samye-news--cards,
  .samye-home__section.samye-home__section--cols-4 .samye-events--cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* About the centre: the centre's own words under a heading, between the
   welcome and the feeds. The prose takes the bio's treatment exactly — the
   fleet measure, text-m, the soft ink — because it is the same kind of
   thing: a centre speaking, not the machinery. */
.samye-home__about-words {
  max-width: min(62ch, 100%);
  font-size: var(--text-m, 1.6rem);
  line-height: 1.7;
  color: var(--samye-ink-soft, #4a4a4a);
}

.samye-home__about-words p {
  margin: 0;
}

.samye-home__about-words p + p {
  margin-top: var(--space-s, 1.6rem);
}

/* The About band is a row: the words, then a picture. The Rinpoche band's
   structure mirrored — flex-wrap rather than a breakpoint, because the two
   children carry their own minimum widths and stack the moment the band
   cannot hold both, so this keys on the CONTAINER and never has to be kept in
   step with ACSS's breakpoints.
   Mirrored deliberately: the picture sits RIGHT here and the Rinpoche
   portrait sits LEFT below, so the page's two prose bands stop being the same
   band twice. The words come first in the DOM either way, which is also the
   right reading order once the band stacks on a phone. */
.samye-home__about-body {
  display: flex;
  flex-wrap: wrap;
  gap: var(--content-gap, 3.2rem);
  align-items: start;
}

/* Only when there is a picture, for the reason the Rinpoche band gives: with
   one child the flex row would stretch the words to the full band and the
   62ch measure above would stop meaning anything. */
.samye-home__about-body--picture > .samye-home__about-words {
  flex: 1 1 32rem;
}

.samye-home__about-figure {
  /* Grows into its column when the band stacks, capped so it never balloons
     on a wide screen. The prose takes whatever is left, as on the portrait. */
  flex: 1 1 24rem;
  max-width: 40rem;
  aspect-ratio: 4 / 3;
  /* Load-bearing, exactly as on .samye-home__rinpoche-portrait: this is a flex
     item, so min-height:auto would let the image's natural size beat the
     ratio. Clipping restores it and lets object-fit crop. */
  overflow: hidden;
  border-radius: var(--samye-radius, 4px);
  background: var(--samye-parchment, #F5F3F3);
}

.samye-home__about-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Around the centre: the centre's photographs in a row. Its ground is its
   position's (see .samye-home__section above). 34rem tracks put three photos
   across the 1200 container; auto-fill lets two photos sit as two without
   stretching to fill the row. */
.samye-home__gallery-grid {
  display: grid;
  /* Three across, stated. This was auto-fill on a 34rem minimum, which is
     three columns only above about 1130px and two on a 1024 desktop (Matt,
     2026-09-15: "3 or 4 columns on desktop"). Three, not four: six
     photographs divide by three, and four leaves a ragged last row on every
     count that is not a multiple of four. minmax(0, 1fr) so a wide image
     cannot push its track past an equal share. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* 2.4rem literal, as the events and news card grids state it — the three
     grids sit on one page and must gutter alike. */
  gap: 2.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Two on a tablet, one on a phone: the file's own 900 and 640 breakpoints. */
@media (max-width: 900px) {
  .samye-home__gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .samye-home__gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The same load-bearing overflow as .samye-events__card-media (see
   primitives.css): the item is a grid child, the img asks for 100% of an
   indefinite height, and only clipping restores the declared ratio. */
.samye-home__gallery-item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--samye-radius, 4px);
  background: var(--samye-parchment, #F5F3F3);
}

.samye-home__gallery-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Real image links remain usable if the lightbox script is unavailable. */
.samye-home__gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.samye-home__gallery-item:focus-within {
  outline: 3px solid var(--samye-ink, #252525);
  outline-offset: 4px;
}

/* Rinpoche: the portrait beside a measured column of prose.

   Flex-wrap, not a breakpoint. The two children carry their own minimum
   widths and wrap to one column the moment the band cannot hold both, so
   this keys on the CONTAINER and never has to be kept in step with ACSS's
   breakpoints — the same reasoning as .samye-contact-page__body--two, which
   solves the same problem with auto-fit because its two halves are equal.
   These are not equal: the prose gets the room, the portrait keeps its size. */
.samye-home__rinpoche-body {
  display: flex;
  flex-wrap: wrap;
  gap: var(--content-gap, 3.2rem);
  align-items: start;
}

/* Only when there is a portrait. Without it the words are a plain block and
   the flex row would otherwise stretch that lone child to the full band. */
.samye-home__rinpoche-body--portrait > .samye-home__rinpoche-words {
  flex: 1 1 32rem;
}

.samye-home__rinpoche-portrait {
  /* Grows to fill its column when the band stacks — a 30rem portrait left a
     ragged gap beside a full-width paragraph on a phone — but capped, so it
     never balloons on a wide screen. The prose takes whatever is left. */
  flex: 1 1 24rem;
  max-width: 34rem;
  aspect-ratio: 1 / 1;
  /* Load-bearing, exactly as on .samye-events__card-media: this is a flex
     item, so min-height:auto would let the image's natural size beat the
     ratio. Clipping restores it and lets object-fit crop. */
  overflow: hidden;
  border-radius: var(--samye-radius, 4px);
  background: var(--samye-parchment, #F5F3F3);
}

.samye-home__rinpoche-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 62ch, the fleet's one reading measure — see the note on .samye-home__lede.
   This briefly said 54ch. That number came from a local render in which the
   body font had not loaded, so ch measured 11.3px instead of the real 10.0px
   and the correction overshot. Measured against the live stylesheets it set
   63 characters where its three siblings set 71. */
.samye-home__bio {
  max-width: min(62ch, 100%);
  margin: 0;
  font-size: var(--text-m, 1.6rem);
  line-height: 1.7;
  color: var(--samye-ink-soft, #4a4a4a);
}

/* A centre's own Rinpoche words arrive through wpautop, so the block holds
   paragraphs; the Samye wording is one bare <p> and never reaches these. Same
   rhythm as the About words above. */
.samye-home__bio p {
  margin: 0;
}

.samye-home__bio p + p {
  margin-top: var(--space-s, 1.6rem);
}

/* ----- Ordinary page (templates/page.php) --------------------------------
   Drawn by samye_pages_render_standard() when the standard_pages toggle is
   on and no role or Bricks content claims the page. Everything below the
   band is the centre's own content, so this styles the CHROME and the
   measure, and then gets out of the way: no colour, weight or spacing is
   imposed on the prose itself beyond a readable column and the vertical
   rhythm between blocks. A page that looked right in the site's own
   template should still read right here.

   The prose measure is wider than the head's 62ch because body copy here
   can carry images, embeds and tables that a heading column would crop. */

/* Shared chrome for the three fleet-drawn page shells — ordinary page here,
   managed contact page and managed listing (events/news) further down the
   file. Line-height and the title's margin are the one place each differs;
   kept as their own small rules right underneath. */
.samye-page,
.samye-contact-page,
.samye-listing {
  display: block;
  /* Block-END only: the head band above owns the top, and a top padding
     here would leave a white strip above it. */
  padding-block-end: var(--section-space-m, 6.4rem);
  font-family: var(--samye-t-body, sans-serif);
  font-size: var(--text-m, 1.6rem);
  color: var(--samye-ink, #111);
  background: var(--samye-white, #fff);
}

.samye-page { line-height: 1.7; }
.samye-contact-page,
.samye-listing { line-height: 1.6; }

.samye-page__title,
.samye-contact-page__title,
.samye-listing__title {
  font-family: var(--samye-t-heading, Georgia, serif);
  font-weight: 400;
  font-size: var(--h1, clamp(3.2rem, 2.4rem + 2vw, 4.4rem));
  line-height: 1.15;
}

.samye-page__title { margin: 0; }
.samye-contact-page__title,
.samye-listing__title { margin: 0 0 var(--space-s, 1.6rem); }

/* "Samye design, no header": the page draws its own opening, so the band is
   gone and nothing is left to hold the content off the masthead. The band
   supplied that separation as its own block padding; this restores the same
   order of space without the ground, which is why it is space-s and not the
   band's space-m — a page that opens with its own coloured hero wants a gap,
   not a second empty band's worth of room. */
.samye-page__inner--no-head {
  padding-block-start: var(--section-space-s, 4.8rem);
}

.samye-page__body {
  max-width: min(78ch, 100%);
}

/* Rhythm between whatever the centre wrote, without restyling any of it.
   `> *` so a nested grid or gallery keeps its own spacing, and margin-block
   -start so the first block sits flush under the band. */
.samye-page__body > * + * {
  margin-block-start: var(--space-m, 2.4rem);
}

/* The fleet's own list pictures are left out: they fill a fixed frame at
   height: 100% (primitives.css), and this rule's extra specificity squashed
   a landscape picture to its natural height, leaving the bottom of the
   square empty. Seen on the first category archive, 2026-09-29, the first
   [samye_news] list drawn inside a page body. */
.samye-page__body img:not(.samye-news__image, .samye-news__card-img, .samye-events__image),
.samye-page__body iframe,
.samye-page__body video {
  max-width: 100%;
  height: auto;
}

/* Wide content scrolls inside itself rather than pushing the page sideways,
   which is the failure the teacher single shipped with (0.46.6, fixed in the
   same release as this file arrived). */
.samye-page__body table,
.samye-page__body pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* ----- A news post's own page (single-samye_news.php) --------------------
   Filled by samye_newsroom_single_parts(), framed by samye_base_page_frame(). It borrows the standard page's
   band, title, column and body measure wholesale; these two rules are the
   only things it adds. The date sits under the title inside the band, and
   the picture opens the body flush to the column — a figure's default
   40px inline margins would have indented it alone. */
.samye-news-single__meta {
  margin: var(--space-xs, 0.8rem) 0 0;
  font-size: var(--text-s, 1.4rem);
  color: var(--samye-ink-soft, #555);
}

.samye-news-single__figure {
  margin: 0;
}

/* ----- Managed contact page (templates/contact.php) ----------------------
   Drawn by samye_pages_render_contact() when Pages has the contact page in
   managed mode. Heading and intro in a measured column, then the details
   and the form side by side where both exist and there is room — the grid
   keys on container width, so no breakpoint to keep in step with ACSS. */

/* The shell and title rules live with .samye-page above, grouped across all
   three fleet-drawn page templates. */

/* --text-m, not --text-l: the intro read as body copy at 19.2px on desktop where the body
   around it is 18px, which is a step the eye reads as emphasis rather than as an introduction.
   Matt's call, 2026-08-29. The two __lede rules (home hero, 404) keep --text-l deliberately —
   those are display text with nothing above them to be a step away from. Shared with
   .samye-listing__intro further down. */
.samye-contact-page__intro,
.samye-listing__intro {
  max-width: min(60ch, 100%);
  font-size: var(--text-m, 1.6rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--neutral, oklch(0.177638 0 0));
  text-wrap: balance;
}

.samye-contact-page__intro p,
.samye-listing__intro p {
  margin: 0;
}

.samye-contact-page__intro p + p,
.samye-listing__intro p + p {
  margin-top: var(--space-xs, 0.8rem);
}

.samye-contact-page__body {
  display: grid;
  gap: var(--grid-gap, 4.8rem);
  align-items: start;
}

.samye-contact-page__body--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 32rem), 1fr));
}

.samye-contact-page__details {
  display: grid;
  gap: var(--space-m, 2.4rem);
}

.samye-contact-page__details p,
.samye-contact-page__address {
  margin: 0;
  font-style: normal;
}

.samye-contact-page__line {
  display: block;
}

.samye-contact-page__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--samye-ink-muted, #6E6E6E);
}

/* Sized to the label it sits beside, and taking its colour rather than
   stating one, so the glyph stays subordinate to the value underneath. */
.samye-contact-page__ico {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.samye-contact-page__details a {
  color: var(--samye-crimson, #B83029);
  text-decoration: none;
}

.samye-contact-page__details a:hover,
.samye-contact-page__details a:focus-visible {
  text-decoration: underline;
}

.samye-contact-page__map {
  display: inline-block;
  margin-top: 0.4rem;
}

.samye-contact-page__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  /* Cancels the first link's tap padding, as the footer's row does at its end. */
  margin-inline-start: -1rem;
  padding: 0;
  list-style: none;
}

/* The link, hover and icon rules live in assets/footer.css with the footer's
   social link, which this shares byte-for-byte. */

/* The form primitive caps itself at 56rem; in its own column it starts at
   the column's edge rather than centring inside it. */
.samye-contact-page__form .samye-contact {
  margin: 0;
}

/* ----- Managed listing pages (templates/events.php, templates/news.php) --
   Heading and intro in a measured column over the feature's own list; the
   list brings its own styles from primitives.css. */

/* The shell and title rules live with .samye-page near the top of the file;
   the intro rules live with .samye-contact-page__intro above, since both
   share it byte-for-byte. */

.samye-listing__empty {
  margin: 0;
  color: var(--samye-ink-muted, #6E6E6E);
}

/* ----- The error page (404.php) ---------------------------------------
   The parent theme's version is an unstyled h1 and a bare, unlabelled search
   input. This is the oldest convention on the web drawn in the fleet's own
   type: the numeral, the statement, one sentence, one button.

   Centred, and centred by symmetric padding rather than by viewport maths.
   `min-height: calc(100vh - <header> - <footer>)` is the reflex and is wrong
   here: neither chrome has a fixed height (the header's logo is a per-site
   value, the footer's depth follows how many family links a site shows), so
   the subtraction would be a guess that goes stale per site. A tall block of
   section-space-l above and below puts the numeral in the same place without
   measuring anything. */

.samye-404 {
  display: block;
  padding-block: var(--section-space-l, 9.6rem);
  text-align: center;
  font-family: var(--samye-t-body, sans-serif);
  font-size: var(--text-m, 1.6rem);
  line-height: 1.6;
  color: var(--samye-ink, #111);
  background: var(--samye-white, #fff);
}

/* The numeral. Fluid on its own scale, not on --h1: at the display size this
   wants, --h1's ceiling (4.26rem on the live sites) is a quarter of it, and
   the low end has to stay under a 390px phone — "404" in Merriweather at
   9.6rem measures about 19rem, which clears a 34.7rem column. */
.samye-404__code {
  margin: 0;
  font-family: var(--samye-t-heading, Georgia, serif);
  font-weight: 400;
  font-size: clamp(9.6rem, 6rem + 8vw, 16.8rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--samye-crimson, #B83029);
}

.samye-404__title {
  margin: var(--space-m, 2.4rem) 0 0;
  font-family: var(--samye-t-heading, Georgia, serif);
  font-weight: 400;
  font-size: var(--h1, clamp(3.2rem, 2.4rem + 2vw, 4.4rem));
  line-height: 1.15;
  color: var(--samye-ink, #111);
}

.samye-404__lede {
  max-width: min(46ch, 100%);
  margin: var(--space-s, 1.6rem) auto 0;
  font-size: var(--text-l, 2rem);
  line-height: 1.5;
  color: var(--samye-ink-soft, #4a4a4a);
  text-wrap: pretty;
}

.samye-404__action {
  margin: var(--space-m, 2.4rem) 0 0;
}

/* .samye-btn states `font-size: 1rem`, and the fleet's root is 62.5% — so the
   class alone renders a 10px label. .samye-home__button carries the same
   correction for the same reason; without it the one control on the page is a
   third the size of the sentence above it (caught by screenshot, 2026-08-28,
   by no assertion). */
.samye-404__button {
  font-size: var(--text-m, 1.6rem);
}

/* ----- The search results page (search.php) ----------------------------
   Same conventions as the error page above: one h1, a sentence, and a way
   forward that cannot dead-end — here the form, pre-filled. Rows are flat
   and typed; the label chip is what keeps a mixed result set legible. */
.samye-search {
  padding: var(--section-space-m, 6rem) var(--gutter, 2.4rem);
}

.samye-search__title {
  margin: 0 0 var(--space-m, 2.4rem);
}

.samye-search__form {
  display: flex;
  gap: 0.8rem;
  margin: 0 0 var(--space-m, 2.4rem);
}

.samye-search__form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.2rem;
  font-size: var(--text-m, 1.6rem);
  color: var(--samye-ink, #111);
  caret-color: var(--samye-crimson, #B83029);
  border: 1px solid var(--samye-silver-soft, #E5E3E0);
  border-radius: var(--samye-radius, 4px);
}

/* The same crimson focus answer the header's box gives — one language on
   both search surfaces. The default outline goes only because this border
   and ring visibly replace it. */
.samye-search__form input[type="search"]:focus-visible {
  outline: none;
  border-color: var(--samye-crimson, #B83029);
  box-shadow: 0 0 0 3px rgba(184, 48, 41, 0.14);
}

/* The same 62.5%-root correction every fleet button carries. */
.samye-search__submit {
  font-size: var(--text-m, 1.6rem);
}

.samye-search__lede {
  margin: 0 0 var(--space-l, 3.2rem);
  color: var(--samye-ink-soft, #4A4A4A);
}

.samye-search__results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.samye-search__result {
  padding: var(--space-m, 2.4rem) 0;
  border-block-start: 1px solid var(--samye-silver-soft, #E5E3E0);
}

.samye-search__type {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--samye-ink-soft, #4A4A4A);
}

.samye-search__result-title {
  margin: 0;
  font-size: var(--h4, 2rem);
}

.samye-search__excerpt {
  margin: 0.6rem 0 0;
  color: var(--samye-ink-soft, #4A4A4A);
}

/* The searched words, where the site has asked for them to be marked. A wash
   of the brand's own parchment rather than the browser's yellow, which on a
   Samye page reads as a highlighter left on the scan. Colour is stated so the
   inherited ink survives the background change in both schemes. */
.samye-search mark {
  background: var(--samye-sand, #EFE7DA);
  color: inherit;
  padding: 0 0.2em;
  border-radius: 2px;
}

/* ----- Grouped results (search: group_by_type, off by default) ---------
   A row of jump links with counts, then one section per kind of content.
   The shape is samyeinstitute.org's; the chips are anchors, so the whole
   thing works with JavaScript switched off, like everything else here. */
.samye-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 0;
}

.samye-search__chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  /* Outlined, not filled: measured on New York, a parchment fill on a
     parchment page read as no control at all. Same quiet outline the
     language pill uses — the crimson donate pill stays the only filled
     button in the fleet. */
  border: 1px solid var(--samye-silver-soft, #E5E3E0);
  border-radius: 999px;
  color: var(--samye-ink, #111);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.samye-search__chip:hover,
.samye-search__chip:focus-visible {
  border-color: var(--samye-crimson, #B83029);
  color: var(--samye-crimson, #B83029);
}

.samye-search__chip-count {
  font-size: 0.85em;
  color: var(--samye-ink-muted, #6B6B6B);
}

.samye-search__chip:hover .samye-search__chip-count,
.samye-search__chip:focus-visible .samye-search__chip-count {
  color: inherit;
}

.samye-search__group {
  /* Stated, not inherited — box AND layout. Bricks and ACSS style the bare
     `section` element, and an element rule reaches ours simply because no
     class rule said otherwise. Measured on live New York: 90px block and
     60px inline of padding, `display: flex` and a 67.5px gap, none of it
     asked for. It read as a group inset from the list above it with a band
     of dead air between every heading and its own first result. A class
     beats an element selector, so saying it here is the whole fix — and
     saying only `padding` fixed half of it, which is why `display` and
     `gap` are named too. */
  display: block;
  gap: 0;
  margin: 3.2rem 0 0;
  padding: 0;
  /* The anchor lands under a sticky header on the sites that have one. */
  scroll-margin-block-start: 8rem;
}

/* The head's rule already separates; the first row's own would be a second
   line a hair below it. */
.samye-search__group .samye-search__results {
  margin-block-start: 0;
}

.samye-search__group .samye-search__result:first-child {
  padding-block-start: 1.6rem;
  border-block-start: 0;
}

.samye-search__group-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding-block-end: 0.8rem;
  border-block-end: 1px solid var(--samye-silver-soft, #E5E3E0);
}

.samye-search__group-title {
  margin: 0;
  font-size: 2rem;
}

.samye-search__group-count {
  color: var(--samye-ink-muted, #6B6B6B);
}

/* Pushed to the end edge so the eye reads name, count, then the way out. */
.samye-search__group-more {
  margin-inline-start: auto;
  color: var(--samye-crimson, #B83029);
}

/* The section head already says what these are; a label on every row under
   it would say it again once per result. */
.samye-search__group .samye-search__type {
  display: none;
}

/* The way out of a search that found nothing: editorial suggestions, never
   a log of what visitors typed. See samye_search_suggestions(). */
.samye-search__try {
  margin: 2.4rem 0 0.8rem;
  color: var(--samye-ink-soft, #4A4A4A);
}

.samye-search__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.samye-search__suggestion {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--samye-silver-soft, #E5E3E0);
  border-radius: 999px;
  color: var(--samye-ink, #111);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.samye-search__suggestion:hover,
.samye-search__suggestion:focus-visible {
  border-color: var(--samye-crimson, #B83029);
  color: var(--samye-crimson, #B83029);
}

/* ----- Design preview banner (Pages → "See the Samye design") ---------- */
.samye-design-preview {
  margin: 0;
  padding: 1rem var(--gutter, 2.4rem);
  background: var(--samye-crimson, #B83029);
  color: var(--samye-white, #fff);
  font-family: var(--samye-t-body, sans-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  text-align: center;
}

/* ===== Base layer: ACSS 4.0.1's compiled output, frozen verbatim ==========================
   Every rule below is byte-for-byte what automatic.css served, extracted mechanically rather
   than transcribed, so a cutover site renders identically with the plugin gone.

   THIS BLOCK WAS REBUILT 2026-08-29 AFTER IT BROKE FOUR SITES. Its first version was derived
   from the taiwan pilot, which measured ACSS's selector overlap against TAIWAN's markup and
   found essentially one class. That was true of taiwan and false of everywhere else: taiwan's
   pages are drawn by the fleet templates, so it has zero top-level <section> elements and zero
   Bricks .brxe-div containers — precisely the elements ACSS's heaviest layout rules are keyed
   to. healing matched 70 rules where taiwan matched 21, and lost 704px of page height when its
   four sections lost `padding-block: var(--section-padding-block)`.

   The lesson worth keeping: a pilot chosen for minimum blast radius is, by construction, the
   site least able to show what the change breaks. The property that made taiwan safe to try
   made its result unsafe to generalise.

   How to verify this block is still complete (per site, on a page that site actually builds —
   NOT a fleet-drawn one):

     const css = await (await fetch('/wp-content/uploads/automatic-css/automatic.css')).text();
     const sheet = new CSSStyleSheet(); await sheet.replace(css);
     // walk sheet.cssRules; every rule whose selector matches document.querySelectorAll()
     // must have a counterpart here.

   The variables these rules consume are NOT here. They live in the Bricks global-variable
   store, written from canon/bricks-design-1.0.json, which now carries ACSS's entire :root.

   Inert while ACSS is active: it enqueues after fleet.css with identical rules.
   ========================================================================================= */

/* Feat: Reset */
:root {
  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body { min-block-size: 100svh; }

input, button, textarea, select { font: inherit; }

button:not(nav button, [class*="btn--"]) { line-height: var(--btn-line-height); letter-spacing: var(--btn-letter-spacing); text-transform: var(--btn-text-transform); text-decoration: var(--btn-text-decoration); text-align: var(--btn-text-align); font-weight: var(--btn-font-weight); font-style: var(--btn-font-style); font-family: var(--btn-font-family); }

html { font-size: var(--root-font-size) !important; }

:where(body) { font-size: var(--text-m); overflow-x: clip; color: var(--text-color); line-height: var(--text-line-height); text-wrap: var(--text-text-wrap); background: var(--body-bg-color); transition: background var(--transition); }

:where(p) { line-height: var(--text-line-height, calc(8px + 2.1ex)); }

h1, :where(.h1), h2, :where(.h2), h3, :where(.h3), h4, :where(.h4), h5, :where(.h5), h6, :where(.h6) { line-height: var(--heading-line-height); font-weight: var(--heading-font-weight); text-wrap: var(--heading-text-wrap); }

h1 { font-size: var(--h1); max-width: var(--h1-max-width); }

h2 { font-size: var(--h2); max-width: var(--h2-max-width); }

h3 { font-size: var(--h3); max-width: var(--h3-max-width); }

h4 { font-size: var(--h4); line-height: var(--h4-line-height); max-width: var(--h4-max-width); }

h5 { font-size: var(--h5); max-width: var(--h5-max-width); }

h6 { font-size: var(--h6); max-width: var(--h6-max-width); }

:where(blockquote:where(:not(figure > blockquote)), figure:has(> blockquote), .blockquote):where(:not(:is(:is([class*="-card"] blockquote, figure[class*="-card"], figure[class*="-card"] blockquote)))) { display: flex; flex-direction: column; gap: var(--blockquote-gap); inline-size: 100%; padding: var(--blockquote-padding); gap: var(--blockquote-gap); border-width: var(--blockquote-border-width); border-style: var(--blockquote-border-style); border-color: var(--blockquote-border-color); border-radius: var(--blockquote-border-radius); background: var(--blockquote-background); box-shadow: var(--blockquote-box-shadow); }

:where(blockquote:where(:not(figure > blockquote)), figure:has(> blockquote), .blockquote):where(:not(:is(:is([class*="-card"] blockquote, figure[class*="-card"], figure[class*="-card"] blockquote)))) p { color: var(--blockquote-text-color); font-family: var(--blockquote-text-font-family); font-style: var(--blockquote-text-font-style); font-size: var(--blockquote-text-font-size); font-weight: var(--blockquote-text-font-weight); line-height: var(--blockquote-text-line-height); text-align: var(--blockquote-text-text-align); text-transform: var(--blockquote-text-text-transform); }

:where(blockquote:where(:not(figure > blockquote)), figure:has(> blockquote), .blockquote):where(:not(:is(:is([class*="-card"] blockquote, figure[class*="-card"], figure[class*="-card"] blockquote)))) footer, :where(blockquote:where(:not(figure > blockquote)), figure:has(> blockquote), .blockquote):where(:not(:is(:is([class*="-card"] blockquote, figure[class*="-card"], figure[class*="-card"] blockquote)))) figcaption { display: var(--blockquote-footer-display, flex); flex-direction: var(--blockquote-footer-flex-direction, row); align-items: var(--blockquote-footer-align-items, center); gap: var(--blockquote-footer-gap, calc(var(--content-gap) / 2)); padding: var(--blockquote-footer-padding); margin-block: var(--blockquote-footer-margin-block); font-family: var(--blockquote-footer-font-family); font-size: var(--blockquote-footer-font-size); font-weight: var(--blockquote-footer-font-weight); font-style: var(--blockquote-footer-font-style); line-height: var(--blockquote-footer-line-height); text-transform: var(--blockquote-footer-text-transform); color: var(--blockquote-footer-color); }

:where(blockquote:where(:not(figure > blockquote)), figure:has(> blockquote), .blockquote):where(:not(:is(:is([class*="-card"] blockquote, figure[class*="-card"], figure[class*="-card"] blockquote)))) cite, :where(blockquote:where(:not(figure > blockquote)), figure:has(> blockquote), .blockquote):where(:not(:is(:is([class*="-card"] blockquote, figure[class*="-card"], figure[class*="-card"] blockquote)))) figcaption cite { font-family: var(--blockquote-cite-font-family); font-size: var(--blockquote-cite-font-size); font-weight: var(--blockquote-cite-font-weight); font-style: var(--blockquote-cite-font-style); line-height: var(--blockquote-cite-line-height); text-transform: var(--blockquote-cite-text-transform); color: var(--blockquote-cite-color); }

/* The button VARIANTS, matched on either class form.
 *
 * A Bricks button's "Style" setting is stored as e.g. `btn--neutral-light`, and
 * Bricks itself renders only `bricks-background-btn--neutral-light`
 * (includes/elements/button.php). ACSS ADDITIONALLY emitted the bare setting as
 * a class, and that integration leaves when ACSS is deactivated — so a variant
 * rule written as `.btn--neutral-light` silently stops matching, and the button
 * falls back to whatever the base layer gives it. That is exactly what happened
 * on bali the moment ACSS went inactive: its light "Donate Now" button turned
 * red, with no error anywhere, because the base rule `[class*="btn--"]` still
 * matched `bricks-background-btn--…` while the VARIANT rule no longer did.
 *
 * Matching the substring covers both forms and needs no PHP: a site keeps its
 * buttons whether ACSS is present, absent, or halfway out. samyetranslations
 * had been carrying the same gap unnoticed since its own cut-over.
 *
 * ORDER IS LOAD-BEARING: `btn--neutral-light` contains `btn--neutral`, so the
 * light rule must come after the neutral one to win at equal specificity. */
[class*="btn--primary"] { --btn-background: var(--primary); --btn-background-hover: var(--primary-hover); --btn-text-color: var(--primary-ultra-light); --btn-text-color-hover: var(--primary-ultra-light); --btn-border-color: var(--primary); --btn-border-color-hover: var(--primary-hover); --focus-color: var(--primary-light); }

/* The neutral button pair, ported verbatim from ACSS 4.0.1 for the bali and
   newyork cut-over. `.btn--neutral-light` is RENDERED on bali's home page and
   is the only uncovered ACSS utility class in use across all 52 published
   pages of the two sites — measured, not assumed (bin/acss-coverage.py finds
   the rules fleet.css lacks; a crawl of every published URL finds which of
   them a visitor actually meets). `.btn--neutral` comes with it because it is
   the pair's base and appears in unpublished content: a draft promoted after
   ACSS is gone would otherwise render an unstyled button with nothing to say
   why. The remaining 60-odd uncovered utilities are registered in Bricks'
   class picker by ACSS but applied to nothing, and are deliberately not
   ported. */
[class*="btn--neutral"] { --btn-background: var(--neutral); --btn-background-hover: var(--neutral-dark); --btn-text-color: var(--neutral-ultra-light); --btn-text-color-hover: var(--neutral-ultra-light); --btn-border-color: var(--neutral); --btn-border-color-hover: var(--neutral-dark); --focus-color: var(--primary); }

[class*="btn--neutral-light"] { --btn-background: var(--neutral-ultra-light); --btn-background-hover: var(--neutral-light); --btn-text-color: var(--neutral); --btn-text-color-hover: var(--neutral-ultra-dark); --btn-border-color: var(--neutral-ultra-light); --btn-border-color-hover: var(--neutral-light); --focus-color: var(--neutral-light); }

[class*="btn--"]:where(:not(.btn--none, .wp-block-button)), [class*="btn--"].wp-block-button > .wp-block-button__link { background: var(--btn-background); color: var(--btn-text-color); padding-block: var(--btn-padding-block); padding-inline: var(--btn-padding-inline); inline-size: var(--btn-width, auto); min-inline-size: var(--btn-min-width); line-height: var(--btn-line-height); font-family: var(--btn-font-family); font-size: var(--btn-font-size, var(--text-m)); font-weight: var(--btn-font-weight); font-style: var(--btn-font-style); text-transform: var(--btn-text-transform); letter-spacing: var(--btn-letter-spacing); text-decoration: var(--btn-text-decoration); border-width: var(--btn-border-width); border-style: var(--btn-border-style); border-radius: var(--btn-border-radius); border-color: var(--btn-border-color); transition: var(--btn-transition, var(--transition)); justify-content: var(--btn-justify-content, center); align-items: var(--btn-align-items, center); text-align: var(--btn-text-align, center); display: var(--btn-display, inline-flex); }

@media (hover: hover) and (pointer: fine) {
  [class*="btn--"]:where(:not(.btn--none, .wp-block-button)):hover, [class*="btn--"].wp-block-button > .wp-block-button__link:hover { background: var(--btn-background-hover); color: var(--btn-text-color-hover); border-color: var(--btn-border-color-hover); text-decoration: var(--btn-text-decoration-hover); }
}

[class*="btn--"]:where(:not(.btn--none, .wp-block-button)):where(:focus-visible), [class*="btn--"].wp-block-button > .wp-block-button__link:where(:focus-visible) { outline-style: solid; outline-color: var(--focus-color); outline-width: var(--focus-width); outline-offset: var(--focus-offset); }

[id] { scroll-margin-top: var(--offset, 0); }

.skip-link { position: absolute !important; inset-block-start: 1rem; inset-inline-start: 1rem; transform: translateY(-250%); --btn-min-width: fit-content; z-index: 100; background: var(--btn-background); color: var(--btn-text-color); padding-block: var(--btn-padding-block); padding-inline: var(--btn-padding-inline); inline-size: var(--btn-width, auto); min-inline-size: var(--btn-min-width); line-height: var(--btn-line-height); font-family: var(--btn-font-family); font-size: var(--btn-font-size, var(--text-m)); font-weight: var(--btn-font-weight); font-style: var(--btn-font-style); text-transform: var(--btn-text-transform); letter-spacing: var(--btn-letter-spacing); text-decoration: var(--btn-text-decoration); border-width: var(--btn-border-width); border-style: var(--btn-border-style); border-radius: var(--btn-border-radius); border-color: var(--btn-border-color); transition: var(--btn-transition, var(--transition)); justify-content: var(--btn-justify-content, center); align-items: var(--btn-align-items, center); text-align: var(--btn-text-align, center); display: var(--btn-display, inline-flex); --btn-background: var(--primary); --btn-background-hover: var(--primary-hover); --btn-text-color: var(--primary-ultra-light); --btn-text-color-hover: var(--primary-ultra-light); --btn-border-color: var(--primary); --btn-border-color-hover: var(--primary-hover); --focus-color: var(--primary-light); }

@media (hover: hover) and (pointer: fine) {
  .skip-link:hover { background: var(--btn-background-hover); color: var(--btn-text-color-hover); border-color: var(--btn-border-color-hover); text-decoration: var(--btn-text-decoration-hover); }
}

:where(section:not(section section)) { display: flex; flex-direction: column; padding-block: var(--section-padding-block); padding-inline: var(--gutter); }

.bg--ultra-light :where(h1, h2, h3, h4, h5, h6) { color: var(--relative-heading-color, inherit); }

.bg--light :where(h1, h2, h3, h4, h5, h6) { color: var(--relative-heading-color, inherit); }

.bg--dark :where(h1, h2, h3, h4, h5, h6) { color: var(--relative-heading-color, inherit); }

.bg--ultra-dark :where(h1, h2, h3, h4, h5, h6) { color: var(--relative-heading-color, inherit); }

.text--xxl:is(p, li, blockquote, h1, h2, h3, h4, h5, h6, span, strong, cite) { max-width: var(--text-xxl-max-width); }

.text--xl:is(p, li, blockquote, h1, h2, h3, h4, h5, h6, span, strong, cite) { max-width: var(--text-xl-max-width); }

.text--l:is(p, li, blockquote, h1, h2, h3, h4, h5, h6, span, strong, cite) { max-width: var(--text-l-max-width); }

.text--m:is(p, li, blockquote, h1, h2, h3, h4, h5, h6, span, strong, cite) { max-width: var(--text-m-max-width); }

.text--s:is(p, li, blockquote, h1, h2, h3, h4, h5, h6, span, strong, cite) { max-width: var(--text-s-max-width); }

.text--xs:is(p, li, blockquote, h1, h2, h3, h4, h5, h6, span, strong, cite) { max-width: var(--text-xs-max-width); }

:where(section:not(section section)) { gap: var(--container-gap); }

:where(section:not(section section)) > :where(div, ul, ol) { gap: var(--content-gap); }

:where(:where(.brxe-block)) { gap: var(--content-gap); }

:where(:where(.brxe-div)) { gap: var(--content-gap); }

section > div:where([class*="grid--"]), :where([class*="grid--"]) { gap: var(--grid-gap); }

:is(*, img, figure, picture).is-bg { position: var(--bg-position, absolute) !important; inset: var(--bg-inset, 0); inline-size: var(--bg-width, 100%); max-inline-size: 100%; block-size: var(--bg-height, 100%); border-radius: var(--bg-radius, 0); object-fit: var(--bg-object-fit, cover); object-position: var(--bg-object-position, center); z-index: var(--bg-z-index, -2); border-radius: var(--bg-radius, 0); pointer-events: none; }

:is(*, img, figure, picture).is-bg > img { object-fit: var(--bg-object-fit, cover); object-position: var(--bg-object-position, center); inline-size: 100%; block-size: 100%; border-radius: var(--bg-radius, 0); }

.content-grid > :is(*, img, figure, picture).is-bg { grid-column: full; }

body :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li) { margin-block: 0; }

.smart-spacing-normalize :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li) { margin-block: 0; }

.smart-spacing > * + :where(h1, h2, h3, h4, h5, h6) { margin-block-start: var(--heading-spacing, var(--flow-spacing, initial)); margin-block-end: 0; }

.smart-spacing > :is(figure, blockquote, ul, ol):where(:not(:first-child)) + * { --paragraph-spacing: 0; --flow-spacing: 0; }

.smart-spacing--off :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li) { margin-block: 0; }

.brxe-text > * + :where(h1, h2, h3, h4, h5, h6), .brxe-post-content:where(:not([data-source="bricks"])) > * + :where(h1, h2, h3, h4, h5, h6) { margin-block-start: var(--heading-spacing, var(--flow-spacing, initial)); margin-block-end: 0; }

.brxe-text > :is(figure, blockquote, ul, ol):where(:not(:first-child)) + *, .brxe-post-content:where(:not([data-source="bricks"])) > :is(figure, blockquote, ul, ol):where(:not(:first-child)) + * { --paragraph-spacing: 0; --flow-spacing: 0; }

body :where(p:last-of-type) + :is(h1, h2, h3, h4, h5, h6) { margin-top: 0; margin-block-start: 0; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* The link defaults. ACSS writes the attribute selector unquoted, with a space after the `=`,
   and that exact spelling is kept: the browser normalises it to [class*="btn--"] in cssText,
   which is why an extraction taken from the DOM does not match the file it came from. */
body a:where(:not([class*= btn--])) {
  color: var(--link-color, var(--primary));
  font-weight: var(--link-weight, inherit);
  -webkit-text-decoration: var(--link-decoration, inherit);
  text-decoration: var(--link-decoration, inherit);
  text-underline-offset: var(--link-underline-offset, auto);
  transition: var(--link-transition, var(--transition));
}

@media (hover: hover) and (pointer: fine) {
  body a:where(:not([class*= btn--])):hover {
    color: var(--link-color-hover, var(--primary-hover));
  }
}

/* ===== Rules my own extraction missed, restored 2026-08-29 ================================
   Two blind spots, both mine, both found by diffing the rebuilt file against the one it
   replaced rather than by trusting the probe that built it.

   1. The selector probe skipped anything containing `:focus`, so every focus rule was invisible
      to it. That dropped `.skip-link:focus-visible { transform: translateY(0) }` — the rule that
      brings the skip link back from `translateY(-250%)`. Without it the link is parked off-screen
      permanently and no keyboard user can ever reach it. Nothing renders differently, which is
      exactly why it would have survived a screenshot review.

   2. `.content-gap`, `.grid-gap` and `.sticky` are in the extraction's wanted list and in ACSS's
      output, and the extractor emitted neither. healing's Archive template and newyork's Home
      both carry `.content-gap`.

   DELIBERATE OMISSION, needs Matt. ACSS also ships `:focus { outline: none; box-shadow: none }`
   with `:focus-visible { outline-width: var(--focus-width) }`, and `--focus-width` is `0px`.
   Restoring that pair verbatim would remove the visible keyboard focus ring from every link and
   button on the site — the browser default is what has been showing since the cutover. Fidelity
   says restore it; accessibility says do not. It is left out, said out loud here rather than
   quietly, and the fix if Matt wants ACSS's version back is to set --focus-width to 2px first.
   ========================================================================================= */

.content-gap {
  --row-gap: var(--content-gap);
  --col-gap: var(--content-gap);
  gap: var(--content-gap);
}

.grid-gap {
  --row-gap: var(--grid-gap);
  --col-gap: var(--grid-gap);
  gap: var(--grid-gap);
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  inset-block-start: var(--sticky-offset, 0);
}

html:focus-within {
  scroll-behavior: auto;
}

.skip-link:where(:focus-visible) {
  outline-style: solid;
  outline-color: var(--focus-color);
  outline-width: var(--focus-width);
  outline-offset: var(--focus-offset);
}

/* ACSS's `:focus { outline: none }` and `:focus-visible { outline-width: var(--focus-width) }`
   are NOT here, and not missing either — the 0.47.3 structural port already carried both, further
   down this file. 0.47.3's changelog said the pair had been deliberately left out of the cut-over.
   That was true when written and false by the time it shipped: the bulk port swept them in with
   the other 78 rules and nobody looked.

   It did no harm, for a reason worth writing down rather than relying on twice. Bricks' own
   frontend layer carries `body.bricks-is-frontend :focus-visible { outline: auto }` at specificity
   (0,2,1), against (0,1,0) for a bare `:focus-visible`. Bricks wins, and `outline: auto` is a real
   accessible ring. So for a day the fleet's own rule asked for a 0px outline and Bricks quietly
   overruled it. --focus-width is 2px now, which makes our rule correct wherever it does apply —
   the builder canvas, and anywhere Bricks' layer is absent — without picking a fight with a
   browser-adaptive focus ring that is better than a fixed one. */

/* The one that matters: without it the skip link never leaves -250%. */
.skip-link:focus-visible {
  transform: translateY(0);
}

@supports not selector(:focus-visible) {
  :focus {
    outline-style: solid;
    outline-color: var(--focus-color);
    outline-width: var(--focus-width);
    outline-offset: var(--focus-offset);
  }
  .skip-link:focus {
    transform: translateY(0);
  }
}


/* ===== The rest of ACSS's structural surface =============================================
   The 78 element, attribute and state rules that the DOM probe never saw, because it only ever
   asked "does this selector match the pages I happened to load". Most are the .brxe-text and
   .brxe-post-content flow-spacing family — the paragraph, list and figure spacing inside every
   Bricks Text element — which simply did not appear on the four home pages sampled. They are
   latent everywhere else.

   Ported wholesale rather than by usage, because usage was the thing I got wrong twice today.
   What is deliberately NOT here: ACSS's unused utility classes (.text--l, .bg--dark, .grid--3
   and friends). A utility class cannot appear on a site by accident — it needs either a global
   class record or a raw class string in element data, and a sweep of all seven sites found zero
   raw class strings and enumerated every global class in use. If one is ever added, run
   bin/acss-coverage.py and it will be in the utility list.
   ========================================================================================= */

.scheme--light { color-scheme: light; }

.scheme--dark { color-scheme: dark; }

:where(dd) { margin-inline-start: 0; }

.bricks-area .hidden-accessible::before { content: "A"; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: absolute; background: #111; color: #f5f5f5; font-size: max(60%, 13px); padding: 0.5em; inset-block-start: 0; inset-inline-start: 0; inline-size: 20px; block-size: 20px; visibility: visible; border-radius: 50%; }

:focus-visible { outline-style: solid; outline-color: var(--focus-color); outline-width: var(--focus-width); outline-offset: var(--focus-offset); }

:where(.bg--ultra-light) { --relative-text-color: var(--bg-ultra-light-text); color: var(--relative-text-color, inherit); }

:where(.bg--light) { --relative-text-color: var(--bg-light-text); color: var(--relative-text-color, inherit); }

:where(.bg--dark) { --relative-text-color: var(--bg-dark-text); color: var(--relative-text-color, inherit); }

:where(.bg--ultra-dark) { --relative-text-color: var(--bg-ultra-dark-text); color: var(--relative-text-color, inherit); }

.header--xs { padding-block: var(--space-xs); padding-inline: var(--gutter); }

.header--s { padding-block: var(--space-s); padding-inline: var(--gutter); }

.header--m { padding-block: var(--space-m); padding-inline: var(--gutter); }

.header--l { padding-block: var(--space-l); padding-inline: var(--gutter); }

.header--xl { padding-block: var(--space-xl); padding-inline: var(--gutter); }

.header--xxl { padding-block: var(--space-xxl); padding-inline: var(--gutter); }

[class*="overlay--"], .overlay { position: relative; z-index: 0; isolation: isolate; }

[class*="overlay--"]::before, .overlay::before { content: ""; background: var(--overlay-color, rgba(0, 0, 0, 0.7)); position: absolute; inset: 0; z-index: var(--overlay-z-index, -1); }

figure:where(:has(> img, > picture, > svg, > video, > iframe)):where(.overlay), figure:where(:has(> img, > picture, > svg, > video, > iframe)):where([class*="overlay--"]) { --overlay-z-index: 0; }

:is(.text--xxl, .text--xl, .text--l, .text--m, .text--s, .text--xs) { line-height: var(--text-line-height); text-wrap: var(--text-text-wrap); }

.h1 { font-size: var(--h1); max-width: var(--h1-max-width); }

.h2 { font-size: var(--h2); max-width: var(--h2-max-width); }

.h3 { font-size: var(--h3); max-width: var(--h3-max-width); }

.h4 { font-size: var(--h4); line-height: var(--h4-line-height); max-width: var(--h4-max-width); }

.h5 { font-size: var(--h5); max-width: var(--h5-max-width); }

.h6 { font-size: var(--h6); max-width: var(--h6-max-width); }

body blockquote { text-wrap: pretty; }

figure[class*="width--"] img { inline-size: 100%; }

.container-gap { --row-gap: var(--container-gap); --col-gap: var(--container-gap); gap: var(--container-gap); }

@supports (animation-timeline: view()) {
  [class*="on-enter-all--"] > * { animation-name: enter-animate; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: var(--animate-range-start, entry 20%) var(--animate-range-end, entry 100%); }
}

@supports (animation-timeline: view()) {
  [class*="on-enter-all--"].on-enter--stagger > * { animation-delay: calc(sibling-index() * var(--enter-stagger-interval, 5%)); }
}

@supports not (animation-timeline: view()) {
  [class*="on-enter--"], [class*="on-enter-all--"] > * { opacity: 1; transform: none; filter: none; }
}

@supports (animation-timeline: view()) {
  [class*="on-exit-all--"] > * { animation-name: exit-animate; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: var(--exit-range-start, exit 0%) var(--exit-range-end, exit 80%); }
}

@supports (animation-timeline: view()) {
  [class*="on-exit-all--"].on-exit--stagger > * { animation-delay: calc(sibling-index() * var(--exit-stagger-interval, 5%)); }
}

@supports not (animation-timeline: view()) {
  [class*="on-exit--"], [class*="on-exit-all--"] > * { opacity: 1; transform: none; filter: none; }
}

[class*="on-visible-all--"].on-visible--stagger > * { transition-delay: calc(sibling-index() * var(--visible-stagger-interval, 0.1s)); }

@media (prefers-reduced-motion: reduce) {
  [class*="on-enter--"], [class*="on-enter-all--"] > *, [class*="on-exit--"], [class*="on-exit-all--"] > * { animation: none !important; opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  [class*="on-visible--"], [class*="on-visible-all--"] > * { transition: none !important; opacity: 1; translate: none; scale: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  [class*="on-hover--"] { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  [class*="on-hover--"]:hover { transform: none; translate: none; scale: none; box-shadow: initial; filter: none; }
}

form.wsf-form { --wsf-form-border-radius: 0; --wsf-form-border-width: 0px; --wsf-form-border-style: solid; --wsf-form-grid-gap: 20px; --wsf-form-padding-horizontal: 0px; --wsf-form-padding-vertical: 0px; --wsf-form-transition-enabled: 1; --wsf-form-transition-speed: var(--transition-duration); --wsf-form-transition-timing-function: var(--transition-timing); --wsf-form-font-family: var(--text-font-family); --wsf-form-font-size: var(--text-m); --wsf-form-font-size-small: var(--text-s); --wsf-form-font-size-large: var(--text-l); --wsf-form-font-style: normal; --wsf-form-font-weight: normal; --wsf-form-letter-spacing: var(--text-letter-spacing); --wsf-form-line-height: var(--text-line-height); --wsf-form-text-decoration: none; --wsf-form-text-transform: none; --wsf-group-li-border-radius: 0; --wsf-group-ul-border-width: 1px; --wsf-group-ul-border-style: solid; --wsf-group-li-border-width: 0; --wsf-group-li-border-style: solid; --wsf-group-li-gap: 0px; --wsf-group-li-padding-horizontal: 1.5em; --wsf-group-li-padding-vertical: 0.75em; --wsf-group-li-font-size: var(--text-m); --wsf-group-li-font-weight: ; --wsf-group-li-font-style: inherit; --wsf-group-li-letter-spacing: 0; --wsf-group-li-line-height: var(--text-line-height); --wsf-group-li-text-decoration: none; --wsf-group-li-text-transform: none; --wsf-group-li-steps-size: var(--space-l); --wsf-group-li-steps-font-size: var(--text-m); --wsf-group-li-steps-font-weight: ; --wsf-group-li-steps-font-style: normal; --wsf-group-li-steps-text-decoration: none; --wsf-section-legend-font-size: var(--text-m); --wsf-section-legend-font-style: normal; --wsf-section-legend-font-weight: 600; --wsf-section-legend-line-height: var(--text-line-height); --wsf-section-legend-text-decoration: none; --wsf-section-legend-text-transform: none; --wsf-section-legend-gap: 1rem; --wsf-section-icon-size: var(--text-m); --wsf-field-height: calc((var(--wsf-field-padding-vertical) * 2) + (var(--wsf-field-border-width) * 2) + 1lh); --wsf-field-border-radius: var(--radius); --wsf-field-border-width: 1px; --wsf-field-border-style: solid; --wsf-field-box-shadow-width-focus: 0px; --wsf-field-fieldset-legend-font-size: var(--text-m); --wsf-field-fieldset-legend-font-style: normal; --wsf-field-fieldset-legend-font-weight: 400; --wsf-field-fieldset-legend-text-decoration: none; --wsf-field-fieldset-legend-text-transform: none; --wsf-field-fieldset-legend-gap: 0.5em; --wsf-field-help-font-size: var(--text-s); --wsf-field-help-font-style: normal; --wsf-field-help-font-weight: 400; --wsf-field-help-line-height: 1.5; --wsf-field-help-text-decoration: none; --wsf-field-help-text-transform: none; --wsf-field-help-gap: 0.5em; --wsf-field-invalid-feedback-font-size: var(--text-s); --wsf-field-invalid-feedback-font-style: normal; --wsf-field-invalid-feedback-font-weight: 400; --wsf-field-invalid-feedback-letter-spacing: var(--text-letter-spacing); --wsf-field-invalid-feedback-line-height: var(--text-line-height); --wsf-field-invalid-feedback-text-decoration: none; --wsf-field-invalid-feedback-text-transform: none; --wsf-field-invalid-feedback-gap: 0.5em; --wsf-field-label-font-family: var(--text-font-family); --wsf-field-label-font-size: var(--text-m); --wsf-field-label-font-style: normal; --wsf-field-label-font-weight: 400; --wsf-field-label-letter-spacing: var(--text-letter-spacing); --wsf-field-label-line-height: var(--text-line-height); --wsf-field-label-text-decoration: none; --wsf-field-label-text-transform: none; --wsf-field-label-gap: 0.5em; --wsf-field-label-inside-color-background: var(--white); --wsf-field-label-inside-offset: -20px; --wsf-field-label-inside-scale: 0.9; --wsf-field-padding-horizontal: 10px; --wsf-field-padding-vertical: 8.5px; --wsf-field-prefix-suffix-font-size: var(--text-s); --wsf-field-prefix-suffix-font-style: normal; --wsf-field-prefix-suffix-font-weight: 400; --wsf-field-prefix-suffix-letter-spacing: var(--text-letter-spacing); --wsf-field-prefix-suffix-line-height: var(--text-line-height); --wsf-field-prefix-suffix-text-decoration: none; --wsf-field-prefix-suffix-text-transform: none; --wsf-field-tooltip-font-size: var(--text-xs); --wsf-field-tooltip-font-weight: 400; --wsf-field-tooltip-line-height: var(--text-line-height); --wsf-field-tooltip-border-radius: var(--radius-s); --wsf-field-tooltip-gap: 5px; --wsf-field-font-size: var(--text-m); --wsf-field-font-style: normal; --wsf-field-font-weight: 400; --wsf-field-letter-spacing: var(--text-letter-spacing); --wsf-field-line-height: var(--text-line-height); --wsf-field-text-decoration: none; --wsf-field-text-transform: none; --wsf-field-checkbox-border-radius: 4px; --wsf-field-checkbox-gap-horizontal: 6px; --wsf-field-checkbox-gap-vertical: 10px; --wsf-field-checkbox-size: 1lh; --wsf-field-radio-gap-horizontal: 6px; --wsf-field-radio-gap-vertical: 10px; --wsf-field-radio-size: 1lh; --wsf-field-datetime-calendar-border-style: solid; --wsf-field-datetime-calendar-border-width: 1px; --wsf-field-datetime-calendar-font-size: var(--text-s); --wsf-field-datetime-calendar-font-style: normal; --wsf-field-datetime-calendar-font-weight: 400; --wsf-field-datetime-calendar-letter-spacing: var(--text-letter-spacing); --wsf-field-datetime-calendar-line-height: var(--text-line-height); --wsf-field-datetime-calendar-text-decoration: none; --wsf-field-datetime-calendar-text-transform: none; --wsf-field-datetime-padding-vertical: 6px; --wsf-field-datetime-padding-horizontal: 8px; --wsf-field-file-dropzonejs-border-style: solid; --wsf-field-file-dropzonejs-border-width: 1px; --wsf-field-file-dropzonejs-border-radius: var(--radius); --wsf-field-file-dropzonejs-padding-inline: var(--wsf-form-grid-gap); --wsf-field-file-dropzonejs-padding-block: var(--wsf-form-grid-gap); --wsf-field-file-dropzonejs-progress-radius: var(--radius); --wsf-field-file-dropzonejs-progress-gap: 5px; --wsf-field-file-dropzonejs-progress-height: 10px; --wsf-field-range-track-border-radius: 50px; --wsf-field-range-tickmark-label-font-size: var(--text-s); --wsf-field-range-tickmark-label-font-style: normal; --wsf-field-range-tickmark-label-font-weight: 400; --wsf-field-range-tickmark-label-letter-spacing: var(--text-letter-spacing); --wsf-field-range-tickmark-label-line-height: var(--text-line-height); --wsf-field-range-tickmark-label-text-decoration: none; --wsf-field-range-tickmark-label-text-transform: none; --wsf-field-select-arrow-width: 12px; --wsf-field-select-arrow-height: 6px; --wsf-field-texteditor-font-size: var(--text-s); --wsf-field-texteditor-font-style: normal; --wsf-field-texteditor-font-weight: 400; --wsf-field-texteditor-letter-spacing: var(--text-letter-spacing); --wsf-field-texteditor-line-height: var(--text-line-height); --wsf-field-texteditor-text-decoration: none; --wsf-field-texteditor-text-transform: none; --wsf-field-texteditor-p-margin-bottom: 1em; --wsf-form-color-background: transparent; --wsf-form-color-base: var(--text-dark); --wsf-form-color-base-contrast: var(--white); --wsf-form-color-accent: var(--primary); --wsf-form-color-neutral: var(--neutral-light); --wsf-form-color-primary: var(--primary); --wsf-form-color-secondary: var(--secondary); --wsf-form-color-success: var(--success, #2e8540); --wsf-form-color-danger: var(--danger, #bb0000); --wsf-form-color-warning: var(--warning, #fdb81e); --wsf-form-color-info: var(--info, #02bfe7); --wsf-form-border-color: transparent; --wsf-group-li-color-background: transparent; --wsf-group-li-color-background-active: var(--white); --wsf-group-li-color-background-focus: var(--white); --wsf-group-li-color-background-disabled: color-mix(in oklch, var(--neutral) 60%, transparent); --wsf-group-li-border-color: var(--primary-light); --wsf-group-li-border-color-active: var(--primary); --wsf-group-li-border-color-focus: var(--focus-color); --wsf-group-li-border-color-disabled: color-mix(in oklch, var(--neutral) 60%, transparent); --wsf-group-ul-border-color: var(--neutral); --wsf-group-li-color: var(--text-dark); --wsf-group-li-color-active: var(--text-dark); --wsf-group-li-color-focus: var(--text-dark); --wsf-group-li-color-disabled: color-mix(in oklch, var(--neutral) 60%, transparent); --wsf-group-li-steps-color-background: var(--white); --wsf-group-li-steps-color-background-active: var(--primary-light); --wsf-group-li-steps-color-background-complete: var(--primary); --wsf-group-li-steps-border-color: var(--primary-light); --wsf-group-li-steps-border-color-active: var(--primary); --wsf-group-li-steps-border-color-complete: var(--primary); --wsf-group-li-steps-color: var(--text-dark); --wsf-group-li-steps-color-active: var(--text-dark); --wsf-group-li-steps-color-complete: var(--text-light); --wsf-section-color-background: transparent; --wsf-section-legend-color-background: transparent; --wsf-section-legend-color: var(--text-dark); --wsf-field-fieldset-legend-color-background: transparent; --wsf-field-fieldset-legend-color: var(--text-dark); --wsf-field-label-color: var(--neutral-dark); --wsf-field-label-color-background: transparent; --wsf-field-help-color: var(--text-dark); --wsf-field-help-color-background: transparent; --wsf-field-color-background: var(--white); --wsf-field-color-background-hover: var(--white); --wsf-field-color-background-focus: var(--white); --wsf-field-color-background-disabled: color-mix(in oklch, var(--neutral) 80%, transparent); --wsf-field-color-background-invalid: var(--white); --wsf-field-border-color: var(--border-color-dark); --wsf-field-border-color-hover: var(--border-color-dark); --wsf-field-border-color-focus: var(--focus-color); --wsf-field-border-color-disabled: color-mix(in oklch, var(--neutral) 60%, transparent); --wsf-field-border-color-invalid: var(--danger); --wsf-field-box-shadow-color-focus: var(--focus-color); --wsf-field-color: var(--text-dark); --wsf-field-color-hover: var(--text-dark); --wsf-field-color-focus: var(--text-dark); --wsf-field-color-disabled: color-mix(in oklch, var(--neutral) 80%, transparent); --wsf-field-color-invalid: var(--danger); --wsf-field-color-placeholder: var(--neutral-light); --wsf-field-invalid-feedback-color: var(--danger); --wsf-field-invalid-feedback-color-background: transparent; --wsf-field-prefix-suffix-color: var(--text-dark); --wsf-field-prefix-suffix-color-background: var(--neutral-semi-light); --wsf-field-checkbox-color-background: var(--white); --wsf-field-checkbox-checked-color-background: var(--primary); --wsf-field-checkbox-checkmark-color: var(--white); --wsf-field-checkbox-button-color-background: var(--neutral-light); --wsf-field-checkbox-button-color: var(--neutral); --wsf-field-checkbox-checked-button-color-background: var(--primary); --wsf-field-checkbox-checked-button-color: var(--white); --wsf-field-checkbox-switch-color: var(--neutral-light); --wsf-field-checkbox-checked-switch-color-background: var(--primary); --wsf-field-checkbox-checked-switch-color: var(--white); --wsf-field-radio-color-background: var(--white); --wsf-field-radio-checked-color: var(--primary); --wsf-field-radio-button-color-background: var(--neutral-light); --wsf-field-radio-button-color: var(--neutral); --wsf-field-radio-checked-button-color-background: var(--primary); --wsf-field-radio-checked-button-color: var(--white); --wsf-field-radio-switch-color: var(--neutral-light); --wsf-field-radio-checked-switch-color-background: var(--primary); --wsf-field-radio-checked-switch-color: var(--white); --wsf-field-select-arrow-color: var(--neutral); --wsf-field-select-select2-choice-color-background: var(--neutral-light); --wsf-field-select-select2-choice-color: var(--neutral); --wsf-field-select-select2-choice-color-remove: var(--neutral); --wsf-field-select-select2-result-color-background: var(--neutral-light); --wsf-field-select-select2-result-color-background-selected: var(--primary); --wsf-field-select-select2-result-color-background-highlighted: var(--primary); --wsf-field-select-select2-result-color: var(--neutral); --wsf-field-select-select2-result-color-selected: var(--white); --wsf-field-select-select2-result-color-highlighted: var(--white); --wsf-field-progress-color-background: var(--neutral-ultra-light); --wsf-field-progress-color-background-bar: var(--primary-light); --wsf-field-progress-color-background-complete: var(--primary); --wsf-field-range-track-color: var(--neutral-ultra-light); --wsf-field-range-track-lower-color: var(--neutral-light); --wsf-field-range-track-upper-color: var(--neutral-ultra-light); --wsf-field-range-thumb-color: var(--primary); --wsf-field-range-tickmark-color: var(--neutral); --wsf-field-range-tickmark-label-color: var(--neutral); }

form.wsf-form.form--dark, .form--dark .wsf-form { color-scheme: dark; }

:has(> .is-bg) { position: relative; isolation: isolate; }

form.wsf-form:not(.wsf-label-position-inside-hide) .wsf-label-position-inside select.wsf-field ~ label, form.wsf-form:not(.wsf-label-position-inside-hide) .wsf-label-position-inside :is(input, textarea).wsf-field[placeholder]:focus + label, form.wsf-form:not(.wsf-label-position-inside-hide) .wsf-label-position-inside :is(input, textarea).wsf-field[placeholder]:not(:placeholder-shown) + label, form.wsf-form:not(.wsf-label-position-inside-hide) .wsf-label-position-inside select.wsf-field + .wsf-input-group-append + label, form.wsf-form:not(.wsf-label-position-inside-hide) .wsf-label-position-inside :is(input, textarea).wsf-field[placeholder]:focus + .wsf-input-group-append + label, form.wsf-form:not(.wsf-label-position-inside-hide) .wsf-label-position-inside :is(input, textarea).wsf-field[placeholder]:not(:placeholder-shown) + .wsf-input-group-append + label { background-color: var(--wsf-field-label-inside-color-background); }

.smart-spacing { row-gap: 0 !important; }

.smart-spacing > * + * { margin-block-start: var(--flow-spacing, initial); margin-block-end: 0; }

.smart-spacing > :where(* + h2) { margin-block-start: var(--h2-spacing, var(--heading-spacing)); margin-block-end: 0; }

.smart-spacing > :where(* + h3) { margin-block-start: var(--h3-spacing, var(--heading-spacing)); margin-block-end: 0; }

.smart-spacing > :where(* + h4) { margin-block-start: var(--h4-spacing, var(--heading-spacing)); margin-block-end: 0; }

.smart-spacing > :where(* + h5) { margin-block-start: var(--h5-spacing, var(--heading-spacing)); margin-block-end: 0; }

.smart-spacing > :where(* + h6) { margin-block-start: var(--h6-spacing, var(--heading-spacing)); margin-block-end: 0; }

.smart-spacing > * + p { margin-block-start: var(--paragraph-spacing, var(--flow-spacing, initial)); margin-block-end: 0; }

.smart-spacing > :is(* + ul, * + ol) { margin-block: var(--list-spacing, var(--flow-spacing, initial)); }

.smart-spacing > :is(ul, ol) { padding-inline-start: var(--list-indent-spacing, var(--flow-spacing, initial)); }

.smart-spacing > ul * + li, .smart-spacing > ol * + li { margin-block-start: var(--list-item-spacing, var(--flow-spacing, initial)); margin-block-end: 0; }

.smart-spacing > ul ul, .smart-spacing > ol ol, .smart-spacing > ul ol, .smart-spacing > ol ul { margin-block: var(--nested-list-spacing, var(--list-item-spacing, initial)); padding-inline-start: var(--nested-list-indent-spacing, initial); }

.smart-spacing > :is(ul, ol) :is(ul, ol) li { margin-block-start: var(--nested-list-item-spacing, var(--list-item-spacing, initial)); }

.smart-spacing > * + figure, .smart-spacing > * + picture { margin-block: var(--figure-spacing, var(--flow-spacing, initial)); }

.smart-spacing figcaption { margin-block: var(--figcaption-spacing, var(--flow-spacing, initial)); }

.smart-spacing > * + blockquote:where(:not(figure > blockquote)) { margin-block: var(--blockquote-spacing, var(--flow-spacing, initial)); }

.smart-spacing > blockquote * + * { margin-block-start: var(--paragraph-spacing, var(--flow-spacing, initial)); margin-block-end: 0; }

.brxe-text, .brxe-post-content:where(:not([data-source="bricks"])) { row-gap: 0 !important; }

.brxe-text > * + *, .brxe-post-content:where(:not([data-source="bricks"])) > * + * { margin-block-start: var(--flow-spacing, initial); margin-block-end: 0; }

.brxe-text > :where(* + h2), .brxe-post-content:where(:not([data-source="bricks"])) > :where(* + h2) { margin-block-start: var(--h2-spacing, var(--heading-spacing)); margin-block-end: 0; }

.brxe-text > :where(* + h3), .brxe-post-content:where(:not([data-source="bricks"])) > :where(* + h3) { margin-block-start: var(--h3-spacing, var(--heading-spacing)); margin-block-end: 0; }

.brxe-text > :where(* + h4), .brxe-post-content:where(:not([data-source="bricks"])) > :where(* + h4) { margin-block-start: var(--h4-spacing, var(--heading-spacing)); margin-block-end: 0; }

.brxe-text > :where(* + h5), .brxe-post-content:where(:not([data-source="bricks"])) > :where(* + h5) { margin-block-start: var(--h5-spacing, var(--heading-spacing)); margin-block-end: 0; }

.brxe-text > :where(* + h6), .brxe-post-content:where(:not([data-source="bricks"])) > :where(* + h6) { margin-block-start: var(--h6-spacing, var(--heading-spacing)); margin-block-end: 0; }

.brxe-text > * + p, .brxe-post-content:where(:not([data-source="bricks"])) > * + p { margin-block-start: var(--paragraph-spacing, var(--flow-spacing, initial)); margin-block-end: 0; }

.brxe-text > :is(* + ul, * + ol), .brxe-post-content:where(:not([data-source="bricks"])) > :is(* + ul, * + ol) { margin-block: var(--list-spacing, var(--flow-spacing, initial)); }

.brxe-text > :is(ul, ol), .brxe-post-content:where(:not([data-source="bricks"])) > :is(ul, ol) { padding-inline-start: var(--list-indent-spacing, var(--flow-spacing, initial)); }

.brxe-text > ul * + li, .brxe-text > ol * + li, .brxe-post-content:where(:not([data-source="bricks"])) > ul * + li, .brxe-post-content:where(:not([data-source="bricks"])) > ol * + li { margin-block-start: var(--list-item-spacing, var(--flow-spacing, initial)); margin-block-end: 0; }

.brxe-text > ul ul, .brxe-text > ol ol, .brxe-text > ul ol, .brxe-text > ol ul, .brxe-post-content:where(:not([data-source="bricks"])) > ul ul, .brxe-post-content:where(:not([data-source="bricks"])) > ol ol, .brxe-post-content:where(:not([data-source="bricks"])) > ul ol, .brxe-post-content:where(:not([data-source="bricks"])) > ol ul { margin-block: var(--nested-list-spacing, var(--list-item-spacing, initial)); padding-inline-start: var(--nested-list-indent-spacing, initial); }

.brxe-text > :is(ul, ol) :is(ul, ol) li, .brxe-post-content:where(:not([data-source="bricks"])) > :is(ul, ol) :is(ul, ol) li { margin-block-start: var(--nested-list-item-spacing, var(--list-item-spacing, initial)); }

.brxe-text > * + figure, .brxe-text > * + picture, .brxe-post-content:where(:not([data-source="bricks"])) > * + figure, .brxe-post-content:where(:not([data-source="bricks"])) > * + picture { margin-block: var(--figure-spacing, var(--flow-spacing, initial)); }

.brxe-text figcaption, .brxe-post-content:where(:not([data-source="bricks"])) figcaption { margin-block: var(--figcaption-spacing, var(--flow-spacing, initial)); }

.brxe-text > * + blockquote:where(:not(figure > blockquote)), .brxe-post-content:where(:not([data-source="bricks"])) > * + blockquote:where(:not(figure > blockquote)) { margin-block: var(--blockquote-spacing, var(--flow-spacing, initial)); }

.brxe-text > blockquote * + *, .brxe-post-content:where(:not([data-source="bricks"])) > blockquote * + * { margin-block-start: var(--paragraph-spacing, var(--flow-spacing, initial)); margin-block-end: 0; }

#shadow-host-companion { padding: 0; }

/* ===== ACSS utility classes used by a live document but absent from every page probed ======
   These three are referenced by Bricks templates (footers, Update Single) rather than by the
   home pages the selector probe ran against, so they cannot be recovered by that probe and are
   carried explicitly. hidden-accessible is the one that matters: it hides the screen-reader
   headings in four centres' footers, and unstyled it renders that text on the page full size. */

.hidden-accessible {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
  border: 0;
}

.bricks-area .hidden-accessible {
  position: relative !important;
  inline-size: 2ch !important;
  block-size: 2ch !important;
  margin: 0;
  line-height: 1;
  visibility: hidden;
}

.width--auto {
  inline-size: auto !important;
  max-inline-size: 100%;
}

form.wsf-form.form--light,
.form--light .wsf-form {
  color-scheme: light;
}



/* WS Form checkbox and radio size, the same on the box and its label.
   ACSS's WS Form integration sets --wsf-field-checkbox-size: 1lh, and WS Form
   uses it both as the checkbox width and in the label's margin. `lh` resolves
   on each element, and the checkbox is styled like a text field, so the box
   came to 40px while the label left 27px: on samyemandala.org/mailing-list/
   every checkbox covered its label's first letter. The field font size gives
   the same length on both. `html` outranks ACSS's form.wsf-form rule, which
   loads after this file. The select also needs room for WS Form's arrow.
   tests/wsf-checkbox-size-test.php. */
html form.wsf-form {
  --wsf-field-checkbox-size: calc(var(--wsf-field-font-size) * 1.5);
  --wsf-field-radio-size: calc(var(--wsf-field-font-size) * 1.5);
}
html form.wsf-form select.wsf-field {
  padding-inline-end: calc(var(--wsf-field-padding-horizontal) * 2 + var(--wsf-field-select-arrow-width));
  text-overflow: ellipsis;
}
