/* MXB Facts, "Pit board": dark first, a card grid of tools, orange accent, condensed type for numbers and headings. Mobile first,
   WCAG 2.2 AA: text contrast at least 4.5:1, controls at least 44 px and every other target at least 24 px (2.5.8), no meaning in colour alone (every mark has words and an icon).
   The pages are made by site/render.py from the data feed; icons.css beside this file is made from the feed's states and tags. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2") }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2") }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2") }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(fonts/barlow-latin-700-normal.woff2) format("woff2") }
@font-face { font-family: "Saira"; font-weight: 700; font-display: swap; src: url(fonts/saira-latin-700-normal.woff2) format("woff2") }
@font-face { font-family: "Saira"; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/saira-latin-800-italic.woff2) format("woff2") }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2") }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2") }
:root {
  /* Spacing: every padding, margin and gap is one of these (stylelint holds it), so boxes line up. */
  --s0: 2px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px;
  --bg: #121315; --surface: #1b1d20; --sunk: #232629; --line: #2e3236; --ink: #eceae6; --muted: #9b9a96; --accent: #3fbf74; --accent-ink: #08130c;
  --hero: radial-gradient(95% 175% at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 68%), #18191c;
  --good: #5cc27a; --note: #9aa3ad; --concern: #e0a43a; --major: #ef7a3c; --danger: #ff7a70; --grey: #9a9fa5;
  --good-bg: rgba(92,194,122,.13); --note-bg: rgba(154,163,173,.12); --concern-bg: rgba(224,164,58,.14); --major-bg: rgba(239,122,60,.16); --danger-bg: rgba(240,90,79,.16); --grey-bg: rgba(124,129,135,.12);
  --info: #6cb6ff; --info-bg: rgba(84,160,255,.14);
  --f-display: "Barlow", system-ui, sans-serif; --f-head: "Saira", "Barlow", system-ui, sans-serif; --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  /* Type: every font set in the head face is one of these (stylelint holds it), so the same kind of title looks the same on
     every page. Title: a page's name; section: a page's sections; heading: a group's or a card's name; sub: a fold's, an area's
     or a step's title; label: small capitals over a group; the score figures at three sizes. */
  --t-title: 700 clamp(32px, 5vw, 48px)/1.02 var(--f-head); --t-section: 700 28px/1.1 var(--f-head); --t-heading: 700 24px/1.15 var(--f-head);
  --t-sub: 700 20px/1.2 var(--f-head); --t-label: 700 12.5px/1.2 var(--f-head);
  --t-score: 700 clamp(48px, 10vw, 128px)/.8 var(--f-head); --t-score-card: 700 34px/1 var(--f-head); --t-score-row: 700 18px var(--f-head);
  /* Width: every page's column is --w-page wide, and its panels, folds, tables, grids and pictures span it. Running text,
     read line by line (paragraphs, list items, answers, code), stops at --w-text on every page, in a panel or not, so a line
     is never longer on one page than on another (the rule is under "Width" below). */
  --w-page: 1180px; --w-text: 43rem;
  --r: 12px; --r-ctl: 8px; color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --bg: #f4f1ed; --surface: #ffffff; --sunk: #efebe5; --line: #e0d9cf; --ink: #1c1a17; --muted: #6b655d; --accent: #187434; --accent-ink: #ffffff;
  --hero: radial-gradient(95% 175% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%), #fffaf5;
  --good: #1f7a3a; --note: #5f6770; --concern: #8f6200; --major: #b04a0f; --danger: #c4271c; --grey: #5f646a;
  --good-bg: #e3f3e6; --note-bg: #eceef0; --concern-bg: #fbf0d6; --major-bg: #fbe6d8; --danger-bg: #fbe2df; --grey-bg: #efefef; --info: #0550ae; --info-bg: #ddf4ff; color-scheme: light } }
:root[data-theme="light"] {
  --bg: #f4f1ed; --surface: #ffffff; --sunk: #efebe5; --line: #e0d9cf; --ink: #1c1a17; --muted: #6b655d; --accent: #187434; --accent-ink: #ffffff;
  --hero: radial-gradient(95% 175% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%), #fffaf5;
  --good: #1f7a3a; --note: #5f6770; --concern: #8f6200; --major: #b04a0f; --danger: #c4271c; --grey: #5f646a;
  --good-bg: #e3f3e6; --note-bg: #eceef0; --concern-bg: #fbf0d6; --major-bg: #fbe6d8; --danger-bg: #fbe2df; --grey-bg: #efefef; --info: #0550ae; --info-bg: #ddf4ff; color-scheme: light }

* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15.5px/1.55 var(--f-display) }
a { color: var(--accent); text-underline-offset: 2px }
button, input, select { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px }
code { font: 400 max(12px, .84em) var(--f-mono); background: var(--sunk); padding: var(--s0) var(--s1); border-radius: 4px; overflow-wrap: anywhere }
pre { background: var(--sunk); padding: var(--s3) var(--s4); border-radius: var(--r-ctl); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px }
pre code { background: none; padding: 0; font-size: inherit }
h1, h2, h3, h4 { text-wrap: balance; margin: 0 }
.num { font-variant-numeric: tabular-nums }
.muted { color: var(--muted) }


