/* ==========================================================================
   Cleanworld theme, core block adapters
   components.css holds the design as it was approved (design/final/styles.css).
   This file only adds what is needed because core blocks wrap content
   differently from the prototype markup. No new visual decisions are made
   here: every rule maps a core block onto a component of the design.

   Contents
   1.  Site frame and flow
   2.  Sections and containers (core/group)
   3.  Columns (core/columns): split, cards, statistics, rows
   4.  Media and text (core/media-text), images (core/image)
   5.  Titles (core/heading, core/post-title) and paragraph styles
   6.  Action (core/button, core/buttons)
   7.  Hero (core/cover) and page band (core/group)
   8.  Breadcrumb (core/breadcrumbs) and "On this page"
   9.  Lists (core/list): ruled list, index, rows
   10. Query results (core/query), search field, pagination
   11. Separator, spacer, captions, table
   12. Skip link
   13. Print
   14. Templates
   15. Further core blocks: quote, pullquote, details, file, code,
       preformatted, verse, gallery, embed, video, audio
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Site frame and flow
   The theme declares "disable-layout-styles": WordPress prints no layout
   rules, neither on the site nor in the editor. The few layouts that core
   blocks can choose are set here, without specificity, so every component
   of the design wins over them.
   -------------------------------------------------------------------------- */
.wp-site-blocks { display: block; }
.wp-block-template-part { display: block; margin: 0; }

:where(.is-layout-constrained) > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wp--style--global--content-size, 42rem);
  margin-left: auto;
  margin-right: auto;
}
:where(.is-layout-constrained) > :where(.alignwide) { max-width: var(--wp--style--global--wide-size, 72rem); }
:where(.is-layout-constrained) > :where(.alignfull) { max-width: none; }

:where(.is-layout-flex) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
}
:where(.is-layout-flex.is-nowrap) { flex-wrap: nowrap; }
:where(.is-layout-flex.is-vertical) {
  flex-direction: column;
  align-items: flex-start;
}
:where(.is-layout-flex) > :where(*) { margin: 0; }
:where(.is-layout-flex.is-content-justification-left) { justify-content: flex-start; }
:where(.is-layout-flex.is-content-justification-center) { justify-content: center; }
:where(.is-layout-flex.is-content-justification-right) { justify-content: flex-end; }
:where(.is-layout-flex.is-content-justification-space-between) { justify-content: space-between; }

:where(.is-layout-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 100%), 1fr));
  gap: var(--sp-6) var(--card-gap);
}
:where(.is-layout-grid) > :where(*) { margin: 0; }

:where(.is-layout-flow, .is-layout-constrained) > .alignleft {
  float: left;
  margin: 0 var(--sp-6) var(--sp-4) 0;
}
:where(.is-layout-flow, .is-layout-constrained) > .alignright {
  float: right;
  margin: 0 0 var(--sp-4) var(--sp-6);
}
:where(.is-layout-flow, .is-layout-constrained) > .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

/* Core blocks that an editor places in a container, a column or a cover get
   a quiet default rhythm. The selector has no specificity beyond one element,
   so every component rule of the design wins over it. */
:where(.wp-block-group.container, .wp-block-column, .wp-block-media-text__content) > * + :where(p, .wp-block-heading, .wp-block-list, .wp-block-image, .wp-block-buttons, .wp-block-columns, .wp-block-group, .wp-block-media-text, .wp-block-separator, .wp-block-table, .wp-block-quote) {
  margin-block-start: var(--sp-5);
}
/* An eyebrow brings its own distance to the title below. Inside the band
   and the hero the rhythm of the band applies, as in the prototype. */
.wp-block-column > :is(.eyebrow, .is-style-eyebrow) + *,
.wp-block-media-text__content > :is(.eyebrow, .is-style-eyebrow) + *,
.wp-block-group:not(.band__content, .hero__content) > :is(.eyebrow, .is-style-eyebrow) + * { margin-block-start: 0; }

/* Blocks placed directly in the page content, outside a section */
.wp-block-post-content.is-layout-constrained > :where(:not(.alignfull)) { margin-block: var(--sp-5); }
.wp-block-post-content.is-layout-constrained > :where(:not(.alignfull)):first-child { margin-block-start: var(--sp-section); }
.wp-block-post-content.is-layout-constrained > :where(:not(.alignfull)):last-child { margin-block-end: var(--sp-section); }

/* --------------------------------------------------------------------------
   2. Sections and containers (core/group)
   A section is a full width group, the container is a group inside it.
   Server rendered blocks of the plugin may bring their own section and
   container. When one ends up inside the other, the inner one is neutral.
   -------------------------------------------------------------------------- */
.wp-block-group.section,
.wp-block-group.band,
.wp-block-group.pagenav { margin-block: 0; }

.section .section { padding-block: 0; }
.container .container {
  max-width: none;
  padding-inline: 0;
}

/* A section that carries a background preset of the editor */
.wp-block-group.section.has-background { padding-inline: 0; }

/* --------------------------------------------------------------------------
   3. Columns (core/columns): split, cards, statistics, rows
   Core sets the columns block as a flex row. The design uses one grid.
   -------------------------------------------------------------------------- */
.wp-block-columns { margin-bottom: 0; gap: var(--sp-6) var(--card-gap); }
/* Core breaks words in columns anywhere. The design breaks a word only when
   it is wider than its column, and hyphenates it where the language allows. */
.wp-block-column {
  overflow-wrap: break-word;
  word-break: normal;
}

.wp-block-columns.split,
.wp-block-columns.profile,
.wp-block-columns.cards,
.wp-block-columns.stats,
.wp-block-columns.rows__item,
.wp-block-columns.section-head { display: grid; }

