:root {
  --paper: #f4f1ea;
  --card: #fbf9f4;
  --ink: #1c1a17;
  --muted: #6a645b;
  --rule: #ddd6c8;
  --accent: #b4532a;
  --stage: #141312;
  --stage-ink: #f1ede4;
  --stage-muted: #a8a195;
  --pin: #d8632f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181715;
    --card: #211f1c;
    --ink: #ece8df;
    --muted: #a39c90;
    --rule: #3a362f;
    --accent: #e08a5b;
    --stage: #0f0e0d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* top bar */
.bar { background: var(--stage); color: var(--stage-ink); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.bar a { color: inherit; text-decoration: none; }
.brand { font-weight: 800; letter-spacing: 0.14em; font-size: 15px; }
.nav { display: flex; gap: 20px; font-size: 14px; color: var(--stage-muted); }
.nav a:hover, .nav a[aria-current] { color: var(--stage-ink); }
.nav .lang { border: 1px solid #4a463f; border-radius: 999px; padding: 2px 12px; }

/* hero */
.hero { background: var(--stage); color: var(--stage-ink); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 24px; padding-bottom: 36px; align-items: center; }
.hero h1 { font-size: 30px; line-height: 1.3; margin: 0 0 10px; letter-spacing: 0.01em; }
.hero.small.pic h1:last-child { margin-bottom: 0; }
.hero p { margin: 0; color: var(--stage-muted); max-width: 30em; }
.hero img { width: min(100%, 520px); margin: 0 auto; }
.hero.small .wrap { padding-top: 28px; padding-bottom: 32px; }
/* a page's title with the camera beside it and the links to its sections under them (the manual): on a narrow screen
   the camera small at the title's right, the links in one row under both */
.hero.small.pic .wrap { grid-template-columns: auto 1fr; grid-template-areas: "head img" "toc toc"; gap: 0 12px; }
.hero.small.pic .head { grid-area: head; align-self: start; }   /* the title at the top left (user 2026-11-15) */
/* (the camera in the middle of the space right of the title, and larger; user 2026-11-15) */
.hero.small.pic img { grid-area: img; width: min(100%, 176px); margin: 0; align-self: center; justify-self: center; }
.hero.small.pic .toc { grid-area: toc; min-width: 0; }

main { padding: 40px 0 72px; }
h2 { font-size: 22px; line-height: 1.4; margin: 0 0 18px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
section + section { margin-top: 56px; }
.lead { color: var(--muted); margin-bottom: 24px; }
.updated { font-size: 14px; color: var(--muted); }

/* link cards on the entrance page */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cards a {
  display: block; background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 20px 22px; color: var(--ink); text-decoration: none;
}
.cards a:hover { border-color: var(--accent); }
.cards strong { display: block; font-size: 18px; margin-bottom: 2px; }
.cards span { color: var(--muted); font-size: 15px; }

/* steps */
.steps { display: grid; gap: 20px; }
.step {
  background: var(--card); border: 1px solid var(--rule); border-radius: 16px;
  display: grid; grid-template-columns: 1fr; overflow: hidden;
}
.step .fig { background: var(--stage); padding: 22px 18px 14px; }
.step .txt { padding: 20px 22px 22px; }
.step .no {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 4px;
}
.step p:last-child, .step ul:last-child { margin-bottom: 0; }
.pins { position: relative; max-width: 460px; margin: 0 auto; }
.pin, .key b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pin); color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(20, 19, 18, 0.55); }
.key { list-style: none; padding: 0; margin: 12px auto 0; max-width: 460px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--stage-muted); font-size: 14px; }
.key li { margin: 0; display: flex; align-items: center; gap: 8px; }
.key b { width: 20px; height: 20px; font-size: 12px; flex: none; }
.inline-no { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pin); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 0.08em;
  /* the digit in the disc's middle: figures of one width (a "1" of its own width stood left of the middle), and the
     line no taller than the digit (user 2026-11-15) */
  line-height: 1; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
/* (a "1" is drawn left of its own width's middle: measured 0.7 px left in the disc, put right by half a pixel) */
.inline-no.n1 { padding-left: 1px; }

/* questions */
.faq { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--rule); }
.faq details p { margin: 12px 0 16px; }

