/* ── Mobile polish (Nov 2026 site review) ─────────────────────────────────────
   Six small items the review found and left. Loaded after every other stylesheet
   (functions.php, priority 99) so each rule here is the last word without having to
   out-specify the page sheets one by one.

   Not changed on purpose: brand-blue buttons, the blue keyboard focus ring, and the
   no-lift hovers. Nothing here adds a translateY on hover. */

/* ── 2. One heading scale ─────────────────────────────────────────────────────
   The scale is the Figma "Visual foundation" one already in design-foundation.css:
     H1  page hero title     clamp(46px,3.75vw,72px) from 1101px (54px at 1440)
     H2  section title       clamp(30px,3vw,48px)    (30px phone · 43px at 1440)
   What was left uneven, measured on 25 pages of the 19 Nov code:
   - below 1101px the hero titles kept each page's own size (34–47px at 390), because the
     foundation rule only starts at 1101px. They now follow one step down to 46px:
     36px at 390, about 42px at 768, 46px from 1024.
   - section titles outside the .h2 class missed the rule: Technology Ecosystem (58px),
     the Innovation Labs band on AI and Robotics (37px).
   - card and item titles (h3) ran 17–24px for the same role. They are 18px on phones and
     20px from 1024, except the cards the foundation sizes itself (.cs-card, .c3-card) and a
     few feature titles (Press editorial, directory cities, partner journey, Events, Lab).
   Home, About, Careers and Innovation Lab heroes are one-off display titles and keep their
   own size, as do the legal-page subheads (26px, set in design-foundation.css). */
:root{
  --bs-fs-h1:clamp(36px,calc(1.6vw + 30px),46px);
  --bs-fs-h2:clamp(30px,3vw,48px);
  --bs-fs-h3:clamp(18px,calc(.4vw + 16.5px),20px);
}
@media (min-width:1101px){
  :root{--bs-fs-h1:clamp(46px,3.75vw,72px);}
}
body.interior-v2 :is(.page-hero,.hero-image,.independent-hero,.pa-index,.te-hero,.ah-globe) h1,
body.interior-v2.pg-global-presence .global-network .ah-globe-copy h1{
  font-size:var(--bs-fs-h1)!important;
}
body.interior-v2 :is(.te-section,.te-closing) h2,
body.interior-v2 .ah-ai h2{
  font-size:var(--bs-fs-h2)!important;line-height:1.2!important;
}
body.interior-v2 :is(.section,.section-tight,.te-section) h3:not(
  .press-editorial h3,.location-directory h3,.te-journey-title,.ev-sec h3,.lab-band h3,.bs-faq h3,.ev-empty h3,.cs-card h3,.c3-card h3
){
  font-size:var(--bs-fs-h3)!important;
}

/* ── 3. Form fields at 16px on touch screens ──────────────────────────────────
   iOS Safari zooms the page into any field whose text is under 16px. The contact,
   partner, newsletter and chat fields were 14–15px. */
@media (max-width:768px),(pointer:coarse){
  input:not([type=checkbox],[type=radio],[type=range],[type=submit],[type=button],[type=reset],[type=hidden]),
  select,
  textarea{font-size:16px!important;}
}

/* ── 1. Tap targets of at least 44px on phones ────────────────────────────────
   Measured at 390px. Inline links inside running copy are left as they are (WCAG 2.5.8
   exempts them), and so are the 8px carousel dots under the explore rails: the 44px
   previous/next arrows beside them do the same job (2.5.8's equivalent-control exception). */