.wp-block-columns.split,
.wp-block-columns.profile { gap: var(--sp-6) var(--col-gap); }
.wp-block-columns.split > .wp-block-column,
.wp-block-columns.profile > .wp-block-column { align-self: start; }

.wp-block-columns.cards { gap: var(--sp-6) var(--card-gap); }
.wp-block-columns.cards > .wp-block-column { align-self: start; }
@media (min-width: 62rem) {
  .wp-block-columns.cards.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.wp-block-columns.stats { gap: 0; }

.wp-block-columns.rows__item { gap: 0.25rem var(--sp-6); }
@media (min-width: 40rem) {
  .wp-block-columns.rows__item > .wp-block-column { align-self: baseline; }
}
.wp-block-group.rows { margin-block-end: 0; }

.wp-block-columns.section-head { gap: var(--sp-4); }
.wp-block-columns.section-head.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5) var(--sp-6);
}
.wp-block-columns.section-head.section-head--row > .wp-block-column {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.wp-block-columns.section-head.section-head--row > .wp-block-column:first-child { flex-grow: 1; min-width: min(100%, 12rem); }

/* Card built from core blocks: optional eyebrow, title, text */
.card > .eyebrow,
.card > .is-style-eyebrow { margin-bottom: var(--sp-3); }
.card__text a:where(:not(.wp-element-button)),
.card__link a:where(:not(.wp-element-button)) {
  color: var(--c-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--c-rule-control);
  transition: text-decoration-color var(--t-fast);
}
.card__text a:where(:not(.wp-element-button)):hover,
.card__link a:where(:not(.wp-element-button)):hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   4. Media and text (core/media-text), images (core/image)
   -------------------------------------------------------------------------- */
/* The columns of the design are fixed (5 to 7). The width handle of the
   block writes an inline style, which the design overrides. */
.wp-block-media-text.media-text {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--sp-6) var(--col-gap);
}
.wp-block-media-text.media-text > .wp-block-media-text__media {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.wp-block-media-text.media-text > .wp-block-media-text__content {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  padding: 0;
  word-break: normal;
}
.wp-block-media-text.media-text--top > .wp-block-media-text__media,
.wp-block-media-text.media-text--top > .wp-block-media-text__content { align-self: start; }
@media (min-width: 56rem) {
  .wp-block-media-text.media-text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important; }
  .wp-block-media-text.media-text > .wp-block-media-text__content { grid-column: 2; grid-row: 1; }
  .wp-block-media-text.media-text.has-media-on-the-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; }
  .wp-block-media-text.media-text.has-media-on-the-right > .wp-block-media-text__media { grid-column: 2; }
  .wp-block-media-text.media-text.has-media-on-the-right > .wp-block-media-text__content { grid-column: 1; }
}
.wp-block-media-text__content > * + * { margin-top: var(--sp-5); }
.wp-block-media-text__content > .eyebrow + * { margin-top: 0; }
.wp-block-media-text__content.prose > * + *,
.prose > .wp-block-media-text__content > * + * { margin-top: var(--sp-4); }

.wp-block-media-text.media-text .wp-block-media-text__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--c-navy);
}
.wp-block-media-text.media-text.media--square .wp-block-media-text__media img { aspect-ratio: 1 / 1; }
.wp-block-media-text.media-text.media--landscape .wp-block-media-text__media img { aspect-ratio: 4 / 3; }
@media (max-width: 55.99rem) {
  .wp-block-media-text.media-text .wp-block-media-text__media img { aspect-ratio: 3 / 2; }
  .wp-block-media-text.media-text.media--square .wp-block-media-text__media img { aspect-ratio: 1 / 1; max-width: var(--portrait-max); }
}

/* core/image: the block styles mirror the classes media, media--square and figure */
.wp-block-image { margin: 0; }
.wp-block-image img { vertical-align: top; }
/* An image inside long text keeps the rhythm of the text (diagram after a paragraph) */
.prose > * + .wp-block-image { margin-top: var(--sp-4); }
.wp-block-image.is-style-ratio-4-5 img,
.wp-block-image.is-style-ratio-1-1 img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--c-navy);
}
.wp-block-image.is-style-ratio-1-1 img { aspect-ratio: 1 / 1; }
@media (max-width: 55.99rem) {
  .wp-block-image.is-style-ratio-4-5 img { aspect-ratio: 3 / 2; }
  .wp-block-image.is-style-ratio-1-1 img { aspect-ratio: 1 / 1; max-width: var(--portrait-max); }
  .split__head .wp-block-image.is-style-ratio-4-5,
  .split__head .wp-block-image.is-style-ratio-1-1 { display: none; }
}
.split__head .wp-block-image.is-style-ratio-4-5,
.split__head .wp-block-image.is-style-ratio-1-1 { margin-top: var(--sp-6); }

