/* MOBILE CONSISTENCY PASS — 2026-11-12
   Shared mobile section label geometry and responsive title rules.
   Desktop layout remains untouched. */
@media (max-width: 767px) {
  /* Every blue section kicker uses the same centered text and both side rules. */
  html body :is(.remote-kicker,.tint-kicker,.section-label,.about-eyebrow,.cat-section-label,.mi-hero-kicker) {
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:nowrap !important;
    gap:0.65rem !important;
    margin:0 auto 1rem !important;
    padding:0 !important;
    width:100% !important;
    max-width:100% !important;
    min-height:1.6em !important;
    color:#00bfff !important;
    font-family:'Barlow Condensed',sans-serif !important;
    font-weight:700 !important;
    font-size:clamp(0.62rem,2.25vw,0.75rem) !important;
    line-height:1.25 !important;
    letter-spacing:0.14em !important;
    text-align:center !important;
    text-transform:uppercase !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }
  html body :is(.remote-kicker,.tint-kicker,.section-label,.about-eyebrow,.cat-section-label,.mi-hero-kicker)::before,
  html body :is(.remote-kicker,.tint-kicker,.section-label,.about-eyebrow,.cat-section-label,.mi-hero-kicker)::after {
    content:'' !important;
    display:block !important;
    flex:0 0 clamp(17px,6vw,29px) !important;
    width:clamp(17px,6vw,29px) !important;
    height:1px !important;
    min-width:0 !important;
    background:#00bfff !important;
    border:0 !important;
    position:static !important;
    transform:none !important;
  }
  /* Consistent compact section titles. No overflow on narrow phones. */
  html body :is(.remote-brand-header h2,.remote-info-header h2,
    .tint-section-title,.tint-chart-inner>h2,.tint-law-title,
    .paint-section-header h2,.paint-logo-text>h2:not(.paint-logo-title),
    .about-tagline,.brands-title) {
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
    font-family:'Palindrome','Barlow Condensed',sans-serif !important;
    font-size:clamp(1.9rem,8.3vw,3rem) !important;
    line-height:0.99 !important;
    letter-spacing:-0.025em !important;
    text-align:center !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
    transform:none !important;
  }
  html body :is(.remote-brand-header,.remote-info-header,.paint-section-header,
    .tint-chart-inner,.tint-law-header-copy,.tint-section-inner) {
    max-width:100% !important;
    text-align:center !important;
  }
  /* Center the lead text under centered section headers, too. */
  html body :is(.remote-brand-header,.remote-info-header,.paint-section-header,
     .tint-chart-inner,.tint-law-header-copy)>p {
    text-align:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
    max-width:36rem !important;
  }
  /* Page-level headers: shared centered arrangement. */
  html body .mi-text-hero .mi-hero-title,
  html body .mi-text-hero .mi-hero-kicker {text-align:center !important;justify-content:center !important;}
  html body .mi-text-hero h1.mi-hero-title {font-size:clamp(2rem,8vw,3.1rem) !important;line-height:1.03 !important;}
  /* Audio feature is deliberately left anchored as requested, unlike section titles. */
  html body .audio-build-hero-content {min-width:0 !important;padding-left:clamp(18px,5vw,30px) !important;padding-right:clamp(18px,5vw,30px) !important;}
  html body .audio-build-hero-inner {width:100% !important;max-width:100% !important;min-width:0 !important;text-align:left !important;}
  html body .audio-build-hero-inner h2.audio-hero-title-fit {
    font-family:'Palindrome','Barlow Condensed',sans-serif !important;
    font-size:clamp(2.15rem,9vw,3.9rem) !important;
    line-height:0.97 !important;
    letter-spacing:-0.035em !important;
    text-align:left !important;
    max-width:100% !important;
    width:100% !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
    transform:none !important;
  }
  html body .audio-build-hero-inner h2.audio-hero-title-fit span {
    font-size:inherit !important;line-height:inherit !important;
    max-width:100% !important;white-space:normal !important;transform:none !important;
  }
  /* Avoid the old oversized underline/stripe under these labels. */
  html body .audio-build-hero-inner .sport-stripe {margin-left:0 !important;}
  /* Prevent horizontal body overflow from long typography. */
  html body :is(.remote-brand-header h2,.remote-info-header h2,.tint-section-title,
    .tint-law-title,.paint-section-header h2,.audio-hero-title-fit) {box-sizing:border-box !important;}
  /* Gallery uses a single readable column on smaller phones. */
  html body #miGallery {max-width:100% !important;}
  html body #miGalleryGrid {grid-template-columns:1fr !important;gap:16px !important;width:100% !important;}
  html body #miGalleryGrid .mi-gallery-card {width:100% !important;max-width:100% !important;}
}
@media (min-width: 600px) and (max-width:767px) {
  html body #miGalleryGrid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:360px){
  html body .audio-build-hero-inner h2.audio-hero-title-fit {font-size:clamp(1.95rem,8.5vw,2.5rem) !important;}
  html body :is(.remote-kicker,.tint-kicker,.section-label,.about-eyebrow,.cat-section-label,.mi-hero-kicker) {letter-spacing:0.09em !important;gap:0.4rem !important;}
  html body :is(.remote-kicker,.tint-kicker,.section-label,.about-eyebrow,.cat-section-label,.mi-hero-kicker)::before,
  html body :is(.remote-kicker,.tint-kicker,.section-label,.about-eyebrow,.cat-section-label,.mi-hero-kicker)::after {flex-basis:14px !important;width:14px !important;}
}

