.cms-band-dark {
  color: #f6efe9;
}

.cms-band-light {
  color: #1c0c10;
}

.cms-band-fill {
  min-height: 100vh;
}

.cms-widget-heading {
  font-family: var(--font-heading), "Noto Serif", serif;
}

.cms-widget-text,
.cms-widget-notes {
  font-family: var(--font-body), Montserrat, "Segoe UI", sans-serif;
}

.cms-widget-heading {
  text-align: var(--cms-align, center);
  padding: 72px 24px 8px;
}

.cms-widget-eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-body), Montserrat, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* Contact hero kick. Empty and plain add no class, so the rule above stays.
   The mockup is uppercase 600 13px/1.4 with 0.08em tracking, not font-variant small-caps. */
.cms-widget-eyebrow.cms-eyebrow-small-caps {
  font-family: var(--font-body), Montserrat, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-caps: normal;
  opacity: 1;
}

/* Empty eyebrow_wrap adds no class. balance evens the lines that already wrap.
   nowrap is one line. The column is the container: a 1fr track already has a
   definite size, so containment does not shrink the form. 1.05ch is the
   uppercase advance per character relative to ch (the contact kick on the
   body face). A lower guess stays at 0.08em while the line is still wider
   than the column. Tracking may fall from the eyebrow's own value (0.14em,
   or 0.08em on small-caps and chip) to 0.04em and no further. No smaller
   size and no scale. */
.cms-column:has(.cms-eyebrow-nowrap) {
  container-type: inline-size;
  container-name: cms-eyebrow;
}

.cms-widget-eyebrow.cms-eyebrow-nowrap {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  text-wrap: nowrap;
  letter-spacing: clamp(
    0.04em,
    calc((100cqi - var(--cms-eyebrow-n) * 1.05ch) / (var(--cms-eyebrow-n) - 1)),
    0.14em
  );
}

.cms-widget-eyebrow.cms-eyebrow-small-caps.cms-eyebrow-nowrap,
.cms-widget-eyebrow.cms-type-chip.cms-eyebrow-nowrap {
  letter-spacing: clamp(
    0.04em,
    calc((100cqi - var(--cms-eyebrow-n) * 1.05ch) / (var(--cms-eyebrow-n) - 1)),
    0.08em
  );
}

.cms-widget-eyebrow.cms-eyebrow-balance {
  text-wrap: balance;
}

/* Type scale. Each step is the previous step times scale-ratio.
   Headings interpolate from the small step at 390px to the large step at 1440px.
   Default tokens (16px, 1.25) land near the old h1/h2 clamps: h1 ~31px/61px, h2 ~25px/49px. */
:root {
  --cms-scale-base: var(--scale-base, 16px);
  --cms-scale-ratio: var(--scale-ratio, 1.25);
  --cms-step-0: var(--cms-scale-base);
  --cms-step-1: calc(var(--cms-step-0) * var(--cms-scale-ratio));
  --cms-step-2: calc(var(--cms-step-1) * var(--cms-scale-ratio));
  --cms-step-3: calc(var(--cms-step-2) * var(--cms-scale-ratio));
  --cms-step-4: calc(var(--cms-step-3) * var(--cms-scale-ratio));
  --cms-step-5: calc(var(--cms-step-4) * var(--cms-scale-ratio));
  --cms-step-6: calc(var(--cms-step-5) * var(--cms-scale-ratio));
  --cms-step-7: calc(var(--cms-step-6) * var(--cms-scale-ratio));
  --cms-step-n1: calc(var(--cms-step-0) / var(--cms-scale-ratio));
  --cms-step-n2: calc(var(--cms-step-n1) / var(--cms-scale-ratio));
  --cms-fs-h1: clamp(var(--cms-step-3), calc(var(--cms-step-3) + (var(--cms-step-6) - var(--cms-step-3)) * ((100vw - 390px) / 1050px)), var(--cms-step-6));
  --cms-fs-h2: clamp(var(--cms-step-2), calc(var(--cms-step-2) + (var(--cms-step-5) - var(--cms-step-2)) * ((100vw - 390px) / 1050px)), var(--cms-step-5));
  --cms-fs-h3: clamp(var(--cms-step-1), calc(var(--cms-step-1) + (var(--cms-step-4) - var(--cms-step-1)) * ((100vw - 390px) / 1050px)), var(--cms-step-4));
  --cms-fs-h4: clamp(var(--cms-step-0), calc(var(--cms-step-0) + (var(--cms-step-3) - var(--cms-step-0)) * ((100vw - 390px) / 1050px)), var(--cms-step-3));
  --cms-fs-h5: clamp(var(--cms-step-n1), calc(var(--cms-step-n1) + (var(--cms-step-2) - var(--cms-step-n1)) * ((100vw - 390px) / 1050px)), var(--cms-step-2));
  --cms-fs-h6: clamp(var(--cms-step-n2), calc(var(--cms-step-n2) + (var(--cms-step-1) - var(--cms-step-n2)) * ((100vw - 390px) / 1050px)), var(--cms-step-1));
  --cms-fs-display: clamp(var(--cms-step-4), calc(var(--cms-step-4) + (var(--cms-step-7) - var(--cms-step-4)) * ((100vw - 390px) / 1050px)), var(--cms-step-7));
  --cms-fs-xl: var(--cms-fs-h1);
  --cms-fs-lg: var(--cms-fs-h2);
  --cms-fs-md: var(--cms-fs-h3);
  --cms-fs-sm: var(--cms-fs-h4);
  --cms-fs-lead: calc(1.125rem * var(--cms-scale-ratio));
  --cms-fs-chip: var(--cms-step-n1);
}

