/*
 * Google Ads landing pages (owner-approved 2026-10-26). Loaded only on the
 * pages listed in data/ads-landing-overrides.json (inc/ads-landing.php):
 *  - body.ads-deep: P1/P2 in the ice brand (mw-) design;
 *  - body.ads-thin: P3/P4 extra blocks in the unified (us-) design.
 * Photos are always whole: no aspect-ratio + object-fit crop anywhere here.
 */

/* ===================================================================== */
/* Deep layout (P1, P2)                                                   */
/* ===================================================================== */

.ads-deep .ads-anchor {
  display: block;
  height: 0;
  overflow: hidden;
}

/* Problem links under the hero buttons. */
.ads-jump {
  margin-top: 14px;
}

.ads-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ads-jump a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--mw-line);
  border-radius: 999px;
  color: var(--mw-ink);
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 600;
  min-height: 34px;
  padding: 0 12px;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}

.ads-jump a:hover,
.ads-jump a:focus-visible {
  border-color: var(--mw-brand);
  color: var(--mw-brand-dark);
}

/* Guide sections (one per problem). */
.ads-guide {
  background: #fff;
  padding: 52px 0;
  scroll-margin-top: 80px;
}

.ads-guide--alt {
  background: var(--mw-ice-soft);
}

.ads-guide__shell > h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  max-width: 760px;
}

.ads-guide__shell > p,
.ads-guide__shell > .ads-bullets,
.ads-guide__shell > .ads-h3p,
.ads-guide__shell > .ads-safe {
  max-width: 760px;
}

.ads-guide__p {
  font-size: 15.5px;
  margin-top: 14px !important;
}

