/* Quettaflop "Instrument" design layer for QuettaBench and the Efficiency Index (DESIGN_LANGUAGE.md). Linked at the end
   of the QuettaBench template's <head>; every rule is prefixed html.qb so it wins over the template, eff2.css and
   pindex.css without touching them. Charts keep their data, colours per GPU and behaviour. */


html.qb {
  --qf-paper: #f1efe9; --qf-paper-2: #e7e4dc; --qf-panel: #faf9f6; --qf-ink: #0f0f12; --qf-ink-2: #3e3c38; --qf-ink-3: #6e6a62;
  --qf-line: rgba(15,15,18,.14); --qf-line-2: rgba(15,15,18,.32); --qf-grid: rgba(15,15,18,.055);
  --qf-signal: #f199bd; --qf-signal-ink: #b8245f; --qf-signal-soft: #ffc8de; --qf-signal-wash: #f8e1ea; --qf-on-signal: #0f0f12;
  --qf-field: #f6d4e2; --qf-field-2: #f0bfd3; --qf-on-field: #0f0f12; --qf-on-field-2: rgba(15,15,18,.62); --qf-hero: var(--qf-paper); --qf-foot: var(--qf-field);
  --qf-cta-bg: #0f0f12; --qf-cta-fg: #f4f2ec;
  --qf-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --qf-ease: cubic-bezier(.16,1,.3,1); --qf-spring: cubic-bezier(.34,1.45,.64,1);
  --g-field-line: rgba(255,255,255,.62); --g-field-rim: rgba(255,255,255,.9);

  --grid: rgba(15,15,18,.07); --gold: #b08a4e;
  --shadow: 0 1px 2px rgba(14,14,40,.04), 0 14px 34px -22px rgba(14,14,40,.28);
  --shadow-up: 0 1px 2px rgba(14,14,40,.06), 0 22px 44px -20px rgba(14,14,40,.34);
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --r: 6px; --r-lg: 10px;
  --g-fill: rgba(255,255,255,.46); --g-fill-hi: rgba(255,255,255,.8); --g-rim: rgba(255,255,255,.92); --g-line: rgba(15,15,18,.11);
  --g-shadow: 0 10px 28px -14px rgba(14,14,40,.34), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(15,15,18,.06);
  --g-face: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.58));
  --g-ring: color-mix(in srgb, var(--qf-signal) 45%, var(--g-line)); --g-glow: 0 12px 26px -14px color-mix(in srgb, var(--qf-signal) 70%, transparent);
  --g-ink-face: linear-gradient(180deg, #3b3b46, #18181d 52%, #0b0b0d); --g-ink-line: #000;
  --g-ink-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.5), 0 12px 24px -12px rgba(10,10,40,.7);
  --g-knob-shadow: 0 8px 18px -8px rgba(14,14,40,.34), 0 3px 10px -6px color-mix(in srgb, var(--qf-signal) 50%, transparent), inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 2px 6px -3px color-mix(in srgb, var(--qf-signal) 30%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--qf-signal) 16%, transparent);
  --g-row: linear-gradient(180deg, rgba(255,255,255,.75), color-mix(in srgb, var(--qf-signal) 6%, rgba(255,255,255,.3)));
  color-scheme: light;
}
/* the template's own names, mapped onto the new tokens (both selectors, so the dark one outranks the template's dark block) */
html.qb, html.qb[data-theme] {
  --bg: var(--qf-paper); --panel: var(--qf-panel); --panel2: var(--qf-paper-2); --well: var(--qf-paper-2);
  --ink: var(--qf-ink); --text: var(--qf-ink-2); --muted: var(--qf-ink-3); --rule: var(--qf-line);
  --accent: var(--qf-signal-ink); --accent-soft: var(--qf-signal-wash); }
html.qb[data-theme="dark"] {
  --qf-paper: #0b0b0d; --qf-paper-2: #131316; --qf-panel: #16161a; --qf-ink: #f2f0ea; --qf-ink-2: #c9c6bf; --qf-ink-3: #8d8a84;
  --qf-line: rgba(242,240,234,.13); --qf-line-2: rgba(242,240,234,.3); --qf-grid: rgba(242,240,234,.05);
  --qf-signal: #f199bd; --qf-signal-ink: #f6a9c8; --qf-signal-soft: #ffc8de; --qf-signal-wash: #3b2530;
  --qf-field: #3b2530; --qf-field-2: #2c1b24; --qf-hero: #0b0b0d; --qf-foot: #24161d; --qf-on-field: #f2f0ea; --qf-on-field-2: rgba(242,240,234,.7);
  --qf-cta-bg: #f4f2ec; --qf-cta-fg: #0b0b0d; --g-field-line: rgba(255,255,255,.26); --g-field-rim: rgba(255,255,255,.5);
  --grid: rgba(242,240,234,.08); --gold: #d2b07a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -20px rgba(0,0,0,.7); --shadow-up: 0 1px 2px rgba(0,0,0,.35), 0 22px 44px -20px rgba(0,0,0,.8);
  --g-fill: rgba(255,255,255,.06); --g-fill-hi: rgba(255,255,255,.12); --g-rim: rgba(255,255,255,.2); --g-line: rgba(255,255,255,.11);
  --g-shadow: 0 10px 28px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.35);
  --g-face: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  --g-ink-face: linear-gradient(180deg, #ffffff, #e9e7e1 55%, #cfccc4); --g-ink-line: #fff;
  --g-ink-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,.2), 0 12px 26px -12px rgba(0,0,0,.8);
  --g-knob-shadow: 0 8px 18px -8px rgba(0,0,0,.6), 0 3px 10px -6px color-mix(in srgb, var(--qf-signal) 50%, transparent), inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 0 0 1px color-mix(in srgb, var(--qf-signal) 22%, transparent);
  --g-row: linear-gradient(180deg, rgba(255,255,255,.09), color-mix(in srgb, var(--qf-signal) 8%, rgba(255,255,255,.03)));
  color-scheme: dark;
}
html.qb .e2 { --g-fill: rgba(255,255,255,.46); --g-fill-hi: rgba(255,255,255,.8); --g-rim: rgba(255,255,255,.92); --g-line: rgba(15,15,18,.11);
  --g-shadow: 0 10px 28px -14px rgba(14,14,40,.34), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(15,15,18,.06);
  --glass: rgba(255,255,255,.55); --glass-edge: rgba(255,255,255,.8); --pillbg: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.6)); }