.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--bg) }
.top .in { max-width: var(--w-page); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s1) var(--s3); padding: var(--s3) max(16px, env(safe-area-inset-right, 0px)) var(--s1) max(16px, env(safe-area-inset-left, 0px)) }
/* On a phone the header scrolls away (the brand and the theme on one row, the links under them); from 760 px it stays, on one row. */
.top .nav { grid-column: 1 / -1; grid-row: 2 }
.here { display: none }
@media (min-width: 900px) { .top .nav { flex-wrap: nowrap; flex: none } .here:not([hidden]) { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; text-decoration: none; padding-left: var(--s4); border-left: 1px solid var(--line) } .here:hover { color: var(--accent) } }
@media (max-width: 759px) { .top { position: static } }
@media (min-width: 760px) { .top .in { display: flex; align-items: center; gap: var(--s4); padding-block: var(--s3) } .top .nav { margin-left: auto } }
/* The wordmark is drawn (brand.py), its capitals .72em tall, so the font size sets its size as it did when it was text. */
.brand { font-size: clamp(20px, 7vw, 26px); line-height: 1; display: inline-flex; color: var(--ink); text-decoration: none } .brand svg { display: block; width: auto; overflow: visible }
/* The accent slash wherever the site joins two parts (macros.html, sep and of100), in the wordmark's face so it leans with the
   badge check, with a .02em stroke so it is as heavy as the figures beside it. Saira's slash runs from below the baseline to above
   the capitals; at .82em, stroked and raised .075em it spans exactly the capitals around it (cap 688, slash -55 to 743, in the
   font's 1000 units). tools/wordmark.py draws the badges' slash the same way. */
.sl { font-family: "Saira", var(--f-head); font-style: italic; font-weight: 800; font-size: .82em; vertical-align: .075em; -webkit-text-stroke: .04em currentColor; color: var(--accent); margin-inline: .2em }
/* In a label the slash sits between spaced capitals, so it gets the letter-spacing's room on its right as well. */
.cat .sl { margin-inline: .24em .34em }
small.of { font-size: max(12px, .42em); font-weight: 700; color: var(--muted); letter-spacing: 0 } small.of .sl { margin-inline: 0 .14em }
/* The links wrap rather than scroll, so none is ever cut off. */
.nav { display: flex; flex-wrap: wrap; gap: var(--s0); margin-inline: calc(-1 * var(--s2)) }
.nav a { color: var(--ink); text-decoration: none; padding: 0 var(--s3); min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-ctl); font-weight: 500; border: 1px solid transparent; white-space: nowrap }
@media (min-width: 760px) { .nav { margin: 0 } .nav a { padding: 0 var(--s3); min-height: 40px } }
.nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent) }
/* On a phone the four links share one row and its spare width, down to a 360px screen; a narrower one has two rows of two. */
@media (max-width: 519px) { .nav { margin-inline: calc(-1 * var(--s1)) } .nav a { flex: 1 1 auto; justify-content: center; padding: 0 var(--s1) } }
@media (max-width: 359px) { .nav { display: grid; grid-template-columns: 1fr 1fr; margin-inline: 0 } .nav a { justify-content: center } }
.nav a .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: var(--s1); border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 0 var(--s1) }

/* Spacing: a section's heading sits close to what it heads (--s3); sections, and folds standing alone, are --s5 apart. */
.wrap > .h2 + * { margin-top: calc(var(--s3) - var(--s5)) }
.wrap { max-width: var(--w-page); margin: 0 auto; padding: var(--s5) max(16px, env(safe-area-inset-right, 0px)) var(--s7) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: var(--s5) }
.stack { display: grid; gap: var(--s5) }
.hero { background: var(--hero); border: 1px solid var(--line); border-radius: 16px; padding: var(--s5); display: grid; gap: var(--s3) }
/* Every title on the site, and on the link previews (preview.py), is the head face at 700; the hero's only differs in size. */
.hero h1 { font: var(--t-title) }
.hero h1 span { color: var(--accent) }
.hero p { margin: 0; color: var(--muted); font-size: 16.5px }
/* The big wordmark beside the heading, on desktop only, centred on the hero's height. */
.hlogo { display: none }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) 38%; column-gap: var(--s6) } .hero > h1 { grid-column: 1 / -1; grid-row: 1 } .hero > :not(h1):not(.hlogo) { grid-column: 1 }
  .hlogo { display: flex; align-items: center; justify-content: center; grid-column: 2; grid-row: 1 / span 3; padding-right: var(--s3) } .hlogo svg { display: block; width: 100%; height: auto; max-height: 96px } }