@media (max-width:768px){
  .skip-link{display:inline-flex;align-items:center;min-height:44px;}
  .site-header .nav-left .brand{display:inline-flex;align-items:center;min-height:44px;}
  .site-header .search-btn{height:44px;min-width:44px;}
  .tab,.location-tabs .tab{min-height:44px;}
  .ah-cp-logo{min-height:44px;}
  .gn-console :is(button,a){min-height:44px;}
  .ah-ci-direct{min-height:44px;}
  /* Phone menu: the sub-links under each group were 35–39px rows. */
  html body .mobile-menu .m-panel .m-sub{display:flex;align-items:center;min-height:44px;}
  html body .mobile-menu .m-panel .m-sub.m-all{display:inline-flex;}
  /* Chat panel: close button (25px), suggestion chips (30px), send button (42px). */
  .bx-chat-x{min-width:44px;min-height:44px;}
  .bx-chip{min-height:44px;}
  .bx-chat-form button{width:44px;height:44px;}
  .home .ah-news2-nav .ah-news2-arrow{min-width:44px;min-height:44px;}

  /* Underlined text links keep their underline where it is; an invisible 44px band
     centred on the link takes the tap instead. */
  :is(.sai-text-link,.ah-more,.link-more,.te-text-link,.contact-form-footer>a,.foot-linkedin-txt,.pa-index-browse,.ins-media-link,.ind-fx-go){position:relative;}
  :is(.sai-text-link,.ah-more,.link-more,.te-text-link,.contact-form-footer>a,.foot-linkedin-txt,.pa-index-browse,.ins-media-link,.ind-fx-go)::before{
    content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%);
  }

  /* Footer legal rail: 16px-tall links become 44px rows. */
  .foot-bot .legal{row-gap:0;}
  .foot-bot .legal>a{min-height:44px;}

  /* Cookie banner: in the stacked layout each button had flex:1 in a column, which
     collapsed it to 19px. */
  .cookie-actions .btn,.cookie-actions .btn-mini{min-height:44px;flex:0 0 auto;}
}
@media (max-width:640px){
  /* Footer accordion lists: 20px links with 13px gaps become 44px rows. */
  .site-footer .foot-col .links{gap:0;padding-top:0;padding-bottom:12px;}
  .site-footer .foot-col .links a{display:flex;align-items:center;min-height:44px;}
}

/* ── 4. Tab bars never cut a tab in half ──────────────────────────────────────
   AI and Data pages: the segmented tab bar (.bs-tabs-bar, inc/bs-explore.php) kept every
   tab on one line and scrolled sideways, so on a phone the last visible tab was cut through
   the middle. On a phone the tabs now wrap and share each row. */
@media (max-width:600px){
  .bs-tabs-bar{flex-wrap:wrap;overflow:visible;row-gap:4px;}
  .bs-tabs-bar .bs-tab{flex:1 1 auto;}
}
/* The shared filter strips (.tabs) had the same problem wherever the chips are wider than
   the screen, e.g. Global Presence cut "Americas" and hid "Europe". They wrap onto a second
   row too. Insights keeps its own equal-width row, which already fits. */
@media (max-width:560px){
  .tabs:not(.ins-filters){
    flex-wrap:wrap;overflow:visible;row-gap:8px;
    background-image:none;
  }
  .tabs.location-tabs{width:100%;border-radius:22px;}
}

/* ── 5. Infrastructure step bar stacks on phones ──────────────────────────────
   Six 215px steps in a sideways scroller meant swiping to read steps 2–6. On a phone they
   now run down the page as a vertical timeline: the rule moves from the top edge to the
   left edge and the dot sits on it. */
@media (max-width:600px){
  .infra-path-steps{
    grid-template-columns:minmax(0,1fr);overflow:visible;padding-bottom:0;
    scroll-snap-type:none;row-gap:0;
  }
  .infra-path-steps li:nth-child(n){
    padding:0 0 28px 28px;border-top:0;border-left:2px solid #a9cbdc;scroll-snap-align:none;
  }
  .infra-path-steps li:last-child{border-left-color:transparent;padding-bottom:0;}
  .infra-path-steps li:nth-child(n)::before{left:-7px;top:0;}
  .infra-path-no{margin-bottom:10px;line-height:12px;}
  .infra-path-steps h3{margin-bottom:8px;}
}