.wp-block-image.is-style-figure {
  max-width: 30rem;
  padding: var(--sp-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
  background: var(--c-white);
}
.wp-block-image.is-style-figure img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   5. Titles (core/heading, core/post-title) and paragraph styles
   Every h1 and h2 is a title: the first line bold, an italic second line
   becomes the serif line. Headings inside long text (.prose) without the
   class title stay small headings in the body face.
   -------------------------------------------------------------------------- */
h1.wp-block-heading,
h2.wp-block-heading,
h1.wp-block-post-title,
h1.wp-block-query-title {
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}
h1.wp-block-heading em,
h2.wp-block-heading em,
h1.wp-block-post-title em {
  display: block;
  margin-top: 0.06em;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
h1.wp-block-heading br:has(+ em),
h2.wp-block-heading br:has(+ em),
h1.wp-block-post-title br:has(+ em) { display: none; }

.prose h2.wp-block-heading:not(.title) em {
  display: inline;
  margin-top: 0;
  font-family: inherit;
  font-weight: inherit;
}
.prose h2.wp-block-heading:not(.title) br { display: inline; }
.prose h2.wp-block-heading:not(.title) {
  letter-spacing: 0;
  text-wrap: pretty;
}

.hero h1,
.hero h2,
.band h1,
.band h2 { color: var(--c-on-dark); }

/* German, Spanish and Norwegian: the same hyphenation rules as the
   components (see .title and .card__title in components.css) */
:is(:lang(de), :lang(es), :lang(nb), :lang(nn), :lang(no)) :is(h1.wp-block-heading, h2.wp-block-heading, h1.wp-block-post-title, h1.wp-block-query-title, .prose.prose--split > h2:first-child) {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 17 6 6;
  -webkit-hyphenate-limit-before: 6;
  -webkit-hyphenate-limit-after: 6;
}
:is(:lang(de), :lang(es), :lang(nb), :lang(nn), :lang(no)) :is(h3.wp-block-heading, h4.wp-block-heading, ul.wp-block-list.index > li > a, ul.wp-block-list.is-style-index > li > a, ul.wp-block-list.rows > li > strong:first-child, ul.wp-block-list.is-style-rows > li > strong:first-child, ul.wp-block-post-template.index .wp-block-post-title, .wp-block-table :is(th, td)) {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 14 5 5;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
}

/* Paragraph block styles: the same look as the classes eyebrow and lead */
.is-style-eyebrow {
  display: block;
  margin-bottom: var(--sp-4);
  color: var(--c-text-muted);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero .eyebrow,
.band .eyebrow,
.hero .is-style-eyebrow,
.band .is-style-eyebrow { color: var(--c-ice); }

.is-style-lead {
  max-width: var(--w-lead);
  color: var(--c-text);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.section > .container > .is-style-lead:only-child { max-width: var(--w-content); }
.hero .lead,
.band .lead,
.hero .is-style-lead,
.band .is-style-lead { color: var(--c-on-dark); }

/* Links in running text that carry no class of the design */
:where(.wp-block-post-content, .wp-block-group, .wp-block-column, .wp-block-media-text__content) :where(p, li, td, figcaption) > a:where(:not([class])) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--c-rule-control);
  transition: text-decoration-color var(--t-fast);
}
:where(.wp-block-post-content, .wp-block-group, .wp-block-column, .wp-block-media-text__content) :where(p, li, td, figcaption) > a:where(:not([class])):hover { text-decoration-color: currentColor; }
:where(.hero, .band) :where(p, li) > a:where(:not([class])) { text-decoration-color: rgb(235 232 227 / 0.45); }
:where(.hero, .band) :where(p, li) > a:where(:not([class])):hover { text-decoration-color: var(--c-cyan); }

/* Phones: a phone number or an e-mail address in the content is a full touch
   target. The padding enlarges the area without moving a line. */
@media (max-width: 35.99rem) {
  :where(p, address, td, figcaption) > a:where([href^="tel:"], [href^="mailto:"]):where(:not(.wp-block-button__link, .cta, .footer-link)),
  .card__link > a { padding-block: 0.75rem; }
}

/* --------------------------------------------------------------------------
   6. Action (core/button, core/buttons)
   The arrow action is the only button of the site. The class of a button
   block sits on the wrapper, the marker is drawn on the link inside.
   Modifiers on the button block: cta--on-dark, cta--down.
   -------------------------------------------------------------------------- */
div.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-7);
}
.wp-block-buttons > .wp-block-button { display: inline-flex; }

.wp-block-button .wp-block-button__link {
  --cta-fill: var(--c-blue);
  --cta-line: var(--c-blue);
  --cta-arrow: var(--c-white);
  --cta-fill-hover: transparent;
  --cta-arrow-hover: var(--c-blue);
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: var(--touch);
  padding: 0 0 0 var(--cta-indent);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--c-blue);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  word-break: normal;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}
