/*
 * Inner page adjustments of the homepage layouts (template-parts/flexible/*).
 * Loaded only on flexible pages (inc/components.php), never on the homepage.
 *
 * Figma (approved set 1574:*) measures from glyphs: text nodes use
 * leadingTrim CAP_HEIGHT, eyebrow pills are 10 px of padding around the
 * cap height, gaps run from a baseline to the next cap top. The rules below
 * trim the CSS line boxes the same way (see _tokens.css for the numbers)
 * and anchor the type scale at the 375 px phone frame.
 *
 * - section heads: eyebrow pill, h2, lead paragraph of every block;
 * - .customer-success--intro: wide head + subtitle (1574:15167), no subtitle
 *   on phones (1574:14966);
 * - .what-matters--compact: tighter card (337:16106);
 * - .resources: subtitle, tabs, CTA row (1574:18085);
 * - .cta: card paddings, 1195 px paragraph, equal buttons (1574:18085).
 */

/* .page-sections .*__eyebrow — pill: 10 px around the cap height, 8.5 px rhomb, 5 px gap */
.page-sections :is(
  .business-outcomes__eyebrow,
  .challenges__eyebrow,
  .customer-success__eyebrow,
  .industries-we-serve__eyebrow,
  .resources__eyebrow,
  .what-matters__eyebrow,
  .why-naviona__eyebrow
) {
  gap: 0.3125rem;
  padding: calc(0.625rem - 0.14em) 0.625rem;
  font-size: var(--nv-fs-eyebrow);
  line-height: 1;

  &::before {
    width: 0.53rem;
    height: 0.53rem;
    margin-top: calc(0.5lh - 0.265rem);
    border-radius: 0;
    background: url("../../img/icons/rhomb.svg") center / contain no-repeat;
  }
}

/* .page-sections .*__eyebrow — the phone mocks track 5 %, the desktop ones 10 %
   (1574:13942, 1574:16443, 1574:18085); the challenges pill keeps 10 % */
.page-sections :is(
  .customer-success__eyebrow,
  .resources__eyebrow,
  .what-matters__eyebrow
) {
  letter-spacing: 0.05em;

  /* @media (width >= 48em) .page-sections .*__eyebrow */
  @media (width >= 48em) {
    letter-spacing: 0.1em;
  }
}

/* .page-sections .*__eyebrow div — below 420 px long labels wrap into lines of at most 240 px,
   so the rhomb stays close to the text; short labels keep their own width */
.page-sections :is(
  .bento-grid__eyebrow,
  .capability-grid__eyebrow,
  .challenges__eyebrow,
  .icon-grid__eyebrow,
  .image-panel__eyebrow,
  .journey-steps__eyebrow,
  .link-cards__eyebrow,
  .listing__eyebrow,
  .mosaic__eyebrow,
  .numbered-rows__eyebrow,
  .outcomes-showcase__eyebrow,
  .persona-cards__eyebrow,
  .post-grid__eyebrow,
  .post-slider__eyebrow,
  .resources__eyebrow,
  .what-matters__eyebrow,
  .why-naviona__eyebrow
) > div {
  max-width: 240px;

  /* @media (width >= 26.25em) .page-sections .*__eyebrow div */
  @media (width >= 26.25em) {
    max-width: none;
  }
}

/* .page-sections .resources__eyebrow — 16 → 20 px (phone frame 1574:18085 sets 16) */
.page-sections .resources__eyebrow {
  font-size: clamp(1rem, 0.9111rem + 0.3791vw, 1.25rem);
}

/* .page-sections .*__title — h2 40 → 90 px, line box trimmed to cap / baseline */
.page-sections :is(
  .business-outcomes__title,
  .challenges__title,
  .customer-success__title,
  .industries-we-serve__title,
  .resources__title,
  .what-matters__title,
  .why-naviona__title,
  .cta__heading
) {
  margin-top: -0.14em;
  margin-bottom: -0.14em;
  font-size: var(--nv-fs-h2);
  line-height: 1;

  /* @media (width < 48em) .page-sections .*__title br — the desktop line breaks of the
     editor's heading do not apply to the phone frames (their texts wrap on their own) */
  @media (width < 48em) {
    & br {
      display: none;
    }
  }
}

/* .page-id-123 .resources__title — Business Central only: 1100 px */
.page-id-123 .page-sections .resources__title {
  max-width: 68.75rem;
}

/* .page-id-335 / .page-id-120 .resources__title — Customer Stories and Case Studies only: 1200 px */
:is(.page-id-335, .page-id-120) .page-sections .resources__title {
  max-width: 75rem;
}

