/* approach - "The GFF approach" section body (MNCH key theme redesign,
   design_approach.html + objective dialog from design_top.html). Section
   header + navy #21568C section card are master-twig chrome.

   Colors: #21568C -> --clr-blue, #F8B323 -> --clr-yellow-orange,
   #4D4D4D -> --clr-gray-dark, #DBDBDB -> --clr-gray-light. #F3F5F7 (card
   surface) and #1D5C55 (teal ink) have no exact token and are scoped
   locally. The dialog is moved to <body> by js/approach.js (so no ancestor
   transform/overflow can clip it), hence the props are repeated on it. */
.approach,
.approach__modal {
  --approach-blue: var(--clr-blue, #21568c);
  --approach-gold: var(--clr-yellow-orange, #f8b323);
  --approach-ink: var(--clr-gray-dark, #4d4d4d);
  --approach-line: var(--clr-gray-light, #dbdbdb);
  --approach-surface: #f3f5f7;
  --approach-teal-ink: #1d5c55;
  font-family: var(--primary-ff, 'Poppins', sans-serif);
}

.approach {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--approach-ink);
}

.approach *,
.approach *::before,
.approach *::after,
.approach__modal *,
.approach__modal *::before,
.approach__modal *::after {
  box-sizing: border-box;
}

.approach :is(button, a):focus-visible,
.approach__modal :is(button, a):focus-visible {
  outline: 3px solid var(--approach-gold);
  outline-offset: 2px;
}

/* ---------- Objective cards ---------- */
.approach__objectives {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.approach__obj {
  display: flex;
}

.approach__obj-card {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--clr-white, #fff);
  color: #000;
  border-radius: 0 28px 0 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.approach__obj:nth-child(even) .approach__obj-card {
  border-radius: 28px 0 28px 0;
}

.approach__obj-card:hover,
.approach__obj-card:focus-within {
  box-shadow: 0 10px 24px rgba(33, 86, 140, 0.18);
  transform: translateY(-3px);
}

.approach__obj-key {
  align-self: flex-start;
  color: var(--approach-blue);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.approach__obj-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--approach-ink);
}

/* The site's button.css sets `body button:hover, body button:focus` to
   teal bg + white text, which beats this one-class rule. Applying the
   base colours to :hover/:focus too keeps them; the state rules below
   (hover / checked / selected) still win. */
.approach__obj-more,
.approach__obj-more:hover,
.approach__obj-more:focus {
  margin-top: auto;
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--approach-ink);
  cursor: pointer;
}

.approach__obj-arrow {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--approach-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.approach__obj-more:hover .approach__obj-arrow {
  transform: translateX(3px);
}

/* ---------- Objective dialog ---------- */
.approach__modal[hidden] {
  display: none !important;
}

.approach__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 24, 30, 0.6);
}

.approach__close,
.approach__close:hover,
.approach__close:focus {
  position: fixed;
  z-index: 10002;
  top: calc(8vh - 6px);
  right: max(4px, calc((100% - min(780px, calc(100% - 32px))) / 2 - 58px));
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.approach__dialog {
  position: fixed;
  z-index: 10002;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, calc(100% - 32px));
  max-height: 84vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  border-radius: 0 72px 0 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: var(--approach-ink);
}

.approach__dialog:focus {
  outline: none;
}

.approach__dialog-key {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--approach-gold);
  font-size: 12px;
  font-weight: 700;
}

.approach__dialog-title {
  margin: 0;
  padding-right: 24px;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--approach-ink);
}

.approach__dialog-items ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 1.7;
}

.approach__dialog-items p {
  margin: 0;
}

.approach__dialog-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--approach-line);
}

.approach__nav-btn,
.approach__nav-btn:hover,
.approach__nav-btn:focus {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--approach-line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--approach-blue);
  cursor: pointer;
}

.approach__nav-btn:hover {
  background: var(--approach-surface);
}

.approach__nav-btn[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .approach__close {
    top: 8px;
    right: 8px;
  }

  .approach__dialog {
    top: 64px;
    max-height: calc(100vh - 80px);
  }
}

/* ---------- Feature block ---------- */
.approach__feature {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px 56px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--approach-surface);
  border-radius: 0 28px 0 28px;
}

.approach__feature-text {
  flex: 1 1 440px;
  max-width: 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approach__feature-eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--approach-teal-ink);
}

.approach__feature-eyebrow>span {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--approach-gold);
}

.approach__feature-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--approach-ink);
}

.approach__feature-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approach__feature-body,
.approach__feature-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--approach-ink);
}

.approach__feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Multi-file button: the site's multilinks_tooltip behaviour wraps the
   anchor in span.multi-links-wrapper and appends the file-list tooltip
   (content-tooltip.css). Keep the wrapper a plain flex item. */
.approach__feature-links .multi-links-wrapper {
  display: inline-flex;
}

.approach__btn--multi {
  cursor: pointer;
}

/* The tooltip is white, but in blue (even) sections the site swaps
   download icons to the white version (`.odd-even-style:nth-child(2n)
   .icon--download`), which vanished. Force the default teal icons. */
.approach .approach__feature-links .content-tooltip-info .icon--download {
  --icon: url(/themes/custom/gff/templates/components/transform2030-page/shared-components/approach/css/../../../../../../components/elements/icons/img/download/Download_icon_default.svg);
  --icon-hover: url(/themes/custom/gff/templates/components/transform2030-page/shared-components/approach/css/../../../../../../components/elements/icons/img/download/Download_icon_hover2.svg);
}

.approach__btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Colours are pinned for every link state (:visited/:focus/:active) with
   extra specificity - after a click the site's global link colours turned
   the primary label teal on blue (QC 452649). */
.approach a.approach__btn--primary,
.approach a.approach__btn--primary:visited,
.approach a.approach__btn--primary:focus,
.approach a.approach__btn--primary:active {
  background: var(--approach-blue);
  color: #fff;
  border: 2px solid var(--approach-blue);
}

.approach a.approach__btn--primary:hover {
  background: #1a4573;
  border-color: #1a4573;
  color: #fff;
}

.approach a.approach__btn--outline,
.approach a.approach__btn--outline:visited,
.approach a.approach__btn--outline:focus,
.approach a.approach__btn--outline:active {
  border: 2px solid var(--approach-blue);
  color: var(--approach-blue);
  background: transparent;
}

.approach a.approach__btn--outline:hover {
  background: var(--approach-blue);
  color: #fff;
}

.approach__figures {
  flex: 1 1 300px;
  max-width: 380px;
  min-width: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border-radius: 0 20px 0 20px;
}

.approach__figures-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--approach-ink);
}

.approach__figures-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.approach__figure {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
  border-left: 3px solid var(--approach-gold);
}

.approach__figure-value {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--approach-blue);
}

.approach__figure-label {
  font-size: 15px;
  line-height: 1.55;
  color: var(--approach-ink);
}

@media (max-width: 767px) {
  .approach__figures {
    max-width: none;
    flex-basis: 100%;
  }

  .approach__feature-text {
    flex-basis: 100%;
  }
}

@media (max-width: 560px) {
  .approach__obj-card {
    min-height: 0;
    padding: 22px;
  }

  .approach__obj-title {
    font-size: 19px;
  }

  .approach__dialog-title {
    font-size: 22px;
  }

  .approach__dialog-items ul {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .approach__obj-card,
  .approach__obj-arrow,
  .approach__btn {
    transition: none;
  }

  .approach__obj-card:hover,
  .approach__obj-card:focus-within,
  .approach__obj-more:hover .approach__obj-arrow {
    transform: none;
  }
}