.wp-block-button .wp-block-button__link::before,
.wp-block-button .wp-block-button__link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--cta-mark);
  height: var(--cta-mark);
  margin-top: calc(var(--cta-mark) / -2);
}
.wp-block-button .wp-block-button__link::before {
  border: 1px solid var(--cta-line);
  border-radius: 50%;
  background-color: var(--cta-fill);
  transition: background-color var(--t-fast);
}
.wp-block-button .wp-block-button__link::after {
  background-color: var(--cta-arrow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem 1rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem 1rem no-repeat;
  transition: background-color var(--t-fast);
}
.wp-block-button .wp-block-button__link:hover { text-decoration-color: currentColor; }
.wp-block-button .wp-block-button__link:hover::before { background-color: var(--cta-fill-hover); }
.wp-block-button .wp-block-button__link:hover::after { background-color: var(--cta-arrow-hover); }

/* On blue: inside the hero and the band, or with the class cta--on-dark */
.hero .wp-block-button .wp-block-button__link,
.band .wp-block-button .wp-block-button__link,
.wp-block-button.cta--on-dark .wp-block-button__link {
  --cta-fill: transparent;
  --cta-line: var(--c-cyan);
  --cta-arrow: var(--c-white);
  --cta-fill-hover: var(--c-cyan);
  --cta-arrow-hover: var(--c-blue);
  color: var(--c-on-dark);
}
.wp-block-button.cta--down .wp-block-button__link::after,
.wp-block-button.is-style-arrow-down .wp-block-button__link::after { transform: rotate(90deg); }

/* The wrapper never draws a marker of its own */
.wp-block-button.cta--on-dark,
.wp-block-button.cta--down { color: inherit; }

/* Inside long text the action keeps its own underline behaviour */
.prose .wp-block-button a.wp-block-button__link { text-decoration-color: transparent; }
.prose .wp-block-button a.wp-block-button__link:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   7. Hero (core/cover) and page band (core/group)
   The scrim of the design is set on the overlay element of the cover block.
   A cover without photograph (page without featured image) becomes the band.
   -------------------------------------------------------------------------- */
.wp-block-cover.hero {
  align-items: flex-end;
  justify-content: flex-start;
  min-height: var(--hero-min);
  padding: 0;
  color: var(--c-on-dark);
}
.wp-block-cover.hero.hero--home { min-height: var(--hero-home-min); }
/* Core shrinks the inner container of a cover with a content position.
   The container of the design needs the full width. */
.wp-block-cover.hero.hero.hero > .wp-block-cover__inner-container {
  width: 100%;
  margin: 0;
  color: inherit;
}
.wp-block-cover.hero > .wp-block-cover__image-background { background: var(--c-navy); }
.wp-block-cover.hero > span.wp-block-cover__background {
  background:
    linear-gradient(180deg, rgb(2 19 91 / 0.10) 0%, rgb(2 19 91 / 0.12) 30%, rgb(2 19 91 / 0.88) 100%),
    linear-gradient(90deg, rgb(2 19 91 / 0.90) 0%, rgb(2 19 91 / 0.86) 22%, rgb(2 19 91 / 0.74) 42%, rgb(2 19 91 / 0.50) 60%, rgb(2 19 91 / 0.24) 78%, rgb(2 19 91 / 0.06) 100%) !important;
  opacity: 1 !important;
}
@media (max-width: 47.99rem) {
  .wp-block-cover.hero > span.wp-block-cover__background {
    background:
      linear-gradient(180deg, rgb(2 19 91 / 0.16) 0%, rgb(2 19 91 / 0.30) 34%, rgb(2 19 91 / 0.90) 78%, rgb(2 19 91 / 0.94) 100%),
      linear-gradient(90deg, rgb(2 19 91 / 0.50) 0%, rgb(2 19 91 / 0.16) 100%) !important;
  }
}

/* Cover without photograph: the page band */
.wp-block-cover.hero:not(:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background)) {
  min-height: 0;
  background:
    radial-gradient(120% 150% at 100% 100%, rgb(130 211 255 / 0.20) 0%, rgb(130 211 255 / 0) 62%),
    var(--c-blue);
}
.wp-block-cover.hero:not(:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background)) > span.wp-block-cover__background { display: none; }
.wp-block-cover.hero:not(:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background)) .hero__content {
  padding-top: var(--band-pad-top);
  padding-bottom: var(--band-pad-bottom);
}
.wp-block-cover.hero:not(:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background)) .hero__content > * + * { margin-top: var(--sp-5); }
.wp-block-cover.hero:not(:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background)) .hero__content > .breadcrumb + * { margin-top: var(--sp-3); }

/* The arch of the band is a pseudo element, the blocks carry no empty element */
.wp-block-group.band::after,
.wp-block-cover.hero:not(:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background))::after {
  content: "";
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--w-wide)) / 2));
  bottom: 0;
  z-index: -1;
  width: clamp(12.5rem, 21vw, 19.5rem);
  height: 82%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgb(130 211 255 / 0.12), rgb(130 211 255 / 0.03));
  pointer-events: none;
}
.wp-block-cover.hero:not(:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background))::after { z-index: 0; }
.wp-block-cover.hero > .wp-block-cover__inner-container { z-index: 1; }
.wp-block-group.band.band--slim::after { content: none; }
@media (max-width: 55.99rem) {
  .wp-block-group.band::after,
  .wp-block-cover.hero::after { display: none; }
}
@media (forced-colors: active) {
  .wp-block-group.band::after,
  .wp-block-cover.hero::after,
  .wp-block-cover.hero > span.wp-block-cover__background { display: none; }
}

.band p:where(:not([class])) { max-width: 32rem; }

/* --------------------------------------------------------------------------
   8. Breadcrumb (core/breadcrumbs) and "On this page"
   -------------------------------------------------------------------------- */
.wp-block-breadcrumbs.breadcrumb { margin: 0; }
.wp-block-breadcrumbs.breadcrumb li:not(:last-child)::after { content: none; }
.wp-block-breadcrumbs.breadcrumb ol { align-items: stretch; }
.wp-block-breadcrumbs.breadcrumb [aria-current="page"] { display: inline-flex; align-items: center; }

.pagenav__list.wp-block-list { border: 0; }
.pagenav__list.wp-block-list > li { padding: 0; border: 0; }
.pagenav__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--c-blue);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}
.pagenav__list a:hover { text-decoration-color: currentColor; }
.pagenav__inner > * + * { margin-block-start: 0; }

/* --------------------------------------------------------------------------
   9. Lists (core/list): ruled list, index, rows
   -------------------------------------------------------------------------- */
ul.wp-block-list:not(.pagenav__list, .index, .rows, .is-style-index, .is-style-rows) { border-top: 1px solid var(--c-rule); }
ul.wp-block-list:not(.pagenav__list, .index, .rows, .is-style-index, .is-style-rows) > li {
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--c-rule);
}
ul.wp-block-list ul.wp-block-list { margin-top: var(--sp-3); }
ul.wp-block-list ul.wp-block-list > li:last-child { padding-bottom: 0; border-bottom: 0; }
ol.wp-block-list {
  padding-left: 1.5em;
  list-style: decimal;
}
ol.wp-block-list > li { padding-block: var(--sp-2); }
ol.wp-block-list > li::marker { color: var(--c-text-muted); font-weight: 600; }
:where(.hero, .band) ul.wp-block-list,
:where(.hero, .band) ul.wp-block-list > li { border-color: var(--c-rule-on-dark); }