.cms-widget-heading h1,
.cms-widget-heading h2,
.cms-widget-heading h3,
.cms-widget-heading h4,
.cms-widget-heading h5,
.cms-widget-heading h6 {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: var(--cms-measure-start, auto);
  margin-right: var(--cms-measure-end, auto);
  max-width: var(--cms-heading-measure, 16ch);
  font-weight: 650;
  line-height: 1.05;
  text-wrap: balance;
}

.cms-widget-heading h1 { font-size: var(--cms-fs-h1); }
.cms-widget-heading h2 { font-size: var(--cms-fs-h2); }
.cms-widget-heading h3 { font-size: var(--cms-fs-h3); }
.cms-widget-heading h4 { font-size: var(--cms-fs-h4); }
.cms-widget-heading h5 { font-size: var(--cms-fs-h5); }
.cms-widget-heading h6 { font-size: var(--cms-fs-h6); }

.cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-display { font-size: var(--cms-fs-display); }
.cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-xl { font-size: var(--cms-fs-xl); }
.cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-lg { font-size: var(--cms-fs-lg); }
.cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-md { font-size: var(--cms-fs-md); }
.cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-sm { font-size: var(--cms-fs-sm); }

/* heading_type.tracking. Empty adds no class, so letter-spacing stays normal.
   tight is the mockup h1–h3 value, -0.02em. At xl that pulls the closer
   sentence inside the 1088px section column. Hosts print this on size_class. */
.cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-tracking-tight,
.cms-contact-heading.cms-tracking-tight {
  letter-spacing: -0.02em;
}

/* Phone size. Below md (48rem / 768px). The hero h1 clamp is more specific, so the
   hero selector repeats here. Empty size_mobile emits no class and keeps today's size. */
@media (max-width: 47.999rem) {
  .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-display,
  .cms-hero .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-display { font-size: var(--cms-fs-display); }
  .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-xl,
  .cms-hero .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-xl { font-size: var(--cms-fs-xl); }
  .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-lg,
  .cms-hero .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-lg { font-size: var(--cms-fs-lg); }
  .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-md,
  .cms-hero .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-md { font-size: var(--cms-fs-md); }
  .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-sm,
  .cms-hero .cms-widget-heading :is(h1, h2, h3, h4, h5, h6).cms-size-mobile-sm { font-size: var(--cms-fs-sm); }
  .cms-widget-heading h1.cms-size-mobile-level,
  .cms-hero .cms-widget-heading h1.cms-size-mobile-level { font-size: var(--cms-fs-h1); }
  .cms-widget-heading h2.cms-size-mobile-level,
  .cms-hero .cms-widget-heading h2.cms-size-mobile-level { font-size: var(--cms-fs-h2); }
  .cms-widget-heading h3.cms-size-mobile-level,
  .cms-hero .cms-widget-heading h3.cms-size-mobile-level { font-size: var(--cms-fs-h3); }
  .cms-widget-heading h4.cms-size-mobile-level,
  .cms-hero .cms-widget-heading h4.cms-size-mobile-level { font-size: var(--cms-fs-h4); }
  .cms-widget-heading h5.cms-size-mobile-level,
  .cms-hero .cms-widget-heading h5.cms-size-mobile-level { font-size: var(--cms-fs-h5); }
  .cms-widget-heading h6.cms-size-mobile-level,
  .cms-hero .cms-widget-heading h6.cms-size-mobile-level { font-size: var(--cms-fs-h6); }
}

.cms-widget-text {
  max-width: var(--cms-text-measure, 38rem);
  margin-top: 0;
  margin-bottom: 0;
  margin-left: var(--cms-measure-start, auto);
  margin-right: var(--cms-measure-end, auto);
  padding: 16px 24px 8px;
  text-align: var(--cms-align, center);
  font-size: 1.125rem;
  line-height: 1.45;
}

.cms-widget-text.cms-text-lead {
  font-size: var(--cms-fs-lead);
}

.cms-widget-eyebrow.cms-type-chip,
.cms-widget-text.cms-type-chip {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  padding: 0.15em 0.55em;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm, 0.25rem);
  font-family: var(--font-body), Montserrat, "Segoe UI", sans-serif;
  font-size: var(--cms-fs-chip);
  font-variant: small-caps;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 1;
}

.cms-widget-eyebrow.cms-type-chip {
  display: inline-block;
}

/* Contact missing line. Sentence case, 500 12px/1.5, tracking 0.02em.
   Empty note_style.style adds no class. Not .cms-note-chip.is-dashed (that pill stays 999px).
   Ink #a1a1aa is --bl-header-muted. Dark theme reads that token. */
.cms-note-dashed {
  --cms-note-ink: #a1a1aa;
  display: inline-block;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 3px 8px;
  border-width: 1px;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--cms-note-ink) 35%, transparent);
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--cms-note-ink);
  font-family: var(--font-body), Montserrat, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: var(--font-weight-medium, 500);
  font-style: normal;
  font-variant: normal;
  font-variant-caps: normal;
  line-height: var(--leading-normal, 1.5);
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.8;
}