/* On a phone the intro is plain text, not a panel, so the tools list starts on the first screen. */
@media (max-width: 640px) { .hero { background: none; border: 0; border-radius: 0; padding: 0; gap: var(--s2) } .hero p { font-size: 15px } }
.ainote { border-left: 3px solid var(--accent); background: var(--surface); padding: var(--s3) var(--s4); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; color: var(--muted); font-size: 14.5px; margin: 0 }
.ainote strong { color: var(--ink) }
.hero .ainote { background: none; padding: 0 0 0 var(--s3); font-size: 14px }
.sec-h { font: var(--t-section) }
.h2 { font: var(--t-heading) }

/* Marks: one shape per state, colour from the state, the verdict or the label as its words. */
.st { display: inline-flex; align-items: center; gap: var(--s1); padding: var(--s0) var(--s2); border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; text-decoration: none }
.st.good { color: var(--good); background: var(--good-bg) } .st.note { color: var(--note); background: var(--note-bg) }
.st.concern { color: var(--concern); background: var(--concern-bg) } .st.major { color: var(--major); background: var(--major-bg) }
.st.malware { color: var(--danger); background: var(--danger-bg) }
.st.off, .st.req, .st.nc, .st.held, .st.na, .st.dna, .st.ny, .st.notscored { color: var(--grey); background: var(--grey-bg); border-color: var(--line) }
/* Off by default and On request cost nothing (rule 5): dashed, like their tags, so they don't read as Not checked, which counts in full. */
.st.off, .st.req { border-style: dashed }
.st .c { font: 600 12px var(--f-mono) }
.st.io { padding: var(--s1) }
.tag { display: inline-flex; align-items: center; gap: var(--s1); padding: var(--s0) var(--s2); border-radius: 6px; font-size: 13px; border: 1px solid var(--line); color: var(--muted); background: var(--sunk); white-space: nowrap; text-decoration: none }
.tag.concern { color: var(--concern); border-color: color-mix(in srgb, var(--concern) 40%, transparent); background: var(--concern-bg) }
.tag.positive { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); background: var(--good-bg) }
.tag.off_by_default { border-style: dashed }
/* "+N more" looks like a tag; an invisible layer above and below makes the touch area 44 px tall without moving anything. */
button.tag.more { cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); position: relative }
button.tag.more::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%) }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2) }
/* A card with no score keeps an empty bar, dimmed, so every card's name and text line up across the row. */
.bar { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden } .bar.off { opacity: .5 }
/* A closed-source tool's bar is dimmed past the most it can score (--cap), with a tick there; site.js fills the bars in once as they come into view. */
.bar.cap { position: relative; overflow: visible; background: linear-gradient(90deg, var(--sunk) var(--cap), color-mix(in srgb, var(--sunk) 50%, transparent) var(--cap)) } .bar.cap::after { content: ""; position: absolute; left: calc(var(--cap) - 1px); top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--muted) }
.bar.fill i { transition: width .7s cubic-bezier(.2, .7, .2, 1) }
.motion .bar:not(.fill) i { width: 0 !important } .motion .hlogo .mk { visibility: hidden } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px }

.controls { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center }
.controls input[type=search] { flex: 1 1 240px; min-width: 0; padding: var(--s3) var(--s3); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface) }
.controls select { flex: 1 1 140px; padding: var(--s2) var(--s3); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface) }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2) }
.chip { border: 1px solid var(--line); background: var(--surface); padding: var(--s1) var(--s3); border-radius: 999px; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: var(--s2) }
.chip span { color: var(--muted); margin-left: var(--s0) } .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)) }
.count { color: var(--muted); font-size: 14px }
.cntr { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s1) var(--s4) } .cntr .count { margin: 0 }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: var(--s4) }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; container-type: inline-size }
.card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)) }
.card .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); min-height: 34px }
/* Small capitals over a group: a card's game and category, a footer column, a Compare picker group, "Also found". */
.cat, .fh, .also h4 { font: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.crumb { margin-bottom: var(--s2) } .crumb a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px } .crumb a:hover { color: var(--accent) }
.card .score { font: var(--t-score-card); text-align: right }
.card .score.word { font-size: 16px; color: var(--grey) }
.card h3 { font: var(--t-heading) } .card h3 a { color: var(--ink); text-decoration: none }
.card .meta { color: var(--muted); font-size: 13.5px }
.card .sum { margin: 0; font-size: 15px }
.card .foot { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) }
.btn { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4); border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent) }
.btn:disabled { opacity: .45; cursor: default }
/* The compare tray stays one slim row at every width (its words wrap, its buttons don't), so on a phone it covers as little of
   the tools list as it can. */