/* Index built from a list block: link (title), line break, description */
ul.wp-block-list.index,
ul.wp-block-list.is-style-index {
  border-top: 1px solid var(--c-rule-strong);
  counter-reset: index;
}
ul.wp-block-list.index > li,
ul.wp-block-list.is-style-index > li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.25rem var(--sp-4);
  align-items: baseline;
  padding: 1.125rem 3.25rem 1.125rem 0;
  border-bottom: 1px solid var(--c-rule-strong);
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.55;
  counter-increment: index;
}
ul.wp-block-list.index > li::before,
ul.wp-block-list.is-style-index > li::before {
  content: counter(index, decimal-leading-zero);
  grid-row: 1 / span 2;
  color: var(--c-text-muted);
  font-family: var(--ff-title);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums lining-nums;
}
ul.wp-block-list.index > li > br,
ul.wp-block-list.is-style-index > li > br { display: none; }
ul.wp-block-list.index > li > a,
ul.wp-block-list.is-style-index > li > a {
  color: var(--c-blue);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}
ul.wp-block-list.index > li > a::before,
ul.wp-block-list.is-style-index > li > a::before {
  content: "";
  position: absolute;
  inset: 0;
}
ul.wp-block-list.index > li > a:hover,
ul.wp-block-list.is-style-index > li > a:hover { text-decoration-color: currentColor; }
ul.wp-block-list.index > li:has(> a)::after,
ul.wp-block-list.is-style-index > li:has(> a)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border: 1px solid var(--c-blue);
  border-radius: 50%;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302135B' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 0.875rem 0.875rem no-repeat;
  pointer-events: none;
  transition: background-color var(--t-fast);
}
ul.wp-block-list.index > li:has(> a:hover)::after,
ul.wp-block-list.is-style-index > li:has(> a:hover)::after {
  background-color: var(--c-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
}
ul.wp-block-list.index.index--plain > li { grid-template-columns: minmax(0, 1fr); }
ul.wp-block-list.index.index--plain > li::before { content: none; }
@media (min-width: 40rem) {
  ul.wp-block-list.index > li,
  ul.wp-block-list.is-style-index > li { grid-template-columns: 2rem minmax(0, 5fr) minmax(0, 6fr); }
  ul.wp-block-list.index > li::before,
  ul.wp-block-list.is-style-index > li::before { grid-row: auto; }
  ul.wp-block-list.index.index--plain > li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* Rows built from a list block: term in bold, line break, description */
ul.wp-block-list.rows,
ul.wp-block-list.is-style-rows { border-top: 1px solid var(--c-rule-strong); }
ul.wp-block-list.rows > li,
ul.wp-block-list.is-style-rows > li {
  display: grid;
  gap: 0.25rem var(--sp-6);
  padding-block: 1rem;
  border-bottom: 1px solid var(--c-rule-strong);
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}
ul.wp-block-list.rows > li > strong:first-child,
ul.wp-block-list.is-style-rows > li > strong:first-child {
  color: var(--c-blue);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
}
ul.wp-block-list.rows > li > br,
ul.wp-block-list.is-style-rows > li > br { display: none; }
@media (min-width: 40rem) {
  ul.wp-block-list.rows > li,
  ul.wp-block-list.is-style-rows > li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: baseline;
  }
}

/* --------------------------------------------------------------------------
   10. Query results (core/query), search field, pagination
   The result list uses the plain index of the design.
   -------------------------------------------------------------------------- */
ul.wp-block-post-template.index { margin: 0; padding: 0; }
ul.wp-block-post-template.index > li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem var(--sp-4);
  align-items: baseline;
  padding: 1.125rem 3.25rem 1.125rem 0;
  border-bottom: 1px solid var(--c-rule-strong);
  counter-increment: index;
}
@media (min-width: 40rem) {
  ul.wp-block-post-template.index > li { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
ul.wp-block-post-template.index > li > * { margin: 0; }
ul.wp-block-post-template.index .wp-block-post-title {
  color: var(--c-blue);
  font-family: var(--ff-body);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  word-break: normal;
}
ul.wp-block-post-template.index .wp-block-post-title a {
  display: inline;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}
ul.wp-block-post-template.index .wp-block-post-title a::before {
  content: "";
  position: absolute;
  inset: 0;
}
ul.wp-block-post-template.index .wp-block-post-title a:hover { text-decoration-color: currentColor; }
ul.wp-block-post-template.index .wp-block-post-excerpt,
ul.wp-block-post-template.index .wp-block-post-excerpt__excerpt {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}
ul.wp-block-post-template.index > li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border: 1px solid var(--c-blue);
  border-radius: 50%;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302135B' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 0.875rem 0.875rem no-repeat;
  pointer-events: none;
  transition: background-color var(--t-fast);
}
ul.wp-block-post-template.index > li:has(a:hover)::after {
  background-color: var(--c-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
}

.wp-block-query-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-6);
  font-size: var(--fs-small);
  font-weight: 500;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}
.wp-block-query-pagination a:hover { text-decoration-color: currentColor; }
.wp-block-query-pagination .page-numbers.current { font-weight: 600; text-decoration-color: var(--c-rule-control); }
.wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); }

