/* Printable one-page cheat sheet (countries/<cc>/cheatsheet/<lang>.json). The same markup is the on-page preview, the
   browser print layout and the source of the PDF/PNG made by tools/cheatsheet-pdf.js. The sheet is paper: it stays
   light in dark mode. On screen it is one A4 page (794 x 1123 px = 210 x 297 mm at 96 dpi); below 860px it reflows. */
.cs-paper {
  --ink: #18213d; --soft: #4a5472; --rule: #dfe3ee; --tint: #f1f4fb;
  width: 794px; height: 1123px; margin: 0 auto; box-sizing: border-box; position: relative; overflow: hidden;
  background: #fff; color: var(--ink); font: 400 11.7px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 30px 34px 22px 44px; display: flex; flex-direction: column; gap: 11px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(20,30,70,.14); border-radius: 4px; color-scheme: light;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.cs-paper * { box-sizing: border-box; }
.cs-paper p, .cs-paper ul, .cs-paper ol, .cs-paper h2, .cs-paper h3 { margin: 0; }
.cs-paper b { font-weight: 700; color: var(--ink); }
.cs-stripe { position: absolute; inset: 0 auto 0 0; width: 12px; display: flex; flex-direction: column; }
.cs-stripe i { flex: 1; } .cs-stripe i:nth-child(1) { background: var(--c1); } .cs-stripe i:nth-child(2) { background: #fff; box-shadow: inset -1px 0 0 var(--rule); } .cs-stripe i:nth-child(3) { background: var(--c3); }
.cs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cs-logo { display: inline-flex; align-items: center; gap: 7px; font: 800 17px/1 "Bricolage Grotesque", "Inter", sans-serif; color: var(--ink); text-decoration: none; }
.cs-logo .cs-mark { display: inline-flex; width: 18px; height: 18px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.cs-logo .cs-mark i { flex: 1; } .cs-logo .cs-mark i:nth-child(1) { background: var(--c1); } .cs-logo .cs-mark i:nth-child(2) { background: #fff; } .cs-logo .cs-mark i:nth-child(3) { background: var(--c3); }
.cs-logo em { font-style: normal; color: var(--c3); }
.cs-kicker { font-weight: 700; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c3); margin-top: 10px; }
.cs-title { font: 800 27px/1.05 "Bricolage Grotesque", "Inter", sans-serif; letter-spacing: -.015em; color: var(--ink); margin-top: 3px; }
.cs-site { text-align: right; font-size: 9.5px; color: var(--soft); white-space: nowrap; }
.cs-site strong { display: block; font-size: 12px; color: var(--c1); }
.cs-motto { display: grid; grid-template-columns: 1fr 1fr 1fr; border-radius: 8px; overflow: hidden; text-align: center; font: 800 21px/1 "Bricolage Grotesque", "Inter", sans-serif; letter-spacing: .01em; }
.cs-motto span { padding: 10px 4px; }
.cs-motto span:nth-child(1) { background: var(--c1); color: #fff; } .cs-motto span:nth-child(2) { background: var(--tint); color: var(--ink); } .cs-motto span:nth-child(3) { background: var(--c3); color: #fff; }
.cs-motto-note { font-size: 9.4px; color: var(--soft); text-align: center; margin-top: -5px; }
.cs-art1 { border-left: 4px solid var(--c1); background: var(--tint); border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 12px; }
.cs-art1 small { display: block; font-size: 8.6px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c1); margin-bottom: 2px; }
.cs-cols { columns: 3; column-gap: 16px; flex: 1 1 auto; min-height: 0; }
.cs-block { break-inside: avoid; margin-bottom: 12px; }
.cs-block h2 { font: 800 14.5px/1.1 "Bricolage Grotesque", "Inter", sans-serif; color: var(--c1); padding-bottom: 3px; margin-bottom: 4px; border-bottom: 2px solid var(--c1); }
.cs-block[data-id="equality"] h2, .cs-block[data-id="laicite"] h2 { color: var(--c3); border-color: var(--c3); }
.cs-block q, .cs-quote { display: block; font-style: italic; color: var(--soft); font-size: 10.8px; margin-bottom: 3px; quotes: none; }
.cs-block ul { list-style: none; padding: 0; }
.cs-block li { position: relative; padding-left: 10px; margin-top: 2.5px; }
.cs-block li::before { content: ""; position: absolute; left: 1px; top: .56em; width: 4px; height: 4px; border-radius: 50%; background: var(--c3); }
.cs-bottom { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.cs-dates h2, .cs-traps h2 { font: 800 13px/1.1 "Bricolage Grotesque", "Inter", sans-serif; color: var(--c1); margin-bottom: 5px; }
.cs-dates ol { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; }
.cs-dates li { display: grid; grid-template-columns: 52px 1fr; gap: 6px; font-size: 10.4px; line-height: 1.3; }
.cs-dates li b { color: var(--c1); font-variant-numeric: tabular-nums; font-size: 10.4px; }
.cs-traps { background: #fff4f4; border: 1px solid #f3c9cc; border-radius: 8px; padding: 8px 10px; }
.cs-traps h2 { color: var(--c3); }
.cs-traps ul { padding-left: 0; list-style: none; }
.cs-traps li { padding-left: 13px; position: relative; margin-top: 2.5px; font-size: 10.6px; }
.cs-traps li::before { content: "!"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--c3); }
.cs-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--rule); padding-top: 9px; }
.cs-qr { width: 62px; height: 62px; flex: none; }
.cs-qr svg { width: 100%; height: 100%; display: block; }
.cs-cta { flex: 1; font-size: 11px; }
.cs-cta strong { display: block; font-size: 13px; color: var(--c1); }
.cs-legal { font-size: 8.4px; color: var(--soft); margin-top: 2px; }

/* Landing page around the sheet. */
.cs-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 6px; }
.cs-preview { width: 834px; margin: 28px 0 8px calc(50% - 417px); padding: 24px 20px; }
.cs-preview > h2 { margin: 0 0 14px; font-size: 1.1rem; color: var(--muted); font-family: var(--font); font-weight: 600; }


@media screen and (max-width: 860px) {
  .cs-preview { width: auto; margin-inline: 0; padding-inline: 0; }
  .cs-paper { width: auto; height: auto; padding: 22px 16px 18px 26px; font-size: 13px; }
  .cs-head { flex-direction: column; } .cs-site { text-align: left; }
  .cs-title { font-size: 24px; } .cs-motto { font-size: 17px; }
  .cs-cols { columns: 1; } .cs-bottom, .cs-dates ol { grid-template-columns: 1fr; }
  .cs-dates li, .cs-traps li, .cs-block q, .cs-legal { font-size: 12px; }
  }

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; margin: 0; }
  body > header, body > footer, .cs-page > :not(.cs-preview), .cs-preview > h2 { display: none !important; }
  main.wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .cs-preview { width: auto; margin: 0; padding: 0; overflow: visible; }
  .cs-paper { width: 210mm; height: 297mm; box-shadow: none; border-radius: 0; }
}
