/* Phones and small tablets (loaded below 861px, last in the head). Desktop is untouched.
   Rules of thumb: one screen should say one thing; anything a finger can hit is 44px or
   more; nothing depends on hover; what cannot fit opens on tap or swipes sideways. */

a,button,summary,select,label{-webkit-tap-highlight-color:rgba(11,65,140,.14);touch-action:manipulation;}
/* Layout rules below set display; whatever a page script hides stays hidden. */
[hidden],.product-card.hidden{display:none !important;}
[id]{scroll-margin-top:88px !important;}
section[id]{scroll-margin-top:72px !important;}

/* Content is there at once: a scroll-in fade reads as lag under a moving thumb. */
[data-reveal]{opacity:1 !important;translate:none !important;transition:none !important;}
[data-reveal] .app-photo,[data-reveal] .case-photo{clip-path:none !important;}

/* ---- rhythm: half the desktop gaps ---- */
main > section:not(.hero):not(.page-head):not(.art-head):not(#commitments):not(#global-presence):not(#features){padding-top:44px;padding-bottom:44px;}
main > section.dark + section.dark{padding-top:0;}
.section-head{margin-bottom:22px;}
.section-head h2{font-size:clamp(24px,6.6vw,28px);line-height:1.2;margin-bottom:8px;}
.section-head p{font-size:16px;line-height:1.55;}
.page-head h1,.art-head h1{font-size:clamp(30px,8.6vw,38px) !important;line-height:1.12;}
.page-head.has-bg,.page-head{padding-top:100px !important;padding-bottom:36px !important;}
.art-head{padding-top:100px !important;}
.final-cta{padding-top:48px !important;padding-bottom:48px !important;}

/* ---- buttons: a thumb's width and height ---- */
.btn,.btn-ghost,.link-row a,.ic-chips a,.qv-actions .btn,.pc-ds{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:.4em;margin-right:0;font-size:15px;}
.link-row a .arr{margin-left:0;}
.link-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;}
.link-row a{width:100%;}
.pp-cta,.cap-cta,.tech-cta,.sup-cta,.hero-cta,.cta-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;}
.pp-cta .btn,.cap-cta .btn,.tech-cta .btn,.sup-cta .btn,.about-copy .btn,.footer-cta .btn,.rfq-foot .btn,.final-cta .btn,section.dark .btn{width:100%;}
.rfq-foot .btn{min-height:52px;}
.qv-actions{display:grid;grid-template-columns:2fr 1fr;gap:10px;}
.res-back,.dl-more a,.footer-bottom a,.about-copy a:not(.btn){min-height:44px;display:inline-flex;align-items:center;}
.dl-more{gap:0 18px;}
a.btn:active,button.btn:active,.link-row a:active{opacity:.72;}
a.product-card:active,a.plat-card:active,a.psel-card:active,a.ci-card:active,a.dc-main:active,a.dc-sub:active,a.related-card:active{background:#eef2f9;}

/* ---- breadcrumb: one line, ends on the current page, readable on a photo ---- */
.crumb{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;white-space:nowrap;gap:0;margin:0 -16px 8px;padding:0 16px;font-size:13px;letter-spacing:.04em;}
.crumb::-webkit-scrollbar{display:none;}
.crumb a,.crumb [aria-current],.page-head .crumb a,.page-head .crumb [aria-current],.art-head .crumb a,.art-head .crumb [aria-current]{flex:none;min-height:44px;display:inline-flex;align-items:center;padding:0 6px;}
.crumb a:first-child{padding-left:0;}
.crumb .sep{flex:none;}
/* scrolled to the current page: the start fades out instead of being cut mid-word */
.crumb.m-cut{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40px);mask-image:linear-gradient(90deg,transparent 0,#000 40px);}
.has-bg .crumb a{color:rgba(255,255,255,.82);}
.has-bg .crumb [aria-current]{color:#fff;}
.has-bg .crumb .sep{color:rgba(255,255,255,.45);}

/* ---- pill rows that swipe: the fade says there is more ---- */
.chapter-nav,.resource-nav{-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent);padding-right:36px;}
.chapter-nav a,.resource-nav a{min-height:44px;display:inline-flex;align-items:center;}

/* ---- sections that open on tap (mobile.js) ---- */
main > section.m-acc{padding-top:0 !important;padding-bottom:0 !important;border-top:1px solid var(--line,#e1e4ea);}
main > section.dark.m-acc{border-top-color:rgba(255,255,255,.14);}
.m-acc-head{position:relative;max-width:none;margin:0;padding:18px 44px 18px 0;min-height:64px;cursor:pointer;display:flex;flex-direction:column;justify-content:center;}
.m-acc-head .kicker{margin-bottom:4px;}
.m-acc-head h2{margin:0;font-size:21px;line-height:1.25;}
.m-acc-btn{all:unset;display:block;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.m-acc-head::before,.m-acc-head::after{content:'';position:absolute;right:6px;top:50%;width:16px;height:2px;margin-top:-1px;background:var(--navy,#0b418c);transition:transform .25s cubic-bezier(.16,1,.3,1);}
.m-acc.dark .section-head::before,.m-acc.dark .section-head::after{background:#8fb4ff;}
.m-acc-head::after{transform:rotate(90deg);}
.m-acc.m-open .section-head::after{transform:rotate(0);}
.m-acc-head:has(.m-acc-btn:focus-visible){outline:2px solid var(--navy,#0b418c);outline-offset:-2px;}
.m-acc-body{display:none;padding-bottom:30px;}
.m-acc.m-open .m-acc-body{display:block;}
.m-acc-body > p:first-child{font-size:16px;line-height:1.55;color:var(--text-mute);margin-bottom:18px;}
.m-acc.dark .m-acc-body > p:first-child{color:var(--text-invert-mute);}
.m-acc .sec-intro{display:block;margin:0;}

/* ---- home product cards: the title is a link too ---- */
.pf-body h3 a{display:inline-flex;align-items:center;min-height:44px;}

/* ---- FAQ ---- */
.faq-item summary{min-height:48px;}

/* ---- product hero: a photo that fails to load must not widen the column to its width attribute ---- */
.pp-hero{grid-template-columns:minmax(0,1fr) !important;}
.pp-stage{min-width:0;}

/* ---- key numbers on a product page ---- */
.pp-key{grid-template-columns:1fr 1fr !important;margin:20px 0 22px;}
.pp-key div,.pp-key div + div{padding:14px 12px !important;border-left:0 !important;}
.pp-key div:nth-child(even){border-left:1px solid var(--line) !important;}
.pp-key div:nth-child(odd){padding-left:0 !important;}
.pp-key div:nth-child(n+3){border-top:1px solid var(--line);}
.pp-key .n{font-size:22px;}
.pp-key .l{font-size:12px;}
.dp-lede{font-size:16px !important;line-height:1.55;}

/* ---- ordering and comparison tables become cards ---- */
.ord-scroll,.cmp-scroll{overflow:visible !important;margin:0 !important;border:0 !important;background:none !important;}
.ord-table,.cmp-table{display:block;width:100% !important;min-width:0 !important;border:0 !important;background:none !important;}
.ord-table thead,.cmp-table thead{display:none;}
.ord-table tbody,.cmp-table tbody{display:block;}
.ord-table tr,.cmp-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px;padding:14px;margin-bottom:10px;border:1px solid var(--line,#e1e4ea) !important;border-radius:10px;background:#fff;}
.ord-table td,.ord-table th,.cmp-table td,.cmp-table th{display:block;padding:0 !important;border:0 !important;min-width:0;width:auto !important;text-align:left !important;white-space:normal !important;position:static !important;background:none !important;font-size:14.5px;}
.ord-table td::before,.ord-table th::before,.cmp-table td::before,.cmp-table th::before{content:attr(data-label);display:block;font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--text-mute,#6e6e6e);margin-bottom:3px;}
.ord-table tr > :first-child,.cmp-table tr > :first-child{grid-column:1 / -1;font-size:16px;font-weight:700;}
.ord-table tr > :first-child::before,.cmp-table tr > :first-child::before{display:none;}
.ord-table td a,.cmp-table td a{display:inline-flex;align-items:center;min-height:44px;}
.cmp-hint{display:none !important;}

/* ---- datasheet row: stacked, no squeezed columns ---- */
.dl-card{display:grid !important;grid-template-columns:auto 1fr;gap:6px 14px;align-items:center;padding:16px !important;}
.dl-card .go{grid-column:1 / -1;min-height:44px;display:inline-flex;align-items:center;font-size:15px;}

/* ---- platform lists: all six in one look, photo beside the name ---- */
.plat-grid,.psel-grid{display:flex !important;flex-direction:column;gap:10px;}
.plat-card,.psel-card{display:grid !important;grid-template-columns:104px 1fr;align-items:stretch;overflow:hidden;min-height:112px;}
.plat-photo,.psel-photo{height:100% !important;min-height:112px;aspect-ratio:auto !important;}
.plat-photo img,.psel-photo img{width:100%;height:100%;object-fit:cover;}
.plat-icon{display:none !important;}
.plat-body,.psel-body{padding:12px 14px !important;min-width:0;display:flex;flex-direction:column;justify-content:center;}
.plat-body h3,.psel-head{font-size:17px;margin:0 0 3px;}
.plat-desc,.psel-desc{font-size:14px !important;line-height:1.4;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.plat-req,.psel-spec,.psel-focus{display:none !important;}
.plat-go,.psel-go{font-size:14px;}

/* ---- deployment cases and "keep reading": swipe sideways, the next card peeks in ---- */
.dc-grid,.related-grid,#deployment-cases .ci-grid{display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:12px;margin-left:-16px;margin-right:-16px;padding:2px 16px 8px;scroll-padding-left:16px;-webkit-overflow-scrolling:touch;}
.dc-grid::-webkit-scrollbar,.related-grid::-webkit-scrollbar,#deployment-cases .ci-grid::-webkit-scrollbar{display:none;}
.dc-side{display:contents !important;}
.dc-main,.dc-sub,.related-card,#deployment-cases .ci-card{flex:0 0 min(82vw,340px);scroll-snap-align:start;min-width:0;}
.related-section{overflow:hidden;}
.related-card{padding:18px !important;}

/* ---- product catalogue: picture beside the name, whole card is the link ---- */
.product-grid{gap:10px !important;}
.product-card:not(.hidden){display:grid !important;}
.product-card{grid-template-columns:116px 1fr;column-gap:14px;padding:14px !important;}
.product-card > *{grid-column:1 / -1;}
.product-card .photo-ph{grid-column:1;grid-row:1 / span 3;align-self:start;width:116px;height:88px !important;margin:0 !important;aspect-ratio:auto !important;padding:4px;}
.product-card .photo-ph img{width:100%;height:100%;object-fit:contain;}
.product-card h3,.product-card .pc-desc,.product-card .pc-state{grid-column:2;}
.product-card .pc-state{justify-self:start;margin:0 0 6px;}
.product-card h3{font-size:17px;margin:0 0 4px;}
.product-card .pc-desc{font-size:13.5px;line-height:1.4;margin:0;}
.product-card .spec-row{padding:7px 0;font-size:14px;}
.product-card .pc-note{margin:10px 0 0;}
.product-card .spec-row:first-of-type{margin-top:10px;}
.product-card .pc-go,.product-card .pc-ds{margin-top:8px;}
.filter-bar{display:grid !important;grid-template-columns:1fr 1fr;gap:6px 10px;align-items:end;}
.filter-bar .filter-label{grid-row:1;font-size:12px;}
.filter-bar select{grid-row:2;width:100%;min-height:46px;font-size:16px;}

/* ---- About: the words first, then the globe ---- */
.gp{display:flex !important;flex-direction:column;align-items:stretch;}
.gp-panel{order:0;}
.gp-stage{order:1;height:360px !important;}
.gp-chip{min-height:44px;}
.gp-zoom-btn{width:44px !important;height:44px !important;}
#global-presence{padding-top:44px !important;padding-bottom:28px !important;}

/* ---- footer: contact first, link groups fold ---- */
footer .wrap{display:flex;flex-direction:column;}
.footer-cta{order:0;display:flex;flex-direction:column;align-items:stretch;gap:20px;}
.footer-org{order:1;}
.footer-top{order:2;}
.footer-consumer{order:3;}
.footer-bottom{order:4;}
.footer-org{padding-bottom:12px;}
.fc-item a{min-height:44px;display:inline-flex;align-items:center;}
.footer-links{display:block !important;}
.footer-lens{display:none !important;}
.m-fg{border-top:1px solid rgba(255,255,255,.12);}
.m-fg h3{margin:0;}
.m-fg h3 a{position:relative;display:flex !important;align-items:center;width:100%;min-height:52px;margin:0;padding:0;border-radius:0;color:inherit;}
.m-fg h3 a::before,.m-fg h3 a::after{content:'';position:absolute;right:4px;top:50%;width:13px;height:1.5px;background:#6f9adb;transition:transform .25s cubic-bezier(.16,1,.3,1);}
.m-fg h3 a::after{transform:rotate(90deg);}
.m-fg.m-open h3 a::after{transform:rotate(0);}
.m-fg > a{display:none !important;}
.m-fg.m-open > a{display:flex !important;width:100%;min-height:44px;align-items:center;margin:0;padding:0;}
.m-fg.m-open{padding-bottom:10px;}
.footer-bottom{gap:6px;}
/* legal links wrap as whole links: no separator dot left hanging at a line end */
.footer-bottom > span:last-child{display:flex;flex-wrap:wrap;column-gap:20px;font-size:0;}
.footer-bottom > span:last-child a{font-size:14px;}

/* ---- header leaves while reading down, returns on the way up ---- */
header{transition:transform .28s cubic-bezier(.16,1,.3,1);}
html.m-hdr-hide header{transform:translateY(-130%);}
/* two rules: a browser without :has() drops a whole selector list, and the open menu's close button is in this header */
html.mm-open header{transform:none;}
html.m-hdr-hide header:has(:focus-visible){transform:none;}
.logo{min-height:44px;display:inline-flex;align-items:center;}

/* ---- analytics card: compact, and it never sits on the inquiry button or the menu ---- */
html .smc-consent{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));max-width:none;padding:12px 14px;font-size:13px;line-height:1.45;}
html .smc-consent p{margin:0 0 8px;}
html .smc-consent .row{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
html .smc-consent button{min-height:44px;font-size:14px;}
html .smc-consent a{display:inline-block;}
html.mm-open .smc-consent{display:none;}
body:has(> .smc-consent) .qe{display:none;}
/* inquiry button waits until the reader scrolls: on the first screen it sat on the page's own buttons */
html .qe:not(.is-compact):not(.is-open) .qe-trigger{opacity:0;translate:0 10px;pointer-events:none;}

/* ---- lists that were squeezed or long on a phone ---- */
.support-grid{grid-template-columns:1fr !important;gap:10px !important;}
.support-card{padding:16px !important;}
.ci-grid{gap:10px !important;}
.ci-card{padding:16px !important;}
.ci-card .ci-photo{margin:-16px -16px 16px !important;}   /* the photo follows the narrower padding, or it sticks out of the card */
.ci-scope{display:none;}

/* ---- two columns of cards on a small tablet ---- */
@media (min-width:600px){
  .plat-grid,.psel-grid{display:grid !important;grid-template-columns:1fr 1fr;}
  .product-grid,.support-grid{grid-template-columns:1fr 1fr !important;}
  .dc-main,.dc-sub,.related-card,#deployment-cases .ci-card{flex-basis:46vw;}
}