/* ── 6. Footer links show a hover state ───────────────────────────────────────
   The links only shifted colour, to the same cyan the "Explore All Industries" and
   "Contact Us" links use at rest, so a hovered link looked like an ordinary highlighted
   one. They now underline on hover as well. The logo gets a hover state too. */
.site-footer :is(.foot-col .links a,.foot-bot .legal a):hover{
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;
}
.site-footer .foot-brand .brand{transition:opacity .2s ease;}
.site-footer .foot-brand .brand:hover{opacity:.8;}
.site-footer .foot-acc:hover{color:#8ee5f3;}
@media (prefers-reduced-motion:reduce){.site-footer .foot-brand .brand{transition:none;}}

/* ── 7. Second review (22 Nov 2026) ───────────────────────────────────────────
   Found by checking all 57 pages at every width from 320 to 1240 in 10px steps. */

/* 7a. Footer link groups never run past the right edge.
   1000–1100: the five groups were sized to their widest link (max-content), 1001px in all,
   inside a 944px container at 1024, so "LinkedIn ›" and the last group were cut off.
   1200–1399: the six-column row (brand beside the groups) needs about 1300px of container,
   so it cut off the Resources/Initiatives column. It now starts at 1400; below that the
   brand keeps its row on top, as it already did at 1101–1199.
   The groups may now wrap a long link onto a second line rather than overflow. */
@media (min-width:1000px) and (max-width:1100px){
  .foot-grid{grid-template-columns:repeat(5,minmax(min-content,auto));column-gap:20px;}
}
@media (min-width:1101px) and (max-width:1399px){
  .foot-grid{grid-template-columns:repeat(5,minmax(min-content,auto));}
  .foot-grid>.foot-col.foot-brand{grid-column:1 / -1;grid-row:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:clamp(28px,5vw,64px);padding:0 0 30px;margin-bottom:34px;border-bottom:1px solid rgba(202,225,247,.12);}
  .foot-brand .brand{margin:0;}
  .foot-brand .foot-context{margin:0;}
  .foot-context br{display:none;}
  .foot-grid>.foot-col:is(.foot-col--company,.foot-col--capabilities,.foot-col--industries,.foot-col--clientsPartners){grid-row:2 / span 2;}
  .foot-grid>.foot-col.foot-col--company{border-left:0;padding-left:0;}
  .foot-grid>.foot-col.foot-col--resources{grid-column:5;grid-row:2;}
  .foot-grid>.foot-col.foot-col--initiatives{grid-column:5;grid-row:3;}
}
/* Phones: the legal rail (Privacy Policy · Contact Us) never starts a row with a separator. */
@media (max-width:640px){
  .foot-bot .legal{column-gap:0;}
  .foot-bot .legal>a.foot-rail-contact{white-space:nowrap;}
}

/* 7b. Call-to-action bands on narrow phones (320–350px).
   The band's copy and button sat in a flex row whose items could not shrink below their
   one-line width, so the button ran past the screen edge and dragged the paragraph with it
   (Digital Engineering, Managed Services, Infrastructure, Partners). The AI page FAQ card
   cut "Take the AI Readiness Assessment →" at 1101–1130 and 1190–1230 the same way.
   Long button labels now wrap inside the button instead. */
:is(.cta-band .inner,.te-closing-inner)>*{min-width:0;max-width:100%;}
:is(.cta-band,.te-closing,.bs-faq-cta-actions) .btn{max-width:100%;min-width:0;white-space:normal;text-align:center;overflow:visible;}
:is(.cta-band,.te-closing,.bs-faq-cta-actions) .btn>span:not(.arrow){white-space:normal;min-width:0;}
.bs-faq-cta-actions .btn{grid-template-columns:minmax(0,max-content) auto;justify-content:center;}

/* 7c. The assistant stays out of the way of other layers.
   It floated above the cookie preferences dialog (covering a toggle and "Reject all") and its
   teaser bubble showed over the open phone menu: the bubble sets visibility:visible itself, so
   hiding the launcher did not hide it. */
body:has(.cookie-modal.show) :is(.bx-chat,.bx-tip),
body:has(.mobile-menu.open) :is(.bx-chat,.bx-tip){visibility:hidden!important;pointer-events:none!important;}

/* 7d. Search results on phones: the page address goes under the title instead of beside it,
   and a long one ends in "…" rather than running off the panel. */
@media (max-width:640px){
  .s-res{flex-direction:column;align-items:flex-start;gap:4px;}
  .s-res .s-url{max-width:100%;overflow:hidden;text-overflow:ellipsis;}
}

/* 7e. Header logo keeps its proportions. Below 360px the header squeezed the image box
   narrower than the artwork and the logo was stretched to fit (26% narrower at 320px). */
.site-header .brand img{object-fit:contain;object-position:left center;}

/* 7f. Partner logo walls.
   Walls of 7–8 logos kept four columns on phones (a more specific rule than the phone one),
   so Infrastructure's logos were about 45px wide. They use two columns like every other wall.
   A wall with a single logo (Energy) gets one wider tile instead of half a row. INTSIG's
   artwork has no margin, so in the shared fixed logo box it looked a size larger than its
   neighbours; it is drawn at four fifths. */
@media (max-width:700px){
  .partner-logo-wall:has(> :nth-child(7)):not(:has(> :nth-child(9))),
  .partner-logo-wall:has(> :nth-child(9)){grid-template-columns:repeat(2,minmax(0,1fr));}
}
.partner-logo-wall:has(> :only-child){grid-template-columns:minmax(0,340px);}
.interior-v2 .partner-logo-wall:has(> :only-child) .partner-logo-wall__item img[style*="--lw"]{width:200px!important;height:64px!important;max-height:64px!important;}
.interior-v2 .partner-logo-wall__item img[style*="--lw"][src*="intsig"]{width:128px!important;}
@media (max-width:700px){
  .interior-v2 .partner-logo-wall__item img[style*="--lw"][src*="intsig"]{width:96px!important;}
}

/* 7g. More 44px tap areas on phones: the story/news back links, article tags, share links,
   "All news", the Energy FAQ link and the assistant teaser's close button. */
@media (max-width:768px){
  :is(.pa-kicker,.pa-return,.pa-share>a,.pa-share>button,.bs-faq-contact){position:relative;}
  :is(.pa-kicker,.pa-return,.pa-share>a,.pa-share>button,.bs-faq-contact)::after{
    content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%);
  }
  .pa-tag{min-height:36px;}
  .bx-tip-x{width:44px;height:44px;top:-6px;right:-6px;}
}
/* Tablets held in the hand (768–1100px, touch): footer links and the Global Presence
   console buttons were 20–36px tall. */
