/* MS Pay site — responsive layer (25.08.2026). Pure CSS, additive: nothing changes ≥1024px. */
@media (max-width: 1023px){
  [style*="grid-template-columns:repeat(4,1fr)"],[style*="grid-template-columns: repeat(4,1fr)"],[style*="grid-template-columns: repeat(4, 1fr)"],[style*="grid-template-columns: repeat(4, 1fr)"]{grid-template-columns:repeat(2,1fr) !important}
  [style*="grid-template-columns:1.4fr 1fr 1fr 1fr"],[style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"]{grid-template-columns:1fr 1fr !important}
  [style*="grid-template-columns:1.4fr 1fr 1fr 1fr"] > div:first-child,[style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"] > div:first-child{grid-column:1 / -1}
  [style*="grid-template-columns:0.9fr 1.1fr"],[style*="grid-template-columns:1.5fr 1fr"],[style*="grid-template-columns: 0.9fr 1.1fr"],[style*="grid-template-columns: 1.5fr 1fr"]{grid-template-columns:1fr !important}
  h1[style*="font-size:76px"],h1[style*="font-size: 76px"]{font-size:clamp(40px,7.5vw,64px) !important}
  h1[style*="font-size:68px"],h1[style*="font-size: 68px"]{font-size:clamp(38px,7vw,58px) !important}
  [style*="padding:72px 64px"],[style*="padding: 72px 64px"]{padding:48px 32px !important}
  [style*="padding:88px 64px"],[style*="padding: 88px 64px"]{padding:64px 32px !important}
  nav [style*="gap:26px"],nav [style*="gap: 26px"]{gap:18px !important}
  footer a,nav a{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}
  nav a[style*="border-radius"]{min-height:40px}
}
@media (max-width: 767px){
  /* every multi-column grid stacks; the two-column input pairs in Contact too */
  [style*="grid-template-columns:repeat(3,1fr)"],[style*="grid-template-columns: repeat(3, 1fr)"],[style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],[style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:1fr 1fr"],[style*="grid-template-columns:1.15fr 1fr"],[style*="grid-template-columns:1.4fr 1fr 1fr 1fr"],[style*="grid-template-columns: 1fr 1fr"],[style*="grid-template-columns: 1.15fr 1fr"],[style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"]{grid-template-columns:1fr !important}
  footer [style*="grid-template-columns:1.4fr 1fr 1fr 1fr"],footer [style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"]{grid-template-columns:1fr 1fr !important;gap:28px 20px !important;margin-bottom:28px !important}
  footer [style*="grid-template-columns:1.4fr 1fr 1fr 1fr"] > div:first-child,footer [style*="grid-template-columns: 1.4fr 1fr 1fr 1fr"] > div:first-child{grid-column:1 / -1}
  footer [style*="gap:12px"],footer [style*="gap: 12px"]{gap:0 !important}
  footer h4{margin-bottom:2px !important}
  /* content column padding */
  [style*="padding:96px 40px 48px"],[style*="padding: 96px 40px 48px"]{padding:56px 20px 32px !important}
  [style*="padding:16px 40px 96px"],[style*="padding:24px 40px 96px"],[style*="padding: 16px 40px 96px"],[style*="padding: 24px 40px 96px"]{padding:8px 20px 64px !important}
  [style*="padding:112px 40px"],[style*="padding: 112px 40px"]{padding:64px 20px !important}
  [style*="padding:0 40px 112px"],[style*="padding: 0 40px 112px"]{padding:0 20px 64px !important}
  [style*="padding:64px 40px 40px"],[style*="padding: 64px 40px 40px"]{padding:40px 20px 32px !important}
  [style*="padding:16px 40px;"],[style*="padding: 16px 40px;"]{padding:12px 20px !important}
  [style*="padding:72px 64px"],[style*="padding:88px 64px"],[style*="padding:48px;"],[style*="padding: 72px 64px"],[style*="padding: 88px 64px"],[style*="padding: 48px;"]{padding:32px 22px !important}
  [style*="padding:36px;"],[style*="padding: 36px;"]{padding:26px !important}
  /* type scale */
  h1[style*="font-size:76px"],h1[style*="font-size:68px"],h1[style*="font-size: 76px"],h1[style*="font-size: 68px"]{font-size:clamp(34px,10vw,44px) !important;max-width:none !important}
  h2[style*="font-size:48px"],h2[style*="font-size:48px"],h2[style*="font-size:48px"],h2[style*="font-size: 48px"],h2[style*="font-size: 48px"],h2[style*="font-size: 48px"]{font-size:clamp(28px,8vw,36px) !important}
  [style*="font-size:28px"],[style*="font-size: 28px"]{font-size:28px !important}
  [style*="font-size:48px;font-weight:700"],[style*="font-size: 48px;font-weight:700"]{font-size:48px !important}
  header [style*="gap:40px"] span,header [style*="gap: 40px"] span{font-size:14px !important}
  p[style*="font-size:20px"],p[style*="font-size: 20px"],p[style*="font-size: 20px"]{font-size:16px !important}
  /* nav: logo + CTA on one row, links scroll horizontally beneath */
  nav > div:first-of-type{flex-wrap:wrap !important;gap:4px 8px !important;padding:10px 12px !important}
  nav > div:first-of-type > a:first-child img{height:22px !important}
  nav > div:first-of-type > div:nth-child(3) > a:not([style*="border-radius"]){font-size:14px !important}
  nav > div:first-of-type > a:first-child{flex:0 0 auto}
  nav > div:first-of-type > div:nth-child(3){flex:0 0 auto;margin-left:auto;gap:10px !important}
  nav > div:first-of-type > div:nth-child(3) > span{font-size:12px !important}
  nav > div:first-of-type > div:nth-child(2){order:3;width:100%;overflow-x:auto;justify-content:flex-start !important;gap:18px !important;padding:2px 0 6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  nav > div:first-of-type > div:nth-child(2)::-webkit-scrollbar{display:none}
  nav > div:first-of-type > div:nth-child(2) > a{white-space:nowrap;padding:8px 0}
  nav > div:first-of-type > div:nth-child(3){margin-left:auto}
  nav [style*="padding:11px 22px"],nav [style*="padding: 11px 22px"]{padding:9px 12px !important;font-size:12px !important}
  /* hero CTAs + stat fragments stack */
  header [style*="display:flex;gap:12px"],header [style*="display: flex;gap:12px"]{flex-direction:column;width:100%}
  header [style*="display:flex;gap:12px"] > a,header [style*="display: flex;gap:12px"] > a{text-align:center}
  header [style*="display:flex;gap:40px"],header [style*="display: flex;gap:40px"]{flex-direction:column;gap:10px !important;align-items:center}
  /* routing panel: header row + feed rows */
  [data-routing] [style*="padding:20px 26px 18px"],[data-routing] [style*="padding: 20px 26px 18px"]{padding:16px 16px 12px !important}
  [data-routing] [style*="padding:22px 24px"],[data-routing] [style*="padding: 22px 24px"]{padding:18px 16px !important}
  [data-feed] > div{padding:12px 14px !important}
  [data-feed] > div > span:nth-child(2) > span:first-child{white-space:normal !important}
  /* dark CTA + section CTAs stack */
  [style*="display:flex;gap:12px;margin-top:8px"],[style*="display: flex;gap:12px;margin-top:8px"]{flex-direction:column;width:100%}
  [style*="display:flex;gap:12px;margin-top:8px"] > a,[style*="display: flex;gap:12px;margin-top:8px"] > a{text-align:center}
  /* footer regulator strip and columns */
  footer [style*="gap:24px;flex-wrap:wrap"],footer [style*="gap: 24px;flex-wrap:wrap"]{gap:10px 18px !important}
  footer h4{margin-top:8px !important}
  /* tap targets */
  footer a{min-height:40px;box-sizing:border-box;display:inline-flex;align-items:center}
  nav a:not([style*="border-radius"]){min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}
  nav a[style*="border-radius"]{min-height:40px;box-sizing:border-box;display:inline-flex;align-items:center}
  nav > div:first-of-type > div:nth-child(2) > a{min-height:40px}
  details summary{min-height:44px}
  /* Both-rails timing column never wraps mid-figure */
  [data-rail-row] > span:last-child{white-space:nowrap}
}
@media (max-width: 420px){
  [style*="padding:96px 40px 48px"],[style*="padding: 96px 40px 48px"]{padding:44px 16px 28px !important}
  [style*="padding:112px 40px"],[style*="padding:0 40px 112px"],[style*="padding:16px 40px 96px"],[style*="padding:24px 40px 96px"],[style*="padding: 112px 40px"],[style*="padding: 0 40px 112px"],[style*="padding: 16px 40px 96px"],[style*="padding: 24px 40px 96px"]{padding-left:16px !important;padding-right:16px !important}
  [style*="padding:64px 40px 40px"],[style*="padding: 64px 40px 40px"]{padding:36px 16px 28px !important}
}

/* ── Mobile navigation (hamburger + sheet) and mobile hero still — 27.08.2026 ── */
.nav-menu-btn{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:100px;background:#F4F5F7;color:#191C1F;cursor:pointer;padding:0;flex:0 0 auto}
.nav-menu-btn .i-close{display:none}
.nav-menu-btn[aria-expanded="true"] .i-open{display:none}
.nav-menu-btn[aria-expanded="true"] .i-close{display:block}
.nav-sheet{display:none}

@media (max-width: 1023px){
  nav > div:first-of-type{flex-wrap:nowrap !important;justify-content:space-between !important;gap:10px !important;padding:12px 16px !important;min-height:64px}
  nav > div:first-of-type > a:first-child img{height:31px !important}
  nav > div:first-of-type > div:nth-child(2){display:none !important}          /* desktop link row */
  nav > div:first-of-type > div:nth-child(3){margin-left:auto;gap:8px !important;order:0}
  nav > div:first-of-type > div:nth-child(3) > span{display:none !important}    /* EN */
  nav > div:first-of-type > div:nth-child(3) > a[href*="app.ms-pay"]{display:none !important}   /* Sign in → in sheet */
  nav [style*="padding:11px 22px"],nav [style*="padding: 11px 22px"]{padding:10px 14px !important;font-size:14px !important}
  .nav-menu-btn{display:inline-flex}
  .nav-sheet{display:block;position:fixed;left:0;right:0;top:64px;bottom:0;background:#FFFFFF;z-index:9;display:flex;flex-direction:column;justify-content:flex-start;padding:6px 20px calc(20px + env(safe-area-inset-bottom));overflow:auto;animation:sheetIn .22s ease-out;border-top:1px solid #EEF0F2}
  .nav-sheet[hidden]{display:none}
  .nav-sheet-links{display:flex;flex-direction:column;order:1}
  .nav-sheet-links a{display:flex;align-items:center;padding:14px 4px;font-size:20px;font-weight:600;letter-spacing:-0.015em;color:#191C1F;border-bottom:1px solid #F2F4F6;min-height:44px}
  .nav-sheet-links a:last-child{border-bottom:none}
  .nav-sheet-links a[aria-current="page"]{color:#191C1F;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}
  .nav-sheet-cta{display:flex;flex-direction:column;gap:10px;padding-top:16px;order:2;border-top:none}
  .nav-sheet-cta a{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:100px;font-size:16px;font-weight:600}
  .nav-sheet-signin{background:#F4F5F7;color:#191C1F}
  .nav-sheet-apply{}
  html.menu-open,html.menu-open body{overflow:hidden}
  html.menu-open nav{-webkit-backdrop-filter:none !important;backdrop-filter:none !important;background:#FFFFFF !important}
  @keyframes sheetIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
}
@media (max-width: 767px){
  /* hero: phones play the film — approved treatment 30.08.2026 */
  [data-hero-wrap] > video[data-hero-video]{
    display:block !important;
    position:absolute !important; left:50% !important; top:96px !important;
    transform:translate(-50%,0) !important;
    width:100% !important; height:auto !important;
    object-fit:initial !important;
    -webkit-mask-image:none !important; mask-image:none !important;
    opacity:1 !important;
    filter:brightness(1.02) contrast(1.3) saturate(1.5) !important;
  }
  div[data-hero-wrap]{background:#fff !important;filter:none !important}
  div[data-hero-wrap]::before{content:none !important}
  [data-hero-wrap] header{background:radial-gradient(ellipse 62% 58% at 50% 46%,rgba(255,255,255,0.42) 0%,rgba(255,255,255,0.2) 45%,rgba(255,255,255,0) 72%) !important;padding:72px 24px 32px !important;gap:16px !important}
  [data-hero-wrap] h1{font-size:28px !important}
  [data-hero-wrap] header p{font-size:16px !important;max-width:42ch !important}
  [data-hero-wrap] header a{padding:12px 22px !important;font-size:14px !important}
  [data-hero-wrap] header span[data-i18n="home.eyebrow"]{font-size:12px !important;padding:6px 14px !important}
  h1[style*="font-size:76px"],h1[style*="font-size: 76px"]{font-size:clamp(31px,8.8vw,38px) !important;letter-spacing:-0.04em !important}
  /* stat pills: two full-width rows */
  header [style*="gap:40px"],header [style*="gap: 40px"]{width:100%;gap:8px !important}
  header [style*="gap:40px"] > span,header [style*="gap: 40px"] > span{display:flex;justify-content:center;width:100%;box-sizing:border-box}
  /* tighter cards */
  [style*="padding:36px;"],[style*="padding: 36px;"]{padding:22px !important}
}

/* ── Language switcher — 27.08.2026 ── */
.lang{position:relative}
.lang-btn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:1px solid #E3E6E9;border-radius:100px;background:#FFFFFF;color:#191C1F;font:inherit;font-size:14px;font-weight:600;letter-spacing:0.02em;cursor:pointer}
.lang-btn:hover{background:#F4F5F7}
.lang-list{display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:200px;padding:6px;background:#FFFFFF;border:1px solid #EEF0F2;border-radius:16px;box-shadow:0 20px 40px -16px rgba(25,28,31,0.25),0 2px 6px rgba(25,28,31,0.06);z-index:30}
.lang.open .lang-list{display:block}
.lang-list [data-lang-item]{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:10px 12px;border:0;border-radius:10px;background:none;color:#191C1F;font:inherit;font-size:14px;cursor:pointer;text-align:left}
.lang-list [data-lang-item]:hover{background:#F4F5F7}
.lang-list [data-lang-item][aria-selected="true"]{background:#F4F5F7;font-weight:600}
.lang-list .lang-code{font-size:12px;font-weight:600;letter-spacing:0.06em;color:#676D76}
[dir="rtl"] .lang-list{right:auto;left:0}
.nav-sheet-lang{display:none}
@media (max-width: 1023px){
  nav > div:first-of-type > div:nth-child(3) > .lang{display:none !important}   /* switcher lives in the sheet on small screens */
  .nav-sheet-lang{display:flex;flex-wrap:wrap;gap:6px;padding:18px 0 4px;margin-top:auto;order:3;border-top:1px solid #EEF0F2}
  .nav-sheet-lang [data-lang-item]{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid #E3E6E9;border-radius:100px;background:#FFFFFF;color:#191C1F;font:inherit;font-size:14px;cursor:pointer}
  .nav-sheet-lang [data-lang-item] .lang-code{display:none}
  .nav-sheet-lang [data-lang-item][aria-selected="true"]{background:#191C1F;border-color:#191C1F;color:#FFFFFF}
}

/* ── Routing panel on phones (v2, 27.08.2026): reading order follows the interaction —
   rails toggle first, the activity feed it drives directly beneath it, then Instant FX, then Held natively. ── */
@media (max-width: 767px){
  [data-routing] [style*="grid-template-columns:1.15fr 1fr"],[data-routing] [style*="grid-template-columns: 1.15fr 1fr"]{display:flex !important;flex-direction:column !important}
  [data-routing] [style*="grid-template-columns:1.15fr 1fr"] > div:last-child,[data-routing] [style*="grid-template-columns: 1.15fr 1fr"] > div:last-child{display:contents !important}
  [data-routing] [style*="grid-template-columns:1.15fr 1fr"] > div:last-child > div:nth-child(1),[data-routing] [style*="grid-template-columns: 1.15fr 1fr"] > div:last-child > div:nth-child(1){order:1}
  [data-routing] [style*="grid-template-columns:1.15fr 1fr"] > .glass-card:first-child,[data-routing] [style*="grid-template-columns: 1.15fr 1fr"] > .glass-card:first-child{order:2}
  [data-routing] [style*="grid-template-columns:1.15fr 1fr"] > div:last-child > div:nth-child(2),[data-routing] [style*="grid-template-columns: 1.15fr 1fr"] > div:last-child > div:nth-child(2){order:3}
  [data-routing] [style*="grid-template-columns:1.15fr 1fr"] > div:last-child > div:nth-child(3),[data-routing] [style*="grid-template-columns: 1.15fr 1fr"] > div:last-child > div:nth-child(3){order:4}
  [data-feed]{min-height:0 !important}
}

/* ── Phones: kill iOS font-boosting, tidy the footer legal block, compact the routing panel — 27.08.2026 ── */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (max-width: 767px){
  /* footer legal block: quieter, tighter, consistent */
  footer [style*="padding-top:20px"],footer [style*="padding-top: 20px"]{gap:10px !important;font-size:12px !important;line-height:1.6 !important}
  footer span[data-i18n="footer.copyright"],footer span[data-i18n="footer.office"],footer span[data-i18n^="footer.reg."]{font-size:12px !important;line-height:1.6 !important}
  footer [style*="font-size:12px"],footer [style*="font-size: 12px"]{font-size:12px !important}
  /* routing panel: compact so the whole flow fits more of one screen */
  [data-routing] [style*="grid-template-columns:1.15fr 1fr"],[data-routing] [style*="grid-template-columns: 1.15fr 1fr"]{gap:6px !important}
  [data-routing] [style*="padding:20px 26px 18px"],[data-routing] [style*="padding: 20px 26px 18px"]{padding:14px 14px 10px !important}
  [data-routing] [style*="padding:22px 24px"],[data-routing] [style*="padding: 22px 24px"]{padding:14px 14px !important;gap:10px !important}
  [data-routing] [style*="font-size:28px"],[data-routing] [style*="font-size: 28px"]{font-size:28px !important}
  [data-routing] [style*="font-size:20px"],[data-routing] [style*="font-size: 20px"]{font-size:16px !important}
  [data-routing] [style*="letter-spacing:0.06em"],[data-routing] [style*="letter-spacing: 0.06em"]{font-size:12px !important}
  [data-routing] [data-rail-tab]{padding:7px 13px !important;font-size:12px !important}
  [data-rail-note]{font-size:12px !important}
  [data-feed]{gap:6px !important}
  [data-feed] > div{padding:8px 12px !important;gap:10px !important;border-radius:12px !important}
  [data-feed] > div > span:first-child{width:28px !important;height:28px !important;font-size:12px !important}
  [data-feed] [style*="font-size:14px"],[data-feed] [style*="font-size: 14px"]{font-size:14px !important}
  [data-feed] [style*="font-size:12px"],[data-feed] [style*="font-size: 12px"]{font-size:12px !important}
  [data-hold] [style*="font-size:14px"],[data-hold] [style*="font-size: 14px"]{font-size:14px !important}
  [data-swap] [style*="font-size:16px"],[data-swap] [style*="font-size: 16px"]{font-size:16px !important}
  [data-swap] [style*="padding:11px 14px"],[data-swap] [style*="padding: 11px 14px"]{padding:8px 12px !important}
  [data-swap-rate]{font-size:12px !important}
}

/* ── Phones: routing panel condensed to one screen — approved 30.08.2026 ── */
@media (max-width:767px){
  div[data-routing]{padding:4px !important}
  div[data-routing] [style*="padding:20px 26px 18px"],div[data-routing] [style*="padding: 20px 26px 18px"]{padding:8px 10px 5px !important;gap:8px !important}
  div[data-routing] [style*="font-size:28px"],div[data-routing] [style*="font-size: 28px"]{font-size:20px !important}
  div[data-routing] [style*="font-size:20px"],div[data-routing] [style*="font-size: 20px"]{font-size:12px !important}
  div[data-routing] [style*="padding:22px 24px"],div[data-routing] [style*="padding: 22px 24px"]{padding:8px 11px !important;gap:6px !important;border-radius:14px !important}
  div[data-routing] [style*="grid-template-columns:1.15fr 1fr"],div[data-routing] [style*="grid-template-columns: 1.15fr 1fr"]{gap:4px !important}
  div[data-routing] [data-feed]{gap:4px !important;min-height:0 !important}
  div[data-routing] [data-feed] > div{padding:5px 9px !important;gap:8px !important;border-radius:10px !important}
  div[data-routing] [data-feed] > div:nth-child(n+3){display:none !important}
  div[data-routing] [data-feed] > div > span:first-child{width:20px !important;height:20px !important;font-size:12px !important}
  div[data-routing] [data-rail-tab]{padding:4px 9px !important;font-size:12px !important}
  div[data-routing] [style*="letter-spacing:0.06em"],div[data-routing] [style*="letter-spacing: 0.06em"]{font-size:12px !important}
  div[data-routing] [data-swap] [style*="padding:11px 14px"],div[data-routing] [data-swap] [style*="padding: 11px 14px"]{padding:4px 9px !important;border-radius:10px !important}
  div[data-routing] [data-swap] [style*="width:30px"],div[data-routing] [data-swap] [style*="width: 30px"]{width:18px !important;height:18px !important;margin:-10px 0 !important}
  div[data-routing] [data-swap] svg{width:10px !important;height:10px !important}
  div[data-routing] [style*="font-size:16px"],div[data-routing] [style*="font-size: 16px"]{font-size:12px !important}
  div[data-routing] [style*="font-size:14px"],div[data-routing] [style*="font-size: 14px"]{font-size:12px !important}
  div[data-routing] [style*="font-size:12px"],div[data-routing] [style*="font-size: 12px"]{font-size:12px !important}
  div[data-routing] [style*="font-size:12px"],div[data-routing] [style*="font-size: 12px"]{font-size:12px !important}
  div[data-routing] [data-hold]{line-height:1.25}
  div[data-routing] [data-hold="Stables"]{padding-top:4px !important}
  div[data-routing] [data-hold="Stables"] + [data-hold="Stables"]{padding-top:0 !important;border-top:none !important}
}

/* ── Contact link cards: hover lift to match the other cards — 30.08.2026 ── */
.contact-card{transition:transform .35s cubic-bezier(0.16,1,0.3,1),box-shadow .35s cubic-bezier(0.16,1,0.3,1),background .35s}
.contact-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(25,28,31,0.08);background:#EFF1F4 !important;color:inherit}

/* ── Rails section: compact on phones — 30.08.2026 ── */
@media (max-width:767px){
  #rails .glass{padding:16px 10px !important}
  #rails h2{font-size:28px !important;line-height:1.12 !important}
  #rails p[data-i18n="home.rails.body"]{font-size:12px !important;line-height:1.45 !important;max-width:46ch !important}
  #rails span[data-i18n="home.rails.eye"]{display:none !important}
  #rails [style*="margin-bottom:56px"]{margin-bottom:12px !important;gap:8px !important}
  #rails .glass-card{padding:10px 10px !important}
  #rails [data-rise-group]{gap:6px !important}
  #rails [style*="margin-bottom:56px"]{margin-bottom:26px !important}
  #rails [style*="margin-bottom:16px"]{margin-bottom:3px !important}
  #rails span[style*="font-size:20px"]{font-size:16px !important}
  #rails [data-rail-row]{padding:6px 0 !important;gap:8px !important}
  #rails [data-rail-row] > span:first-child{width:26px !important;height:26px !important;font-size:12px !important}
  #rails [data-rail-row] > span:first-child svg{width:12px !important;height:12px !important}
  #rails [data-rail-row] span[style*="font-size:16px"]{font-size:14px !important}
  #rails [data-rail-row] span[style*="font-size:12px"]{font-size:12px !important}
  #rails [data-rail-row] > span[style*="font-size:14px"]{font-size:12px !important}
}

/* v2: sticky mobile apply bar */
.mobile-cta{display:none}
@media (max-width:767px){
  .mobile-cta{display:block;position:fixed;left:0;right:0;bottom:0;z-index:40;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,0.86);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid #EEF0F2;transform:translateY(110%);transition:transform .32s ease}
  .mobile-cta.show{transform:translateY(0)}
  .mobile-cta a{display:flex;height:50px;width:100%;font-size:16px}
  body{padding-bottom:0}
}

/* A5 — touch targets: 44px minimum on phones (WCAG 2.5.5 / Apple HIG) */
@media (max-width:767px){
  footer a{min-height:36px;display:inline-flex;align-items:center}
  .nav-menu-btn{min-width:44px;min-height:44px}
  .btn-sm,.btn-link{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  [data-rail-tab]{position:relative}
  [data-rail-tab]::after{content:"";position:absolute;inset:-11px -2px}
  .seg.seg-scene > button{min-height:44px}
  a.more,a[href="/licences"]{display:inline-flex;align-items:center;min-height:44px}
  input[type=checkbox]{width:22px;height:22px;flex-shrink:0}
}

/* nav fits one row between 1024 and 1199 (links tighten before the CTA wraps) */
@media (min-width:1024px) and (max-width:1199px){
  nav > div:first-of-type{gap:16px !important;flex-wrap:nowrap !important}
  nav > div:first-of-type > div:nth-child(2){gap:18px !important}
  nav > div:first-of-type > div:nth-child(3){gap:12px !important;flex-shrink:0}
}
