.nav-dropdown-menu .nav-two-line,
.mobile-submenu .nav-two-line {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
}

/* v43: calmer, more compact homepage service comparison. */
@media (min-width: 981px) {
  .services-premium .service-showcase .service-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(4.6rem, auto) minmax(6.4em, auto) minmax(6.2em, auto) minmax(5.6rem, auto) auto !important;
    min-height: 0 !important;
    padding: 1.8rem clamp(1.25rem, 1.7vw, 1.8rem) 1.6rem !important;
    row-gap: .65rem !important;
  }

  .services-premium .service-card .service-index {
    grid-row: 1 !important;
    grid-column: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    align-self: start !important;
  }

  .services-premium .service-card > h3 {
    grid-row: 2 !important;
    grid-column: 1 !important;
    min-height: 0 !important;
    margin: .15rem 0 0 !important;
  }

  .services-premium .service-showcase .service-card > p.service-problem,
  .services-premium .service-showcase .service-card > div.service-problems {
    grid-row: 3 !important;
    grid-column: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    align-self: start;
  }

  .services-premium .service-showcase .service-card > p.service-description {
    grid-row: 4 !important;
    grid-column: 1 !important;
    min-height: 0 !important;
    margin: 0 !important;
    align-self: start;
  }

  .services-premium .service-showcase .service-card > ul {
    grid-row: 5 !important;
    grid-column: 1 !important;
    min-height: 0 !important;
    margin: .15rem 0 0 !important;
    align-self: start;
  }

  .services-premium .service-showcase .service-card > a:last-child {
    grid-row: 6 !important;
    grid-column: 1 !important;
    margin: 0 !important;
    align-self: end;
  }
}

@media (max-width: 980px) {
  .services-premium .service-card > h3,
  .services-premium .service-card > .service-problem,
  .services-premium .service-card > .service-problems,
  .services-premium .service-card > .service-description,
  .services-premium .service-card > ul {
    min-height: 0 !important;
  }
}

/* Problem-led orientation on the full services page, without replacing copy. */
.package-problem,
.package-problems p {
  color: #806225;
  font-weight: 750;
  line-height: 1.45;
}

.package-problem { margin: .9rem 0 .45rem; }
.package-problems { display: grid; gap: .4rem; margin: .9rem 0 .45rem; }
.package-problems p { margin: 0; }
.package-problem-light { color: #e1bd72; }

/* Contextual SEO depth belongs on the related service page, not the homepage. */
.service-depth-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 7vw, 8rem);
  border-top: 1px solid #d6dde5;
  background: #f5f1ea;
}

.service-depth-link > div { max-width: 760px; }
.service-depth-link h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.service-depth-link p:not(.eyebrow) { max-width: 62ch; margin-bottom: 0; }
.service-depth-link > a {
  padding: .9rem 0;
  border-bottom: 1px solid currentColor;
  color: #806225;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .service-depth-link { grid-template-columns: 1fr; gap: 1rem; }
  .service-depth-link > a { white-space: normal; }
}

/* v46: homepage services use natural content flow with one aligned CTA baseline. */
@media (min-width: 981px) {
  .services-premium .service-showcase {
    align-items: stretch !important;
  }

  .services-premium .service-showcase .service-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 1.7rem clamp(1.2rem, 1.55vw, 1.65rem) 1.5rem !important;
    row-gap: 0 !important;
  }

  .services-premium .service-showcase .service-card > * {
    grid-row: auto !important;
    grid-column: auto !important;
  }

  .services-premium .service-card .service-index {
    min-height: 0 !important;
    margin: 0 0 .5rem !important;
  }

  .services-premium .service-card > h3 {
    min-height: 0 !important;
    margin: .1rem 0 .9rem !important;
  }

  .services-premium .service-showcase .service-card > p.service-problem,
  .services-premium .service-showcase .service-card > div.service-problems {
    min-height: 0 !important;
    margin: 0 0 .85rem !important;
  }

  .services-premium .service-showcase .service-card > p.service-description {
    min-height: 0 !important;
    margin: 0 0 .85rem !important;
  }

  .services-premium .service-showcase .service-card > ul {
    min-height: 0 !important;
    margin: 0 0 1rem !important;
  }

  .services-premium .service-showcase .service-card > a:last-child {
    margin-top: auto !important;
    align-self: stretch !important;
  }
}

