/* Linesmith site: the Sailor Brass look (DESIGN.md). Barlow and Barlow Semi Condensed, SIL OFL 1.1 (fonts/OFL.txt),
   latin subset, self-hosted. The change colours (added, lost) are never used here: they mean "the stencil
   changed" and nothing else. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/barlow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --mat: #1F2A3C;
  --mat-minor: #28354A;
  --mat-major: #4A5B78;
  --mat-num: #E6CD92;
  --chrome: #F3F4F6;
  --chrome-2: #E6E8EC;
  --paper: #FFFFFF;
  --ink: #141A24;
  --ink-2: #4C5666;
  --rule: #CDD2DA;
  --edge: #768196;
  --act: #1E3354;
  --on-act: #F0D58E;
  --sel: #F1E7CC;
  --sheet-shadow: 0 10px 30px rgba(0, 0, 0, .28), 0 1px 2px rgba(0, 0, 0, .2);
  --measure: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  /* The reading measure (DESIGN.md, Web pages): running text at most about 70 characters of Barlow a line. In em,
     so a larger lede keeps the same count. */
  --read: 30em;
  /* Ink on paper: the paper is light in both themes (as .panel's and the free pages' sheets), so text on it never
     takes the theme's --ink. */
  --on-paper: #141A24;
  /* The surface decides the pair, not the theme: the mat takes the night set in both themes (as paper keeps the
     day set). Brass on the mat is rationed to the one action and the measure labels (mat-num), never a paragraph. */
  --on-mat: #E8ECF2;
  --on-mat-2: #A3ADBD;
  --mat-act: #E2C27A;
  --mat-act-hover: #F0D58E;
  --on-mat-act: #141A26;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mat: #18243A;
    --mat-minor: #1F2D46;
    --mat-major: #384C6B;
    --mat-num: #D8BD7C;
    --chrome: #12151B;
    --chrome-2: #1B2029;
    --paper: #E1E4E9;
    --ink: #E8ECF2;
    --ink-2: #A3ADBD;
    --rule: #2A313D;
    --edge: #6A7588;
    --act: #E2C27A;
    --on-act: #141A26;
    --sel: #243044;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--chrome);
  color: var(--ink);
  font-weight: 400; font-size: 17px; line-height: 1.5;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--act); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--sel); }
/* Selection follows the surface too (in this order: the paper lies on the mat). */
.mat ::selection { background: var(--mat-major); color: var(--on-mat); }
.panel ::selection, .sheet ::selection { background: #F1E7CC; color: var(--on-paper); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 2;
  padding: 12px 16px; background: var(--paper); color: var(--on-paper); border-radius: 10px;
}
.skip:focus { top: 8px; }

/* The top bar: names where you are, like a guide word. */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  min-height: 56px; padding: 8px 16px;
  /* From 1152 px the brand and the button line up with the page's 1120 px column, as the foot does. */
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  background: var(--chrome); border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: .01em;
}
.brand img { width: 28px; height: 28px; }
.bar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.bar nav a, .foot nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); font-weight: 500; text-decoration: none; border-radius: 10px;
}
/* Hover only where a pointer hovers: on a phone a tapped row would stay grey. A press still shows (the sheet turns
   the browser's tap highlight off). */
@media (hover: hover) and (pointer: fine) { .bar nav a:hover, .foot nav a:hover { background: var(--chrome-2); } }
.bar nav a:active, .foot nav a:active { background: var(--chrome-2); }
/* The bar marks the section too: aria-current="page" on the page itself, "true" on a page under it. The fill alone
   is about 1.1:1 on the bar, so an underline in the link's own ink carries the mark. */
