/* transform-2030-tabs */
.transform-2030-tabs {
  margin-top: var(--sp8);
  background: var(--clr-neutral-200);
  border-radius: var(--radius-24);
  padding: var(--sp11);
  display: flex;
  flex-direction: column;
  /* 10px, not Figma's 20px (--sp6) - sticky-tabs already carries its own
     10px top/bottom padding (see its rule below), so roof->buttons and
     buttons->accordion would otherwise total 30px (gap + padding), double
     counting. 10px gap + 10px padding = 20px, matching Figma. Only valid
     >=768px while sticky-tabs exists in flow; <768px it's display:none and
     this same gap would wrongly apply to roof->accordion directly, so
     mobile.css pins its own var(--sp4) override independent of this. */
  gap: var(--sp3);
}

.transform-2030-tabs>* {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* roof / banner
   Pure CSS crest (clip-path polygon), same technique already established
   by the sibling transform-2030-focus-areas component's own
   .focus-areas__brand-inner - a plain white box clipped to a 5-point
   roofline, with border-radius handling the rounded bottom corners (the
   polygon's own bottom-left/right points land exactly on the box's actual
   corners, so the existing curve there isn't overridden). Replaces an
   earlier <img>-based build (a separately-bled wrapper + a downloaded SVG
   asset stretched via object-fit) - no image asset needed, and the slope
   ratio is exact at any width since clip-path's percentages are resolution
   -independent (no object-fit/aspect-ratio math to get wrong).
   Polygon Y is 68.46% = 89/130 - the exact point in the original Figma SVG
   path (`M720 0L0 89...`) where the slope reaches full width, out of the
   band's own 130px height.
   Bleeds past the container's own padding to the FULL outer edges, on all
   3 breakpoints - confirmed by rendering the actual Figma frames in full
   section context (desktop 2207:69, tablet 2213:1222, mobile 2245:245):
   in all three, the white crest reaches edge-to-edge while the tabs/cards
   below it sit visibly inset with the container's normal padding.
   Padding "0 0 20px" + align-items:flex-end bottom-aligns the title 20px
   above the crest's own bottom edge - it is NOT vertically centered in the
   full 130px band.
   Height is a literal 130px: checked the tablet (2254:396) and mobile
   (2254:400) Roof frames too, and all three share the exact same
   height:130 - the band's height is viewport-width-independent, only its
   width changes. */
.transform-2030-tabs__roof {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 130px;
  width: 100%;
  background: var(--clr-white);
  border-radius: 0 0 var(--radius-xxs, 8px) var(--radius-xxs, 8px);
  clip-path: polygon(50% 0%, 100% 68.46%, 100% 100%, 0% 100%, 0% 68.46%);
  /* Literal, not var(--sp6): Figma's Roof padding ("0 0 20px") is identical
     at all 3 checked frames (desktop/tablet/mobile) - --sp6 itself shrinks
     to 12px at <=767px (base/spacing/spacing-max-767.css), which would
     incorrectly shrink this too. Same category of bug as the tab's own
     horizontal padding below. */
  padding-bottom: 20px;
}

.transform-2030-tabs__roof-title {
  position: relative;
  margin: 0;
  font-size: var(--fs-32);
  line-height: 1.25;
  font-weight: var(--fw-bold);
  /* Figma "GFF Aqua green" #1FA19B - exact match is --clr-primary, NOT
     --clr-teal-500 (#1fa29c, a different, 1-unit-off teal used elsewhere in
     this codebase). */
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* accordion wrapper - holds tab+panel pairs as flat siblings (see the twig
   comment above the loop for why). Desktop/tablet: tabs share order:1 (so
   they lay out as a row, left-to-right in source order) and panels share
   order:2 + flex-basis:100% (forced onto their own line below the tabs,
   wrap makes that possible). Mobile (--mobile.css) resets both to order:0
   and full width, turning the same flat list into a stacked accordion -
   source order there already matches what an accordion needs
   (tab1, panel1, tab2, panel2, ...). */
.transform-2030-tabs__accordion {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp2);
}

.transform-2030-tabs__tab {
  order: 1;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp4);
  padding: var(--sp5_5) var(--sp6);
  /* The site's global button styling (components/common/css/button.css)
     sets its own default height on every <button> - unopposed here since
     nothing below declared one, letting the clicked tab's height drift
     away from what its own padding/content actually need. */
  height: auto;
  background: var(--clr-white);
  border: none;
  border-radius: var(--radius-8);
  cursor: pointer;
  font-family: var(--primary-ff);
  text-align: left;
  transition: background-color 0.2s ease;
}

.transform-2030-tabs__panel {
  order: 2;
  flex: 0 0 100%;
}

/* Mobile-only expand/collapse affordance (Figma node 2245:245) - no such
   button exists in the desktop/tablet frames, so it stays hidden until the
   mobile breakpoint turns it on. Collapsed (Plus) uses the SAME yellow
   round-button instance as the cards' own Read More icon (EL-707ec881,
   componentId 2246:538); expanded (Minus) switches to a plain white
   circle (componentId 2246:539, same as the desktop pager's round
   buttons) - two different component instances in Figma, not one button
   with a color variant. */
.transform-2030-tabs__tab-toggle {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--clr-yellow-orange);
}

