/* 2.9: front-end layout only. No saved blocks or editor geometry are changed. */

/* Block pages need room for images, headings and columns; prose stays readable. */
.mosaiek-standard-content { min-width: 0; color: var(--ink-soft); }
.mosaiek-standard-content > :is(p, ul, ol, blockquote) {
  max-width: var(--wp--style--global--content-size, 760px);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
}
.mosaiek-standard-content > .wp-block-image { margin-block: 24px 48px; }
.mosaiek-standard-content > .wp-block-image img { width: 100%; height: auto; }
.mosaiek-standard-content > .wp-block-heading { overflow-wrap: break-word; }

/* An edited contact introduction can itself be the outer section. Its saved
   Columns block controls the columns, not the old prototype's nested grid. */
.contact-main.mosaiek-block-page > .contact-title-lockup,
.contact-main.mosaiek-block-page > .wp-block-group.contact-hero {
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: clamp(34px, 5vw, 72px) var(--gutter) clamp(60px, 8vw, 110px) calc(var(--side) + var(--gutter));
  border-bottom: 1px solid var(--line);
}
.contact-main.mosaiek-block-page > .contact-title-lockup > .wp-block-columns {
  align-items: flex-end;
}
.contact-main .wp-block-column { min-width: 0; overflow-wrap: anywhere; }

/* The article list already extends to the edges; its new content-only parent
   must not clip those margins or the hover background. */
.mosaiek-feed-section > .articles.mosaiek-feed { overflow: visible; }

/* Keep the values text in place while extending the rules to the page edges. */
.about-main > .about-mission { content-visibility: visible; }
.about-main > .about-mission .mission-values,
.about-main > .about-mission .mission-values li { border: 0; }
.about-main > .about-mission .mission-values::before,
.about-main > .about-mission .mission-values li::after {
  content: "";
  position: absolute;
  /* The inner grid may be capped and centred on larger desktop screens. */
  left: calc(50% - 50vw - var(--side) * .5);
  width: 100vw;
  border-top: 1px solid var(--line);
  pointer-events: none;
}
.about-main > .about-mission .mission-values::before { top: 0; }
.about-main > .about-mission .mission-values li::after { bottom: 0; }

/* A long word must not determine the minimum width of the entire hero grid. */
.about-type-hero { grid-template-columns: minmax(0, 1fr); }
.about-type-hero > *,
.about-type-cloud :is(.about-definition, .about-word-field) { min-width: 0; max-width: 100%; }

@media (max-width: 860px) {
  /* The editor saved aspect-ratio:unset inline. Give the absolutely positioned
     Cover video a real mobile frame, below the sticky menu and announcement. */
  .mosaiek-home-block-page > .wp-block-cover.hero,
  .mosaiek-home-block-page > .wp-block-cover.mosaiek-editor-hero {
    aspect-ratio: 16 / 9 !important;
    height: auto;
    min-height: 0 !important;
    padding: 0;
  }
  .mosaiek-home-block-page > .wp-block-cover > .wp-block-cover__video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .side-nav nav a { border-top: 0; }
  .contact-main.mosaiek-block-page > .contact-title-lockup,
  .contact-main.mosaiek-block-page > .wp-block-group.contact-hero {
    padding-left: var(--gutter);
  }
  .about-type-cloud {
    font-size: clamp(32px, 12vw, 62px);
    overflow-wrap: anywhere;
  }
  .about-type-cloud :is(.about-definition, .about-word-field) > span {
    min-width: 0;
    max-width: 100%;
  }
  .about-type-hero .wp-block-columns { min-width: 0; }
  .about-type-hero .wp-block-column { min-width: 0; overflow-wrap: anywhere; }
}
