/* Information Hub longform pages — centred reading measure with full-width breaks. */
.info-hub-page {
  --info-band: 70rem;
  --info-measure: 60ch;
}

/* One shared rail for every block, so text, lists and splits line up. */
.info-hub-page .dz-flexi > .flex-demo {
  max-width: var(--info-band);
  margin-inline: auto;
  padding-block: 1.5rem;
}

.info-hub-page .flex-hero .container {
  max-width: var(--info-band);
}

.info-hub-page .flex-contact-form-block > .flex-demo {
  max-width: var(--info-band);
}

.info-hub-page .flex-hero-grid {
  gap: 3rem;
  align-items: center;
}

.info-hub-page .flex-hero-grid > img {
  aspect-ratio: 1.3;
  max-height: 24rem;
}

/* Reading column: centred, generous line length. */
.info-hub-page .flex-rich-text .article-copy {
  max-width: var(--info-measure);
  margin-inline: auto;
}

.info-hub-page .flex-rich-text .article-copy > h2 {
  margin-top: 1rem;
  scroll-margin-top: 7rem;
}

/* Graphics supplied inside a page, kept at their own shape. */
.info-hub-page .article-copy img.hub-figure {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0.75rem auto;
}

.info-hub-page .hub-figure--icon { max-width: 9rem; }
.info-hub-page .hub-figure--logo { max-width: 16rem; }
.info-hub-page .hub-figure--mark { max-width: 22rem; }

.info-hub-page .flex-rich-text:has(img.hub-figure):not(:has(p)):not(:has(h2)) .article-copy {
  max-width: 52rem;
}

.info-hub-page .article-copy a {
  overflow-wrap: anywhere;
}

.info-hub-page .flex-rich-text:has(.journey-tabs) .article-copy {
  max-width: 52rem;
}

