/* Hyper Logic Enterprise 5 — single shared design contract. Brand accents come from original logo.
   Legacy settings remain in storage; this edition fixes public palette and type to prevent drift. */
:root {
  --hl-font: "Segoe UI", Tahoma, Arial, sans-serif;
  --hl-width: 1440px; --hl-gutter: clamp(16px,2.5vw,40px);
  --hl-h1: 15pt; --hl-h2: 13pt; --hl-body: 11pt; --hl-small: 9pt; --hl-legal: 7pt;
  --hl-space: 8px; --hl-radius: 2px;
  --sot-canvas:#f6f9fc!important; --sot-canvas-2:#ffffff!important; --sot-surface:#ffffff!important; --sot-surface-1:#ffffff!important; --sot-surface-2:#edf3f8!important; --sot-surface-3:#edf3f8!important;
  --sot-text:#0b1323!important; --sot-page-text:#0b1323!important; --sot-heading:#0b1323!important; --sot-text-soft:#34465b!important; --sot-muted:#516479!important; --sot-card-text:#0b1323!important; --sot-card-muted:#516479!important;
  --sot-cyan-500:#d52197!important; --sot-cyan-400:#d52197!important; --sot-cyan-300:#d52197!important; --sot-magenta-500:#429bc0!important; --sot-magenta-400:#429bc0!important;
  --sot-link:#086b99!important; --sot-line:#d2dce7!important; --sot-line-strong:#91a6bb!important; --sot-theme-header:#0b1323!important; --sot-theme-footer:#0b1323!important; --sot-nav-text:#f6f9fc!important; --sot-footer-text:#f6f9fc!important;
  --sot-button-text:#ffffff!important; --sot-button-secondary-text:#0b1323!important; --sot-input:#ffffff!important; --sot-input-text:#0b1323!important;
  --sot-home-panel:#ffffff!important; --sot-home-highlight:#edf3f8!important; --sot-home-border:#d2dce7!important; --sot-admin-panel:#ffffff!important; --sot-admin-text:#0b1323!important;
  --sot-v8-panel:#ffffff!important; --sot-v8-panel-soft:#edf3f8!important;
  --hl-action:#bd1680; --hl-primary:#d52197; --hl-secondary:#429bc0; --hl-on-action:#fff;
  --sot-font:var(--hl-font); --sot-radius-sm:2px; --sot-radius:2px; --sot-radius-lg:2px;
  --sot-brand-gradient:#bd1680!important;
}
html body.site-shell-page{font-family:var(--hl-font)!important;font-size:var(--hl-body)!important;line-height:1.6;background:#f6f9fc!important;color:#0b1323!important;letter-spacing:normal}
html[dir=rtl] body.site-shell-page{font-family:Tahoma,"Segoe UI",Arial,sans-serif!important;letter-spacing:normal}
body.site-shell-page :is(button,input,select,textarea){font-family:inherit!important;letter-spacing:normal!important}
html body.site-shell-page #site-main :is(h1,.section-title,.product-title,.article-title,.cart-title){font-size:var(--hl-h1)!important;line-height:1.35!important;letter-spacing:normal!important;font-weight:700!important}
html body.site-shell-page #site-main :is(h2,h3,h4,.article-card-title){font-size:var(--hl-h2)!important;line-height:1.4!important;letter-spacing:normal!important;font-weight:650!important}
html body.site-shell-page #site-main :is(p,li,dd,dt,label,input,select,textarea,blockquote,td,th){font-size:var(--hl-body)!important;line-height:1.65!important;letter-spacing:normal!important}
html body.site-shell-page #site-main :is(.button,.primary-btn,.state-btn,.summary-btn,button:not(.sh-footer-toggle),.edition-action){font-size:10pt!important;letter-spacing:normal!important;border-radius:2px!important;box-shadow:none!important;text-shadow:none!important;transform:none!important}
html body.site-shell-page #site-main :is(.button--primary,.primary-btn,.state-btn,.summary-btn--primary,.edition-action--strong){background:#bd1680!important;color:white!important;border:1px solid #bd1680!important}
html body.site-shell-page #site-main :is(.button--secondary,.edition-action:not(.edition-action--strong)){background:transparent!important;color:#086b99!important;border:1px solid #429bc0!important}
html body.site-shell-page #site-main :is(.surface-card,.product-card,.commerce-product-card,.article-card,.commerce-article-card,.cart-panel,.auth-panel,.account-user-card,.account-product-card,.account-order-card,.account-stat-panel,.product-summary-card,.product-content-block,.home-flex-card,.home-column,.home-story,.home-center-extras,.home-mini-card,.hl-edition,.catalog-sidebar,.account-products-shell,.account-orders-shell){border-radius:2px!important;box-shadow:none!important;transform:none!important;filter:none!important;border-color:#d2dce7!important;background:#fff!important}
html body.site-shell-page #site-main :is(.product-card,.commerce-product-card,.article-card,.commerce-article-card,.hl-edition):hover{border-color:#429bc0!important;box-shadow:none!important;transform:none!important}
html body.site-shell-page #site-main :is(.product-card,.commerce-product-card,.article-card,.commerce-article-card,.auth-panel)::before{display:none!important}
html body.site-shell-page #site-main :is(.product-card__media,.commerce-product-card__image,.article-card-image,.product-thumb,.product-gallery,.home-gallery,.edition-figure){border-radius:0!important;box-shadow:none!important;filter:none!important}
html body.site-shell-page #site-main :is(input,select,textarea){border-radius:2px!important;box-shadow:none!important}
body.site-shell-page .container{width:min(var(--hl-width),calc(100% - 2 * var(--hl-gutter)))!important;max-width:var(--hl-width)!important;margin-inline:auto!important}
#site-header {--sh-bar-height:64px;--sh-axis:min(var(--hl-width),calc(100% - 2 * var(--hl-gutter)));color:#f6f9fc!important}
#site-header .sh-bar{background:#0b1323!important;border-bottom:1px solid #429bc0!important;box-shadow:none!important}
#site-header .sh-row{gap:clamp(8px,1.3vw,22px);min-height:64px}
#site-header .sh-brand-name,#site-header .sh-brand-name span,#site-header .sh-brand-caption{color:#f6f9fc!important}
#site-header .sh-brand-name{font-size:16px!important;letter-spacing:0!important}
#site-header .sh-brand-caption{font-size:9px!important}
#site-header .sh-logo-plate{background:transparent!important;padding:0}
#site-header .sh-logo-plate img{width:40px!important}
#site-header .sh-navigation{gap:0}
html body #site-header :is(.sh-nav-link,.sh-language,.sh-account,.sh-icon-button){color:#f6f9fc!important;font-size:10pt!important;font-weight:600;min-height:40px;padding-inline:8px}
#site-header .sh-nav-link::after{height:2px;background:transparent}
#site-header .sh-nav-link:is(:hover,[aria-current=page],[aria-expanded=true])::after{background:#d52197}
#site-header :is(.sh-layer,.sh-account-menu){background:#16243a!important;color:#f6f9fc!important;border-color:#429bc0!important;box-shadow:0 10px 24px #0003!important}
#site-header :is(.sh-layer,.sh-account-menu) :is(h2,h3,strong,p,small,span,label,a,button){color:#f6f9fc!important}
#site-header .sh-mega-grid{padding-block:22px;gap:24px}
#site-header .sh-menu-intro h2,#site-header .sh-search-heading{font-size:15pt!important;letter-spacing:normal}
#site-header .sh-feature-symbol{color:#429bc0!important;background:transparent!important;border-color:#435570!important}
#site-header .sh-input-wrap{background:#fff!important;color:#0b1323!important;border-radius:2px!important}
#site-header #siteSearchInput{color:#0b1323!important;background:#fff!important}
#site-footer{--sh-axis:min(var(--hl-width),calc(100% - 2 * var(--hl-gutter)));background:#0b1323!important;color:#f6f9fc!important}
#site-footer .sh-footer-body{padding-block:24px 16px;gap:24px;grid-template-columns:minmax(180px,.8fr) minmax(0,2.5fr)}
#site-footer .sh-footer-brand :is(p,span),#site-footer .sh-footer-toggle,#site-footer .sh-footer-toggle span{color:#f6f9fc!important}
#site-footer .sh-logo-plate{background:transparent!important}
#site-footer .sh-footer-links a,#site-footer .sh-footer-brand p{font-size:9pt!important;line-height:1.45!important}
#site-footer .sh-footer-toggle{font-size:10pt!important}
#site-footer .sh-footer-base-row,#site-footer .sh-footer-base-row>span{font-size:7pt!important}
#site-footer .sh-footer-base nav a{font-size:9pt!important}
/* Home: single editorial narrative, one live catalog and one article list. */
html body.home-shell-page #site-main.hl-home{padding:0!important;max-width:none!important}
html body.home-shell-page #site-main .hl-hero,.enterprise-engine-hero{background:#0b1323!important;color:#f6f9fc!important;border:0!important;border-bottom:2px solid #429bc0!important}
html body.home-shell-page #site-main .hl-hero-grid,.enterprise-engine-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;gap:clamp(24px,4vw,64px);padding-block:28px!important;min-height:0!important}
html body.home-shell-page #site-main .hl-hero #marketplaceTitle{font-size:15pt!important;max-inline-size:none!important;line-height:1.4!important;color:#fff!important;letter-spacing:normal!important;margin:0!important}
html body.home-shell-page #site-main .hl-hero #homeEyebrow,.enterprise-kicker{color:#429bc0!important;font-size:9pt!important;letter-spacing:.04em!important;margin:0 0 12px!important;font-weight:650!important}
html body.home-shell-page #site-main .hl-hero #homeIntroduction{font-size:11pt!important;color:#f6f9fc!important;max-inline-size:56ch;margin:12px 0 18px!important}
html body.home-shell-page #site-main .hl-hero .button--secondary,.enterprise-engine-hero .button--secondary{color:#f6f9fc!important}
html body.home-shell-page #site-main .hl-hero .home-gallery{background:#0b1323!important;border:0!important;margin:0!important}
html body.home-shell-page #site-main .hl-hero .home-gallery-stage{aspect-ratio: 16/8;min-height:0!important;max-height:300px!important;background:#0b1323!important}
html body.home-shell-page #site-main .hl-hero .home-gallery-stage img{object-fit:cover!important}
html body.home-shell-page #site-main .hl-hero .home-gallery-bar{background:#0b1323!important;color:#f6f9fc!important;border:0!important}
html body.home-shell-page #site-main .hl-hero .home-gallery-caption{color:#b5c0cf!important;font-size:9pt!important}
html body.home-shell-page #site-main .hl-company{display:grid;grid-template-columns:1fr 1.45fr;gap:32px;padding-block:24px!important;border-bottom:1px solid #d2dce7}
html body.home-shell-page #site-main .hl-workflow,.enterprise-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;align-items:stretch;list-style:none;margin:0;padding:0}
html body.home-shell-page #site-main .hl-workflow li,.enterprise-flow span{display:grid;place-content:center;text-align:center;position:relative;padding:14px 10px;border:0!important;border-inline-end:1px solid #d2dce7!important;background:transparent!important;font-size:10pt!important;font-weight:650;color:#0b1323!important}
html body.home-shell-page #site-main .hl-workflow li::before,.edition-step{display:none!important;content:none!important}
html body.home-shell-page #site-main .hl-workflow li:last-child,.enterprise-flow span:last-child{border:0!important}
html body.home-shell-page #site-main :is(.hl-editions,.hl-solutions,.hl-resources,.hl-use-cases){padding-block:26px!important}
html body.home-shell-page #site-main .hl-edition-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important;gap:16px!important}
html body.home-shell-page #site-main .hl-edition{padding:20px!important;border:1px solid #d2dce7!important;border-block-start:3px solid #429bc0!important}
html body.home-shell-page #site-main .hl-edition-student{border-block-start-color:#d52197!important}
html body.home-shell-page #site-main .hl-edition :is(h3,p,li){color:#0b1323!important}
html body.home-shell-page #site-main .hl-edition-tag,.enterprise-status{font-size:9pt!important;color:#086b99!important;background:none!important}
html body.home-shell-page #site-main .hl-edition-points{gap:6px;list-style:none}
.enterprise-science{background:#fff;border-block:1px solid #d2dce7;padding-block:28px}
.enterprise-science-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.enterprise-science-grid article{min-width:0;padding:12px 18px;border-inline-start:1px solid #d2dce7}
.enterprise-token-visual,.enterprise-formula{height:64px;display:flex;align-items:center;justify-content:center;gap:6px;direction:ltr;color:#0b1323;background:#edf3f8;font-size:13pt;font-weight:600}
.enterprise-token-visual span{padding:3px 6px;border:1px solid #b2c9dc;background:#fff}
.enterprise-formula{font-family:Cambria,"Times New Roman",serif;white-space:nowrap}
.enterprise-loss{width:100%;height:64px;display:block;background:#edf3f8}
html body.site-shell-page #site-main .enterprise-note{font-size:9pt!important;color:#516479!important;margin-top:12px}
html body.home-shell-page #site-main .enterprise-duplicate-catalog{display:none!important}
html body.home-shell-page #site-main .home-layout__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:20px!important;max-width:1440px!important}
html body.home-shell-page #site-main .home-layout__grid:has(.home-discover[hidden]):has(.home-custom[hidden]){grid-template-columns:minmax(0,1fr)!important}
html body.home-shell-page #site-main :is(.home-story,.home-column,.home-center-extras>div:not(:empty)){padding:16px!important;border-radius:2px!important;box-shadow:none!important}
html body.home-shell-page #site-main .home-center-extras:empty,html body.home-shell-page #site-main #homeLowerCards:empty{display:none!important}
html body.home-shell-page #site-main .hl-collection-controls button{border-radius:2px!important;min-height:36px!important;background:#fff!important;color:#0b1323!important}
html body.home-shell-page #site-main .hl-collection-controls button[aria-pressed=true]{background:#0b1323!important;color:#fff!important;border-color:#0b1323!important}
/* Separate engine, book and article identities within one grid system. */
.enterprise-engine-grid img{width:100%;max-height:280px;object-fit:cover;display:block}
html body.site-shell-page #site-main .enterprise-engine-hero :is(h1,p){color:#f6f9fc!important}
.enterprise-section{padding-block:28px;border-block-end:1px solid #d2dce7}
.enterprise-editions{display:grid;grid-template-columns:1.3fr 1fr;gap:16px}
.enterprise-editions article{padding:20px;border:1px solid #d2dce7;border-block-start:3px solid #d52197;background:#fff}
.enterprise-editions article+article{border-block-start-color:#429bc0}
body.books-shell-page #site-main .product-card__media{aspect-ratio:3/4!important;background:#edf3f8!important;max-height:250px!important}
body.books-shell-page #site-main .product-card__media img{object-fit:contain!important;padding:12px}
body.products-shell-page #site-main .page-intro-band,body.articles-shell-page #site-main .page-intro-band{background:#edf3f8!important;border-bottom:1px solid #d2dce7;padding-block:22px!important}
body.products-shell-page #site-main .catalog-sidebar{border:1px solid #d2dce7!important;padding:16px!important}
body.products-shell-page #site-main .catalog-category-nav a.active{color:#fff!important;background:#0b1323!important;border-radius:2px!important}
body.article-shell-page #site-main .article-body{max-width:82ch!important;line-height:1.75!important}
body.article-shell-page #site-main .article-body img{max-width:100%;height:auto}
body.articles-shell-page #site-main .articles-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))!important;gap:16px!important}
body.site-shell-page #site-main.edition-page .edition-hero{background:#0b1323!important;border-bottom:2px solid #429bc0!important}
body.site-shell-page #site-main.edition-page .edition-hero :is(h1,p,small,figcaption){color:#f6f9fc!important}
body.site-shell-page #site-main.edition-page .edition-hero-grid{padding-block:28px!important}
body.site-shell-page #site-main.edition-page .edition-cards>li{border-radius:2px!important;border-block-start:2px solid #429bc0!important}
body.auth-shell-page #site-main .auth-entry{background:#edf3f8!important;padding-block:32px!important}
body.auth-shell-page #site-main .auth-panel{border:1px solid #d2dce7!important;border-block-start:3px solid #d52197!important}
body.account-shell-page #site-main .account-layout{gap:16px!important}
body.admin-shell-page{direction:ltr;--admin-sidebar:220px;--admin-gap:16px}
body.admin-shell-page :is(.admin-sidebar,.admin-card,.admin-panel,.metric-card,.sidebar-nav a,.admin-shell button,.admin-shell input,.admin-shell select){border-radius:2px!important;box-shadow:none!important}
body.admin-shell-page .admin-sidebar{top:76px;background:#0b1323!important;color:#fff!important;border-color:#16243a!important}
body.admin-shell-page .admin-sidebar :is(h1,p,a,span){color:#f6f9fc!important}
body.admin-shell-page .sidebar-nav a:is(.active,[aria-current=page]){background:#bd1680!important;color:#fff!important}
body.admin-shell-page .admin-shell{gap:16px;padding-block:16px}
body.admin-shell-page .admin-shell :is(h1,h2,h3){letter-spacing:normal!important}
[hidden]{display:none!important}
@media(max-width:1050px){#site-header .sh-row{min-height:60px}#site-header .sh-navigation{display:none!important}#site-header #mobileToggle{display:inline-flex!important}}
@media(max-width:760px){html body.home-shell-page #site-main :is(.hl-hero-grid,.hl-company,.hl-edition-grid,.home-layout__grid),.enterprise-engine-grid,.enterprise-editions,.enterprise-science-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}html body.home-shell-page #site-main .hl-workflow,.enterprise-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important}#site-footer .sh-footer-body{grid-template-columns:1fr!important}#site-header .sh-row{gap:4px;min-height:56px}#site-header .sh-brand-name{font-size:13px!important}#site-header .sh-logo-plate img{width:32px!important}#site-header :is(.sh-icon-button,.sh-language,.sh-account){padding-inline:5px;min-width:36px}#site-header .sh-brand-caption{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Keep compatibility aliases on the same palette even when legacy stored themes are loaded. */
:root{--gh-black:#f6f9fc!important;--gh-black-2:#fff!important;--gh-navy:#fff!important;--gh-navy-2:#edf3f8!important;--gh-blue:#429bc0!important;--gh-blue-deep:#429bc0!important;--gh-orange:#d52197!important;--gh-orange-2:#086b99!important;--gh-orange-bright:#086b99!important;--gh-orange-soft:#086b99!important;--gh-gold:#d52197!important;--gh-text:#0b1323!important;--gh-soft:#34465b!important;--gh-muted:#516479!important;--gh-line:#d2dce7!important;--gh-line-blue:#d2dce7!important;--sot-ink-950:#f6f9fc!important;--sot-ink-900:#fff!important;--sot-ink-850:#fff!important;--sot-ink-800:#edf3f8!important;--sot-muted-light:#34465b!important;--sot-v8-line:#d2dce7!important;--sot-black:#f6f9fc!important}
html body.home-shell-page #site-main .hl-edition-grid:has(.hl-edition-student[hidden]){grid-template-columns:minmax(0,1fr)!important}
html body.home-shell-page #site-main .home-center-extras:has(#homeCenterArticles:empty){display:none!important}
html body.home-shell-page #site-main .home-gallery[data-single-slide=true] .home-gallery-controls{display:none!important}
html body.home-shell-page #site-main .hl-home .hl-section-head h2,html body.home-shell-page #site-main .hl-section-head h2{font-size:13pt!important}
#site-header .sh-results .sh-search-result{border-color:#435570!important}
html body.site-shell-page #site-main .edition-hero .edition-action:not(.edition-action--strong){color:#f6f9fc!important}