.cmpbar { position: sticky; bottom: max(12px, env(safe-area-inset-bottom, 0px)); display: flex; gap: var(--s3); align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r); padding: var(--s2) var(--s2) var(--s2) var(--s4); box-shadow: 0 8px 28px rgba(0,0,0,.25) }
.cmpbar > span:first-child { min-width: 0; line-height: 1.3 } .cmpbar .links { flex-wrap: nowrap; flex-shrink: 0 }
.empty { padding: var(--s6); text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r) }

/* Tool page */
/* The header is a grid with the score in its right column, its top level with the name's on every screen; it grows with the
   screen, and on a narrow one the lines under the name take the full width below it. */
.thead { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "crumb crumb" "name big" "meta big" "sum big"; column-gap: var(--s5) }
.thead .crumb { grid-area: crumb }
@media (max-width: 620px) { .thead { grid-template-areas: "crumb crumb" "name big" "meta meta" "sum sum"; column-gap: var(--s4) } }
.thead h1 { grid-area: name; min-width: 0; font: var(--t-title) } .thead h1 small { font-size: .5em; color: var(--muted); font-weight: 700 }
.thead .meta { grid-area: meta; color: var(--muted); margin-top: var(--s2) }
.thead .sum { grid-area: sum; margin: var(--s3) 0 0; font-size: 17px }
.big { grid-area: big; margin: 0; align-self: start; white-space: nowrap }
.big b { display: block; font: var(--t-score); letter-spacing: -.01em } .big small.of { font-size: .32em }
.big.word { padding-top: var(--s2) } .big.word .st { font-size: 15px; padding: var(--s1) var(--s3) }
.notice { background: var(--grey-bg); border: 1px dashed var(--line); border-radius: var(--r-ctl); padding: var(--s3) var(--s4); font-size: 14.5px; margin: 0 }
.notice.held { border-color: var(--concern); background: var(--concern-bg) }
/* A newer release with no card yet: neutral grey (it isn't a finding), with the refresh icon; its chip in the tools list and Compare. */
.notice.nw { border-style: solid; border-color: var(--grey) } .notice.nw::before { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: var(--s2) }
.tag.nw { color: var(--ink); border-color: var(--grey); background: var(--grey-bg); font-weight: 600 } .nwc { margin-top: var(--s2) }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s3) }
.area { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); text-decoration: none; color: var(--ink); display: grid; gap: var(--s2) }
.area .l { display: flex; justify-content: space-between; gap: var(--s2); font-size: 14px } .area .l b { font-variant-numeric: tabular-nums }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--s3) }
.key { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); display: grid; gap: var(--s2); min-width: 0; align-content: start }
.key .q { font-weight: 600; font-size: 15px } .key p { margin: 0; font-size: 14.5px; color: var(--muted) }
.key .hd { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start }
details.fold { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r) }
/* A fold's summary: its title, then its marks and score, then + or –, on one row. On a phone the title, the score (or count)
   and + keep the first row and the marks take a row of their own under them, only when there are any. */
details.fold > summary { cursor: pointer; padding: var(--s3) var(--s4); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s2) var(--s3); align-items: center; font-weight: 600; list-style: none }
details.fold > summary::-webkit-details-marker { display: none }
details.fold > summary .sumr .sc { min-width: 3.4em; text-align: right; order: 9 }
details.fold > summary .sumr { display: flex; gap: var(--s2); align-items: center; margin-left: auto; flex-wrap: wrap; justify-content: flex-end }
details.fold > summary::after { grid-column: 3; grid-row: 1; content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1 }
details.fold[open] > summary::after { content: "–" }
details.fold > summary .mk { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end } details.fold > summary .mk:empty { display: none }
@media (max-width: 640px) { details.fold > summary .sumr { display: contents } details.fold > summary .sumr > :not(.mk, .muted) { grid-row: 1; grid-column: 2 } details.fold > summary .mk, details.fold > summary .sumr > .muted { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; font-weight: 400 } }
details.fold > .body { border-top: 1px solid var(--line) }
.row { padding: var(--s3) var(--s4); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s1) var(--s3); border-bottom: 1px solid var(--line) }
.row:last-child { border-bottom: 0 }
.row .id { font: 500 12.5px/1.9 var(--f-mono); color: var(--muted) } .row a.id { text-decoration: none } .row a.id:hover, .row a.id:focus-visible { color: var(--accent); text-decoration: underline }
/* A link to a section beside its heading, as on GitHub: faint until the heading is hovered or the link focused; always there
   on a touch screen. Clicking it copies the address (site.js), and a tick shows it did. */