.transform-2030-tabs__tab.is-active .transform-2030-tabs__tab-toggle {
  background: var(--clr-white);
}

.transform-2030-tabs__tab-toggle-icon {
  display: flex;
}

/* Plus sits on the yellow circle (white icon, matching the cards' own
   Read More icon on the same yellow round button); Minus sits on the white
   circle, where a white icon would be invisible - dark gray instead. */
.transform-2030-tabs__tab-toggle-icon--plus {
  color: var(--clr-white);
}

.transform-2030-tabs__tab-toggle-icon--minus {
  color: var(--clr-gray-dark);
}

.transform-2030-tabs__tab-toggle-icon--minus {
  display: none;
}

.transform-2030-tabs__tab.is-active .transform-2030-tabs__tab-toggle-icon--plus {
  display: none;
}

.transform-2030-tabs__tab.is-active .transform-2030-tabs__tab-toggle-icon--minus {
  display: flex;
}

.transform-2030-tabs__tab.is-active {
  background: var(--clr-yellow-orange);
}

/* The real theme's global `body button:hover`/`:focus` rule ((0,1,2)
   specificity: body+button types, :hover/:focus each count as a class)
   paints every <button> teal (#1fa29c) on hover/focus - beats this
   component's own base `.tab{background:white}` ((0,1,0)). On a mouse this
   doesn't matter (the hover-capable media block below, at (0,3,0), already
   wins outright), but touch devices never match that block at all, so a tap
   left the tab showing the wrong teal background with nothing to restore
   the correct one. `.tab:hover`/`:focus` here is (0,2,0) - enough to beat
   the global rule unconditionally, without needing a touch-specific media
   query, and still loses to the more specific hover-capable/is-active rules
   below/above where those should keep taking over. */
.transform-2030-tabs__tab:hover,
.transform-2030-tabs__tab:focus {
  background: var(--clr-white);
}

.transform-2030-tabs__tab.is-active:hover,
.transform-2030-tabs__tab.is-active:focus {
  background: var(--clr-yellow-orange);
}

/* hover: hover + pointer: fine excludes touch - without it, a tap on a
   touchscreen leaves the tab "stuck" showing its hover background after
   the finger lifts, since touch has no real mouseleave to clear it. */
@media (hover: hover) and (pointer: fine) {
  .transform-2030-tabs__tab:not(.is-active):hover {
    background: var(--clr-yellow-orange);
  }
}

/* Sticky tab row, desktop/tablet only. A DUPLICATE set of tab buttons
   (see the twig) in its own dedicated wrapper, not the real tabs
   themselves - the real tabs are flat siblings of their own panels in the
   DOM, by design, so the mobile accordion's CSS-order reflow trick has
   flat, interleaved source order to work with (tab1, panel1, tab2,
   panel2, ...). Wrapping the real tabs for a sticky desktop header would
   break that. This wrapper is independent instead, with its own
   background/padding - real padding on a real element, not a box-shadow
   illusion - shown only where the real tabs are hidden, and vice versa.
   js/transform-2030-tabs.js keeps both copies' is-active state in sync and
   wires identical click handling onto both.

   Hidden by default (mobile-safe baseline, unconditional) - only shown
   at >=768px, where the real tabs (inside .accordion specifically) are
   hidden in exchange.

   top: var(--header-height, 70px) - 1px) - same pattern the sibling
   transform-2030-focus-areas component already uses for its own sticky
   group-heading. The , 70px fallback isn't a guess at the real value -
   it's defensive: an undefined custom property makes the whole calc()
   invalid and the browser drops the entire top declaration rather than
   partially applying it (seen live on the real site before this fallback
   was added). Stays constant regardless of body.page-scroll-up/
   page-scroll-down, by request - no tightened-up variant once the header
   auto-hides. */
