/* Tablet refinement for the LAB homepage and its inner pages. */
@media (min-width: 701px) and (max-width: 1180px) {
  .shell { width: min(100% - 44px, 1100px); }
  .site-header .header-inner { width: min(100% - 44px, 1100px); }
  .site-header:not(.subpage-header) .header-inner nav a { font-size: 14px; }
  .site-header:not(.subpage-header) .header-contact { font-size: 14px; }
  .service-cover .content-lead,
  .issue-hero .content-lead,
  .service-intro .lead { text-wrap: pretty; }
  .inner-v67 .content-section { padding-block: 52px; }
  .inner-v67 .content-card,
  .inner-v67 .issue-card,
  .inner-v67 .guide-card { border-radius: 16px; }
  .footer-v66 .footer-columns nav { padding-inline: 12px; }
}

@media (min-width: 851px) and (max-width: 1180px) {
  .hero.shell { padding-top: 39px; }
  .hero-identity { --engineer-height: min(285px, calc((100vw - 83px) * .225)) !important; }
  .contact-v64 .contact-v63-layout { gap: 20px; }
  .inner-v67 .service-cover-grid { gap: 32px; }
}

@media (min-width: 701px) and (max-width: 850px) {
  html { scroll-padding-top: 76px; }
  .site-header .header-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 66px;
    gap: 0;
    padding-block: 9px;
  }
  .site-header .mobile-brand { display: block; font-size: 20px !important; font-weight: 750; }
  .site-header .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 12px;
    border: 1px solid #716456;
    border-radius: 6px;
    background: transparent;
    color: #f5efe6;
  }
  .site-header .menu-toggle span { display: block; width: 20px; height: 1px; background: currentColor; }
  .site-header .header-inner nav,
  .subpage-header .header-inner nav {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    padding: 12px 0 8px;
  }
  .site-header .header-inner nav[data-open="true"],
  .subpage-header .header-inner nav[data-open="true"] { display: flex; }
  .site-header .header-inner nav a,
  .site-header:not(.subpage-header) .header-inner nav a {
    display: block;
    padding: 13px 10px;
    border-top: 1px solid #403b35;
    font-size: 17px;
    text-align: center;
  }
  .site-header .header-contact { display: none; }
  .subpage-header .subpage-brand { display: block; }
  .subpage-header .header-inner nav a[aria-current="page"] { text-underline-offset: 4px; }

  .hero.shell { padding-top: 37px; }
  .hero-identity {
    --engineer-height: clamp(175px, 24vw, 205px) !important;
    grid-template-columns: minmax(145px, 1fr) minmax(0, 1.8fr) minmax(145px, 1fr);
    min-height: 340px;
  }
  .hero-copy { margin-inline: 0; }
  .hero h1 { font-size: clamp(38px, 5vw, 43px); }
  .hero-subtitle { font-size: 24px; }
  .hero-description { font-size: 16px; }
  .hero-intro { width: auto !important; max-width: 100%; font-size: 16px; }
  .hero-intro > .type-line-v51 {
    white-space: normal;
    text-align: center !important;
    text-align-last: center !important;
  }
  .hero .service-rows a { min-height: 150px; padding-inline: 11px; }
  .hero .service-rows strong { font-size: 18px; }
  .hero .service-rows small { font-size: 14px; }
  .hero .hero-visual { min-height: 285px; }
  .hero .principles { margin-top: 27px; }

  .inner-v67 .service-cover { padding-block: 38px 42px; }
  .inner-v67 .service-cover-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 690px;
    margin-inline: auto;
  }
  .inner-v67 .service-cover h1 { font-size: 43px; }
  .inner-v67 .service-cover .content-lead { max-width: 620px; }
  .inner-v67 .service-cover figure { width: min(100%, 355px); }
  .inner-v67 .cover-actions { gap: 14px; }
  .inner-v67 .issue-title-row { grid-template-columns: 128px minmax(0, 1fr) 128px; gap: 12px; }
  .inner-v67 .content-grid,
  .inner-v67 .direction-grid { gap: 16px; }

  .contact-v64 .contact-v63-layout {
    grid-template-columns: 1fr;
    max-width: 710px;
    margin-inline: auto;
    gap: 16px;
  }
  .contact-v64 .contact-v63-main,
  .contact-v64 .contact-v63-side { min-height: 0; padding: 39px 42px; }
  .contact-v64 h2 { max-width: none; font-size: 45px; }
  .contact-v64 .contact-v63-intro { max-width: 540px; }
  .contact-v64 .contact-v63-actions { margin-top: 26px; }
  .contact-v64 .contact-prep {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin-top: 18px;
  }
  .contact-v64 .contact-prep li {
    min-height: 91px;
    padding: 12px;
    border-bottom: 0;
  }
  .contact-v64 .contact-prep li + li { border-left: 1px solid #625b51; }
  .contact-v64 .contact-v63-note { max-width: none; margin-top: 19px; padding-top: 18px; }
  .contact-v64 .contact-v63-note-text { max-width: none; }
  .footer-v66 .footer-columns a { font-size: 14px; }
}