/* core/search set like the search field of the directory */
.wp-block-search { max-width: var(--w-lead); }
.wp-block-search .wp-block-search__label {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--c-text-muted);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.wp-block-search .wp-block-search__inside-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-6);
  padding: 0;
  border: 0;
}
.wp-block-search .wp-block-search__input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 3rem;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--c-rule-control);
  border-radius: 0;
  background: transparent;
  color: var(--c-blue);
  font-family: var(--ff-body);
  font-size: var(--fs-lead);
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t-fast);
}
.wp-block-search .wp-block-search__input::placeholder { color: var(--c-text-muted); opacity: 1; }
.wp-block-search .wp-block-search__input:hover { border-bottom-color: var(--c-blue); }
.wp-block-search .wp-block-search__input:focus-visible { outline-offset: 2px; border-bottom-color: var(--c-blue); }
.wp-block-search .wp-block-search__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  margin: 0;
  padding: 0 0 0 var(--cta-indent);
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--c-blue);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}
.wp-block-search .wp-block-search__button::before,
.wp-block-search .wp-block-search__button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--cta-mark);
  height: var(--cta-mark);
  margin-top: calc(var(--cta-mark) / -2);
}
.wp-block-search .wp-block-search__button::before {
  border: 1px solid var(--c-blue);
  border-radius: 50%;
  background-color: var(--c-blue);
  transition: background-color var(--t-fast);
}
.wp-block-search .wp-block-search__button::after {
  background-color: var(--c-white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem 1rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem 1rem no-repeat;
  transition: background-color var(--t-fast);
}
.wp-block-search .wp-block-search__button:hover { text-decoration-color: currentColor; }
.wp-block-search .wp-block-search__button:hover::before { background-color: transparent; }
.wp-block-search .wp-block-search__button:hover::after { background-color: var(--c-blue); }

/* --------------------------------------------------------------------------
   11. Separator, spacer, captions, table
   -------------------------------------------------------------------------- */
.wp-block-separator {
  height: 0;
  margin-block: var(--sp-6);
  border: 0;
  border-top: 1px solid var(--c-rule-strong);
  color: var(--c-rule-strong);
  opacity: 1;
}
:where(.hero, .band) .wp-block-separator { border-top-color: var(--c-rule-on-dark); }
.wp-block-spacer { margin: 0; }
.wp-block-image figcaption,
.wp-element-caption {
  margin: var(--sp-3) 0 0;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table th,
.wp-block-table td {
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
  border: 0;
  border-bottom: 1px solid var(--c-rule);
  text-align: left;
  vertical-align: baseline;
}
.wp-block-table thead { border-bottom: 1px solid var(--c-rule-strong); }
.wp-block-table th { font-weight: 600; }

/* --------------------------------------------------------------------------
   12. Skip link (printed by WordPress for block themes)
   -------------------------------------------------------------------------- */
a.skip-link.screen-reader-text {
  left: var(--gutter);
  top: 0;
  z-index: 100000;
}
a.skip-link.screen-reader-text:focus {
  left: var(--gutter);
  top: var(--sp-3);
  width: auto;
  height: auto;
  padding: var(--sp-3) var(--sp-4);
  clip-path: none;
  background: var(--c-white);
  color: var(--c-blue);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.35;
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
  .wp-block-cover.hero > .wp-block-cover__image-background,
  .wp-block-cover.hero > span.wp-block-cover__background,
  .wp-block-cover.hero::after,
  .wp-block-group.band::after { display: none !important; }
  .wp-block-cover.hero { min-height: 0; background: none !important; color: #000; }
  .hero h1, .hero h2, .band h1, .band h2 { color: #000; }
  .wp-block-columns.cards > .wp-block-column,
  .wp-block-columns.rows__item,
  ul.wp-block-list > li { break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   14. Templates
   -------------------------------------------------------------------------- */
/* Statistics band that opens a section */
.container > .stats:first-child { margin-top: 0; }

/* Team page: the content of the page is the lead of the band */
.band__content > .wp-block-post-content:empty { display: none; }
.band__lead.wp-block-post-content > * + * { margin-top: var(--sp-4); }

/* A page that brings its own hero or band in the content replaces the title
   area of the template */
.band:has(.wp-block-post-content :is(.hero, .band)) {
  background: none;
  overflow: visible;
}
.band:has(.wp-block-post-content :is(.hero, .band))::after { content: none; }
.band:has(.wp-block-post-content :is(.hero, .band)) > .band__content {
  max-width: none;
  padding: 0;
}
.band:has(.wp-block-post-content :is(.hero, .band)) > .band__content > :not(.wp-block-post-content) { display: none; }
.band:has(.wp-block-post-content :is(.hero, .band)) > .band__content > .wp-block-post-content {
  max-width: none;
  margin: 0;
}

/* Legal page: long text in the wide column of the split. A first heading of
   level 2 becomes the two line title in the narrow column. */
.prose.prose--split > h2:first-child {
  margin-top: 0;
  color: var(--c-blue);
  font-family: var(--ff-title);
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.prose.prose--split > h2:first-child em {
  display: block;
  margin-top: 0.06em;
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.prose.prose--split > h2:first-child br:has(+ em) { display: none; }
.prose.prose--split > h2:first-child + * { margin-top: var(--sp-6); }
@media (min-width: 56rem) {
  .prose.prose--split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--col-gap);
    max-width: none;
  }
  .prose.prose--split > * { grid-column: 2; }
  .prose.prose--split > h2:first-child {
    grid-column: 1;
    grid-row: 1 / span 400;
    align-self: start;
  }
  .prose.prose--split > h2:first-child + * { margin-top: 0; }
}

/* Search results and archives */
.results { margin-top: var(--sp-7); }
.container > .results:first-child { margin-top: 0; }
.results > .wp-block-post-template.index { border-top: 1px solid var(--c-rule-strong); }

/* --------------------------------------------------------------------------
   15. Further core blocks
   Blocks that the patterns do not use, but that an editor can insert. They
   take the vocabulary of the design: hairlines, the body face, the eyebrow.
   -------------------------------------------------------------------------- */
/* Quote: Be Vietnam Pro italic, as the brand guide sets quotes */
.wp-block-quote,
.wp-block-pullquote {
  max-width: var(--w-content);
  margin: var(--sp-6) 0;
  padding: var(--sp-5) 0 0;
  border: 0;
  border-top: 1px solid var(--c-rule-strong);
  color: var(--c-blue);
  text-align: left;
}
.wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.wp-block-quote > :where(p),
.wp-block-pullquote blockquote > :where(p) {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-lead);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
}
.wp-block-quote > * + *,
.wp-block-pullquote blockquote > * + * { margin-top: var(--sp-4); }
.wp-block-quote cite,
.wp-block-quote footer,
.wp-block-pullquote cite,
.wp-block-pullquote footer {
  display: block;
  margin-top: var(--sp-4);
  color: var(--c-text-muted);
  font-size: var(--fs-eyebrow);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.wp-block-pullquote {
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-rule-strong);
}
.wp-block-pullquote blockquote > :where(p) { font-size: var(--fs-h2); line-height: 1.3; }
.wp-block-quote.has-text-align-center,
.wp-block-quote.has-text-align-right,
.wp-block-pullquote.has-text-align-center,
.wp-block-pullquote.has-text-align-right { text-align: left; }
:where(.hero, .band) :is(.wp-block-quote, .wp-block-pullquote) { border-color: var(--c-rule-on-dark); color: var(--c-on-dark); }
:where(.hero, .band) :is(.wp-block-quote, .wp-block-pullquote) :is(cite, footer) { color: var(--c-ice); }

/* Details: a ruled row that opens, marked with plus and minus */
.wp-block-details {
  max-width: var(--w-content);
  border-top: 1px solid var(--c-rule-strong);
  border-bottom: 1px solid var(--c-rule-strong);
}
.wp-block-details + .wp-block-details { margin-top: 0; border-top: 0; }
.wp-block-details > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: var(--sp-3) 2.5rem var(--sp-3) 0;
  color: var(--c-blue);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after {
  content: "";
  position: absolute;
  right: 0.125rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-details[open] > summary::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.wp-block-details > :not(summary) { margin-top: 0; color: var(--c-text-muted); }
.wp-block-details > summary + * { padding-top: var(--sp-1); }
.wp-block-details > * + :not(summary) { margin-top: var(--sp-4); }
.wp-block-details[open] { padding-bottom: var(--sp-5); }
@media (forced-colors: active) {
  .wp-block-details > summary::after { background-color: CanvasText; forced-color-adjust: none; }
}

/* File: the name as a text link, the download as the arrow action */
.wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-6);
  max-width: var(--w-content);
  margin-block: var(--sp-5);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--c-rule-strong);
  border-bottom: 1px solid var(--c-rule-strong);
  font-size: var(--fs-body);
}
.wp-block-file > a:not(.wp-block-file__button) {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--c-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--c-rule-control);
  transition: text-decoration-color var(--t-fast);
}
.wp-block-file > a:not(.wp-block-file__button):hover { text-decoration-color: currentColor; }
.wp-block-file .wp-block-file__button,
.wp-block-file a.wp-block-file__button.wp-element-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  margin: 0;
  padding: 0 0 0 var(--cta-indent);
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--c-blue);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}
.wp-block-file .wp-block-file__button::before,
.wp-block-file .wp-block-file__button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--cta-mark);
  height: var(--cta-mark);
  margin-top: calc(var(--cta-mark) / -2);
}
.wp-block-file .wp-block-file__button::before {
  border: 1px solid var(--c-blue);
  border-radius: 50%;
  background-color: var(--c-blue);
  transition: background-color var(--t-fast);
}
.wp-block-file .wp-block-file__button::after {
  background-color: var(--c-white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem 1rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M4 12h15.5M13.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 1rem 1rem no-repeat;
  transform: rotate(90deg);
  transition: background-color var(--t-fast);
}
.wp-block-file .wp-block-file__button:hover { text-decoration-color: currentColor; }
.wp-block-file .wp-block-file__button:hover::before { background-color: transparent; }
.wp-block-file .wp-block-file__button:hover::after { background-color: var(--c-blue); }
.wp-block-file .wp-block-file__embed { flex: 1 0 100%; margin: 0 0 var(--sp-3); border: 1px solid var(--c-rule); }

/* Code, preformatted text, verse: on white, ruled, never wider than the column */
.wp-block-code,
.wp-block-preformatted,
.wp-block-verse {
  max-width: var(--w-content);
  margin-block: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-blue);
  font-size: var(--fs-small);
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  tab-size: 2;
}
.wp-block-code,
.wp-block-code code,
:where(p, li, td) > code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.wp-block-code code { display: block; padding: 0; background: none; font-size: inherit; }
.wp-block-preformatted,
.wp-block-verse { font-family: var(--ff-body); font-size: var(--fs-body); }
:where(p, li, td) > code {
  padding: 0.1em 0.3em;
  border-radius: var(--radius);
  background: var(--c-white);
  font-size: 0.9em;
}
.section--white :is(.wp-block-code, .wp-block-preformatted, .wp-block-verse),
.section--white :where(p, li, td) > code { background: var(--c-grey); }

