/* docs/design-system.md: black on paper white, square corners, red for
   focus and refusals, one column of 480 px. The top bar's square is black. */
:root {
  --bg: #FAFAF8; --fg: #111111; --muted: #4A4A4A; --dim: #6F6F6A; --rule: #D0D0CC; --red: #C8102E;
  --font: 'Schibsted Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); }
body { -webkit-text-size-adjust: 100%; }
a { color: var(--fg); }
a:hover, button.link:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 4px solid var(--fg); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800;
  letter-spacing: -0.03em; text-decoration: none; }
.brand::before { content: ''; width: 26px; height: 26px; background: var(--fg); }
.langs { display: flex; gap: 10px; }
.langs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 4px 0;
  min-height: 32px; font: 700 13px var(--font); color: var(--dim); cursor: pointer; text-transform: uppercase; }
.langs button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--red); }

main { max-width: 480px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 24px;
  min-height: calc(100vh - 66px); }
h1 { margin: 0; font-size: 44px; line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.kicker { font-size: 13px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }
.lead { margin: 0; font-size: 17px; line-height: 1.45; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.steps li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: 17px; font-weight: 700; }
.steps li span { font-size: 32px; font-weight: 800; width: 28px; font-variant-numeric: tabular-nums; }

.bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.btn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 64px; padding: 0 20px;
  border: 0; border-radius: 0; background: var(--fg); color: var(--bg); font: 700 17px var(--font);
  text-align: left; text-decoration: none; cursor: pointer; }
.btn::after { content: '→'; }
.btn:hover { background: var(--red); }
.btn:disabled { opacity: .55; cursor: default; }
.btn2 { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 8px 12px;
  border: 2px solid var(--fg); border-radius: 0; background: var(--bg); color: var(--fg); font: 700 17px var(--font);
  text-align: center; text-decoration: none; cursor: pointer; }
.btn2:hover { color: var(--red); border-color: var(--red); }
.link { background: none; border: 0; padding: 0; min-height: 32px; font: 400 13px var(--font); color: var(--dim);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.link.strong { font-size: 15px; font-weight: 700; color: var(--fg); }

form { display: flex; flex-direction: column; gap: 28px; }
fieldset { margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--fg); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
legend { padding: 0; float: left; width: 100%; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
legend + * { clear: both; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f label, .lbl { font-size: 13px; font-weight: 700; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rowcp { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.rownir { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 12px; }
input, select, textarea { width: 100%; height: 48px; border: 2px solid var(--fg); border-radius: 0; background: var(--bg);
  color: var(--fg); font: 400 17px var(--font); padding: 0 12px; appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input.bad, select.bad { border-color: var(--red); }
.refusal { margin: 0; font-size: 13px; font-weight: 700; color: var(--red); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--fg); margin: 0; appearance: auto; -webkit-appearance: checkbox; }
.yn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yn button { height: 48px; border: 2px solid var(--fg); background: var(--bg); color: var(--fg); font: 700 17px var(--font); cursor: pointer; border-radius: 0; }
.yn button + button { border-left: 0; }
.yn button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.yn.bad button { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; border: 2px solid var(--fg); background: var(--bg); color: var(--fg);
  font: 700 15px var(--font); cursor: pointer; border-radius: 0; text-align: left; }
.chip:hover { color: var(--red); border-color: var(--red); }
.answered { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.answered .q { font-size: 13px; color: var(--dim); }
.answered .a { font-size: 17px; font-weight: 700; }
.answered > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.codeline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 700; }
.codebox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.codebox input { text-transform: uppercase; letter-spacing: .04em; }
.note { border: 2px solid var(--fg); padding: 12px 14px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.note.alert { border-color: var(--red); color: var(--red); }

.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.docs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.docs .name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.docs .name b { font-size: 17px; }
.docs .name span { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.docs .name span.ok::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--fg); margin-right: 6px; }
.small { min-height: 40px; padding: 0 14px; border: 2px solid var(--fg); background: var(--bg); color: var(--fg);
  font: 700 15px var(--font); cursor: pointer; border-radius: 0; white-space: nowrap; }
.small:hover { color: var(--red); border-color: var(--red); }
.small:disabled { opacity: .55; cursor: default; }
.drop { border: 2px dashed var(--fg); padding: 20px 16px; text-align: center; font-size: 15px; font-weight: 700; cursor: pointer; }
.drop.over { border-color: var(--red); color: var(--red); }
.linkbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.linkbox input { font-size: 13px; height: 40px; }
.reqs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.reqs li a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.reqs b { font-size: 17px; }
.reqs span { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
