.editorial-hero,
.post-hero {
  display: grid;
  min-height: clamp(25rem, 58vw, 44rem);
  overflow: hidden;
  place-items: center;
  position: relative;
}

.editorial-hero__media,
.post-hero__media {
  inset: 0;
  position: absolute;
}

.editorial-hero__media picture,
.editorial-hero__media img,
.post-hero__media img {
  height: 100%;
  width: 100%;
}

.editorial-hero__media img {
  object-fit: cover;
  object-position: var(--fa-editorial-focus-x, 50%) var(--fa-editorial-focus-y, 50%);
}

.post-hero__media img {
  object-fit: cover;
  object-position: center;
}

.editorial-hero__panel,
.post-hero__panel {
  background: color-mix(in srgb, var(--fa-color-white) 78%, transparent);
  margin: clamp(1.25rem, 5vw, 4rem);
  max-width: 62rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  position: relative;
  text-align: center;
  width: min(80%, 62rem);
  z-index: 1;
}

.editorial-hero__panel h1,
.post-hero__panel h1 {
  font-size: var(--fa-heading-size, clamp(2.2rem, 5vw, 4.5rem));
}

.editorial-hero__text {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-inline: auto;
  max-width: 62ch;
}

.editorial-hero__text p,
.post-hero__categories {
  margin-bottom: 0;
}

.editorial-hero .fa-button,
.editorial-newsletter .fa-button,
.about-location .fa-button {
  margin-top: 1.25rem;
}

.editorial-rich-content {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.editorial-rich-content__inner,
.single-post__content {
  width: min(88%, 1080px);
}

.editorial-rich-content__inner > *,
.single-post__content > * {
  margin-inline: auto;
}

.fa-rich-text {
  margin-block: clamp(1.5rem, 4vw, 3rem);
  max-width: 72ch;
}

.fa-rich-text:first-child {
  margin-top: 0;
}

.fa-rich-text h2,
.single-post__content h2 {
  --fa-heading-highlight: var(--fa-color-blush);
  display: table;
  font-size: var(--fa-heading-size, clamp(1.7rem, 3.2vw, 2.65rem));
  isolation: isolate;
  margin-top: clamp(2rem, 5vw, 4rem);
  position: relative;
}

.fa-rich-text h2::after,
.single-post__content h2::after {
  background-color: var(--fa-heading-highlight);
  bottom: 2px;
  content: "";
  height: 0.3em;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: -4px;
  z-index: -1;
}

.fa-rich-text h3,
.single-post__content h3 {
  margin-top: 2rem;
}

.wp-block-image {
  margin-block: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 62rem;
}

.wp-block-image img {
  margin-inline: auto;
  max-height: 44rem;
  object-fit: cover;
  width: 100%;
}

.fa-editorial-gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: clamp(2rem, 5vw, 4rem);
  max-width: 68rem;
}

.fa-editorial-gallery .wp-block-image {
  margin: 0;
}

.fa-editorial-gallery img {
  aspect-ratio: 4 / 5;
  height: 100%;
}

.fa-feature-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: clamp(2.5rem, 6vw, 5rem) auto;
  max-width: 68rem;
}

.fa-feature-card:nth-of-type(even) .wp-block-image {
  order: 2;
}

.fa-feature-card--text-only {
  grid-template-columns: 1fr;
}

.fa-feature-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(2.5rem, 6vw, 5rem) auto;
  max-width: 68rem;
}