/* FINAL MOBILE TYPOGRAPHY UNIFICATION — 2026-11-12
   One scale for service titles, one scale for secondary titles, one for paragraphs.
   Desktop rules are intentionally unaffected. */
@media (max-width:767px) {
  html body {overflow-x:clip;}
  html body .mi-service-hero .mi-hero-content,
  html body .mi-service-hero .mi-hero-inner {width:100%; min-width:0; max-width:100%;}
  html body .mi-service-hero .mi-hero-inner {text-align:center !important;}
  html body .mi-service-hero .mi-hero-kicker,
  html body .remote-kicker,
  html body .tint-kicker,
  html body .section-label,
  html body .about-eyebrow,
  html body .cat-section-label {
    font-family:'Barlow Condensed',sans-serif !important;
    font-size:clamp(9px,2.1vw,12px) !important;
    letter-spacing:0.10em !important;
    font-weight:700 !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
    overflow-wrap:normal !important;
    flex-wrap:nowrap !important;
    gap:clamp(6px,2vw,12px) !important;
    text-align:center !important;
    justify-content:center !important;
  }
  html body .mi-service-hero .mi-hero-kicker::before,
  html body .mi-service-hero .mi-hero-kicker::after,
  html body .remote-kicker::before,html body .remote-kicker::after,
  html body .tint-kicker::before,html body .tint-kicker::after,
  html body .section-label::before,html body .section-label::after {
    flex:0 0 clamp(12px,5vw,27px) !important;
    width:clamp(12px,5vw,27px) !important;
    height:1px !important;
  }
  /* Identical main display-title typography across all services. */
  html body .mi-service-hero h1.mi-hero-title {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    margin:0 auto 24px !important;
    font-family:'Palindrome','Barlow Condensed',sans-serif !important;
    font-size:clamp(22px,7vw,42px) !important;
    line-height:1.05 !important;
    letter-spacing:-0.035em !important;
    text-align:center !important;
    white-space:normal !important;
    overflow:visible !important;
    transform:none !important;
  }
  html body .mi-service-hero h1.mi-title-single span,
  html body .mi-service-hero h1.mi-title-single em {
    display:inline !important;
    font-size:inherit !important;
    line-height:inherit !important;
    white-space:nowrap !important;
    transform:none !important;
  }
  html body .mi-service-hero h1.mi-title-single {white-space:nowrap !important;}
  /* Consistent secondary headings regardless of page-specific older rules. */
  html body :is(.remote-brand-header h2,.remote-info-header h2,
    .tint-section-title,.tint-chart-inner>h2,.tint-law-title,
    .paint-section-header h2,.paint-logo-title,.about-tagline,
    .brands-title,.tint-applications-header h2) {
      font-family:'Palindrome','Barlow Condensed',sans-serif !important;
      font-size:clamp(22px,7vw,42px) !important;
      font-weight:900 !important;
      letter-spacing:-0.03em !important;
      line-height:1.05 !important;
      max-width:100% !important;
      width:100% !important;
      margin-left:auto !important;
      margin-right:auto !important;
      text-align:center !important;
      overflow-wrap:break-word !important;
      word-break:normal !important;
      white-space:normal !important;
      transform:none !important;
  }
  html body .tint-title-two-line span,
  html body .tint-title-two-line em {display:block !important; font-size:inherit !important; line-height:inherit !important; transform:none !important;}
  html body .tint-title-two-line {white-space:normal !important;}
  /* Clear the old oversize dedicated VortexIR and HP Smoke rules. */
  html body #vortexir .tint-section-title,
  html body #hpsmoke .tint-section-title,
  html body #vortexir .tint-section-title em {
    font-size:clamp(22px,7vw,42px) !important;
    line-height:1.05 !important;
    letter-spacing:-0.03em !important;
    max-width:100% !important;
  }
  /* One paragraph scale for equivalent service information, not card metadata. */
  html body .mi-service-hero .mi-hero-inner p,
  html body .tint-section-copy,
  html body .remote-info-header p,
  html body .paint-section-header p,
  html body .paint-logo-text > p {
    font-family:'Barlow',sans-serif !important;
    font-size:clamp(15px,3.7vw,18px) !important;
    line-height:1.65 !important;
    max-width:100% !important;
    overflow-wrap:break-word !important;
  }
  html body .paint-logo-title {padding:0 !important;}
}
@media(max-width:359px) {
 html body .mi-service-hero h1.mi-hero-title,
 html body :is(.remote-brand-header h2,.remote-info-header h2,.tint-section-title,.paint-logo-title,.paint-section-header h2) {
    font-size:clamp(20px,6.4vw,26px) !important;
 }
 html body .mi-service-hero .mi-hero-kicker,
 html body .remote-kicker {font-size:8px !important;letter-spacing:.04em !important;}
}