.anc { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: var(--s1); vertical-align: middle; color: var(--muted); border-radius: var(--r-ctl); opacity: 0; transition: opacity .15s }
.anc::before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat }
:is(h2, .fw, .ghead):hover .anc, .anc:focus-visible, .anc.done { opacity: 1 } .anc:hover { color: var(--accent) } .anc.done { color: var(--good) }
@media (hover: none) { .anc { opacity: .85 } }
.fw { position: relative; min-width: 0 } .fw > details.fold > summary { padding-right: var(--s7) } .anc.fa { position: absolute; top: var(--s3); right: var(--s1); margin: 0 }
.row .q { font-weight: 600 } .row .v { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; margin: var(--s1) 0 }
.row .t { margin: 0; font-size: 15px }
.row .sm { font-size: 13px; color: var(--muted) }
.row details { font-size: 13.5px; color: var(--muted); margin-top: var(--s2) }
.row details div { margin-top: var(--s1); overflow-wrap: anywhere }
.also { padding: var(--s3) var(--s4) var(--s4); display: grid; gap: var(--s2); background: color-mix(in srgb, var(--sunk) 50%, var(--surface)); border-radius: 0 0 var(--r) var(--r) }
.also p { margin: 0; font-size: 14.5px }
.tw { overflow-x: auto }
table.t { border-collapse: collapse; width: 100%; font-size: 14px }
table.t th, table.t td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
table.t th { color: var(--muted); font-weight: 600; font-size: 13px }
/* The "What earns a Good answer" tables share one set of column widths, so the six areas line up whatever their longest line. */
table.t-good { table-layout: fixed } table.t-good .c-good { width: 7.5em } table.t-good .c-cost { width: 7.5em }
/* A table of three columns or more stacks on a phone, as Compare does: each row reads top to bottom, its first cell as the
   title and every other cell under its column's heading (data-l, set by the build), so a long address or hash gets the full
   width instead of breaking every few letters in a narrow column. */
@media (max-width: 640px) {
  table.t.t-stack, table.t.t-stack tbody { display: block } table.t.t-stack thead { display: none }
  table.t.t-stack tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--line) } table.t.t-stack tbody tr:last-child { border-bottom: 0 }
  table.t.t-stack td { padding: 0; border: 0 } table.t.t-stack td:first-child { font-weight: 600 }
  table.t.t-stack td:not(:first-child)::before { content: attr(data-l); display: block; color: var(--muted); font-size: 13px; font-weight: 600 }
  table.t.t-stack td:empty { display: none }
  /* A table that sits straight in a fold, against its border, keeps the fold's inset, as its title does. */
  details.fold > .body > .tw > table.t.t-stack tr, details.fold > .body > div:not([class]) > .tw > table.t.t-stack tr { padding-inline: var(--s4) }
  /* A question's ID sits beside it, and the question wraps under itself, not under the ID. */
  table.t.t-stack td.qt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s2); align-items: baseline }
}
/* The table's box draws the last line; a row's own line there would double it. */
table.t tbody tr:last-child > *, table.cmp tbody tr:last-child > * { border-bottom: 0 }
details.sub:last-child { border-bottom: 0 }
/* Numbered steps inside a box are plain lines; only steps standing on the page get frames. */
.fold .steps li, .box .steps li { background: none; border: 0; border-radius: 0; padding: var(--s1) 0 }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s1) var(--s1) }
.lims { margin: 0; padding: var(--s3) var(--s4) var(--s3) var(--s7); display: grid; gap: var(--s2); font-size: 14.5px }
/* One release per row: the release (its page) and, beside it, Compare with the page you are on. */
.rlinks { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0 } .rlinks a { display: inline-flex; align-items: center; min-height: 44px }
.links { display: flex; gap: var(--s2); flex-wrap: wrap }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2) var(--s4); margin: 0; padding: var(--s4) var(--s4); font-size: 14.5px }
.facts dt { color: var(--muted) } .facts dd { margin: 0; overflow-wrap: anywhere }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr } .facts dd { margin-bottom: var(--s2) } }