html.qb[data-theme="dark"] .e2 { --g-fill: rgba(255,255,255,.06); --g-fill-hi: rgba(255,255,255,.14); --g-rim: rgba(255,255,255,.2); --g-line: rgba(255,255,255,.11);
  --g-shadow: 0 10px 28px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(0,0,0,.35);
  --glass: rgba(30,30,36,.55); --glass-edge: rgba(255,255,255,.12); --pillbg: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); }

/* ---------- base ---------- */
html.qb { background: var(--bg); }
html.qb body { background: transparent; font: 15px/1.6 var(--sans); font-feature-settings: "ss01"; }
html.qb body { overflow-x: clip; }
html.qb ::selection { background: var(--qf-signal-soft); color: var(--qf-ink); }
html.qb h1, html.qb h2, html.qb .eff .eh h2 { font-family: var(--qf-display); font-weight: 300; letter-spacing: -.035em; }
html.qb section.page > h1, html.qb .hero h1, html.qb .pi-head h1 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.045em; }
html.qb .sect > h2, html.qb .pi-sh h2, html.qb .eh h2 { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.1; }
html.qb .e2-head h2, html.qb .pi-ch h2 { font-size: 19px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
html.qb h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.012em; }
html.qb h1.ph { font-size: clamp(34px, 4.2vw, 60px); font-weight: 300; line-height: 1.04; margin-top: 18px; }
html.qb .lede { font-size: clamp(15px, 1.15vw, 17.5px); color: var(--text); }
html.qb .eyebrow, html.qb .fld label, html.qb .lbl { font-family: var(--mono); letter-spacing: .12em; }
html.qb .hero-period { color: var(--qf-signal); }
/* the company site's column: same width and side gutter (qf.css --qf-side), so page edges line up across the site */
html.qb { --gutter: clamp(20px, 4vw, 56px); }
html.qb .wrap { max-width: 1560px; }
html.qb[data-embed] body { background: transparent !important; }

/* the ground: a faint hex lattice (the logo's own cells), strongest at the top of the page and fading down; it never moves */
:root { --qf-hexclip: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); --qf-hexmask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27.71' height='48' viewBox='0 0 27.71 48'%3E%3Cpath d='M0 8 13.86 0 27.71 8M0 8v16m27.71-16v16M0 24l13.86 8 13.85-8M13.86 32v16' fill='none' stroke='%23000' stroke-width='1'/%3E%3C/svg%3E"); }
.qf-graticule { position: fixed; inset: 0 0 auto 0; height: 100vh; z-index: -1; pointer-events: none; background: var(--qf-ink); opacity: .055; will-change: transform; transform: translateZ(0); contain: strict;
  -webkit-mask-image: var(--qf-hexmask), radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, rgba(0,0,0,.45) 55%, transparent 100%);
  mask-image: var(--qf-hexmask), radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, rgba(0,0,0,.45) 55%, transparent 100%);
  -webkit-mask-size: 27.71px 48px, 100% 100%; mask-size: 27.71px 48px, 100% 100%; -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in; mask-composite: intersect; }
[data-theme=dark] .qf-graticule { opacity: .08; }
.qf-progress { position: fixed; z-index: 96; left: 0; right: 0; top: 0; height: 2px; background: var(--qf-signal); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; will-change: transform; }

/* ---------- nav: the same liquid-glass bar as the company site ---------- */
html.qb header > .nav { width: calc(100% - 24px); max-width: 1480px; margin: 12px auto 0; height: 60px; padding: 0 10px 0 8px; gap: 1rem;
  grid-template-columns: auto 1fr auto; border-radius: 18px; position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--qf-panel) 93%, transparent), color-mix(in srgb, var(--qf-panel) 86%, transparent));
  -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
  border: 1px solid var(--g-line); box-shadow: 0 14px 40px -22px rgba(10,10,40,.55), inset 0 1px 0 var(--g-rim), inset 0 -1px 0 rgba(0,0,0,.04); }
html.qb .nav .coin { order: -1; --size: 44px; --mark: 25px; }
html.qb .nav .coin-face { border-color: rgba(0,0,0,.6); }
html.qb .nav-pages { justify-content: center; gap: .25rem; }
html.qb .nav-link { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--qf-ink-2); padding: .62rem .8rem;
  border-radius: 11px; border: 1px solid transparent; transition: color .2s, background .18s, border-color .18s; }
html.qb .nav-link::after { display: none; }
html.qb .nav-link:hover { color: var(--qf-ink); background: var(--g-fill); }
html.qb .nav-link.on, html.qb .nav-link.cur { color: var(--qf-ink); background: var(--g-face); border-color: var(--g-line);
  box-shadow: 0 6px 14px -10px rgba(20,16,30,.5), inset 0 1px 0 var(--g-rim); }
html.qb .nav-link.on::before, html.qb .nav-link.cur::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: .5rem; border-radius: 50%;
  background: var(--qf-signal); vertical-align: .15em; box-shadow: 0 0 0 3px var(--qf-signal-wash); }
