/* Shared navigation behaviour; existing colours and font families are retained. */
.site-nav a[aria-current="page"] { color: var(--lime); text-decoration: underline; text-underline-offset: 6px; }
:root {
  --site-header-height: 86px;
  scroll-padding-top: calc(var(--site-header-height) + 12px);
}
.skip-link { position: fixed; }
@media (min-width: 701px) and (max-width: 1000px) {
  .nav-wrap { flex-wrap: wrap; justify-content: center; gap: 16px; padding-block: 18px; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; justify-content: center; width: 100%; gap: 22px; padding: 0; box-shadow: none; }
  .site-nav a { font-size: 14px; padding: 8px 0; }
  .site-nav .nav-contact { margin: 0; padding: 10px 16px; }
  .menu-toggle { display: none; }
}
@media (min-width: 1001px) { .site-nav { gap: 24px; } }
@media (max-width: 700px) {
  :root { --site-header-height: 70px; }
  .site-nav {
    top: 100%;
    max-height: calc(100dvh - var(--site-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Common page chrome across the homepage, articles and generated pages. */
.shell { width: min(100% - 64px, 1200px); }
.site-header { position: sticky; top: 0; background: #102d64; }
.nav-wrap { min-height: var(--site-header-height); gap: 24px; }
.site-nav a, .site-nav .nav-contact { font-size: 14px; font-weight: 700; }
.site-nav .nav-contact { border-color: #8ba9df; margin: 0; padding: 13px 19px; }
.site-nav a[data-current-section] { color: var(--lime); }
.site-footer { background: #102d64; padding: 42px 0 24px; }
.shared-footer-inner { display: flex; justify-content: space-between; gap: 32px; }
.shared-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(24px, 6vw, 96px); }
.site-footer .shared-footer-group .shared-footer-heading { margin: 0 0 10px; color: #fff; font-size: 14px; font-weight: 700; }
.shared-footer-group ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shared-footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #56719c; margin-top: 28px; padding-top: 18px; }
.site-footer .shared-footer-inner p { margin: 10px 0 0; }
.shared-footer-links a, .shared-footer-bottom, .site-footer .shared-footer-bottom a { color: #c9d7ee; font-size: 14px; text-decoration: none; }
.shared-footer-links a:hover, .site-footer .shared-footer-bottom a:hover { text-decoration: underline; }
.page-hero { padding-block: clamp(40px, 6vw, 76px); }
.page-hero .hero-layout { min-height: 0; }
.page-hero .compact-hero { display: block; }
.page-hero .compact-hero .hero-copy { max-width: 790px; }
.community-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; border-radius: 5px; }
.section-pad { padding-block: clamp(48px, 7vw, 88px); }
@media (min-width: 701px) and (max-width: 1000px) {
  .nav-wrap { flex-wrap: nowrap; justify-content: space-between; padding-block: 0; }
  .site-nav { width: auto; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 36px, 1200px); }
  .site-header .site-nav a { font-size: 16px; }
  .site-nav .nav-contact { margin-top: 8px; }
  .shared-footer-inner, .shared-footer-bottom { flex-direction: column; }
}

/* Interior hero photos sit behind the existing foreground content. */
.interior-hero::before { content: none; }
.interior-backdrop, .interior-backdrop img, .interior-backdrop::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.interior-backdrop { pointer-events: none; }
.interior-backdrop img { object-fit: cover; object-position: center 40%; }
.interior-backdrop::after {
  content: "";
  background: linear-gradient(90deg, rgb(0 0 0 / .78), rgb(0 0 0 / .62));
}
.interior-hero .hero-copy, .article-hero-inner > * { min-width: 0; }
.interior-hero h1 { overflow-wrap: anywhere; }

/* Stable shared header metrics prevent a visual shift between page templates. */
html { scrollbar-gutter: stable; }
.site-header .nav-wrap { gap: 24px; min-height: var(--site-header-height); }
.site-header .site-nav { gap: 24px; }
.site-header .site-nav a {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
}
.site-header .brand {
  font: 700 22px/1.2 'Space Grotesk', Arial, sans-serif;
  letter-spacing: -.045em;
  gap: 11px;
}
.site-header .brand img { width: 38px; height: 38px; }
.site-header .nav-contact { padding: 13px 19px; border: 1px solid #8ba9df; border-radius: 5px; }
.site-header .nav-contact:hover,
.site-header .nav-contact:focus-visible { background: var(--lime); border-color: var(--lime); color: #102d64; }

/* Hover and focus change colour, never dimensions, position or border width. */
.text-link { gap: 8px; white-space: normal; line-height: 1.5; }
.text-link:hover, .text-link:focus-visible { gap: 8px; border-bottom-width: 1px; text-decoration: none; color: #102d64; }
.light-link:hover, .light-link:focus-visible { color: var(--lime); }
.button:hover, .button:focus-visible, .feature-card:hover, .feature-card:focus-visible { transform: none; }
.pillar-links > a:hover .text-link, .pillar-links > a:focus-visible .text-link { text-decoration: none; color: #102d64; }
.pillar-title > a:hover, .pillar-title > a:focus-visible { text-decoration: none; color: var(--lime); }
.story-followup a:hover, .activity-monthly a:hover,
.story-followup a:focus-visible, .activity-monthly a:focus-visible { color: #102d64; }
.readable a:not(.button):hover, .article-body a:hover { color: #102d64; }
.shared-footer-links a:hover, .site-footer .shared-footer-bottom a:hover { color: var(--lime); text-decoration: none; }
.site-footer .site-credit:focus-visible { color: var(--lime); outline: 2px solid currentColor; outline-offset: 5px; }
.page-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: 14px; font-weight: 700;
  margin-bottom: 24px; text-decoration: none; line-height: 1.5;
}
.page-back:hover, .page-back:focus-visible, .article-back:hover, .article-back:focus-visible { color: var(--lime); text-decoration: none; }
.section-action { margin: 32px 0 0; }
.venue-day + .venue-day { margin-top: 22px; }
.venue-day h4 { margin: 0 0 12px; }
.venue-day ul { list-style: none; padding: 0; margin: 0; }
.venue-day li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.venue-day li a { flex-basis: 65%; color: var(--blue); font-weight: 700; }
.venue-day li a:hover { color: #102d64; }
.original-article { overflow-wrap: anywhere; }
.original-article h2 { scroll-margin-top: 12px; }
.original-article h3 { font-size: clamp(22px, 2.5vw, 30px); margin: 30px 0 14px; line-height: 1.25; }
.original-article ul { padding-left: 24px; }
@media (max-width: 700px) {
  .site-header .site-nav { gap: 0; }
  .site-header .site-nav a { font-size: 16px; }
  .site-header .brand { font-size: 20px; }
  .site-header .brand img { width: 32px; height: 32px; }
}

.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.social-links a, .social-placeholder { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 5px; }
.social-links svg { display: block; width: 24px; height: 24px; }
.social-links a { color: var(--blue); text-decoration: none; }
.social-links a:hover, .social-links a:focus-visible { color: #102d64; background: var(--lime); }
.social-placeholder { color: var(--muted); opacity: .5; }
.site-footer .social-links a { color: #c9d7ee; }
.site-footer .social-links a:hover, .site-footer .social-links a:focus-visible { color: #102d64; background: var(--lime); }
.site-footer .social-placeholder { color: #c9d7ee; }
.social-heading { margin: 28px 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.hero-art > img[src="hearty-earth-logo.png"] { height: auto; }