/* Gallery: the grid of the cards, images cropped to one ratio */
.wp-block-gallery.has-nested-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  margin-block: var(--sp-6);
}
@media (min-width: 48rem) {
  .wp-block-gallery.has-nested-images { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wp-block-gallery.has-nested-images.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-block-gallery.has-nested-images.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.wp-block-gallery.has-nested-images figure.wp-block-image {
  display: block;
  width: auto !important;
  margin: 0;
}
.wp-block-gallery.has-nested-images figure.wp-block-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--c-navy);
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: static;
  max-height: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  background: none;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
  text-align: left;
  text-shadow: none;
  overflow: visible;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.wp-block-gallery.has-nested-images figure.wp-block-image::before { content: none; }
.wp-block-gallery > figcaption { grid-column: 1 / -1; }

/* Embed, video, audio: full width of their column */
.wp-block-embed,
.wp-block-video,
.wp-block-audio { margin: var(--sp-6) 0; }
.wp-block-embed__wrapper { border-radius: var(--radius); background: var(--c-navy); overflow: hidden; }
.wp-block-embed:not(.wp-has-aspect-ratio) .wp-block-embed__wrapper { background: none; }
.wp-block-embed iframe { display: block; max-width: 100%; border: 0; }
.wp-block-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--c-navy);
}
.wp-block-audio audio { display: block; width: 100%; min-width: 0; }
:where(.hero, .band) :is(.wp-block-embed, .wp-block-video, .wp-block-audio) figcaption { color: var(--c-on-dark-muted); }

