/* Content shell */
.content-shell {
  display: grid;
  grid-template-columns: var(--side-width) minmax(0, 1fr);
  gap: var(--gap);
  padding-top: 24px;
  padding-bottom: 56px;
  align-items: start;
}

.side-column { padding-top: 12px; }

.side-rail {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 12px;
}

.side-rail__link {
  min-height: 54px;
  padding: 0 16px;
  text-align: center;
}

.content-column { min-width: 0; }

.content-column > .page-card,
.content-column > .agenda-page,
.content-column > .homepage-section {
  max-width: 100%;
}

.homepage-section { margin-top: var(--section-gap); }
.homepage-section:first-child { margin-top: 0; }

/* Shared shells and surfaces */
.card-shell,
.homepage-card,
.page-card,
.agenda-show,
.home-hero,
.home-panel {
  border: var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: var(--shell-bg);
}

.homepage-card,
.agenda-show,
.page-card,
.home-hero,
.home-panel {
  display: block;
  overflow: hidden;
}

.homepage-card--hero {
  min-height: var(--homepage-hero-card-min-height);
}

.media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: var(--surface-soft);
  overflow: hidden;
}

.media-frame__bg {
  display: none;
}

.media-frame__img,
.hvh-modal__image-link,
.hvh-modal__image {
  width: 100%;
  height: 100%;
}

.media-frame__img {
  position: relative;
  z-index: 1;
}

.media-frame--contain .media-frame__img {
  object-fit: contain;
  background: var(--surface-soft);
}

.media-frame--cover .media-frame__img {
  object-fit: cover;
  object-position: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.newsletter-form__field-wrap,
.footer-top-title {
  border: var(--border-strong);
  border-radius: var(--control-radius-md);
}

.newsletter-form__field-wrap {
  flex: 1;
  background: var(--white);
  padding: 0 16px;
}

.newsletter-form__field {
  width: 100%;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: var(--black);
}

.newsletter-form__field::placeholder {
  color: var(--ink-faint);
}

.newsletter-form__field-wrap:focus-within {
  box-shadow: 0 0 0 4px var(--focus-ring-soft);
}

.newsletter-form__honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-top-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  background: var(--white);
  color: var(--black);
  font-size: var(--ui-label-font-size);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--black);
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--red-soft);
  color: var(--red);
  transform: var(--interactive-lift);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.hvh-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 36px 18px;
  pointer-events: none;
}
.hvh-modal[hidden],
.mobile-panel[hidden] { display: none; }
.hvh-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  pointer-events: auto;
}
.hvh-modal__dialog {
  position: relative;
  pointer-events: auto;
  width: min(var(--modal-dialog-width, 1120px), calc(100vw - 36px));
  height: min(var(--modal-dialog-height, 720px), calc(100dvh - 72px));
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 72px);
  margin: 0;
  padding: 12px;
  border: var(--border-strong);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--modal-dialog-shadow);
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.hvh-modal[data-popup-type="hero"] {
  --modal-hero-width: min(var(--modal-hero-dialog-width, 1120px), calc(100vw - 64px));
  --modal-hero-max-width: calc(100vw - 64px);
  --modal-hero-max-height: calc(100dvh - 72px);
  --modal-hero-padding: 10px;
  --modal-hero-padding-top: var(--modal-hero-padding);
  --modal-hero-padding-inline: var(--modal-hero-padding);
  --modal-hero-padding-bottom: var(--modal-hero-padding);
  --modal-hero-radius: 24px;
  --modal-hero-image-max-height: calc(100dvh - 116px);
}
.hvh-modal[data-popup-type="hero"] .hvh-modal__dialog {
  width: var(--modal-hero-width);
  height: auto;
  max-width: var(--modal-hero-max-width);
  max-height: var(--modal-hero-max-height);
  padding: var(--modal-hero-padding-top) var(--modal-hero-padding-inline) var(--modal-hero-padding-bottom);
  border-radius: var(--modal-hero-radius);
}
.mobile-panel__close,
.hvh-modal__close {
  position: absolute;
}
.hvh-modal__close {
  top: 18px;
  right: 20px;
  z-index: 3;
  width: var(--modal-close-size);
  height: var(--modal-close-size);
  font-size: var(--modal-close-font-size);
}
.hvh-modal__image-link,
.hvh-modal__image { display: block; }
.hvh-modal__image-link {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--surface-radius-lg);
  background: var(--surface-soft);
}
.hvh-modal__image {
  object-fit: contain;
  background: var(--surface-soft);
}
.hvh-modal[data-popup-type="hero"] .hvh-modal__image-link {
  height: auto;
  aspect-ratio: 2048 / 1365;
  max-height: var(--modal-hero-image-max-height);
  border-radius: var(--surface-radius-md);
  background: var(--media-stage-bg);
}

.hvh-modal[data-popup-type="hero"] .hvh-modal__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--media-stage-bg);
}