[data-theme="dark"] .cms-note-dashed {
  --cms-note-ink: var(--bl-header-muted, #a1a1aa);
}

/* Align is a CSS variable so a section or column value reaches children that do not set their own.
   md applies from 48rem (--breakpoint-md) upward. Unset keeps the historical centre. */
.cms-align-base-left {
  --cms-align: left;
  --cms-measure-start: 0;
  --cms-measure-end: auto;
}
.cms-align-base-centre {
  --cms-align: center;
  --cms-measure-start: auto;
  --cms-measure-end: auto;
}
.cms-align-base-right {
  --cms-align: right;
  --cms-measure-start: auto;
  --cms-measure-end: 0;
}

@media (min-width: 48rem) {
  .cms-align-md-left {
    --cms-align: left;
    --cms-measure-start: 0;
    --cms-measure-end: auto;
  }
  .cms-align-md-centre {
    --cms-align: center;
    --cms-measure-start: auto;
    --cms-measure-end: auto;
  }
  .cms-align-md-right {
    --cms-align: right;
    --cms-measure-start: auto;
    --cms-measure-end: 0;
  }
}

.cms-section.cms-align-base-left,
.cms-section.cms-align-base-centre,
.cms-section.cms-align-base-right,
.cms-column.cms-align-base-left,
.cms-column.cms-align-base-centre,
.cms-column.cms-align-base-right {
  text-align: var(--cms-align);
}

/* Measure. The unset fallback is today's heading 16ch and text 38rem (normal). */
.cms-widget-heading.cms-measure-narrow { --cms-heading-measure: 12ch; }
.cms-widget-heading.cms-measure-normal { --cms-heading-measure: 16ch; }
.cms-widget-heading.cms-measure-wide { --cms-heading-measure: 36ch; }
.cms-widget-heading.cms-measure-x-wide { --cms-heading-measure: 54ch; }
/* None is the column. The 24px side pad would keep a long MK sentence on two lines
   even when the size matches the mockup. A closer section that contains a form
   already drops this pad. */
.cms-widget-heading.cms-measure-none {
  --cms-heading-measure: none;
  padding-left: 0;
  padding-right: 0;
}
.cms-widget-text.cms-measure-narrow { --cms-text-measure: 24rem; }
.cms-widget-text.cms-measure-normal { --cms-text-measure: 38rem; }
.cms-widget-text.cms-measure-wide { --cms-text-measure: 54rem; }
/* 62rem stays under the section column. At 1280 that column's content is 66rem,
   so a wider step paints the same as none. */
.cms-widget-text.cms-measure-x-wide { --cms-text-measure: 62rem; }
.cms-widget-text.cms-measure-none { --cms-text-measure: none; }

.cms-widget-text p {
  margin: 0 0 0.75rem;
}

.cms-widget-button {
  text-align: center;
  padding: 12px 24px 72px;
}

.cms-widget-button .btn {
  gap: 0.5rem;
}

.cms-widget-button .btn-arrow {
  height: auto;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  gap: 0.35rem;
  font-weight: 650;
}

/* Inline placement. The button sits in the line after the text widget before it.
   The column is a wrapping flex row so the newline between the two blocks is not
   a second gap. The text widget drops the pad on the button side. The only space
   is --cms-inline-button-gap (0.75rem). Empty placement adds no class, so the
   block button keeps its 12px 24px 72px pad. Below md the button takes the next row. */
.cms-column:has(> .cms-block > .cms-button-inline) {
  --cms-inline-button-gap: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--cms-inline-button-gap);
  row-gap: var(--cms-inline-button-gap);
}

.cms-column:has(> .cms-block > .cms-button-inline) > .cms-block {
  flex: 1 0 100%;
  min-width: 0;
}

.cms-column:has(> .cms-block > .cms-button-inline) > .cms-block:has(+ .cms-block > .cms-button-inline),
.cms-column:has(> .cms-block > .cms-button-inline) > .cms-block:has(> .cms-button-inline) {
  flex: 0 0 auto;
  max-width: 100%;
}

.cms-block:has(+ .cms-block > .cms-button-inline) > .cms-widget-text {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0 0 0 24px;
  text-align: left;
}

.cms-block:has(+ .cms-block > .cms-button-inline) > .cms-widget-text p {
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.cms-widget-button.cms-button-inline {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: start;
}

@media (max-width: 47.999rem) {
  .cms-column:has(> .cms-block > .cms-button-inline) > .cms-block:has(> .cms-button-inline) {
    flex-basis: 100%;
  }

  .cms-widget-button.cms-button-inline {
    padding-left: 24px;
  }
}

.cms-widget-notes {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8px 24px 72px;
}

.cms-i18n-fallback {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklab, currentColor 55%, transparent);
  text-underline-offset: 0.18em;
}

.cms-frame-gutter {
  box-sizing: border-box;
  padding-right: 24px;
  padding-left: 24px;
}

.cms-widget-card-grid {
  container-type: inline-size;
  container-name: cms-cards;
}

