/* Surewold, "The line": every figure is drawn against its pass mark. Warm paper, near-black ink,
   green for met or better, vermilion for not met or worse; a shape or sign always repeats the colour. */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
:root {
  --ink: #1D1C19; --ink2: #625E55; --paper: #F7F5F0; --rail: #EFECE4; --line: #E0DCD1; --edge: #BDB7A9; --card: #fff; --mute: #8B867A;
  --ok: #008A6E; --ok-w: #E3F3EE; --no: #C8401D; --no-d: #A93415; --no-w: #FBEAE4; --amb: #C98A1A; --amb-w: #FBF1DE;
  --ui: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; --doc: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font: 400 15px/1.45 var(--ui); color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 44px; }

/* ---- shell: side rail on desktop */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - var(--concept-bar, 36px)); }
.shell::before { content: ""; position: fixed; z-index: -1; left: 0; top: 0; bottom: 0; width: 236px; background: var(--rail); border-right: 1px solid var(--line); }
.rail { position: sticky; top: 0; height: calc(100vh - var(--concept-bar, 36px)); padding: 24px 14px 18px; display: flex; flex-direction: column; gap: 28px; }
.brand { padding: 0 10px; font-size: 20px; font-weight: 650; letter-spacing: -.025em; text-decoration: none; }
/* Wordmark: the name rests on a track line crossed by a pass mark, with the dot on the met side. */
.wm { position: relative; display: inline-block; padding-bottom: 7px; line-height: 1.1; }
.wm i { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--mute); }
.wm i::before { content: ""; position: absolute; left: 66%; bottom: -4px; width: 2px; height: 9.5px; background: var(--ink); }
.wm i::after { content: ""; position: absolute; left: calc(66% + 7px); top: -2.5px; width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--ok); }
.brand small { display: block; font-size: 13px; font-weight: 400; color: var(--ink2); letter-spacing: 0; margin-top: 8px; }
#nav { display: grid; gap: 2px; }
#nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--ink2); }
#nav a:hover { color: var(--ink); background: rgba(255,255,255,.55); }
#nav a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
#nav em { font-style: normal; }
#nav b { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.who { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.who small { display: block; font-weight: 400; color: var(--ink2); font-size: 13px; }
.demo { position: relative; padding: 0 10px; }
#demo-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--edge); border-radius: 8px; background: transparent; font-weight: 600; font-size: 14px; }
#demo-btn:hover { border-color: var(--ink); }
.demo-menu { position: absolute; left: 10px; bottom: calc(100% + 8px); z-index: 20; width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(29,28,25,.14); }
.demo-menu button { display: block; width: 100%; text-align: left; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font-weight: 600; }
.demo-menu button:hover { background: var(--rail); }
.demo-menu p { padding: 8px 10px 6px; color: var(--ink2); font-size: 13px; border-top: 1px solid var(--line); margin-top: 4px; }
main { padding: 28px 44px 72px; max-width: 1240px; width: 100%; }
main:focus { outline: 0; }