/* .page-sections .*__subtitle — lead paragraph 20 → 23 px, 140 % on phones, 160 % from 768 px */
.page-sections :is(
  .customer-success__subtitle,
  .resources__subtitle,
  .why-naviona__subtitle
) {
  color: var(--main-color);
  font-size: var(--nv-fs-lead);
  line-height: 1.4;
  letter-spacing: -0.03em;

  /* @media (width >= 48em) .page-sections .*__subtitle */
  @media (width >= 48em) {
    line-height: 1.6;
  }

  & strong {
    color: var(--nv-blue);
    font-weight: 700;
  }
}

/* .page-sections .*__subtitle > :first-child / :last-child — trim the line box
   (0.34em at 140 %, 0.44em at 160 %) */
.page-sections :is(
  .customer-success__subtitle,
  .resources__subtitle,
  .why-naviona__subtitle
) {
  & > :first-child {
    margin-top: -0.34em;
  }

  & > :last-child {
    margin-bottom: -0.34em;
  }

  /* @media (width >= 48em) .page-sections .*__subtitle > :first-child */
  @media (width >= 48em) {
    & > :first-child {
      margin-top: -0.44em;
    }

    & > :last-child {
      margin-bottom: -0.44em;
    }
  }
}

/* .page-sections :is(.challenges, .customer-success, .resources) — 50 → 100 px
   (.why-naviona: why-naviona-adopt.css) */
.page-sections :is(.challenges, .customer-success, .resources) {
  padding-top: var(--nv-section-y);
  padding-bottom: var(--nv-section-y);
}

/* .page-sections .button__light-transparent, .resources__cta-button — 74 px / 20 px with
   30 px sides on inner pages (Figma Frame 53), 64 px / 16 px on phones */
.page-sections :is(.button__light-transparent, .resources__cta-button) {
  & span {
    font-size: 1rem;
  }

  /* @media (width >= 48em) .page-sections :is(.button__light-transparent, .resources__cta-button) */
  @media (width >= 48em) {
    height: 4.625rem;
    padding: 1.875rem;

    & span {
      font-size: 1.25rem;
    }
  }
}

/* .customer-success--intro — head runs wider, subtitle under the heading */
.customer-success--intro .customer-success__top {
  max-width: none;
  margin-bottom: clamp(2.5rem, 1.7441rem + 2.3697vw, 4.6875rem);

  /* @media (width >= 48em) .customer-success--intro .customer-success__top — 40 → 75 px from the
     subtitle's baseline to the slider (1574:18317, 1574:17379); its trim leaves 1 px */
  @media (width >= 48em) {
    margin-bottom: clamp(2.4375rem, 1.66rem + 3.3175vw, 4.625rem);
  }
}

/* .page-sections .customer-success__stats-label — 16 → 20 px (1574:16443 / 1574:18085); the larger
   text lifts its baseline above the figure's, the negative margin drops it back */
.page-sections .customer-success__stats-label {
  margin-bottom: calc((1rem - 1em) / 2);
  font-size: clamp(1rem, 0.9111rem + 0.3791vw, 1.25rem);
}

/* .customer-success__subtitle — 120 % on phones (plastics M 1574:16443), 160 % from 768 px */
.page-sections .customer-success__subtitle {
  max-width: 57.125rem;
  margin: clamp(1.875rem, 1.4306rem + 1.8957vw, 3.125rem) auto 0;
  line-height: 1.2;

  & > :first-child {
    margin-top: -0.24em;
  }

  & > :last-child {
    margin-bottom: -0.24em;
  }

  /* .customer-success__subtitle > :last-child — bold blue (plastics 1574:16970 / 1574:16443) */
  & > :last-child:not(:first-child) {
    color: var(--nv-blue);
    font-weight: 700;
  }

  /* @media (width >= 48em) .customer-success__subtitle */
  @media (width >= 48em) {
    line-height: 1.6;

    & > :first-child {
      margin-top: -0.44em;
    }

    & > :last-child {
      margin-bottom: -0.44em;
    }

    /* .customer-success__subtitle > :first-child — 540 px, centred (two-paragraph lead, plastics) */
    & > :first-child:not(:last-child) {
      max-width: 33.75rem;
      margin-inline: auto;
    }

    /* .customer-success__subtitle > :last-child — 10 px closer to the paragraph above */
    & > :last-child:not(:first-child) {
      margin-top: calc(clamp(1.25rem, 0.5836rem + 2.8436vw, 3.125rem) - 0.625rem);
    }
  }

  & p + p {
    margin-top: clamp(1.25rem, 0.5836rem + 2.8436vw, 3.125rem);
  }
}