/* the policy's summary tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
.tile { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 16px 14px; }
.tile strong { display: block; font-size: 17px; line-height: 1.4; }
.tile span { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; margin-top: 4px; }
.policy h2 { margin-top: 36px; font-size: 20px; margin-bottom: 8px; }

.contact { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.button {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; border-radius: 999px; padding: 10px 22px; margin-bottom: 12px;
}
footer { border-top: 1px solid var(--rule); padding: 20px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
footer a { color: inherit; }

/* wide screens */
@media (min-width: 820px) {
  body { font-size: 18px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 19px; }
  .hero.small h1 { font-size: 36px; }
  .hero.small .wrap { grid-template-columns: 1fr; }
  /* a page's title with the camera beside it, laid out as the top page's: the title and the links to the sections on
     the left, the camera in the middle of the right half */
  .hero.small.pic .wrap { grid-template-columns: 1.15fr 1fr; grid-template-areas: "head img" "toc img"; grid-template-rows: auto 1fr; gap: 0 40px; padding-top: 20px; padding-bottom: 20px; }
  .hero.small.pic .head { align-self: start; padding-top: 12px; }
  .hero.small.pic .toc { align-self: start; }
  .hero.small.pic img { width: min(100%, 470px); margin: 0; }
  main { padding-top: 56px; }
  h2 { font-size: 26px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: minmax(0, 46%) 1fr; align-items: stretch; }
  .step .fig { display: flex; flex-direction: column; justify-content: center; padding: 28px 24px 20px; }
  .step .txt { padding: 30px 34px; align-self: center; }
  .faq { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
}

/* the manual */
.manual h2 { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 26px; }
.manual h2:first-of-type { margin-top: 28px; }
.manual h3 { margin-top: 40px; font-size: 20px; }
.manual p > strong:only-child { display: block; margin-top: 28px; font-size: 17px; }
.manual blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; }
.manual blockquote p { margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.toc a { font-size: 14px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 14px; }
.toc a:hover { border-color: var(--accent); }
.hero .toc { margin: 18px 0 0; }
/* on a narrow screen the links in one row, swept sideways (five rows of them made the title heavy): the row runs to
   the screen's right edge, so the link cut there shows there are more */
@media (max-width: 819px) {
  .hero .toc { flex-wrap: nowrap; overflow-x: auto; margin: 14px -20px 0 0; padding: 0 20px 4px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hero .toc::-webkit-scrollbar { display: none; }
  .hero .toc a { flex: none; white-space: nowrap; }
}
.hero .toc a { color: var(--stage-ink); background: transparent; border-color: color-mix(in srgb, var(--stage-ink) 30%, transparent); }
.pair { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 16px 0 28px; align-items: start; }
.figs { display: grid; gap: 12px; }
.figs figure { margin: 0; background: var(--stage); border-radius: 14px; overflow: hidden; }
.figs figure img { width: 100%; }
.figs.alone { max-width: 560px; margin: 16px 0 24px; }
.pair .with > *:first-child { margin-top: 0; }
.pair .with ol, .pair .with ul { margin-bottom: 0; }
.tablewrap { overflow-x: auto; margin: 12px 0 20px; }
.manual table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
.manual th, .manual td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.manual th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.manual td:first-child { white-space: nowrap; }
.pair .tablewrap { margin: 0; }
@media (min-width: 820px) {
  .manual table { font-size: 16px; }
}
/* a table of parts on a narrow screen: the number and the name on one line, what it does under them across the
   table's width (three columns left the name a few letters wide, broken inside a word) */
@media (max-width: 999px) {
  .manual table.parts thead { display: none; }
  .manual table.parts tr { display: grid; grid-template-columns: 34px 1fr; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .manual table.parts td { border-bottom: 0; padding: 0 6px; }
  .manual table.parts td:nth-child(1) { grid-row: 1 / span 2; }
  .manual table.parts td:nth-child(2) { font-weight: 600; }
  .manual table.parts td:nth-child(2) br { display: none; }
  .manual table.parts td:nth-child(3) { grid-column: 2; }
}
/* a table of two columns on a narrow screen: the name in bold, its text under it across the table's width (the name,
   kept on one line, took over half the width and left the text a few letters a line; user 2026-11-15) */
@media (max-width: 699px) {
  .manual table.two thead { display: none; }
  .manual table.two tr { display: block; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .manual table.two td { display: block; border-bottom: 0; padding: 0 6px; white-space: normal; }
  .manual table.two td:first-child { font-weight: 600; }
  /* three columns the same way (the middle one stood a letter wide; user 2026-11-15): the name, then where it is or
     how to get there after its column's heading, then what it does */
  .manual table.three thead { display: none; }
  .manual table.three tr { display: block; border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .manual table.three td { display: block; border-bottom: 0; padding: 0 6px; white-space: normal; }
  .manual table.three td:first-child { font-weight: 600; }
  .manual table.three td[data-label]::before { content: attr(data-label) "："; color: var(--muted); font-size: 13px; }
  .manual table.three td:nth-child(2) { color: var(--muted); font-size: 15px; }
}
/* a picture and its table side by side: on a wide screen only, the page wider there and the picture narrower, so the
   table's lines are longer; a part's name is not broken inside a word; the text between stays as wide as it was */
@media (min-width: 1000px) {
  .manual-page .wrap { max-width: 1240px; }
  .manual > p, .manual > ul, .manual > ol, .manual > blockquote, .manual > .tablewrap, .manual > h2, .manual > h3, .manual > hr { max-width: 1000px; margin-left: 0; }
  .pair { grid-template-columns: minmax(0, 38%) 1fr; gap: 32px; }
  .manual table.parts td:nth-child(2) { white-space: nowrap; }
}