/* MOBILE TITLE & TWO-BUTTON ALIGNMENT — final targeted overrides.
   Desktop is untouched. Short headings retain the common 7vw display scale;
   the wider ones fit within the viewport instead of being clipped. */
@media (max-width:767px) {
  /* Only two-link action groups are centered. A single CTA retains its placement. */
  html body .mi-service-hero .mi-hero-actions:has(> a:nth-of-type(2)) {
    justify-content:center !important;
    align-items:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
    width:100% !important;
    max-width:100% !important;
    gap:clamp(10px,3vw,18px) !important;
  }
  html body .mi-service-hero .mi-hero-actions:has(> a:nth-of-type(2)) > a {
    flex:0 1 auto !important;
    min-width:0 !important;
    margin:0 !important;
    white-space:nowrap !important;
    padding-left:clamp(10px,3.5vw,22px) !important;
    padding-right:clamp(10px,3.5vw,22px) !important;
    font-size:clamp(12px,3.2vw,15px) !important;
  }
  /* Title spans must not inherit the old block-per-word rule. */
  html body .mi-service-hero h1.mi-hero-title.mi-title-one-line,
  html body .mi-service-hero h1.mi-hero-title.mi-title-one-line span,
  html body .mi-service-hero h1.mi-hero-title.mi-title-one-line em {
    white-space:nowrap !important;
  }
  html body .mi-service-hero h1.mi-hero-title.mi-title-one-line span,
  html body .mi-service-hero h1.mi-hero-title.mi-title-one-line em {
    display:inline !important;
    font:inherit !important;
    letter-spacing:inherit !important;
    line-height:inherit !important;
    transform:none !important;
  }
  html body .mi-service-hero h1.mi-hero-title.mi-title-one-line em {color:var(--accent,#00bfff) !important;}
  /* Car Audio / Vehicle Lighting use the same effective fit scale. */
  html body .mi-service-hero h1.mi-hero-title.mi-title-one-line {
    font-size:clamp(21px,6.1vw,37px) !important;
    letter-spacing:-.04em !important;
    text-align:center !important;
    margin:0 auto 24px !important;
    width:100% !important;
    max-width:100% !important;
  }
  /* Automotive Paint is intentionally the two-line exception. */
  html body .mi-service-hero h1.mi-hero-title.mi-title-paint-two-lines {
    font-size:clamp(22px,7vw,42px) !important;
    line-height:1.05 !important;
    letter-spacing:-.035em !important;
    white-space:normal !important;
    text-align:center !important;
    max-width:100% !important;
  }
  html body .mi-service-hero h1.mi-hero-title.mi-title-paint-two-lines span,
  html body .mi-service-hero h1.mi-hero-title.mi-title-paint-two-lines em {
    display:block !important;
    font-size:inherit !important;
    white-space:nowrap !important;
    line-height:inherit !important;
    letter-spacing:inherit !important;
    transform:none !important;
    margin:0 auto !important;
  }
  html body .mi-service-hero h1.mi-hero-title.mi-title-paint-two-lines em {color:var(--accent,#00bfff) !important;}
  /* Match the paint page's blue label and side rules to the common service-label geometry. */
  html body.paint-page .mi-service-hero .mi-hero-kicker {
    font-family:'Barlow Condensed',sans-serif !important;
    font-weight:700 !important;
    font-size:clamp(9px,2.1vw,12px) !important;
    letter-spacing:.10em !important;
    text-align:center !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:clamp(6px,2vw,12px) !important;
    width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  html body.paint-page .mi-service-hero .mi-hero-kicker::before,
  html body.paint-page .mi-service-hero .mi-hero-kicker::after {
    content:'' !important;
    display:block !important;
    flex:0 0 clamp(12px,5vw,27px) !important;
    width:clamp(12px,5vw,27px) !important;
    height:1px !important;
    background:#00bfff !important;
  }
}
@media(max-width:359px) {
 html body .mi-service-hero h1.mi-hero-title.mi-title-one-line {font-size:clamp(17px,5.7vw,22px) !important;}
}