.transform-2030-tabs__sticky-tabs {
  display: none;
}

@media (min-width: 768px) {
  .transform-2030-tabs__accordion>.transform-2030-tabs__tab {
    display: none;
  }

  .transform-2030-tabs__sticky-tabs {
    display: flex;
    gap: var(--sp2);
    position: sticky;
    top: calc(var(--header-height, 70px) - 1px);
    z-index: 2;
    background: var(--clr-neutral-200);
    /* 10px top/bottom - a UX refinement, not a Figma-specified value (this
       sticky header is a new feature beyond the original design). --sp3
       is an exact 10px match. */
    padding: var(--sp3) 0;
  }

  /* On click, the sticky tab/pager JS scrolls the page just far enough that
     .accordion (its cards) lands flush under the sticky band - never far
     enough to also reveal .roof above it, which isn't needed to see the new
     content. Computed in JS at click time (see scrollStickyIntoView()), not
     a static scroll-margin-top - the sticky band's own rendered height
     varies with its content/wrapping, so a fixed CSS value couldn't track
     it precisely. */

  /* The active sticky tab doesn't need to be clickable - it's already the
     one shown, so a click would just re-run the same activate()+scroll for
     no visible change. Scoped to .sticky-tabs specifically, not
     .accordion's real tabs - mobile's own accordion re-click-to-close
     behavior still needs its active tab fully clickable. */
  .transform-2030-tabs__sticky-tabs .transform-2030-tabs__tab.is-active {
    pointer-events: none;
  }

  /* Compensates the container gap shrink above (20px->10px / 16px->6px) -
     accordion->pager spacing has no sticky-tabs padding feeding into it, so
     it needs its own 10px topped back up to stay at Figma's 20px (desktop)
     /16px (tablet) regardless of which of those two the shrunk gap is. */
  .transform-2030-tabs__pager {
    margin-top: var(--sp3);
  }
}

/* Header stays docked at top:0 always on any page rendering this component -
   not gated to body.page-scroll-down like the sibling transform-2030-focus-areas
   component's own version of this rule, since here the sticky band's `top`
   is a flat `var(--header-height,70px)` constant regardless of scroll
   direction (see .sticky-tabs above) - it never tightens on scroll-down, so
   the header must never hide/shift either, or the two drift out of sync.
   `:has(.transform-2030-tabs)` scopes this to pages with this component only,
   so it can't affect header behavior anywhere else. */
body:has(.transform-2030-tabs) header.navbar {
  top: 0;
}

.transform-2030-tabs__tab-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  /* 14px left/right - no existing token was exact (--sp5 is 15px, 1px
     off), minted --sp4_75 in base/spacing/spacing.css. */
  padding: var(--sp-xs) var(--sp4_75);
  border-radius: var(--radius-xs);
  background: var(--clr-gray-dark);
  color: var(--clr-white);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1.4286;
  text-transform: uppercase;
  white-space: nowrap;
}

.transform-2030-tabs__tab-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.transform-2030-tabs__tab-title {
  /* Figma (style_966774f0): 17px/24px SemiBold - was --fs-18 (18px), off by
     1px. No existing token for 17px, minted --fs-17 in base/fonts/fonts.css. */
  font-size: var(--fs-17);
  font-weight: var(--fw-semibold);
  line-height: 24px;
  color: var(--clr-gray-dark);
}

.transform-2030-tabs__tab-range {
  font-size: var(--fs-14);
  font-weight: var(--fw-normal);
  line-height: 1.4286;
  color: var(--clr-gray-dark);
}

/* group heading */
.transform-2030-tabs__panel[hidden] {
  display: none;
}