/* Touch: every control at least 44px tall, and nothing that needs a hover. */
.chip, .btn, .controls input, .controls select, .row details summary, .emb details summary, details.fold > summary { min-height: 44px }
.row details summary, .emb details summary { cursor: pointer; display: flex; align-items: center; gap: var(--s2); color: var(--accent); font-weight: 600; width: max-content }
.row details summary::before, .emb details summary::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent currentColor; transition: transform .15s }
.row details[open] > summary::before, .emb details[open] > summary::before { transform: rotate(90deg) }
@media (prefers-reduced-motion: reduce) { .row details summary::before, .emb details summary::before, .anc { transition: none } }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0 }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: var(--s3) var(--s4); border-radius: var(--r-ctl); font-weight: 700 }
.skip:focus { top: 8px }
/* A long token (a SHA-256, a path) breaks rather than widening the page on a phone. A table cell breaks a word only when the
   word alone can't fit its column, so words stay whole ("Date", not "Dat e"; "P4", not "P 4"); a table too wide for the
   screen scrolls sideways in its .tw instead (site.js makes that one focusable, so the keyboard can scroll it too). */
main { overflow-wrap: anywhere } main :is(th, td) { overflow-wrap: break-word; hyphens: auto }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

/* Compare */
/* The tools' names stay at the top while the rows scroll under them: the frame clips rather than scrolls, so the page is what
   scrolls and the head can stick below the site's header (--top-h, which site.js keeps to the header's height while it sticks).
   A table too wide for its frame scrolls sideways instead (.wide, set by site.js), and its head then scrolls with it. */
.ctw { overflow-x: clip; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) } .ctw.wide { overflow-x: auto }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px }
table.cmp th, table.cmp td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle }
table.cmp thead th { background: var(--surface); font-size: 15px; position: sticky; top: var(--top-h, 0px); z-index: 1; box-shadow: inset 0 -1px var(--line) }
table.cmp th[scope=row] { font-weight: 500; color: var(--muted); max-width: 340px }
/* An area's heading has the site's one sub-heading look (a fold's title, a reading page's h3): 700 20px head font. */
table.cmp tr.grp th { background: var(--sunk); color: var(--ink); font: var(--t-sub) }
table.cmp .mini { display: grid; gap: var(--s1); min-width: 110px } table.cmp .mini b { font: var(--t-score-row) }

@media (max-width: 640px) {
  .ctw { overflow: visible; border: 0; background: none }
  table.cmp { min-width: 0; display: block } table.cmp thead { display: none } table.cmp tbody { display: grid; gap: var(--s2) }
  table.cmp tr { display: grid; gap: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s3) }
  /* An area's heading is a plain heading above its question panels on a phone, like the tool page's area headings: no band. */
  table.cmp tr.grp { background: none; border: 0; padding: var(--s3) 0 0 } table.cmp tr.grp th { background: none }
  table.cmp th, table.cmp td { border: 0; padding: 0; max-width: none }
  table.cmp td { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s3) }
  table.cmp td::before { content: attr(data-l); color: var(--muted); font-size: 13.5px }
}
/* Reading pages (How it works, For authors) */
.prose { display: grid; gap: var(--s4) }
.prose p, .prose ul, .prose ol { margin: 0 }
.prose li + li { margin-top: var(--s2) }
.prose table { border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto }
.prose th, .prose td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
.prose th { color: var(--muted); font-weight: 600 }
.prose h2, .prose h3 { font: var(--t-sub); margin-top: var(--s2) }
/* The ten rules as one line each on How it works; the full text folds below them. */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3) }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, var(--w-text)); gap: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4) }
.steps li::before { content: counter(s); font: var(--t-sub); color: var(--accent) }
.fold .prose { padding: var(--s4) var(--s4) }
.legend { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2) var(--s4); align-items: baseline; font-size: 14.5px; margin: 0 }
.legend dd { margin: 0; color: var(--muted) }
/* On a phone a legend stacks, term over meaning: the widest tag would otherwise squeeze every meaning into a narrow column. */
@media (max-width: 640px) { .legend { grid-template-columns: minmax(0, 1fr); gap: var(--s1) } .legend dd + dt { margin-top: var(--s3) } }
/* A copy button is an icon in the block's top right corner, as on GitHub and most docs; a tick replaces it once copied. */
.copy { position: relative } .copy pre { margin: 0; padding-right: var(--s7) }
.cpb { position: absolute; top: var(--s1); right: var(--s1); width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--muted); cursor: pointer }
.cpb:hover, .cpb:focus-visible { color: var(--ink) } .cpb.done { color: var(--good) }
.cpb::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat }

footer { border-top: 1px solid var(--line); margin-top: var(--s2) }
footer .in { max-width: var(--w-page); margin: 0 auto; padding: var(--s4) max(16px, env(safe-area-inset-right, 0px)) var(--s5) max(16px, env(safe-area-inset-left, 0px)); color: var(--muted); font-size: 14px; display: grid; gap: var(--s3) }
footer p { margin: 0 }
.fgrid { display: grid; gap: var(--s4) var(--s6); grid-template-columns: 1fr 1fr }
.fabout { grid-column: 1 / -1; display: grid; align-content: start; gap: var(--s2); max-width: var(--w-text) } .fabout .brand { font-size: 20px; justify-self: start }
@media (min-width: 760px) { .fgrid { grid-template-columns: 2fr 1fr 1fr } .fabout { grid-column: auto } }
.flinks { display: grid; align-content: start; gap: 0 } .fh { margin: 0 0 var(--s1) }
.flinks a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; justify-self: start } .flinks a:hover { color: var(--accent); text-decoration: underline }
/* Footer lines that break between their parts, not inside one: side by side when all fit, else one part per line (never two and one). */
.fl { display: inline-block } .fmeta .fl { margin-right: var(--s3) }
@media (max-width: 700px) { .fmeta .fl { display: block; margin-right: 0 } }
.fmeta { font-size: 13px; border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s2) }
@media (prefers-reduced-motion: no-preference) { .card, .area { transition: border-color .15s, background .15s } }

/* Marks and tags carry their icon (icons.css), drawn in the mark's own colour. */
.st::before, .rv::before, .cx::before, .nw::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat }
.tag.concern.major { color: var(--major); border-color: color-mix(in srgb, var(--major) 45%, transparent); background: var(--major-bg); font-weight: 600 }
/* The malware question's tag takes the Signs of malware mark's colour, as its answer does. */
.tag.concern.malware { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-bg); font-weight: 600 }
/* A comment under review: blue with a speech bubble, so it stands out without reading like a finding (it costs nothing). */
.rv { color: var(--info); background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 40%, transparent) }
.tag.rv { font-weight: 600 }
.legend + .prose, .prose + .legend, .prose + .tw { margin-top: var(--s4) }
.cx { color: var(--grey); background: var(--grey-bg); border-color: var(--line) }
.tags .st { font-weight: 500 }

/* Rows: answers and claims, one shape (templates/macros.html, row). */
.row .rb { min-width: 0 }
.row .t p { margin: 0 0 var(--s2) } .row .t p:last-child { margin: 0 }
/* Comment sits last on the mark line, after Limit and Under review, in the same small type. */
.row .cmt { font-size: 13px; display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px }
/* Comment and Discuss carry a speech-bubble icon; a tool's discussion count sits in the button as a small pill. */
.ic::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat }
.row .ic::before, .meta .ic::before { width: 14px; height: 14px }
.meta .ic { display: inline-flex; align-items: center; gap: var(--s1); vertical-align: bottom }
.cnt { min-width: 20px; padding: 0 var(--s1); border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; line-height: 18px; text-align: center }
.row .vd { font-weight: 700; font-size: 14px }
.row .sm.rv { display: inline-flex; align-items: center; gap: var(--s1); border: 1px solid color-mix(in srgb, var(--info) 40%, transparent); border-radius: 6px; padding: 0 var(--s2); color: var(--info) }
@media (max-width: 520px) { .row { grid-template-columns: 34px minmax(0, 1fr) } }
.row .v .sm { font-size: 13px }
a.sm { color: var(--accent) }