.bar nav a[aria-current] {
  background: var(--chrome-2);
  text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* The full bar (lane 3 spec §1): one row of links from 900 px; below that a disclosure that opens in the page's
   flow, with no script. Its button is DESIGN.md's secondary button: a page's one primary is its own. */
.bar { position: relative; gap: 0 16px; }
.bar .row { margin-left: auto; flex-wrap: nowrap; gap: 4px; }
.go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--edge); border-radius: 10px; background: var(--paper); color: var(--ink);
  font-weight: 600; text-decoration: none; white-space: nowrap; touch-action: manipulation;
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), background-color 150ms ease;
}
@media (prefers-color-scheme: dark) { .go { background: var(--chrome-2); } }
@media (hover: hover) and (pointer: fine) { .go:hover { background: var(--chrome-2); } }
@media (hover: hover) and (pointer: fine) and (prefers-color-scheme: dark) { .go:hover { background: var(--rule); } }
.go:active { transform: scale(.97); }
.menu { flex: 0 0 100%; }
.menu > summary {
  position: absolute; top: 8px; right: 16px;
  display: inline-flex; align-items: center; gap: 10px; min-width: 88px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--ink); font-weight: 500; cursor: pointer; list-style: none;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after {
  content: ""; width: 8px; height: 8px; margin-left: auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}
.menu[open] > summary { background: var(--chrome-2); }
.menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
@media (hover: hover) and (pointer: fine) { .menu > summary:hover { background: var(--chrome-2); } }
.menu > nav { display: block; margin: 8px -16px -8px; }
.menu > nav a:not(.go) {
  display: flex; min-height: 52px; padding: 0 16px; border-radius: 0; border-top: 1px solid var(--rule);
}
/* The rows run edge to edge: the focus ring goes inside, or its sides fall off the screen. */
.menu > nav a:not(.go):focus-visible { outline-offset: -3px; }
.menu > nav .go { display: flex; margin: 8px 16px 16px; min-height: 48px; padding: 0 16px; font-weight: 600; }
@media (min-width: 560px) { .menu > nav .go { display: none; } }
@media (max-width: 559px) { .bar > .go { display: none; } }
@media (max-width: 899px) {
  .bar .row { display: none; }
  .bar > .go { margin-left: auto; margin-right: 100px; }
}
@media (min-width: 900px) { .menu { display: none; } }

/* The quiet bar (pages the apps open): the brand and two links, no menu. One row from 420 px; below that the links
   always take their own row under the mark, so the row count never hangs on which font has loaded. */
@media (max-width: 419px) { .bar.quiet nav { flex: 0 0 100%; margin-left: -12px; } }

/* The mat: a self-healing cutting mat, quarter-inch and inch lines two small steps from the mat colour. */
.mat {
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-major) 1px, transparent 1px),
    linear-gradient(var(--mat-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-minor) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: var(--on-mat);
}

.hero { padding: 48px 16px 56px; }
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero h1 {
  margin: 0 0 16px; color: #FFFFFF; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 700;
  max-width: 16ch;
}
@media (prefers-color-scheme: dark) { .hero h1 { color: var(--ink); } }
.hero .lede { margin: 0 0 20px; max-width: var(--read); font-size: 19px; color: var(--on-mat); }
.hero .note {
  display: inline-block; margin: 0; color: var(--on-mat-2);
  font-family: var(--measure); font-weight: 600; letter-spacing: .02em;
}

/* The stencil sheet: the only raised object, paper lying on the mat. */
.sheet {
  margin: 0; background: var(--paper); color: #111111; box-shadow: var(--sheet-shadow);
  padding: 16px 16px 12px; border-radius: 0;
}
.sheet img { display: block; width: 100%; height: auto; }
.sheet figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid #CDD2DA;
  font-family: var(--measure); font-weight: 600; font-size: 14px; letter-spacing: .03em; color: #111111;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 430px) {
  .hero .sheet figcaption { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; }
  .hero .sheet figcaption span:nth-child(even) { justify-self: end; }
}

/* Tables: on reading pages (/facts/'s platforms) and on a sheet (/pricing/'s price sheet). The paper is light in
   both themes, so a sheet's table keeps the paper's own inks, as its caption does. A hero's sheet only: the free
   tools load this file too, and the grey wash card is a .sheet holding a table of its own. */
