:root {
  --ink: #000000;
  --ink-soft: #393939;
  --muted: #6b6b80;
  --faint: #9a9cb0;
  --brand: #0000ff;
  --brand-dark: #00002e;
  --brand-light: #cbdcff;
  --line: #e3e5ee;
  --surface: #ffffff;
  --surface-soft: #f5f7fc;
  --beta: #fffbdc;
  --beta-ink: #343322;
  --addon: #e9fbe8;
  --addon-ink: #2d7129;
  color-scheme: light;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 28px; }
@media (max-width: 599px) { .brand img { height: 26px; } }
.help-home { font-weight: 500; text-decoration: none; }
main.wrap { padding-top: 24px; padding-bottom: 48px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { color: var(--faint); }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 12px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
h2[id], h3[id] { scroll-margin-top: 16px; }
.anchor { display: inline-flex; vertical-align: -2px; margin-left: 8px; color: var(--faint); opacity: 0; transition: opacity 0.15s; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
.anchor:hover { color: var(--brand); }
.js .linkable { cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; padding: 8px 14px; border-radius: 8px; background: var(--brand-dark); color: #ffffff; font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity 0.15s, transform 0.15s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
p, ul, ol { margin: 0 0 14px; }
li { margin: 4px 0; }
li > ul, li > ol { margin-top: 4px; }
article { overflow-wrap: anywhere; }
strong { font-weight: 600; }
.lead { font-size: 17px; color: var(--ink-soft); margin-bottom: 24px; }
.availability { list-style: none; padding: 0; margin: -4px 0 24px; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.avail { margin: 0; display: flex; align-items: flex-start; gap: 8px; }
.avail .icon { flex: none; margin-top: 2px; }
.tag { flex: none; padding: 0 7px; border-radius: 4px; background: var(--beta); color: var(--beta-ink); font-size: 12px; font-weight: 600; line-height: 20px; }
.capture { margin: 12px 0 20px; }
.capture input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.switch { display: flex; width: fit-content; margin: 0 0 8px auto; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); font-size: 13px; line-height: 1.4; }
.switch label { padding: 3px 12px; border-radius: 999px; color: var(--muted); cursor: pointer; user-select: none; }
.switch label:hover { color: var(--ink); }
.v-d:checked ~ .switch .l-d, .v-m:checked ~ .switch .l-m { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 46, 0.14); }
.v-d:focus-visible ~ .switch .l-d, .v-m:focus-visible ~ .switch .l-m { outline: 2px solid var(--brand); outline-offset: 1px; }
.dual .shot { display: none; }
.v-d:checked ~ .shot-d, .v-m:checked ~ .shot-m { display: block; }
.zoom > summary { display: block; list-style: none; cursor: zoom-in; }
.zoom > summary::-webkit-details-marker { display: none; }
.zoom > summary:focus-visible { outline: none; }
.zoom > summary:focus-visible .frame img { outline: 2px solid var(--brand); outline-offset: 2px; }
.frame { position: relative; display: block; }
.frame img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink-soft); box-shadow: 0 1px 4px rgba(0, 0, 46, 0.2); }
.zoom-view { display: none; }
.zoom[open] .zoom-view { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 64px 24px 24px; background: rgba(0, 0, 20, 0.92); cursor: zoom-out; }
.zoom-view img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; background: var(--surface); transform-origin: 0 0; -webkit-touch-callout: none; user-select: none; }
/* help.js pinches and pans the image itself, so the browser must not scroll or zoom the page. */
.js .zoom-view { touch-action: none; }
.zoom-close { position: fixed; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #ffffff; }
body:has(.zoom[open]) { overflow: hidden; }
@media (hover: hover) {
  .zoom-hint { opacity: 0; transition: opacity 0.15s; }
  .zoom > summary:hover .zoom-hint, .zoom > summary:focus-visible .zoom-hint { opacity: 1; }
}
/* With no choice made, the capture follows the screen width, as <picture> did. */
@media (min-width: 601px) {
  .v-auto:checked ~ .shot-d { display: block; }
  .v-auto:checked ~ .switch .l-d { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 46, 0.14); }
  .shot-m > summary { padding: 20px; border-radius: 12px; background: var(--surface-soft); }
  .shot-m .frame { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .v-auto:checked ~ .shot-m { display: block; }
  .v-auto:checked ~ .switch .l-m { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 46, 0.14); }
  /* Edge to edge: on a phone every pixel of the capture counts; two fingers zoom it (help.js). */
  .zoom[open] .zoom-view { padding: 0; background: rgb(0, 0, 20); }
  .zoom-view img { border-radius: 0; }
}
.table { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; min-width: 100%; font-size: 15px; }
/* Cells wrap between words only: "anywhere" from article would shrink a wide table letter by letter instead of letting .table scroll it. */
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; overflow-wrap: normal; }
th[align="center"], td[align="center"] { text-align: center; }
th { background: var(--surface-soft); font-weight: 600; }
code { font: 14px ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface-soft); padding: 1px 5px; border-radius: 4px; }
.article-meta { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.article-meta .dot { margin: 0 8px; color: var(--faint); }
.article-meta a, .md-link a { color: var(--muted); }
.md-link { font-size: 14px; }
.cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.cards li { margin: 0; }
.cards a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); }
.cards a:hover { border-color: var(--brand); }
.card-title { display: block; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.card-text { display: block; color: var(--ink-soft); font-size: 15px; }
.pager { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.pager a span { display: block; font-size: 13px; color: var(--muted); }
.pager .next { text-align: right; }
@media (min-width: 640px) {
  h1 { font-size: 34px; }
  main.wrap { padding-top: 32px; }
  .pager { grid-template-columns: 1fr 1fr; }
}