/* Tool page parts */
.lead { margin: 0; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14.5px }
.key .from { font-size: 13px }
.box.pad, .pad { padding: var(--s3) var(--s4) }
.box .facts + .tw { border-top: 1px solid var(--line) }
details.sub { margin: 0; padding: 0 var(--s4); border-bottom: 1px solid var(--line) } details.sub > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: 14.5px }
.stack.tight { gap: var(--s3) }
.chg { margin: 0; padding-left: var(--s5); display: grid; gap: var(--s1) }
.notice.maint { border-style: solid; border-color: var(--accent); background: var(--surface) }
.small { font-size: 14px; margin: 0 }
.nowrap { white-space: nowrap }
code.hash { font-size: 12px }
.files td .sm { display: block; color: var(--muted); font-size: 13px }
.embeds { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-top: var(--s2) } .emb { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2) } .emb > p { margin: 0 }
.embimg { display: block; max-width: 600px } .embimg img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r) }
.emb details summary { width: auto }
.snip { display: grid; gap: var(--s1); min-width: 0 } .snip pre { white-space: pre-wrap; overflow-wrap: anywhere }
.badges { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3) } .bopt { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1) } .bopt img { max-width: 100%; height: auto }
.lims.plain { list-style: none; padding-left: 0 }
.measure { margin: 0 }
.nflinks { margin: 0; padding-left: var(--s5); display: grid; gap: var(--s2) }
.ft { display: inline-flex; gap: var(--s2); align-items: baseline }
.cmptools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s3) }
.cmpl { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; color: var(--muted); font-size: 14px }
/* A tool card's three actions, Compare, Discuss and Findings, as three buttons of one size sharing the row. */
.card .foot .btn { flex: 1 1 auto; justify-content: center; gap: var(--s2); padding-inline: var(--s2); white-space: nowrap }
.card .foot .cmpl { color: var(--ink); font-size: 14.5px } .card .foot .cmpl:has(input:checked) { border-color: var(--accent) }
/* A narrow card (most phones) keeps the three on one row: Discuss drops its word for its icon (the word stays for screen
   readers), then the buttons tighten. The row still wraps if nothing else helps (very large text), so nothing spills out of the card. */
@container (max-width: 330px) { .card .foot .dsc { flex: 0 0 auto; padding-inline: var(--s3) } .card .foot .dsc .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap } }
@container (max-width: 270px) { .card .foot { gap: var(--s1) } .card .foot .btn { padding-inline: var(--s1) } }
/* The Compare picker: a category's label over its tools; a tool's chips flow with the others (its wrapper draws no box). */
/* The tools list: a category's label spans the grid above its cards, as in the Compare picker. */
.ghead { grid-column: 1 / -1; margin: var(--s4) 0 0; scroll-margin-top: 80px } .ghead .anc { width: 22px; height: 22px } .ghead:first-child { margin-top: 0 }
.pgrp { display: grid; gap: var(--s2) } .pgrp > .cat { margin: 0 }
@media (min-width: 641px) { .pgrp { grid-template-columns: 12rem minmax(0, 1fr); align-items: center; gap: var(--s4) } } .tchips { display: contents } .chip.more { font: inherit; font-size: 13px; color: var(--muted); border-style: dashed }
.theme { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-ctl); width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink) }
.theme::before { content: ''; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat }
@media (min-width: 760px) { .theme { width: 40px; height: 40px } }
a.plain { text-decoration: none }
table.cmp [data-c] { display: none } table.cmp.all [data-c], table.cmp [data-c].on { display: table-cell }
table.cmp tr.same { display: none }
@media (max-width: 640px) { table.cmp [data-c].on, table.cmp.all [data-c] { display: grid } table.cmp thead [data-c] { display: none } }
/* A link to a section lands below the sticky header (--top-h, kept by site.js), not under it. */
[id] { scroll-margin-top: calc(var(--top-h, 0px) + var(--s4)) }
/* A heading that is also a fold's summary keeps the fold's look. */
details.fold > summary h2.ft, details.fold > summary h3.ft { margin: 0; font: var(--t-sub) }
/* A fold in a group (an area, a limit, the release, the card history) has the same title as its siblings; a fold that is a
   section of its own (For the tool's author) has a section's title. */
details.fold > summary h3.ft { font: inherit }
/* Inside a box, the box's padding is the only space at its edges. */
.box > :first-child, .pad > :first-child, .prose > :first-child { margin-top: 0 }
.box > :last-child, .pad > :last-child, .prose > :last-child { margin-bottom: 0 }

/* Width (the tokens are in :root): running text stops at --w-text wherever it stands; what it sits in still spans the page. A
   table, a grid of cards and a picture are not running text and keep the full width; a legend is (a term, then its sentence). */
:is(.hero p, .thead .sum, .wrap > p:not(.ainote, .notice), .fabout, .measure, .prose > :not(table), .box > p:not(.lead), .pad > p:not(.lead), .legend, .row .rb, .also p, .lims li, .chg li, .facts dd, .emb > p, .copy) { max-width: var(--w-text) }
/* A lead line and a note are framed across the page (a rule under it, a box round it), so their text stops at the measure
   through their padding instead. tests/site/tests/layout.spec.mjs fails on running text wider than --w-text on any page. */
.lead, .notice, .wrap > .ainote { padding-right: max(var(--s4), calc(100% - var(--w-text))) }