/* Figma (Section gap:20px desktop/16px tablet/12px mobile): the heading
   row and the Cards grid are both direct siblings of the tab row under
   ONE uniform column gap - this component instead nests heading+cards one
   level deeper inside .panel-inner (for the tab/accordion mechanism).
   margin-bottom reproduces the heading-to-cards gap directly (the panel's
   own flex-gap doesn't reach inside .panel-inner at all). Gets a
   breakpoint override matching Figma's own differing Section gap per
   breakpoint - see --tablet.css/--mobile.css.

   margin-top is 0 here (desktop/tablet default) - NOT a shortfall-topup
   like it used to be. Before the sticky-tabs duplicate wrapper existed,
   the real tabs were visible siblings of the panel inside .accordion, and
   .accordion's own 8px gap (--sp2) undershot the real tab-to-heading gap
   by 12px, needing a margin-top topup here. Now the real tabs are
   display:none at this width (the sticky-tabs wrapper shows the visible
   copy instead, as a SEPARATE flex child of .transform-2030-tabs) - the
   container's own gap alone already provides the full, correct
   sticky-tabs-to-accordion distance with nothing left to top up.
   Mobile still needs the old topup (its own override in --mobile.css is
   untouched) - the real tabs stay visible there, same mechanism as before. */
.transform-2030-tabs__heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 0;
  margin-bottom: var(--sp6);
}

.transform-2030-tabs__heading-main {
  font-size: var(--fs-26);
  font-weight: var(--fw-bold);
  color: var(--clr-blue);
}

.transform-2030-tabs__heading-range {
  font-size: var(--fs-18);
  font-weight: var(--fw-normal);
  color: var(--clr-gray-dark);
}

/* Sub-theme groups (group.sub_themes[]) - same technique as the sibling
   transform-2030-focus-areas component: nested inside their parent panel,
   sharing its tab/pager cycle rather than getting an entry of their own.
   Two-line heading (parent group's own label, small/uppercase/neutral, then
   the sub-group's own title, bold/blue/larger) above its own card grid. */
.transform-2030-tabs__sub-group {
  margin-top: 0;
  padding: 0;
  border: none;
}

.transform-2030-tabs__sub-group:first-child {
  margin-top: 0;
}

.transform-2030-tabs__sub-group-heading {
  display: flex;
  gap: 10px;
  margin-bottom: var(--sp5);
  align-items: baseline;
}

.transform-2030-tabs__sub-group-title {
  font-size: var(--fs-21);
  font-weight: var(--fw-bold);
  color: var(--clr-blue);
  flex-shrink: 0;
}

/* cards grid - reuses transform-2030-focus-areas's own
   css/focus-area-cards.css verbatim (.focus-areas__card*), not the generic
   gff/cards__layout2 grid this component used before. That file's --card-*
   sizing variables key off either .focus-areas or .focus-area-cards-scope
   (see the file's own header comment) - this twig's root element carries
   the latter, so everything below resolves with zero local overrides. */

/* pager */
.transform-2030-tabs__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp6);
  display: none;
}

.transform-2030-tabs__pager-btn {
  display: flex;
  align-items: center;
  gap: var(--sp7);
  padding: 0;
  border: none;
  /* Stable footprint regardless of content - Previous's single bare label
     (boundary state) is much narrower than its full label+divider+title
     stack, which otherwise made the pager row visibly resize/jump as the
     active tab changed. Matched to this component's own full-content Next
     button width (icon+gap+stack at its widest), not a Figma-stated value -
     Figma only ever captured one state per button, neither showing an
     explicit min-width. */
  min-width: 193px;
  /* Same global button.css gap as .tab above - a default height AND a
     default :hover background both land on every real <button> unless
     something here overrides them; this component already has its own
     intentional hover (the round .pager-icon turns yellow, see below), so
     the outer button itself must stay height:auto and background-less in
     both states rather than layering the global button's own look under
     it. */
  height: auto;
  background: transparent;
  cursor: pointer;
  font-family: var(--primary-ff);
}

.transform-2030-tabs__pager-btn:hover,
.transform-2030-tabs__pager-btn:focus,
.transform-2030-tabs__pager-btn:focus-visible {
  background: transparent;
}