html.qb .nav-actions { gap: .35rem; }
html.qb .brandword { display: none; }
html.qb .nav-icon { width: 40px; height: 40px; border-radius: 12px; }
html.qb .nav-icon svg { width: 18px; height: 18px; }
html.qb .qf-menu-btn { display: none; align-items: center; gap: .55rem; height: 40px; padding: 0 .85rem 0 1rem; border-radius: 12px; cursor: pointer;
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--qf-ink); background: var(--g-face); border: 1px solid var(--g-line); box-shadow: var(--g-shadow); }
html.qb .qf-menu-btn i { position: relative; width: 22px; height: 1px; background: currentColor; }
html.qb .qf-menu-btn i::after { content: ""; position: absolute; right: 2px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transition: right .28s var(--qf-spring); }
html.qb.qf-menu-open .qf-menu-btn i::after { right: 13px; background: var(--qf-signal); }

/* Match the company/QuettaSim header in viewport space, including after scrolling.
   Reserve its original space so the subnav and page content do not move. Only the page's own header (body > header):
   a chart card's <header> takes no padding. */
html.qb body > header { padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
html.qb header > nav.nav { position: fixed; z-index: 90; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 12px); transform: translateX(-50%); margin: 0; }
html.qb header > .nav::before { content: ""; position: absolute; z-index: -1; left: -100vw; right: -100vw; bottom: 100%; height: 40px; background: var(--qf-paper); pointer-events: none; opacity: 0; }
html.qb.qf-scrolled header > .nav::before { opacity: 1; }
/* the filter strip sticks under the nav only where the template makes it sticky (900px up); below that it is a plain card and an offset would slide it over the chart */
@media (min-width: 900px) { html.qb #r-dashboard .strip { top: calc(env(safe-area-inset-top, 0px) + 84px); } }
@media (max-width: 860px) { html.qb body > header { padding-top: calc(env(safe-area-inset-top, 0px) + 68px); } }
@media (max-width: 767px) {
  html.qb body > header { padding-top: calc(env(safe-area-inset-top, 0px) + 64px); }
  html.qb header > nav.nav { top: calc(env(safe-area-inset-top, 0px) + 8px); margin-top: 0; }
}

/* ---------- subnav: a recessed glass track with one sliding knob (qf.js) ---------- */
html.qb .subnav { position: relative; display: flex; width: fit-content; max-width: calc(100% - 2 * var(--gutter)); margin: 26px 0 6px max(var(--gutter), calc((100% - 1560px) / 2 + var(--gutter)));
  padding: 4px; gap: 2px; background: var(--g-fill); border: 1px solid var(--g-line); border-radius: 15px; box-shadow: inset 0 1px 3px rgba(0,0,0,.08), 0 1px 0 var(--g-rim); overflow-x: auto; }
html.qb .subnav a { position: relative; z-index: 1; padding: .62rem 1.05rem; border-radius: 11px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 0; }
html.qb .subnav a:hover { background: transparent; box-shadow: none; color: var(--ink); transform: none; }
html.qb .subnav a.on { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink); }
html.qb .subnav:not(.qf-knobbed) a.on { background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: var(--g-knob-shadow); }
html.qb .qf-sub-knob { position: absolute; z-index: 0; top: 4px; left: 4px; height: var(--h, calc(100% - 8px)); width: var(--w, 0); transform: translate(var(--x, 0), var(--y, 0)); border-radius: 11px; pointer-events: none;
  background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid color-mix(in srgb, var(--qf-signal) 30%, var(--g-rim)); box-shadow: var(--g-knob-shadow);
  transition: transform .18s var(--qf-spring), width .28s var(--qf-ease); }
html.qb .qf-sub-knob::before { content: ""; position: absolute; left: 12%; right: 12%; top: 1px; height: 42%; border-radius: 999px 999px 50% 50%; background: linear-gradient(180deg, rgba(255,255,255,.6), transparent); }
html.qb[data-theme="dark"] .qf-sub-knob::before { background: linear-gradient(180deg, rgba(255,255,255,.12), transparent); }

/* ---------- surfaces ---------- */
html.qb .card { position: relative; border-radius: 12px; background: var(--panel); border: 1px solid var(--rule); box-shadow: var(--shadow); }
html.qb .card.hard::after, html.qb .e2-card::after, html.qb .pi-card::after { content: ""; position: absolute; inset: -7px; pointer-events: none; opacity: 0; transition: opacity .18s, inset .28s var(--qf-ease);
  --t: var(--qf-signal); --l: 12px;
  background: linear-gradient(var(--t), var(--t)) 0 0 / var(--l) 1px, linear-gradient(var(--t), var(--t)) 0 0 / 1px var(--l),
    linear-gradient(var(--t), var(--t)) 100% 0 / var(--l) 1px, linear-gradient(var(--t), var(--t)) 100% 0 / 1px var(--l),
    linear-gradient(var(--t), var(--t)) 0 100% / var(--l) 1px, linear-gradient(var(--t), var(--t)) 0 100% / 1px var(--l),
    linear-gradient(var(--t), var(--t)) 100% 100% / var(--l) 1px, linear-gradient(var(--t), var(--t)) 100% 100% / 1px var(--l);
  background-repeat: no-repeat; }
html.qb .card.hard:hover::after, html.qb .e2-card:hover::after, html.qb .pi-card:hover::after { opacity: .9; inset: -10px; }
html.qb .e2-card { border-radius: 12px; background: var(--panel); border-color: var(--rule); box-shadow: var(--shadow); }
html.qb .charthead h3, html.qb #cTitle { font: 500 20px/1.2 var(--qf-display); letter-spacing: -.03em; }
html.qb .pi-card h3, html.qb .pi-deep h3 { font: 500 17px/1.25 var(--qf-display); letter-spacing: -.025em; }
html.qb .charthead .sub, html.qb #cSub { font-size: 13px; }