/* .postid-77 .what-matters--compact — Plastics only: 50 → 137 px under the card, Figma 1574:16970 keeps
   37 px more before "Why do Plastics Manufacturers…" on desktop (matched visually 2026-10-14) */
.postid-77 .what-matters--compact {
  padding-bottom: clamp(3.125rem, 1.2104rem + 8.169vw, 8.5625rem);
}

/* .what-matters--compact — the inner page card (Figma Frame 33 / Frame 32): head 1310 px,
   card 50 → 100 px with 20 → 40 px sides, tabs → slide 40 → 60 px, slide paddings
   40 20 40 20 → 80 80 50 80, 40 px between the slide blocks, benefit rows 34 → 40 px */
.what-matters--compact {
  /* .what-matters--compact .what-matters__head — 40 → 75 px from the heading's baseline to the card
     (the heading's -0.14em bottom margin collapses into this one) */
  & .what-matters__head {
    max-width: 81.875rem;
    margin-inline: auto;
    margin-bottom: clamp(2.5rem, 1.6685rem + 3.3175vw, 4.6875rem);
  }

  /* .what-matters--compact .what-matters__eyebrow — 30 → 50 px to the heading's cap height */
  & .what-matters__eyebrow {
    margin-bottom: clamp(1.875rem, 1.4306rem + 1.8957vw, 3.125rem);
  }

  /* .what-matters--compact .what-matters__card — Figma measures the 50 → 100 / 20 → 40 px paddings
     from the outer edge, the 2 px border included */
  & .what-matters__card {
    gap: clamp(2.5rem, 2.0557rem + 1.8957vw, 3.75rem);
    padding: calc(var(--nv-section-y) - 0.125rem) calc(clamp(1.25rem, 0.8057rem + 1.8957vw, 2.5rem) - 0.125rem);

    /* @media (width < 64.0625em) .what-matters--compact .what-matters__card — edge to edge (Figma M x0) */
    @media (width < 64.0625em) {
      width: calc(100% + 2.5rem);
      margin: 0 -1.25rem;
    }
  }

  /* .what-matters--compact .what-matters__tabs — shown on phones too (Figma M Frame 51), scrolls
     under the card edges without a scrollbar */
  & .what-matters__tabs {
    display: flex;
    gap: clamp(0.625rem, 0.4028rem + 0.9479vw, 1.25rem);
    padding-bottom: 0;
    scrollbar-width: none;

    &::-webkit-scrollbar {
      display: none;
    }

    /* @media (width < 48em) .what-matters--compact .what-matters__tabs */
    @media (width < 48em) {
      justify-content: flex-start;
      width: calc(100% + 2.5rem);
      margin-inline: -1.25rem;
      padding-inline: 1.25rem;
    }
  }

  /* .what-matters--compact .what-matters__pagination — the tabs replace the dots */
  & .what-matters__pagination {
    display: none;
  }

  /* .what-matters--compact .what-matters__tab — 52 → 54 px pill, 20 px around the cap height */
  & .what-matters__tab {
    padding: calc(1.25rem - 0.14em) 1.875rem;
    font-size: clamp(1rem, 0.9111rem + 0.3792vw, 1.25rem);
  }

  /* .what-matters--compact .what-matters__tab--active — 72 → 77 px, 16 → 24 px */
  & .what-matters__tab--active {
    padding: calc(1.875rem - 0.14em) 1.875rem;
    font-size: clamp(1rem, 0.8225rem + 0.7583vw, 1.5rem);
  }

  /* .what-matters--compact .what-matters__slider — full card width on phones (Figma M Frame 32) */
  & .what-matters__slider {
    /* @media (width < 48em) .what-matters--compact .what-matters__slider */
    @media (width < 48em) {
      max-width: 100%;
    }
  }

  /* .what-matters--compact .what-matters__slide-text — 40 → 80 px top, 40 → 60 px under the benefits */
  & .what-matters__slide-text {
    padding-top: clamp(2.5rem, 1.6113rem + 3.7915vw, 5rem);
    padding-bottom: clamp(2.5rem, 2.0557rem + 1.8957vw, 3.75rem);
    padding-inline: clamp(1.25rem, -0.0831rem + 5.6872vw, 5rem);
  }

  /* .what-matters--compact .what-matters__slide-title — 40 → 50 px, cap at the padding edge,
     40 px from the baseline to the paragraph; left-aligned on phones */
  & .what-matters__slide-title {
    margin-top: -0.14em;
    padding-bottom: calc(2.5rem - 0.14em);

    & .what-matters__slide-heading {
      font-size: clamp(2.5rem, 2.278rem + 0.9479vw, 3.125rem);
    }

    /* @media (width < 48em) .what-matters--compact .what-matters__slide-title */
    @media (width < 48em) {
      &,
      & .what-matters__slide-heading {
        text-align: left;
      }
    }
  }

  /* .what-matters--compact .what-matters__slide-desc — 20 px, 140 % → 160 %, 40 px to the divider */
  & .what-matters__slide-desc {
    max-width: 45.375rem;
    margin-top: -0.34em;
    margin-bottom: -0.34em;
    padding-bottom: 2.5rem;
    font-size: 1.25rem;

    /* @media (width < 48em) .what-matters--compact .what-matters__slide-desc */
    @media (width < 48em) {
      text-align: left;
    }

    /* @media (width >= 48em) .what-matters--compact .what-matters__slide-desc */
    @media (width >= 48em) {
      margin-top: -0.44em;
      margin-bottom: -0.44em;
    }
  }

  /* .what-matters--compact .what-matters__divider — 41 → 27 px to the benefit icons (Figma M lays the
     list out 40 px under the rule; on D the icons are placed by hand 27 px under it) */
  & .what-matters__divider {
    margin-bottom: clamp(1.6875rem, 2.8735rem - 1.327vw, 2.5625rem);
  }

  /* .what-matters--compact .what-matters__list — rows 10 → 12 px apart, icon 34 → 40 px, 10 → 20 px to the 20 → 24 px label */
  & .what-matters__list {
    gap: clamp(0.625rem, 0.5807rem + 0.1896vw, 0.75rem);

    & li {
      gap: clamp(0.625rem, 0.4028rem + 0.9479vw, 1.25rem);
      font-size: clamp(1.25rem, 1.1611rem + 0.3792vw, 1.5rem);
    }

    & li::before {
      flex-basis: clamp(2.125rem, 1.992rem + 0.5687vw, 2.5rem);
      width: clamp(2.125rem, 1.992rem + 0.5687vw, 2.5rem);
      height: clamp(2.125rem, 1.992rem + 0.5687vw, 2.5rem);
    }
  }

  /* .what-matters--compact .what-matters__cta — 40 → 80 px under the button */
  & .what-matters__cta {
    margin-bottom: clamp(2.5rem, 1.6113rem + 3.7915vw, 5rem);
  }
}