@media (min-width:641px) and (max-width:1100px) and (pointer:coarse){
  .site-footer .foot-col .links{gap:0;}
  .site-footer .foot-col .links a{display:flex;align-items:center;min-height:44px;}
  .foot-bot .legal>a{min-height:44px;}
  .gn-console :is(button,a){min-height:44px;}
}

/* 7h. Nothing below 11px: Global Presence office-card region and HQ labels (9px), the globe's
   headquarters label (9px) and region numbers (10px); the home form's "Enquiry type" (9.5px). */
.office-card-zone,.office-card-hq,.gn-hq-label-txt em,.gn-index,.ah-field-sel label{font-size:11px!important;}

/* 7i. Small layout details. */
/* Hero titles share their words out evenly between lines. */
@media (max-width:768px){
  body.interior-v2 :is(.page-hero,.hero-image,.independent-hero,.pa-index,.te-hero) h1{text-wrap:balance;}
}
/* Localisation's title is two phrases; on a phone each takes two even lines
   (Localisation / beyond words / Connections / beyond borders). */
@media (max-width:600px){
  .capability-hero--localisation h1 .hero-keyword{display:block;}
}
/* An email address is not split at its hyphen (Careers: "SEA- / HR@…"). */
.pg-careers a[href^="mailto:"]{white-space:nowrap;}
/* Thank-you page: the title and the line under it touched. */
.pg-contact-confirmation .hero .h1+.lead{margin-top:16px!important;}
/* 404 page */
.bs-404-code{margin:0 0 8px;font:700 clamp(64px,10vw,112px)/1 var(--f-display);letter-spacing:-.04em;color:var(--blue-text);opacity:.18;}

