/* Responsive layer (loaded after site.css): the drawer menu below 1120 px, its animated arranger button,
   and tablet layout fixes. Kept apart from site.css so the two can change without touching each other. */

/* ---------- menu button: a small arranger that plays; an X while the drawer is open ---------- */
.nav-burger{display:none;flex:none;align-items:center;justify-content:center;width:44px;height:40px;padding:0;border-radius:11px;cursor:pointer;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.1);color:#d8d6d0;transition:border-color .2s,background .2s}
.nav-burger:hover,.nav-burger[aria-expanded=true]{border-color:rgba(255,177,92,.45);background:rgba(255,146,0,.06)}
.arr-ico{display:block;overflow:visible}
.arr-ico *{transform-box:fill-box}
.arr-kb{transform-origin:50% 50%;transition:transform .35s cubic-bezier(.3,.7,.2,1),opacity .25s}
.arr-body{fill:#161615;stroke:rgba(255,146,0,.55);stroke-width:1.1}
.arr-knob{fill:#7E8790}
.arr-screen{fill:#0b0b0d;stroke:rgba(220,227,234,.35);stroke-width:.5}
.arr-eq{fill:#ff9200;transform-origin:50% 100%;animation:arr-eq 1.6s ease-in-out infinite}
.arr-eq:nth-of-type(2){animation-duration:1.25s;animation-delay:-.4s;fill:#ffb15c}
.arr-eq:nth-of-type(3){animation-duration:1.9s;animation-delay:-.9s}
.arr-eq:nth-of-type(4){animation-duration:1.4s;animation-delay:-.2s;fill:#DCE3EA}
.arr-led{fill:#3a3a40;animation:arr-led 1.2s steps(1) infinite}
.arr-led+.arr-led{animation-delay:.6s}
.arr-key{fill:#DCE3EA;transform-origin:50% 0;animation:arr-key 2.8s ease-in-out infinite;animation-delay:calc(var(--i) * .17s)}
.arr-x{opacity:0;transform-origin:50% 50%;transform:rotate(-45deg) scale(.6);transition:transform .35s cubic-bezier(.3,.7,.2,1),opacity .2s}
.arr-x path{fill:none;stroke:var(--amber2);stroke-width:2.2;stroke-linecap:round}
@keyframes arr-eq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@keyframes arr-led{0%{fill:#ff9200}50%{fill:#3a3a40}}
@keyframes arr-key{0%,24%,100%{fill:#DCE3EA;transform:scaleY(1)}8%{fill:#ffb15c;transform:scaleY(.86)}16%{fill:#ff9200;transform:scaleY(.9)}}
.nav-burger:hover .arr-kb{transform:translateY(-1px)}
.nav-burger[aria-expanded=true] .arr-kb{opacity:0;transform:scale(.6) rotate(8deg)}
.nav-burger[aria-expanded=true] .arr-x{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .arr-eq,.arr-led,.arr-key{animation:none}
  .arr-kb,.arr-x{transition:none}
}

/* ---------- drawer: a full-height side panel (325-400 px, never wider than the screen) above the whole page,
   header included, over a blurred backdrop. nav-drawer.js slides it in and out (Web Animations, eased);
   inside, the root list and the Product / Modules panels slide (drill-down) ---------- */
.drawer-scrim{position:fixed;inset:0;z-index:90;background:rgba(4,4,6,.55);
  backdrop-filter:blur(10px) saturate(.8);-webkit-backdrop-filter:blur(10px) saturate(.8)}
.drawer-scrim[hidden]{display:none}
.drawer{position:fixed;top:0;bottom:0;inset-inline-end:0;z-index:91;display:flex;flex-direction:column;overflow:hidden;
  width:min(100vw,clamp(325px,34vw,400px));height:100dvh;background:#0b0b0e;border-inline-start:1px solid rgba(255,255,255,.08);box-shadow:-24px 0 70px rgba(0,0,0,.55)}
[dir=rtl] .drawer{box-shadow:24px 0 70px rgba(0,0,0,.55)}
.drawer[hidden]{display:none}
/* the page does not scroll behind the drawer; the scrollbar's place stays reserved, so the page keeps its width */
html.dr-open{overflow:hidden;scrollbar-gutter:stable}
.dr-top{flex:none;display:flex;align-items:center;gap:11px;min-height:64px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px 16px;border-bottom:1px solid rgba(255,255,255,.07)}
.dr-top-t{flex:1;font:600 12px var(--mono);letter-spacing:.2em;text-transform:uppercase;color:var(--dim)}
.dr-close{display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:11px;cursor:pointer;color:var(--amber2);
  background:rgba(255,146,0,.06);border:1px solid rgba(255,177,92,.35);transition:background .2s}
.dr-close:hover{background:rgba(255,146,0,.14)}
.dr-stage{position:relative;flex:1;min-height:0;overflow:hidden}
.dr-view{position:absolute;inset:0;display:flex;flex-direction:column;background:#0b0b0e;
  transform:translateX(100%);visibility:hidden;transition:transform .34s cubic-bezier(.3,.7,.2,1),visibility 0s .34s}
[dir=rtl] .dr-view{transform:translateX(-100%)}
.dr-view.is-on{transform:none;visibility:visible;transition:transform .34s cubic-bezier(.3,.7,.2,1)}
.dr-root{transform:none}
.dr-root.is-under{transform:translateX(-28%);visibility:hidden;transition:transform .34s cubic-bezier(.3,.7,.2,1),visibility 0s .34s}
[dir=rtl] .dr-root.is-under{transform:translateX(28%)}
.dr-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  width:100%;max-width:720px;margin:0 auto;padding:12px 14px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:2px}
/* root rows */
.dr-row{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:0 6px;border:0;border-bottom:1px solid rgba(255,255,255,.07);
  background:none;cursor:pointer;text-align:start;font:600 19px var(--display);letter-spacing:-.015em;color:var(--text)}
.dr-row>span:first-child{flex:1}
.dr-row:hover{color:var(--amber2)}
.dr-go{display:grid;place-items:center;color:var(--dim);transition:transform .2s,color .2s}
[dir=rtl] .dr-go{transform:scaleX(-1)}
.dr-row:hover .dr-go{color:var(--amber2);transform:translateX(3px)}
[dir=rtl] .dr-row:hover .dr-go{transform:scaleX(-1) translateX(3px)}
.dr-count{font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--dim);padding:3px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.1)}
.drawer-capx{display:flex;align-items:center;gap:10px;min-height:56px;padding:0 16px;margin-bottom:10px;border-radius:14px;
  font:600 18px var(--display);color:#7dd3fc;background:rgba(125,211,252,.06);border:1px solid rgba(125,211,252,.2)}
.drawer-capx:hover{color:#bae6fd}
.drawer-cta{margin-top:22px;min-height:52px;font-size:16px}
/* language: a root row with the current flag, and a panel listing the languages */
.dr-row-lang{font-size:17px;border-bottom:0;margin-top:6px}
.dr-lang-ico{display:grid;place-items:center;color:var(--dim)}
.dr-row-lang>span:nth-child(2){flex:1}
.dr-row>span.dr-lang-ico{flex:none}
.dr-lang-cur{display:inline-flex;align-items:center;gap:7px;font-size:11px;letter-spacing:.1em;color:var(--muted)}
.dr-lang-cur .flag,.dr-langs .flag{flex:none;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.dr-langs a{display:flex;align-items:center;gap:14px;min-height:52px;padding:0 12px;border-radius:12px;color:var(--text);
  font:500 15.5px 'IBM Plex Sans','IBM Plex Sans Fallback','IBM Plex Sans Arabic','IBM Plex Sans Devanagari','Noto Sans Armenian',system-ui,sans-serif}
.dr-langs a b{flex:1;font-weight:500}
.dr-langs a span{font-size:10.5px;letter-spacing:.14em;color:var(--dim)}
.dr-langs a:hover{background:rgba(255,255,255,.04)}
.dr-langs a[aria-current]{background:rgba(255,146,0,.12);color:var(--amber2)}
.dr-langs a[aria-current] span{color:var(--amber2)}
/* panel header: back + title */
.dr-head{flex:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:56px;padding:0 12px;border-bottom:1px solid rgba(255,255,255,.07);background:#0d0d10}
.dr-back{justify-self:start;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 10px 0 4px;border:0;border-radius:10px;background:none;cursor:pointer;
  font:600 15px var(--body);color:var(--amber2)}
.dr-back:hover{background:rgba(255,146,0,.08)}
[dir=rtl] .dr-back svg{transform:scaleX(-1)}
.dr-title{font:600 17px var(--display);color:var(--text)}
/* lists */
.drawer-list a{display:flex;align-items:center;gap:14px;min-height:60px;padding:8px 10px;border-radius:12px;color:var(--text)}
.drawer-list a:hover{background:rgba(255,255,255,.04)}
.drawer-list a[aria-current=page]{background:rgba(255,146,0,.08)}
.drawer-list .nav-dd-t b{font-size:15.5px}
.drawer-list .nav-dd-t span{font-size:13px}
.drawer-gh{display:block;padding:16px 10px 6px;font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--amber)}
.drawer-gh-online{color:#5fd38a}
.drawer-online .nav-dd-ico{color:#5fd38a;background:rgba(95,211,138,.08);border-color:rgba(95,211,138,.28)}
/* module cards in two columns, as in the desktop Modules menu: the icon on top, the name and the line under it */
.drawer-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.drawer-list .drawer-group a{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:10px;min-width:0;min-height:0;padding:14px 12px 13px;
  border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.02)}
.drawer-list .drawer-group a:hover{background:rgba(255,255,255,.045);border-color:rgba(var(--gc-rgb),.3)}
.drawer-list .drawer-group a[aria-current=page]{background:rgba(var(--gc-rgb),.08);border-color:rgba(var(--gc-rgb),.4)}
.drawer-group .nav-dd-t{min-width:0}
.drawer-list .drawer-group .nav-dd-t b{display:block;font-size:14.5px;line-height:1.25}
.drawer-list .drawer-group .nav-dd-t span{display:block;margin-top:4px;font-size:12.5px;line-height:1.4}
.drawer-group[hidden]{display:none}
.drawer-group .nav-dd-ico{color:var(--gc);background:rgba(var(--gc-rgb),.08);border-color:rgba(var(--gc-rgb),.28)}
.dr-foot{flex:none;width:100%;max-width:720px;margin:0 auto;padding:10px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.07);background:#0d0d10}
#dr-modules .dr-scroll{padding-bottom:16px}
.dr-all{border:1px solid rgba(255,255,255,.08)}
.dr-all .nav-dd-t{flex:1}
/* module groups as a segmented control (scrolls sideways when it does not fit) */
.dr-seg{flex:none;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:12px 14px;max-width:720px;width:100%;margin:0 auto}
.dr-seg::-webkit-scrollbar{display:none}
.dr-seg-b{flex:none;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 14px;border-radius:19px;cursor:pointer;white-space:nowrap;
  font:600 13.5px var(--body);color:#c9c7c2;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);transition:background .2s,border-color .2s,color .2s}
.dr-seg-b span{font-size:10.5px;color:var(--dim)}
.dr-seg-b:hover{color:var(--text)}
.dr-seg-b[aria-selected=true]{color:var(--gc);background:rgba(var(--gc-rgb),.12);border-color:rgba(var(--gc-rgb),.45)}
.dr-seg-b[aria-selected=true] span{color:var(--gc)}

/* ---------- header below the desktop menu ---------- */
@media (max-width:1119.98px){
  .nav-burger{display:inline-flex}
  .langsel{margin-inline-end:0}
}
@media (min-width:1120px){.drawer,.drawer-scrim{display:none!important}}
@media (max-width:520px){
  .nav-burger{width:42px;height:38px}
  .langsel{margin-inline-start:auto;margin-inline-end:0}
}
/* 480, not 400: at 430 (iPhone Pro Max / Plus) the row fit by 8px in Chrome and overflowed on iOS fonts (2026-11-09) */
@media (max-width:480px){
  .nav-cta{display:none}        /* the drawer carries the same button */
}

/* ── term hints as a neutral glass chip (2026-11-08) ─────────────────────────────────────────────────────
   The word keeps the paragraph's face and size; a quiet glass chip with a small "i" instead of the amber box.
   Hover / open takes the page's accent (--acc-rgb). It lives here, in the sheet every page loads last, on purpose:
   the page sheets (pages/*.css, set-explorer.css ...) load after site.css and carry per-page dotted underlines
   (.se2 .term and the like) at the same specificity as [class] .term, so in site.css this block would lose. */
.term{height:auto;font-size:.94em;line-height:1.3;padding:.08em .3em .08em .46em;border:0;border-radius:.42em;color:var(--text);
  background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);vertical-align:baseline;
  transition:background .2s,box-shadow .2s}
[class] .term{border:0}
.term:hover,.term:has(.term-btn[aria-expanded=true]){background:rgba(var(--acc-rgb,125,211,252),.1);box-shadow:inset 0 0 0 1px rgba(var(--acc-rgb,125,211,252),.4)}
.term-btn{width:1.2em;height:1.2em;margin:0 0 0 .34em;border:0;background:rgba(255,255,255,.08);color:#9aa1ab;font:600 .62em/1 var(--mono);transition:background .2s,color .2s}
.term:hover .term-btn,.term-btn[aria-expanded=true]{background:rgba(var(--acc-rgb,125,211,252),.18);color:rgb(var(--acc-rgb,125,211,252))}
#term-float{border-color:rgba(255,255,255,.12);background:rgba(16,18,23,.96);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
#term-float .term-canon{color:rgb(var(--acc-rgb,125,211,252))}
/* a split heading with a term chip: the words sit on one baseline (2026-11-09). The word masks are top-aligned
   (overflow:hidden puts an inline-block's baseline at its bottom edge), so the taller chip pushed its word ~.17em
   below the others. overflow:clip masks the rise the same way but keeps the text baseline. */
@supports (overflow:clip){:where(h1,h2,h3,.film-cap,.hero-ch .d,.nav-mm-h):has(.term) .w{overflow:clip;vertical-align:baseline}}