/* .what-matters--compact on phase 2 industries (Figma Specialty D 1:11494 / M 1:16732, measured on the
   screenshots 2026-11-13): panel light at the top, slide 50 px around the content on desktop, 41 px from
   the rule to the benefits, rows 10 px apart, 40 px from the benefits to the button. Plastics keeps its frame. */
:is(.postid-78, .postid-79, .postid-80, .postid-81) .what-matters--compact {
  /* :is(…) .what-matters--compact .what-matters__card */
  & .what-matters__card {
    background-image: linear-gradient(to bottom, #f6f7f9 0%, #dce5ee 100%);
  }

  /* :is(…) .what-matters--compact .what-matters__slide-text — 40 → 50 px top */
  & .what-matters__slide-text {
    padding-top: clamp(2.5rem, 2.2778rem + 0.9479vw, 3.125rem);
    padding-bottom: 2.5rem;
  }

  /* :is(…) .what-matters--compact .what-matters__divider */
  & .what-matters__divider {
    margin-bottom: 2.5625rem;
  }

  /* :is(…) .what-matters--compact .what-matters__list — on phones the Figma labels run 2 px past the
     slide padding ("Reduce manual reconciliation" stays on one line at 375 px) */
  & .what-matters__list {
    width: calc(100% + 0.125rem);
    gap: 0.625rem;

    /* @media (width >= 48em) :is(…) .what-matters--compact .what-matters__list */
    @media (width >= 48em) {
      width: 100%;
    }
  }

  /* :is(…) .what-matters--compact .what-matters__cta — 40 → 50 px under the button */
  & .what-matters__cta {
    margin-bottom: clamp(2.5rem, 2.2778rem + 0.9479vw, 3.125rem);
  }
}

/* .what-matters__subtitle — optional text under the heading, 926 px, 20 → 23 px at 120 → 140 %,
   40 → 50 px under the heading (Figma phase 2 Specialty D 510:68107 / M 510:73345) */
.what-matters__subtitle {
  max-width: 57.875rem;
  margin-top: calc(clamp(2.5rem, 2.2778rem + 0.9479vw, 3.125rem) - 0.24em);
  margin-inline: auto;
  margin-bottom: -0.24em;
  color: var(--nv-navy);
  font-size: clamp(1.25rem, 1.1833rem + 0.2844vw, 1.4375rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;

  /* @media (width >= 48em) .what-matters__subtitle */
  @media (width >= 48em) {
    margin-top: calc(clamp(2.5rem, 2.2778rem + 0.9479vw, 3.125rem) - 0.34em);
    margin-bottom: -0.34em;
    line-height: 1.4;
  }

  & > * {
    margin: 0;
  }

  & > * + * {
    margin-top: 1.25rem;
  }
}

/* .what-matters__list--single .what-matters__item — one benefit per row on every width
   (phase 2 industries; the default list is two columns from 768 px) */
.what-matters__list--single .what-matters__item {
  flex: 1 1 100%;
}

/* .resources__subtitle — 30 → 50 px under the heading, before the tabs (Figma 1046 px). The head is a block:
   the heading's negative bottom margin and the paragraph's negative top margin would collapse
   into one (only the larger survives), so the paragraph trim goes on this margin instead. */
.resources__subtitle {
  max-width: 65.375rem;
  margin-top: calc(clamp(1.875rem, 1.4306rem + 1.8957vw, 3.125rem) - 0.34em);

  /* @media (width >= 48em) .resources__subtitle */
  @media (width >= 48em) {
    margin-top: calc(clamp(1.875rem, 1.4306rem + 1.8957vw, 3.125rem) - 0.44em);
  }
}

/* .page-sections .resources__subtitle > :first-child */
.page-sections .resources__subtitle > :first-child {
  margin-top: 0;
}

/* .page-sections .resources__tab — 52 → 54 px pill, 20 → 15 px sides, no stroke (Figma 337:17405, Vlad 2026-10-17);
   active 72 → 77 px, 30 → 20 px sides, the same navy → blue gradient as the homepage and the
   listing tabs (Matt 1.5, 2026-10-23; Vlad's solid blue of 2026-10-17 dropped) */
.page-sections .resources__tab {
  padding: calc(1.25rem - 0.14em) clamp(0.9375rem, 1.3611rem - 0.4739vw, 1.25rem);
}

/* .page-sections .resources__tab--active */
.page-sections .resources__tab--active {
  border: 0;
  padding: calc(1.875rem - 0.14em) clamp(1.25rem, 2.097rem - 0.9479vw, 1.875rem);
  background: linear-gradient(90deg, var(--nv-navy) 0%, var(--nv-blue) 100%);
}

/* .page-sections .cta — the card starts where the previous section ends */
.page-sections .cta {
  padding-top: 0;
  padding-bottom: var(--nv-section-y);
}

/* .page-sections .cta__card — 40 → 120 px vertical padding; sides come from cta-card.css */
.page-sections .cta__card {
  padding-block: clamp(2.5rem, 0.7227rem + 7.5829vw, 7.5rem);
}

/* .page-id-114/335/120/115/121/423 .cta__card — listings only (Pavlo, 2026-10-14): 70 → 120 px on top,
   as their phone frames (Customer Success, Customer Stories, Case Studies, Resources, Articles & Insights,
   Webinars); the bottom stays 40 → 120 */
:is(.page-id-114, .page-id-335, .page-id-120, .page-id-115, .page-id-121, .page-id-423) .page-sections .cta__card {
  padding-top: clamp(4.375rem, 3.2642rem + 4.7393vw, 7.5rem);
}

/* .page-id-115/121 .cta__actions — Resources and Articles & Insights only (Pavlo, 2026-10-14): buttons 10 px
   apart on phones, as their phone frames; 20 px from 768 px as the bundle */
:is(.page-id-115, .page-id-121) .page-sections .cta__actions {
  gap: 0.625rem;

  /* @media (width >= 48em) :is(.page-id-115, .page-id-121) .page-sections .cta__actions */
  @media (width >= 48em) {
    gap: 1.25rem;
  }
}

/* .page-sections .cta__heading — the editor's line breaks run the full 1400 px card; 30 → 60 px to the paragraph */
.page-sections .cta__heading {
  max-width: none;
  padding-bottom: clamp(1.875rem, 1.2086rem + 2.8436vw, 3.75rem);
}

/* .page-sections .cta__subtitle — 1195 px, 20 → 23 px at the font's normal leading, 50 → 100 px to
   the buttons. The phone frames keep the paragraph's own line box (no trims), the desktop ones trim
   0.25em. index.css caps the width with !important. */
.page-sections .cta__subtitle {
  max-width: 74.6875rem !important;
  font-size: var(--nv-fs-lead);
  line-height: normal;
  padding-bottom: 3.125rem;

  /* @media (width >= 48em) .page-sections .cta__subtitle */
  @media (width >= 48em) {
    margin-top: -0.25em;
    padding-bottom: calc(clamp(3.125rem, 2.0142rem + 4.7393vw, 6.25rem) - 0.25em);
  }
}

/* .page-id-423 .cta__subtitle — Webinars only (Pavlo, 2026-10-14): 747 px; !important as above.
   Phones: 93 px to the button, as the phone frame shows it (the desktop value from 768 px as above) */
.page-id-423 .page-sections .cta__subtitle {
  max-width: 46.6875rem !important;
  padding-bottom: 5.8125rem;

  /* @media (width >= 48em) .page-id-423 .page-sections .cta__subtitle */
  @media (width >= 48em) {
    padding-bottom: calc(clamp(3.125rem, 2.0142rem + 4.7393vw, 6.25rem) - 0.25em);
  }
}

/* .single-speaker .cta__subtitle — speaker pages: 747 px, the Webinars CTA in Figma 1795:32184 */
.single-speaker .page-sections .cta__subtitle {
  max-width: 46.6875rem !important;
}

/* .page-id-115 .cta__subtitle — Resources hub only (Pavlo, 2026-10-17): 843 px, so "schedule a
   Manufacturing Strategy Session." is the second line; !important as above */
.page-id-115 .page-sections .cta__subtitle {
  max-width: 52.6875rem !important;
}

/* .page-id-423 .cta__actions .button — Webinars only (Pavlo, 2026-10-14): the long label in two lines on
   phones as in the phone frame — 7 px sides, label left, arrow right; centred again from 768 px */
.page-id-423 .page-sections .cta__actions .button {
  justify-content: space-between;
  padding-inline: 0.4375rem;

  /* @media (width >= 48em) .page-id-423 .page-sections .cta__actions .button */
  @media (width >= 48em) {
    justify-content: center;
    padding-inline: 1.875rem;
  }
}

/* .page-id-114/120 .cta__heading — Customer Success and Case Studies only (Pavlo, 2026-10-14): 46 → 60 px
   to the paragraph, the phone frames show 16 px more than the other pages */
:is(.page-id-114, .page-id-120) .page-sections .cta__heading {
  padding-bottom: clamp(2.875rem, 2.5639rem + 1.327vw, 3.75rem);
}

/* .page-sections .cta__actions — a 293 px column of centred buttons on phones (Figma Frame 6),
   two 343 px buttons from 768 px */
.page-sections .cta__actions {
  width: 100%;
  max-width: 18.3125rem;

  & .button {
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding-inline: 1.875rem;
  }

  /* .page-sections .cta__actions .button__icon — the arrow keeps its 24 px when a long label wraps */
  & .button__icon {
    flex-shrink: 0;
  }

  /* @media (width >= 48em) .page-sections .cta__actions */
  @media (width >= 48em) {
    width: auto;
    max-width: none;

    & .button {
      width: auto;
      min-width: 21.4375rem;
    }
  }
}

/* Phase 2 industry pages (Specialty Metals, Chemicals, Process, Industrial) — Figma D 510:… quote frame.
   The sprint 2 pages and Plastics keep the panel from index.css. */
:is(.postid-78, .postid-79, .postid-80, .postid-81) .customer-success__panel {
  /* @media (width >= 64.0625em) :is(.postid-78 …) .customer-success__panel — 345 × 349 px, 100 px from
     the slide's right edge at 1520 px (6.58vw, capped) and 60 px from its bottom (design 1014/9760 in the 1398 px slide) */
  @media (width >= 64.0625em) {
    right: min(6.58vw, 6.25rem);
    bottom: 3.75rem;
    max-width: 21.5625rem;
    padding-bottom: 1.875rem;
  }
}

/* :is(.postid-78 …) .customer-success__stats — the figures row ends 30 px before the panel, as in the
   Chemicals frame 18:48635 (Vlad 2026-11-18: "Founded in Atlanta" ran under the Momar panel at 1025–1440) */
:is(.postid-78, .postid-79, .postid-80, .postid-81) .customer-success__stats {
  /* @media (width >= 64.0625em) :is(.postid-78 …) .customer-success__stats — panel inset + width + 30 px */
  @media (width >= 64.0625em) {
    padding-right: calc(min(6.58vw, 6.25rem) + 21.5625rem + 1.875rem);
  }
}

/* :is(.postid-78 …) .customer-success__stats-item — 1025–1429 px: two wide figures ("15,000", "150k+")
   do not fit beside the panel with their labels, so the label goes under its figure (no frame for this range) */
:is(.postid-78, .postid-79, .postid-80, .postid-81) .customer-success__stats-item {
  /* @media (64.0625em <= width < 89.375em) :is(.postid-78 …) .customer-success__stats-item */
  @media (64.0625em <= width < 89.375em) {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* :is(.postid-78 …) .customer-success__stats-label — a long label wraps into two even lines, as the
   two-line labels of Figma 18:49079 ("dollars / in revenue"); a short one stays on one line */
:is(.postid-78, .postid-79, .postid-80, .postid-81) .customer-success__stats-label {
  max-width: 10em;
  text-wrap: balance;
}

/* :is(.postid-78 …) .customer-success__subtitle — phase 2 industry pages: 140 % from 768 px (Figma 1:11494
   "Every manufacturing business…", 23 px / 140 %), title → lead 9 px and lead → blue line 10 px tighter
   than Plastics (ink gaps 32 and 45 px on the design screenshot, 2026-11-13) */
:is(.postid-78, .postid-79, .postid-80, .postid-81) .page-sections .customer-success__subtitle {
  /* @media (width < 48em) :is(.postid-78 …) .customer-success__subtitle br — the desktop line break
     ("…is different,⏎but…") is not in the phone frames (Figma 1:17073) */
  @media (width < 48em) {
    & br {
      display: none;
    }
  }

  /* @media (width >= 48em) :is(.postid-78 …) .customer-success__subtitle */
  @media (width >= 48em) {
    margin-top: calc(clamp(1.875rem, 1.4306rem + 1.8957vw, 3.125rem) - 0.5625rem);
    line-height: 1.4;

    & > :first-child {
      margin-top: -0.34em;
    }

    /* :is(.postid-78 …) .customer-success__subtitle > :first-child — the lead spans the 914 px box
       (Plastics keeps 540 px) */
    & > :first-child:not(:last-child) {
      max-width: none;
    }

    & > :last-child {
      margin-bottom: -0.34em;
    }

    /* :is(.postid-78 …) .customer-success__subtitle > :last-child — 34 px between the line boxes */
    & > :last-child:not(:first-child) {
      margin-top: calc(clamp(1.25rem, 0.5836rem + 2.8436vw, 3.125rem) - 0.975rem);
    }
  }
}

/* :is(phase 2 industry pages) .customer-success__cta span — phones: "Read Our Customer" / "Success Stories"
   as in the Figma M frames (manual break); 12em sits between 10.61em and 15.35em (+ "Success").
   The span is the label from naviona_render_link(), not editor content */
:is(.postid-78, .postid-79, .postid-80, .postid-81) .customer-success__cta .button span {
  max-width: 12em;

  /* @media (width >= 48em) :is(phase 2 industry pages) .customer-success__cta span */
  @media (width >= 48em) {
    max-width: none;
  }
}

/* :is(phase 2 pages) .resources__cta-button span — phones: "Take the Manufacturing" / "ERP Readiness Assessment"
   as in the Figma M frames of the industry and Solutions pages; 14.8em sits between 14.23em and 15.38em (+ "ERP") */
:is(.postid-78, .postid-79, .postid-80, .postid-81, .page-id-124, .page-id-125, .page-id-126, .page-id-127, .page-id-122, .page-slug-frequently-asked-questions) .resources__cta-button span {
  max-width: 14.8em;

  /* @media (width >= 48em) :is(phase 2 pages) .resources__cta-button span */
  @media (width >= 48em) {
    max-width: none;
  }
}

/* Phase 2 dividers — the 1 px rgba(26, 121, 191, 0.1) rule of the frames, drawn as the top edge of the section below it */

/* :is(Implementation, Support, Business Applications) .hero--inner + section — under the hero on desktop
   (Figma 1:9317, 1:8585, 1:8243; Upgrades has none) */
:is(.page-id-124, .page-id-126, .page-id-127) .hero--inner + section {
  /* @media (width >= 48em) :is(…) .hero--inner + section */
  @media (width >= 48em) {
    border-top: 0.0625rem solid rgba(26, 121, 191, 0.1);
  }
}

/* .image-panel--large ending with the second text + section — under the panel on every width
   (Figma D 1:8283, 1:8625, 1:8905; M 1:14304, 1:14598, 1:14903) */
.image-panel--large:has(.image-panel__container > .image-panel__second:last-child) + section {
  border-top: 0.0625rem solid rgba(26, 121, 191, 0.1);
}

/* :is(industry pages) .customer-success + .resources — above Additional Resources on desktop
   (Figma 1:12016, 1:11363, 1:10702, 1:10040) */
:is(.postid-78, .postid-79, .postid-80, .postid-81) .customer-success + .resources {
  /* @media (width >= 48em) :is(industry pages) .customer-success + .resources */
  @media (width >= 48em) {
    border-top: 0.0625rem solid rgba(26, 121, 191, 0.1);
  }
}

/* FAQ form / results + Additional Resources, Strategy
   "Is this session right for you?" + "What will we discuss?" — desktop (Figma 18:43696, 18:43480, 18:42701; the About FAQ line is in faq.css) */
.page-slug-frequently-asked-questions :is(.form-card, .faq-library:not(.faq-library--empty)) + .resources,
.page-id-119 .checklist-tiles + .discuss-panels {
  /* @media (width >= 48em) … */
  @media (width >= 48em) {
    border-top: 0.0625rem solid rgba(26, 121, 191, 0.1);
  }
}

/* .page-id-126 .page-sections .cta__heading — Support: the desktop frame breaks "from your business" /
   "central environment" (the phone frame runs it on); between 10.54 and 11.08 em */
.page-id-126 .page-sections .cta__heading {
  /* @media (width >= 48em) .page-id-126 .page-sections .cta__heading */
  @media (width >= 48em) {
    max-width: 10.6em;
  }
}

/* .page-id-127 .page-sections .cta__heading — Business Apps on phones: the phone frame breaks
   "Ready to / connect your / systems around…"; 7em sits between "systems around" (6.7 em) and
   "Ready to connect" (7.34 em) */
.page-id-127 .page-sections .cta__heading {
  /* @media (width < 48em) .page-id-127 .page-sections .cta__heading */
  @media (width < 48em) {
    max-width: 7em;
  }
}

/* :is(phase 2 pages) .page-sections .cta__heading br — the phase 2 phone frames keep the editor's CTA line breaks
   (Process "costing and⏎operational", Support "value⏎from", Assessment "understand⏎what"), unlike sprint 2 */
:is(.postid-78, .postid-79, .postid-80, .postid-81, .page-id-124, .page-id-125, .page-id-126, .page-id-127, .page-slug-erp-readiness-assessment, .page-id-122, .page-slug-frequently-asked-questions) .page-sections .cta__heading br {
  display: inline;
}

/* :is(phase 2 pages) .page-sections .*__eyebrow div — the phase 2 phone frames let long labels fill the
   row (302 px box: Support / Business "Post-Go-Live Challenge…" in 2 lines, Business "Business
   Application Opportunities" in 1), so the sprint 2 240 px wrap limit is lifted there */
:is(.postid-78, .postid-79, .postid-80, .postid-81, .page-id-124, .page-id-125, .page-id-126, .page-id-127, .page-slug-erp-readiness-assessment, .page-id-116, .page-id-117, .page-id-119, .page-id-122, .page-slug-frequently-asked-questions) .page-sections :is(
  .bento-grid__eyebrow,
  .capability-grid__eyebrow,
  .challenges__eyebrow,
  .icon-grid__eyebrow,
  .image-panel__eyebrow,
  .journey-steps__eyebrow,
  .link-cards__eyebrow,
  .listing__eyebrow,
  .mosaic__eyebrow,
  .numbered-rows__eyebrow,
  .outcomes-showcase__eyebrow,
  .persona-cards__eyebrow,
  .post-grid__eyebrow,
  .post-slider__eyebrow,
  .resources__eyebrow,
  .what-matters__eyebrow,
  .why-naviona__eyebrow
) > div {
  max-width: none;
}

/* .page-id-127 .challenges__eyebrow div — Business Apps: "Business Application Opportunities" is wider
   than a phone row (the phone frame lets it overflow), so below 420 px it wraps at the first line's
   width (13.64 em) and the rhomb stays next to the text, as the other centred labels */
.page-id-127 .page-sections .challenges__eyebrow > div {
  /* @media (width < 26.25em) .page-id-127 .challenges__eyebrow div */
  @media (width < 26.25em) {
    max-width: 13.75em;
  }
}