@media (max-width: 980px) {
  .services-premium .service-showcase .service-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  .services-premium .service-showcase .service-card > * {
    grid-row: auto !important;
    grid-column: auto !important;
  }
}

/* v46: a calmer, thinner value-building route with number and label inline. */
.premium-seo-chain a {
  min-height: 74px !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .7rem !important;
  padding: .9rem clamp(1rem, 2vw, 2rem) !important;
}

.premium-seo-chain a span {
  flex: 0 0 auto;
  line-height: 1 !important;
}

/* v46: the paid scan is a compact first-step option beside the sale hero. */
.exit-scan-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .65fr) !important;
  gap: clamp(2rem, 5vw, 5rem) !important;
  align-items: end !important;
}

.exit-scan-hero-copy { min-width: 0; }
.exit-scan-teaser { align-self: end; }

/* v46: reduce unused vertical space in the paid scan hero and crop its image. */
@media (min-width: 901px) {
  .scan-commercial-hero {
    min-height: 0 !important;
    max-height: 500px !important;
  }

  .scan-commercial-hero .commercial-copy {
    padding: 2.35rem clamp(2rem, 4vw, 4.2rem) !important;
  }

  .scan-commercial-hero .commercial-image {
    min-height: 0 !important;
    height: 500px !important;
    max-height: 500px !important;
  }

  .scan-commercial-hero .commercial-image img {
    object-position: center 14% !important;
  }
}

