/**
 * GetCDL visual repair — responsive safeguards for the existing industrial
 * workwear design. The approved imagery remains the visual focal point.
 */
html {
  overflow-x: clip;
  background: #0f172a;
}

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

body {
  min-width: 320px;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  min-width: 0;
}

[style*="background-image"] {
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 767px) {
  h1 {
    text-wrap: balance;
  }

  p {
    overflow-wrap: anywhere;
  }

  form,
  form > * {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 * Revision pass: correct the three sections flagged in user screenshots while
 * preserving GetCDL's industrial orange/charcoal design language.
 */

/* Landing page — authentic Google Business Profile group photo and balance. */
[data-loc="client/src/pages/LandingPage.tsx:637"] {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 !important;
}

#cdl-why-grid {
  max-width: 1240px !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr) !important;
  align-items: center !important;
  gap: clamp(2.5rem, 5vw, 5rem) !important;
  padding: 0 2rem !important;
}

[data-loc="client/src/pages/LandingPage.tsx:640"] {
  padding: 0 !important;
  justify-content: flex-start !important;
}

[data-loc="client/src/pages/LandingPage.tsx:646"] {
  width: 100% !important;
  max-width: 600px !important;
}

[data-loc="client/src/pages/LandingPage.tsx:660"] {
  width: 100% !important;
  max-width: 420px !important;
}

[data-loc="client/src/pages/LandingPage.tsx:675"] {
  display: none !important;
}

[data-loc="client/src/pages/LandingPage.tsx:676"] {
  margin-top: 0.35rem !important;
}

#cdl-why-photo {
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

#cdl-why-photo > div {
  width: 100% !important;
  max-width: 600px !important;
  aspect-ratio: 5 / 4 !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.18) !important;
}

#cdl-why-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

[data-loc="client/src/pages/LandingPage.tsx:682"],
[data-loc="client/src/pages/LandingPage.tsx:683"] {
  display: none !important;
}

/* Ancora Training Partner — contain the logo and restore editorial hierarchy. */
[data-loc="client/src/pages/AncoraTrainingPartner.tsx:255"] {
  padding: clamp(3.75rem, 6vw, 5.5rem) 0 !important;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:257"] {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr) !important;
  gap: clamp(3rem, 6vw, 6rem) !important;
  align-items: center !important;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:258"] {
  max-width: 760px !important;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:260"] {
  display: none !important;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:261"] {
  display: none !important;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:275"] {
  font-size: clamp(2.65rem, 4.6vw, 4.35rem) !important;
  line-height: 1.02 !important;
  max-width: 760px !important;
  margin-bottom: 1rem !important;
  text-wrap: balance;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:282"] {
  margin-bottom: 1.35rem !important;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:283"] {
  max-width: 680px !important;
  margin-bottom: 2rem !important;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:286"] {
  flex-wrap: wrap !important;
  gap: 0.85rem !important;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:307"] {
  position: relative !important;
  align-self: center !important;
  padding: clamp(1.75rem, 3vw, 2.5rem) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2) !important;
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:307"]::before {
  content: "";
  display: block;
  width: min(260px, 78%);
  height: 72px;
  margin: 0 auto 2rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: #fff url("/amazon-career-choice-logo.png") center / contain no-repeat;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

[data-loc="client/src/pages/AncoraTrainingPartner.tsx:308"] {
  gap: 2rem 1.5rem !important;
}

/* About Us — tighten the story composition and reconnect its metrics. */
[data-loc="client/src/pages/About.tsx:57"] {
  padding: clamp(3.5rem, 5vw, 5rem) 0 !important;
}

[data-loc="client/src/pages/About.tsx:58"] {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr) !important;
  gap: clamp(2.5rem, 5vw, 5rem) !important;
  align-items: start !important;
}

[data-loc="client/src/pages/About.tsx:59"] {
  max-width: 700px !important;
}

