/* consulting-flow-alignment-20260723
   A page-scoped override for the narrow tablet layout. It deliberately uses
   higher specificity than the shared tablet stylesheet so cached shared CSS
   cannot restore the older, taller single-column treatment. */
@media (min-width: 768px) and (max-width: 900px) {
  .page.consulting-page .why-section .why-grid {
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Keep the two-column tablet flow, but scale each complete card down by 20%. */
  .page.consulting-page .service-flow .flow-list {
    width: 80% !important;
    max-width: 832px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 46px 26px !important;
  }

  .page.consulting-page .service-flow .flow-item {
    min-height: 328px !important;
    padding: 50px 14px 8px !important;
    gap: 4px !important;
    border-radius: 22px !important;
    justify-content: flex-start !important;
  }

  .page.consulting-page .service-flow .flow-num {
    width: 56px !important;
    font-size: 29px !important;
  }

  .page.consulting-page .service-flow .flow-num span {
    font-size: 10px !important;
  }

  .page.consulting-page .service-flow .flow-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 74px !important;
    min-height: 74px !important;
    padding-top: 6px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .page.consulting-page .service-flow .flow-title h3 {
    font-size: clamp(25px, 3.55vw, 30px) !important;
    line-height: 1.22 !important;
    white-space: normal !important;
  }

  .page.consulting-page .service-flow .flow-copy {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    height: 80px !important;
    min-height: 80px !important;
    text-align: center !important;
  }

  .page.consulting-page .service-flow .flow-copy p {
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  .page.consulting-page .service-flow .flow-visual {
    width: min(100%, 168px) !important;
    max-height: 156px !important;
    margin-top: 12px !important;
  }

  .page.consulting-page .service-flow .flow-icon {
    max-height: 156px !important;
  }

  /* Let the three-card group scale as one composition on tablet. */
  .page.consulting-page .tarot-row {
    --tarot-mobile-card-width: min(44vw, 260px) !important;
    --tarot-mobile-overlap: min(4vw, 30px) !important;
    padding-inline: calc((100% - var(--tarot-mobile-card-width)) / 2) !important;
  }

  .page.consulting-page .tarot-card {
    transform: translateY(10px) scale(0.9) !important;
  }

  .page.consulting-page .tarot-card.is-mobile-active {
    transform: translateY(-6px) scale(1.18) !important;
  }

  .page.consulting-page .building-section .check-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: calc(100% - 44px) !important;
    gap: 28px 18px !important;
  }

  .page.consulting-page .building-section .check-card {
    min-height: 280px !important;
    padding: 32px 16px 26px !important;
    border-radius: 22px !important;
  }

  .page.consulting-page .building-section .check-card-head {
    margin-bottom: 14px !important;
  }

  .page.consulting-page .building-section .check-title-row {
    gap: 8px !important;
  }

  .page.consulting-page .building-section .check-card h3 {
    font-size: clamp(21px, 3vw, 25px) !important;
    line-height: 1.32 !important;
  }

  .page.consulting-page .building-section .check-divider {
    min-width: 16px !important;
  }

  .page.consulting-page .building-section .check-card p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .page.consulting-page .building-section .important-note {
    grid-column: span 2 !important;
    min-height: 280px !important;
    margin-top: 0 !important;
    padding: 52px 22px 24px !important;
  }
}

/* The reference height is measured from the Building-use-category card at
   runtime, so matching cards keep pace with text wrapping on each tablet. */
@media (min-width: 768px) and (max-width: 1439px) {
  .page.consulting-page .why-section .why-sub {
    font-size: var(--ly-tablet-component-body) !important;
    line-height: var(--ly-tablet-component-line) !important;
  }

  .page.consulting-page .building-section .check-grid {
    align-items: stretch !important;
  }

  .page.consulting-page .building-section .check-card {
    box-sizing: border-box !important;
    height: var(--consulting-check-card-height, 280px) !important;
    min-height: var(--consulting-check-card-height, 280px) !important;
    padding-bottom: 26px !important;
    align-self: stretch !important;
  }

  .page.consulting-page .building-section .important-note {
    box-sizing: border-box !important;
    height: var(--consulting-check-card-height, 280px) !important;
    min-height: var(--consulting-check-card-height, 280px) !important;
  }
}