@media (max-width: 1024px) {
  :root {
    --homepage-hero-card-min-height: 270px;
  }

  .hvh-modal[data-popup-type="hero"] {
    --modal-hero-width: min(100vw - 28px, 820px);
    --modal-hero-max-width: calc(100vw - 28px);
    --modal-hero-max-height: calc(100dvh - 44px);
    --modal-hero-image-max-height: calc(100dvh - 88px);
  }

  .content-shell {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 12px;
  }

  .site-footer__top-inner,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-accordion[open] summary + * {
    display: block;
  }

  .footer-accordion:not([open]) ul {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --homepage-hero-card-min-height: 220px;
    --page-card-padding: 24px 22px;
    --page-card-title-size: 30px;
  }

  .hvh-modal {
    padding: 18px 12px;
  }

  .hvh-modal__dialog {
    width: min(100vw - 20px, 1000px);
    height: min(100dvh - 32px, 78vh);
    padding: 10px;
    border-radius: 24px;
  }

  .hvh-modal[data-popup-type="hero"] {
    --modal-hero-width: min(100vw - 20px, 1000px);
    --modal-hero-max-width: min(100vw - 20px, 1000px);
    --modal-hero-max-height: calc(100dvh - 32px);
    --modal-hero-padding: 10px;
    --modal-hero-padding-top: 10px;
    --modal-hero-padding-inline: 10px;
    --modal-hero-padding-bottom: 10px;
    --modal-hero-radius: 24px;
    --modal-hero-image-max-height: calc(100dvh - 78px);
  }

  .hvh-modal[data-popup-type="hero"] .hvh-modal__close {
    display: none;
  }

  .site-footer__top-inner--mobile {
    align-items: stretch;
  }

  .site-footer__top-inner--mobile .social-icons {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  :root {
    --modal-dialog-width: min(82vw, 520px);
    --modal-dialog-height: min(72vh, 620px);
  }
}

@media (max-width: 580px) {
  .side-rail {
    position: static;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form__field-wrap {
    min-width: 0;
  }
}

body.has-modal-open,
body.has-mobile-panel-open { overflow: hidden; }

.site-footer {
  margin-top: var(--section-gap);
  background: var(--footer);
  color: rgba(17, 17, 17, .84);
  border-top: 3px solid var(--black);
}

.site-footer__top {
  border-bottom: var(--border-strong);
  background: var(--footer-top-wash);
}

.site-footer__top-inner,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__top-inner {
  gap: 18px;
  padding: 22px 0;
}

.footer-follow-block {
  display: grid;
  gap: 14px;
  width: 100%;
}

.footer-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-top-link {
  --button-min-height: var(--footer-link-min-height);
  --button-font-size: var(--footer-link-font-size);
  --button-letter-spacing: var(--ui-label-letter-spacing);
}

.site-footer__main { padding: 28px 0 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
}

.footer-accordion { background: transparent; }
.footer-accordion summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  font-weight: 900;
  font-size: var(--ui-label-font-size);
  letter-spacing: var(--ui-label-letter-spacing);
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
  padding-right: 20px;
}
.footer-accordion summary::-webkit-details-marker { display: none; }
.footer-accordion summary::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: var(--red);
}
.footer-accordion ul {
  display: grid;
  gap: 10px;
  padding: 20px 0 0;
  margin: 0;
  list-style: none;
}
.footer-accordion li a {
  color: rgba(17, 17, 17, .76);
  font-size: 15px;
}
.footer-accordion li a:hover,
.footer-accordion li a:focus-visible {
  color: var(--red);
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: var(--border-soft);
  gap: 20px;
  color: rgba(17, 17, 17, .58);
  font-size: 14px;
}

.page-card {
  padding: var(--page-card-padding);
  background: var(--white);
}

.page-card__title {
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: var(--border-soft);
  color: var(--black);
  font-family: var(--font-display);
  font-size: var(--page-card-title-size);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.page-card__content {
  line-height: 1.72;
  color: rgba(17, 17, 17, .86);
}
.page-card__content > :first-child { margin-top: 0; }
.page-card__content > :last-child { margin-bottom: 0; }
.page-card__content > * { max-width: 72ch; }
.page-card__content > h2,
.page-card__content > h3,
.page-card__content > h4,
.page-card__content > ul,
.page-card__content > ol,
.page-card__content > blockquote,
.page-card__content > figure,
.page-card__content > .wp-block-image,
.page-card__content > .wp-block-embed,
.page-card__content > .wp-block-gallery { max-width: none; }
.page-card__content h2,
.page-card__content h3 {
  margin-top: 1.4em;
  margin-bottom: .5em;
  line-height: 1.1;
  color: var(--black);
  font-family: var(--font-display);
  text-transform: uppercase;
}
.page-card__content h2 { font-size: clamp(24px, 2vw, 34px); }
.page-card__content h3 { font-size: clamp(20px, 1.5vw, 28px); }
.page-card__content p,
.page-card__content ul,
.page-card__content ol { font-size: clamp(16px, 1.08vw, 18px); }
.page-card__content ul,
.page-card__content ol { padding-left: 1.25em; }