@media (max-width: 760px) {
  .premium-seo-chain a {
    min-height: 62px !important;
    padding: .75rem 1rem !important;
  }

  .exit-scan-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

.nav-two-line small {
  color: #7b6846;
  font-size: .7rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .02em;
}

.service-problem,
.service-problems p {
  color: #806225;
  font-weight: 700;
  line-height: 1.45;
}

.service-problems {
  display: grid;
  gap: .55rem;
  margin: 0 0 1rem;
}

.service-problems p { margin: 0; }

.service-card.dark .service-problem,
.service-card.dark .service-problems p {
  color: #e1bd72;
}

.service-card .service-description {
  color: #263244;
  font-weight: 400;
  line-height: 1.55;
}

.service-card.dark .service-description {
  color: rgba(255,255,255,.86);
}

.service-card > .service-problem,
.service-card > .service-problems,
.service-card > .service-description {
  margin-bottom: 1rem;
}

.service-showcase .service-card {
  align-content: start;
}

.service-showcase .service-card > ul {
  margin-top: .25rem;
}

.active-research {
  margin: 1.25rem 0;
  padding: 1.15rem 1.2rem;
  border-left: 3px solid var(--gold, #bd9650);
  background: #fff;
}

.active-research span,
.active-research strong,
.active-research p,
.active-research a { display: block; }

.active-research span {
  margin-bottom: .45rem;
  color: #8c6b2d;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.active-research strong {
  color: var(--navy, #082e65);
  font-family: Prata, Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.3;
}

.active-research p { margin: .6rem 0 .75rem; font-size: .9rem; line-height: 1.55; }
.active-research a { color: var(--navy, #082e65); font-weight: 750; }

.sale-ready-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  max-width: 1320px !important;
}

.sale-value-teaser {
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-top: 3px solid var(--gold, #bd9650);
  background: #fff;
  box-shadow: 0 18px 45px rgba(8, 46, 101, .09);
}

.sale-value-teaser h2 { margin: .4rem 0 .75rem; font-size: clamp(1.4rem, 2.1vw, 2rem); }
.sale-value-teaser p:not(.eyebrow) { margin: 0 0 1rem; line-height: 1.6; }
.sale-value-teaser a { color: var(--navy, #082e65); font-weight: 800; }

.premium-seo-chain {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 !important;
}

.premium-seo-chain a {
  min-height: 120px;
  padding: 1.25rem clamp(1rem, 2vw, 2rem) !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  border-right: 1px solid rgba(255,255,255,.22);
  color: #fff !important;
  font-weight: 750;
  text-decoration: none;
}

.premium-seo-chain a:last-child { border-right: 0; }
.premium-seo-chain a span { color: var(--gold, #d0a552); font-size: .75rem; letter-spacing: .14em; }
.premium-seo-chain a:hover { background: rgba(255,255,255,.08); }

@media (max-width: 760px) {
  .site-footer .footer-brand {
    display: none !important;
  }

  .site-header .knowledge-tools-dropdown {
    position: relative;
  }

  .site-header .knowledge-tools-dropdown.is-open .knowledge-tools-menu {
    position: fixed;
    z-index: 1000;
    top: 76px;
    right: .9rem;
    left: .9rem;
    display: grid !important;
    width: auto;
    padding: .45rem;
    border-top: 3px solid var(--gold, #bd9650);
    background: #fff;
    box-shadow: 0 20px 55px rgba(8,46,101,.2);
  }

  .site-header .knowledge-tools-dropdown.is-open .knowledge-tools-menu a {
    padding: .85rem 1rem;
    border-bottom: 1px solid #e1e5ea;
    color: var(--navy, #082e65);
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.35;
  }

  .site-header .knowledge-tools-dropdown.is-open .knowledge-tools-menu a:last-child {
    border-bottom: 0;
  }

  .sale-ready-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .sale-value-teaser { box-shadow: none; }
  .premium-seo-chain { grid-template-columns: repeat(2, 1fr); }
  .premium-seo-chain a { min-height: 92px; border-bottom: 1px solid rgba(255,255,255,.22); }
  .premium-seo-chain a:nth-child(2) { border-right: 0; }
  .premium-seo-chain a:nth-child(n+3) { border-bottom: 0; }
}

/* v46 final cascade: approved homepage card rhythm. */
@media (min-width: 981px) {
  .services-premium .service-showcase { align-items: stretch !important; }
  .services-premium .service-showcase .service-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 1.7rem clamp(1.2rem, 1.55vw, 1.65rem) 1.5rem !important;
    row-gap: 0 !important;
  }
  .services-premium .service-showcase .service-card > * { grid-row: auto !important; grid-column: auto !important; }
  .services-premium .service-card .service-index { min-height: 0 !important; margin: 0 0 .5rem !important; }
  .services-premium .service-card > h3 { min-height: 0 !important; margin: .1rem 0 .9rem !important; }
  .services-premium .service-showcase .service-card > p.service-problem,
  .services-premium .service-showcase .service-card > div.service-problems { min-height: 0 !important; margin: 0 0 .85rem !important; }
  .services-premium .service-showcase .service-card > p.service-description { min-height: 0 !important; margin: 0 0 .85rem !important; }
  .services-premium .service-showcase .service-card > ul { min-height: 0 !important; margin: 0 0 1rem !important; }
  .services-premium .service-showcase .service-card > a:last-child { margin-top: auto !important; align-self: stretch !important; }
}

/* v46 final cascade: thinner value route, with number and label on one line. */
.premium-seo-chain a {
  min-height: 74px !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .7rem !important;
  padding: .9rem clamp(1rem, 2vw, 2rem) !important;
}
.premium-seo-chain a span { flex: 0 0 auto; line-height: 1 !important; }

/* v46 final cascade: one-off scan as a secondary route in the sale hero. */
.exit-scan-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .65fr) !important;
  gap: clamp(2rem, 5vw, 5rem) !important;
  align-items: end !important;
}
.exit-scan-hero-copy { min-width: 0; }
.exit-scan-teaser { align-self: end; }

@media (min-width: 901px) {
  .scan-commercial-hero { min-height: 0 !important; max-height: 500px !important; }
  .scan-commercial-hero .commercial-copy { padding: 2.35rem clamp(2rem, 4vw, 4.2rem) !important; }
  .scan-commercial-hero .commercial-image { min-height: 0 !important; height: 500px !important; max-height: 500px !important; }
  .scan-commercial-hero .commercial-image img { object-position: center 14% !important; }
}

@media (max-width: 980px) {
  .services-premium .service-showcase .service-card { display: flex !important; flex-direction: column !important; min-height: 0 !important; }
  .services-premium .service-showcase .service-card > * { grid-row: auto !important; grid-column: auto !important; }
}

@media (max-width: 760px) {
  .premium-seo-chain a { min-height: 62px !important; padding: .75rem 1rem !important; }
  .exit-scan-hero-grid { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
}

/* v47: restore every paid-scan hero action; crop only the image, never the content. */
@media (min-width: 901px) {
  .scan-commercial-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    align-items: stretch !important;
  }

  .scan-commercial-hero .commercial-copy {
    padding: 2.55rem clamp(2rem, 4vw, 4.2rem) !important;
  }

  .scan-commercial-hero .commercial-image {
    height: auto !important;
    min-height: 510px !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  .scan-commercial-hero .commercial-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 14% !important;
  }
}

/* v47: keep the secondary scan card compact and readable inside the dark hero. */
.exit-hero .exit-scan-teaser {
  align-self: center !important;
  height: auto !important;
  min-height: 0 !important;
  color: #17202d !important;
}

.exit-hero .exit-scan-teaser h2 {
  color: var(--navy, #082d64) !important;
  font-size: clamp(1.55rem, 2vw, 2rem) !important;
  line-height: 1.18 !important;
}

.exit-hero .exit-scan-teaser p:not(.eyebrow) {
  color: #263244 !important;
  font-size: .94rem !important;
  line-height: 1.58 !important;
}

.exit-hero .exit-scan-teaser a {
  display: inline-block !important;
  color: var(--navy, #082d64) !important;
  line-height: 1.45 !important;
}

/* v47: premium desktop alignment across every row of the four service cards. */
@media (min-width: 981px) {
  .services-premium .service-showcase .service-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 32px 88px 78px 120px 104px 54px !important;
    min-height: 0 !important;
    padding: 1.45rem clamp(1.2rem, 1.55vw, 1.65rem) 1.35rem !important;
    row-gap: .38rem !important;
    align-content: start !important;
  }

  .services-premium .service-card .service-index {
    grid-row: 1 !important;
    grid-column: 1 !important;
    align-self: start !important;
    margin: 0 !important;
  }

  .services-premium .service-card > h3 {
    grid-row: 2 !important;
    grid-column: 1 !important;
    align-self: start !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .services-premium .service-showcase .service-card > p.service-problem,
  .services-premium .service-showcase .service-card > div.service-problems {
    grid-row: 3 !important;
    grid-column: 1 !important;
    align-self: start !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .services-premium .service-showcase .service-card > p.service-description {
    grid-row: 4 !important;
    grid-column: 1 !important;
    align-self: start !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .services-premium .service-showcase .service-card > ul {
    grid-row: 5 !important;
    grid-column: 1 !important;
    align-self: start !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .services-premium .service-showcase .service-card > a:last-child {
    grid-row: 6 !important;
    grid-column: 1 !important;
    align-self: end !important;
    margin: 0 !important;
  }
}

@media (max-width: 980px) {
  .exit-hero .exit-scan-teaser { align-self: start !important; }
}

/* v48: tighter but still fully aligned homepage service comparison. */
@media (min-width: 981px) {
  .services-premium .service-showcase .service-card {
    grid-template-rows: 24px 70px 68px 96px 82px 50px !important;
    padding: 1.1rem clamp(1.05rem, 1.4vw, 1.5rem) 1rem !important;
    row-gap: .25rem !important;
  }

  .services-premium .service-card > h3 {
    font-size: clamp(1.8rem, 1.85vw, 2.1rem) !important;
    line-height: 1.02 !important;
  }

  .services-premium .service-card > .service-problem,
  .services-premium .service-card > .service-problems {
    font-size: .9rem !important;
    line-height: 1.35 !important;
  }

  .services-premium .service-card > .service-description {
    font-size: .9rem !important;
    line-height: 1.48 !important;
  }

  .services-premium .service-card > ul {
    font-size: .84rem !important;
    line-height: 1.5 !important;
  }
}

/* v48: give the supporting scan card more width and calmer line breaks. */
.page-intro .exit-scan-hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(390px, .8fr) !important;
  max-width: 1320px !important;
}

.exit-hero .exit-scan-teaser {
  padding: clamp(1.5rem, 2vw, 2rem) !important;
}

/* v48: the paid-scan hero ends after its buttons; the portrait crops at the bottom. */
@media (min-width: 901px) {
  .scan-commercial-hero .commercial-copy {
    justify-content: flex-start !important;
    padding: 2.15rem clamp(2rem, 4vw, 4.2rem) 1.2rem !important;
  }

  .scan-commercial-hero .commercial-actions {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
  }

  .scan-commercial-hero .commercial-image {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: stretch !important;
  }

  .scan-commercial-hero .commercial-image img {
    object-position: center 10% !important;
  }
}

@media (max-width: 760px) {
  .page-intro .exit-scan-hero-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v49: let the scan copy determine hero height; crop the portrait to that height. */
@media (min-width: 901px) {
  .scan-commercial-hero {
    grid-template-rows: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  .scan-commercial-hero .commercial-copy {
    align-self: start !important;
    padding-bottom: 1.1rem !important;
  }

  .scan-commercial-hero .commercial-image {
    position: relative !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  .scan-commercial-hero .commercial-image img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 10% !important;
  }
}