/* ---------- controls ---------- */
html.qb .btn { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; }
html.qb .btn.primary { background: var(--g-ink-face); border-color: var(--g-ink-line); color: var(--bg); box-shadow: var(--g-ink-shadow); }
html.qb .btn.primary:hover { box-shadow: var(--g-ink-shadow), 0 14px 30px -14px color-mix(in srgb, var(--qf-signal) 80%, transparent); }
html.qb .seg { border-radius: 13px; box-shadow: inset 0 1px 3px rgba(0,0,0,.08), 0 1px 0 var(--g-rim); }
html.qb .seg .e2-knob, html.qb .e2-seg .e2-knob, html.qb .e2-views .knob { border-color: color-mix(in srgb, var(--qf-signal) 32%, rgba(255,255,255,.9)); box-shadow: var(--g-knob-shadow); }
html.qb[data-theme="dark"] .seg .e2-knob, html.qb[data-theme="dark"] .e2-seg .e2-knob, html.qb[data-theme="dark"] .e2-views .knob { border-color: color-mix(in srgb, var(--qf-signal) 45%, rgba(255,255,255,.2)); }
html.qb .e2-railwrap::before { background: radial-gradient(circle, var(--qf-signal) 0%, transparent 70%); }
html.qb .e2-railwrap::after { background: radial-gradient(circle, var(--qf-signal-soft) 0%, transparent 70%); }
html.qb .search { border-radius: 14px; }
html.qb .search input { font-family: var(--sans); }
html.qb .tgt { background: linear-gradient(90deg, color-mix(in srgb, var(--qf-signal) 55%, #fff), color-mix(in srgb, var(--qf-signal) 80%, var(--qf-signal-ink))) 0 / var(--p, 50%) 100% no-repeat, var(--g-fill); }
html.qb .sw input:checked, html.qb .inl input:checked { background: linear-gradient(180deg, color-mix(in srgb, var(--qf-signal) 80%, #fff), color-mix(in srgb, var(--qf-signal) 75%, var(--qf-signal-ink))); }
html.qb .pill { font-family: var(--mono); }

/* ---------- tooltips: glass ---------- */
html.qb .e2-tip, html.qb .ptip, html.qb .pi-tip, html.qb .pi-pop, html.qb .steptip { background: color-mix(in srgb, var(--panel) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); color: var(--text);
  border: 1px solid var(--g-line); border-radius: 12px; box-shadow: var(--shadow-up), inset 0 1px 0 var(--g-rim); }
html.qb .steptip { color: var(--text); }
html.qb .steptip b { color: var(--ink); }
html.qb .ptip .h { font: 600 13.5px var(--sans); }

/* ---------- overview: the logo ring beside the title ---------- */
html.qb #r-home .hero { position: relative; isolation: isolate; display: block; min-height: 0; margin: 22px 0 8px; padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 64px); }
/* eff2.js gives every canvas's parent a download button and position:relative; the mark is decoration, so neither applies */
html.qb .qf-quiet > button { display: none !important; }
html.qb #r-home .hero > .qf-quiet { position: absolute !important; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none; }
html.qb #r-home .hero > .qf-quiet canvas { width: 100%; height: 100%; display: block; }
html.qb #r-home .hero h1 { color: var(--qf-ink); font-size: clamp(40px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -.05em; max-width: 14ch; }
html.qb #r-home .hero .lede { color: var(--qf-ink-2); font-size: clamp(16px, 1.3vw, 19px); margin-top: 1.4rem; }
html.qb #r-home .hero .cta { margin-top: 2rem; }
html.qb #r-home .hero .btn { height: 48px; padding: 0 1.3rem; }
html.qb #r-home .sect { margin-top: clamp(56px, 6vw, 96px); }
html.qb #r-home .sect > h2 { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.6rem; }
html.qb #r-home .sect > h2::before { content: ""; width: 9px; height: 9px; background: var(--qf-signal); flex: none; align-self: center; }
html.qb .mcard { border-radius: 12px; gap: 14px; padding: 22px 22px 18px; }
html.qb .mcard .org { font: 500 10.5px var(--mono); letter-spacing: .12em; }
html.qb .mcard h3 { font: 500 20px/1.15 var(--qf-display); letter-spacing: -.03em; }
html.qb .mcard:hover, html.qb .mcard:focus-visible { transform: translateY(-2px); border-color: var(--g-ring); box-shadow: var(--shadow-up); }
html.qb .mcard .nums { border-top: 1px dashed var(--rule); }
html.qb .wcard { border-radius: 14px; }

/* ---------- footer: the wordmark and the mark on one dark band ---------- */
html.qb footer { margin-top: clamp(72px, 8vw, 128px); border-top: 0; padding: clamp(36px, 4vw, 56px) 0 calc(clamp(20px, 2vw, 32px) + env(safe-area-inset-bottom, 0px));
  background: #0e0e11; color: #f2f0ea; position: relative; }
html.qb[data-theme="dark"] footer { background: #17171b; }
html.qb footer .wrap { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; row-gap: 1rem; }
html.qb footer .wrap::before { content: "quettaflop ai"; flex: 0 0 100%; display: block; margin: 0 0 clamp(20px, 3vw, 44px) -.04em; padding-left: clamp(64px, 11vw, 180px); white-space: nowrap;
  font: 300 clamp(44px, 10.6vw, 168px)/1 var(--qf-display); letter-spacing: -.02em; color: #f2f0ea; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1.72 -1.72 3.44 3.44'%3E%3Cg fill='none' stroke='%23f2f0ea' stroke-linejoin='miter'%3E%3Cpolyline stroke-width='0.155' points='0.560,-0.980 1.000,-0.730 1.000,-0.555'/%3E%3Cpolyline stroke-width='0.155' points='0.560,0.980 1.000,0.730 1.000,0.555'/%3E%3Cpolyline stroke-width='0.155' points='-0.560,0.980 -1.000,0.730 -1.000,0.555'/%3E%3Cpolyline stroke-width='0.155' points='-0.560,-0.980 -1.000,-0.730 -1.000,-0.555'/%3E%3Cpolygon stroke-width='0.165' points='0.000,-1.555 0.481,-1.277 0.481,-0.723 0.000,-0.445 -0.481,-0.723 -0.481,-1.278'/%3E%3Cpolygon stroke-width='0.165' points='1.000,-0.555 1.481,-0.277 1.481,0.277 1.000,0.555 0.519,0.277 0.519,-0.278'/%3E%3Cpolygon stroke-width='0.165' points='0.000,0.445 0.481,0.723 0.481,1.277 0.000,1.555 -0.481,1.277 -0.481,0.722'/%3E%3Cpolygon stroke-width='0.165' points='-1.000,-0.555 -0.519,-0.277 -0.519,0.277 -1.000,0.555 -1.481,0.277 -1.481,-0.278'/%3E%3C/g%3E%3Cg fill='%23f2f0ea'%3E%3Cpolygon points='0.000,-1.290 0.251,-1.145 0.251,-0.855 0.000,-0.710 -0.251,-0.855 -0.251,-1.145'/%3E%3Cpolygon points='1.000,-0.290 1.251,-0.145 1.251,0.145 1.000,0.290 0.749,0.145 0.749,-0.145'/%3E%3Cpolygon points='0.000,0.710 0.251,0.855 0.251,1.145 0.000,1.290 -0.251,1.145 -0.251,0.855'/%3E%3Cpolygon points='-1.000,-0.290 -0.749,-0.145 -0.749,0.145 -1.000,0.290 -1.251,0.145 -1.251,-0.145'/%3E%3C/g%3E%3C/svg%3E") 0 50% / clamp(48px, 8.4vw, 136px) no-repeat; }
html.qb footer a, html.qb footer .c { color: rgba(242,240,234,.62) !important; font: 500 11px/1.4 var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; }
html.qb footer a:hover { color: #f2f0ea !important; }
html.qb footer nav { gap: .5rem 1.6rem; }

/* ---------- the public Efficiency Index ---------- */
html.qb[data-pindex] .pi-head h1, html.qb[data-pindex] #r-pindex h1 { font-size: clamp(48px, 6.2vw, 96px); line-height: .9; }
html.qb .pi-chip { font-size: 12px; }

/* ---------- entries (qf.js): below the first screen only, one short mask rise ---------- */
html.qb.qf-js .qf-rv { opacity: 0; transform: translateY(16px); clip-path: inset(0 0 100% 0); transition: opacity .18s var(--qf-ease), transform .18s var(--qf-ease), clip-path .18s var(--qf-ease); transition-delay: calc(var(--qf-i, 0) * 22ms); }
html.qb.qf-js .qf-rv.qf-in { opacity: 1; transform: none; clip-path: inset(-30% -10% -30% -10%); }
@keyframes qf-sheet { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  html.qb header > .nav { height: auto; min-height: 60px; padding: 6px 10px 6px 8px; grid-template-columns: auto 1fr auto auto; row-gap: 2px; }
  html.qb .nav-pages { grid-area: 2 / 1 / 3 / -1; justify-content: space-between; flex-wrap: wrap; }
  html.qb .nav-actions { grid-area: 1 / 3; }
  html.qb .nav .coin { grid-area: 1 / 1; }
  html.qb.qf-js .nav-pages { display: none; }
  html.qb.qf-menu-open header > .nav { background: color-mix(in srgb, var(--qf-panel) 94%, transparent); }
  html.qb.qf-js.qf-menu-open .nav-pages { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 2px 6px; animation: qf-sheet .25s var(--qf-ease) both; }
  html.qb.qf-menu-open .nav-link { font: 300 26px/1.2 var(--qf-display); letter-spacing: -.03em; text-transform: none; padding: .45rem .6rem; border-radius: 12px; color: var(--qf-ink); animation: qf-rise .25s var(--qf-ease) both; }
  html.qb.qf-menu-open .nav-link.on, html.qb.qf-menu-open .nav-link.cur { color: var(--qf-signal-ink); }
  html.qb.qf-menu .qf-menu-btn, html.qb.qf-js header > .nav > .qf-menu-btn { display: inline-flex; grid-area: 1 / 4; }
}
@media (max-width: 767px) {
  /* the bar's mark and buttons (6px padding, 1px border in) sit on the page's side gutter, in line with the text below */
  html.qb header > .nav { width: calc(100% - 2 * (var(--gutter) - 7px)); margin-top: 8px; border-radius: 16px; }
  html.qb .nav .coin { --size: 40px; --mark: 22px; }
  html.qb .nav-icon { width: 40px; height: 40px; }
  html.qb .subnav { display: grid; grid-template-columns: 1fr 1fr; width: auto; max-width: none; margin: 18px var(--gutter) 4px; overflow: visible; }
  html.qb .subnav a { padding: .7rem .5rem; font-size: 10.5px; letter-spacing: .06em; text-align: center; }
  html.qb footer .wrap::before { font-size: 11vw; padding-left: 13vw; background-size: 10vw; }
  html.qb #r-home .hero { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html.qb.qf-js .qf-rv { opacity: 1 !important; transform: none !important; }
  html.qb .qf-sub-knob { transition: none; }
  html.qb .mcard:hover { transform: none; }
}

/* chart download button: a small clear-glass key */
html.qb .qb-download { border-radius: 10px; background: var(--g-face); border: 1px solid var(--g-line); box-shadow: var(--g-shadow); color: var(--muted);
  transition: transform .18s var(--qf-spring), border-color .2s, color .2s, box-shadow .18s; }
html.qb .qb-download:hover { background: var(--g-face); color: var(--ink); border-color: var(--g-ring); box-shadow: var(--g-shadow), var(--g-glow); }


html.qb :focus-visible { outline: 2px solid var(--qf-signal-ink); outline-offset: 2px; }

/* ---------- the mark in the nav logo: our SVG over the coin; it ticks one node on hover and pulses while a page loads ---------- */
#root .brand-face > *, html.qb .coin-face > * { grid-area: 1 / 1; }
#root .brand-front.qf-marked img, html.qb .coin-front.qf-marked img { opacity: 0; }
.qf-mark { width: calc(var(--brand-size, var(--mark, 25px)) * 1.06); height: calc(var(--brand-size, var(--mark, 25px)) * 1.06); color: #f4f2ec; overflow: visible; }
.qf-mark .qf-o { fill: none; stroke: currentColor; stroke-width: .165; stroke-linejoin: miter; }
.qf-mark .qf-c { fill: currentColor; transform-box: fill-box; transform-origin: center; }
/* the ring turns about the mark's centre, user (0,0): a fill-box origin moves in Firefox while the nodes turn inside it */
.qf-mark .qf-ns { transform-box: view-box; transform-origin: 0 0; }
.qf-mark .qf-n { transform-box: fill-box; transform-origin: center; }
.qf-tick .qf-mark .qf-ns { animation: qf-orbit .9s cubic-bezier(.34,1.45,.64,1); }
.qf-tick .qf-mark .qf-n { animation: qf-upright .9s cubic-bezier(.34,1.45,.64,1); }
.qf-tick .qf-mark .qf-l { animation: qf-relink .9s linear; }
@keyframes qf-orbit { from { transform: rotate(0); } to { transform: rotate(90deg); } }
@keyframes qf-upright { from { transform: rotate(0); } to { transform: rotate(-90deg); } }
@keyframes qf-relink { 0% { opacity: 1; } 12%, 70% { opacity: 0; } 100% { opacity: 1; } }
html.qf-loading .qf-mark .qf-c { animation: qf-flop .88s ease-in-out infinite; }
html.qf-loading .qf-mark .qf-n1 .qf-c { animation-delay: .22s; } html.qf-loading .qf-mark .qf-n2 .qf-c { animation-delay: .44s; } html.qf-loading .qf-mark .qf-n3 .qf-c { animation-delay: .66s; }
@keyframes qf-flop { 0%, 55%, 100% { fill: currentColor; transform: scale(1); } 18% { fill: #f199bd; transform: scale(1.32); } }
html.qb .sect > h2::before, html.qb .nav-link.on::before, html.qb .nav-link.cur::before { clip-path: var(--qf-hexclip); border-radius: 0; box-shadow: none; }
html.qb .sect > h2::before { width: 10px; height: 11px; }
html.qb .nav-link.on::before, html.qb .nav-link.cur::before { width: 6px; height: 7px; }

/* tooltips sit on their point: no easing on position */
html.qb .ptip { transition: opacity var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
/* bars never animate their size (that would be layout): they grow in once with a transform, and value changes are instant */
html.qb .e2-bar .col, html.qb .e2-bar.sel .col { transition: transform .18s var(--ease-pop), box-shadow .18s, filter .15s, opacity .18s, outline-color .2s; will-change: auto; }
html.qb .e2-bar .val { transition: transform .18s var(--ease-pop), opacity .18s; }
html.qb .e2-bar .col { animation: qf-col .295s var(--qf-ease) both; transform-origin: 50% 100%; }
@keyframes qf-col { from { transform: scaleY(0); } }
html.qb .e2-li .bar i { transition: none; }
/* the nav's rim catches a slow glint; the strip above the nav is covered once the page scrolls */
html.qb header > .nav::after { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95) 50%, transparent) -40% 0 / 40% 100% no-repeat; animation: qf-rimglint 11s linear infinite; }
@keyframes qf-rimglint { 0%, 70% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { html.qb header > .nav::after { display: none; } html.qb .e2-bar .col { animation: none; } }
/* value labels appear once their bar has grown, never over an empty plot */
html.qb .e2-bar .val { animation: qf-val .25s linear both; }
@keyframes qf-val { 0%, 80% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.qb .e2-bar .val { animation: none; } }

/* Efficiency score: the equation and its Assumptions panel sit on the page's centre line at every width */
html.qb .e2-eqwhy { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 640px; margin: 10px auto 0; text-align: center; }
html.qb .e2-eqwhy ul { text-align: left; }
@media (max-width: 600px) {
  /* phones: the equation as two rows of two terms, each term carrying its own operator, instead of seven stacked rows */
  html.qb .e2-eqrow { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 8px; text-align: left; }
  html.qb .e2-eqrow .op { display: none; }
  html.qb .e2-eqrow .t { min-width: 0; box-sizing: border-box; padding: 8px 11px; text-align: left; align-items: flex-start; align-self: stretch; justify-content: flex-start; }
  html.qb .e2-eqrow .t b::before { font: 500 13px var(--mono); color: var(--muted); margin-right: 5px; }
  html.qb .e2-eqrow .t[data-t="t"] b::before { content: "\00f7"; }
  html.qb .e2-eqrow .t[data-t="i"] b::before { content: "\00d7"; }
  html.qb .e2-eqrow .t[data-t="s"] b::before { content: "="; }
  html.qb .e2-eqrow .t em { font-size: 16px; margin: 2px 0 1px; }
  html.qb .e2-eqrow .t small { font-size: 12px; line-height: 1.3; white-space: normal; max-width: none; }
  html.qb .e2-eqnote { text-align: left; font-size: 13px; line-height: 1.5; margin-top: 10px; }
  html.qb .e2-eq { margin-bottom: 14px; }
  /* the ranking as two-line rows: name and setup on one line each, the bar under them, the value at the end */
  html.qb .e2-list { gap: 2px; }
  html.qb .e2-li { grid-template-columns: 20px minmax(0, 1fr) 48px; grid-template-areas: "m n v" ". bar bar"; gap: 3px 10px; padding: 5px 8px; }
  html.qb .e2-li > :first-child { grid-area: m; }
  html.qb .e2-li .n { grid-area: n; }
  html.qb .e2-li .bar { grid-area: bar; height: 6px; }
  html.qb .e2-li .v { grid-area: v; font-size: 13px; }
  html.qb .e2-li .n b { font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.qb .e2-li .n i, html.qb .e2-li .n .ev { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Prices and assumptions: one row per GPU (name and $/GPU-hr, then its price field), shared settings as label | field rows;
     the five-field "All inputs" grid stays on wider screens */
  html.qb .e2-gcards { grid-template-columns: 1fr; gap: 6px; }
  html.qb .e2-gcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 8px 10px 8px 12px; border-top: 0; border-left: 3px solid var(--c); }
  html.qb .e2-gcard > span, html.qb .e2-gcard > b { grid-column: 1; }
  html.qb .e2-gcard > b { margin: 0; font-size: 17px; }
  html.qb .e2-gcard label { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12px; }
  html.qb .e2-gcard label + label { margin-top: 0; }
  html.qb .e2-gcard input, html.qb .e2-shared input, html.qb .e2-shared select { width: 132px; height: 44px; box-sizing: border-box; padding: 0 10px; }
  html.qb .e2-shared { flex-direction: column; align-items: stretch; gap: 8px; }
  html.qb .e2-shared label { display: grid; grid-template-columns: minmax(0, 1fr) 120px 72px; gap: 8px; font-size: 13px; white-space: nowrap; }
  html.qb .e2-shared input, html.qb .e2-shared select { width: 120px; }
  html.qb #e2c-all { display: none; }
  /* Per model: the measures as a two-column grid instead of a tall list that scrolls inside itself; the pill follows in x and y */
  html.qb .e2-rail { display: grid; grid-template-columns: 1fr 1fr; max-height: none; overflow: visible; }
  html.qb .e2-rail .pill { left: 0; right: auto; width: var(--w, 0); transform: translate(var(--x, 0), var(--y, 0)); }
  html.qb .e2-rail button { padding: 8px 10px; }
  html.qb .e2-rail button span { font-size: 12px; }
  /* the Efficiency Index: lower plots, so each chart with its labels fits well inside a phone screen */
  html.qb #r-pindex .e2-plot { height: 170px; margin-top: 26px; }
  html.qb #r-pindex .pi-card .e2-plot { height: 130px; }
  /* the reference line's name would sit on the last bar's value; the subtitle and the REF bar already name it */
  html.qb #r-pindex .pi-refline em { display: none; }
}

/* ---------- nav: the company name in Montserrat Light beside the mark ---------- */
html.qb .nav .coin { width: auto; height: var(--size); display: inline-flex; align-items: center; gap: .62rem; border-radius: 14px; padding-right: .35rem; }
html.qb .nav .coin-body { width: var(--size); height: var(--size); flex: none; }
/* the name holds Montserrat's width while the font loads, so the nav links never shift when it swaps in */
html.qb .coin-word { font: 300 19px/1 var(--qf-display, "Montserrat", sans-serif); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; min-width: 114px; }
@media (max-width: 860px) { html.qb .coin-word { font-size: 17px; min-width: 100px; } }

/* The public index enters only after its data is ready: title, filters, then charts. */
@keyframes qf-index-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
@keyframes qf-index-title {
  from { opacity: 0; transform: translateY(.14em); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(-20% -5% -25% -5%); }
}
@keyframes qf-index-column { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes qf-index-value { 0%, 60% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  /* the heading is in the page from the first paint (build_index.py), so only what the data brings enters */
  html.qb[data-pindex] #r-pindex.ready > .pi-bar { animation: qf-index-enter .25s var(--qf-ease) .048s backwards; }
  html.qb[data-pindex] #r-pindex.ready .pi-deep { animation: qf-index-enter .25s var(--qf-ease) .068s backwards; }
  html.qb[data-pindex] #r-pindex.ready .pi-three > .pi-chart { animation: qf-index-enter .25s var(--qf-ease) .08s backwards; }
  html.qb[data-pindex] #r-pindex.ready .pi-three > .pi-chart:nth-child(2) { animation-delay: .1s; }
  html.qb[data-pindex] #r-pindex.ready .pi-three > .pi-chart:nth-child(3) { animation-delay: .12s; }
  html.qb[data-pindex] #r-pindex.ready .pi-three .col { animation: qf-index-column .3s var(--qf-ease) .092s both; transform-origin: 50% 100%; }
  html.qb[data-pindex] #r-pindex.ready .pi-three .val { animation: qf-index-value .25s ease-out .092s both; }
  html.qb[data-pindex] #r-pindex.ready .pi-sh { animation: qf-index-enter .25s var(--qf-ease) .12s backwards; }
}

/* ---------- footer: a small wordmark, then the site, company and policy links ---------- */
html.qb footer .wrap::before { font-size: clamp(24px, 2.4vw, 34px); padding-left: 1.6em; margin: 0 0 clamp(26px, 3vw, 40px); letter-spacing: -.03em;
  background-size: 1.12em 1.12em; background-position: 0 50%; background-repeat: no-repeat; }
html.qb footer .wrap { align-items: flex-end; }
html.qb .qf-foot { display: grid; grid-template-columns: repeat(3, max-content); gap: 1.4rem clamp(40px, 6vw, 104px); }
html.qb .qf-foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
html.qb footer .qf-foot-h { margin: 0 0 .3rem; font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(242,240,234,.45); }
html.qb footer .qf-foot a { font: 400 13.5px/1.35 var(--qf-display, "Montserrat", sans-serif) !important; letter-spacing: 0; text-transform: none; color: rgba(242,240,234,.66) !important; }
html.qb footer .qf-foot a:hover { color: #f2f0ea !important; }
@media (max-width: 860px) {
  html.qb footer .wrap::before { font-size: 24px; padding-left: 1.6em; background-size: 1.12em 1.12em; }
  html.qb footer .wrap { align-items: flex-start; }
  html.qb .qf-foot { grid-template-columns: 1fr 1fr; width: 100%; }
}
/* the narrowest screens: the GitHub and LinkedIn icons move from the bar into the menu sheet */
.qf-menu-ext { display: none !important; }
@media (max-width: 520px) { html.qb .nav-actions a.nav-icon[href^="http"] { display: none; } html.qf-menu-open.qb .qf-menu-ext { display: flex !important; } }
/* until the data arrives the page is short; holding main at a screen's height keeps the footer below the fold, so it never jumps (CLS) */
html.qb main { min-height: 100svh; }
/* phones: the bar and its mark and name sit exactly as on the company site (56px bar, .5rem between mark and name) */
@media (max-width: 860px) { html.qb header > .nav { min-height: 56px; column-gap: .4rem; padding: 6px; } html.qb .nav .coin { --size: 40px; --mark: 22px; gap: .5rem; } }

/* Page changes are plain navigations, with no cross-document view transition: the browser keeps the old page until the
   new one paints, so the bar (the same on every page) never leaves the screen and a click is never held up by a fade.
   Each page's own short entrance is the only animation. */

/* Match the company site's small interactions on benchmark and index controls. */
html.qb .nav-link { transition: color .2s, background .18s, border-color .18s, box-shadow .18s; }
html.qb .nav-link:active { background: var(--qf-signal-wash); }
html.qb .btn, html.qb .seg button, html.qb .qb-download, html.qb .qf-menu-btn { transition: scale .14s var(--qf-ease), color .2s, background .18s, border-color .18s, box-shadow .18s, transform .18s var(--qf-ease); }
html.qb .btn:active, html.qb .seg button:active, html.qb .qb-download:active, html.qb .qf-menu-btn:active { scale: .97; }
html.qb .nav-icon { transition: translate .18s var(--qf-ease), background .18s, border-color .18s, box-shadow .18s; }
html.qb .nav-icon:hover { transform: none; translate: 0 -1px; }
html.qb .nav-icon:active { translate: 0 1px; }
html.qb .pi-bar select { transition: border-color .18s, box-shadow .18s; }
html.qb .pi-bar select:hover, html.qb .pi-bar select:focus-visible { border-color: var(--qf-signal-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qf-signal) 12%, transparent); }
@keyframes qf-menu-close { to { opacity: 0; transform: translateY(-4px); } }
html.qb.qf-js.qf-menu-open.qf-menu-closing .nav-pages { animation: qf-menu-close .15s ease-in both; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html.qb .nav-link, html.qb .btn, html.qb .seg button, html.qb .qb-download, html.qb .qf-menu-btn, html.qb .nav-icon, html.qb .pi-bar select { transition: none !important; scale: none !important; translate: none !important; }
}


/* touch screens: every control gives a thumb at least 40px */
@media (pointer: coarse) {
  html.qb .seg > button, html.qb .e2-views button, html.qb .e2-seg button, html.qb .e2-btn, html.qb .e2-eqwhy summary, html.qb .pi-more, html.qb .lptop button { min-height: 40px; }
  html.qb .subnav a { padding-block: 14.75px; }
  html.qb .qb-download { width: 40px; height: 40px; }
  html.qb footer .qf-foot-col { gap: 0; }
  html.qb footer .qf-foot a { padding-block: 11px; }
}

/* phones and touch screens: every field is at least 16px, so iOS Safari does not zoom the page when one is focused */
@media (pointer: coarse), (max-width: 640px) {
  html.qb input:not([type=checkbox]):not([type=radio]):not([type=range]), html.qb select, html.qb textarea { font-size: 16px !important; }
}

/* phones: a long note shows its short form (.qf-short), or one line that opens on a tap (.qf-clamp, qf.js); the full text stays in the page */
html.qb .qf-short { display: none; }
@media (max-width: 600px) {
  html.qb .qf-long { display: none; }
  html.qb .qf-short { display: inline; }
  html.qb .qf-clamp:not(.qf-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; cursor: pointer; }
}

/* screens without hover (phones, tablets): no pop-ups that a pointer resting on something would open. Tapping a bar still
   opens its panel below the chart (QuettaBench) or nothing extra (the Efficiency Index shows the values on the bars) */
@media (hover: none) {
  .ptip, .steptip, .e2-tip, .pi-tip, .pi-pop, .e2-info[data-tip]::after { display: none !important; }
}