.fa-feature-grid .fa-feature-card {
  background: color-mix(in srgb, var(--fa-color-sage) 26%, white);
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.fa-feature-card .wp-block-image {
  margin: 0;
}

.fa-testimonial {
  align-items: center;
  background: color-mix(in srgb, var(--fa-color-blush) 45%, white);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 5rem minmax(0, 1fr);
  margin: clamp(2rem, 5vw, 4rem) auto;
  max-width: 64rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.fa-testimonial .wp-block-image {
  margin: 0;
}

.fa-testimonial .wp-block-image img {
  aspect-ratio: 1;
  border-radius: 50%;
}

.fa-testimonial blockquote,
.fa-testimonial p {
  margin: 0;
}

.wp-block-button {
  margin-block: 2rem;
  text-align: center;
}

.wp-block-button__link,
.fa-button {
  background: var(--fa-button-background, var(--fa-color-rust));
  border-radius: var(--fa-button-radius, var(--fa-radius-small));
  color: var(--fa-button-text, var(--fa-color-white));
  display: inline-flex;
  font-weight: var(--fa-button-weight, 700);
  justify-content: center;
  min-height: 44px;
  padding: var(--fa-button-padding, 0.7rem 1.4rem);
  text-decoration: var(--fa-button-decoration, none);
}

.fa-media-text {
  align-items: center;
  background: color-mix(in srgb, var(--fa-color-blush) 30%, white);
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
  max-width: 72rem;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.fa-media-text .wp-block-image {
  margin: 0;
}

.about-location,
.editorial-contact,
.editorial-newsletter {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.about-location {
  background: color-mix(in srgb, var(--fa-color-sage) 38%, white);
}

.about-location__inner,
.editorial-contact__inner,
.editorial-newsletter__inner {
  max-width: 62rem;
}

.about-location__places {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style-position: inside;
  margin-block: 2rem;
  padding: 0;
}

.about-location__places li {
  background: var(--fa-color-white);
  padding: 1.25rem;
}

.about-location__places small {
  display: block;
  margin-top: 0.5rem;
}

.editorial-contact,
.editorial-newsletter {
  text-align: center;
}

.editorial-contact {
  background: color-mix(in srgb, var(--fa-color-blush) 35%, white);
}

.editorial-newsletter {
  background: var(--fa-color-blue-dark);
  color: var(--fa-color-white);
}

.editorial-newsletter h2 {
  color: var(--fa-color-white);
}

.legal-page__inner {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.legal-page .editorial-rich-content,
.legal-page .editorial-rich-content__inner {
  padding-bottom: 0;
  width: 100%;
}

.post-list {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.post-list__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  border-bottom: 4px solid color-mix(in srgb, var(--fa-color-orange) 55%, white);
  min-width: 0;
  padding-bottom: 1.25rem;
}

.post-card__image {
  display: block;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.post-card__image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.post-card__image:hover img {
  transform: scale(1.025);
}

.post-card__title {
  font-family: var(--fa-heading-font, var(--fa-font-body));
  font-size: var(--fa-heading-size, 1.1rem);
  text-transform: var(--fa-heading-transform, uppercase);
}

.post-card__date {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.post-card__categories,
.post-card__categories a {
  color: var(--fa-color-orange);
  font-size: 0.82rem;
  font-weight: 700;
}

.pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}

.pagination a,
.pagination .current {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
}

.single-post__content {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.single-post__content > p,
.single-post__content > ul,
.single-post__content > ol,
.single-post__content > h2,
.single-post__content > h3,
.single-post__content > .fa-rich-text {
  max-width: 72ch;
}

.post-hero {
  min-height: clamp(22rem, 42vw, 34rem);
}

.post-hero--plain {
  background: color-mix(in srgb, var(--fa-color-sage) 45%, white);
}

.post-hero__panel time {
  display: block;
  margin-bottom: 0.5rem;
}

.post-navigation {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.post-navigation a {
  align-items: center;
  display: flex;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.post-navigation__next {
  text-align: right;
}

.post-navigation__next a {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .post-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fa-editorial-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .editorial-hero,
  .post-hero {
    min-height: 35rem;
  }

  .editorial-hero__panel,
  .post-hero__panel {
    padding: 1.5rem 1rem;
    width: 84%;
  }

  .post-list__grid,
  .fa-feature-card,
  .fa-feature-grid,
  .fa-media-text,
  .about-location__places,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .fa-feature-card:nth-of-type(even) .wp-block-image {
    order: initial;
  }

  .fa-testimonial {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .post-navigation__next,
  .post-navigation__next a {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Controlled compositions of the shared editorial hero; copy stays in page-hero. */
.editorial-hero--portrait { min-height: 100vh; }
.editorial-hero--portrait .editorial-hero__panel {
  margin-top: 50px;
  max-width: none;
  padding: 60px 40px 70px;
}
.editorial-hero--portrait .editorial-hero__panel h1 {
  font-size: var(--fa-heading-size, 42px);
  line-height: var(--fa-heading-leading, 1.2);
  margin-inline: auto;
  max-width: 24ch;
}
.editorial-hero--portrait .editorial-hero__text { max-width: none; font-size: 17px; }
.editorial-hero--portrait .fa-button { margin-top: 45px; }
@media (min-width: 981px) {
  .editorial-hero--archive .editorial-hero__panel h1 {
    font-family: var(--fa-heading-font, var(--fa-font-body));
    font-size: var(--fa-heading-size, clamp(30px, 2.5vw, 36px));
    font-weight: var(--fa-heading-weight, 400);
    letter-spacing: var(--fa-heading-tracking, 1px);
    line-height: var(--fa-heading-leading, 1.3);
    text-transform: var(--fa-heading-transform, uppercase);
  }
  .editorial-hero--archive .editorial-hero__text { font-size: 22px; }
  .editorial-hero--workshop .editorial-hero__panel h1 {
    font-size: var(--fa-heading-size, clamp(36px, 3.34vw, 48px));
    font-weight: var(--fa-heading-weight, 400);
    line-height: var(--fa-heading-leading, 1.3);
    text-transform: var(--fa-heading-transform, uppercase);
  }
}
@media (min-width: 641px) and (max-width: 980px) {
  .editorial-hero--portrait .editorial-hero__panel { padding: 50px 30px; }
  .editorial-hero--portrait .editorial-hero__panel h1 { font-size: var(--fa-heading-size, 32px); }
  .editorial-hero--workshop { min-height: 700px; }
  .editorial-hero--workshop .editorial-hero__panel { padding: 40px 30px 65px; }
  .editorial-hero--workshop .editorial-hero__panel h1 { font-size: var(--fa-heading-size, 38px); max-width: 20ch; margin-inline: auto; line-height: var(--fa-heading-leading, 1.3); }
  .editorial-hero--workshop .editorial-hero__text { font-family: var(--fa-font-display); font-size: 28px; }
  .editorial-hero--workshop .fa-button { margin-top: 50px; }
}
@media (max-width: 640px) {
  .editorial-hero--portrait { min-height: 100vh; }
  .editorial-hero--portrait .editorial-hero__panel { margin-top: 50px; padding: 25px 16px 45px; }
  .editorial-hero--portrait .editorial-hero__panel h1 { font-size: var(--fa-heading-size, 35px); }
  .editorial-hero--portrait .fa-button { margin-top: 30px; }
  .editorial-hero--workshop .editorial-hero__panel { min-height: 360px; padding: 40px 25px 65px; }
  .editorial-hero--workshop .editorial-hero__panel h1 { font-size: var(--fa-heading-size, 30px); line-height: var(--fa-heading-leading, 1.4); max-width: 170px; margin-inline: auto; }
  .editorial-hero--workshop .fa-button { margin-top: 55px; max-width: 180px; }
  .editorial-hero--archive { min-height: 450px; }
  .editorial-hero--archive .editorial-hero__panel { min-height: 250px; padding: 30px 24px; }
  .editorial-hero--archive .editorial-hero__panel h1 { font-family: var(--fa-heading-font, var(--fa-font-body)); font-size: var(--fa-heading-size, 26px); line-height: var(--fa-heading-leading, 1.3); text-transform: var(--fa-heading-transform, uppercase); max-width: 11ch; margin-inline: auto; }
}

/* Simple legal prose shares native block ownership, with its own reading measure. */
.legal-page__inner { padding-block: 75px; }
.legal-page .editorial-rich-content { padding-top: 0; }
.legal-page .entry__content > *,
.legal-page .fa-rich-text { max-width: 1080px; }
.legal-page .wp-block-heading { line-height: 1.25; }
.legal-page h1.wp-block-heading { font-size: var(--fa-heading-size, 30px); margin-bottom: 60px; }
.legal-page h2.wp-block-heading { font-size: var(--fa-heading-size, 26px); margin-top: 1.5rem; }
.legal-page h3.wp-block-heading { font-size: var(--fa-heading-size, 23px); }
@media (max-width: 640px) {
  .legal-page__inner { padding-block: 45px; }
}

@media (min-width: 981px) {
  .post-list { width: 85%; max-width: 1224px; }
  .post-list__grid { column-gap: 5.5%; align-items: start; }
  .post-list__grid--flow { grid-auto-rows: 1px; row-gap: 0; }
}
@media (max-width: 640px) {
  /* Preserve the attachment ratio even with native sizes=auto size containment. */
  .post-card__image img { aspect-ratio: var(--fa-post-image-ratio); height: auto; object-fit: contain; }
}

/* Provider-independent map view stays in the original map column. */
.about-location__columns { padding-block: 80px 20px; }
.about-location__columns .about-location { padding: 35px; min-height: 450px; }
.about-location__columns .about-location__access { flex-grow: 0.65; }
.about-location__access h2 { --fa-heading-highlight: var(--fa-color-blush); display: table; isolation: isolate; margin-bottom: 45px; position: relative; }
.about-location__access h2::after { background-color: var(--fa-heading-highlight); bottom: 2px; content: ""; height: 0.3em; left: 0; pointer-events: none; position: absolute; right: -4px; z-index: -1; }
.about-location__access a { color: var(--fa-color-rust); font-weight: 700; text-decoration: none; }
.about-location__places { grid-template-columns: 1fr; }
@media (max-width: 980px) {
  .about-location__columns { padding-block: 45px 0; }
  .about-location__columns .about-location { min-height: 380px; }
}

.editorial-contact { background: white; }
.editorial-contact__inner { max-width: 1080px; }
.editorial-contact h2 { --fa-heading-highlight: var(--fa-color-green); display: table; font-size: var(--fa-heading-size, 30px); isolation: isolate; margin: 0 auto 65px; position: relative; }
.editorial-contact h2::after { background-color: var(--fa-heading-highlight); bottom: 2px; content: ""; height: 0.3em; left: 0; pointer-events: none; position: absolute; right: -4px; z-index: -1; }
.editorial-contact__controls { border: 0; margin: 0; padding: 0; text-align: right; }
.editorial-contact__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.editorial-contact__fields input,
.editorial-contact__fields textarea { background: #fdf3f1; border: 0; border-radius: 0; color: var(--fa-color-blue-dark); width: 100%; padding: 16px; font-size: 15px; opacity: 1; }
.editorial-contact__fields ::placeholder { color: var(--fa-color-blue-dark); opacity: 1; }
.editorial-contact__message { grid-column: 1 / -1; }
.editorial-contact__consent { display: flex; align-items: start; text-align: left; gap: 5px; margin-block: 30px; font-size: 14px; text-transform: uppercase; }
.editorial-contact__consent input { flex: 0 0 auto; margin-top: 5px; }
.editorial-contact__controls .fa-button { border: 0; border-radius: var(--fa-button-radius, 0); opacity: 1; }
.editorial-contact__availability { font-size: 13px; margin-top: 25px; }
@media (max-width: 640px) {
  .editorial-contact h2 { font-size: var(--fa-heading-size, 26px); }
  .editorial-contact__fields { grid-template-columns: 1fr; gap: 15px; }
}