/* ---- type and parts */
h1 { font-size: 46px; line-height: 1.06; letter-spacing: -.03em; font-weight: 650; max-width: 15em; text-wrap: balance; }
.sub { font-size: 18px; color: var(--ink2); margin-top: 10px; max-width: 40em; }
.meta { color: var(--ink2); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--edge); background: #fff; font-weight: 600; font-size: 16px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.pri { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.pri:hover { background: #34322D; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn svg { width: 12px; height: 12px; fill: currentColor; }
.btn:disabled { opacity: .45; cursor: default; }
.link { border: 0; background: none; padding: 0; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--edge); min-height: 32px; }
.link:hover { text-decoration-color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 500; text-decoration: none; color: var(--ink2); margin-bottom: 8px; }
.back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { color: var(--ink); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px 24px; min-width: 0; }
.ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ch h2 { font-size: 17px; font-weight: 500; letter-spacing: -.005em; }
.key { display: flex; gap: 6px 16px; color: var(--ink2); font-size: 13.5px; margin-top: 4px; flex-wrap: wrap; }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.k0, .k1 { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.k0 { border: 2px solid var(--mute); background: #fff; }
.k1 { background: var(--ink); }
.tt { flex: none; border: 0; background: none; padding: 6px 0; min-height: 32px; font-size: 13.5px; font-weight: 500; color: var(--ink2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--edge); }
.tt:hover { color: var(--ink); }
.note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.note b { color: var(--ink); font-weight: 600; }
.grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack { display: grid; gap: 20px; margin-top: 20px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic.ok { stroke: var(--ok); } .ic.no { stroke: var(--no); } .ic.amb { stroke: var(--amb); } .ic.need { stroke: var(--ink); }
.dt { margin-top: 14px; width: 100%; border-collapse: collapse; font-size: 14px; }
.dt caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.dt th, .dt td { text-align: left; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.dt th { font-weight: 500; color: var(--ink2); font-size: 13px; }
.dt .n { text-align: right; }
.none { padding: 28px 0; color: var(--ink2); display: grid; gap: 12px; justify-items: start; }
input[type=search], select, textarea { min-height: 40px; border: 1px solid var(--edge); border-radius: 8px; background: #fff; padding: 0 12px; font-size: 15px; }
select { padding-right: 30px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23625E55' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 11px center; }
textarea { width: 100%; padding: 10px 12px; line-height: 1.45; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink2); }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 550; }
.check input, .radio input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.err { color: var(--no-d); font-weight: 600; font-size: 14px; }
.err:empty { display: none; }
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: 8px; padding: 2px; background: #fff; }
.seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font-weight: 500; font-size: 14px; color: var(--ink2); }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }

/* result marks: shape and colour together */
.m { display: inline-block; width: 10px; height: 10px; flex: none; vertical-align: -1px; }
.m-same, .m-right { background: #CFC9BB; border-radius: 50%; }
.m-gained { background: var(--ok); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.m-lost { background: var(--no); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.m-wrong { background: #5B574F; }

/* ---- Release */
.crumb { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; color: var(--ink2); font-size: 14px; }
.pick select { min-height: 38px; font-weight: 500; color: var(--ink); padding-left: 12px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink); }
.state i { width: 9px; height: 9px; border-radius: 2px; background: var(--amb); }
.state.held i { background: var(--no); } .state.ok i { background: var(--ok); } .state.past i { background: var(--mute); border-radius: 50%; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin: 26px 0 28px; }
.act { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .act { flex: none; }
.decided { max-width: 380px; text-align: right; display: grid; gap: 6px; justify-items: end; }
.decided p { color: var(--ink2); font-size: 14.5px; }
.decided q { color: var(--ink); font-weight: 550; overflow-wrap: anywhere; }
.why { margin: -8px 0 28px; max-width: 640px; display: grid; gap: 10px; }
.why label, .why legend { font-weight: 600; }

/* the line: rule tracks, each against its own pass mark, all pass marks stacked into one spine */
.gate { margin-top: 14px; --lab: 220px; --val: 92px; }
.sides { display: grid; grid-template-columns: var(--lab) 1fr 1fr var(--val); font-size: 13px; font-weight: 500; color: var(--ink2); padding-bottom: 8px; }
.sides span:nth-child(2) { text-align: right; padding-right: 12px; }
.sides span:nth-child(3) { padding-left: 12px; color: var(--ink); }
.rule { display: grid; grid-template-columns: var(--lab) 1fr var(--val); align-items: stretch; min-height: 76px; border-top: 1px solid var(--line); }
.rule:focus-visible { outline-offset: -2px; }
.nm { display: flex; gap: 10px; align-items: center; font-weight: 500; line-height: 1.25; padding-right: 14px; }
.nm small { display: block; font-weight: 400; color: var(--ink2); font-size: 13px; margin-top: 2px; }
.tk { display: block; width: 100%; height: 74px; overflow: visible; }
.zone-no { fill: var(--no-w); } .zone-ok { fill: var(--ok-w); }
.pass { stroke: var(--ink); stroke-width: 2; }
.bound { font: 500 11.5px var(--ui); fill: var(--ink2); }
.conn { stroke: var(--mute); stroke-width: 3; opacity: .55; }
.d0 { fill: #fff; stroke: var(--mute); stroke-width: 2; }
.d1 { fill: var(--ok); stroke: #fff; stroke-width: 2; }
.rule.no .d1 { fill: var(--no); }
.cnt { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px; font-weight: 500; font-size: 14px; background: var(--ok-w); }
.rule.no .cnt { background: var(--no-w); }
.na { display: flex; align-items: center; height: 100%; padding: 0 14px; color: var(--ink2); font-size: 14px; background: var(--rail); }
.val { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.rule.no .val b { background: var(--no-d); color: #fff; border-radius: 6px; padding: 2px 9px; }
.val small { font-size: 12.5px; font-weight: 500; color: var(--ink2); letter-spacing: 0; }

/* failing rule strip under the headline, phone and tablet only */
.fails { display: none; }
/* change by topic */
.div { margin-top: 16px; --lab: 128px; }
.bar { width: 100%; border: 0; background: none; padding: 0; text-align: left; color: inherit; display: grid; grid-template-columns: var(--lab) 1fr 44px; align-items: center; min-height: 36px; font-weight: 450; font-size: 14.5px; line-height: 1.15; cursor: pointer; border-radius: 6px; }
.bar:hover { background: var(--paper); }
.bar svg { display: block; width: 100%; height: 36px; overflow: visible; }
.bar b { text-align: right; font-weight: 600; }
.axis0 { stroke: var(--mute); stroke-width: 1; }
.limit { stroke: var(--ink); stroke-width: 2; }
.up { fill: var(--ok); } .dn { fill: var(--no); } .flat { fill: #A9A396; }
.limlab { display: grid; grid-template-columns: var(--lab) 1fr 44px; margin-top: 4px; }
.limlab svg { width: 100%; height: 16px; overflow: visible; }
.limlab text, .scap text { font: 500 12.5px var(--ui); fill: var(--ink2); }

/* all 640 answers as one bar */
#c-split { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 26px 0 0; }
.split { margin-top: 18px; }
.split svg { display: block; width: 100%; height: 30px; }
.split rect { stroke: #fff; stroke-width: 2; }
.split rect { cursor: pointer; }
.s-same, .s-right { fill: #D9D4C7; } .s-gained { fill: var(--ok); } .s-lost { fill: var(--no); } .s-wrong { fill: #5B574F; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 12px 0 0 -12px; }
.legend button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; background: none; font-size: 14.5px; font-weight: 450; }
.legend button:hover { border-color: var(--line); background: var(--paper); }
.legend button[aria-pressed=true] { border-color: var(--ink); background: #fff; }
.legend b { font-weight: 600; }
.qtoggle { margin-top: 14px; }

/* question list */
.ql { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tools input[type=search] { flex: 1 1 220px; max-width: 320px; }
.tools .btn { margin-left: auto; }
.found { margin-top: 12px; color: var(--ink2); font-size: 14px; display: flex; gap: 12px; align-items: center; }
.qt { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14.5px; }
.qt th { text-align: left; font-size: 13px; font-weight: 500; color: var(--ink2); padding: 8px 12px 8px 0; }
.qt td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.qt .r { white-space: nowrap; }
.qt .r .m { margin-right: 6px; }
.qt a { text-decoration: none; font-weight: 450; }
.qt a:hover { text-decoration: underline; }
.qt .t { color: var(--ink2); white-space: nowrap; }
.must { display: inline-block; margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink2); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.bad { color: var(--no-d); font-weight: 600; }
.pager { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink2); font-size: 14px; }
.pager span { margin-right: auto; }

/* question detail */
.qd h1 { font-size: 30px; line-height: 1.15; max-width: 26em; margin: 4px 0 20px; }
.ans-c h2 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 15px; font-weight: 600; }
.ans-c h2 span { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.ans-c p { margin-top: 10px; font-size: 16px; }
.ans-c .foot { font-size: 13.5px; color: var(--ink2); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ans-c.no { border-color: #EBC2B4; } .ans-c.ok { border-color: #B9DDD2; }
.doc h2, .doc h3 { font-size: 15px; font-weight: 600; }
.doc blockquote { margin: 12px 0 0; font: 400 16.5px/1.55 var(--doc); border-left: 2px solid var(--ink); padding-left: 16px; }
.doc blockquote p + p { margin-top: 6px; }
.doc mark { background: var(--ok-w); color: inherit; }
.doc .clash { background: var(--no-w); }
.doc .old blockquote { border-left-color: var(--no); }
.doc .src + .src { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.tag { display: inline-block; margin-left: 6px; font: 600 12.5px var(--ui); color: var(--no-d); border: 1px solid #EBC2B4; border-radius: 5px; padding: 0 6px; }
.miss { margin-top: 16px; padding: 12px 14px; background: var(--no-w); border-radius: 8px; font-size: 14.5px; }
.doc .scan { background: var(--amb-w); }
.doc .now { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.qnav { display: flex; gap: 10px; margin-top: 20px; }

/* ---- Held answers */
.hq { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.hl-h h1, .ib h1, .acty h1 { font-size: 34px; letter-spacing: -.025em; }
.hl-h .sub { font-size: 16px; margin-top: 6px; }
.hl-f { display: grid; gap: 8px; margin: 16px 0 10px; }
.hl-f .seg { justify-self: start; }
.filt summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 500; font-size: 14.5px; }
.filt summary::-webkit-details-marker { display: none; }
.filt summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(45deg) translateY(-2px); }
.filt[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.filt-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.filt-in #hs { grid-column: 1 / -1; }
.filt-in select { min-width: 0; font-size: 13.5px; padding-left: 10px; padding-right: 24px; background-position: right 8px center; }
@media (min-width: 901px) { .filt summary { display: none; } }
#hlist { border-top: 1px solid var(--line); max-height: calc(100vh - 330px); min-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
#hlist a { display: grid; gap: 4px; padding: 11px 12px 11px 14px; text-decoration: none; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
#hlist a:hover { background: rgba(255,255,255,.7); }
#hlist a[aria-current] { background: #fff; border-left-color: var(--ink); }
.hl-q { font-weight: 450; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-m { display: flex; gap: 6px 14px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; font-size: 13.5px; color: var(--ink2); }
.hl-m > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hl-m .lo { margin-left: auto; flex-shrink: 0; }
.hl-m .lo.no { color: var(--no-d); font-weight: 600; }
.ans .q { font-size: 23px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-top: 4px; }
.ans .meta { margin-top: 6px; }
.verdict { display: flex; gap: 9px; align-items: center; font-weight: 600; margin: 16px 0 14px; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.checks li { display: flex; gap: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.35; }
.checks li + li { border-left: 1px solid var(--line); }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--ink2); }
.scap, .srow { display: grid; grid-template-columns: minmax(0, 1fr) 220px 44px; gap: 0 18px; }
.scap { padding-bottom: 6px; }
.scap svg { width: 100%; height: 16px; overflow: visible; }
.srow { align-items: center; min-height: 58px; border-top: 1px solid var(--line); }
.srow > p { padding: 10px 0; }
.srow.no > p { font-weight: 500; }
.srow .link { display: block; margin-top: 2px; font-size: 13.5px; }
.srow svg { display: block; width: 100%; height: 56px; overflow: visible; }
.srow .d1 { transition: cx .6s cubic-bezier(.2,.7,.2,1); }
.srow.no .d1 { fill: var(--no); }
.srow > b { text-align: right; font-weight: 600; font-size: 17px; }
.srow.cut > p { text-decoration: line-through; color: var(--ink2); font-weight: 400; }
.srow.cut svg { opacity: .3; }
.srow.now { background: var(--paper); }
.srow.wait .d1 { opacity: 0; }
.ans .act { margin-top: 18px; }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin: 14px 0; }
.vrow .verdict { margin: 0; }
.done { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--rail); display: grid; gap: 6px; justify-items: start; font-size: 14.5px; }
.done q { font-weight: 550; overflow-wrap: anywhere; }
.hform { margin-top: 16px; display: grid; gap: 10px; }
.hform label, .hform legend { font-weight: 600; }

/* ---- Incidents */
.inc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.il { display: grid; border-top: 1px solid var(--line); }
.il a { display: grid; gap: 3px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; text-decoration: none; }
.il a:hover { background: rgba(255,255,255,.6); }
.il a[aria-current] { background: #fff; border-left-color: var(--ink); }
.il a b { font-weight: 500; line-height: 1.3; }
.il small { color: var(--ink2); font-size: 13px; }
.st { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.st-open::before { background: var(--no); border-radius: 2px; }
.old-l { margin-top: 18px; }
.old-l h2 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.old-l li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.old-l li span { display: block; color: var(--ink2); }
.ib .sub { font-size: 17px; }
.ib .meta { margin-bottom: 6px; }
.asked { margin-top: 22px; font-weight: 600; font-size: 16px; }
.ib .grid2 { margin-top: 12px; }
.chain { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px; }
.chain li { position: relative; }
.chain li + li::before { content: ""; position: absolute; top: 21px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.chain button { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; width: 100%; padding: 6px 4px 10px; border: 0; border-radius: 8px; background: none; text-align: center; font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.chain button:hover { background: var(--paper); }
.chain button[aria-selected=true] { background: var(--paper); box-shadow: inset 0 -3px 0 var(--ink); }
.chain i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.chain .s1 i { border-color: var(--ok); } .chain .s0 i { border-color: var(--no); background: var(--no); } .chain .s0 .ic { stroke: #fff; } .chain .s2 i { border-color: var(--amb); }
.chain .ic { width: 16px; height: 16px; }
.chain small { font-weight: 500; color: var(--ink2); font-size: 12.5px; }
.chain .s0 small { color: var(--no-d); font-weight: 650; }
.stp { margin-top: 12px; padding: 16px 18px; background: var(--paper); border-radius: 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.stp.one { grid-template-columns: 1fr; }
.stp-t { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.stp-t span { color: var(--ink2); font-weight: 500; font-size: 13.5px; }
.stp dl { margin-top: 10px; font-size: 14px; }
.stp dl div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
.stp dt { color: var(--ink2); } .stp dd { font-weight: 500; text-align: right; }
.stp .bad dd { color: var(--no-d); }
.stp details { margin-top: 8px; font-size: 14px; color: var(--ink2); }
.stp summary { font-weight: 600; color: var(--ink); min-height: 32px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--edge); }
.stp details[open] summary { text-decoration: none; }
.stp .doc { background: #fff; border-radius: 8px; padding: 14px 16px; }
.fixes li { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.fixes b { font-weight: 500; }
.flat { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 0; }
.fixes span { color: var(--ink2); font-size: 13.5px; }
.proof { margin-top: 14px; display: grid; gap: 12px; }
.proof li { display: grid; grid-template-columns: 92px 1fr 72px; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.proof svg { width: 100%; height: 22px; display: block; }
.proof b { text-align: right; }
.p-track { fill: var(--rail); } .p-fill { fill: var(--mute); } .p-fill.ok { fill: var(--ok); }
.hit-t { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

/* ---- Activity */
.acty-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.acty .tools .btn { margin-left: 0; }
.at { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.at th { text-align: left; font-size: 13px; font-weight: 500; color: var(--ink2); padding: 8px 14px 8px 0; border-bottom: 1px solid var(--edge); }
.at td { padding: 10px 14px 10px 0; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.at td:first-child { white-space: nowrap; color: var(--ink2); }
.at td:nth-child(3) { font-weight: 500; }
.at .nw { white-space: nowrap; }

/* ---- floating: tooltip, toast, guided run */
.tip { position: absolute; z-index: 40; max-width: min(320px, calc(100vw - 16px)); background: var(--ink); color: #fff; font-size: 13px; font-weight: 550; line-height: 1.35; padding: 6px 10px; border-radius: 6px; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 35; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; gap: 16px; align-items: center; background: var(--ink); color: #fff; padding: 10px 12px 10px 18px; border-radius: 10px; font-weight: 550; font-size: 14.5px; max-width: calc(100vw - 24px); transition: opacity .18s, transform .18s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { min-height: 36px; padding: 0 12px; border: 1px solid #5B574F; border-radius: 7px; background: none; color: #fff; font-weight: 650; }
.tour { position: fixed; right: 24px; bottom: 24px; z-index: 36; width: min(380px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 14px 40px rgba(29,28,25,.18); }
.tour p { font-size: 15.5px; }
.tour div { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.tour span { margin-right: auto; color: var(--ink2); font-size: 13.5px; }

@media (max-width: 1320px) { .gate { --lab: 184px; --val: 84px; } .nm { font-size: 14.5px; } }
@media (max-width: 1180px) {
  main { padding: 24px 28px 72px; }
  .grid { grid-template-columns: 1fr; }
  .hq { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
  .checks { grid-template-columns: 1fr; }
  .scap, .srow { grid-template-columns: minmax(0, 1fr) 44px; }
  .srow > p { grid-column: 1 / -1; padding: 12px 0 8px; }
  .srow svg { height: 36px; }
  .scap > span:first-child { display: none; }
  .checks li + li { border-left: 0; border-top: 1px solid var(--line); }
  .inc { grid-template-columns: 1fr; }
  .il { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .old-l { display: none; }
}
/* phone and tablet: top bar, bottom tabs */
@media (max-width: 900px) {
  .shell { display: block; min-height: 0; }
  .shell::before { display: none; }
  #hlist { max-height: none; min-height: 0; overflow: visible; }
  .rail { background: var(--rail); }
  .rail { position: static; height: 46px; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 16px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; font-size: 17px; }
  .wm { padding-bottom: 6px; }
  .brand small, .who { display: none; }
  .demo { padding: 0; }
  #demo-btn { min-height: 36px; padding: 0 4px; border: 0; font-weight: 500; color: var(--ink2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--edge); }
  .demo-menu { left: auto; right: 0; bottom: auto; top: calc(100% + 6px); }
  .rail nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--rail); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  #nav { display: flex; gap: 4px; }
  #nav li { flex: 1; min-width: 0; }
  #nav a { justify-content: center; gap: 6px; min-height: 48px; padding: 4px; font-size: 14px; white-space: nowrap; }
  #nav em { display: none; }
  main { padding: 12px 16px calc(100px + env(safe-area-inset-bottom)); }
  .crumb { flex-wrap: nowrap; gap: 10px; }
  .crumb .vs { display: none; }
  .pick select { min-height: 36px; }
  .fails { display: grid; gap: 8px; margin-top: 14px; }
  .fails li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #EBC2B4; }
  .fails .fn { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14.5px; line-height: 1.25; }
  .fails .fn small { display: block; font-weight: 400; color: var(--ink2); font-size: 13px; }
  .fails .tk { grid-column: 1; height: 30px; }
  .fails .tk .d1 { r: 7px; }
  .fails b { grid-column: 2; background: var(--no-d); color: #fff; border-radius: 6px; padding: 2px 9px; font-weight: 600; font-size: 16px; }
  .filt-in select { min-height: 44px; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .tour { left: 16px; right: 16px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .hero { display: block; margin: 12px 0 22px; }
  h1 { font-size: 34px; }
  .sub { font-size: 16.5px; }
  .hero .act { margin-top: 14px; }
  .hero .act .btn { flex: 1 1 140px; padding: 0 10px; }
  .decided { text-align: left; justify-items: start; margin-top: 16px; max-width: none; }
  .card { padding: 18px 16px 20px; }
  .gate { --lab: 0px; --val: 88px; }
  .val { font-size: 16px; }
  .sides { grid-template-columns: 1fr 1fr var(--val); }
  .sides span:first-child { display: none; }
  .rule { grid-template-columns: 1fr var(--val); padding-top: 12px; min-height: 0; }
  .nm { grid-column: 1 / -1; padding: 0 0 10px; }
  .tk { height: 50px; }
  .cnt, .na { min-height: 50px; }
  .div { --lab: 112px; }
  .bar { font-size: 14px; }
  .hq { display: block; }
  .hq.has-item .hpane, .hq:not(.has-item) .hd { display: none; }
  .hl-h h1, .ib h1, .acty h1 { font-size: 28px; }
  .ans .q { font-size: 21px; }
  .scap, .srow { grid-template-columns: minmax(0, 1fr) 44px; }
  .srow > p { grid-column: 1 / -1; padding: 12px 0 8px; }
  .srow svg { height: 36px; }
  .scap > span:first-child { display: none; }
  .ans .act .btn { flex: 1 1 auto; }
  .grid2 { grid-template-columns: 1fr; }
  .il { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .il a { flex: 0 0 250px; border-left: 0; border-bottom: 3px solid transparent; }
  .il { border-top: 0; border-bottom: 1px solid var(--line); }
  .il a[aria-current] { border-bottom-color: var(--ink); }
  .chain { grid-template-columns: 1fr; }
  .chain li + li::before { top: -10px; left: 23px; right: auto; width: 2px; height: 20px; }
  .chain button { grid-template-columns: 30px 1fr auto; justify-items: start; align-items: center; text-align: left; gap: 12px; padding: 8px; }
  .chain button[aria-selected=true] { box-shadow: inset 3px 0 0 var(--ink); }
  .stp { grid-template-columns: 1fr; padding: 14px; }
  .qt thead { position: absolute; clip-path: inset(50%); }
  .qt, .qt tbody { display: block; }
  .qt tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
  .qt td { border: 0; padding: 0; }
  .qt .q { grid-column: 1 / -1; grid-row: 1; }
  .qt .h { display: none; }
  .tools input[type=search] { max-width: none; flex-basis: 100%; }
  .tools select { flex: 1; min-width: 0; }
  .tools .btn { margin-left: 0; }
  .btn, .seg button, input[type=search], select, .legend button { min-height: 44px; }
  .at thead { position: absolute; clip-path: inset(50%); }
  .at, .at tbody { display: block; }
  .at tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
  .at td:nth-child(-n+2) { font-size: 13.5px; color: var(--ink2); font-weight: 400; }
  .at td:nth-child(n+3) { grid-column: 1 / -1; }
  .at tr:first-child { border-top: 0; }
  .at td { padding: 0; border: 0; }
  .qd h1 { font-size: 24px; }
}
@media (max-width: 420px) {
  #nav a { font-size: 13px; gap: 4px; }
  .crumb { font-size: 13.5px; }
  h1 { font-size: 31px; }
  .div { --lab: 96px; }
  .bar { font-size: 13px; }
  .proof li { grid-template-columns: 76px 1fr 60px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .rail, .concept-bar, .act, .toast, .tour, .tt, .tools { display: none !important; } .shell { display: block; } }
