/* ArioIntel corporate, October 2026. Aviation / Titanium. Existing MVC5 + ten RESX languages. */
:root{--bg:#061321;--panel:#0a2339;--panel-2:#10324a;--text:#f1f7fc;--muted:#b8d0e1;--line:#27516c;--cyan:#4ac9ff;--blue:#009af5;--shadow:#0009;--light-surface:#eef6fb;font-family:'Segoe UI',Inter,Arial,sans-serif;font-synthesis:none}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--bg);color:var(--text);line-height:1.65}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}img{max-width:100%}h1,h2,h3,p{overflow-wrap:break-word}.container{max-width:1380px;margin:auto;padding:0 28px}.container-wide{max-width:1660px;padding:0 22px;margin:auto}.skip{position:absolute;top:-140px;inset-inline-start:10px;background:#fff;color:#123;padding:10px 20px;z-index:200}.skip:focus{top:12px} :focus-visible{outline:3px solid #64e8ff;outline-offset:4px}
/* Brand and global navigation */
.sitehead{position:sticky;top:0;z-index:120;border-bottom:1px solid #295879;background:#031326f7;backdrop-filter:blur(18px);box-shadow:0 10px 25px #0003}
.navshell{max-width:1680px;margin:auto;min-height:83px;display:flex;align-items:center;gap:24px;padding:8px 24px}.brand{width:300px;min-width:220px;display:flex;flex-direction:column;justify-content:center;position:relative;flex-shrink:0;height:68px;direction:ltr;overflow:visible}.brand-logo-dark,.brand-logo-light{display:flex;align-items:center;height:50px}.brand-logo-light{display:none}.brand-full{width:285px;height:50px;object-fit:contain;object-position:left center;display:block}.brand-sub{font-size:9px;letter-spacing:2.9px;color:#93c7e9;padding-inline-start:58px;line-height:12px;white-space:nowrap}.navitems{display:flex;gap:clamp(10px,1.3vw,22px);align-items:center;justify-content:center;flex:1;min-width:0}.navitems a{font-size:12px;color:#cfdfeb;white-space:nowrap;padding:22px 0 20px;border-bottom:3px solid transparent;transition:color .18s,border-color .18s}.navitems a:hover,.navitems a.active{color:#66d7ff;border-bottom-color:#1bbdff}.controls{display:flex;gap:12px;align-items:center;flex-shrink:0;direction:ltr}.theme-switch{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #347296;border-radius:30px;color:#eef7ff;background:#102b44;padding:8px 13px;white-space:nowrap;min-height:42px}.theme-switch:hover{border-color:#78dafd;background:#184261}.theme-icon{font-size:21px;color:#ffda6c;line-height:1}.theme-name{font-size:13px;font-weight:700}.theme-status{color:#9fbfd3;font-size:11px;border-inline-start:1px solid #39738f;padding-inline-start:7px}.mobile{display:none;background:#143953;border:1px solid #396d8b;color:#fff;border-radius:9px;padding:6px 11px;font-size:20px}
.language-picker{position:relative;z-index:130}.language-picker summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;background:#0c2c48;border:1px solid #3a789c;border-radius:30px;padding:6px 10px 6px 7px;min-width:125px;min-height:42px}.language-picker summary::-webkit-details-marker{display:none}.language-current{font-size:12px;color:#eef6fb;white-space:nowrap}.chevron{font-size:16px;color:#8cddfb;margin-left:auto}.flag-oval,.flag-mini{overflow:hidden;position:relative;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;background:#abc9dd;border:1px solid #d6f1ff99;box-shadow:0 3px 9px #0008,inset 0 2px 4px #fff9;border-radius:45%}.flag-oval{width:36px;height:25px}.flag-mini{width:31px;height:21px}.flag-mini::after,.flag-oval::after{content:'';pointer-events:none;position:absolute;inset:0 0 50%;background:linear-gradient(#ffffff94,#ffffff00);border-radius:45%}.flag-oval img,.flag-mini img{display:block;width:100%;height:100%;object-fit:cover}.language-options{position:absolute;top:calc(100% + 13px);right:0;min-width:215px;max-height:70vh;overflow:auto;border:1px solid #3c769a;background:#082238;box-shadow:0 22px 70px #000c;border-radius:16px;padding:7px;display:flex;flex-direction:column;gap:2px}.language-option{display:flex;align-items:center;gap:12px;padding:7px 12px;border-radius:9px;font:500 14px 'Segoe UI','Yu Gothic','Malgun Gothic','Microsoft YaHei',Tahoma,sans-serif;unicode-bidi:plaintext;color:#f4f9ff}.language-option:hover,.language-option.is-current{background:#205172}
/* Hero uses REAL separate photos, not a flattened rendered website. */
.photohero{position:relative;isolation:isolate;background-color:#07213a;background-size:cover;background-position:center center;border-bottom:1px solid #39779e}.photohero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#05111f99,transparent 36%),linear-gradient(90deg,#051120d9 2%,rgba(5,17,32,.55) 34%,rgba(5,17,32,.16) 74%,rgba(5,17,32,.38) 100%)}.homehero{min-height:515px}.subhero{min-height:350px}.hero-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:inherit;padding-top:52px;padding-bottom:55px}.hero-overline,.eyebrow{color:#7bdcff;font-weight:800;font-size:11px;letter-spacing:1.8px;text-transform:uppercase}.photohero h1{font-size:clamp(35px,4.1vw,68px);line-height:1.14;margin:17px 0;max-width:790px;font-weight:800;letter-spacing:-1px;color:#ffffff;text-shadow:0 4px 26px rgba(0,0,0,.82)}.subhero h1{font-size:clamp(32px,3.8vw,54px);max-width:760px}.hero-summary{font-size:clamp(15px,1.3vw,19px);line-height:1.75;max-width:730px;color:#f2f7fb;margin:5px 0 0;text-shadow:0 3px 16px rgba(0,0,0,.88)}.hero-buttons{margin-top:26px;display:flex;gap:11px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;border-radius:30px;border:1px solid transparent;padding:10px 22px;min-height:44px;font-size:13px;font-weight:700;transition:transform .2s,background .2s}.btn:hover{transform:translateY(-3px)}.btn.primary{background:linear-gradient(135deg,#30caff,#0084dc);border-color:#76eaff;color:white;box-shadow:0 8px 20px #029bdf30}.btn.outline{background:#04192eb8;border-color:#55a5ca;color:#f3f9fd}.btn.outline:hover{background:#16435d}.hero-side-stamp{position:absolute;bottom:22px;right:40px;width:67px;opacity:.9;pointer-events:none;filter:drop-shadow(0 3px 8px #000a)}.hero-side-stamp img{width:100%;display:block}
/* Portal gateways in photographic cards */
.service-area{padding:20px 0 30px;background:#061525}.service-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.service-card{min-width:0;background:#0b253c;border:1px solid #2a668b;border-radius:11px;overflow:hidden;box-shadow:0 10px 26px #0004;position:relative;transition:transform .2s,border-color .2s}.service-card:hover{transform:translateY(-5px);border-color:#65d4ff}.service-card>img{display:block;width:100%;height:145px;object-fit:cover}.service-body{padding:14px 15px 20px;position:relative;min-height:150px}.service-tag{color:#7ad8fc;font-size:10px;font-weight:700;letter-spacing:1px}.service-body h2{font-size:16px;line-height:1.4;margin:6px 0 7px}.service-body p{font-size:11px;line-height:1.55;color:#bed2df;margin:0 10px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-arrow{position:absolute;bottom:12px;right:13px;color:#80dcff;font-size:21px}
.proofband{position:relative;background:linear-gradient(110deg,#0a263f,#072036 60%,#123750);border-block:1px solid #285774}.proof-layout{display:grid;grid-template-columns:2.5fr repeat(4,1fr);gap:22px;align-items:center;padding-top:32px;padding-bottom:32px}.proof-intro h2{font-size:clamp(20px,2vw,27px);line-height:1.4;margin:7px 0}.proof-intro p{color:#bed5e4;font-size:13px;margin:4px 0;line-height:1.7}.proof-pill{text-align:center;border-inline-start:1px solid #37627e;min-height:112px;display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column}.proof-symbol{font-size:29px;line-height:1;color:#49bcfa}.proof-pill strong{font-size:14px}.proof-pill small{font-size:11px;color:#b9d3e2}
.featured-area{padding-top:43px;padding-bottom:43px}.section-label{margin-bottom:17px}.section-label h2{font-size:clamp(23px,2.7vw,37px);margin:5px 0 6px}.section-label>p{max-width:760px;color:var(--muted)}.featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.featured-card{background:linear-gradient(155deg,#0e304a,#081e32);border:1px solid #286185;border-radius:12px;overflow:hidden;box-shadow:0 18px 35px #0004;transition:transform .2s,border-color .2s}.featured-card:hover{transform:translateY(-4px);border-color:#61cafa}.featured-card>img{width:100%;height:205px;object-fit:cover;display:block}.featured-card:first-child>img{object-fit:contain;background:#0c2439;padding:13px}.featured-card>div{padding:19px 21px 22px}.featured-card h3{font-size:20px;line-height:1.45;margin:6px 0}.featured-card p{font-size:13px;color:#c0d6e4;min-height:55px;line-height:1.75;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:8px 0 16px}.featured-card b{color:#62d9fa;font-size:13px}
/* Long-form editorial pages and evidence-based case studies */
.toc{margin-top:28px;padding-block:16px;border-bottom:1px solid #254963}.toc>strong{font-size:12px;color:#79d5fa}.toc>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.toc a{border:1px solid #315c79;border-radius:30px;background:#102e47;padding:5px 12px;font-size:11px;color:#d2e7f5}.toc a:hover{border-color:#6fd6ff}.sections{padding-top:35px}.feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(25px,5vw,92px);align-items:center;padding:60px 0;border-bottom:1px solid #24435d;scroll-margin-top:110px}.feature.reverse .feature-copy{order:2}.feature.reverse .feature-media{order:1}.feature-copy h2{font-size:clamp(24px,2.5vw,36px);line-height:1.4;margin:14px 0}.feature-copy p{font-size:15px;color:#cbdeeb;line-height:2;margin:10px 0}.feature-list{padding-inline-start:24px;font-size:15px;color:#cbdeeb;line-height:2}.feature-list li{margin-bottom:7px}.feature-media{border:1px solid #376885;background:#17334a;border-radius:14px;overflow:hidden;position:relative;box-shadow:0 20px 55px #0006}.feature-media>img{width:100%;height:345px;object-fit:cover;display:block}.image-stamp{width:42px;position:absolute;bottom:12px;right:13px;filter:drop-shadow(0 4px 6px #000a)}.image-stamp img{width:100%;display:block}
.case-highlights{padding-top:35px}.case-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.case-card{background:#102e46;border:1px solid #2e5e7a;border-radius:13px;overflow:hidden}.case-card img{display:block;width:100%;height:170px;object-fit:cover}.case-card>div{padding:14px}.case-card h3{line-height:1.4;font-size:16px;margin:0 0 9px}.case-card span{font-size:12px;color:#75dafa}
/* 3D certificate coverflow with real scans and clear provenance */
.cert-section{padding-top:45px}.coverflow-row{display:flex;align-items:center;gap:12px}.gallery-arrow{width:42px;height:42px;border-radius:50%;border:1px solid #4288ae;background:#11364f;color:white;font-size:30px;flex-shrink:0}.gallery-arrow:hover{background:#1d5776}.cert-coverflow{flex:1;min-width:0;position:relative;height:445px;border:1px solid #376786;border-radius:19px;background:radial-gradient(ellipse at center,#164360,#061425 68%);overflow:hidden;perspective:1100px}.cert-card{position:absolute;top:49%;left:50%;width:280px;height:360px;border:3px solid #62cafa;border-radius:10px;padding:8px;background:#e8f0f6;box-shadow:0 25px 48px #0009;transition:transform .5s cubic-bezier(.2,.7,.2,1),opacity .4s;cursor:pointer}.cert-card img{width:100%;height:100%;object-fit:contain;background:white;display:block}.cert-card.active{box-shadow:0 34px 64px #000c,0 0 32px #0abaff74}.certificate-caption{text-align:center;background:#0e2d46;border:1px solid #315d77;border-radius:15px;padding:15px 20px;margin:13px auto;max-width:790px}.certificate-caption h3{font-size:18px;margin:0}.certificate-caption p{color:#bad4e4;font-size:12px;margin:7px 0 13px}.certthumbs{display:flex;align-items:center;justify-content:center;overflow:auto;gap:10px;padding:14px 0}.certthumb{border:2px solid #214663;background:#133550;border-radius:8px;padding:3px;cursor:pointer}.certthumb.active{border-color:#5ad8ff}.certthumb img{width:78px;height:62px;object-fit:contain;background:#fff;display:block}.cert-lightbox{background:#091d32;color:#fff;border:1px solid #4187ad;border-radius:13px;padding:55px 17px 17px;max-width:95vw;max-height:95vh}.cert-lightbox::backdrop{background:#000c;backdrop-filter:blur(8px)}.cert-lightbox img{max-height:75vh;max-width:85vw;display:block;object-fit:contain;background:white}.lightbox-close{position:absolute;top:8px;right:8px;color:#fff;border:1px solid #478fbd;border-radius:7px;background:#183b56;padding:6px 13px}.pending-evidence{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:23px}.pending-evidence>div{background:#0e3149;border:1px solid #2e627f;border-radius:14px;padding:20px}.pending-evidence strong{color:#9bddfb;font-size:18px}.pending-evidence p{font-size:13px;color:#c4dae8}.pending-evidence small{border:1px solid #417c98;border-radius:25px;padding:4px 10px;color:#a6dced}
.callout{margin-top:70px;margin-bottom:70px;padding:30px!important;border:1px solid #286d95;border-radius:18px;background:linear-gradient(115deg,#103b59,#075775);display:flex;justify-content:space-between;align-items:center;gap:20px}.callout h2{font-size:30px;margin:8px 0}.callout p{color:#d5e7ef;margin:5px 0;max-width:650px}.sitefoot{background:#03111f;border-top:1px solid #26516e;color:#d0e2ec}.footgrid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:44px;padding-top:40px;padding-bottom:35px}.foot-brand img{height:85px;width:100px;object-fit:contain;object-position:left center}.sitefoot h3{font-size:14px}.sitefoot a{display:block;color:#c6dbe8;font-size:13px;margin:6px 0}.sitefoot p{font-size:12px;color:#adc6d7;max-width:400px}.foot-note{opacity:.75}.copyright{border-top:1px solid #1b425a;padding-top:15px;padding-bottom:17px;font-size:11px;color:#82a4b8}
/* Theme: the navigation remains dark for accessibility; surfaces change clearly. */
body[data-tone=light]{--bg:#f3f8fc;--panel:#fff;--text:#19374b;--muted:#44677e;--line:#c9dce7;color:#19374b}.brand-logo-light{display:none}body[data-tone=light] .feature-copy p,body[data-tone=light] .feature-list{color:#345669}body[data-tone=light] .sections .feature{border-color:#c9dfe9}body[data-tone=light] .toc a{background:white;color:#33546c;border-color:#bfd4e1}body[data-tone=light] .featured-card{background:#fff;border-color:#c8dce8;color:#1c3b52}body[data-tone=light] .featured-card p{color:#43657a}body[data-tone=light] .section-label h2{color:#23445a}body[data-tone=light] .cert-section{color:#23445a}body[data-tone=light] .certificate-caption{background:#fff;color:#28485a;border-color:#c8deec}body[data-tone=light] .certificate-caption p{color:#42687b}body[data-tone=light] .pending-evidence>div{background:#fff;color:#25445a;border-color:#c3dce9}body[data-tone=light] .pending-evidence p{color:#426279}body[data-tone=light] .case-card{background:#fff;color:#254359;border-color:#c4dce8}body[data-tone=light] .callout{color:white}
/* Language-native typography and bidirectional layout */
html[lang=fa],html[lang=ar]{font-family:'Vazirmatn','Noto Naskh Arabic',Tahoma,sans-serif}html[lang=ja]{font-family:'Yu Gothic',Meiryo,'Noto Sans CJK JP',sans-serif}html[lang=ko]{font-family:'Malgun Gothic','Noto Sans CJK KR',sans-serif}html[lang='zh-CN']{font-family:'Microsoft YaHei','Noto Sans CJK SC',sans-serif}html[dir=rtl] .hero-content{text-align:right;align-items:flex-start}html[dir=rtl] .photohero::after{transform:scaleX(-1)}html[dir=rtl] .photohero{background-position:center}html[dir=rtl] .navitems{direction:rtl}html[dir=rtl] .feature-copy{text-align:right}html[dir=rtl] .service-body{text-align:right}html[dir=rtl] .featured-card>div{text-align:right}html[dir=rtl] .hero-side-stamp{right:auto;left:40px}html[dir=rtl] .card-arrow{right:auto;left:13px}html[dir=rtl] .image-stamp{right:auto;left:13px}html[dir=rtl] .language-picker,html[dir=rtl] .brand{direction:ltr}html[dir=rtl] .hero-overline,html[dir=rtl] .eyebrow{letter-spacing:0}
/* Responsive widths */
@media(max-width:1520px){.navshell{gap:13px;padding-inline:15px}.brand{width:200px}.brand-wordmark{width:127px}.navitems{gap:11px}.navitems a{font-size:11px}.theme-status{display:none}.service-card>img{height:125px}.service-body{padding:13px;min-height:145px}.service-body h2{font-size:14px}}
@media(max-width:1270px){.mobile{display:block;order:2;margin-inline-start:auto}.navshell{flex-wrap:wrap;gap:10px}.navitems{display:none;flex-direction:column;align-items:stretch;gap:0;order:4;flex-basis:100%;max-height:75vh;overflow:auto}.navitems.open{display:flex}.navitems a{font-size:14px;padding:9px 13px}.controls{order:3}.navitems a.active{border-inline-start:3px solid #1bbdff;border-bottom-color:transparent}.service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.proof-layout{grid-template-columns:2fr repeat(2,1fr)}.proof-pill{min-height:85px}.featured-card>img{height:185px}.case-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.container{padding:0 18px}.photohero.homehero{min-height:480px}.photohero.subhero{min-height:330px}.photohero h1{font-size:clamp(29px,6vw,45px)}.hero-summary{font-size:15px}.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-grid{grid-template-columns:1fr}.featured-card{display:grid;grid-template-columns:40% 60%}.featured-card>img{height:100%;min-height:240px}.proof-layout{grid-template-columns:repeat(2,1fr)}.proof-intro{grid-column:span 2}.proof-pill{border-top:1px solid #37627e;border-inline-start:0}.feature{grid-template-columns:1fr;gap:25px;padding:40px 0}.feature.reverse .feature-copy,.feature.reverse .feature-media{order:initial}.feature-media>img{height:300px}.callout{flex-direction:column;align-items:flex-start}.footgrid{grid-template-columns:1fr 1fr;gap:20px}.foot-brand{grid-column:span 2}}
@media(max-width:570px){.brand{width:160px;min-width:145px}.brand-symbol{width:42px}.brand-wordmark{width:103px}.brand-sub{font-size:7px;letter-spacing:1.3px;padding-inline-start:42px}.theme-name{display:none}.theme-switch{padding:7px 10px}.language-current{display:none}.language-picker summary{min-width:66px}.navshell{min-height:69px}.photohero.homehero{min-height:460px}.photohero h1{font-size:31px}.hero-side-stamp{width:46px;bottom:12px;right:14px}.hero-buttons{gap:8px}.hero-buttons .btn{font-size:11px;padding:9px 12px}.service-grid{gap:9px}.service-card>img{height:110px}.service-body{min-height:145px;padding:10px}.service-body h2{font-size:13px}.service-body p{font-size:10px}.featured-card{display:block}.featured-card>img{height:190px;min-height:0}.case-grid{grid-template-columns:1fr}.feature-media>img{height:245px}.footgrid{grid-template-columns:1fr}.foot-brand{grid-column:auto}.coverflow-row{gap:5px}.gallery-arrow{height:34px;width:34px;font-size:22px}.cert-coverflow{height:320px}.cert-card{height:260px;width:170px}.pending-evidence{grid-template-columns:1fr}.copyright{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.btn,.service-card,.featured-card,.cert-card{transition:none!important}}
/* Light-theme header deliberately uses the supplied OnLight logo, not a recolored imitation. */
body[data-tone=light] .sitehead{background:#f5fbfffa;border-bottom-color:#b9d7e8;box-shadow:0 8px 22px #0b385b13}
body[data-tone=light] .brand-logo-dark{display:none}
body[data-tone=light] .brand-logo-light{display:flex}
body[data-tone=light] .brand-sub{color:#35678d}
body[data-tone=light] .navitems a{color:#2f5470}
body[data-tone=light] .navitems a.active,body[data-tone=light] .navitems a:hover{color:#007cb9}
body[data-tone=light] .theme-switch,body[data-tone=light] .language-picker summary{background:#e7f5fd;border-color:#b7d7e9;color:#204c6b}
body[data-tone=light] .theme-status,body[data-tone=light] .language-current{color:#315a78}
body[data-tone=light] .mobile{background:#e2f3fb;color:#21506d}

body[data-tone=light] .photohero::after{background:linear-gradient(0deg,#06111d90,transparent 34%),linear-gradient(90deg,#041120e3 2%,rgba(4,17,32,.62) 36%,rgba(4,17,32,.2) 76%,rgba(4,17,32,.45) 100%)}
body[data-tone=light] .photohero h1,body[data-tone=light] .hero-summary,body[data-tone=light] .hero-overline{color:#fff}
.cert-group{padding:10px 0 28px}.cert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.small-certs{grid-template-columns:repeat(3,minmax(0,1fr))}.cert-flat-card{background:rgba(11,34,55,.78);border:1px solid #2f5d79;border-radius:18px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.18)}.cert-flat-card>img{display:block;width:100%;height:320px;object-fit:cover;background:#fff}.cert-flat-card>div{padding:14px 16px 18px}.cert-flat-card h3{margin:0 0 6px;font-size:18px;color:#fff}.cert-flat-card p{margin:0;color:#b9d5e6;font-size:14px}.small-certs .cert-flat-card>img{height:240px}.cert-section+.cert-group{padding-top:14px}body[data-tone=light] .cert-flat-card{background:#fff;color:#23455c;border-color:#c6dce8}.bodyx[data-tone=light] .cert-flat-card h3{color:#23455c}.bodyx[data-tone=light] .cert-flat-card p{color:#4a6a7e}@media(max-width:980px){.cert-grid,.small-certs{grid-template-columns:1fr 1fr}}@media(max-width:640px){.cert-grid,.small-certs{grid-template-columns:1fr}.cert-flat-card>img,.small-certs .cert-flat-card>img{height:260px}.brand{width:220px;min-width:170px}.brand-full{width:205px;height:42px}}

body[data-tone=light] .cert-flat-card h3{color:#23455c} body[data-tone=light] .cert-flat-card p{color:#4a6a7e}

/* Rev8: content-led sections without invented or repeated imagery */
.feature.text-only{grid-template-columns:minmax(0,1fr);padding-block:34px}
.feature.text-only .feature-copy{max-width:990px;order:initial}
.feature.text-only.reverse .feature-copy{order:initial}
.feature.text-only .feature-copy p{max-width:990px}
@media(max-width:820px){.feature.text-only{padding-block:26px}}

/* ArioIntel Rev9: multi-palette, readable light-theme headings and responsive menus */
body {--accent:#3ac8fc;--accent-dark:#1884c0;--header:#041529;--surface:#0a2339;--surface-text:#eff8ff;--surface-muted:#bad2e4;--control-bg:#0d2b47;--control-text:#e7f6ff;}
body[data-theme="titanium"]{--bg:#061321;--panel:#0b253d;--text:#f1f7fc;--muted:#b8d0e1;--line:#2a5774;--accent:#4ac9ff;--header:#031326;--control-text:#f1f7fc;--control-bg:#0b253d;--surface:#0b253d;--surface-text:#f1f7fc;--surface-muted:#b8d0e1;}
body[data-theme="light"]{--bg:#f3f8fc;--panel:#ffffff;--text:#18364d;--muted:#425e72;--line:#c7dce9;--accent:#117db9;--header:#edf7fe;--control-text:#18364d;--control-bg:#ffffff;--surface:#ffffff;--surface-text:#18364d;--surface-muted:#425e72;}
body[data-theme="sky"]{--bg:#e5f4ff;--panel:#ffffff;--text:#123d5d;--muted:#466b84;--line:#b8d5e8;--accent:#168fce;--header:#d9eefc;--control-text:#123d5d;--control-bg:#ffffff;--surface:#ffffff;--surface-text:#123d5d;--surface-muted:#466b84;}
body[data-theme="midnight"]{--bg:#020713;--panel:#0c1831;--text:#f8fbff;--muted:#c4d5e8;--line:#2c4163;--accent:#7ba8ff;--header:#020817;--control-text:#f8fbff;--control-bg:#0c1831;--surface:#0c1831;--surface-text:#f8fbff;--surface-muted:#c4d5e8;}
body[data-theme="ocean"]{--bg:#061e30;--panel:#0c314b;--text:#eefaff;--muted:#b8dbe9;--line:#2c6076;--accent:#41c4ed;--header:#032235;--control-text:#eefaff;--control-bg:#0c314b;--surface:#0c314b;--surface-text:#eefaff;--surface-muted:#b8dbe9;}
body[data-theme="royal"]{--bg:#111739;--panel:#1e2957;--text:#f8f9ff;--muted:#c4cffa;--line:#495896;--accent:#718aff;--header:#101a42;--control-text:#f8f9ff;--control-bg:#1e2957;--surface:#1e2957;--surface-text:#f8f9ff;--surface-muted:#c4cffa;}
body[data-theme="teal"]{--bg:#042b32;--panel:#0c4249;--text:#f1fffd;--muted:#b6dfdd;--line:#307479;--accent:#2ee8cd;--header:#053239;--control-text:#f1fffd;--control-bg:#0c4249;--surface:#0c4249;--surface-text:#f1fffd;--surface-muted:#b6dfdd;}
body[data-theme="slate"]{--bg:#202c3b;--panel:#2f4054;--text:#f5faff;--muted:#c6d2de;--line:#54697f;--accent:#a1d6ff;--header:#1b2b3a;--control-text:#f5faff;--control-bg:#2f4054;--surface:#2f4054;--surface-text:#f5faff;--surface-muted:#c6d2de;}
body[data-theme="carbon"]{--bg:#10151b;--panel:#222c39;--text:#f3f5f9;--muted:#c4ccd7;--line:#49586b;--accent:#a2bbd4;--header:#0d151e;--control-text:#f3f5f9;--control-bg:#222c39;--surface:#222c39;--surface-text:#f3f5f9;--surface-muted:#c4ccd7;}
body[data-theme="sapphire"]{--bg:#071b3e;--panel:#122f5b;--text:#eff9ff;--muted:#bbd9ef;--line:#32648f;--accent:#62b5ff;--header:#061a35;--control-text:#eff9ff;--control-bg:#122f5b;--surface:#122f5b;--surface-text:#eff9ff;--surface-muted:#bbd9ef;}
body[data-theme="emerald"]{--bg:#062b26;--panel:#0e423b;--text:#f1fff9;--muted:#c0ead7;--line:#2c6e5d;--accent:#58e5ae;--header:#082b2a;--control-text:#f1fff9;--control-bg:#0e423b;--surface:#0e423b;--surface-text:#f1fff9;--surface-muted:#c0ead7;}
body[data-theme="amber"]{--bg:#312116;--panel:#50351e;--text:#fff9ed;--muted:#e1caa7;--line:#765432;--accent:#ffca59;--header:#302011;--control-text:#fff9ed;--control-bg:#50351e;--surface:#50351e;--surface-text:#fff9ed;--surface-muted:#e1caa7;}
body[data-theme="rose"]{--bg:#321c32;--panel:#512b46;--text:#fff5fc;--muted:#e5c0d8;--line:#85465c;--accent:#ff9ac9;--header:#311a2e;--control-text:#fff5fc;--control-bg:#512b46;--surface:#512b46;--surface-text:#fff5fc;--surface-muted:#e5c0d8;}
body[data-theme="purple"]{--bg:#241538;--panel:#402658;--text:#faf4ff;--muted:#d7c5ed;--line:#664787;--accent:#bd8bff;--header:#23152f;--control-text:#faf4ff;--control-bg:#402658;--surface:#402658;--surface-text:#faf4ff;--surface-muted:#d7c5ed;}
body[data-theme="sunset"]{--bg:#3b1c2a;--panel:#653342;--text:#fff7ee;--muted:#f0c7b5;--line:#935260;--accent:#ffac76;--header:#39202e;--control-text:#fff7ee;--control-bg:#653342;--surface:#653342;--surface-text:#fff7ee;--surface-muted:#f0c7b5;}
body[data-theme="forest"]{--bg:#142a20;--panel:#254536;--text:#f2fff5;--muted:#c5e0cf;--line:#547766;--accent:#a6e1a0;--header:#132d21;--control-text:#f2fff5;--control-bg:#254536;--surface:#254536;--surface-text:#f2fff5;--surface-muted:#c5e0cf;}
body[data-theme="contrast"]{--bg:#000000;--panel:#0f0f12;--text:#ffffff;--muted:#f3f3f3;--line:#ffffff;--accent:#fff470;--header:#000000;--control-text:#ffffff;--control-bg:#0f0f12;--surface:#0f0f12;--surface-text:#ffffff;--surface-muted:#f3f3f3;}
body[data-theme="white"]{--bg:#ffffff;--panel:#f9fcff;--text:#182b3c;--muted:#445765;--line:#d2dce4;--accent:#1f6a9b;--header:#f5f8fc;--control-text:#182b3c;--control-bg:#f9fcff;--surface:#f9fcff;--surface-text:#182b3c;--surface-muted:#445765;}

.sitehead{background:var(--header)!important;border-bottom-color:var(--line)!important}
.navitems a{color:var(--text)!important}
.navitems a.active,.navitems a:hover{color:var(--accent)!important;border-bottom-color:var(--accent)!important}
.theme-switch,.language-picker summary{background:var(--control-bg)!important;color:var(--control-text)!important;border:1px solid var(--line)!important}
.theme-switch .theme-status,.language-picker .language-current{color:var(--text)!important}
.service-area{background:var(--bg)!important}
.service-card,.featured-card,.case-card,.cert-flat-card,.cert-thumb{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
.service-card .service-body,.service-body h2,.service-body p,.service-body .service-tag,.featured-card h3,.case-card h3,.section-label h2,.feature-copy h2,.cert-flat-card h3,.toc strong{color:var(--text)!important}
.service-body p,.featured-card p,.feature-copy p,.feature-list,.cert-flat-card p,.section-label>p{color:var(--muted)!important}
.service-tag,.eyebrow,.case-card span,.featured-card b{color:var(--accent)!important}
.case-card:hover,.featured-card:hover,.service-card:hover{border-color:var(--accent)!important}
.feature{border-color:var(--line)!important}
.proofband{color:#ffffff!important;background:linear-gradient(110deg,#102b45,#0b2b42 60%,#0e3853)!important}
.proofband .proof-intro h2,.proofband .proof-intro p,.proofband .proof-pill strong,.proofband .proof-pill small{color:#f8fdff!important}
.toc a{background:var(--panel)!important;border-color:var(--line)!important;color:var(--text)!important}
.callout,.callout h2,.callout p{color:#ffffff!important}
.cert-flat-card{background:var(--panel)!important}
.news-home-panel{padding-block:40px 65px}
.news-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.news-heading h2{font-size:clamp(23px,2.5vw,34px);margin:0}
.news-heading p{color:var(--muted);margin:4px 0}
.news-feed{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.news-feed-full{grid-template-columns:repeat(3,minmax(0,1fr))}
.news-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px 19px;box-shadow:0 14px 28px #0001;display:flex;flex-direction:column;gap:9px;min-height:195px}
.news-card h3{font-size:17px;line-height:1.5;margin:0;color:var(--text)}
.news-card p{font-size:13px;line-height:1.65;color:var(--muted);margin:0}
.news-card a{color:var(--accent);font-weight:650;margin-top:auto}
.news-card .news-meta{font-size:12px;display:flex;gap:10px;flex-wrap:wrap;color:var(--muted)}
.news-meta span:first-child{font-weight:750;color:var(--accent)}
.news-loading,.news-empty{grid-column:1/-1;padding:24px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);text-align:center}
.news-page{padding-top:38px;padding-bottom:70px}
.news-controls{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin:24px 0}
.news-controls input,.news-controls select{background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:10px;padding:11px;max-width:300px;min-width:175px}
.news-controls label{color:var(--text);font-size:13px;font-weight:650}
.news-attribution{color:var(--muted);font-size:13px;margin-top:26px}
.news-sources{display:flex;flex-wrap:wrap;gap:20px;padding:18px 0}
.news-sources a{color:var(--accent);text-decoration:underline}
.theme-picker{position:relative;z-index:132;direction:ltr}
.theme-picker>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:28px;min-width:120px;justify-content:space-around;user-select:none}
.theme-picker>summary::-webkit-details-marker{display:none}
.theme-menu{position:absolute;top:calc(100% + 10px);right:0;width:263px;max-width:90vw;max-height:min(65vh,510px);overflow:auto;padding:12px;border-radius:14px;background:var(--panel);color:var(--text);border:1px solid var(--line);box-shadow:0 22px 45px #0006;display:flex;flex-direction:column;gap:2px}
.theme-menu>strong{font-size:13px;padding:7px 10px 12px;color:var(--text)}
.theme-option{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;gap:13px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text);padding:8px 9px;font-size:13px}
.theme-option:hover,.theme-option:focus-visible{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 15%,transparent)}
.theme-option[aria-pressed=true]{border-color:var(--accent)}
.theme-option[aria-pressed=true]::before{content:'✓';color:var(--accent)}
.theme-swatches{display:inline-flex;gap:4px;margin-inline-start:auto;border:1px solid var(--line);border-radius:7px;padding:2px;background:#fff}
.theme-swatches i{display:block;width:18px;height:16px;border-radius:3px}
.theme-picker:not([open]) .theme-menu{display:none}
body[data-tone=light] .language-options{background:var(--panel);border-color:var(--line)}
body[data-tone=light] .language-option{color:var(--text)}
body[data-tone=light] .language-option:hover{background:#d5eaf8}
body[data-tone=light] .photohero{color:#fff}
body[data-tone=light] .photohero h1,body[data-tone=light] .photohero p,body[data-tone=light] .photohero .hero-overline{color:#fff!important;text-shadow:0 4px 22px #00121dd9!important}
body[data-tone=light] .photohero::after{background:linear-gradient(90deg,#071525d9,#0715259c 43%,#05152633)!important}
body[data-tone=light] .brand-logo-dark{display:none!important}
body[data-tone=light] .brand-logo-light{display:flex!important}
body[data-tone=dark] .brand-logo-dark{display:flex!important}
body[data-tone=dark] .brand-logo-light{display:none!important}
body[data-tone=light] .brand-sub{color:#265678}
body[data-tone=light] .case-card h3,body[data-tone=light] .featured-card h3,body[data-tone=light] .section-label h2{color:var(--text)!important}
@media(max-width:1350px){.navshell{gap:9px}.brand{width:210px!important;min-width:200px}.brand-full{width:204px!important}.navitems{gap:8px}.navitems a{font-size:11px}}
@media(max-width:1000px){.news-feed,.news-feed-full{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.news-heading{flex-direction:column;align-items:start}.news-feed,.news-feed-full{grid-template-columns:1fr}.theme-picker>summary{min-width:50px}.theme-status{display:none}.theme-menu{right:-65px}.news-controls{align-items:stretch}.news-controls input,.news-controls select{width:100%;max-width:none}}


/* Revision 10 — only curated/accepted aviation imagery is rendered. */
.photohero.hero-without-photo{background-image:radial-gradient(circle at 80% 20%,rgba(19,137,190,.35),transparent 46%),linear-gradient(118deg,#061c30 2%,#0b3552 65%,#08273c)!important;color:white}
.photohero.hero-without-photo h1,.photohero.hero-without-photo p{color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.55)!important}
.service-card.text-visual-card{overflow:hidden;position:relative;min-height:262px;background:linear-gradient(140deg,var(--panel),var(--bg))!important}
.service-monogram{display:flex;min-height:125px;align-items:center;justify-content:center;background:linear-gradient(115deg,#102b46,#06557c 85%);font-size:clamp(20px,2.6vw,34px);font-weight:850;letter-spacing:.08em;color:#e9faff;text-shadow:0 2px 12px #0012}
.service-card.text-visual-card:nth-child(2) .service-monogram{background:linear-gradient(105deg,#074454,#102e40)}
.service-card.text-visual-card:nth-child(3) .service-monogram{background:linear-gradient(105deg,#10324b,#11476c)}
.service-card.text-visual-card:nth-child(4) .service-monogram{background:linear-gradient(105deg,#133a5a,#045a79)}
.service-card.text-visual-card:nth-child(5) .service-monogram{background:linear-gradient(105deg,#103b57,#0b4d67)}
.service-card.text-visual-card:nth-child(6) .service-monogram{background:linear-gradient(105deg,#173c58,#21556d)}
.featured-visual{display:flex;min-height:182px;align-items:center;justify-content:center;padding:20px;font-size:clamp(17px,2vw,28px);letter-spacing:.055em;font-weight:850;color:#e7fbff;background:repeating-linear-gradient(130deg,#0a2941,#10466b 18px,#103b60 20px,#0c2d4a 42px)}
.featured-visual-training{background:radial-gradient(circle at 20% 60%,#075b79,#09283c 70%)}
.featured-visual-projects{background:linear-gradient(112deg,#05283b,#12496a)}
.case-without-photo .case-technical-banner{display:flex;min-height:185px;align-items:center;justify-content:center;padding:18px;background:repeating-linear-gradient(120deg,#072a46,#0b4767 21px,#082e4d 24px);color:#e9faff;font-weight:780;letter-spacing:.05em;text-align:center}
.news-home-prominent{max-width:none;padding:28px max(22px,calc((100% - 1500px)/2)) 31px!important;background:var(--panel);border-top:3px solid var(--accent);border-bottom:1px solid var(--line)}
.news-home-prominent .news-heading{margin-bottom:12px}
.news-home-prominent .news-heading h2{color:var(--text)!important}
.news-home-prominent .news-heading .eyebrow{color:var(--accent)!important}
.news-home-prominent .news-feed{gap:10px}
.news-home-prominent .news-card{min-height:155px;box-shadow:none;padding:13px 15px}
.news-home-prominent .news-card h3{font-size:15px}
.news-home-prominent .news-card p{display:none}
.news-source-line{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 12px;font-size:11px;font-weight:800;letter-spacing:.09em;color:var(--muted)}
.news-source-line span{padding:3px 10px;background:var(--bg);border:1px solid var(--line);border-radius:99px}
.news-hero-action{border:1px solid #54dfff;background:#07678c;color:#fff!important}
/* Explicit light-mode readable labels, including proof band and all tile captions. */
body[data-tone=light] .service-card .service-body h2,body[data-tone=light] .featured-card h3,body[data-tone=light] .feature-copy h2,body[data-tone=light] .section-label h2,body[data-tone=light] .case-card h3{color:var(--text)!important}
body[data-tone=light] .service-card .service-body p,body[data-tone=light] .featured-card p,body[data-tone=light] .feature-copy p{color:var(--muted)!important}
body[data-tone=light] .news-home-prominent{background:var(--panel)}
@media(max-width:800px){.news-home-prominent{padding:24px 16px!important}.service-monogram{min-height:96px}.news-home-prominent .news-feed{grid-template-columns:1fr 1fr}}
@media(max-width:540px){.news-home-prominent .news-feed{grid-template-columns:1fr}}

/* Revision 11: approved-only photo cards and one compact news widget after Services. */
.service-card.text-visual-card{background:#0b253c!important;min-height:0;display:block}
.service-card.text-visual-card>img{display:block;width:100%;height:150px;object-fit:cover;object-position:center}
.service-card.text-visual-card .service-body{min-height:155px}
.featured-grid-with-news{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;gap:15px}
.featured-grid-with-news .featured-card>img{height:174px;object-fit:cover;padding:0;background:none}
.featured-grid-with-news .featured-card:first-child>img{height:174px;object-fit:cover;padding:0;background:none}
.featured-grid-with-news .featured-card>div{padding:15px 16px 18px}
.featured-grid-with-news .featured-card h3{font-size:16px}
.featured-grid-with-news .featured-card p{font-size:12px;line-height:1.55}
.featured-news-card{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 28px #0002;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.featured-news-head{padding:17px 15px 12px;border-bottom:1px solid var(--line)}
.featured-news-head .eyebrow{color:var(--accent)}
.featured-news-head h3{font-size:17px;margin:7px 0 5px;color:var(--text)}
.featured-news-head p{font-size:12px;line-height:1.5;color:var(--muted);margin:0}
.news-feed-in-card{display:flex!important;flex-direction:column;gap:0!important;padding:0 12px}
.news-feed-in-card .news-card{background:transparent!important;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:11px 2px;min-height:0;box-shadow:none!important;color:var(--text)}
.news-feed-in-card .news-card h3{font-size:12px;line-height:1.45;font-weight:700;margin:4px 0; color:var(--text)}
.news-feed-in-card .news-card p{display:none}
.news-feed-in-card .news-card a{font-size:11px;color:var(--accent)}
.news-feed-in-card .news-meta{font-size:10px;gap:5px;color:var(--muted)}
.featured-news-more{margin-top:auto;display:block;padding:14px 17px;font-size:13px;font-weight:700;color:var(--accent);border-top:1px solid var(--line)}
.featured-news-card .news-loading,.featured-news-card .news-empty{font-size:13px;color:var(--muted);padding:15px}
body[data-tone=light] .service-card.text-visual-card{background:#fff!important;border-color:#c4d5e4;color:#203d54}
body[data-tone=light] .service-card.text-visual-card .service-body h2{color:#173951!important}
body[data-tone=light] .service-card.text-visual-card .service-body p{color:#405d70!important}
body[data-tone=light] .service-card .service-tag{color:#056894!important}
body[data-tone=light] .proofband .proof-intro h2,body[data-tone=light] .proofband .proof-pill strong{color:#fff!important}
body[data-tone=light] .proofband .proof-intro p,body[data-tone=light] .proofband .proof-pill small{color:#dcecf7!important}
@media(max-width:1310px){.featured-grid-with-news{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.featured-grid-with-news .featured-card{display:block}.featured-grid-with-news .featured-card>img{height:210px}.featured-grid-with-news .featured-card:first-child>img{height:210px}}
@media(max-width:570px){.featured-grid-with-news{grid-template-columns:1fr}.service-card.text-visual-card>img{height:130px}}

/* Give the authentic Cranfield certificate a complete, uncropped view. */
.featured-grid-with-news .featured-card:first-child>img{object-fit:contain;background:#09243b;padding:8px}


/* Revision 12: readable news rows, improved homepage news summaries, and clearer full-page feed. */
.news-feed-full{grid-template-columns:1fr!important;gap:14px}
.news-feed-full .news-card{display:grid;grid-template-columns:170px 1fr;grid-template-areas:"meta title" "meta desc" "meta link";gap:8px 18px;min-height:0;padding:18px 20px;align-items:start}
.news-feed-full .news-meta{grid-area:meta;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-top:2px}
.news-feed-full .news-meta span{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--panel-2) 72%,transparent);font-size:11px;font-weight:700}
.news-feed-full .news-meta span:first-child{color:var(--accent)}
.news-feed-full .news-card h3{grid-area:title;font-size:21px;line-height:1.35;margin:0}
.news-feed-full .news-card p{grid-area:desc;font-size:14px;line-height:1.72;margin:0;color:var(--muted)}
.news-feed-full .news-card a{grid-area:link;justify-self:start;margin-top:2px;font-size:13px}
.news-feed-in-card .news-card{padding:12px 2px;gap:6px}
.news-feed-in-card .news-card h3{font-size:13px;line-height:1.5}
.news-feed-in-card .news-card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.5;color:var(--muted);margin:0}
.news-feed-in-card .news-meta{font-size:10px;gap:6px}
.featured-news-head h3{line-height:1.35}
@media(max-width:860px){.news-feed-full .news-card{grid-template-columns:1fr;grid-template-areas:"meta" "title" "desc" "link"}}

/* Revision 15: documentary recognition remains separate from 3-certificate wall */
.documentary-section{margin-top:30px;margin-bottom:32px}
.documentary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.documentary-card{display:flex;align-items:center;gap:22px;border-radius:14px;border:1px solid var(--line);background:var(--panel);padding:16px;color:var(--text);text-decoration:none;box-shadow:0 8px 22px rgba(3,13,30,.09)}
.documentary-card img{width:145px;height:190px;max-width:34%;flex:none;object-fit:contain;background:#f2f3f4;border-radius:6px}
.documentary-card h3{font-size:17px;line-height:1.35;margin-bottom:12px;color:var(--text)}
.documentary-card span{color:var(--accent);font-size:13px;font-weight:600}
.documentary-card:hover{border-color:var(--accent)}
.cert-original-link[hidden]{display:none}
@media(max-width:690px){.documentary-grid{grid-template-columns:1fr}.documentary-card img{width:108px;height:148px}}


/* Revision 16 — scrollable, readable aviation news in the featured homepage card. */
.featured-grid-with-news{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(320px,1.4fr)}
.featured-news-card{min-height:0;max-width:100%;}
.featured-news-card .news-feed-in-card{
 display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
 flex:0 1 auto;height:440px;max-height:440px;min-height:180px;
 overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;
 scrollbar-color:var(--accent) transparent;padding:0 11px 0 14px;
}
.featured-news-card .news-feed-in-card::-webkit-scrollbar{width:9px}
.featured-news-card .news-feed-in-card::-webkit-scrollbar-thumb{background:var(--accent);border:2px solid var(--panel);border-radius:12px}
.featured-news-card .news-feed-in-card .news-card{flex:0 0 auto;min-width:0;padding:13px 0;overflow-wrap:anywhere}
.featured-news-card .news-feed-in-card .news-card h3{font-size:13px;line-height:1.48;margin:2px 0;white-space:normal;overflow-wrap:anywhere}
.featured-news-card .news-feed-in-card .news-card p{
 display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;
 overflow:hidden;color:var(--muted);font-size:11px;line-height:1.55;margin:0 0 2px;
}
.featured-news-card .news-feed-in-card .news-meta{font-size:10px;display:flex;flex-wrap:wrap;gap:6px;line-height:1.4}
.featured-news-more{flex:0 0 auto}
@media(max-width:1310px){.featured-grid-with-news{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.featured-grid-with-news{grid-template-columns:minmax(0,1fr)}.featured-news-card .news-feed-in-card{height:390px;max-height:390px}}

/* Revision 16 — display each authentic certificate, preserving its orientation and proportions. */
.certificate-directory{padding-top:26px;padding-bottom:25px}
.certificate-directory h2{color:var(--text);margin:0 0 14px;font-size:clamp(19px,2.2vw,26px)}
.certificate-total{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;font-size:14px;border-radius:18px;padding:0 9px;background:var(--panel);border:1px solid var(--line);color:var(--accent)}
.certificate-category-nav{display:flex;gap:12px;flex-wrap:wrap}
.certificate-category-nav a{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:100%;min-width:195px;flex:1;border:1px solid var(--line);border-radius:10px;padding:12px 16px;background:var(--panel);color:var(--text);font-size:13px;line-height:1.45;text-decoration:none}
.certificate-category-nav a:hover,.certificate-category-nav a:focus-visible{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent)}
.certificate-category-nav strong{color:var(--accent);font-size:17px}
.cert-group[id],.cert-section[id]{scroll-margin-top:100px}
.cert-grid .cert-flat-card>a{display:flex;align-items:center;justify-content:center;background:#f6f7f9;padding:10px;min-height:270px}
.cert-grid .cert-flat-card>a>img{display:block;max-width:100%;height:285px;width:100%;object-fit:contain;object-position:center;background:#fff}
.small-certs .cert-flat-card>a>img{height:245px}
.cert-grid .cert-flat-card>a:hover>img{filter:brightness(.98)}
@media(max-width:650px){.cert-grid .cert-flat-card>a>img,.small-certs .cert-flat-card>a>img{height:240px}.certificate-category-nav a{flex-basis:100%}}


/* REV17 — single 3D gallery for every certificate and localized header experience */
.brand{width:340px;min-width:298px}
.brand-sub{display:flex;align-items:center;gap:8px;max-width:100%;padding-inline-start:56px;letter-spacing:0;white-space:nowrap;line-height:1.3;color:#93c7e9}
.brand-tagline{font-size:9px;font-weight:700;letter-spacing:.75px}
.brand-experience{border-inline-start:1px solid currentColor;padding-inline-start:8px;font-size:9px;font-weight:700;color:#81ddff}
body[data-tone=light] .brand-experience{color:#086ea3}
html[lang=fa] .brand-sub,html[lang=ar] .brand-sub{font-family:Tahoma,'Vazirmatn',sans-serif;letter-spacing:0}
.certificate-directory{padding-top:36px}
.certificate-directory-header h2{display:flex;align-items:center;gap:12px;margin:7px 0 20px}
.cert-unified-viewer{padding-top:18px;scroll-margin-top:100px}
.cert-card.landscape{width:366px;height:268px}
.cert-card.portrait{width:270px;height:360px}
.cert-card img{object-fit:contain}
.certificate-category-nav button{display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:100%;min-width:190px;flex:1;border:1px solid var(--line);border-radius:10px;padding:12px 16px;background:var(--panel);color:var(--text);font-size:13px;line-height:1.45;text-align:start;cursor:pointer}
.certificate-category-nav button:hover,.certificate-category-nav button:focus-visible,.certificate-category-nav button[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent)}
.certificate-category-nav button strong{color:var(--accent);font-size:17px}
.cert-actions{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}
.cert-actions [hidden]{display:none!important}
.certthumbs{justify-content:flex-start;scrollbar-width:thin;padding:14px 8px 18px}
.certthumb{flex:0 0 auto}
.cert-coverflow{scroll-margin-top:120px}
@media(max-width:1590px){.brand{width:300px;min-width:250px}.brand-tagline,.brand-experience{font-size:8px}.brand-sub{gap:6px}.brand-experience{padding-inline-start:6px}}
@media(max-width:1270px){.brand{width:315px;min-width:235px}.brand-sub{gap:8px}.brand-tagline,.brand-experience{font-size:9px}}
@media(max-width:680px){.brand{width:245px;min-width:210px}.brand-sub{padding-inline-start:37px;gap:4px}.brand-tagline,.brand-experience{font-size:7px;letter-spacing:0}.brand-experience{padding-inline-start:4px}.cert-card.landscape{height:190px;width:265px}.cert-card.portrait{height:258px;width:175px}.certificate-category-nav button{min-width:100%;font-size:12px}}
@media(max-width:390px){.brand{min-width:190px;width:195px}.brand-sub{padding-inline-start:29px}.brand-tagline,.brand-experience{font-size:6px}}
@media(min-width:1271px) and (max-width:1450px){
  .brand{width:262px!important;min-width:262px!important}
  .brand-full{width:251px!important}
  .brand-sub{padding-inline-start:49px}
  .brand-tagline,.brand-experience{font-size:7.6px}
  .navitems{gap:7px}
  .navitems a{font-size:10px}
  .controls{gap:7px}
  .theme-name{display:none}
}


/* REV18: Shorter home featured row, with independent news scrolling.
   Desktop target ~70% of the prior tall news-driven layout (not 70% of the content). */
@media(min-width:571px){
  .featured-grid-with-news{align-items:stretch;grid-auto-rows:400px}
  .featured-grid-with-news > .featured-card,
  .featured-grid-with-news > .featured-news-card{height:400px;min-height:0;max-height:400px;overflow:hidden}
  .featured-grid-with-news > .featured-card{display:flex;flex-direction:column}
  .featured-grid-with-news .featured-card > img,
  .featured-grid-with-news .featured-card:first-child > img{height:145px;min-height:0;flex:0 0 145px;object-fit:cover;padding:0;background:transparent}
  .featured-grid-with-news .featured-card:first-child > img{object-position:69% 49%}
  .featured-grid-with-news .featured-card > div{flex:1;min-height:0;padding:12px 15px 14px;display:flex;flex-direction:column;gap:3px}
  .featured-grid-with-news .featured-card h3{font-size:16px;line-height:1.38;margin:3px 0 1px}
  .featured-grid-with-news .featured-card p{font-size:12px;line-height:1.5;margin:4px 0 6px;min-height:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
  .featured-grid-with-news .featured-card b{margin-top:auto}
  .featured-grid-with-news .featured-news-head{padding:12px 14px 10px}
  .featured-grid-with-news .featured-news-head h3{font-size:16px;line-height:1.3;margin:3px 0}
  .featured-grid-with-news .featured-news-head p{font-size:11px;line-height:1.4}
  .featured-grid-with-news .featured-news-card .news-feed-in-card{
    flex:1 1 auto;height:auto;max-height:none;min-height:0;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain;scrollbar-gutter:stable;
  }
  .featured-grid-with-news .featured-news-more{padding:10px 15px}
}
/* On small screens use natural-height image cards, while keeping the news scrollable. */
@media(max-width:570px){
  .featured-grid-with-news > .featured-card{height:auto;max-height:none;display:block;overflow:hidden}
  .featured-grid-with-news .featured-card > img,
  .featured-grid-with-news .featured-card:first-child > img{height:170px;min-height:0;object-fit:cover;padding:0}
  .featured-grid-with-news .featured-card:first-child > img{object-position:69% 49%}
  .featured-grid-with-news > .featured-news-card{height:365px;max-height:365px;min-height:0}
  .featured-grid-with-news .featured-news-card .news-feed-in-card{
    height:auto;max-height:none;min-height:0;flex:1 1 auto;
    overflow-y:auto!important;overflow-x:hidden!important
  }
}
/* More than 20 Years of Experience: prominent within header, yet wraps safely
   where the translated phrase is wider than the available header space. */
.sitehead .brand{width:386px;min-width:298px}
.sitehead .brand-sub{display:flex;align-items:center;gap:8px;flex-wrap:wrap;white-space:normal;line-height:1.3;padding-inline-start:52px}
.sitehead .brand-tagline{font-size:9px;font-weight:700;letter-spacing:.65px}
.sitehead .brand-experience{
   font-size:12.5px;font-weight:850;letter-spacing:0;
   color:#81ddff;border-inline-start:2px solid currentColor;
   padding-inline-start:8px;line-height:1.2;
}
/* High-contrast experience statement on all three light header palettes. */
body[data-tone=light] .sitehead .brand-experience{
  color:#084d73;
  border-inline-start-color:#084d73;
  font-weight:850;
  text-shadow:none;
}
body[data-theme="light"] .sitehead .brand-experience,
body[data-theme="sky"] .sitehead .brand-experience,
body[data-theme="white"] .sitehead .brand-experience{
  color:#084d73;
  border-inline-start-color:#084d73;
}
body[data-tone=light] .sitehead .brand-tagline{color:#23516c}
@media(max-width:1650px){
  .sitehead .brand{width:350px;min-width:292px}
  .sitehead .brand-experience{font-size:11px}
}
@media(max-width:1450px){
  .sitehead .brand{width:294px!important;min-width:275px!important}
  .sitehead .brand-full{width:268px!important}
  .sitehead .brand-sub{padding-inline-start:43px;gap:4px}
  .sitehead .brand-experience{font-size:10.5px}
  .sitehead .brand-tagline{font-size:8px}
}
@media(max-width:1270px){
  .sitehead .brand{width:340px!important;min-width:280px!important}
  .sitehead .brand-experience{font-size:11.5px}
  .sitehead .brand-tagline{font-size:9px}
}
@media(max-width:680px){
  .sitehead .brand{width:255px!important;min-width:215px!important}
  .sitehead .brand-full{width:235px!important}
  .sitehead .brand-sub{padding-inline-start:31px;gap:4px}
  .sitehead .brand-experience{font-size:9.5px;padding-inline-start:5px}
  .sitehead .brand-tagline{font-size:8px}
}
@media(max-width:390px){
  .sitehead .brand{width:222px!important;min-width:193px!important}
  .sitehead .brand-full{width:215px!important}
  .sitehead .brand-sub{padding-inline-start:24px}
  .sitehead .brand-experience{font-size:9px}
  .sitehead .brand-tagline{font-size:7px}
}


/* REV19 — each theme has distinct surfaces; all component text inherits its actual surface. */
body[data-theme="titanium"]{--bg:#071a29;--panel:#122f45;--panel-2:#1d4057;--surface:#122f45;--surface-text:#f7fbff;--surface-muted:#cfdfed;--text:#f7fbff;--muted:#cfdfed;--line:#42708b;--accent:#73d8ff;--header:#081b2e;--control-bg:#122f45;--control-text:#f7fbff;--card-bg:#122f45;}
body[data-theme="light"]{--bg:#fbf4e8;--panel:#fffdf7;--panel-2:#f1e7d4;--surface:#fffdf7;--surface-text:#1c3541;--surface-muted:#475b60;--text:#1c3541;--muted:#475b60;--line:#baa98e;--accent:#006a69;--header:#f5ead5;--control-bg:#fffdf7;--control-text:#1c3541;--card-bg:#fffdf7;}
body[data-theme="sky"]{--bg:#cdeeff;--panel:#f3fbff;--panel-2:#d9eef9;--surface:#f3fbff;--surface-text:#183f5e;--surface-muted:#3b617a;--text:#183f5e;--muted:#3b617a;--line:#88b8d3;--accent:#075f9b;--header:#c2e4f6;--control-bg:#f3fbff;--control-text:#183f5e;--card-bg:#f3fbff;}
body[data-theme="midnight"]{--bg:#130c26;--panel:#201a39;--panel-2:#31284b;--surface:#201a39;--surface-text:#faf5ff;--surface-muted:#d8cbe9;--text:#faf5ff;--muted:#d8cbe9;--line:#55476d;--accent:#c6a5ff;--header:#120b23;--control-bg:#201a39;--control-text:#faf5ff;--card-bg:#201a39;}
body[data-theme="ocean"]{--bg:#063b4a;--panel:#145261;--panel-2:#206777;--surface:#145261;--surface-text:#f3fdff;--surface-muted:#c0e5ec;--text:#f3fdff;--muted:#c0e5ec;--line:#46818e;--accent:#86ebff;--header:#063440;--control-bg:#145261;--control-text:#f3fdff;--card-bg:#145261;}
body[data-theme="royal"]{--bg:#1b195e;--panel:#302d7b;--panel-2:#413c96;--surface:#302d7b;--surface-text:#faf8ff;--surface-muted:#dfdaf6;--text:#faf8ff;--muted:#dfdaf6;--line:#6c66af;--accent:#c1b7ff;--header:#17154b;--control-bg:#302d7b;--control-text:#faf8ff;--card-bg:#302d7b;}
body[data-theme="teal"]{--bg:#124c49;--panel:#1a635d;--panel-2:#2a7770;--surface:#1a635d;--surface-text:#f6fffb;--surface-muted:#d3f1e8;--text:#f6fffb;--muted:#d3f1e8;--line:#55998e;--accent:#a2f8e8;--header:#103f3d;--control-bg:#1a635d;--control-text:#f6fffb;--card-bg:#1a635d;}
body[data-theme="slate"]{--bg:#434955;--panel:#586271;--panel-2:#657384;--surface:#586271;--surface-text:#ffffff;--surface-muted:#e3eaf4;--text:#ffffff;--muted:#e3eaf4;--line:#8a98a9;--accent:#e0ecff;--header:#343a45;--control-bg:#586271;--control-text:#ffffff;--card-bg:#586271;}
body[data-theme="carbon"]{--bg:#181818;--panel:#292929;--panel-2:#383838;--surface:#292929;--surface-text:#ffffff;--surface-muted:#dadada;--text:#ffffff;--muted:#dadada;--line:#656565;--accent:#e6e6e6;--header:#121212;--control-bg:#292929;--control-text:#ffffff;--card-bg:#292929;}
body[data-theme="sapphire"]{--bg:#102b78;--panel:#1c4495;--panel-2:#2856aa;--surface:#1c4495;--surface-text:#f6faff;--surface-muted:#d4e5ff;--text:#f6faff;--muted:#d4e5ff;--line:#5886ca;--accent:#a1d9ff;--header:#0c2366;--control-bg:#1c4495;--control-text:#f6faff;--card-bg:#1c4495;}
body[data-theme="emerald"]{--bg:#07442e;--panel:#155c3d;--panel-2:#27704b;--surface:#155c3d;--surface-text:#f5fff8;--surface-muted:#ceecda;--text:#f5fff8;--muted:#ceecda;--line:#458b5d;--accent:#a1ffcc;--header:#063924;--control-bg:#155c3d;--control-text:#f5fff8;--card-bg:#155c3d;}
body[data-theme="amber"]{--bg:#492b10;--panel:#684017;--panel-2:#855624;--surface:#684017;--surface-text:#fffaf0;--surface-muted:#f3dfbf;--text:#fffaf0;--muted:#f3dfbf;--line:#9e743a;--accent:#ffe199;--header:#382007;--control-bg:#684017;--control-text:#fffaf0;--card-bg:#684017;}
body[data-theme="rose"]{--bg:#501d3e;--panel:#6c2d54;--panel-2:#813b68;--surface:#6c2d54;--surface-text:#fff6fb;--surface-muted:#f3d5e5;--text:#fff6fb;--muted:#f3d5e5;--line:#a65e87;--accent:#ffc0e1;--header:#3f1530;--control-bg:#6c2d54;--control-text:#fff6fb;--card-bg:#6c2d54;}
body[data-theme="purple"]{--bg:#33205d;--panel:#4a317b;--panel-2:#624391;--surface:#4a317b;--surface-text:#fcfaff;--surface-muted:#e6d9f6;--text:#fcfaff;--muted:#e6d9f6;--line:#9272b4;--accent:#ddc1ff;--header:#281849;--control-bg:#4a317b;--control-text:#fcfaff;--card-bg:#4a317b;}
body[data-theme="sunset"]{--bg:#6a2e20;--panel:#8b4229;--panel-2:#a45a33;--surface:#8b4229;--surface-text:#fff7ef;--surface-muted:#ffe0c5;--text:#fff7ef;--muted:#ffe0c5;--line:#cb8063;--accent:#ffe0ac;--header:#552218;--control-bg:#8b4229;--control-text:#fff7ef;--card-bg:#8b4229;}
body[data-theme="forest"]{--bg:#2d3a16;--panel:#43552a;--panel-2:#586e38;--surface:#43552a;--surface-text:#fafff2;--surface-muted:#e1edce;--text:#fafff2;--muted:#e1edce;--line:#829459;--accent:#e8fcb7;--header:#25300f;--control-bg:#43552a;--control-text:#fafff2;--card-bg:#43552a;}
body[data-theme="contrast"]{--bg:#000000;--panel:#101010;--panel-2:#1e1e1e;--surface:#101010;--surface-text:#ffffff;--surface-muted:#f3f3f3;--text:#ffffff;--muted:#f3f3f3;--line:#ffffff;--accent:#fff74e;--header:#000000;--control-bg:#101010;--control-text:#ffffff;--card-bg:#101010;}
body[data-theme="white"]{--bg:#ffffff;--panel:#edf2f6;--panel-2:#dde6ed;--surface:#edf2f6;--surface-text:#1b2c3c;--surface-muted:#435869;--text:#1b2c3c;--muted:#435869;--line:#bcccd7;--accent:#095b7f;--header:#f7fbff;--control-bg:#edf2f6;--control-text:#1b2c3c;--card-bg:#edf2f6;}

/* Keep the service and feature cards matched to their theme, not hard-coded titanium. */
body .service-card.text-visual-card, body[data-tone=light] .service-card.text-visual-card,
body .service-card, body .featured-card, body .featured-news-card,
body .case-card, body .documentary-card, body .news-card {
 background:var(--panel)!important;color:var(--text)!important;
 border-color:var(--line)!important;
}
body .service-card .service-body,body .featured-card>div{background:var(--panel)!important;color:var(--text)!important}
body .service-card .service-body h2,body[data-tone=light] .service-card .service-body h2,
body .featured-card h3,body .featured-news-card h3,body .case-card h3,
body .feature-copy h2,body .section-label h2,body .proofband .proof-intro h2,
body .documentary-card h3,body .certificate-directory h2 {color:var(--text)!important}
body .service-card .service-body p,body[data-tone=light] .service-card .service-body p,
body .featured-card p,body .featured-news-head p,body .news-card p,
body .documentary-card p,body .feature-copy p,body .feature-list,body .section-label>p {color:var(--muted)!important}
body .service-card .service-tag,body[data-tone=light] .service-card .service-tag,
body .featured-card b,body .eyebrow,body .news-card a,body .featured-news-more,
body .card-arrow,body .case-card span{color:var(--accent)!important}
body .theme-menu,body .language-options,body .news-controls input,body .news-controls select{
 background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important
}
body .language-option,body .language-current,body .theme-option,body .theme-switch,
body .theme-status,body .language-picker summary,body .navitems a{color:var(--text)!important}
body .language-option:hover,body .language-option.is-current,body .theme-option:hover{
 background:var(--panel-2)!important;color:var(--text)!important
}
/* News metadata is rendered on card backgrounds, never dark-on-dark pills in a light theme. */
body .news-card .news-meta,body .news-feed-full .news-card .news-meta{color:var(--muted)!important}
body .news-card .news-meta span,body .news-feed-full .news-card .news-meta span{
 background:var(--panel-2)!important;border:1px solid var(--line)!important;
 color:var(--text)!important;font-weight:650;overflow-wrap:anywhere;
}
body .news-card .news-meta span:first-child,body .news-feed-full .news-card .news-meta span:first-child{color:var(--accent)!important}
body .featured-news-card .news-feed-in-card{scrollbar-color:var(--accent) var(--panel)}
body .proofband{background:linear-gradient(115deg,var(--panel-2),var(--panel),var(--bg))!important;color:var(--text)!important;border-color:var(--line)!important}
body .proofband .proof-intro h2,body .proofband .proof-pill strong{color:var(--text)!important}
body .proofband .proof-intro p,body .proofband .proof-pill small{color:var(--muted)!important}
body .proofband .proof-symbol{color:var(--accent)!important}
body .proofband .proof-pill{border-color:var(--line)!important}
body .toc a,body .certificate-category-nav button{background:var(--panel)!important;border-color:var(--line)!important;color:var(--text)!important}
/* Hero images remain darkened intentionally, independent of the selected page theme. */
body .photohero h1{color:#fff!important}body .photohero .hero-summary{color:#f1f7ff!important}
body .photohero .hero-overline{color:#a7e9ff!important}
body .btn.primary{background:#006fbd;color:#fff!important;border:1px solid #71bfff}
body .btn.outline{background:#082d46;color:#fff!important;border:1px solid #65a9d1}
body .btn:focus-visible,body .theme-option:focus-visible,body .language-option:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
/* Ensure portal controls are not rendered unless both configured and reachable on server. */
/* Higher-specificity correction for earlier hard-coded light-mode proof text. */
body[data-tone=light] .proofband .proof-intro h2,
body[data-tone=light] .proofband .proof-pill strong{color:var(--text)!important}
body[data-tone=light] .proofband .proof-intro p,
body[data-tone=light] .proofband .proof-pill small{color:var(--muted)!important}
/* Tone-independent focus and state distinctions. */
body .featured-card:focus-visible,body .service-card:focus-visible,
body .news-card a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ARIOINTEL_THEME_STATUS_VISIBILITY_FIX_V1
   In the original corporate stylesheet the theme name is hidden on browser
   widths <= 1520px and again <= 620px. Keep selected theme visible at all
   widths without modifying theme palettes, cookies, JavaScript or markup.
*/
@media (max-width: 1520px) {
  body .theme-picker > summary .theme-status {
    display: inline-block !important;
    min-width: 0;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
}
@media (max-width: 620px) {
  body .theme-picker > summary .theme-status {
    display: inline-block !important;
    max-width: 105px;
    font-size: 12px;
  }
}

/* ARIOINTEL_THEME_MENU_RTL_SWATCH_ALIGNMENT_FIX_V2
   Keep theme names beside swatches, independent of page direction.
   Keep the popup anchored inside the viewport for LTR and RTL layouts.
*/
html body .theme-picker .theme-menu {
  width: min(310px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  min-width: 0;
  overflow-x: hidden;
}
html body .theme-picker .theme-option {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  column-gap: 8px;
  text-align: start;
  white-space: normal;
  min-width: 0;
}
html body .theme-picker .theme-option > span:first-child {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 65px);
  overflow-wrap: anywhere;
  white-space: normal;
  unicode-bidi: plaintext;
}
html body .theme-picker .theme-option .theme-swatches {
  display: inline-flex;
  flex: 0 0 auto;
  margin-inline-start: 0;
  margin-inline-end: 0;
  white-space: nowrap;
}
html[dir="rtl"] body .theme-picker .theme-menu {
  direction: rtl;
  text-align: right;
  left: 0;
  right: auto;
}
html[dir="rtl"] body .theme-picker .theme-option {
  direction: rtl;
  text-align: right;
}
@media (max-width: 620px) {
  html[dir="rtl"] body .theme-picker .theme-menu {
    left: 0;
    right: auto;
  }
}
@media (max-width: 620px) {
  /* A viewport-anchored mobile menu avoids clipping when the header wraps. */
  html body .theme-picker .theme-menu {
    position: fixed;
    left: 50% !important;
    right: auto !important;
    top: 126px;
    transform: translateX(-50%);
    width: min(310px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 142px);
    max-height: calc(100dvh - 142px);
  }
}