.page table, .hero-inner .sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.page caption, .hero-inner .sheet caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.page th, .page td, .hero-inner .sheet th, .hero-inner .sheet td {
  text-align: left; vertical-align: top; padding: 10px 12px 10px 0;
}
.page th, .hero-inner .sheet th { font-weight: 600; }
.page tr { border-bottom: 1px solid var(--rule); }
.page thead th, .hero-inner .sheet thead th {
  font-family: var(--measure); font-size: 14px; letter-spacing: .03em; color: var(--ink-2);
}
.hero-inner .sheet table, .hero-inner .sheet caption { color: var(--on-paper); }
.hero-inner .sheet tr { border-bottom: 1px solid #CDD2DA; }
.hero-inner .sheet tbody tr:last-child { border-bottom: 0; }
.hero-inner .sheet th > span { display: block; font-weight: 400; color: #4C5666; }
.hero-inner .sheet td.figure { text-align: right; font-size: 18px; white-space: nowrap; padding-right: 0; }

/* The priced hero (/pricing/): from 900 px the price sheet takes the right column across both rows, with the
   answer above the actions at the left. On a phone: answer, sheet, actions. */
@media (min-width: 900px) {
  .hero-inner.priced { row-gap: 0; }
  .hero-inner.priced > .sheet { grid-column: 2; grid-row: 1 / span 2; }
  .hero-inner.priced > div:first-child { align-self: end; }
  .hero-inner.priced > .cta-row { align-self: start; margin-bottom: 0; }
}

/* Reading pages. */
.page { max-width: 46rem; margin: 0 auto; padding: 32px 16px 56px; }
.page h1 { margin: 8px 0 12px; font-size: clamp(30px, 4.4vw, 40px); line-height: 1.12; font-weight: 700; }
.page h2 { margin: 40px 0 8px; font-size: 24px; line-height: 1.2; font-weight: 600; }
.page h3 { margin: 28px 0 6px; font-size: 19px; line-height: 1.25; font-weight: 600; }
.page p, .page li { max-width: var(--read); }
.page ul, .page ol { padding-left: 1.3em; }
.page li + li { margin-top: 6px; }
/* The answer reads as the strongest text after the h1 (desk L-SEO-build-1, T1). */
.page .lede { font-size: 19px; color: var(--ink); margin-top: 0; }
.page .dated { font-family: var(--measure); font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.page address { font-style: normal; }
.page code { font-family: var(--measure); font-weight: 600; font-size: .95em; letter-spacing: .01em; }
.page .params { color: var(--ink-2); }
.short {
  margin: 20px 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
}
@media (prefers-color-scheme: dark) { .short { background: var(--chrome-2); } }
.short h2 { margin-top: 0; font-size: 20px; }
.short ul { margin-bottom: 0; }

/* Lists of pages, as rows of 56 px or more. */
.rows { list-style: none; padding: 0 !important; margin: 16px 0; border-top: 1px solid var(--rule); }
.rows li { margin: 0 !important; border-bottom: 1px solid var(--rule); }
.rows a {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 4px;
  color: var(--ink); text-decoration: none;
}
.rows a:hover { background: var(--chrome-2); }
.rows.plain li { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px; }
.rows.plain strong { color: var(--ink); }
.rows strong { font-weight: 600; font-size: 18px; color: var(--act); }
.rows span { color: var(--ink-2); }

/* Steps. */
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 48px; margin-top: 16px !important; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1.5px solid var(--edge); border-radius: 999px;
  font-family: var(--measure); font-weight: 600;
}

/* Landing sections. */
.band { padding: 48px 16px; }
.band-inner { max-width: 1120px; margin: 0 auto; }
.band h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; font-weight: 700; }
.band .sub { margin: 0 0 28px; color: var(--ink-2); max-width: var(--read); }
.facts { display: grid; gap: 12px 32px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.points article { border-top: 1px solid var(--rule); padding: 14px 0 6px; }
.points h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; font-weight: 600; }
.points p { margin: 0; color: var(--ink-2); max-width: var(--read); }
.facts .figure { font-size: 22px; }

/* The hero's actions: the free stencil maker first (the one thing a visitor can use today), then the app. */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 0 20px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 10px;
  background: var(--mat-act); color: var(--on-mat-act); font-weight: 600; font-size: 18px; line-height: 1.25;
  text-decoration: none; touch-action: manipulation;
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--mat-act-hover); } }
.btn:active { transform: scale(.97); }
.mat a:not(.btn) { color: var(--mat-num); }
.mat .more { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }
.mat :focus-visible { outline-color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .mat :focus-visible { outline-color: var(--ink); } }

