/* ==========================================================================
   Phones and tablets (added 29 September 2026)
   Loaded on every page, after all the other theme styles, so it can tidy up
   the small-screen layouts in one place. Nothing here applies above 1060px
   wide, so computers are unchanged. No wording is hidden: tall pictures are
   made smaller or turned into slim bands, cards are laid out more tightly,
   and small labels and links are made easier to read and tap.
   To undo all of it, remove this file's line from functions.php.
   ========================================================================== */

/* The tagline under the logo (phones and tablets, where the one beside the
   logo is hidden). It sits outside the sticky header, so it scrolls away and
   the header stays the same height. ------------------------------------------ */
.site-tagline-bar { display: none; }
@media (max-width: 1060px) {
  .site-header { background: #fff; }
  .site-tagline-bar { display: block; background: #fff; border-bottom: 1px solid var(--border); }
  .site-tagline-bar p {
    display: flex; flex-wrap: wrap; column-gap: 0.35em; margin: 8px 0; padding: 1px 0 1px 11px;
    border-left: 3px solid var(--orange);
    font-family: 'Montserrat', 'Inter', sans-serif; font-weight: 700; font-size: 0.8rem;
    line-height: 1.35; letter-spacing: 0.01em; color: var(--navy-dark);
  }
  .site-tagline-bar span + span { color: #8F5800; }
}

@media (max-width: 900px) {
  /* Links that stand on their own get a tap area at least 44px high. ------- */
  .pg-link, .svc-textlink, .ar-crumbs a { min-height: 44px; }
  .hm-link, .svc-again {
    display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0; border-bottom: 0;
    text-decoration: underline; text-decoration-color: rgba(14, 66, 140, 0.35); text-decoration-thickness: 1px; text-underline-offset: 6px;
  }
  .in-filters a { min-height: 44px; }

  /* Small labels: nothing below 12px on a phone. --------------------------- */
  .ab-partner-role, .ab-leads-word, .ab-org, .ab-stage-no, .ab-stage-note, .ab-pr-no,
  .ct-ways-label, .ct-card-kicker, .ct-path-label,
  .hm-look b, .hm-station-pillar, .hm-pillar .hm-pillar-lead, .hm-ins-date, .hm-feed-label, .hm-feed-item small,
  .in-topic, .in-feature-badge, .in-card-foot, .in-filters a small, .ar-small-head, .ar-brief h2,
  .svc-stage-pillar, .svc-screen-bar, .svc-badge, .svc-gate-label, .svc-minitrack li, .svc-scan-tag { font-size: 0.75rem; }
  .svc-minitrack li { letter-spacing: 0; }
  .svc-screen-bar { letter-spacing: 0.1em; white-space: nowrap; }
  /* The small bar on top of the example screens stays on one line */
  .hm-frame-bar { letter-spacing: 0.06em; white-space: nowrap; }
  .hm-frame-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

  /* The footer: links in two columns, each an easy tap. -------------------- */
  .site-footer { padding: 44px 0 24px; }
  .footer-grid { gap: 26px; }
  .site-footer h4 { margin-bottom: 4px; }
  .site-footer .footer-grid > div:not(:first-child) p { display: flex; align-items: center; min-height: 44px; margin: 0; }
  .site-footer .footer-grid p > a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .footer-links h4 { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 26px; padding-top: 18px; }
}

@media (max-width: 600px) {
  /* Shared: less space around sections and headings. ----------------------- */
  .svc-head { margin-bottom: 28px; }
  .svc-head h2, .hm-ins-head h2, .hm-out-title, .in-list-head h2, .ab-deal-copy h2, .svc-quiz-intro h2 { font-size: 1.72rem; }
  .svc-head .lead, .hm-ins-head .lead, .svc-cta .lead { font-size: 1.06rem; }
  .svc-cta { padding: 72px 0 64px; }
  .svc-cta h2 { font-size: 1.85rem; }
  .svc-prompt, .pg-cta .svc-prompt { margin-top: 28px; }
  .svc-cta-link { margin-top: 18px; }
  .svc-prompt input { text-overflow: ellipsis; }
  .svc-prompt input::placeholder { font-size: 0.9em; }

  /* Home ------------------------------------------------------------------- */
  .hm-hero { padding: 56px 0 40px; }
  .hm-hero-inner { gap: 22px; }
  .hm-engine { max-width: 300px; margin: 0 auto; }
  .hm-partners { margin-top: 30px; padding-top: 22px; }
  .hm-show, .hm-path, .hm-pillars, .hm-insights { padding: 60px 0; }
  .hm-outcomes { padding: 60px 0 66px; }
  .hm-out-title { margin-bottom: 34px; }
  .hm-show-grid.is-tabs { gap: 16px; }
  .hm-show-grid.is-tabs .hm-caption { margin-top: 18px; }
  .hm-show-grid.is-tabs .hm-look { margin-top: 14px; }

  /* The four stages: a compact list with the icon beside the words, joined
     by a line, instead of a tall picture above each one. */
  .hm-track { margin: 0 0 34px; }
  .hm-stations { gap: 0; }
  .hm-station { position: relative; min-height: 56px; padding: 0 0 26px 74px; text-align: left; }
  .hm-station:last-child { padding-bottom: 0; }
  .hm-station:not(:last-child)::after {
    content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, rgba(124, 196, 255, 0.55), rgba(245, 174, 49, 0.45));
  }
  .hm-station-anim { display: none; }
  .hm-station-node { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: 0; box-shadow: 0 0 0 6px rgba(47, 123, 255, 0.12), 0 0 26px rgba(47, 123, 255, 0.5); }
  .hm-station.s3 .hm-station-node { box-shadow: 0 0 0 6px rgba(245, 174, 49, 0.12), 0 0 26px rgba(245, 174, 49, 0.45); }
  .hm-station.s4 .hm-station-node { box-shadow: 0 0 0 6px rgba(156, 209, 75, 0.12), 0 0 26px rgba(156, 209, 75, 0.45); }
  .hm-station-node .svc-i { width: 24px; height: 24px; }
  .hm-station-no { margin: 2px 0 2px; }
  .hm-station h3 { font-size: 1.36rem; margin: 0 0 4px; }
  .hm-station-q { max-width: none; margin: 0 0 8px; }
  .hm-station .svc-stage-note { margin: 0 0 8px; }

  /* The three specialists */
  .hm-pillar-grid { gap: 16px; }
  .hm-pillar { padding: 22px 20px 20px; }
  .hm-pillar-top { margin-bottom: 14px; }
  .hm-pillar-icon { width: 46px; height: 46px; border-radius: 14px; }
  .hm-pillar-icon .svc-i { width: 22px; height: 22px; }
  .hm-pillar-logo { height: 34px; }
  .hm-pillar.p3 .hm-pillar-logo { height: 48px; }
  .hm-pillar h3 { font-size: 1.22rem; margin-bottom: 8px; }
  .hm-pillar p { margin-bottom: 12px; }
  .hm-pillar .hm-pillar-lead { margin-bottom: 10px; }
  .hm-pillars-note { margin-top: 28px; }

  /* Latest thinking: the picture becomes a slim band */
  .hm-ins-head { margin-bottom: 22px; }
  .hm-ins-grid { gap: 14px; }
  .hm-ins-art { aspect-ratio: auto; height: 40px; }
  .hm-ins-body { padding: 16px 18px 18px; }
  .hm-ins-body h3 { margin: 6px 0 8px; }
  .hm-ins-body p { margin-bottom: 12px; }

  /* About, Contact and Insights heroes -------------------------------------- */
  .pg-hero { padding: 52px 0 48px; }
  .pg-hero-inner { gap: 32px; }
  .ab-hero { padding-bottom: 48px; }

  /* About ------------------------------------------------------------------ */
  .ab-const { max-width: 310px; }
  .ab-stats { margin-top: 32px; }
  .ab-partners, .ab-path, .ab-principles, .ab-deal-section { padding: 60px 0; }
  .ab-team { padding: 64px 0 60px; }

  .ab-partner-grid { gap: 16px; }
  .ab-partner { padding: 22px 20px 20px; }
  .ab-partner-top { min-height: 0; margin-bottom: 12px; }
  .ab-partner-logo img { height: 44px; }
  .ab-partner.p3 .ab-partner-logo img { height: 56px; }
  .ab-partner-icon { width: 44px; height: 44px; border-radius: 13px; }
  .ab-partner-icon .svc-i { width: 22px; height: 22px; }
  .ab-partner h3 { font-size: 1.26rem; margin: 6px 0 8px; }
  .ab-partner > p { margin-bottom: 16px; }
  .ab-partner-foot { gap: 10px; padding-top: 14px; }

  /* The team: photo beside the name, biography underneath */
  .ab-people { gap: 16px; }
  .ab-person {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: center;
    text-align: left; padding: 22px 20px;
  }
  .ab-person-photo { grid-row: 1 / span 2; width: 96px; height: 96px; margin: 0; }
  .ab-person-photo .aia-avatar { --s: 84px; font-size: 1.5rem; }
  .ab-person h3, .ab-person-role { grid-column: 2; }
  .ab-person h3 { align-self: end; font-size: 1.16rem; margin: 0 0 2px; }
  .ab-person-role { align-self: start; margin: 0; font-size: 0.9rem; }
  .ab-org { grid-column: 1 / -1; justify-self: start; margin: 14px 0 0; letter-spacing: 0.1em; }
  .ab-person-bio { grid-column: 1 / -1; margin-top: 12px; }

  .ab-stages { gap: 12px; }
  .ab-stage-head { padding: 18px 18px 10px; }
  .ab-stage-body { padding: 0 18px 20px; }
  .ab-lanes-note { margin-top: 22px; }
  .ab-path-actions { margin-top: 22px; }

  /* How we work: the small picture sits beside the heading */
  .ab-pr-grid { gap: 14px; }
  .ab-pr { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 20px; }
  .ab-pr-art { grid-row: 1 / span 2; width: 88px; height: 88px; margin: 0; border-radius: 14px; }
  .ab-pa { width: 80px; height: 48px; }
  .ab-pr-no, .ab-pr h3 { grid-column: 2; }
  .ab-pr-no { align-self: end; }
  .ab-pr h3 { align-self: start; margin: 2px 0 0; font-size: 1.3rem; }
  .ab-pr p { grid-column: 1 / -1; margin-top: 12px; }

  .ab-deal-grid { gap: 28px; }
  .ab-deal { padding: 20px 16px 22px; }
  .ab-deal-down, .ab-deal-arrow { height: 30px; }
  .ab-deal-contract { padding: 16px 14px; }
  .ab-deal-seal { width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; }
  .ab-deal-seal .svc-i { width: 24px; height: 24px; }
  .ab-deal-org { width: 60px; height: 60px; margin-bottom: 10px; }
  .ab-deal-org .svc-i { width: 28px; height: 28px; }

  /* Services ---------------------------------------------------------------- */
  .svc-hero { padding: 56px 0 104px; }
  .svc-proof { margin: -80px 0 56px; }
  .svc-path { padding-bottom: 64px; }
  .svc-stages { gap: 14px; }
  .svc-stage { padding: 20px 18px 18px; }
  .svc-stage-top { min-height: 0; align-items: center; }
  .svc-stage .svc-anim { width: 84px; height: 56px; }
  .svc-stage h3 { margin: 6px 0 4px; }
  .svc-quiz-section { padding: 64px 0; }
  .svc-quiz-wrap { gap: 28px; }
  .svc-sectors-top { padding: 60px 0 120px; }
  .svc-sectors-body { padding-bottom: 64px; }
  .svc-page .sector-panel.svc-dossier { padding: 22px 16px; }
  .svc-dossier-head { gap: 20px; }
  .svc-timeline { margin-top: 28px; }
  .svc-timeline::before { left: 17px; }
  .svc-timeline > li { padding-left: 48px; margin-bottom: 12px; }
  .svc-tl-card { padding: 12px 14px; }
  .svc-tl-card h4 { margin: 6px 0 4px; }
  .svc-stats { gap: 12px; margin-top: 22px; }
  .svc-stat { padding: 18px 18px 16px; }
  .svc-dossier-second { margin-top: 28px; padding-top: 24px; gap: 20px; }
  .svc-callout { margin-top: 22px; padding: 14px 16px; }
  .svc-dossier-cta { margin-top: 22px; }
  .svc-flow-section { padding: 64px 0; }
  .svc-flow { margin-bottom: 40px; }
  .svc-flow-steps { gap: 18px; }
  .svc-flow-step { grid-template-columns: 72px 1fr; }
  .svc-flow-icon, .f3 .svc-flow-icon { width: 72px; height: 72px; border-radius: 20px; }
  .f3 .svc-flow-icon { border-radius: 50%; }
  .svc-flow-icon .svc-i, .f3 .svc-flow-icon .svc-i { width: 30px; height: 30px; }
  .svc-flow-track { left: 35px; }
  .svc-guards { gap: 12px; }
  .svc-guard { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px; }
  .svc-guard-icon { width: 44px; height: 44px; margin: 0; }
  .svc-guard h3 { margin: 0; }
  .svc-guard p { grid-column: 1 / -1; margin-top: 10px; }
  .svc-how { padding: 64px 0; }
  .svc-gate-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 20px 18px; }
  .svc-gate-num { grid-column: 1 / -1; }
  .svc-gate-icon { width: 48px; height: 48px; margin: 10px 0 0; border-radius: 14px; }
  .svc-gate-icon .svc-i { width: 24px; height: 24px; }
  .svc-gate-step h3 { margin: 10px 0 0; }
  .svc-gate-step p { grid-column: 1 / -1; margin-top: 12px; }
  .svc-gate { height: 76px; }
  .svc-how-note { margin-top: 32px; }

  /* Insights listing and articles: the picture becomes a slim band ---------- */
  .in-feature-art { aspect-ratio: auto; height: 58px; }
  .in-feature-badge { top: 14px; left: 14px; }
  .in-list, .ar-related { padding: 56px 0; }
  .in-list-head { margin-bottom: 22px; }
  .in-grid { gap: 14px; }
  .in-card-art, .in-grid.is-two .in-card-art { aspect-ratio: auto; height: 50px; min-height: 0; }
  .in-card-art .in-topic { left: 14px; bottom: 11px; }
  .in-card-body, .in-grid.is-two .in-card-body { padding: 16px 18px 16px; }
  .in-card-body p { margin-bottom: 14px; }
  .in-brief, .in-brief.is-compact { padding-bottom: 56px; }
  .in-brief-inner, .in-brief.is-compact .in-brief-inner { padding: 30px 20px; }
  .in-brief h2, .in-brief.is-compact h2 { font-size: 1.8rem; }
  .in-brief-text { font-size: 1.04rem; }
  .ar-hero { padding: 40px 0 40px; }
  .ar-crumbs { margin-bottom: 16px; }
  .ar-dek { margin-bottom: 22px; }
  .ar-wrap { padding: 40px 0 52px; }
  .ar-end { gap: 22px; margin-top: 36px; }

  /* Contact ------------------------------------------------------------------ */
  .ct-main { padding: 56px 0 64px; }
  .ct-grid { gap: 36px; }
  .ct-next h2 { margin-bottom: 18px; }
  .ct-steps { gap: 20px; }
  .ct-path-mini { margin-top: 24px; }
}

/* About, phones and tablets (added 30 September 2026): the orange "Meet the team"
   button in the top section is hidden, so visitors read the page in order and meet
   the Alliance partners before the extended team. The "How engagements run" button stays.
   Computers still show both buttons. --------------------------------------------- */
@media (max-width: 1060px) {
  .ab-hero .pg-actions a[href="#team"] { display: none; }
}