/* Catalogue presentation. Section order preserves the existing cascade. */

/* Gold lighting */
.hero-visual{--light-stop:34%;--light-strength:.32}
.hero-visual::after{content:none}
.qwen-feature{position:relative;isolation:isolate;display:grid;grid-template-columns:250px minmax(0,1fr);align-items:center;gap:64px;max-width:1200px;width:calc(100% - 80px);margin:0 auto 54px;padding:32px 28px 36px;background:#111110;border-top:1px solid #55442c;border-bottom:1px solid #332c22;box-shadow:inset 0 2px 7px #0007;--light-stop:50%;--light-strength:.15}
.qwen-feature::before{content:'';pointer-events:none;position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at var(--light-stop) 0,#d7a64e1d,transparent 65%);opacity:var(--light-strength)}
.qwen-feature::after,.demo-section::after{content:'';pointer-events:none;position:absolute;top:-1px;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent calc(var(--light-stop,50%) - 25%),#ffe0a2 var(--light-stop,50%),transparent calc(var(--light-stop,50%) + 25%));opacity:var(--light-strength,.2)}
.qwen-art{margin:0;display:flex;justify-content:center;align-items:center;min-width:0}
.qwen-art img{display:block;width:215px;height:auto;max-width:100%;object-fit:contain;border:0;box-shadow:none;filter:none;image-rendering:auto}
.model-feature-emblem{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;width:215px;min-height:208px;padding:24px;color:#d6b67c;border:1px solid #55442c;background:radial-gradient(ellipse at 50% 0,#d7a64e1d,transparent 75%)}
.model-feature-emblem svg{width:86px;height:86px;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round;stroke-linejoin:round}
.model-feature-emblem span{font:13px/1.5 var(--body);text-align:center;overflow-wrap:anywhere}
.qwen-feature-copy{min-width:0}
.qwen-feature .section-kicker{color:#bea77f;font-size:12px;margin-bottom:12px}
.qwen-feature h2{font:500 38px/1.15 var(--display);letter-spacing:-.04em;color:#eee3cf;margin-bottom:17px;overflow-wrap:anywhere}
#modelFeatureDescription{font:14px/1.8 var(--body);color:#bdb2a0;max-width:690px}
.qwen-feature-specs{display:flex;gap:26px 34px;flex-wrap:wrap;margin:22px 0 0}
.qwen-feature-specs>div{min-width:90px}
.qwen-feature-specs dt{font:11px/1.5 var(--body);color:#a99b84;margin-bottom:6px}
.qwen-feature-specs dd{margin:0;font:14px/1.5 var(--body);color:#e4cca3;max-width:300px}
.qwen-actions{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-top:23px}
.qwen-actions a{font:13px/1.5 var(--body);color:#d6b67c;text-underline-offset:5px;min-height:44px;display:inline-flex;align-items:center}
.qwen-actions button{font-size:13px;min-height:46px;padding:10px 16px}
.demo-section{position:relative;--light-strength:.15}
.light-surface{--light-stop:50%;--light-strength:.15}
.osl-btn-amber,.osl-btn-dark,.hero-demo-link,.osl-nav-cta,.demo-unload{position:relative;overflow:hidden;isolation:isolate}
.osl-btn-amber::after,.osl-btn-dark::after,.hero-demo-link::after,.osl-nav-cta::after,.demo-unload::after{content:'';pointer-events:none;position:absolute;inset:-30% -70%;background:linear-gradient(112deg,transparent 38%,#fff0bc25 50%,transparent 62%);transform:translateX(-65%);transition:transform 700ms cubic-bezier(.2,.65,.3,1)}
.osl-btn-amber:hover::after,.osl-btn-dark:hover::after,.hero-demo-link:hover::after,.osl-nav-cta:hover::after,.demo-unload:hover::after{transform:translateX(65%)}
.osl-home-group{position:relative}
.osl-home-group::before{content:'';pointer-events:none;position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent calc(var(--light-stop,50%) - 25%),#e3ae5138 var(--light-stop,50%),transparent calc(var(--light-stop,50%) + 25%));opacity:var(--light-strength,.1)}
@media(max-width:900px) {
  .qwen-feature{grid-template-columns:180px minmax(0,1fr);gap:34px;padding:28px 24px}
  .qwen-art img{width:175px}
  .model-feature-emblem{width:175px;min-height:169px;padding:18px;gap:16px}
  .model-feature-emblem svg{width:66px;height:66px}
  .qwen-feature h2{font-size:31px}
  .qwen-feature-specs{gap:20px}
}
@media(max-width:700px) {
  .hero-visual::after{inset:auto;width:330px;height:265px;left:50%;top:-42px;transform:translateX(-50%)}
  .qwen-feature{grid-template-columns:1fr;width:calc(100% - 40px);gap:20px;padding:24px 0 29px;background:transparent;box-shadow:none;margin-bottom:35px;align-items:start}
  .qwen-art{justify-content:flex-start}
  .qwen-art img{width:155px;height:auto}
  .model-feature-emblem{width:155px;min-height:150px}
  .qwen-feature h2{font-size:31px;margin-bottom:14px}
  #modelFeatureDescription{font-size:14px;line-height:1.75}
  .qwen-feature-specs{display:grid;grid-template-columns:.65fr 1.35fr;gap:20px 18px}
  .qwen-feature-specs>div:last-child{grid-column:1/-1}
  .qwen-feature-specs dd{font-size:13px}
  .qwen-feature-specs dt{font-size:11px}
  .qwen-actions{gap:16px;margin-top:22px}
  .qwen-actions a{font-size:12px}
  .qwen-actions button{font-size:12px}
}
@media(prefers-reduced-motion:reduce) {
  .hero-visual::after,.qwen-feature::before,.qwen-feature::after,.demo-section::after,.osl-home-group::before{display:none!important}
  .osl-btn-amber::after,.osl-btn-dark::after,.hero-demo-link::after,.osl-nav-cta::after,.demo-unload::after{display:none!important;transition:none!important}
}
/* Studio lighting behind the processor, fading into the catalogue. */
#home {
  background:
    radial-gradient(ellipse clamp(260px, 35vw, 560px) 330px at 74% 270px,
      #8d5e323e, #5f42251d 52%, transparent 100%),
    radial-gradient(ellipse clamp(340px, 53vw, 760px) 360px at 82% 390px,
      #48556b30, transparent 100%),
    #11110f;
}
#home .osl-hero, #home .scale-section { background: transparent; }

@media (max-width: 700px) {
  #home { background: #11110f; }
  #home .osl-hero {
    background:
      radial-gradient(ellipse 58% 29% at 50% 70%, #8d5e324c, transparent 100%),
      radial-gradient(ellipse 74% 25% at 65% 75%, #48556b33, transparent 100%);
  }
}
#home .scale-section{border-bottom:0}
#home .qwen-feature{background:transparent;border:0;box-shadow:none}
#home .qwen-feature::before,#home .qwen-feature::after{content:none}
#modelFeatureArt{min-height:208px}
#modelFeatureArt .model-art{width:215px;height:208px;object-fit:contain}
.model-art-card{display:block;width:120px;height:64px;object-fit:contain;object-position:left center;margin-bottom:14px;max-width:100%}
.model-art-detail{display:block;width:180px;height:96px;object-fit:contain;object-position:left center;margin-bottom:20px;max-width:100%}
@media(max-width:900px) {
  #modelFeatureArt{min-height:169px}
  #modelFeatureArt .model-art{width:175px;height:169px}
}
@media(max-width:700px) {
  #modelFeatureArt{min-height:150px}
  #modelFeatureArt .model-art{width:155px;height:150px}
}
.osl-detail-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,180px);gap:20px;align-items:start}
.osl-detail-header:has(#detailArt[hidden]){grid-template-columns:1fr}
#detailArt{justify-self:end;width:100%;padding-top:22px}
#detailArt .model-art-detail{width:100%;height:110px;object-position:right center;margin:0}
@media(max-width:600px) {
  .osl-detail-header{grid-template-columns:minmax(0,1fr) 90px;gap:12px}
  #detailArt .model-art-detail{height:80px}
}

/* Animated processor */
.chip-scene{--scene-scale:1;position:relative;width:100%;height:440px;max-height:none;perspective:1450px;overflow:visible;pointer-events:none}
.chip-camera{position:absolute;left:50%;top:53%;width:340px;height:340px;margin:-170px 0 0 -170px;transform-style:preserve-3d;transform:scale(var(--scene-scale)) rotateX(56deg);animation:product-dolly 22s cubic-bezier(.45,0,.55,1) infinite}
.chip-turntable{position:absolute;inset:0;transform-style:preserve-3d;animation:product-camera-arc 22s cubic-bezier(.45,0,.55,1) infinite;transform:rotateZ(-46deg)}
.chip-solid{position:absolute;transform-style:preserve-3d;width:var(--slab-width);height:var(--slab-depth);transform:translateZ(var(--slab-z));--slab-edge:#50565b;--slab-side:linear-gradient(90deg,#15181a,#3b4044 58%,#171a1c)}
.chip-solid>.slab-top,.chip-solid>.slab-bottom{position:absolute;inset:0;box-sizing:border-box;background:linear-gradient(130deg,#33383b,#191c1e 60%,#262b2e);border:1px solid var(--slab-edge);backface-visibility:hidden}
.chip-solid>.slab-top{transform:translateZ(var(--slab-height))}
.chip-solid>.slab-bottom{transform:rotateX(180deg);background:#121518}
.chip-solid>.slab-front,.chip-solid>.slab-back,.chip-solid>.slab-left,.chip-solid>.slab-right{position:absolute;display:block;box-sizing:border-box;background:var(--slab-side);border:1px solid #4a50544d;transform-origin:0 0}
.chip-solid>.slab-front,.chip-solid>.slab-back{left:0;width:100%;height:var(--slab-height);transform:rotateX(90deg)}
.chip-solid>.slab-front{top:100%}
.chip-solid>.slab-back{top:0}
.chip-solid>.slab-left,.chip-solid>.slab-right{top:0;width:var(--slab-height);height:100%;transform:rotateY(-90deg)}
.chip-solid>.slab-left{left:0}
.chip-solid>.slab-right{left:100%}
.carrier-board{--slab-width:340px;--slab-depth:340px;--slab-height:9px;--slab-z:0px;--slab-edge:#51595e;--slab-side:linear-gradient(90deg,#20272b,#424b52 50%,#151a1e);left:0;top:0}
.carrier-board>.slab-top{background:linear-gradient(130deg,#252a2e,#171b1f 45%,#0f1316);box-shadow:inset 0 0 0 5px #181e22,inset 0 0 0 6px #484e5240}
.board-routing{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:1;overflow:visible}
.board-border{stroke:#879197;stroke-opacity:.28}
.board-etch{stroke:#77848c;stroke-opacity:.18}
.board-screws{fill:#141a1e;stroke:#7b858c;stroke-width:1.3}
.board-trace{stroke:#77858d;stroke-opacity:.38;stroke-width:1.3}
.trace-packet{display:none}
.micro-module{position:absolute;width:50px;height:50px;transform:translateZ(10px);transform-style:preserve-3d}
.micro-0{left:29px;top:29px}
.micro-1{left:261px;top:29px}
.micro-2{left:29px;top:261px}
.micro-3{left:261px;top:261px}
.micro-processor{--slab-width:50px;--slab-depth:50px;--slab-height:7px;--slab-z:1px;--slab-edge:#6b747b;--slab-side:linear-gradient(90deg,#080d10,#454d53,#0f1519)}
.micro-processor>.slab-top{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:linear-gradient(135deg,#353c42,#141a1e 65%);box-shadow:inset 0 0 0 3px #1e252a,inset 0 0 0 4px #6e787b60;color:#b8c1c7}
.micro-processor>.slab-top svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.micro-processor>.slab-top>span{font:9px/1 Arial,sans-serif;letter-spacing:.3px}
.micro-pins{position:absolute;display:block;transform:translateZ(2px);pointer-events:none}
.pins-x{left:-7px;top:4px;width:64px;height:42px;background:repeating-linear-gradient(0deg,transparent 0 3px,#7a858c 3px 5px,transparent 5px 8px)}
.pins-y{left:4px;top:-7px;width:42px;height:64px;background:repeating-linear-gradient(90deg,transparent 0 3px,#7a858c 3px 5px,transparent 5px 8px)}
.core-base{--slab-width:194px;--slab-depth:194px;--slab-height:25px;--slab-z:11px;--slab-edge:#70716b;left:73px;top:73px}
.core-base>.slab-top{background:linear-gradient(125deg,#484b48,#212522 46%,#141917);box-shadow:inset 0 0 0 5px #2c302c,inset 0 0 0 6px #8b8b6f66}
.core-base>.slab-front,.core-base>.slab-back{background:repeating-linear-gradient(90deg,transparent 0 6px,#665034 6px 7px,#b7a16d 7px 10px,#edcf94 10px 11px,transparent 11px 15px),linear-gradient(0deg,#131715,#353b35)}
.core-base>.slab-left,.core-base>.slab-right{background:repeating-linear-gradient(0deg,transparent 0 6px,#665034 6px 7px,#b7a16d 7px 10px,#edcf94 10px 11px,transparent 11px 15px),linear-gradient(90deg,#131715,#353b35)}
.base-grid{position:absolute;inset:15px;background:repeating-linear-gradient(0deg,transparent 0 13px,#95a4901c 13px 14px),repeating-linear-gradient(90deg,transparent 0 13px,#95a4901c 13px 14px);border:1px solid #8e9c8966}
.core-bus{--slab-width:188px;--slab-depth:188px;--slab-height:10px;--slab-z:36px;--slab-edge:#ad976b;--slab-side:linear-gradient(90deg,#7e6945,#d3bf97,#977d51);left:76px;top:76px}
.core-bus>.slab-top{background:linear-gradient(135deg,#242d2a,#0e1714);box-shadow:inset 0 0 0 4px #b58b3e,inset 0 0 0 6px #111a15}
.core-routing{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#b7a773;stroke-opacity:.5;stroke-width:.65}
.bus-pulse{display:none}
.silicon-die{position:absolute;inset:56px;background:linear-gradient(130deg,#767b6e,#242d29 48%,#758276);border:2px solid #a3a585;box-shadow:0 0 0 5px #151e19,0 0 0 6px #7c8563}
.core-crown{--slab-width:174px;--slab-depth:174px;--slab-height:22px;--slab-z:46px;--slab-edge:#b7b4a1;left:83px;top:83px}
.core-crown>.slab-top{background:linear-gradient(135deg,#6b6b61,#252a28 65%);border-color:#939589;box-shadow:inset 0 0 0 4px #222825,inset 0 0 0 5px #74796c}
.gold-die{position:absolute;inset:9px;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #d9c39b;background:linear-gradient(125deg,#8b6d3d 0%,#ccb17d 24%,#e8d4aa 42%,#af925a 70%,#d7c194);box-shadow:inset 0 0 0 4px #b39a6b,inset 0 0 0 5px #d5c095}
.gold-die img{width:78%;height:auto;opacity:.95}
.die-glint{position:absolute;inset:-45% -80%;background:linear-gradient(110deg,transparent 37%,#fff8e59c 50%,transparent 63%);opacity:0;transform:translateX(-46%);animation:studio-keylight 22s cubic-bezier(.4,0,.5,1) infinite;pointer-events:none}
.chip-stage-floor{position:absolute;inset:0;background:url('./assets/studio-grid.svg') center/100% 100% no-repeat;pointer-events:none}
.chip-ground-shadow{position:absolute;left:50%;top:66%;width:83%;height:26%;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(ellipse,#000b 0%,#0004 40%,transparent 70%);pointer-events:none}
.chip-scene[data-motion=paused] *{animation-play-state:paused!important}
@keyframes product-camera-arc {0%,100%{transform:rotateZ(-46deg)}50%{transform:rotateZ(-28deg)}}
@keyframes product-dolly {0%,100%{transform:scale(var(--scene-scale)) rotateX(56deg)}50%{transform:scale(calc(var(--scene-scale) * 1.035)) rotateX(58deg)}}
@keyframes studio-keylight {0%,12%{transform:translateX(-46%);opacity:0}32%{opacity:.25}58%{opacity:.18}76%,100%{transform:translateX(46%);opacity:0}}
@keyframes graphite-reflection {0%,12%{transform:translateX(-80%);opacity:0}36%{opacity:.12}64%{opacity:.07}80%,100%{transform:translateX(80%);opacity:0}}
.carrier-board>.slab-top::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(118deg,transparent 24%,#e7eef759 50%,transparent 76%);transform:translateX(-80%);opacity:0;animation:graphite-reflection 22s cubic-bezier(.4,0,.5,1) infinite}
@media(min-width:701px) and (max-width:1050px) {
  .chip-scene{--scene-scale:.74;height:380px}
  .chip-camera{top:55%}
}
@media(max-width:700px) {
  .hero-visual{height:245px;min-height:245px}
  .model-chip-art.chip-scene{--scene-scale:.58;position:relative;left:auto;top:auto;transform:none;width:100%;height:245px}
  .chip-camera{top:59%}
}
@media(prefers-reduced-motion:reduce) {
  .chip-scene:not([data-motion=running]) *{animation-play-state:paused!important}
}

/* Catalogue and demo alignment */
@media (min-width: 901px) {
  .osl-home-group .osl-card, .catalogue-list .osl-card{grid-template-columns:minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(85px, .55fr) max-content;gap:28px;align-items:start}
  .osl-home-group .osl-card-heading, .catalogue-list .osl-card-heading{grid-column:1;grid-row:1}
  .osl-home-group .osl-card-desc, .catalogue-list .osl-card-desc{grid-column:2;grid-row:1;margin:0}
  .osl-home-group .osl-card-specs, .catalogue-list .osl-card-specs{display:block;grid-column:3;grid-row:1}
  .osl-home-group .osl-card-actions, .catalogue-list .osl-card-actions{grid-column:4;grid-row:1;flex-direction:row;align-items:center;justify-content:flex-end}
}
@media (min-width: 541px) and (max-width: 900px) {
  .osl-home-group .osl-card, .catalogue-list .osl-card{grid-template-columns:minmax(0, 1fr) minmax(0, 1.2fr);gap:12px 24px;align-items:start}
  .osl-home-group .osl-card-heading, .catalogue-list .osl-card-heading{grid-column:1;grid-row:1}
  .osl-home-group .osl-card-desc, .catalogue-list .osl-card-desc{grid-column:2;grid-row:1;margin:0}
  .osl-home-group .osl-card-specs, .catalogue-list .osl-card-specs{display:block;grid-column:1;grid-row:2}
  .osl-home-group .osl-card-actions, .catalogue-list .osl-card-actions{grid-column:2;grid-row:2;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center}
}
@media (max-width: 540px) {
  .osl-home-group .osl-card, .catalogue-list .osl-card{display:grid;grid-template-columns:minmax(0, 1fr);gap:12px;align-items:start}
  .osl-home-group .osl-card-heading, .catalogue-list .osl-card-heading{grid-column:1;grid-row:1}
  .osl-home-group .osl-card-desc, .catalogue-list .osl-card-desc{grid-column:1;grid-row:2;margin:0}
  .osl-home-group .osl-card-specs, .catalogue-list .osl-card-specs{grid-column:1;grid-row:3;text-align:left}
  .osl-home-group .osl-card-actions, .catalogue-list .osl-card-actions{grid-column:1;grid-row:4;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center}
}
.osl-cta p{margin-left:0;margin-right:0;text-align:left}
@media (min-width: 901px) {
  .osl-home-group .osl-card{grid-template-columns:minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(85px, .55fr) 260px}
}
@media (min-width: 701px) {
  .osl-cta{padding-left:max(40px, calc((100% - var(--measure)) / 2));padding-right:max(40px, calc((100% - var(--measure)) / 2))}
}
#demo .demo-section{width:calc(100% - 8.4vw);max-width:1320px;margin:56px auto 80px;padding:clamp(28px,4.5vw,64px);box-sizing:border-box}
#demo .demo-intro{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);column-gap:clamp(36px,7vw,100px);row-gap:18px;align-items:end;margin:0 0 44px}
#demo .demo-intro .section-kicker{grid-column:1/-1;margin:0;color:#d1a567}
#demo .demo-intro h1{max-width:680px;margin:0;color:#f1e9dc;font-size:clamp(36px,4.3vw,60px);font-weight:500;line-height:1.08;letter-spacing:-.045em}
#demo .demo-intro>p:last-child{max-width:42ch;margin:0 0 4px;color:#c8bdab;font-size:15px;line-height:1.75}
#demo .demo-workbench,#demo .demo-workbench:has(iframe){display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);align-items:start;gap:clamp(32px,5vw,72px);padding-top:36px;border-top:1px solid #514632}
#demo .demo-selector{display:block;padding:24px;background:#1a1813;border:1px solid #4b3f2e}
#demo .demo-selector label{display:block;margin:0 0 12px;color:#eadcc5;font-size:14px;font-weight:600}
#demo .demo-selector select{display:block;width:100%;min-width:0;min-height:50px;padding:12px 48px 12px 12px;color:#f0e2cb;font-size:13px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 16 16%27 fill=%27none%27%3E%3Cpath d=%27m4 6 4 4 4-4%27 stroke=%27%23e9d9bd%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:16px}
#demo .demo-selector p{margin:16px 0 0;color:#bfb19b;font-size:12px;line-height:1.7}
#demo .demo-selector .text-button{display:inline-block;margin:12px 0 0;text-align:left;color:#e7c38b}
#demo .demo-card{min-width:0;padding:2px 0 0!important}
#demo .demo-card .section-kicker{margin:0 0 10px;color:#d1a567}
#demo .demo-card h3{margin:0;color:#f1e9dc;font-size:clamp(28px,2.8vw,38px);line-height:1.15;overflow-wrap:anywhere}
#demo .demo-provider{margin:10px 0 22px;color:#bcae99;font-size:12px;overflow-wrap:anywhere}
#demo .demo-description{max-width:65ch;margin:0;color:#e0d7ca;font-size:15px;line-height:1.75}
#demo .demo-privacy{max-width:65ch;margin:24px 0 26px;padding:16px 0 17px;border:0;border-top:1px solid #514632;border-bottom:1px solid #514632;background:transparent;color:#c8bdab;font-size:14px;line-height:1.7}
#demo .demo-privacy::before{content:"BEFORE YOU BEGIN";display:block;margin-bottom:8px;color:#d1a567;font:600 11px/1.4 var(--mono);letter-spacing:.12em}
#demo .demo-actions{gap:14px 22px}
#demo .demo-actions a{font-size:13px;color:#e7c38b}
#demo .demo-status{max-width:65ch;margin:16px 0 0;color:#b8ad9d;font-size:12px;line-height:1.6}
#demo .demo-frame-host:has(iframe){margin-top:24px}
@media(max-width:900px) {
  #demo .demo-intro{grid-template-columns:1fr;gap:16px;margin-bottom:32px}
  #demo .demo-intro .section-kicker{grid-column:auto}
  #demo .demo-workbench,#demo .demo-workbench:has(iframe){grid-template-columns:1fr;gap:30px;padding-top:28px}
  #demo .demo-selector{max-width:none}
}
@media(max-width:540px) {
  #demo .demo-section{width:calc(100% - 40px);margin:30px auto 45px;padding:28px 22px}
  #demo .demo-intro h1{font-size:35px}
  #demo .demo-intro>p:last-child{font-size:14px}
  #demo .demo-selector{padding:18px}
  #demo .demo-card h3{font-size:28px}
  #demo .demo-description{font-size:14px}
  #demo .demo-privacy{font-size:14px}
  #demo .demo-actions{align-items:flex-start}
}
.osl-explore-toolbar{border-bottom:0}
#sortModels{appearance:none;padding-right:46px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23e9d9bd' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}

/* Cookie notice */
.cookie-notice[hidden]{display:none}
.cookie-notice{position:fixed;z-index:10000;right:24px;bottom:24px;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:24px;background:#f8f5ed;color:#211e19;border:1px solid #cabd9d;box-shadow:0 12px 45px #0005;font-family:var(--body, sans-serif)}
.cookie-notice-kicker{font-size:10px!important;letter-spacing:.16em;font-weight:700;color:#85682e;margin:0 0 8px!important}
.cookie-notice h2{font-size:24px;line-height:1.15;margin:0 0 10px}
.cookie-notice p{font-size:13px;line-height:1.6;margin:0;color:#514c43}
.cookie-notice-links{display:flex;gap:18px;margin:12px 0 18px!important}
.cookie-notice a{color:#564016;text-decoration:underline;text-underline-offset:3px}
.cookie-notice button{background:#26231d;color:#fff;border:1px solid #26231d;min-height:44px;padding:10px 16px;font-size:13px;cursor:pointer}
.cookie-notice :focus-visible,.cookie-settings:focus-visible{outline:3px solid #b27c1f;outline-offset:3px}
.cookie-settings{background:none;border:0;padding:0;text-align:left;font:inherit;color:inherit;text-decoration:none;cursor:pointer}
@media(max-width:600px) {
  .cookie-notice{right:16px;bottom:16px;padding:20px}
  .cookie-notice button{width:100%}
}
.cookie-options{border-top:1px solid #ded5c2;border-bottom:1px solid #ded5c2;margin-top:16px;padding:12px 0;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}
.cookie-options div{grid-column:1/-1}
.cookie-options strong,.cookie-options span{display:block}
.cookie-options strong{font-size:13px}
.cookie-options span{font-size:11px;color:#625b50;margin-top:3px}
.cookie-options input{width:20px;height:20px;accent-color:#8b6b2e}
.cookie-actions{display:flex;gap:7px;flex-wrap:wrap}
.cookie-actions button{flex:1 1 auto;padding:10px;font-size:12px}
.cookie-actions button:first-child,.cookie-actions button:nth-child(2){background:transparent;color:#26231d}
@media(max-width:600px) {
  .cookie-actions button{width:auto}
}
.cookie-notice-copy>p+p{margin-top:10px}
.cookie-actions #cookieReject,.cookie-actions #cookieAccept{background:#26231d;color:#fff;flex:1 1 45%;font-weight:600}
.cookie-actions #cookieSave{background:transparent;color:#26231d;flex:1 1 100%}
.osl-footer-bottom{display:flex;align-items:center;flex-wrap:wrap}
.osl-footer-bottom .cookie-settings{margin-left:auto;font-size:11px;line-height:1.5;color:inherit}

/* List rows need the full catalogue width; cards use fewer columns on tablets. */
#exploreGrid.catalogue-list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 701px) and (max-width: 1050px) {
  #exploreGrid:not(.catalogue-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Provider links respond to both pointer and keyboard interaction. */
.osl-card-sources .osl-card-destination { color: #d7c4a2; }
.osl-card-sources .osl-card-destination,
.osl-modal-destinations .osl-modal-destination{transition:color .16s ease,background-color .16s ease,border-color .16s ease}
.osl-card-sources .osl-card-destination:hover,
.osl-card-sources .osl-card-destination:focus-visible,
.osl-modal-destinations .osl-modal-destination:hover,
.osl-modal-destinations .osl-modal-destination:focus-visible{color:#ffe0a2;background:#352818;border-color:#c39150;text-decoration:underline;text-underline-offset:3px}
.osl-card-sources .osl-card-destination:focus-visible,
.osl-modal-destinations .osl-modal-destination:focus-visible{outline:2px solid #e6b96f;outline-offset:3px}
#exploreGrid:not(.catalogue-list) .osl-card-destination:hover { background-color: transparent; }


#explore .osl-explore-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 28px;
  padding-bottom: 0;
  margin-bottom: 18px;
}
#explore .osl-explore-search {
  width: min(100%, 320px);
  margin: 0;
}
#explore #exploreSearch,
#explore #sortModels {
  box-sizing: border-box;
  height: 46px;
}
#explore #exploreSearch { display: block; padding-block: 0; }
#explore .osl-explore-controls,
#explore .explore-sort,
#explore .explore-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#explore .osl-explore-controls { margin: 0; }
#explore .explore-sort { flex-wrap: nowrap; }
#explore .osl-control-button, #explore .view-toggle { white-space: nowrap; }
#explore .view-toggle { margin-left: 0; }
#explore .view-toggle button { min-height: 44px; }

#explore .explore-category-row {
  grid-column: 1 / -1;
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
#explore .osl-filter {
  width: auto;
  max-width: 100%;
  margin: 0;
  gap: 2px 24px;
}
#explore .osl-filter-btn { white-space: nowrap; }
#explore .osl-result-count { white-space: normal; }

@media (min-width: 1000px) {
  #explore .osl-explore-toolbar {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    align-items: start;
  }
  #explore .osl-explore-controls { justify-content: flex-end; }
}
@media (max-width: 600px) {
  #explore .osl-explore-search { width: 100%; }
  #explore .osl-filter { column-gap: 16px; }
}

/* Keep the comparison readable on wide screens, even with only two models. */
#compare > .osl-page-heading,
#compare > .osl-notice,
#compare > .compare-chart,
#compare #compareContent > .osl-table-wrap,
#compare #compareContent > .osl-section {
  width: calc(100% - 80px);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
#compare > .osl-page-heading { padding-bottom: 24px; }
#compare > .osl-page-heading p { max-width: 680px; }
#compare > .osl-notice:empty { display: none; }
#compare > .compare-chart:not(:empty) {
  box-sizing: border-box;
  margin-top: 18px;
  margin-bottom: 28px;
  padding: 28px 32px;
  background: #1c1b18;
  border: 1px solid #494032;
  border-radius: 4px;
}
#compare .chart-heading { align-items: flex-start; }
#compare .chart-heading h2 { font-size: clamp(21px, 2vw, 25px); }
#compare .chart-heading p { max-width: 580px; line-height: 1.6; }
#compare .chart-heading label { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
#compare .chart-row { grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) 60px; gap: 18px; }
#compare .chart-bar { height: 14px; }
#compare .chart-note { line-height: 1.6; }
#compare #compareContent > .osl-table-wrap { box-sizing: border-box; }
#compare .osl-data-table { table-layout: fixed; }
#compare .osl-data-table th:first-child { width: 22%; }
#compare .osl-data-table td, #compare .osl-data-table th { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  #compare > .osl-page-heading, #compare > .osl-notice, #compare > .compare-chart,
  #compare #compareContent > .osl-table-wrap, #compare #compareContent > .osl-section { width: calc(100% - 40px); max-width: none; }
  #compare > .compare-chart:not(:empty) { padding: 22px 20px; }
  #compare .chart-heading { display: block; }
  #compare .chart-heading label { margin-top: 18px; }
  #compare .chart-heading .osl-select { margin-top: 0; }
  #compare .chart-row { grid-template-columns: minmax(0, 1fr) 55px; gap: 8px 12px; }
  #compare .chart-row > span:first-child { grid-column: 1 / -1; }
  #compare .osl-data-table { table-layout: auto; }
  #compare .osl-data-table th:first-child { width: auto; }
}
#compare .chart-row { grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) 85px; }
@media (max-width: 700px) { #compare .chart-row { grid-template-columns: minmax(0, 1fr) 85px; } }

/* Benchmark introduction: readable measures and a responsive two-column layout. */
.benchmark-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; margin-top: 24px; }
.benchmark-intro h2 { grid-column: 1 / -1; }
.benchmark-intro h2 { color: #eae2d4; font-size: 1.125rem; font-weight: 500; }
.osl-page-heading .benchmark-intro p { max-width: 55ch; margin-top: 0; font-size: 1rem; line-height: 1.7; }
@media (max-width: 700px) { .benchmark-intro { grid-template-columns: 1fr; gap: 8px; } }

/* Give the homepage catalogue action room before the footer. */
.osl-cta{padding-bottom:clamp(72px, 7vw, 96px)}

/* Separate the footer links from the bottom rule. */
.osl-footer-bottom{margin-top:72px}

/* Keep all detail-window actions on one scrollable row. */
.osl-modal-footer { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; overflow-x: auto; }
.osl-modal-footer .osl-modal-destinations,
.osl-modal-footer .osl-modal-actions { display: contents; }
.osl-modal-footer .osl-modal-destination,
.osl-modal-footer .osl-modal-action-button { flex: 0 0 auto; white-space: nowrap; }

/* Give the Explore catalogue room before the footer. */
#explore { padding-bottom: clamp(72px, 7vw, 96px); }

/* Subtle, consistent feedback for catalogue controls. */
#explore .osl-control-button,
#explore .view-toggle button,
:is(#exploreGrid, .osl-home-group) .osl-card-action[data-action="details"] {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
@media (hover: hover) {
  #explore .osl-control-button:not([aria-pressed="true"]):hover,
  #explore .view-toggle button:not([aria-pressed="true"]):hover,
  :is(#exploreGrid, .osl-home-group) .osl-card-action[data-action="details"]:hover {
    background: #211e18;
    border-color: #806746;
    color: #ead4ad;
  }
  #explore .osl-control-button[aria-pressed="true"]:hover,
  #explore .view-toggle button[aria-pressed="true"]:hover {
    background: #3b3021;
    color: #f1d8ab;
  }
}

/* Give the benchmark tables room before the footer. */
#benchmarkContent { padding-bottom: clamp(48px, 6vw, 80px); }