.ads-guide__p a,
.ads-h3p a,
.ads-bullets a {
  color: var(--mw-brand-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ads-causes {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 4px;
}

.ads-cause {
  background: #fff;
  border: 1px solid var(--mw-line);
  border-radius: var(--mw-radius);
  padding: 16px 18px;
  position: relative;
}

.ads-guide--alt .ads-cause {
  background: #fff;
}

.ads-cause::before {
  background: var(--tone, var(--mw-brand));
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  right: 18px;
  top: -1px;
}

.ads-cause h3 {
  font-size: 16px;
  line-height: 1.3;
}

.ads-cause p {
  font-size: 14px;
  margin-top: 6px !important;
}

.ads-bullets {
  display: grid;
  gap: 10px;
  margin-top: 16px !important;
}

.ads-bullets li {
  font-size: 15px;
  padding-left: 18px;
  position: relative;
}

.ads-bullets li::before {
  background: var(--mw-brand);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 2px;
  position: absolute;
  top: .62em;
  width: 6px;
}

.ads-bullets strong {
  color: var(--mw-ink);
}

.ads-safe {
  background: var(--mw-ice);
  border: 1px solid #cfe6ee;
  border-radius: var(--mw-radius);
  margin-top: 18px;
  padding: 14px 18px;
}

.ads-guide--alt .ads-safe {
  background: #fff;
}

.ads-safe__title {
  align-items: center;
  color: #1b7a43 !important;
  display: flex;
  font-size: 12px !important;
  gap: 6px;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

.ads-safe__title .mw-icon {
  height: 16px;
  width: 16px;
}

.ads-safe ul {
  display: grid;
  gap: 6px;
  margin-top: 8px !important;
}

.ads-safe li {
  font-size: 14.5px;
  padding-left: 16px;
  position: relative;
}

.ads-safe li::before {
  color: #1b7a43;
  content: "–";
  left: 0;
  position: absolute;
}

.ads-safe p {
  font-size: 14.5px;
  margin-top: 6px !important;
}

.ads-h3p {
  margin-top: 18px;
}

.ads-h3p h3 {
  font-size: 17px;
  line-height: 1.3;
  scroll-margin-top: 80px;
}

.ads-h3p p {
  font-size: 15px;
  margin-top: 6px !important;
}

.ads-guide__action {
  margin-top: 18px !important;
}

.ads-guide .mw-inline-cta {
  margin-top: 24px;
}

/* Diagnosis / safe checks next to the page photo. */
.ads-visit .mw-visit__grid {
  align-items: start;
}

/* The page photo is whole on every ice brand page now (manitowoc-pro.css .mw-photo). */

.ads-visit__h2 {
  font-size: clamp(22px, 2.2vw, 28px) !important;
  line-height: 1.15;
  margin-bottom: 14px !important;
}

.ads-visit__h2:not(:first-child) {
  margin-top: 28px !important;
}

.ads-visit__p {
  font-size: 14.5px;
  margin: 12px 0 0 !important;
}

.ads-checks {
  display: grid;
  gap: 10px;
}

.ads-checks li {
  align-items: flex-start;
  display: flex;
  font-size: 14.5px;
  gap: 10px;
}

.ads-checks .mw-icon {
  color: #1b7a43;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.ads-visit .mw-fee {
  margin-top: 22px;
}

.ads-visit .mw-inline-cta {
  margin-top: 28px;
}

/* Repair or replace. */
.ads-decide {
  background: var(--mw-ice-soft);
  padding-top: 8px;
}

.ads-decide .mw-decide {
  margin-top: 0;
}

/* Brands in two groups. */
.ads-brands {
  background: #fff;
}

.ads-brands .mw-head {
  margin-bottom: 8px;
}

.ads-brands__group {
  font-size: 16px;
  line-height: 1.3;
  margin: 22px 0 10px !important;
}

.ads-brands__grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

/* unified-site.css colours these tiles with --us-* tokens that exist only
 * inside .us-page; give them the same tile in the mw- tokens. */
.ads-deep .ads-brands .us-brand-link {
  background: #fff;
  border: 1px solid var(--mw-line);
  border-radius: 12px;
  color: var(--mw-ink);
  height: 56px;
}

.ads-deep .ads-brands .us-brand-link:hover,
.ads-deep .ads-brands .us-brand-link:focus-visible {
  border-color: var(--mw-line-strong);
  box-shadow: var(--mw-shadow);
}

.ads-deep .ads-brands .us-brand-link img {
  max-height: 26px;
}

.ads-brands__legal {
  color: var(--mw-muted);
  font-size: 13.5px;
  margin-top: 18px !important;
}

/* Related links (P2), shared with the thin layout. */
.ads-related {
  background: var(--mw-ice-soft);
  padding: 36px 0;
}

.ads-related__title {
  font-size: 17px;
  line-height: 1.3;
}

.ads-related__list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.ads-related__list a {
  align-items: center;
  background: #fff;
  border: 1px solid #dde7ec;
  border-radius: 12px;
  color: #0e2230;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 14px;
  text-decoration: none;
}

.ads-related__list a:hover,
.ads-related__list a:focus-visible {
  border-color: #006680;
  color: #004d60;
}

.ads-related__list svg {
  color: #006680;
  flex: none;
  height: 18px;
  width: 18px;
}

@media (max-width: 900px) {
  .ads-causes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ads-jump a {
    min-height: 44px;
    padding: 0 14px;
  }

  .ads-guide {
    padding: 36px 0;
  }

  .ads-guide__p,
  .ads-bullets li,
  .ads-h3p p {
    font-size: 16px;
  }

  .ads-causes {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
  }

  .ads-cause {
    padding: 14px;
  }

  .ads-cause::before {
    left: 14px;
    right: 14px;
  }

  .ads-safe {
    padding: 12px 14px;
  }

  .ads-safe li,
  .ads-safe p,
  .ads-checks li {
    font-size: 15px;
  }

  .ads-brands__grid {
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ads-deep .ads-brands .us-brand-link {
    height: 52px;
  }

  .ads-deep .ads-brands .us-brand-link img {
    max-height: 24px;
  }

  .ads-guide__action .mw-btn {
    width: 100%;
  }
}

/* ===================================================================== */
/* Thin layout (P3, P4)                                                   */
/* ===================================================================== */

.us-issue__check {
  border-top: 1px dashed var(--sp-line-strong, #c4d3da);
  margin-top: 12px;
  padding-top: 10px;
}

.us-issue__check span {
  color: var(--sp-tone, #004d60);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.us-issue .us-issue__check p {
  color: var(--sp-muted, #5a6a75);
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 0;
}

.ads-closing {
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px !important;
}

.us-inline-cta {
  align-items: center;
  background: linear-gradient(90deg, #eef7fa 0%, #eef1fd 100%);
  border: 1px solid #d3e3f1;
  border-radius: 14px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 18px;
}

.us-inline-cta p {
  font-size: 14.5px;
  margin: 0;
}

.us-inline-cta strong {
  color: var(--sp-ink, #0e2230);
}

.us-inline-cta__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.us-inline-cta .us-actions,
.us-inline-cta__actions .us-btn {
  margin-top: 0;
}

.ads-brand-note .us-shell > * {
  max-width: 760px;
}

.ads-brand-note h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
}

.ads-brand-note p {
  font-size: 15.5px;
  margin-top: 10px;
}

.ads-brand-note a {
  color: var(--sp-brand-dark, #004d60);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ads-legal {
  color: var(--sp-muted, #5a6a75);
  font-size: 13.5px;
  margin-top: 16px !important;
}

.ads-brand-note__legal {
  color: var(--sp-muted, #5a6a75);
  font-size: 13.5px !important;
}

.ads-related-section {
  padding: 32px 0;
}

@media (max-width: 780px) {
  .us-inline-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .us-inline-cta__actions {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
  }

  .us-inline-cta__actions .us-btn {
    justify-content: center;
    white-space: nowrap;
    width: 100%;
  }

  .ads-brand-note p {
    font-size: 16px;
  }
}