.cms-card-grid {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.cms-card-grid[data-cols-base="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.cms-card-grid[data-cols-base="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cms-card-grid[data-cols-base="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cms-card-grid[data-cols-base="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@container cms-cards (min-width: 768px) {
  .cms-card-grid[data-cols-md="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .cms-card-grid[data-cols-md="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cms-card-grid[data-cols-md="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cms-card-grid[data-cols-md="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@container cms-cards (min-width: 1024px) {
  .cms-card-grid[data-cols-lg="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .cms-card-grid[data-cols-lg="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cms-card-grid[data-cols-lg="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cms-card-grid[data-cols-lg="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cms-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  box-shadow: none;
  border: 1px solid color-mix(in oklab, currentColor 22%, transparent);
  border-radius: 12px;
  --cms-card-pad: 16px;
  padding: var(--cms-card-pad);
  min-height: 9rem;
  color: inherit;
  text-decoration: none;
}

.cms-card-num {
  margin: 0 0 8px;
  font-family: var(--font-body), Montserrat, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  opacity: 0.7;
}

.cms-card-art {
  width: calc(85% + 27.2px);
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.cms-card-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.cms-card h3 {
  margin: 0 0 8px;
  max-width: 100%;
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.2;
}

.cms-card-link {
  margin: 0;
  font-family: var(--font-body), Montserrat, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.cms-card-link a {
  color: inherit;
}

.cms-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.cms-card-footer-link,
.cms-card-footer-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  font-family: var(--font-body), Montserrat, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.cms-card-footer-button {
  border: 1px solid var(--bl-surface-border);
  border-radius: 8px;
  padding: 6px 10px;
}

.cms-card-footer-link svg,
.cms-card-footer-button svg {
  display: block;
  flex: none;
}

.cms-card-footer-divided {
  border-top: 1px solid var(--bl-surface-border);
  margin-right: calc(var(--cms-card-pad) * -1);
  margin-left: calc(var(--cms-card-pad) * -1);
  padding: 12px var(--cms-card-pad) 0;
}

.cms-card-footer-divided .cms-card-footer-link,
.cms-card-footer-divided .cms-card-footer-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.cms-card-footer-divided .cms-card-footer-label {
  min-width: 0;
}

.cms-card-footer-divided .cms-card-footer-link svg,
.cms-card-footer-divided .cms-card-footer-button svg {
  margin-left: auto;
}

.cms-group-hairline > .cms-icon-group,
.cms-widget-card-grid.cms-group-hairline .cms-card-grid {
  border-top: 1px solid var(--bl-surface-border);
}

.cms-group-hairline > .cms-icon-group {
  padding-top: 12px;
}

.cms-card-link a::after {
  content: " →";
  white-space: nowrap;
}

.cms-card-icon {
  margin: 0 0 12px;
  line-height: 0;
}

.cms-card-body {
  flex: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cms-card-body p,
.cms-card-link {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cms-column {
  overflow-wrap: anywhere;
}

/* Headings, footer column titles, and eyebrows break on spaces only.
   .cms-column's overflow-wrap:anywhere is inherited, and the 12-grid track
   is minmax(0, 1fr) with min-w-0, so a span narrower than one word was
   splitting it (SERVICES → SERVIC / ES). A word wider than the column
   overflows. Body text keeps anywhere, so a long URL or email still wraps. */
.cms-widget-heading,
.cms-widget-heading :is(h1, h2, h3, h4, h5, h6),
.cms-widget-eyebrow,
.cms-contact-heading,
.cms-icon-heading,
.cms-card h3,
.footer-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* Column valign is align-self on the row grid. Stretch is the grid default. */
.cms-row.grid > .cms-column.cms-valign-top { align-self: start; }
.cms-row.grid > .cms-column.cms-valign-centre { align-self: center; }
.cms-row.grid > .cms-column.cms-valign-bottom { align-self: end; }
.cms-row.grid > .cms-column.cms-valign-stretch { align-self: stretch; }

a.cms-card:focus-visible,
.cms-text-link:focus-visible,
.cms-media-title a:focus-visible,
a.cms-card-footer-link:focus-visible,
a.cms-card-footer-button:focus-visible {
  outline: 2px solid #7f7f80;
  outline-offset: 2px;
}

a.cms-card:focus:not(:focus-visible),
.cms-text-link:focus:not(:focus-visible),
.cms-media-title a:focus:not(:focus-visible),
a.cms-card-footer-link:focus:not(:focus-visible),
a.cms-card-footer-button:focus:not(:focus-visible) {
  outline: none;
}

.cms-icon-group + .cms-icon-group {
  margin-top: 28px;
}

.cms-icon-heading {
  margin: 0 0 12px;
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: 1.15rem;
  font-weight: 650;
}

.cms-icon-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cms-icon-tile {
  min-width: 0;
  border: 1px solid color-mix(in oklab, currentColor 22%, transparent);
  border-radius: 12px;
  padding: 16px;
  box-shadow: none;
}

.cms-icon-tile svg {
  display: block;
  margin-bottom: 8px;
}

.cms-icon-label,
.cms-icon-line {
  margin: 0;
}

.cms-icon-line {
  margin-top: 4px;
  opacity: 0.72;
}

.cms-media-card {
  min-width: 0;
}

.cms-media-stage {
  position: relative;
  min-width: 0;
  margin-bottom: 12px;
}

.cms-frame {
  min-width: 0;
  box-shadow: none;
  border: 1px solid color-mix(in oklab, currentColor 22%, transparent);
  background: transparent;
}

.cms-frame-browser {
  border-radius: 12px;
  overflow: hidden;
}

.cms-frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-bottom: 1px solid color-mix(in oklab, currentColor 22%, transparent);
}

.cms-frame-dots {
  display: inline-flex;
  gap: 4px;
}

.cms-frame-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in oklab, currentColor 35%, transparent);
}

.cms-frame-url {
  display: inline-block;
  max-width: 100%;
  padding: 2px 10px;
  border: 1px solid color-mix(in oklab, currentColor 22%, transparent);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.72;
}

.cms-frame-screen img,
.cms-frame-photo {
  display: block;
  width: 100%;
  height: auto;
}

.cms-frame-phone {
  border: 0;
  background: transparent;
}

.cms-frame-bezel {
  border: 1px solid color-mix(in oklab, currentColor 22%, transparent);
  border-radius: 28px;
  padding: 10px;
  box-shadow: none;
}

.cms-frame-bezel .cms-frame-screen {
  border-radius: 18px;
  overflow: hidden;
}

.cms-media-card[data-frame="both"] .cms-frame-phone {
  width: min(220px, 100%);
  margin-top: 12px;
}

@media (min-width: 768px) {
  .cms-media-card[data-frame="both"] .cms-media-stage {
    padding-bottom: 72px;
  }

  .cms-media-card[data-frame="both"] .cms-frame-phone {
    position: absolute;
    width: 34%;
    max-width: 220px;
    right: 6%;
    bottom: 0;
    margin-top: 0;
  }
}

.cms-media-title {
  margin: 0 0 8px;
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: 1.15rem;
  font-weight: 650;
}

.cms-media-title a {
  color: inherit;
  text-decoration: none;
}

.cms-media-body p {
  margin: 0;
}

.cms-text-link {
  color: inherit;
  text-decoration: none;
}

.cms-text-link.is-underline {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cms-link-arrow {
  margin-left: 0.35em;
}

/* Off unless the registry sets link_style.arrow to on. Read-more and note links keep .cms-link-arrow. */
.cms-text-link.cms-link-has-arrow::after {
  content: "→";
  margin-left: 0.35em;
}

.cms-widget-card-grid,
.cms-widget-icon-tiles,
.cms-widget-media-card,
.cms-widget-link {
  max-width: 100%;
}

.cms-widget-notes ol {
  margin: 0;
  padding-left: 1.25rem;
}

.cms-widget-notes li {
  margin: 0 0 1rem;
  line-height: 1.45;
}

.cms-widget-safe-html {
  padding: 12px 24px 48px;
}

.cms-widget-safe-html svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  background: #f4f4f5;
  border: 1px dashed rgba(28, 12, 16, 0.28);
  border-radius: 10px;
}

.cms-stats,
.cms-logo-grid {
  list-style: none;
  margin: 0;
  padding: 8px 24px 48px;
}

.cms-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.cms-stat-value {
  margin: 0;
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cms-stat-label,
.cms-logo-name {
  margin: 8px auto 0;
  max-width: 18rem;
  font-family: var(--font-body), Montserrat, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
}

.cms-logo-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

.cms-logo-grid[data-cols-base="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.cms-logo-grid[data-cols-base="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cms-logo-grid[data-cols-base="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cms-logo-grid[data-cols-base="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cms-logo-grid[data-cols-base="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cms-logo-grid[data-cols-base="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .cms-logo-grid[data-cols-sm="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-sm="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-sm="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-sm="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-sm="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-sm="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .cms-logo-grid[data-cols-md="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-md="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-md="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-md="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-md="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-md="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .cms-logo-grid[data-cols-lg="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-lg="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-lg="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-lg="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-lg="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cms-logo-grid[data-cols-lg="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.cms-logo-grid img {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  object-fit: contain;
}

.cms-logo-name {
  text-align: center;
}

.cms-section:has(.cms-widget-form) {
  min-height: 100vh;
}

/* Unset closer copy stays in the centred 47.5rem column. Align or measure from the registry wins. */
.cms-section:has(.cms-widget-form) .cms-widget-heading:not([class*="cms-align-"]):not([class*="cms-measure-"]),
.cms-section:has(.cms-widget-form) .cms-widget-text:not([class*="cms-align-"]):not([class*="cms-measure-"]) {
  max-width: 47.5rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}

.cms-section:has(.cms-widget-form) .cms-widget-heading:not([class*="cms-align-"]):not([class*="cms-measure-"]) {
  padding-top: 3rem;
  padding-bottom: 0.5rem;
}

.cms-section:has(.cms-widget-form) .cms-widget-heading:not([class*="cms-measure-"]) h1 {
  max-width: 12em;
  margin: 0;
}

.cms-section:has(.cms-widget-form) .cms-widget-heading.cms-measure-none {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.cms-section:has(.cms-widget-form) .cms-widget-text {
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

/* Align left and measure none: the paragraph starts on the heading's content edge.
   A closer heading with measure none drops the 24px pad (the rule above). The text
   widget kept that pad, so the lede sat about 24px in after align had already
   cleared the auto margins and measure none had cleared the 38rem max-width.
   Empty align does not set --cms-text-edge-pad, so the 24px pad stays. An md
   value other than left puts the pad back, the same way align itself switches. */
.cms-section:has(.cms-widget-form) .cms-widget-text.cms-measure-none.cms-align-base-left {
  --cms-text-edge-pad: 0px;
}

@media (min-width: 48rem) {
  .cms-section:has(.cms-widget-form) .cms-widget-text.cms-measure-none.cms-align-md-left {
    --cms-text-edge-pad: 0px;
  }

  .cms-section:has(.cms-widget-form) .cms-widget-text.cms-measure-none.cms-align-md-centre,
  .cms-section:has(.cms-widget-form) .cms-widget-text.cms-measure-none.cms-align-md-right {
    --cms-text-edge-pad: 24px;
  }
}

.cms-section:has(.cms-widget-form) .cms-widget-text.cms-measure-none {
  padding-left: var(--cms-text-edge-pad, 24px);
  padding-right: var(--cms-text-edge-pad, 24px);
}

.cms-widget-form {
  max-width: 47.5rem;
  margin: 0.5rem auto 1.5rem;
}

/* form_layout.width. Empty adds no class, so 47.5rem and the card stay.
   wide is one step under the 1280 column and keeps the card. full is that
   column: the 47.5rem cap is what kept an xl closer with measure none on
   two lines, and the card chrome is dropped below. */
.cms-widget-form.cms-form-wide {
  max-width: 66rem;
}

.cms-widget-form.cms-form-full {
  max-width: none;
}

/* The closer heading is inside the form, so the wrapper cap is not the only
   rule that can shorten it. measure none already clears the heading measure.
   text-wrap: balance still splits a line that fits the column. */
.cms-widget-form.cms-form-full .cms-contact-heading.cms-measure-none,
.cms-widget-form.cms-form-full .cms-widget-heading.cms-measure-none,
.cms-widget-form.cms-form-full .cms-widget-heading.cms-measure-none :is(h1, h2, h3, h4, h5, h6) {
  max-width: none;
  text-wrap: wrap;
}

.cms-form-card {
  position: relative;
  display: grid;
  gap: 18px;
  background: color-mix(in srgb, var(--surface-light, #f4f4f5) 6%, var(--surface-dark, #09090b));
  border: 1px solid color-mix(in srgb, var(--surface-light, #f4f4f5) 18%, transparent);
  border-radius: 18px;
  padding: 32px;
}

/* full fills the column with no card. This beats the 640px padding rule
   (one class vs three). wide and empty keep the card above. Field borders
   stay on input, textarea, and select. */
.cms-widget-form.cms-form-full .cms-form-card {
  background: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
}

.cms-form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cms-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.cms-form-row-single {
  grid-template-columns: minmax(0, 1fr);
}

.cms-form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.cms-form-card input,
.cms-form-card textarea,
.cms-form-card select {
  width: 100%;
  min-width: 0;
  font: 400 17px/1.5 var(--font-body), Montserrat, sans-serif;
  color: inherit;
  background: color-mix(in srgb, var(--surface-light, #f4f4f5) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface-light, #f4f4f5) 22%, transparent);
  border-radius: 10px;
  padding: 14px 16px;
}

.cms-form-card textarea {
  min-height: 150px;
  resize: vertical;
}

.cms-form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.cms-form-check input {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
}

.cms-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.cms-form-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 24px;
  min-height: 44px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--surface-light, #f4f4f5) 28%, transparent);
  background: var(--brand-primary, #990000);
  color: var(--surface-light, #f4f4f5);
  font: 600 16px/1 var(--font-body), Montserrat, sans-serif;
  cursor: pointer;
}

.cms-form-send svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.cms-form-privacy {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.82;
}

.cms-form-card [aria-invalid="true"] {
  border-color: var(--color-error, #fecaca);
}

.cms-form-error,
.cms-form-alert {
  color: var(--color-error, #fecaca);
  font-size: 14px;
  font-weight: 600;
}

.cms-form-alert {
  margin: 0;
}

.cms-form-success {
  margin: 0;
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.35;
}

.cms-form-card :focus-visible {
  outline: 2px solid color-mix(in srgb, var(--surface-light, #f4f4f5) 72%, transparent);
  outline-offset: 3px;
}

.cms-form-card :focus:not(:focus-visible) {
  outline: none;
}

@media (max-width: 640px) {
  .cms-form-card {
    padding: 20px;
  }

  .cms-form-row {
    gap: 12px;
  }
}

/* Cream and raised cards sit on a light surface. Blink's text-body token is the
   light-on-dark ink, so these bands set the same dark ink as .cms-band-light. */
.cms-tone-cream {
  color: #1c0c10;
}

.cms-tone-light .cms-widget-quote {
  color: #1c0c10;
}

.cms-column.cms-surface-raised {
  padding: 1.5rem 1.75rem;
  border-radius: 2px;
  color: #1c0c10;
  border-color: color-mix(in srgb, #1c0c10 18%, transparent);
}

.cms-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cms-checklist {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.cms-checklist li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.35rem 0;
  line-height: 1.4;
}

.cms-checklist .ph-icon {
  flex: none;
  margin-top: 0.1rem;
}

.cms-widget-quote {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.cms-quote-rule {
  width: 2.75rem;
  height: 2px;
  margin: 0 auto 1.25rem;
  background: var(--brand-primary, #990000);
}

.cms-widget-quote blockquote,
.cms-widget-quote p {
  margin: 0;
}

.cms-widget-quote blockquote p {
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 650;
  line-height: 1.15;
}

.cms-quote-by {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.cms-quote-role {
  display: block;
  margin-top: 0.2rem;
  opacity: 0.72;
}

/* quote_style. Empty, default, centre, and off keep the rules above. */
.cms-widget-quote.cms-quote-size-lg blockquote p {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
}

.cms-widget-quote.cms-quote-size-md blockquote p {
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
}

.cms-widget-quote.cms-quote-size-body blockquote p {
  font-size: 1rem;
}

.cms-widget-quote.cms-quote-align-left {
  margin-left: 0;
  margin-right: auto;
  padding-left: 0;
  text-align: left;
}

.cms-widget-quote.cms-quote-align-left .cms-quote-rule {
  margin-left: 0;
  margin-right: auto;
}

.cms-widget-quote.cms-quote-align-right {
  margin-left: auto;
  margin-right: 0;
  padding-right: 0;
  text-align: right;
}

.cms-widget-quote.cms-quote-align-right .cms-quote-rule {
  margin-left: auto;
  margin-right: 0;
}

.cms-widget-quote.cms-quote-italic blockquote p {
  font-style: italic;
}

.cms-widget-steps {
  min-width: 0;
}

.cms-steps-heading {
  margin: 0 0 1rem;
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 650;
  line-height: 1.1;
}

.cms-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cms-step {
  padding: 1.15rem 0;
  border-top: 0;
}

.cms-step:first-child {
  padding-top: 0;
}

.cms-step-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.cms-step-num {
  flex: none;
  min-width: 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.cms-step-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.cms-widget-steps.is-numbered .cms-step-body,
.cms-widget-steps.is-numbered .cms-step-quotes,
.cms-widget-steps.is-numbered .cms-step-chips {
  margin-left: 2.45rem;
}

.cms-step-body {
  margin-top: 0.4rem;
  line-height: 1.45;
}

.cms-step-body p {
  margin: 0 0 0.6rem;
}

.cms-step-quotes {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 2px solid var(--brand-primary, #990000);
}

.cms-step-quotes li {
  margin: 0.3rem 0;
  font-style: italic;
}

.cms-step-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.cms-step-chips li {
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 999px;
  padding: 0.12rem 0.65rem;
  font-size: 0.8rem;
  font-style: normal;
}

.cms-steps-footnote {
  margin: 0.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  font-style: italic;
}

.cms-widget-steps.is-process {
  min-width: 0;
}

.cms-note-head {
  padding-bottom: 0.85rem;
  border-bottom: 0;
}

.cms-note-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cms-note-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-top: 0.35rem;
}

.cms-note-title {
  margin: 0;
  min-width: 0;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.25;
}

.cms-note-pill {
  flex: none;
  margin: 0;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;
  background: transparent;
  box-shadow: none;
}

.cms-note-line {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.62;
}

.cms-widget-steps.is-process .cms-step {
  padding: 0.95rem 0;
}

.cms-widget-steps.is-process .cms-step:first-child {
  padding-top: 0.95rem;
}

.cms-widget-steps.is-process .cms-step-label {
  flex: none;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.3;
  opacity: 0.72;
  white-space: nowrap;
}

.cms-widget-steps.is-process.is-numbered .cms-step-body,
.cms-widget-steps.is-process.is-numbered .cms-step-quotes,
.cms-widget-steps.is-process.is-numbered .cms-step-chips {
  margin-left: 0;
}

.cms-note-table {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 2px;
  box-shadow: none;
}

.cms-note-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.cms-note-row:first-child {
  border-top: 0;
}

.cms-note-num {
  flex: none;
  width: 1.1rem;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}

.cms-note-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.cms-note-chip {
  flex: none;
  margin-left: auto;
  max-width: 58%;
  border-width: 1px;
  border-style: solid;
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  background: color-mix(in srgb, currentColor 6%, transparent);
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  box-shadow: none;
}

.cms-note-chip.is-dark {
  border-style: solid;
  border-color: #1c0c10;
  background: #1c0c10;
  color: #f6f1e8;
}

.cms-note-chip.is-dashed {
  border-style: dashed;
  background: transparent;
}

.cms-note-link {
  display: inline-flex;
  align-items: baseline;
  margin-top: 0.7rem;
  font-style: normal;
  font-weight: 650;
}

@media (max-width: 767px) {
  .cms-note-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 768px) {
  .cms-widget-steps.is-process.is-numbered .cms-step {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
  }

  .cms-widget-steps.is-process.is-numbered .cms-step-head {
    display: contents;
  }

  .cms-widget-steps.is-process.is-numbered .cms-step-label {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0.15rem;
  }

  .cms-widget-steps.is-process.is-numbered .cms-step-title,
  .cms-widget-steps.is-process.is-numbered .cms-step-body,
  .cms-widget-steps.is-process.is-numbered .cms-step-quotes,
  .cms-widget-steps.is-process.is-numbered .cms-step-chips,
  .cms-widget-steps.is-process.is-numbered .cms-note-table {
    grid-column: 2;
  }

  .cms-widget-steps.is-process.is-numbered .cms-step-title {
    grid-row: 1;
  }

  .cms-step[data-checklist-cols="2"] .cms-checklist,
  .cms-step[data-checklist-cols="3"] .cms-checklist {
    display: grid;
    column-gap: 1.25rem;
    row-gap: 0.15rem;
  }

  .cms-step[data-checklist-cols="2"] .cms-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-step[data-checklist-cols="3"] .cms-checklist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cms-cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-width: 0;
  padding: 0.5rem 0;
}

.cms-cta-mark {
  flex: none;
  display: flex;
  color: var(--brand-primary, #990000);
}

.cms-cta-mark img,
.cms-hex-mark {
  display: block;
  width: 36px;
  height: 36px;
}

.cms-cta-line {
  flex: 1 1 12rem;
  min-width: 0;
  line-height: 1.4;
}

.cms-cta-line h1,
.cms-cta-line h2,
.cms-cta-line h3,
.cms-cta-line p {
  display: inline;
  margin: 0;
}

.cms-cta-line h1,
.cms-cta-line h2,
.cms-cta-line h3 {
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 650;
  line-height: 1.1;
  margin-right: 0.55rem;
}

.cms-cta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
}

.cms-cta-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cms-cta-dot {
  white-space: pre;
}

.cms-cta-amount {
  flex: none;
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: var(--cms-fs-display);
  font-weight: 650;
  line-height: 1.05;
  color: var(--text-body);
}

.cms-cta-links.is-stacked {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.5rem;
}

.cms-cta-links.is-stacked .cms-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Host contact heading. Empty size_class adds no token, so this stays at body size.
   The align classes only set --cms-align. This rule used to paint text-align left
   over them, so a stored centre stayed left. Empty heading_align still has no
   align class, and a parent --cms-align does not move it. */
.cms-contact-heading {
  margin: 0;
  max-width: none;
  font-family: var(--font-heading), "Noto Serif", serif;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.05;
  text-align: left;
  text-wrap: balance;
}

.cms-contact-heading.cms-align-base-left { text-align: left; }
.cms-contact-heading.cms-align-base-centre { text-align: center; }
.cms-contact-heading.cms-align-base-right { text-align: right; }

@media (min-width: 48rem) {
  .cms-contact-heading.cms-align-md-left { text-align: left; }
  .cms-contact-heading.cms-align-md-centre { text-align: center; }
  .cms-contact-heading.cms-align-md-right { text-align: right; }
}

.cms-contact-heading.cms-size-display { font-size: var(--cms-fs-display); }
.cms-contact-heading.cms-size-xl { font-size: var(--cms-fs-xl); }
.cms-contact-heading.cms-size-lg { font-size: var(--cms-fs-lg); }
.cms-contact-heading.cms-size-md { font-size: var(--cms-fs-md); }
.cms-contact-heading.cms-size-sm { font-size: var(--cms-fs-sm); }

@media (max-width: 47.999rem) {
  .cms-contact-heading.cms-size-mobile-display { font-size: var(--cms-fs-display); }
  .cms-contact-heading.cms-size-mobile-xl { font-size: var(--cms-fs-xl); }
  .cms-contact-heading.cms-size-mobile-lg { font-size: var(--cms-fs-lg); }
  .cms-contact-heading.cms-size-mobile-md { font-size: var(--cms-fs-md); }
  .cms-contact-heading.cms-size-mobile-sm { font-size: var(--cms-fs-sm); }
  .cms-contact-heading.cms-size-mobile-level { font-size: 1.125rem; }
}

/* Unset body stays in the centred 47.5rem measure. Left clears that inset. */
.cms-contact-body {
  margin: 0.75rem auto 0;
  max-width: 47.5rem;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.45;
  text-align: left;
}

.cms-contact-body.cms-body-align-left {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  max-width: none;
  text-align: left;
}

.cms-contact-body.cms-body-align-centre {
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.cms-contact-body.cms-body-align-right {
  margin-left: auto;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  text-align: right;
}

/* body_align.measure. none and empty add no class, so the 47.5rem lede stays.
   These follow the align rules so a set measure wins over max-width: none. */
.cms-contact-body.cms-body-measure-narrow { max-width: 24rem; }
.cms-contact-body.cms-body-measure-normal { max-width: 38rem; }
.cms-contact-body.cms-body-measure-wide { max-width: 54rem; }

@media (min-width: 768px) {
  .cms-cta-strip {
    flex-wrap: nowrap;
  }
}

/* Column span and row gap. Plain CSS so a host that does not compile Tailwind (BS-124)
   still paints every track. md is 48rem. lg is 64rem. xs is 2.5 spacing tokens (0.625rem, 10px). */
.cms-row-pack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.cms-col-auto {
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
  justify-self: start;
}

.gap-0 {
  gap: calc(var(--spacing, 0.25rem) * 0);
}

.gap-2\.5 {
  gap: calc(var(--spacing, 0.25rem) * 2.5);
}

@media (min-width: 48rem) {
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:col-span-9 { grid-column: span 9 / span 9; }
  .md\:col-span-10 { grid-column: span 10 / span 10; }
  .md\:col-span-11 { grid-column: span 11 / span 11; }
  .md\:col-span-12 { grid-column: span 12 / span 12; }
}

@media (min-width: 64rem) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
  .lg\:col-span-10 { grid-column: span 10 / span 10; }
  .lg\:col-span-11 { grid-column: span 11 / span 11; }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
}

/* Contact list is today's row: icon, label, value. No border, no shadow.
   md (768) is two columns. lg (1024) is four, matching the host grid. */
.cms-contact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  min-width: 0;
}

.cms-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.cms-contact-row .ph-icon {
  flex: none;
}

.cms-contact-copy {
  min-width: 0;
}

.cms-contact-label,
.cms-contact-value {
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.cms-contact-label {
  font-size: 0.875rem;
  line-height: 1.35;
}

.cms-contact-value {
  line-height: 1.4;
}

@media (min-width: 768px) {
  .cms-contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cms-contact-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Bordered icon cards. 1px border token, radius token, no shadow.
   One column until 768, two until 1280, four from 1280. */
.cms-icon-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}

.cms-icon-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border-width: var(--border, 1px);
  border-style: solid;
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  border-radius: var(--radius-box, 0.5rem);
  background: transparent;
  box-shadow: none;
}

.cms-icon-card,
.cms-icon-card * {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.cms-icon-card-glyph {
  display: flex;
  flex: none;
}

.cms-icon-card .ph-icon {
  flex: none;
}

.cms-icon-card-body {
  min-width: 0;
}

.cms-icon-card-label,
.cms-icon-card-value,
.cms-icon-card-note {
  margin: 0;
}

.cms-icon-card-label {
  font-size: 0.875rem;
  line-height: 1.35;
}

.cms-icon-card-value,
.cms-icon-card-note {
  line-height: 1.4;
}

.cms-icon-card-note {
  margin-top: 0.25rem;
}

.cms-icon-card a {
  color: inherit;
}

@media (min-width: 768px) {
  .cms-icon-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .cms-icon-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* loop_grid: bordered cards from dynamic tags, on the card grid's columns. */
.cms-loop-card {
  gap: 8px;
  min-height: 0;
  transition: border-color 0.15s ease;
}

a.cms-loop-card:hover,
a.cms-loop-card:focus-visible {
  border-color: var(--color-primary);
}

.cms-loop-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.cms-loop-card-title {
  margin: 0;
}

.cms-loop-card-excerpt {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

.cms-loop-card-date {
  margin-top: auto;
  font-size: 0.8rem;
  opacity: 0.65;
}

.cms-loop-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cms-loop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid color-mix(in oklab, currentColor 28%, transparent);
  border-radius: 999px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cms-loop-chip:hover,
.cms-loop-chip:focus-visible,
.cms-loop-chip.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cms-loop-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.cms-loop-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid color-mix(in oklab, currentColor 28%, transparent);
  border-radius: 8px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a.cms-loop-page:hover,
a.cms-loop-page:focus-visible,
.cms-loop-page.is-active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cms-loop-page.is-disabled {
  opacity: 0.35;
}

.cms-loop-page-gap {
  opacity: 0.6;
}

.cms-loop-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 16px;
  border: 1px solid color-mix(in oklab, currentColor 22%, transparent);
  border-radius: 12px;
  opacity: 0.7;
}

.cms-loop-empty p {
  margin: 0;
}