.transform-2030-tabs__pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.transform-2030-tabs__pager-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--clr-white);
  transition: background-color 0.2s ease;
}

.transform-2030-tabs__pager-btn:not(:disabled):hover .transform-2030-tabs__pager-icon {
  background: var(--clr-yellow-orange);
}

/* Figma instances this icon (layout_44b1503c) at 18x18 inside the round
   button - the earlier 16x14 was an unchecked guess that also squashed a
   square glyph into a non-square box. */
.transform-2030-tabs__pager-icon svg {
  width: 18px;
  height: 18px;
  color: var(--clr-gray-dark);
}

.transform-2030-tabs__pager-label {
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--clr-gray-dark);
  /* Left-aligned on both buttons, per design - was right-aligned on the
     Next side (see git history), which only became visible once .pager-btn
     got its own min-width above (this stack used to hug its content
     exactly, so text-align had no visible effect either way). */
  text-align: left;
}

/* Next button: "Next" / divider / "Transformation" stack beside the round
   icon - a vertical column, not an inline row (Figma node 2213:1155: column,
   gap 10px). The divider is a horizontal rule spanning the stack's own
   width, not a vertical bar between inline items. Previous mirrors the same
   column/divider/title pattern (same Figma template, EL-c2ef771f, reused
   for both buttons) - empty only in the one state Figma actually shows
   (first tab active, nothing before it).
   `flex:1 1 auto` + `align-items:stretch` (not the hug-content default)
   lets each stack actually claim the button's own min-width slack, so the
   label/title's own text-align has real effect instead of being a cosmetic
   no-op on a box sized exactly to its content. */
.transform-2030-tabs__pager-next-stack,
.transform-2030-tabs__pager-prev-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp3);
}

.transform-2030-tabs__pager-next-title {
  text-align: left;
}

/* "Next" right-aligns once there's no next group left to show (last tab
   active, boundary state) - left-aligned (the base rule above) whenever
   there's an actual next group. */
.transform-2030-tabs__pager-next-stack:has(.transform-2030-tabs__pager-next-title:empty) .transform-2030-tabs__pager-label {
  text-align: right;
}

/* "Previous" right-aligns once there's an actual previous group to show
   (divider + title both present) - left-aligned only in the bare,
   label-only boundary state (first tab active, nothing before it). */
.transform-2030-tabs__pager-prev-stack:has(.transform-2030-tabs__pager-prev-title:not(:empty)) .transform-2030-tabs__pager-label {
  text-align: right;
}

.transform-2030-tabs__pager-prev-title {
  text-align: right;
}

.transform-2030-tabs__pager-divider {
  width: 100%;
  height: 1px;
  background: var(--clr-gray-300);
}

.transform-2030-tabs__pager-next-title,
.transform-2030-tabs__pager-prev-title {
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  color: var(--clr-gray-dark);
}

/* No group before/after the current one (first/last tab active) - hide the
   divider + empty title rather than showing a dangling rule with nothing
   under it. */
.transform-2030-tabs__pager-next-stack:has(.transform-2030-tabs__pager-next-title:empty) .transform-2030-tabs__pager-divider,
.transform-2030-tabs__pager-next-stack:has(.transform-2030-tabs__pager-next-title:empty) .transform-2030-tabs__pager-next-title,
.transform-2030-tabs__pager-prev-stack:has(.transform-2030-tabs__pager-prev-title:empty) .transform-2030-tabs__pager-divider,
.transform-2030-tabs__pager-prev-stack:has(.transform-2030-tabs__pager-prev-title:empty) .transform-2030-tabs__pager-prev-title {
  display: none;
}

.transform-2030-tabs__heading-chip {
  font-size: 14px;
  background: var(--clr-primary);
  padding: 15px;
  color: var(--clr-white);
  flex-shrink: 0;
  border-radius: 6px;
  font-weight: var(--fw-bold);
}

.transform-2030-tabs__heading-title {
  font-size: var(--fs-24);
  font-weight: var(--fw-bold);
  color: var(--clr-blue);
  line-height: 1.2;
}

.transform-2030-tabs__sub-group-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp9);
  width: 100%;
}

.transform-2030-tabs__group-description {
  font-size: var(--fs-20);
  margin-top: 5px;
}