.info-hub-page .journey-tabs,
.info-hub-page .hub-links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.info-hub-page .journey-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.info-hub-page .journey-tabs a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid #20312918;
  border-left: 4px solid var(--green, #1b853f);
  border-radius: 0.5rem;
  background: #fff;
  color: #203129;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.info-hub-page .journey-tabs a:hover,
.info-hub-page .journey-tabs a:focus-visible {
  background: #edf5ef;
}

.info-hub-page .hub-links {
  display: grid;
  gap: 0.5rem;
}

.info-hub-page .hub-links li {
  padding: 0.75rem 1rem;
  border: 1px solid #20312914;
  border-radius: 0.5rem;
  background: #fff;
}

.info-hub-page .hub-chart {
  margin: 1.5rem 0;
}

.info-hub-page .article-copy img.hub-figure--chart {
  max-width: min(100%, 26rem);
}

.info-hub-page .hub-chart figcaption {
  margin-top: 0.35rem;
  font-size: 0.875rem;
}

/* Entries that open with a subheading read as their own card. */
.info-hub-page .flex-rich-text:has(h3) > .flex-demo {
  padding-block: 0.75rem;
}

.info-hub-page .flex-rich-text:has(h3) .article-copy {
  max-width: none;
  background: #fff;
  border: 1px solid #20312918;
  border-left: 4px solid var(--green, #1b853f);
  border-radius: 0.5rem;
  padding: 1.5rem 1.75rem;
}

.info-hub-page .flex-rich-text:has(h3) .article-copy > h3 {
  margin-top: 0;
  scroll-margin-top: 7rem;
}

.info-hub-page .flex-rich-text:has(h3) .article-copy > :last-child {
  margin-bottom: 0;
}

.info-hub-page .flex-rich-text + .flex-rich-text > .flex-demo {
  padding-top: 0;
}

/* Section openers get air above, so the page reads in chapters. */
.info-hub-page .flex-rich-text:has(h2) > .flex-demo,
.info-hub-page .flex-split-panel:has(h2) > .flex-demo,
.info-hub-page .flex-split-panel:has(h3) > .flex-demo,
.info-hub-page .flex-award-cards:has(h2) > .flex-demo {
  padding-top: 3.5rem;
}

/* The closing heading follows a run of cards, so it needs a clearer break. */
.info-hub-page .flex-rich-text:has(#hear-more) > .flex-demo {
  padding-top: 6.5rem;
}

/* Split panels ------------------------------------------------------- */
.info-hub-page .flex-split-panel .split-grid {
  gap: 4rem;
}

.info-hub-page .flex-split-panel .split-copy {
  max-width: 46ch;
}

.info-hub-page .flex-split-panel .split-copy > h2 {
  margin-top: 0;
}

/* A graphic beside the text keeps its own shape. */
.info-hub-page .flex-split-panel .split-copy:has(> img.hub-figure):not(:has(p)):not(:has(h2)) {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-hub-page .flex-split-panel .split-copy img.hub-figure {
  width: auto;
  max-width: min(100%, 18rem);
  height: auto;
  margin: 0;
}

.info-hub-page .flex-split-panel .split-copy img.hub-figure--mark {
  max-width: min(100%, 22rem);
}

.info-hub-page .flex-split-panel .split-media,
.info-hub-page .flex-split-panel .split-media img {
  aspect-ratio: 1.4;
  min-height: 0;
  height: auto;
  max-height: 24rem;
}

/* Tinted band: full-width wash behind the row. */
.info-hub-page .flex-split-panel.split-style-band {
  background: linear-gradient(100deg, #eef6f0, #e6f1ef 60%, #edf6ec);
}

.info-hub-page .flex-split-panel.split-style-band > .flex-demo {
  padding-block: 3.5rem;
}

/* Cards: each half reads as its own panel (text + text). */
.info-hub-page .flex-split-panel.split-style-cards .split-grid {
  gap: 2rem;
  align-items: stretch;
}

.info-hub-page .flex-split-panel.split-style-cards .split-col {
  display: flex;
}

.info-hub-page .flex-split-panel.split-style-cards .split-copy {
  max-width: none;
  background: #fff;
  border: 1px solid #20312918;
  border-top: 4px solid var(--green, #1b853f);
  border-radius: 0.5rem;
  padding: 1.75rem;
}

.info-hub-page .flex-split-panel.split-style-cards .split-copy > :first-child {
  margin-top: 0;
}

.info-hub-page .flex-split-panel.split-style-cards .split-copy > :last-child {
  margin-bottom: 0;
}

/* Lists -------------------------------------------------------------- */
.info-hub-page .flex-plain-list .resources-column {
  max-width: none;
}

.info-hub-page .flex-plain-list .resource-group {
  margin-top: 0;
  background: #f5f8f4;
  border-top: 0;
  border-left: 4px solid var(--green, #1b853f);
}

.info-hub-page .flex-plain-list:not(.flex-plain-list--two-col) .resource-group {
  max-width: 52rem;
  margin-inline: auto;
}

.info-hub-page .plain-list-intro {
  font-size: 1rem;
  color: #203129;
  margin-bottom: 1.25rem;
}

.info-hub-page .reading-list--plain .reading-item {
  border-color: #20312914;
  height: 100%;
}

/* Cells in two-column grids share a row height. */
.info-hub-page .resource-group--two-col > ul > li {
  display: flex;
}

.info-hub-page .resource-group--two-col > ul > li > a,
.info-hub-page .resource-group--two-col > ul > li > .reading-item {
  width: 100%;
}

.info-hub-page .flex-plain-list--two-col .reading-list--plain .reading-item,
.info-hub-page .flex-plain-list--two-col .reading-list--plain .reading-item:hover,
.info-hub-page .flex-plain-list--two-col .reading-list a:hover {
  background: #fff;
  border-color: #20312914;
  transition: none;
}

.info-hub-page .reading-list--plain strong {
  color: #203129;
  font-weight: 500;
}

.info-hub-page .reading-list--plain strong:only-child {
  font-weight: 400;
}

/* Hub links --------------------------------------------------------- */
.info-hub-page .flex-downloads .resource-group {
  margin-top: 0;
  background: #eef4f0;
  border-top: 0;
  border-left: 4px solid var(--green, #1b853f);
}

.info-hub-page .flex-downloads .resource-row {
  align-items: flex-start;
}

.info-hub-page .flex-downloads .resource-name {
  font-size: 1rem;
  font-weight: 600;
}

.info-hub-page .flex-downloads .resource-meta {
  font-size: 1rem;
  color: var(--green, #1b853f);
}

/* Closing line sits on its own, with room to breathe. */
.info-hub-page #main-content > .flex-rich-text:last-child > .flex-demo,
.info-hub-page .map-information > .flex-rich-text:last-child > .flex-demo {
  padding-bottom: 4.5rem;
}

@media (max-width: 900px) {
  .info-hub-page .dz-flexi > .flex-demo {
    padding-block: 1rem;
  }

  .info-hub-page .flex-rich-text:has(h2) > .flex-demo,
  .info-hub-page .flex-split-panel:has(h2) > .flex-demo,
  .info-hub-page .flex-split-panel:has(h3) > .flex-demo,
  .info-hub-page .flex-award-cards:has(h2) > .flex-demo,
  .info-hub-page .flex-split-panel.split-style-band > .flex-demo {
    padding-top: 2.25rem;
  }

  .info-hub-page .flex-rich-text:has(#hear-more) > .flex-demo {
    padding-top: 4rem;
  }

  .info-hub-page .flex-split-panel .split-copy,
  .info-hub-page .flex-split-panel.split-style-cards .split-copy {
    max-width: none;
  }

  .info-hub-page .flex-split-panel.split-style-cards .split-copy {
    padding: 1.25rem;
  }

  .info-hub-page .flex-plain-list .resource-group {
    padding: 1.125rem 1rem;
  }

  .info-hub-page .flex-rich-text:has(h3) .article-copy {
    padding: 1.125rem 1rem;
  }

  .info-hub-page .journey-tabs {
    grid-template-columns: 1fr;
  }
}

.info-hub-page .cookie-policy-report {
  max-width: 52rem;
  margin-inline: auto;
  overflow-x: auto;
}

.info-hub-page .cookie-policy-report table {
  width: 100%;
  border-collapse: collapse;
}

/* Project singles: map crop in the compact hero + glance / map / partners. */
.info-hub-page .flex-hero-grid--map {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  gap: 3rem;
  align-items: center;
}

.info-hub-page .flex-hero-grid--map .detail-locator {
  min-width: 0;
}

.info-hub-page .flex-hero .detail-labels {
  margin: 0.75rem 0 0;
}

.info-hub-page .flex-hero .project-location {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.info-hub-page .flex-hero .status {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--forest);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
}

.info-hub-page .project-detail-layout {
  max-width: var(--info-band);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
  gap: 3rem;
  align-items: start;
  padding-block: 2rem 4rem;
}

.info-hub-page .project-detail-main .dz-flexi > .flex-demo,
.info-hub-page .project-detail-main .container {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}

.info-hub-page .project-detail-main .flex-rich-text .article-copy {
  margin-inline: 0;
  max-width: none;
}

.info-hub-page .project-detail-main .flex-split-panel .split-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.info-hub-page .project-detail-main .flex-split-panel .split-copy {
  max-width: none;
}

/* Bands sit in the story column, so treat them as cards like the learn box. */
.info-hub-page .project-detail-main .flex-split-panel.split-style-band {
  background: #f5f8f4;
  border-radius: 0.5rem;
  margin-block: 0.75rem;
}

.info-hub-page .project-detail-main .flex-split-panel.split-style-band > .flex-demo {
  padding: 1.5rem 1.75rem;
}

.info-hub-page .project-detail-sidebar,
.info-hub-page .project-detail-sidebar.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 7rem;
}

.info-hub-page .project-detail-sidebar .sidebar-map img {
  display: block;
}

@media (max-width: 800px) {
  .info-hub-page .flex-hero-grid--map {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .info-hub-page .project-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 1.25rem 2.5rem;
  }

  .info-hub-page .project-detail-sidebar,
  .info-hub-page .project-detail-sidebar.detail-sidebar {
    order: -1;
    position: static;
    display: flex;
  }

  .info-hub-page .project-detail-main .flex-split-panel.split-style-band > .flex-demo {
    padding: 1.125rem 1rem;
  }
}