[data-loc="client/src/pages/About.tsx:67"],
[data-loc="client/src/pages/About.tsx:70"],
[data-loc="client/src/pages/About.tsx:73"] {
  font-size: 1rem !important;
  line-height: 1.72 !important;
  margin-bottom: 1.15rem !important;
}

[data-loc="client/src/pages/About.tsx:76"] {
  gap: 0.8rem !important;
  margin-top: 1.5rem !important;
}

[data-loc="client/src/pages/About.tsx:83"] {
  padding: 1.15rem 0.9rem !important;
  border: 1px solid #e5e7eb !important;
}

[data-loc="client/src/pages/About.tsx:95"] {
  align-self: start !important;
}

[data-loc="client/src/pages/About.tsx:96"] {
  width: 100% !important;
  max-height: none !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 14px !important;
}

/* Keep the chat control available while removing its obstructive speech prompt. */
#lc_text-widget--prompt,
.lc_text-widget--prompt,
[id*="lc_text-widget--prompt"] {
  display: none !important;
}

@media (max-width: 1023px) {
  #cdl-why-grid,
  [data-loc="client/src/pages/AncoraTrainingPartner.tsx:257"],
  [data-loc="client/src/pages/About.tsx:58"] {
    grid-template-columns: 1fr !important;
  }

  #cdl-why-grid {
    gap: 2.5rem !important;
  }

  [data-loc="client/src/pages/AncoraTrainingPartner.tsx:257"] {
    gap: 2.75rem !important;
  }

  [data-loc="client/src/pages/About.tsx:58"] {
    gap: 2.25rem !important;
  }

  [data-loc="client/src/pages/About.tsx:95"] {
    max-width: 760px !important;
  }
}

@media (max-width: 639px) {
  [data-loc="client/src/pages/LandingPage.tsx:637"] {
    padding: 3rem 0 !important;
  }

  #cdl-why-grid {
    padding: 0 1.25rem !important;
    gap: 2rem !important;
  }

  [data-loc="client/src/pages/LandingPage.tsx:646"] {
    padding: 0.9rem 1rem !important;
    align-items: center !important;
  }

  [data-loc="client/src/pages/LandingPage.tsx:647"] {
    font-size: 2.15rem !important;
  }

  [data-loc="client/src/pages/LandingPage.tsx:660"] {
    max-width: none !important;
  }

  [data-loc="client/src/pages/LandingPage.tsx:676"] {
    width: 100% !important;
    justify-content: center !important;
  }

  #cdl-why-photo > div {
    aspect-ratio: 4 / 3 !important;
    border-radius: 12px !important;
  }

  [data-loc="client/src/pages/AncoraTrainingPartner.tsx:255"] {
    padding: 3rem 0 !important;
  }

  [data-loc="client/src/pages/AncoraTrainingPartner.tsx:275"] {
    font-size: clamp(2.35rem, 12vw, 3.25rem) !important;
  }

  [data-loc="client/src/pages/AncoraTrainingPartner.tsx:286"] > * {
    width: 100% !important;
  }

  [data-loc="client/src/pages/AncoraTrainingPartner.tsx:307"] {
    padding: 1.4rem 1rem !important;
  }

  [data-loc="client/src/pages/AncoraTrainingPartner.tsx:307"]::before {
    width: min(220px, 82%);
    height: 62px;
    margin-bottom: 1.5rem;
  }

  [data-loc="client/src/pages/AncoraTrainingPartner.tsx:308"] {
    gap: 1.35rem 0.75rem !important;
  }

  [data-loc="client/src/pages/About.tsx:57"] {
    padding: 3rem 0 !important;
  }

  [data-loc="client/src/pages/About.tsx:60"] {
    font-size: 2.25rem !important;
  }

  [data-loc="client/src/pages/About.tsx:76"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [data-loc="client/src/pages/About.tsx:96"] {
    aspect-ratio: 1 / 1 !important;
  }
}