/* Full-screen home photo: scrolls away in the normal document flow.
   dvh follows the visible viewport as mobile browser controls change. */
.home .wp-block-cover.hero.hero--home {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}
.home .hero--home .hero__content {
  padding-top: max(10rem, 22svh);
  padding-bottom: max(var(--hero-pad-bottom), env(safe-area-inset-bottom));
}
.home .wp-block-cover.hero.hero--home > .wp-block-cover__image-background {
  object-fit: cover;
  object-position: 50% 50%;
}
/* One uniform scrim, with no gradient. */
.home .wp-block-cover.hero.hero--home > span.wp-block-cover__background {
  background: rgb(2 19 91 / 0.35) !important;
}
/* Desktop only: overlay the home hero and turn blue after scrolling.
   Phones and tablets overlay the hero without remaining fixed on scroll.
   Without JavaScript the header also stays in normal flow. */
@media (min-width: 62rem) {
  .home:has(.hero--home) .site-header.is-photo-header {
    position: fixed;
    inset: var(--wp-admin--admin-bar--height, 0px) 0 auto;
    background: transparent;
    transition: background-color 180ms ease;
  }
  .home:has(.hero--home) .site-header.is-photo-header.is-scrolled,
  .home:has(.hero--home).is-locked .site-header.is-photo-header,
  .home:has(.hero--home) .site-header.is-photo-header:has([aria-expanded="true"]) {
    background: var(--c-blue);
  }
}
/* Mobile: transparent at the top, scrolling away with the page. Keep an
   open navigation overlay blue and readable. */
@media (max-width: 61.99rem) {
  .home:has(.hero--home) .site-header.is-photo-header {
    position: absolute;
    inset: var(--wp-admin--admin-bar--height, 0px) 0 auto;
    background: transparent;
  }
  .home:has(.hero--home).is-locked .site-header.is-photo-header,
  .home:has(.hero--home) .site-header.is-photo-header:has([aria-expanded="true"]) {
    background: var(--c-blue);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .site-header.is-photo-header { transition: none; }
}
@media print {
  .home .wp-block-cover.hero.hero--home { min-height: 0; }
  .home .site-header.is-photo-header { position: static; }
}

/* Home hero statement: larger title and readable supporting copy.
   Applied only when the hero contains the new introductory paragraph. */
.home .hero--home:has(.hero__intro) .hero__content {
  padding-bottom: max(clamp(4rem, 12svh, 8rem), env(safe-area-inset-bottom));
}
.home .hero--home:has(.hero__intro) .title {
  font-size: clamp(2.75rem, 1.5rem + 4.5vw, 6.5rem);
  line-height: 1.05;
}
.home .hero--home .hero__intro {
  max-width: 43rem;
  margin-top: clamp(1.5rem, 3svh, 2.25rem);
  color: inherit;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.375rem);
  line-height: 1.5;
  text-wrap: pretty;
}
@media (max-width: 35.99rem) {
  .home .hero--home:has(.hero__intro) .hero__content {
    padding-top: 7rem;
    padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
  }
}

/* Mobile Safari: keep the next section below the largest viewport even
   while the floating browser toolbar changes the visible page height.
   Reserve the toolbar-height difference so copy remains above that area. */
@media screen and (max-width: 61.99rem) {
  @supports (height: 100lvh) {
    .home .wp-block-cover.hero.hero--home {
      min-height: 100lvh;
    }
    .home .hero--home .hero__content {
      padding-bottom: calc(max(var(--hero-pad-bottom), env(safe-area-inset-bottom)) + 100lvh - 100svh);
    }
    .home .hero--home:has(.hero__intro) .hero__content {
      padding-bottom: calc(max(clamp(4rem, 12svh, 8rem), env(safe-area-inset-bottom)) + 100lvh - 100svh);
    }
  }
}
@media screen and (max-width: 35.99rem) {
  @supports (height: 100lvh) {
    .home .hero--home:has(.hero__intro) .hero__content {
      padding-bottom: calc(max(3.5rem, env(safe-area-inset-bottom)) + 100lvh - 100svh);
    }
  }
}