/* 7j. Long tab bars (five tabs or more, e.g. AI's delivery model) on phones: two tabs to a row. With an odd count the last tab
   takes the full row, so it reads as the end of the set rather than a stray (AI: "Operate"). */
@media (max-width:600px){
  .bs-tabs-bar:has(> .bs-tab:nth-child(5)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;}
  .bs-tabs-bar:has(> .bs-tab:nth-child(5)) .bs-tab{min-width:0;white-space:normal;text-align:center;justify-content:center;}
  .bs-tabs-bar:has(> .bs-tab:nth-child(5)) .bs-tab:last-child:nth-child(odd){grid-column:1 / -1;}
}

/* 7k. Industry name cards (AI and Data "Industries" rails): at 1280–1310 a three-line name
   such as "Banking & Financial Services" grew up into the card number, which is pinned to
   the corner. The number now takes its own row at the top and the name stays below it. */
@media (min-width:1101px){
  .bs-cards--name .ah-cap2>.ah-cap2-no{position:static;margin:0 0 auto;padding-bottom:12px;}
}
/* 7l. 320px phones: the home contact card's email address could run 3px past its card. */
.ah-ci-direct-t b{overflow-wrap:anywhere;}

/* ==========================================================================
   8. Footer brand column (24 Nov 2026, Rachel's mockup): a short accent line, "International
      headquarters in Singapore" as a white heading, "Serving clients across Asia Pacific" in muted
      text, a hairline, then a larger "LinkedIn →" in the accent colour. Stacked from 1400px and on
      phones; on 641–1399 the brand sits in its row on top (logo | headquarters | LinkedIn), so the
      hairline there is the row's own bottom border and the link has none above it.
   ========================================================================== */
.foot-brand .foot-hq{max-width:min(100%,380px);}
.foot-brand .foot-hq::before{content:"";display:block;width:30px;height:3px;border-radius:2px;background:#3bb0c9;margin:0 0 20px;}
.foot-brand p.foot-hq-title{margin:0 0 8px;max-width:none;color:#fff;font-size:20px;font-weight:700;line-height:1.35;letter-spacing:-.005em;}
.foot-brand p.foot-hq-sub{margin:0;max-width:none;color:#9fb6cc;font-size:16px;line-height:1.5;}
.foot-brand .foot-connect{width:100%;max-width:min(100%,380px);padding-top:22px;border-top:1px solid rgba(202,225,247,.16);}
.site-footer .foot-linkedin-txt{display:inline-flex;align-items:center;gap:10px;color:#8ee5f3;font-size:18px;font-weight:700;}
.site-footer .foot-linkedin-txt .arrow{transition:transform .2s ease;}
.site-footer .foot-linkedin-txt:hover{color:#fff;}
.site-footer .foot-linkedin-txt:hover .arrow{transform:translateX(3px);}
@media (prefers-reduced-motion:reduce){.site-footer .foot-linkedin-txt .arrow{transition:none;transform:none!important;}}
@media (min-width:1400px){ .foot-brand .foot-hq{margin:0 0 30px;} .foot-brand p.foot-hq-title{font-size:18px;} }
@media (min-width:641px) and (max-width:1399px){
  .foot-brand .foot-hq::before{margin-bottom:14px;}
  .foot-brand p.foot-hq-title{font-size:18px;}
  .foot-brand p.foot-hq-sub{font-size:15px;}
  .foot-brand .foot-connect{width:auto;max-width:none;padding-top:0;border-top:0;}
}
@media (max-width:640px){
  .foot-brand .foot-hq{margin:0 0 24px;}
  .foot-brand p.foot-hq-title{font-size:18px;}
  .foot-brand .foot-connect{padding-top:18px;}
}
