/* Fonts: Science Gothic and STIX Two Text (SIL Open Font Licence), trimmed to Latin and served from this site */
@font-face { font-family: "Science Gothic"; font-style: normal; font-weight: 400 800; font-stretch: 50% 150%; font-display: swap; src: url("/assets/fonts/science-gothic.woff") format("woff"); }
@font-face { font-family: "STIX Two Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/stix-two-text.woff") format("woff"); }
@font-face { font-family: "STIX Two Text"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/stix-two-text-italic.woff") format("woff"); }

/* qubitbenchmark.com: shared tokens and base.
   Colours from the approved logo (27 Oct 2026). Type: Science Gothic (display, as in the logo)
   and STIX Two Text (reading text, shared with QubitRank). Production will self-host both fonts. */
:root {
  --paper: #f4f6f7;         /* cool lab paper */
  --surface: #ffffff;
  --plate: #eaeff2;         /* figure plates */
  --grid: rgba(23, 50, 77, .07);
  --ink: #13202c;
  --head: #17324d;          /* Scientific Navy */
  --muted: #536170;
  --slate: #657586;
  --rule: #d5dce1;
  --green: #0c3322;
  --green-tint: #e2ede6;
  --navy-tint: #e5ecf2;
  --line-1: #0c3322;        /* the three horizon lines from the logo */
  --line-2: #17324d;
  --line-3: #657586;
  --on-strong: #ffffff;
  --display: "Science Gothic", "Bahnschrift", "Arial Narrow", sans-serif;
  --serif: "STIX Two Text", "STIX Two", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e151c; --surface: #142029; --plate: #18252f; --grid: rgba(134, 192, 161, .07);
    --ink: #e4ebf0; --head: #e4ebf0; --muted: #9aa8b6; --slate: #8594a3; --rule: #263542;
    --green: #86c0a1; --green-tint: #17291f; --navy-tint: #182633;
    --line-1: #86c0a1; --line-2: #9aa8b6; --line-3: #657586; --on-strong: #0e151c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e151c; --surface: #142029; --plate: #18252f; --grid: rgba(134, 192, 161, .07);
  --ink: #e4ebf0; --head: #e4ebf0; --muted: #9aa8b6; --slate: #8594a3; --rule: #263542;
  --green: #86c0a1; --green-tint: #17291f; --navy-tint: #182633;
  --line-1: #86c0a1; --line-2: #9aa8b6; --line-3: #657586; --on-strong: #0e151c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3, h4 { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 600; color: var(--head); line-height: 1.1; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: var(--head); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--surface); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Logo: light file in light mode, dark file in dark mode */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }


/* Masthead */
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; }
.mast .logo { flex: none; }
.mast .logo img { height: 52px; width: auto; max-width: none; }
@media (max-width: 600px) { .mast .logo img { height: auto; width: min(260px, 64vw); } }
.mast nav ul { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.mast nav a { text-decoration: none; color: var(--ink); font-size: 17px; }
.mast nav a:hover { color: var(--green); text-decoration: underline; }
.mast nav a.dl { color: var(--green); font-weight: 700; }
@media (max-width: 860px) { .mast nav { display: none; } .mast .menu { display: block; } }
.menu { display: none; font-size: 16px; }
.menu summary { cursor: pointer; border: 1px solid var(--rule); padding: 6px 12px; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 16px; z-index: 10; list-style: none; margin: 6px 0 0; padding: 8px; background: var(--surface); border: 1px solid var(--rule); min-width: 210px; }
.menu li a { display: block; padding: 8px 10px; text-decoration: none; }

/* Signature: the horizon rule. The logo's three lines run across the page and step up into a tower. */
.horizon { display: block; width: 100%; height: 46px; }
.horizon path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.horizon .l1 { stroke: var(--line-1); }
.horizon .l2 { stroke: var(--line-2); }
.horizon .l3 { stroke: var(--line-3); }

/* Release line under the horizon */
.release { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; color: var(--muted); padding: 8px 0 0; }
.release b { color: var(--ink); font-weight: 600; }

/* Figures: plates with a measurement grid inside the plot area */
figure { margin: 0; }
main, article, aside, section, figure, .plate, .figs > *, .answer > *, .paper > * { min-width: 0; }  /* let wide charts scroll inside their plate */
.plate { background: var(--plate); padding: 16px 16px 12px; }
.plate svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 640px) { .plate { overflow-x: auto; } .plate svg { min-width: 560px; } }  /* keep chart labels readable on phones */
.plate .gridbg { fill: var(--surface); }
.plate .gridline { stroke: var(--grid); stroke-width: 1; }
.plate .axis { stroke: var(--slate); stroke-width: 1; }
.plate .tick { fill: var(--muted); font: 12px var(--serif); }
.plate .axis-label { fill: var(--muted); font: italic 13px var(--serif); }
.plate .pt-label { fill: var(--ink); font: 13px var(--serif); }
.plate .s-navy { fill: var(--head); }
.plate .s-green { fill: var(--green); }
.plate .s-slate { fill: var(--slate); }
.plate .ln-green { stroke: var(--green); fill: none; stroke-width: 2.25; }
.plate .ln-navy { stroke: var(--head); fill: none; stroke-width: 2.25; }
.plate .ln-slate { stroke: var(--slate); fill: none; stroke-width: 2.25; stroke-dasharray: 5 4; }
figcaption { font-size: 15px; line-height: 1.45; color: var(--muted); padding-top: 10px; max-width: 60em; }
figcaption .fig { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 700; color: var(--head); font-style: normal; margin-right: 6px; }
figcaption i { color: var(--ink); }
.sample { display: inline-block; font: 600 12px/1.6 var(--serif); color: var(--slate); border: 1px dashed var(--slate); padding: 0 6px; margin-left: 4px; white-space: nowrap; }

/* Evidence grade marks */
/* Same look as QubitRank's grade chips, so readers moving between the sites see one system */
.g { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 3px; font: 700 13px/1 var(--serif); vertical-align: -3px; }
.g-a { background: var(--green-tint); color: var(--green); }
.g-b { background: var(--navy-tint); color: var(--head); }
.g-c { border: 1px dashed var(--slate); color: var(--muted); }

/* Tables */
.tablewrap { overflow-x: auto; border-top: 2px solid var(--head); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; caption-side: bottom; font-size: 15px; color: var(--muted); padding-top: 10px; }
th { text-align: left; font-weight: 600; color: var(--head); padding: 9px 10px; border-bottom: 1px solid var(--head); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; }
.id { white-space: nowrap; }
td .id { font-family: var(--mono); font-size: 13px; color: var(--muted); }
tbody tr:hover { background: var(--navy-tint); }

/* Buttons and forms */
.btn { display: inline-block; font: 600 16px/1 var(--serif); padding: 12px 18px; background: var(--green); color: var(--on-strong); text-decoration: none; border: 0; border-radius: 3px; cursor: pointer; }
.btn:hover { color: var(--on-strong); filter: brightness(1.15); }
.btn.ghost { background: transparent; color: var(--head); box-shadow: inset 0 0 0 1px var(--head); }
.signup { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.signup input { flex: 1 1 220px; font: 16px var(--serif); padding: 11px 12px; border: 1px solid var(--slate); background: var(--surface); color: var(--ink); border-radius: 3px; }

/* Footer */
footer.site { margin-top: 64px; border-top: 1px solid var(--rule); background: var(--surface); font-size: 15px; }
footer.site .wrap { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 36px; }
@media (min-width: 860px) { footer.site .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer.site h2 { font-size: 16px; margin-bottom: 8px; }
footer.site .small { color: var(--muted); }

/* Home page (the approved hybrid design) */
.paper { display: grid; gap: 40px; padding-top: 26px; }
@media (min-width: 1040px) { .paper { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
article h1 { font-size: clamp(36px, 5vw, 60px); font-variation-settings: "wdth" 95; font-weight: 600; margin: 14px 0 0; max-width: 16em; }
article .stand { font-size: clamp(19px, 2vw, 22px); margin: 16px 0 0; max-width: 34em; }
.byline { font-size: 15px; color: var(--muted); margin-top: 14px; }
.keys { margin: 28px 0 0; background: var(--green-tint); padding: 20px 22px; }
.keys h2 { font-size: 21px; margin-bottom: 8px; }
.keys ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.abstract { margin: 26px 0 0; padding: 0 0 0 20px; border-left: 2px solid var(--head); font-size: 17px; max-width: 40em; }
.abstract b { font-family: var(--display); font-variation-settings: "wdth" 80; color: var(--head); }
.body { max-width: 40em; }
.body h2 { font-size: clamp(25px, 2.8vw, 32px); margin: 44px 0 12px; display: flex; gap: 14px; align-items: baseline; }
.body h2 .num { color: var(--slate); font-variation-settings: "wdth" 60; }
.body figure { margin: 22px 0 22px; max-width: none; }
@media (min-width: 1240px) { .body figure.bleed { margin-right: -120px; } }
sup a { text-decoration: none; font-size: 13px; }
.refs { font-size: 15px; color: var(--muted); margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 14px; max-width: 46em; }
.refs ol { padding-left: 22px; margin: 6px 0 0; display: grid; gap: 4px; }
aside.rail { display: grid; gap: 26px; align-content: start; }
@media (min-width: 1040px) { aside.rail { position: sticky; top: 16px; } }
.box { background: var(--surface); padding: 18px 20px; }
.box h2 { font-size: 20px; margin-bottom: 10px; }
.facts { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--head); }
.mini { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.mini li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.mini .v { text-align: right; font-weight: 600; color: var(--head); }
.mini .m { grid-column: 1 / -1; color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.explore { margin-top: 64px; display: grid; gap: 34px; }
@media (min-width: 1000px) { .explore { grid-template-columns: 1.4fr 1fr; } }
.explore h2 { font-size: clamp(25px, 2.8vw, 32px); margin-bottom: 12px; }
.bm { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 28px; }
@media (min-width: 700px) { .bm { grid-template-columns: 1fr 1fr; } }
.bm li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.bm a { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 600; font-size: 18px; text-decoration: none; }
.bm p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.arch h3 { font-size: 17px; color: var(--muted); font-family: var(--serif); font-weight: 600; margin: 14px 0 4px; }
.arch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foryou { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.journal { margin-top: 72px; }
.journal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-top: 2px solid var(--head); padding-top: 14px; margin-bottom: 20px; }
.journal-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.journal-head p { margin: 4px 0 0; color: var(--muted); font-size: 16px; max-width: 36em; }
.feats { display: grid; gap: 30px; }
@media (min-width: 1000px) { .feats { grid-template-columns: 1.5fr 1fr; } }
.feats > * { min-width: 0; }
.lead-art { background: var(--surface); }
.lead-art .art-fig { background: var(--plate); padding: 18px; }
.lead-art .art-fig svg { display: block; width: 100%; height: auto; min-width: 0; }  /* small illustration: shrink, don't scroll */
.lead-art .txt { padding: 22px 24px 24px; }
.art h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 8px 0; }
.art h3 a { text-decoration: none; color: var(--head); }
.art h3 a:hover { text-decoration: underline; }
.art .dek { margin: 0 0 12px; }
.contrib { font-size: 15px; color: var(--muted); margin: 0; }
.contrib b { color: var(--ink); font-weight: 600; }
.coi { display: block; font-size: 14px; font-style: italic; margin-top: 4px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-tint); padding: 1px 8px; border-radius: 3px; }
.side-arts .art { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.side-arts .art:last-child { border-bottom: 0; margin-bottom: 0; }
.side-arts .art h3 { font-size: 22px; }
.join { margin-top: 48px; background: #17324d; color: #fff; display: grid; gap: 26px; padding: 30px 22px; }
@media (min-width: 1000px) { .join { grid-template-columns: 1fr 1.3fr; padding: 38px 40px; } }
.join > * { min-width: 0; }
.join h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.join p { color: #d6dee6; }
.join .steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.join .steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; color: #e6ecf1; }
.join .steps li::before { content: counter(s); font: 600 30px/1 var(--display); font-variation-settings: "wdth" 60; color: #86c0a1; }
.join .steps b { color: #fff; }
.join .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.join .btn { background: #86c0a1; color: #0e151c; }
.join .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
:root[data-theme="dark"] .join { background: var(--plate); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .join { background: var(--plate); } }
