/* Published landing pages share text sizes by role. The cascade layer keeps these
   sizes consistent with older per-page styles, including their mobile overrides. */
.wb3-content-landing {
  --wb-banner-title: clamp(1.875rem, calc(1.25rem + 2.8vw), 3.75rem);
  --wb-section-title: clamp(1.5625rem, calc(1.05rem + 2.1vw), 3rem);
  --wb-card-title: clamp(1.25rem, calc(1.08rem + .85vw), 1.75rem);
  --wb-banner-intro: clamp(1rem, calc(.94rem + .21vw), 1.125rem);
}

@layer landing-type {
  .wb3-record-custom :is(.wbf-hero, .ty2-hero, .wb-hire-hero, .wba-hero,
      .wba26-hero, .vq-hero, .wbw-hero) h1 {
    font-size: var(--wb-banner-title) !important;
    line-height: 1.07 !important;
    font-family: var(--wb-reading-font) !important;
    font-weight: 700 !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
  }

  .wb3-record-custom :is(.wbf-hero .wbf-kicker, .ty2-hero .ty2-eyebrow,
      .wb-hire-hero .wb-hire-kicker, .wba-hero .wba-kicker, .wba26-hero .wba26-eyebrow,
      .vq-hero > .vq-shell > .vq-eyebrow, .wbw-hero .wbw-number) {
    font-family: var(--wb-reading-font) !important;
    font-size: .75rem !important;
    line-height: 1.4 !important;
    letter-spacing: .13em !important;
  }

  .wb3-record-custom :is(.wbf-lead, .ty2-lead, .wb-hire-lead, .wba-lead,
      .wba26-lead, .vq-subhead, .wbw-lead) {
    font-size: var(--wb-banner-intro) !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
  }

  .wb3-record-custom :is(.wbf-section, .ty2-page, .wb-hire, .wba-page,
      .wba26, .vq-section, .wbw-section) h2:not(:where(
      dialog *, [role="dialog"] *, form *, #wb-course-info *, .wb-quote-intake *, .vq-start-paths *)) {
    font-size: var(--wb-section-title) !important;
    line-height: 1.12 !important;
    font-family: var(--wb-reading-font) !important;
    font-weight: 700 !important;
    letter-spacing: -.028em !important;
    text-wrap: balance;
  }

  .wb3-record-custom :is(.wbf-card, .wbf-comparison-card, .wbf-case-copy,
      .wb-hire-path__content, .wb-hire-work, .wba-page article, .wba26-method__grid,
      .wba26-course__copy, .vq-start-card, .wbw-card) h3 {
    font-size: var(--wb-card-title) !important;
    line-height: 1.22 !important;
    font-family: var(--wb-reading-font) !important;
    font-weight: 700 !important;
    letter-spacing: -.018em !important;
  }

  .wb3-record-custom :is(.wb-hire-media-card, .wb-hire-editorial__media,
      .wb-hire-shop-photo, .wba-editorial__media, .wba30-slide, .wbw-guide,
      .vq-video, .wbf-case-images) figcaption {
    font-size: .8125rem !important;
    line-height: 1.46 !important;
  }

  .wb3-record-custom :is(.wbf-hero .wbf-button, .ty2-actions .ty2-btn,
      .wb-hire-actions .wb-hire-btn, .wba-actions a, .wba26-actions a,
      .vq-hero-copy .vq-text-cta) {
    font-size: .9375rem !important;
    line-height: 1.3 !important;
  }
}

/* Feedback follows the colors already used by each page. */
.ty2-page { --wb-control-accent: var(--ty2-accent); }
.wbf-page[data-wbf-theme] { --wb-control-accent: var(--wbf-accent); }
#wb-removal-options { --wb-control-accent: var(--wb-ring, #a65e22); }
.wb-hire { --wb-control-accent: var(--hire-brass); }
.wba-page { --wb-control-accent: #688499; }
#wb-academy-training { --wb-control-accent: var(--accent); }
#wb-van-landing { --wb-control-accent: var(--vq-red); }
.wbw-guide { --wb-control-accent: var(--gold); }

/* The outer ring appears only on controls a visitor can actually use. */
.wb3-content-landing :is(.ty2-actions .ty2-btn, .wbf-tab-button,
    .wb-case-photo, .wbf-chapter-nav a, .wb-hire-actions .wb-hire-btn,
    .wba-actions .wba-btn, .vq-hero-copy .vq-text-cta, .wbw-nav a) {
  --wb-control-ring: color-mix(in srgb, var(--wb-control-accent) 80%, currentColor);
}

@media (hover: hover) and (pointer: fine) {
  .wb3-content-landing :is(.ty2-actions .ty2-btn, .wbf-tab-button,
      .wb-case-photo, .wbf-chapter-nav a, .wb-hire-actions .wb-hire-btn,
      .wba-actions .wba-btn, .vq-hero-copy .vq-text-cta, .wbw-nav a):hover {
    outline: 2px solid var(--wb-control-ring);
    outline-offset: 2px;
  }

  #wb-academy-training #schedule .wb-date-box .wba26-date:has(input:enabled:not(:checked)):hover {
    background: #e8eff4;
    box-shadow: inset 3px 0 var(--accent-deep);
  }
}

.wb3-content-landing :is(.ty2-actions .ty2-btn, .wbf-tab-button,
    .wb-case-photo, .wbf-chapter-nav a, .wb-hire-actions .wb-hire-btn,
    .wba-actions .wba-btn, .vq-hero-copy .vq-text-cta, .wbw-nav a):focus-visible {
  outline: 3px solid var(--wb-control-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px white;
}

.wb3-content-landing :is(.ty2-actions .ty2-btn, .wbf-tab-button,
    .wb-case-photo, .wbf-chapter-nav a, .wb-hire-actions .wb-hire-btn,
    .wba-actions .wba-btn, .vq-hero-copy .vq-text-cta, .wbw-nav a):active {
  outline: 2px solid var(--wb-control-ring);
  outline-offset: -2px;
}

/* Hiding the unchecked badge also keeps it out of the radio's accessible name. */
#wb-academy-training #schedule .wba26-date input:not(:checked) ~ .wba26-date__selected {
  visibility: hidden;
}

#wb-academy-training #schedule .wb-date-box .wba26-date:has(input:enabled:not(:checked)):active {
  background: #dce7ef;
  box-shadow: inset 3px 0 var(--accent-deep);
}

/* Text links underline, buttons glow, and film tabs pick up the comparison palette. */
@media (hover: hover) and (pointer: fine) {
  .wb3-content-landing :is(.ty2-actions .ty2-btn, .wb-hire-actions .wb-hire-btn,
      .wba-actions .wba-btn):hover {
    box-shadow: 0 3px 14px color-mix(in srgb, var(--wb-control-accent) 26%, transparent);
  }
  .wb3-content-landing :is(.wbf-chapter-nav a, .vq-hero-copy .vq-text-cta, .wbw-nav a):hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .22em;
  }
  .wb3-content-landing .wbf-tab-button:not(.is-active):hover {
    box-shadow: inset 0 -3px var(--wb-control-accent);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .wb3-content-landing :is(.wbf-chapter-nav a, .wbw-nav a) {
    transition: outline-offset 140ms ease, text-underline-offset 140ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb3-content-landing :is(.ty2-actions .ty2-btn, .wbf-tab-button,
      .wb-case-photo, .wb-case-photo img, .wbf-chapter-nav a,
      .wb-hire-actions .wb-hire-btn, .wba-actions .wba-btn,
      .vq-hero-copy .vq-text-cta, .wbw-nav a, .wb-date-box .wba26-date) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
