/* Phone-width corrections on top of styles.css, pages.css and enhance.css (loaded after them on every page).
   Two kinds of fix: layouts that kept a desktop column at phone width, and type that fell below a readable size.
   The desktop design is untouched: everything here applies at 700px and below. */
/* Seven links no longer fit beside the logo on tablets: the menu button and the stacked navigation that phones use
   start at 960px instead of 700px. The 700px block in styles.css keeps its own copy of these rules. */
@media(max-width:960px){
  .menu-toggle{display:block}
  .main-nav{position:absolute;top:100%;left:0;right:0;padding:18px 25px 30px;background:var(--navy);box-shadow:0 15px 30px #0004;flex-direction:column;gap:0;align-items:stretch;border-top:1px solid #ffffff20}
  .js .main-nav{display:none}
  .js .main-nav.open{display:flex}
  .main-nav>a:not(.nav-contact){padding:16px 0;font-size:15px;border-bottom:1px solid #ffffff12}
  .main-nav .nav-contact{margin-top:15px;justify-content:space-between;padding:15px 0;border:0;font-size:15px}
  .main-nav>a:after{display:none}
  .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(3.5px) rotate(45deg)}
  .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
}
@media(max-width:700px){
  /* Rows that list a number, a title and a description (partnerships' engagement models, the solutions page's
     industry rows): the description sat in a third column 35px wide. It now takes the full width under the title. */
  .model-row{grid-template-columns:35px minmax(0,1fr)}
  .model-row>div,.model-row>p{grid-column:2;min-width:0}
  .model-row h3{max-width:none}
  /* Grids whose single column was "1fr" (which cannot shrink below its content): the cookie tables pushed the
     whole page sideways. Columns may now shrink and the tables scroll inside their own box. */
  .legal-layout,.editorial-split,.contact-layout,.page-hero-layout,.tech-band,.illus-split,.lede-head{grid-template-columns:minmax(0,1fr)}
  .legal-copy,.legal-layout>*,.editorial-split>*,.contact-layout>*{min-width:0;max-width:100%}
  .cookie-table-wrap{max-width:100%}
  .cookie-table{min-width:560px}
  /* Readable type: nothing below 10px, body copy at 13px or more. */
  .eyebrow,.section-label,.page-hero .eyebrow,.hero-kicker,.sector-number{font-size:10px;letter-spacing:1.4px}
  .breadcrumbs{font-size:11px}
  .page-intro,.prose,.about-copy>p:not(.lead),.industry-story p,.product-card>p,.timeline p,.capability-strip p,.career-path p,.model-row p,.legal-section p,.legal-section li,.legal-note p,.feature-directory p,.solution-tile>p,.page-cta p:not(.eyebrow),.phone-card p,.partner-card p,.principle p,.check-list li,.contrast-card li,.module-card li,.module-card p,.helper-text,.cf-note,.cf-consent,.cf-recaptcha-gate p,.role-meta{font-size:13px;line-height:1.85}
  .hero-detail,.client-intro>p:last-child{font-size:13px}
  .hero-actions .button,.hero-secondary,.section-top .text-link,.product-links .text-link,.solutions-bottom .text-link,.solutions-bottom,.legal-nav nav a,.legal-nav>.text-link,.filter-button,.clients-toggle,.product-tags span,.spotlight-label span,.partner-tier,.office-card .eyebrow,.phone-card>.eyebrow,.scroll-link,.motion-toggle,.product-hero-mark span,.resource-link small,.role-new,.role-skills li{font-size:11px}
  .partner-tier{letter-spacing:.8px;min-height:0}
  .button{font-size:12px;min-height:52px;padding:16px 20px;gap:18px}
  .cf-field>label,.cf-legend{font-size:12px}
  .cf-field input:not([type=radio]):not([type=checkbox]),.cf-field select,.cf-field textarea,.cf-combo-toggle{font-size:16px} /* 16px stops iOS zooming into the field */
  .footer-bottom{font-size:11px}
  .footer-column a,.footer-brand p{font-size:13px}
  /* Touch targets: the tabs row scrolls sideways, so make that visible and give it room. */
  .industry-tabs{padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .industry-tab{font-size:12px;padding:16px 0;white-space:nowrap}
  /* The chat launcher and the cookie banner share the bottom edge; the launcher keeps clear of the footer buttons. */
  .in-chat{right:12px;bottom:12px}
}
@media(max-width:400px){
  .page-hero h1{font-size:clamp(36px,10vw,48px);letter-spacing:-1.5px}
  .hero h1{font-size:clamp(48px,12vw,60px);letter-spacing:-2px}
  .inner-page h2,.about h2,.section-heading h2,.spotlight-heading{font-size:30px;letter-spacing:-1.2px}
}
