/* Rules the WordPress build adds on top of the design's own site.css. */

/* A tile's focal point and grid slot come from its block fields as custom properties, so the rules below can still change them. */
img[style*="--focus"]{object-position:var(--focus)}
.app-grid--first-row>.app{grid-area:var(--area,auto)}

/* An "Ideal for" use with no page to link to looks like the linked ones, without being a link. */
.tag-list .tag-list__item{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;font:600 13px/1.2 "Montserrat",Arial,sans-serif;color:#1E1E1E;background:#fff;border:1px solid #D5D9E0}
.theme-dark .tag-list .tag-list__item{color:#fff;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.28)}

/* A mega menu built in Appearance, Menus can have any number of headed columns; the design styles four. */
.megamenu.cols1{grid-template-columns:max-content}
.megamenu.cols2{grid-template-columns:repeat(2,max-content)}
.megamenu.cols3{grid-template-columns:repeat(3,max-content)}
.megamenu.cols5{grid-template-columns:repeat(5,max-content)}
.megamenu.cols6{grid-template-columns:repeat(6,max-content)}

/* The footer grid follows the number of columns in the Footer columns menu; phones keep the design's stacking. */
@media (min-width:1001px){.site-footer .cols.fc1{grid-template-columns:1.3fr 1fr}.site-footer .cols.fc2{grid-template-columns:1.3fr repeat(2,1fr)}.site-footer .cols.fc3{grid-template-columns:1.3fr repeat(3,1fr)}.site-footer .cols.fc5{grid-template-columns:1.3fr repeat(5,1fr)}.site-footer .cols.fc6{grid-template-columns:1.3fr repeat(6,1fr)}}

/* Rules that were inline styles in the block templates. Ids and
   extra classes keep each one as strong as the inline style it replaced. */
/* Contact band and store chip card: the design's two texture tiles. */
#contact-a .texture-layer--contact{background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MiIgaGVpZ2h0PSIyMyIgdmlld0JveD0iMCAwIDUyIDIzIj48cmVjdCB4PSI0IiB5PSI0IiB3aWR0aD0iNDQiIGhlaWdodD0iMTUiIHJ4PSIyIiBmaWxsPSIjOEZEQ0Y3IiBmaWxsLW9wYWNpdHk9IjAuMDM1IiBzdHJva2U9IiM4RkRDRjciIHN0cm9rZS1vcGFjaXR5PSIwLjA5Ii8+PC9zdmc+')}
#store-a .chip-card>.texture-layer{background-image:url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MiIgaGVpZ2h0PSIyMyIgdmlld0JveD0iMCAwIDUyIDIzIj48cmVjdCB4PSI0IiB5PSI0IiB3aWR0aD0iNDQiIGhlaWdodD0iMTUiIHJ4PSIyIiBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjAuMDciIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLW9wYWNpdHk9IjAuMTUiLz48L3N2Zz4=')}
/* Contact band set to one photo or film: one column, no room under it for the card flip. */
#contact-a .stack.one{grid-template-columns:1fr;padding-bottom:0}
/* Customer quote: the contour lines behind it, and no browser margin on the quote. */
#quote-a .contour{background-image:url(../img/quote-contour.svg)}
#quote-a blockquote.quote{margin:0}
/* Product families: a summary with no stats footnote above it keeps the footnote's gap. */
#products-c .story__step p.pbody.nobasis{margin-top:18px}
/* Hero set to a photo: it fills the frame. */
#hero-a .hero__media img.hero__film{width:100%;object-fit:cover}
/* Applications: the first four tiles fill the large grid's four areas, in order. */
#apps-b .app-grid--first-row>a.app:nth-child(1){grid-area:gl}
#apps-b .app-grid--first-row>a.app:nth-child(2){grid-area:ph}
#apps-b .app-grid--first-row>a.app:nth-child(3){grid-area:ear}
#apps-b .app-grid--first-row>a.app:nth-child(4){grid-area:ssd}

/* Chinese Home headline: 以矽晶打造。 stays on one line, so 以 never sits alone at the end of line one.
   keep-all holds the phrase together but still lets a longer one wrap after 。 or a space. */
:lang(zh) #h1-a .accent-word{white-space:normal;word-break:keep-all;overflow-wrap:anywhere}

/* An application tile whose page is not built yet: same look, not a link. */
a.app.soon{cursor:default}
a.app.soon:hover img,a.app.soon:hover img.cov{transform:none}

/* Glows, scrims and halos sit behind the content and never take a click, on the site or in the editor. */
.ambient-glow,.lscrim,.bscrim,.app-hero__halo,canvas.wavecv{pointer-events:none}

/* Chinese has no spaces to wrap at, so a long title or a no-wrap phrase must still break before it clips at 390. */
html:lang(zh) :is(h1,h2,h3,h4,.heading-eyebrow,.lede,.uppercase-label){overflow-wrap:anywhere}
html:lang(zh) .nowrap,html:lang(zh) .news-section,html:lang(zh) .evdate .d,html:lang(zh) body .event-band .tag{white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
.app-rail .apps__head p{margin:10px 0 0;color:#B9C0CA}
.app-rail .app-rail__layout{display:grid;grid-template-columns:1.45fr 1fr;gap:44px;align-items:stretch}
.app-rail .stage{position:relative;border-radius:20px;overflow:hidden;aspect-ratio:4/3;background:#10151C;min-width:0}
.app-rail .stage .apps__slide{position:absolute;inset:0;opacity:0;transition:opacity .6s ease}
.app-rail .stage .apps__slide.on{opacity:1}
.app-rail .stage img{width:100%;height:100%;object-fit:cover;display:block}
.app-rail .stage .apps__slide-shade{position:absolute;inset:auto 0 0 0;height:45%;background:linear-gradient(transparent,rgba(5,8,12,.78))}
.app-rail .stage .apps__caption{position:absolute;left:28px;right:auto;bottom:24px;color:#fff;font:700 24px/1.2 "Montserrat",Arial,sans-serif}
.app-rail .stage .apps__caption b{font:inherit}
.app-rail .list{display:flex;flex-direction:column;border-top:1px solid rgba(255,255,255,.16)}
.app-rail .list a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid rgba(255,255,255,.16);color:#AEB6C2;text-decoration:none;font:600 15px/1.3 "Montserrat",Arial,sans-serif;transition:color .2s ease,padding .2s ease}
.app-rail .list a i{font-style:normal;color:#19ABE3;opacity:0;transition:opacity .2s ease,transform .2s ease}
.app-rail .list a.on,.app-rail .list a:hover{color:#fff;padding-left:10px}
.app-rail .list a.on i,.app-rail .list a:hover i{opacity:1}
.app-rail .list a:focus-visible{outline:3px solid #19ABE3;outline-offset:2px}
.app-rail .apall{display:inline-flex;gap:10px;align-items:center;margin-top:28px;color:#fff;text-decoration:none;font:600 15px/1.3 "Montserrat",Arial,sans-serif}
.app-rail .apall i{font-style:normal;color:#19ABE3}
@media (max-width:1000px){.app-rail .app-rail__layout{grid-template-columns:1fr}}
@media (max-width:600px){.app-rail .stage .apps__caption{left:18px;bottom:16px;font-size:19px}.app-rail .list a{font-size:14px}}
.search-page{padding:160px 0 96px;min-height:60vh;color:#fff}
.contact-split__field [aria-invalid="true"]{border-color:#FF8A80;box-shadow:0 0 0 1px #FF8A80}
/* The server's reject line reads as an error, in the marked fields' colour. */
#cform .form-message[data-form-state=error]{color:#FF8A80;font-weight:600}
.search-page h1{font-size:40px;line-height:1.2;margin:0 0 24px}
.search-page__results{list-style:none;margin:0 0 40px;padding:0;max-width:780px}
.search-page__results li{padding:16px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.search-page__results a{font-size:20px;color:inherit}
.search-page__empty{font-size:18px;margin:0 0 32px;max-width:780px;overflow-wrap:anywhere}
.search-form{display:flex;flex-wrap:wrap;gap:12px;align-items:center;max-width:780px}
.search-form label{flex-basis:100%;font-size:14px}
.search-form input{flex:1 1 240px;min-height:48px;padding:0 16px;border-radius:8px;border:1px solid rgba(255,255,255,.25);background:transparent;color:inherit;font:inherit}
@media (max-width:600px){.search-page{padding:120px 0 64px}.search-page h1{font-size:30px}}

/* The Carousel intro always sits on its own line under the heading,as in the design{flex-basis:100%}
/* Store card with a full photo (Picture fit: Photo). Fills the card edge to edge, no texture or drop shadow, as design/xmems-home-dark-a.html style store-photo. */
.theme-dark.has-gradients #store-a .chip-card.photo,#store-a .chip-card.photo{padding:0;overflow:hidden;background:#0E1430}
.theme-dark.has-gradients #store-a .chip-card.photo img,#store-a .chip-card.photo img{display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;filter:none}
/* Platform teaser with the One silicon platform diagram (About, Investors). The design pulls the diagram 10% left into the page gutter, but below 1368px wide there is no gutter, so its left edge was cut off on the page and in the editor. The pull now stops 20px short of the edge. */
@media (min-width:1001px){#platform-b .diagram-frame.s4{margin-left:max(-10%,calc(20px - max(24px,(100vw - 1320px) / 2 + 24px)))}}

/* New tag on a product card (ORDER 29 item 6). Off unless the product or rail row has New tag on. */
.product-card__image .newtag{position:absolute;top:14px;left:14px;z-index:2;padding:4px 10px;border-radius:999px;background:#fff;color:#141420;font-size:12px;font-weight:600;line-height:1.3;letter-spacing:.06em;text-transform:uppercase}


/* Keep every picture at its own shape. site.css caps img width at 100% but kept the HTML height attribute, so a narrowed post image stretched tall (post 264). Any class rule that sets a height still wins. */
img{height:auto}

/* WPML's "registered as a development site" bar. Staging uses a development key, so the bar would show to the client during review. The live site gets a production key and has no bar. */
.otgs-development-site-front-end{display:none}
.event-showcase .event-facts a.edir,#hero .event-facts a.edir{color:#19ABE3;text-decoration:underline;text-underline-offset:3px;margin-left:4px;white-space:nowrap}
.event-showcase .event-facts a.edir:hover,#hero .event-facts a.edir:hover{color:#fff}
/* ORDER 45: the event hero carries the dates, place and address above its button, the venue photo on the right */
#hero .event-facts--hero{margin:22px 0 26px;gap:12px}
#hero .event-facts--hero li{align-items:flex-start;line-height:1.5}
#hero .event-facts--hero svg{margin-top:2px}
#hero .compact-hero__figure img{aspect-ratio:4/3;object-fit:cover}
@media (max-width:560px){#hero .event-facts--hero li{font-size:15px}}

/* ORDER 42: an English-only post on a Chinese list says so beside its date. */
.post .k .language-badge{display:inline-block;margin-left:6px;padding:0 6px;border:1px solid currentColor;border-radius:4px;font-size:.92em;line-height:1.5;letter-spacing:0;vertical-align:baseline}

/* ORDER 35 item 1: the lists start right under the top text, which site.js makes one height per rail, so Features lines up; the button stays at the card bottom. */
.product-card .product-card__top>p{margin:0 0 18px;font-size:15px;line-height:1.65;color:#C9CFD6}
.product-card .product-card__top>p.pfor{font:600 13px/1.4 "Montserrat",Arial,sans-serif;letter-spacing:.06em;color:#C9A6FF;margin:0 0 4px}
.product-card .product-card__accordion{margin-top:0}

/* ORDER 35 item 2: one flick moves one card on the Home swipe rows, and on a touch screen the pinned products band gives each slide a full screen and a stop point (site.js adds .touch and the stops). */
@media (max-width:640px){html body #apps-b .app-carousel .app,html body #news-a .posts .post{scroll-snap-stop:always}}
#products-c .story .story__snap{display:none}
@media (min-width:1001px) and (pointer:coarse){
html:has(#products-c .story.touch){scroll-snap-type:y proximity}
html body #products-c .story[data-stkp].touch{height:calc(100vh - var(--rvh) - var(--hdr) + 3 * 100vh)}
#products-c .story.touch .story__snap{display:block;position:absolute;left:0;width:1px;height:1px;pointer-events:none;scroll-snap-align:start;scroll-snap-stop:always}}
/* ORDER 35 item 3: Safari gives a grid item with an aspect ratio and no in-flow content zero width, so the Technology family films had no box on iPhone; the box now fills its column. */
.split-band .feature-split .media{width:100%}
/* ORDER 35 item 4: on a phone the announcement reads as one left aligned paragraph of two lines, the dot inline before the first word. The whole bar is the Event Details link there, its label kept for screen readers, and an arrow ends the text. */
@media (max-width:640px){
.announce-bar .wrap{display:block;text-align:left;padding:9px 48px 9px 16px;min-height:0}
.announce-bar .dot{display:inline-block;vertical-align:middle;margin:0 9px 2px 4px}
.announce-bar .dot+span::after{content:"\2192";margin-left:6px;font-weight:600}
.announce-bar .wrap>a{position:absolute;inset:0;width:auto;height:auto;overflow:hidden;color:transparent;font-size:0;text-decoration:none}
.announce-bar .wrap>a:focus-visible{outline-offset:-3px}
.announce-bar .x{z-index:1}
html[lang^="zh"] .announce-bar .wrap{font-size:12px;letter-spacing:-.02em;padding-left:12px;padding-right:40px}
html[lang^="zh"] .announce-bar .dot{margin:0 7px 2px 3px}
html[lang^="zh"] .announce-bar .x{right:6px}}
/* ORDER 35 item 5: up to 1000px the hero film sits on top as a 4:3 box, so the pause button moves from beside the menu to that film's bottom right; 75cqw is the film height. */
@media (max-width:1000px){
.hero--home{container-type:inline-size}
.hero--home .video-pause{top:calc(var(--hdr) + 75cqw - 60px);bottom:auto;right:16px}
body:not(.overlay) .hero--home .video-pause{top:calc(75cqw - 60px)}}
/* ORDER 35 item 6, a u- utility (body class from xmems_body_class) so it may win with !important: on a phone every section reads left aligned, heads, intros, lists and captions alike, so the eye starts each line at one edge; desktop keeps its centered heads. Buttons keep their own centering (flex). */
@media (max-width:640px){
body.u-phone-left :is(main,footer) :is(section,header,div,figure,ul,ol,dl,article,aside,h1,h2,h3,h4,h5,h6,p,li,dt,dd,figcaption,blockquote,cite,small){text-align:left!important}
body.u-phone-left main :is(.split-band__head,.section-heading,.lede,.intro){margin-left:0!important}
html body main .stat-grid .stat-grid__item{align-items:flex-start}
body.u-phone-left main .stat-grid .stat-grid__item>*{text-align:left!important;margin-left:0!important}}
/* ORDER 35 item 11: where the phone menu shows, the top bar keeps only the language switch, and the menu gets its own Language row. */
@media (max-width:1100px){
.utility-bar .wrap>a{display:none}
.utility-bar .wrap{justify-content:flex-end}
.mobile-nav .mlang{display:flex;align-items:center;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.14);color:#AEB6C0;font:500 15px/1.2 "Montserrat",Arial,sans-serif}
.mobile-nav .mlang span[aria-hidden]{color:#5F6B78}
.mobile-nav .mlang a{color:#D9DEE4;text-decoration:none;padding:6px 4px;border-radius:6px}
.mobile-nav .mlang a[aria-current]{color:#fff;font-weight:700;text-decoration:underline;text-decoration-color:#19ABE3;text-decoration-thickness:2px;text-underline-offset:5px}
.mobile-nav .mlang a:focus-visible{outline:2px solid #19ABE3;outline-offset:2px}}
/* ORDER 35 item 12: site.js marks a hint whose table or rail fits its box. */
.rail-hint.nohint{display:none}
/* ORDER 35 item 15: the header slides up while reading down the page; the bars stuck under it move up with it. */
.site-header{transition:background-color .35s ease,box-shadow .35s ease,transform .3s ease}
.site-header.hdr-hide{transform:translateY(calc(-100% - var(--rvh, 0px) - 2px));box-shadow:none}
html.hdr-off .article-body__contents{top:32px}
@media (prefers-reduced-motion:reduce){.site-header{transition:none}}
/* ORDER 35 item 17: subscribe pop up, less space under the heading, more under the intro. */
.site-footer .newsletter__dialog h2,.newsletter__dialog h2{margin:0 0 10px}
.site-footer .nldlg .nlsub,.nldlg .nlsub{margin:0 0 26px}
/* ORDER 35 item 18: the footer See What's Next band runs the full width as a quiet strip, the Home event callout's shape with less colour: text left, Subscribe at the right end. */
.site-footer .newsletter{grid-template-columns:1fr auto;gap:24px 48px;margin:56px 0 48px;padding:34px 40px;border:1px solid rgba(25,171,227,.28);border-radius:28px;background:linear-gradient(100deg,rgba(18,16,84,.92) 0%,rgba(18,16,84,.55) 55%,rgba(25,171,227,.10) 100%);box-shadow:0 24px 50px -30px rgba(18,16,84,.7)}
.site-footer .newsletter>div>h2{margin-bottom:10px}
.site-footer .newsletter>div>p{max-width:62ch;color:#C9D0D8}
.site-footer .nlcta{justify-content:flex-end}
@media (max-width:900px){.site-footer .newsletter{grid-template-columns:1fr;padding:28px 24px;border-radius:22px;margin:40px 0 36px}.site-footer .nlcta{justify-content:flex-start}}

/* Key Applications carousel on the application pages, one row with arrows and dots. */
.app-page-carousel{position:relative;max-width:1180px;margin:0 auto}
.app-page-carousel:has(.app-rows--compact){max-width:1240px}
.app-page-carousel:has(.app-rows--compact.n3),.app-page-carousel:has(.app-rows--compact.n6){max-width:900px}
.app-page-carousel:has(.app-rows--compact.n4){max-width:1060px}
.app-page-carousel .app-rows,.app-page-carousel .app-rows.app-rows--compact{display:flex;gap:40px;max-width:none;margin:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.app-page-carousel .app-rows::-webkit-scrollbar{display:none}
.app-page-carousel .app-rows:focus-visible{outline:2px solid #19ABE3;outline-offset:6px;border-radius:12px}
.app-page-carousel .app-rows>.app-row{flex:0 0 100%;scroll-snap-align:start}
.app-page-carousel .app-rows.app-rows--compact{gap:18px}
.app-page-carousel .app-rows.app-rows--compact>.app-row{flex:0 0 calc((100% - 72px)/5)}
.app-page-carousel .app-rows.app-rows--compact.n3>.app-row,.app-page-carousel .app-rows.app-rows--compact.n6>.app-row{flex-basis:calc((100% - 36px)/3)}
.app-page-carousel .app-rows.app-rows--compact.n4>.app-row{flex-basis:calc((100% - 54px)/4)}
.apnav{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:32px}
.apnav>button{width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;font-size:18px;cursor:pointer;transition:border-color .2s,background-color .2s}
.apnav>button:hover:not(:disabled){border-color:#19ABE3;background:rgba(25,171,227,.12)}
.apnav>button:disabled{opacity:.35;cursor:default}
.apdots{display:flex;align-items:center;gap:2px}
.apdots button{width:24px;height:24px;padding:0;border:0;background:transparent;cursor:pointer;display:grid;place-items:center}
.apdots button::before{content:"";width:8px;height:8px;border-radius:4px;background:rgba(255,255,255,.32);transition:width .25s,background-color .25s}
.apdots button[aria-current]::before{width:24px;background:#19ABE3}
.apnav button:focus-visible{outline:2px solid #19ABE3;outline-offset:2px}
.app-page-carousel.fits .apnav{display:none}
@media (max-width:640px){
.app-page-carousel .app-rows,.app-page-carousel .app-rows.app-rows--compact{gap:14px;margin:0 -24px;padding:0 24px;scroll-padding-inline:24px}
.app-page-carousel .app-rows>.app-row{flex-basis:86%}
.app-page-carousel .app-rows.app-rows--compact>.app-row,.app-page-carousel .app-rows.app-rows--compact.n3>.app-row,.app-page-carousel .app-rows.app-rows--compact.n4>.app-row,.app-page-carousel .app-rows.app-rows--compact.n6>.app-row{flex-basis:calc((100% - 14px)/2.2)}
.apnav{margin-top:22px}}
@media (prefers-reduced-motion:reduce){.apdots button::before{transition:none}}
@media (max-width:900px){.app-page-carousel .app-rows>.app-row{align-content:start;gap:20px}
.app-page-carousel .app-rows:not(.app-rows--compact) .app-row__media img{aspect-ratio:16/10;object-fit:cover}
.app-page-carousel .app-rows:not(.app-rows--compact) .app-row__text h3{font-size:21px;margin:0 0 10px}
.interior .app-page-carousel .app-rows:not(.app-rows--compact) .app-row__text p{font-size:15px;line-height:1.6;margin:0 0 8px}
.app-page-carousel .app-rows:not(.app-rows--compact) .app-row__text .app-card__bottom:not(:empty){margin-top:10px}
.app-page-carousel .app-rows:not(.app-rows--compact) .check-list{gap:6px}
.app-page-carousel .app-rows:not(.app-rows--compact) .check-list li{font-size:14.5px}}

/* The Curator.io credit stays visible but readable: full opacity passes 4.5:1 on the dark feed (ORDER 44 item 6). */
#linkedin-feed a.crt-logo{opacity:1}

/* With a width attribute on every img (ORDER 44 item 4), this chip keeps its shape under its max-height cap. */
.product-card__image img[src*="montara-plus-chip.png"]{width:auto;object-fit:contain}

/* The grayscale press logo rule in site.css matches ".png" endings, so it also covers their WebP copies. */
.marquee.marquee--logos img[src$=".png.webp"]{filter:grayscale(1) brightness(.5);opacity:.8}

/* Phones: a Key Applications band with an intro above its carousel fits one screen, like Smartphones (ORDER 46 item 2). */
@media (max-width:767px){
.interior .app-section--applications .wrap>.section-head+.app-prose{margin-top:32px}
.interior .app-section--applications .wrap>.app-prose+.app-page-carousel{margin-top:28px}
.interior .app-section--applications .wrap>.app-prose p{font-size:15px;line-height:1.5}
}

/* A two word heading tail kept together (.nowrap) wraps when it is wider than the card. */
.feature-card h3{text-wrap:balance}.feature-card h3 .nowrap{white-space:normal}
/* A team card with no LinkedIn link ends on the name or role, so the text block keeps the card's bottom padding. */
.team__text:last-child{padding-bottom:22px}
@media (max-width:760px){.team__text:last-child{padding-bottom:16px}}
/* An app card heading tail kept together (.nowrap) wraps when it is wider than the card, as on the feature cards. */
.app-card h3 .nowrap{white-space:normal}
/* Short Chinese labels and the hero headings break between phrases, never inside a word ("散/熱", "智慧手/錶"). A phrase wider than the line still breaks. */
html:lang(zh) :is(h1,a.app .tile-name){word-break:keep-all;overflow-wrap:anywhere}
/* Chinese has no true italic, so emphasis in an article body stays upright. */
html:lang(zh) .abody em{font-style:normal}
/* The announcement close button keeps its 32px circle and takes taps across 44px. */
.announce-bar .x::after{content:"";position:absolute;inset:-6px}
/* In the five across tile rows on a tablet, a label gets the arrow's width back so it stays whole, EN and ZH. The whole tile is the link. */
@media (min-width:641px) and (max-width:1100px){.app-grid.app-grid--five .tile-name i{display:none}}
/* Below 900px five tiles across leave a name like Smartwatches 72 to 97px of room, so the row goes 3 over 2, full width. */
@media (min-width:641px) and (max-width:899px){.app-grid.app-grid--five.app-grid--full-row{grid-template-columns:repeat(6,1fr)}.app-grid.app-grid--five.app-grid--full-row>.app{grid-column:span 2}.app-grid.app-grid--five.app-grid--full-row>.app:nth-last-child(-n+2){grid-column:span 3}}
/* WebKit painted each lazy product image's drop-shadow layer at the top left of the screen, a white or black square over the header at phone widths. Its own layer puts it back in the card. */
.product-card__image img{transform:translateZ(0)}
/* The event date in the announcement bar stays on one line, EN and ZH. */
.announce-bar b{white-space:nowrap}
/* Chinese headings split into words by site.js: lines break between words, each word stays whole. */
html:lang(zh) .chinese-wrap,html:lang(zh) .chinese-wrap *{word-break:normal;overflow-wrap:break-word}
html:lang(zh) .chinese-wrap .chinese-wrap__word{white-space:nowrap}

/* A flex button gaps each child, so the brand span would sit 10px off its words. Its text joins the label run instead (F34). */
.btn>.brand-name{display:contents}
/* Five cards per view leave a tablet card 84px wide, so words broke mid letter. Three per view up to 1023px, four up to 1199px. */
@media (min-width:641px) and (max-width:1023px){.app-page-carousel .app-rows.app-rows--compact>.app-row,.app-page-carousel .app-rows.app-rows--compact.n4>.app-row{flex-basis:calc((100% - 36px)/3)}}
@media (min-width:1024px) and (max-width:1199px){.app-page-carousel .app-rows.app-rows--compact>.app-row{flex-basis:calc((100% - 54px)/4)}}
/* Rail card titles shrink with the card, so the longest word (Smartwatches) fits on one line and never breaks mid letter. */
@media (max-width:480px){.app-page-carousel .app-rows.app-rows--compact .app-row .app-row__text h3{font-size:min(16px,3.6vw)}}
@media (min-width:641px) and (max-width:767px){.app-page-carousel .app-rows.app-rows--compact .app-row .app-row__text h3{font-size:17px}}
/* The "find your part" card captions in Chinese keep each word whole, so 裝置 never splits across lines. */
html:lang(zh) [class^="stack__card"] figcaption{word-break:keep-all;overflow-wrap:anywhere}
/* Every rail title word fits its card from 360px up, so no automatic hyphens (WebKit split "Wellness" where it fit). */
.app-page-carousel .app-rows.app-rows--compact .app-row .app-row__text h3{-webkit-hyphens:manual;hyphens:manual}

/* Archive page numbers. Their 44px pill lived only in app.css, which archives never load, so "2" and "3" were 9px wide tap targets. */
.archive-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 14px;border:1px solid rgba(255,255,255,.22);border-radius:22px;color:#fff;text-decoration:none;font-size:15px}
.archive-pagination a.page-numbers:hover,.archive-pagination a.page-numbers:focus-visible{border-color:#8FDCF7;color:#8FDCF7}
.archive-pagination .page-numbers.current{background:#fff;color:#0A0D14;border-color:#fff}
.archive-pagination .page-numbers.dots{border:0}
.archive-pagination .wrap{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}

/* Inside a post, a table wider than the column scrolls sideways on its own, and long links and emails wrap, so nothing is cut at the column edge on a phone. */
.article-body__column{overflow-wrap:break-word}
.article-body__column a{overflow-wrap:anywhere}
.article-body__column .wp-block-table,.article-body__column>table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.article-body__column>table{display:block}
@media (max-width:767px){.article-body__column figure.wp-block-table{margin-inline:0}}

/* Cookie banner and Cookie Consent Manager (inc/consent.php, assets/js/consent.js). */
.consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:200;max-width:1080px;margin:0 auto;background:#1E1E1E;color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:16px;box-shadow:0 24px 60px -20px rgba(0,0,0,.7);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.consent[hidden]{display:none}
.consent__in{display:grid;grid-template-columns:1fr auto;gap:16px 32px;align-items:center;padding:22px 26px}
.consent__h{font:600 17px/1.3 "Montserrat",Arial,sans-serif;margin:0 0 6px;color:#fff}
.consent__h:focus{outline:none}
.consent__h:focus-visible{outline:2px solid #19ABE3;outline-offset:4px}
.consent__text p{margin:0;font-size:14px;line-height:1.6;color:#C9CFD6}
.consent__text a{color:#fff;text-decoration:underline}
.consent__btns{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end}
.consent__btns .btn{padding:12px 20px;font-size:14px;cursor:pointer;font-family:"Montserrat",Arial,sans-serif}
.consent__btns .btn.s{background:transparent}
.consent__btns .btn.s:hover{background:rgba(255,255,255,.1)}
.consent__btns .btn.t{padding:12px 6px;background:none;color:#19ABE3;text-decoration:underline;text-underline-offset:3px}
.consent__btns .btn:focus-visible,.consent__opt input:focus-visible,.consent-link:focus-visible{outline:2px solid #19ABE3;outline-offset:3px}
.consent__prefs{grid-column:1/-1}
.consent__prefs fieldset{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.consent__opt{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid rgba(255,255,255,.14);border-radius:12px;cursor:pointer}
.consent__opt input{width:20px;height:20px;margin:2px 0 0;flex:0 0 auto;accent-color:#19ABE3}
.consent__opt input:disabled{cursor:not-allowed}
.consent__opt b{font-size:14px;font-weight:600}
.consent__opt em{font-style:normal;font-size:12px;color:#AEB7C2;margin-left:6px}
.consent__opt small{display:block;margin-top:4px;font-size:13px;line-height:1.5;color:#C9CFD6}
.consent__opt small.consent__gpc{color:#FFDF74}
.consent__opt small[hidden]{display:none}
.consent-link{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-decoration:none}
.consent-link:hover{color:#fff;text-decoration:underline}
@media (max-width:860px){.consent__in{grid-template-columns:1fr;padding:18px 18px 20px}.consent__btns{justify-content:flex-start}.consent__prefs fieldset{grid-template-columns:1fr}}
@media (max-width:480px){.consent{left:8px;right:8px;bottom:8px}.consent__btns .btn.p,.consent__btns .btn.s{flex:1 1 calc(50% - 5px);justify-content:center}}
/* The cookie table on the Cookie Policy page. */
.lbody .consent-table{margin:0 0 28px;width:0;min-width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid rgba(255,255,255,.14);border-radius:12px}
.lbody .consent-table.is-more-right{box-shadow:inset -32px 0 24px -24px rgba(25,171,227,.55)}.lbody .consent-table.is-more-left{box-shadow:inset 32px 0 24px -24px rgba(25,171,227,.55)}.lbody .consent-table.is-more-left.is-more-right{box-shadow:inset -32px 0 24px -24px rgba(25,171,227,.55),inset 32px 0 24px -24px rgba(25,171,227,.55)}.lbody .consent-table:focus-visible{outline:2px solid #19ABE3;outline-offset:3px}
.lbody .consent-table table{width:100%;border-collapse:collapse;font-size:14.5px;line-height:1.55;color:#C9CFD6}
.lbody .consent-table caption{text-align:left;padding:14px 16px 6px;font-weight:600;color:#fff}
.lbody .consent-table th,.lbody .consent-table td{text-align:left;vertical-align:top;padding:10px 16px;border-top:1px solid rgba(255,255,255,.1)}
.lbody .consent-table thead th{color:#fff;font-weight:600;font-size:13px;letter-spacing:.02em}
.lbody .consent-table tbody th{font-weight:500}
.lbody .consent-table td:nth-child(3),.lbody .consent-table td:nth-child(5){white-space:nowrap}
@media (max-width:760px){.lbody .consent-table table{min-width:720px}}
.lbody .consent-table code{font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#fff;overflow-wrap:normal;word-break:normal;display:block}
/* Phones: one Key Applications slide fills the row, so the next slide never shows cut off text. The arrows and dots move between slides. */
@media (max-width:640px){
.app-page-carousel .app-rows:not(.app-rows--compact){gap:24px}
.app-page-carousel .app-rows:not(.app-rows--compact)>.app-row{flex-basis:100%}
.apdots{min-width:0;gap:0}
.apdots button{flex:0 1 auto;min-width:24px;width:44px;height:44px}}
/* The slash sits after each crumb, so a long title that wraps starts its own line with no slash in front. */
.crumbs ol li+li::before{content:none}
.crumbs ol li:not(:last-child)::after{content:"/";color:#8E949C}
/* News filter pills keep their look and get a 44px tall tap area. */
.insights-teaser__filters button{position:relative}
.insights-teaser__filters button::after{content:"";position:absolute;inset:-3px 0}
/* Safari draws a word twice when it balances a Chinese heading that holds word breaks, so Chinese text there wraps plainly. */
@supports (font:-apple-system-body){html:lang(zh) .chinese-wrap,html:lang(zh) .chinese-wrap *{text-wrap:wrap}}
/* A featured image much wider than the hero box shows whole, so a logo near its edge is never cut. */
.interior-hero--article .article-hero__visual .article-hero__image.article-hero__image--wide{top:50%;height:auto;transform:translateY(-50%);object-fit:contain}
.nfeat .featured__image img[src]{object-fit:contain}

/* Studio credit, the last line of the footer, sized and coloured like the fine print. */
.site-footer .site-footer__credit{font-size:12px;line-height:1.6;color:#9AA3AE;margin:0;padding-bottom:32px}
.site-footer .site-footer__fine-print+.site-footer__credit{margin-top:-24px}
.site-footer .site-footer__credit a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.site-footer .consent-link{color:#D9DEE4}.site-footer .consent-link:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