/* A photo beside its section: stacked on a phone, 5 to 7 from 1000 px. */
.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: var(--sheet-shadow); }
.photo figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* The free tools: the mat again, with the tools on a sheet of paper (light in both themes, like the hero's). */
.band.free h2 { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .band.free h2 { color: var(--ink); } }
.band.free .sub { color: var(--on-mat); }
.band.free .photo figcaption, .hero .photo figcaption { color: var(--on-mat-2); }
.hero .photo img { background: var(--paper); }
.band.read-steps .steps > li { max-width: var(--read); }
/* Paper keeps the day set in both themes, actions included (the stencil maker's "Choose an image" on the sheet). */
.panel, .sheet {
  --ink: #141A24; --ink-2: #4C5666; --act: #1E3354; --on-act: #F0D58E; --rule: #CDD2DA; --chrome-2: #E6E8EC;
}
.panel {
  background: var(--paper); color: var(--ink); box-shadow: var(--sheet-shadow); padding: 8px 20px 4px;
}
.panel :focus-visible { outline-color: var(--ink); }
.panel .rows { margin: 8px 0; border-top: 0; }
.panel .rows li:last-child { border-bottom: 0; }
.panel .rows a { color: var(--ink); }
.panel .rows .lead strong { font-size: 22px; }
/* At night chrome-2 is lighter than the dimmed paper; the hover step is the paper's own rule. */
@media (prefers-color-scheme: dark) { .panel .rows a:hover { background: var(--rule); } }
.panel .all { margin: 0; padding: 12px 4px 16px; border-top: 1px solid var(--rule); }
.panel .all a { color: var(--act); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

h1, h2 { text-wrap: balance; }
html { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) { .rows a { transition: background-color 150ms ease; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .sheet { animation: settle 450ms cubic-bezier(.23, 1, .32, 1) both; }
}
@keyframes settle { from { transform: translate(0, 8px) rotate(-1deg); } to { transform: none; } }
.facts div { border-top: 1px solid var(--rule); padding-top: 12px; }
.facts dt { font-weight: 600; font-size: 18px; }
.facts dd { margin: 4px 0 0; color: var(--ink-2); }
.figure { font-family: var(--measure); font-weight: 600; font-variant-numeric: tabular-nums; }

/* The guide pages (/printers/**): a breadcrumb, source lines, the compared table, the bench, the fault tiles and
   the app block. Existing tokens only. */
/* .page-scoped: the free tools have their own .crumbs in tools.css and load this sheet too. */
.page .crumbs ol, .hero .crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0 !important; list-style: none; font-size: 15px; }
.page .crumbs li, .hero .crumbs li { display: inline-flex; align-items: center; min-height: 44px; margin: 0 !important; max-width: none; color: var(--ink-2); }
.page .crumbs li:not(:last-child)::after, .hero .crumbs li:not(:last-child)::after { content: "/"; margin-left: 4px; color: var(--edge); }
.page .crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
/* The current page is no link: it needs no tap height, so at 320 px it stays on the trail's row. */
.page .crumbs li[aria-current], .hero .crumbs li[aria-current] { min-height: 0; }
.page .crumbs + h1, .hero .crumbs + h1 { margin-top: 0; }
/* A breadcrumb on the mat (/pricing/'s hero) takes the mat's own inks; its link keeps .mat a's mat-num. .hero, not
   .mat: the free tools use .mat. */
.hero .crumbs li, .hero .crumbs li:not(:last-child)::after { color: var(--on-mat-2); }
/* The page's own name in the mat's first ink: the second ink falls to 3:1 where it crosses a major grid line. */
.hero .crumbs li[aria-current] { color: var(--on-mat); }
.hero .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }

/* A source line is a citation, not an action: its links keep the line's second ink and their underline. */
.src { display: block; margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.src a { color: inherit; text-decoration-color: var(--edge); }
.src a:hover { text-decoration-color: currentColor; }
.page ul + .src, .page ol + .src, .page ul + .cite, .page ol + .cite { margin-top: 8px; }
/* A source set of three or more links folds (desk L-SEO-build-1, T2): closed, its summary a 44 px target that
   gives the count and the read date; only the links fold, any other sentence stays above it. */
.cite { margin: 6px 0 0; }
.cite > summary { display: list-item; max-width: 600px; padding-block: 12px; line-height: 20px; font-family: var(--measure);
  font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.cite > .src { margin-top: 0; }
.src + .cite { margin-top: 0; }
.glance .from .cite { margin: 0; }
/* A guide's line of links into the page, under its photo: each a full tap target. */
.toc { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 8px; font-family: var(--measure); font-weight: 600; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; }

/* The compared table: four columns from 1000 px, leaving the reading column; below, each row is a block and a
   segmented choice shows one kind where :has() is supported. ARIA table roles keep the block display a table. */
.cmp { margin: 16px 0 0; }
.cmp table { table-layout: fixed; }
.cmp thead th:first-child { width: 11.5em; }
.cmp > .src, .cmp > .cite { margin-top: 10px; }
/* The caption repeats the heading above it: kept for screen readers only. */
.cmp caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; }
.cmp td, .page .fault :is(p, li) { text-wrap: pretty; }
@media (min-width: 1000px) {
  .cmp thead th { position: sticky; top: 0; background: var(--chrome); box-shadow: 0 1px 0 var(--rule); }
}
.pick { display: none; border: 0; margin: 0 0 12px; padding: 0; min-inline-size: 0; }
.pick legend { padding: 0; margin-bottom: 6px; font-size: 15px; color: var(--ink-2); }
/* Scoped to the picker: the free tools load this sheet too and have their own .segmented (review of #594). */
.pick .segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
  background: var(--chrome-2); border-radius: 10px; max-width: var(--read); }
.pick .segmented label {
  position: relative; display: grid; place-items: center; min-height: 48px; padding: 6px 10px; border-radius: 7px;
  border: 1.5px solid transparent; text-align: center; font-weight: 500; font-size: 16px; line-height: 1.2;
  cursor: pointer; color: var(--ink);
}
.pick .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick .segmented input:checked + span { font-weight: 600; }
.pick .segmented label:has(input:checked) {
  background: var(--paper); border-color: var(--edge);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16), 0 1px 6px rgba(0, 0, 0, .06);
}
.pick .segmented label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 1px; }
@media (prefers-color-scheme: dark) {
  /* The track is --chrome on the --chrome ground: a 1 px rule keeps it a track. */
  .pick .segmented { background: var(--chrome); box-shadow: inset 0 0 0 1px var(--rule); }
  .pick .segmented label:has(input:checked) { background: var(--chrome-2); }
}
@media (min-width: 1000px) { .cmp { margin-inline: -120px; } }
@media (min-width: 1152px) { .cmp { margin-inline: -192px; } }
@media (max-width: 999px) {
  .cmp table, .cmp caption, .cmp tbody, .cmp tr, .cmp tbody th, .cmp td { display: block; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp tbody th { padding: 14px 0 0; font-size: 18px; }
  .cmp table { max-width: var(--read); }
  .cmp td { padding: 6px 0 12px; max-width: var(--read); }
  .cmp td::before { content: attr(data-kind); display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); }
}
@supports selector(:has(*)) {
  @media (max-width: 999px) {
    .pick { display: block; }
    .cmp:has(.pick input:checked) td::before { content: none; }
    .cmp:has(#k-thermal:checked) :is(.k-inkjet, .k-thermocopier),
    .cmp:has(#k-inkjet:checked) :is(.k-thermal, .k-thermocopier),
    .cmp:has(#k-thermocopier:checked) :is(.k-thermal, .k-inkjet) { display: none; }
  }
}

/* The bench: the mat inside a reading page, holding paper and at most one brass button. */
.bench { margin: 28px -16px; padding: 24px 16px; overflow: clip; }
@media (min-width: 768px) { .bench { margin-inline: 0; padding: 28px; } }
.bench h2 { margin-top: 0; color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .bench h2 { color: var(--ink); } }
.bench p { color: var(--on-mat); }
.bench .note { margin-bottom: 0; color: var(--on-mat-2); font-family: var(--measure); font-weight: 600; letter-spacing: .02em; }
/* .bench-scoped: the free tools' own .tool grid loads this sheet too (review of #594). */
.bench .tool { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 560px) { .bench .tool { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 28px; } }
.bench .tool .sheet { max-width: 200px; }
/* A pair: the same sheet two ways (the backwards guide's LEFT), side by side, the words under them at every width
   (beside two sheets the words' column is too narrow for the button). */
.bench .tool.pair { grid-template-columns: repeat(2, minmax(0, 180px)); align-items: start; }
.bench .tool.pair > div { grid-column: 1 / -1; }
.bench .tool .sheet img { mix-blend-mode: multiply; }   /* at night the picture's white takes the dimmed paper's tone */
.page .fault { margin-top: 40px; border-top: 1px solid var(--rule); }
.page .fault > h2 { margin-top: 28px; }
.bench .tool .btn { margin-top: 4px; }

/* The fault tiles: nine small sheets on the bench, each a link to its section. */
.faults { list-style: none; padding: 0 !important; margin: 16px 0 12px; display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 560px) { .faults { gap: 16px; } }
/* The grid stretches each li; flex carries the stretch to the link and the sheet, and the drawing's slot sits above
   the caption, so the rules of a row line up whatever the caption's length. The slot stays short while it is empty
   (spec flag 10); when the drawings land, the two slot rules give way to `.faults svg { flex: none; }`. */
.faults li { display: flex; margin: 0 !important; max-width: none; }
.faults a { display: flex; flex: 1; min-width: 0; text-decoration: none; }
.faults .sheet { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 10px 10px 8px; }
.faults .sheet::before { content: ""; padding-top: 14%; }
@media (min-width: 560px) { .faults .sheet::before { padding-top: 53%; } }
.faults svg { display: block; width: 100%; height: auto; }
.faults figcaption { justify-content: flex-start; }
@media (hover: hover) and (pointer: fine) {
  .faults a { transition: transform 140ms cubic-bezier(.23, 1, .32, 1); }
  .faults a:hover { transform: translateY(-2px); }
}
.faults .sheet.gone { background: none; box-shadow: none; outline: 1.5px dashed var(--edge); outline-offset: -1.5px; }
.faults .sheet.gone figcaption { color: var(--on-mat); border-top-color: var(--edge); }
.faults .sheet.askew { transform: rotate(-4deg); }

/* The app block, and room above a section a tile jumps to. */
.app { margin: 40px 0 0; padding: 20px 20px 8px; background: var(--chrome-2); border-radius: 10px; }
.app h2 { margin-top: 0; font-size: 20px; }
/* A list of rows in a reading page is as wide as its rows; in the app block the rows run the block's width. */
.page .rows { max-width: var(--read); }
.app .rows, .app .rows li { max-width: none; }
.app .rows { margin-bottom: 0; }
.app .rows li:last-child { border-bottom: 0; }
.app .rows a:hover { background: var(--chrome); }
.page [id] { scroll-margin-top: 16px; }

/* Settings at a glance (the model pages, and the hub's table by model): three columns that stay in the reading
   column; the last says who states the value. Under 640 px each row is a block and nothing scrolls sideways. */
.glance { table-layout: fixed; margin-top: 12px; }
.glance caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; }
.glance thead th:first-child { width: 8em; }
.glance thead th:last-child { width: 40%; }
/* The hub's table by model: the printer's name is the long cell, the kind a short one. */
.glance.hub thead th:first-child { width: 15em; }
.glance.hub thead th:nth-child(2) { width: 11em; }
.glance.hub thead th:last-child { width: auto; }
.glance.hub tbody th a, .glance.guide tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
/* The how-to guides' tables: a case ("Any printer, on thermal stencil paper") is longer than a setting name. */
.glance.guide thead th:first-child { width: 11em; }
.glance.guide thead th:last-child { width: 32%; }
/* .page caps p and li at the measure, not figure: the guides' one photograph keeps to the text's width. */
.page .photo { max-width: var(--read); margin: 24px 0; }
/* A model number never breaks at its hyphen. */
.nw { white-space: nowrap; }
/* The model pages' line of links into the page: each a full tap target. */
.jump { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 8px 0 0; font-size: 15px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.page .steps > li, .page .facts dd, .page p.src { text-wrap: pretty; }
.glance th, .glance td { overflow-wrap: break-word; text-wrap: pretty; }
.glance .from { font-size: 15px; color: var(--ink-2); }
.glance .from b { display: block; font-weight: 600; }
.glance .from a, .cited a { color: inherit; text-decoration-color: var(--edge); }
.glance .from a:hover, .cited a:hover { text-decoration-color: currentColor; }
.cited { font-size: 15px; color: var(--ink-2); }
@media (max-width: 639px) {
  .glance, .glance tbody, .glance tr, .glance tbody th, .glance td { display: block; }
  .glance thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .glance tbody th { padding: 14px 0 0; font-size: 18px; }
  /* Stacked, a hub row's link is a block that wraps like text (as an inline flex box its model names could not
     wrap at 320 px) and keeps a 44 px target. */
  .glance.hub tbody th a, .glance.guide tbody th a { display: block; min-height: 44px; padding-block: 8px; }
  .glance td { padding: 4px 0 0; }
  .glance tr > :last-child { padding-bottom: 12px; }
  .glance td[data-col]::before { content: attr(data-col); display: block; font-size: 15px; font-weight: 600;
    color: var(--ink-2); }
}

/* The foot. */
.foot { border-top: 1px solid var(--rule); padding: 24px 16px 40px; }
.foot-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -12px; }
.foot p { margin: 0; color: var(--ink-2); font-size: 15px; }
/* The full foot (lane 3 spec §2): four short columns of plain links under small heads in the second ink; the quiet
   pages keep the one row above. Two classes, to beat .foot nav's row. */
.foot .foot-cols { display: grid; gap: 28px 8px; grid-template-columns: minmax(0, 1fr); margin-left: 0; }
.foot .foot-cols a { font-size: 16px; }
@media (min-width: 360px) { .foot .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Two columns read down, so the short column sits over a long one and no gap opens under "Linesmith". */
@media (min-width: 360px) and (max-width: 899px) { .foot .foot-cols { grid-auto-flow: column; grid-template-rows: repeat(2, auto); } }
@media (min-width: 900px) { .foot .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; } }
.foot h2 { margin: 0 0 2px; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.foot ul { list-style: none; margin: 0 0 0 -12px; padding: 0; }
.foot li { margin: 0; }
.foot-cols + p { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) { .foot .foot-cols a { min-height: 36px; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
