/* The fonts are served by the site itself, so no request goes to anyone else and they work offline. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('../fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('../fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 600; font-display: swap; src: url('../fonts/caveat-latin-600-normal.woff2') format('woff2'); }

:root {
  /* Layout idea: one narrow column, one main button per screen, nothing smaller than 18px. */
  --ink: #14202B;
  --muted: #4A5866;
  --line: #D5DCE3;
  --edge: #6B7885;
  --paper: #F3F5F7;
  --ground: #FFFFFF;
  --accent: #1D4ED8;
  --accent-dark: #163BA6;
  --good: #166534;
  --bad: #A1260D;
  --bad-ground: #FDF1EE;
  --display: 'Bricolage Grotesque', 'Atkinson Hyperlegible', Verdana, sans-serif;
  --body: 'Atkinson Hyperlegible', Verdana, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.5;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 4px solid #F5A524; outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; text-wrap: balance; }

.top, .foot p, .home { max-width: 1080px; margin: 0 auto; }
.top {
  padding: 24px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.top-nav a { display: inline-block; padding: 10px 0; }
.foot { border-top: 2px solid var(--line); margin-top: 24px; }
.foot p { padding: 28px 32px 8px; font-size: 19px; color: var(--muted); }
.foot-nav { max-width: 1080px; margin: 0 auto; padding: 8px 32px 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 19px; }
.foot-nav a { padding: 8px 0; }
/* Hidden by clipping, not by moving it far to one side: far-off things make the page scroll sideways when the language reads right to left. */
.skip { position: absolute; inset-inline-start: 8px; top: 8px; padding: 12px 16px; background: var(--ground); z-index: 20; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; }
h1:focus { outline: none; }
#app:focus { outline: none; }

/* ---- Home ---- */
.home { padding: 40px 32px 48px; display: flex; flex-direction: column; gap: 64px; }
.hero { display: flex; flex-direction: column; gap: 24px; max-width: 820px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.025em; }
.lede { font-size: 22px; color: var(--muted); max-width: 640px; }
.find { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.find label { font-size: 19px; font-weight: 700; }
.section { display: flex; flex-direction: column; gap: 24px; }
.section h2 { font-size: 30px; letter-spacing: -0.015em; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  border: 2px solid var(--line); border-radius: 16px; background: var(--ground);
  color: var(--ink); text-decoration: none;
}
a.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile svg { color: var(--accent); }
.tile-title { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.2; }
.tile-blurb { font-size: 19px; line-height: 1.45; color: var(--muted); }
.tile.soon { background: var(--paper); border-style: dashed; }
.tile.soon svg { color: var(--edge); }
.soon-tag { font-size: 18px; color: var(--muted); }
.groups {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 20px;
  padding: 32px; background: var(--paper); border-radius: 16px;
}
.group { display: flex; flex-direction: column; gap: 6px; }
.group h3 { font-size: 20px; margin-bottom: 4px; }
.group a, .group span { padding: 8px 0; }
.group span { color: var(--muted); }
.none { font-size: 22px; }

/* ---- Tool pages ---- */
.tool { max-width: 760px; margin: 0 auto; padding: 32px 32px 48px; display: flex; flex-direction: column; gap: 32px; }
.tool.wide { max-width: 1080px; }
.head { display: flex; flex-direction: column; gap: 12px; }
.step { font-size: 19px; font-weight: 700; color: var(--muted); }
.head h1 { font-size: clamp(34px, 5.5vw, 52px); line-height: 1.1; letter-spacing: -0.025em; }
.head p.sub { font-size: 22px; color: var(--muted); }
.title-row { display: flex; align-items: center; gap: 16px; }
.title-row svg { flex-shrink: 0; color: var(--good); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px;
  font: inherit; font-size: 20px; font-weight: 700;
  color: var(--accent); background: var(--ground);
  border: 2px solid var(--accent); border-radius: 12px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--paper); }
.btn.primary { min-height: 72px; padding: 0 40px; font-size: 24px; color: #FFFFFF; background: var(--accent); border-radius: 14px; }
.btn.primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn.small { min-height: 48px; padding: 0 16px; font-size: 18px; font-weight: 400; color: var(--ink); border-color: var(--edge); border-radius: 10px; }
.btn.small.danger { color: var(--bad); }
.btn:disabled, .btn[aria-disabled="true"] { color: var(--edge); background: var(--paper); border-color: var(--line); cursor: not-allowed; }
.btn.primary:disabled { color: #FFFFFF; background: var(--edge); border-color: var(--edge); }
.btn.start { align-self: flex-start; }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 56px 32px; border: 3px dashed var(--edge); border-radius: 20px;
  background: var(--paper); text-align: center;
}
.drop.over { border-color: var(--accent); background: #E8EEFD; }
.drop svg { color: var(--muted); }
.drop p { color: var(--muted); }
.promise { display: flex; align-items: flex-start; gap: 14px; }
.promise svg { flex-shrink: 0; margin-top: 2px; color: var(--good); }

.alert { padding: 20px 24px; border: 2px solid var(--bad); border-radius: 14px; background: var(--bad-ground); color: var(--bad); font-weight: 700; }
.hint { color: var(--muted); }

.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.file { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 20px 24px; border: 2px solid var(--line); border-radius: 16px; }
.num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; font-size: 22px; font-weight: 700; background: var(--paper); border-radius: 50%; }
.file-text { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; }
.file-name { font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.file-meta { font-size: 18px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.choices legend { padding: 0; margin-bottom: 14px; font-size: 22px; font-weight: 700; }
.choice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.choice:has(input[type="radio"]:checked) { border-color: var(--accent); background: #F2F6FF; }
.choice input[type="radio"] { width: 28px; height: 28px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.choice-text { flex: 1 1 240px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 19px; font-weight: 700; }
input[type="text"], input[type="number"], input[type="search"] {
  height: 60px; padding: 0 18px; font: inherit; font-size: 21px;
  color: var(--ink); background: var(--ground); border: 2px solid var(--edge); border-radius: 12px;
  width: 100%; max-width: 100%;
}
input.short { width: 130px; }
.find input { height: 64px; }
.edges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
details summary { cursor: pointer; padding: 10px 0; color: var(--accent); text-decoration: underline; }
details[open] summary { margin-bottom: 12px; }

.pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.page { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--ground); }
.page.picked { border-color: var(--accent); background: #F2F6FF; }
.thumb-box { position: relative; aspect-ratio: 1; background: var(--paper); border-radius: 8px; overflow: hidden; }
.thumb-box img { position: absolute; top: 6%; left: 6%; width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 0 1px var(--edge)); transition: transform 0.2s; }
.page-label { font-size: 19px; font-weight: 700; text-align: center; }
.page .btn.small { width: 100%; }
.page .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.page .pair .btn.small { padding: 0 6px; }
.pick { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 6px 10px; font-size: 18px; line-height: 1.2; cursor: pointer; border: 2px solid var(--edge); border-radius: 10px; }
.pick input { width: 24px; height: 24px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }

.preview { overflow: hidden; position: relative; align-self: flex-start; max-width: 260px; border: 2px solid var(--line); background: #FFFFFF; line-height: 0; }
.preview img { width: 100%; }
.preview .keep { position: absolute; border: 3px solid var(--accent); box-shadow: 0 0 0 999px rgba(20, 32, 43, 0.45); }

.result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 20px 24px; background: var(--paper); border-radius: 16px; }
.next { display: flex; flex-direction: column; gap: 6px; padding-top: 24px; border-top: 2px solid var(--line); }
.next h2 { font-family: var(--body); font-size: 22px; margin-bottom: 4px; }
.next a { padding: 8px 0; }

/* ---- Batch 2: forms with a live preview ---- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.pills { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills legend, .label { padding: 0; margin-bottom: 10px; font-size: 19px; font-weight: 700; }
.label { margin-bottom: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px; border: 2px solid var(--edge); border-radius: 12px; cursor: pointer; }
.pill:has(input:checked) { border-color: var(--accent); background: #F2F6FF; font-weight: 700; }
.pill input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.pick.left { justify-content: flex-start; align-self: flex-start; padding: 6px 18px; font-size: 20px; }
.preview.large { max-width: 100%; align-self: stretch; min-height: 120px; background: var(--paper); }
@media (max-width: 860px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .preview.large { max-width: 360px; }
}

/* ---- Batch 3 ---- */
.shot { width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); }
.words { width: 100%; min-height: 240px; padding: 16px; font: inherit; font-size: 18px; line-height: 1.5; color: var(--ink); background: var(--ground); border: 2px solid var(--edge); border-radius: 12px; resize: vertical; }

/* ---- Batch 4 ---- */
.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; padding: 24px; background: var(--paper); border-radius: 16px; }
.details dt { font-weight: 700; }
.details dd { margin: 0; overflow-wrap: anywhere; }

/* ---- Batch 5: the viewer ---- */
.viewer { max-width: 1080px; margin: 0 auto; padding: 8px 32px 48px; display: flex; flex-direction: column; gap: 16px; }
.vtabs { display: flex; flex-wrap: wrap; gap: 10px; }
.vtab { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 4px; border: 2px solid var(--line); border-radius: 12px; max-width: 100%; }
.vtab.on { border-color: var(--accent); background: #F2F6FF; }
.vtab-name { min-height: 48px; padding: 0 12px; font: inherit; font-size: 19px; font-weight: 700; color: var(--ink); background: none; border: 0; cursor: pointer; overflow-wrap: anywhere; text-align: start; }
.vtools, .vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vzoom { min-width: 56px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.vhead { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 12px 0; background: var(--ground); border-bottom: 2px solid var(--line); }
.vtools .btn { flex-shrink: 0; }
.vnav { display: flex; flex-direction: column; gap: 10px; }
.vnav:empty { display: none; }
.vcount { font-size: 19px; font-variant-numeric: tabular-nums; }
.vpage-box { width: 96px !important; height: 48px !important; text-align: center; padding: 0 8px !important; }
.vfind input { flex: 1 1 200px; width: auto; height: 48px; }
.vnote:empty { display: none; }
.vlist { display: flex; gap: 12px; overflow-x: auto; padding: 12px; background: var(--paper); border-radius: 14px; }
.vthumb { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; padding: 8px; font: inherit; font-size: 17px; color: var(--ink); background: var(--ground); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.vthumb:hover { border-color: var(--accent); }
.vthumb-box { display: grid; place-items: center; width: 120px; height: 150px; }
.vthumb-box img { max-width: 120px; max-height: 150px; box-shadow: 0 0 0 1px var(--line); }
.vpages { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 0; background: var(--paper); border-radius: 14px; overflow-x: auto; min-height: 200px; }
.vpage { position: relative; flex-shrink: 0; margin: 0 auto; background: #FFFFFF; box-shadow: 0 1px 4px rgba(20, 32, 43, 0.25); scroll-margin-top: calc(var(--nav, 80px) + 12px); }
.vpage canvas { display: block; width: 100%; height: 100%; }
.vmarks { position: absolute; inset: 0; pointer-events: none; }
.vmark { position: absolute; transform-origin: 0 83.3%; background: rgba(245, 165, 36, 0.4); border-radius: 2px; }
.vmark.now { background: rgba(29, 78, 216, 0.35); outline: 2px solid var(--accent); }
.vlock { display: flex; flex-direction: column; gap: 20px; width: min(100%, 520px); margin: 0 auto; padding: 32px 24px; }
.vlock h2 { font-size: 30px; }
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  #print-area img { display: block; width: 100%; page-break-after: always; break-after: page; }
}

/* ---- Batch 6: writing on pages, signing, filling forms ---- */
.epal { display: flex; flex-direction: column; gap: 10px; }
.erow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn.small.on { color: #FFFFFF; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.btn.save { min-height: 44px; padding: 0 16px; font-size: 18px; color: #FFFFFF; background: var(--accent); margin-inline-start: auto; }
.btn.save:hover { background: var(--accent-dark); }
.btn.save:disabled { color: #FFFFFF; background: var(--edge); border-color: var(--edge); }
.ewords { flex: 1 1 200px; width: auto !important; height: 44px !important; }
.ehint { font-size: 18px; line-height: 1.3; }
.epal .alert { padding: 12px 16px; font-size: 18px; }
.einks { display: flex; gap: 6px; }
.eink { width: 44px; height: 44px; padding: 0; background: var(--ground); border: 2px solid var(--line); border-radius: 50%; cursor: pointer; position: relative; flex-shrink: 0; }
.eink::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink); }
.eink.on { border-color: var(--ink); border-width: 3px; }
.eink.on::before { inset: 6px; }
/* The editor's bar stays on screen, so it is kept as short as it can be. */
.editing .vhead { gap: 8px; padding: 8px 0; }
.editing .vhead .btn.small { min-height: 44px; padding: 0 12px; font-size: 17px; }
.editing .vpage-box { height: 44px !important; width: 80px !important; }
.epal { gap: 8px; }
.esignbox:empty { display: none; }
.estamp { height: 44px; padding: 0 10px; font: inherit; font-size: 17px; color: var(--ink); background: var(--ground); border: 2px solid var(--edge); border-radius: 10px; }
.esign { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--paper); border-radius: 12px; }
.epad { width: min(100%, 480px); height: auto; aspect-ratio: 3; background: #FFFFFF; border: 2px dashed var(--edge); border-radius: 10px; touch-action: none; cursor: crosshair; }
.esig { height: 44px; max-width: 220px; object-fit: contain; background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.elayer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; user-select: none; -webkit-user-select: none; }
.flayer { position: absolute; inset: 0; }
.fbox { position: absolute; margin: 0; padding: 0 4px; font-family: Helvetica, Arial, sans-serif; color: #000000; background: rgba(29, 78, 216, 0.12); border: 1.5px solid var(--accent); border-radius: 2px; height: auto; max-width: none; min-width: 0; box-sizing: border-box; }
input.fbox[type="text"] { height: auto; width: auto; padding: 0 4px; border-radius: 2px; border-width: 1.5px; border-color: var(--accent); background: #E3EAFB; }
textarea.fbox { background: #E3EAFB; }
input.fbox[type="text"]:focus, textarea.fbox:focus { background: #FFFFFF; }
textarea.fbox { resize: none; padding: 2px 4px; }
.fbox:focus { background: #FFFFFF; }
.fbox.f-check, .fbox.f-radio { accent-color: var(--accent); cursor: pointer; }

/* ---- Product pass: how-it-works text, info pages, computer app, sign-up ---- */
.how { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 2px solid var(--line); }
.how h2, .prose h2 { font-family: var(--body); font-size: 24px; }
.how ol { margin: 0; padding-inline-start: 28px; display: flex; flex-direction: column; gap: 8px; }
.qa { display: flex; flex-direction: column; gap: 4px; }
.qa h3 { font-size: 20px; }
.qa p { color: var(--muted); }
.qa.wanted { padding: 14px 16px; border: 2px solid var(--accent); border-radius: 12px; background: #F2F6FF; scroll-margin-top: 24px; }
.prose { display: flex; flex-direction: column; gap: 12px; }
.app-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.signup-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.signup-form label { font-size: 19px; font-weight: 700; }
.signup-form .btn.primary { align-self: flex-start; }
.hp { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; border: 0; padding: 0; }
.thanks { padding: 20px 24px; border: 2px solid var(--good); border-radius: 14px; background: #EDF7F0; color: var(--good); font-weight: 700; }

.table-wrap { overflow-x: auto; }
.numbers { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.numbers th, .numbers td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.numbers th { font-size: 18px; color: var(--muted); }
input[type="password"] { height: 60px; padding: 0 18px; font: inherit; font-size: 21px; color: var(--ink); background: var(--ground); border: 2px solid var(--edge); border-radius: 12px; width: 100%; }

/* ---- Batch 8 ---- */
.file-text input[type="text"] { height: 48px; margin-top: 8px; font-size: 19px; }

/* ---- Batch 7: comparison report ---- */
.report { display: flex; flex-direction: column; gap: 16px; }
.report-sum { font-size: 22px; font-weight: 700; }
.report-key { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.report-page { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--line); }
.report-page h3 { font-size: 22px; }
.report-words { overflow-wrap: anywhere; }
.report ins { background: #D9F2E1; color: #0B5A2A; text-decoration: underline; padding: 0 2px; }
.report del { background: #FDE3DE; color: #8C1D0A; text-decoration: line-through; padding: 0 2px; }

@media (max-width: 520px) {
  body { font-size: 19px; }
  .top { padding: 16px 20px; }
  .home { padding: 24px 20px 40px; gap: 44px; }
  .tool { padding: 20px 20px 40px; gap: 24px; }
  .groups { padding: 24px 20px; }
  .tile { padding: 20px; }
  .drop { padding: 40px 20px; }
  .btn.primary { width: 100%; padding: 0 20px; font-size: 22px; }
  .foot p { padding: 24px 20px 4px; }
  .foot-nav { padding: 4px 20px 32px; }
  .pages { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .details { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 20px; }
  .viewer { padding: 4px 12px 40px; }
  .vtools { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .erow { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .erow > * { flex-shrink: 0; }
  .ewords { flex: 0 0 220px; }
  .btn.save { margin-inline-start: 0; }
  .vhead { padding: 8px 0; }
  .details dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .thumb-box img { transition: none; }
}

/* ---- Languages ---- */
.top-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.lang-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.btn.lang { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: auto; min-height: 76px; padding: 14px 20px; background: var(--ground); color: var(--ink); border: 2px solid var(--edge); text-align: start; }
.btn.lang.chosen { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.lang-name { font-size: 24px; font-weight: 700; line-height: 1.3; }
.lang-english { font-size: 18px; font-weight: 400; color: var(--muted); }
/* Scripts with marks above and below the letters need more room between lines than Latin letters do. */
html:not([lang="en"]) body { line-height: 1.7; }
html:not([lang="en"]) h1, html:not([lang="en"]) h2, html:not([lang="en"]) .tile-title { line-height: 1.4; letter-spacing: 0; }

/* The short "about this tool" section the builder adds under each tool, for people arriving from a search. */
.more { max-width: 760px; margin: 0 auto; padding: 8px 32px 40px; display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 19px; }
.more[hidden] { display: none; }
.more h2 { font-family: var(--body); font-size: 22px; color: var(--ink); margin-top: 12px; }
.more ul { display: flex; flex-direction: column; gap: 6px; padding-inline-start: 22px; }
.more .names { flex-direction: row; flex-wrap: wrap; gap: 6px 22px; padding-inline-start: 0; list-style: none; }
@media (max-width: 640px) { .more { padding: 8px 20px 32px; } }
