/* Governance Check – plain CSS, no build step. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b6470;
  --border: #d5d9de;
  --accent: #2456a6;
  --accent-dark: #1b4282;
  --accent-soft: #e8eef8;
  --focus: #2456a6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-raised: 0 2px 8px rgba(16, 24, 40, 0.08);

  /* Levels: colour is never the only signal (shape and word as well) */
  --green: #1a7f37;
  --green-fill: #2da44e;
  --green-soft: #e6f4ea;
  --amber: #8a5300;
  --amber-fill: #f2b705;
  --amber-soft: #fdf3d8;
  --red: #c62828;
  --red-fill: #d93636;
  --red-soft: #fce8e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

/* Header and footer */

.app-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  margin-bottom: 24px;
}

.app-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.app-header h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.title-link:focus-visible {
  outline-color: #fff;
}

.logo-mark {
  width: 54px;
  height: 18px;
  padding: 6px 8px;
  box-sizing: content-box;
  background: #fff;
  border-radius: 8px;
  flex: none;
}

.shape-green { fill: var(--green-fill); }
.shape-amber { fill: var(--amber-fill); }
.shape-red { fill: var(--red-fill); }

.subtitle {
  margin: 4px 0 0;
  opacity: 0.9;
}

.home-link {
  color: #fff;
}

.home-link:focus-visible {
  outline-color: #fff;
}

.app-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Views fade in briefly; nothing else moves */

.view {
  animation: fade-in 180ms ease-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .view {
    animation: none;
  }
}

/* Panels, buttons, notices */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.panel h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.notice {
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
}

.btn:disabled {
  background: #e3e6ea;
  border-color: #e3e6ea;
  color: #6b737d;
  cursor: not-allowed;
}

.btn-large {
  padding: 12px 28px;
  font-size: 1.1rem;
}

/* Start page */

.hero {
  margin: 8px 0 24px;
}

.hero-title {
  margin: 0;
  max-width: 30em;
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1.3;
}

.entries {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.entry {
  height: 100%;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.entry:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-raised);
}

.entry-own {
  border-style: dashed;
  border-top-style: solid;
  border-top-color: var(--text);
}

.entry-title {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
}

.entry-sub {
  color: var(--muted);
}

.entry-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.entry-arrow {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}

.start-notes {
  color: var(--muted);
  font-size: 0.95rem;
}

.start-notes p {
  margin: 0 0 4px;
}

/* Questions page */

.view-questions {
  max-width: 820px;
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
}

.case-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  line-height: 1.25;
}

.title-panel label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.title-panel input {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

/* Progress bar stays visible while scrolling */

.progress-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  margin: 0 -8px 24px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
}

.progress-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.progress-bar > .btn {
  grid-column: 2;
  grid-row: 1;
}

.segments {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.segment {
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.segment:hover {
  background: var(--accent-soft);
}

.segment-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.segment-index {
  display: none;
}

.segment-pips {
  display: flex;
  gap: 3px;
}

.pip {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #dfe3e8;
}

.pip.is-on {
  background: var(--accent);
}

.segment.is-done {
  color: var(--accent);
}

/* Areas and questions */

.area {
  margin-bottom: 32px;
  scroll-margin-top: 130px;
}

.area-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.area-index {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.area-head h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.area-question {
  margin: 0;
  color: var(--muted);
}

.question {
  margin: 0 0 16px;
  padding: 18px 20px 20px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.question:has(input:checked) {
  border-left-color: var(--accent);
}

.question legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.35;
}

.question legend + * {
  clear: both;
}

.qid {
  flex: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 2px 7px;
  position: relative;
  top: -2px;
}

.help {
  margin: 0 0 12px;
  color: var(--muted);
}

.options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}

.option:hover {
  border-color: var(--accent);
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.option input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 2px solid #8b949e;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.option input:checked {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--accent);
}

.option input:focus-visible {
  outline: none;
}

.option-unknown {
  margin-top: 6px;
  border-style: dashed;
  background: var(--bg);
  color: var(--muted);
  font-style: italic;
}

.option-unknown:has(input:checked) {
  font-style: normal;
  color: var(--text);
}

.form-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

/* Level markers */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.level-icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.icon-green { fill: var(--green-fill); }
.icon-amber { fill: var(--amber-fill); stroke: var(--amber); stroke-width: 1.2; stroke-linejoin: round; }
.icon-red { fill: var(--red-fill); }

.level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.level-green { background: var(--green-soft); color: var(--green); }
.level-amber { background: var(--amber-soft); color: var(--amber); }
.level-red { background: var(--red-soft); color: var(--red); }

/* Result page */

.result-case {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 600;
}

.unknown-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px dashed var(--amber);
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 600;
}

.unknown-warning .level-icon {
  font-size: 1.3rem;
}

.verdict {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid;
  border-left-width: 10px;
  box-shadow: var(--shadow-raised);
}

.verdict h2 {
  margin: 0 0 4px;
  font-size: 2rem;
  line-height: 1.2;
}

.verdict p {
  margin: 0;
  font-size: 1.15rem;
}

.verdict-icon .level-icon {
  font-size: 3.2rem;
  display: block;
}

.verdict-green { background: var(--green-soft); border-color: var(--green); }
.verdict-amber { background: var(--amber-soft); border-color: var(--amber); }
.verdict-red { background: var(--red-soft); border-color: var(--red); }

.verdict-green h2 { color: var(--green); }
.verdict-amber h2 { color: var(--amber); }
.verdict-red h2 { color: var(--red); }

.area-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.area-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 6px solid;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fade-in 220ms ease-out both;
}

.area-card:nth-child(2) { animation-delay: 50ms; }
.area-card:nth-child(3) { animation-delay: 100ms; }
.area-card:nth-child(4) { animation-delay: 150ms; }
.area-card:nth-child(5) { animation-delay: 200ms; }
.area-card:nth-child(6) { animation-delay: 250ms; }

@media (prefers-reduced-motion: reduce) {
  .area-card {
    animation: none;
  }
}

.card-green { border-top-color: var(--green-fill); }
.card-amber { border-top-color: var(--amber-fill); }
.card-red { border-top-color: var(--red-fill); }

.area-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.area-card-head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.area-card .area-question {
  margin: 4px 0 12px;
  font-size: 0.95rem;
}

.findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.finding {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.finding .level-icon {
  margin-top: 0.25em;
}

.finding p {
  margin: 0;
}

.finding-text {
  font-weight: 600;
  line-height: 1.4;
}

.finding-fix {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2px !important;
}

.area-clear {
  margin: 0;
  color: var(--green);
  font-weight: 600;
}

.signoffs h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.signoffs p {
  margin: 0;
}

.count-badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.signoff-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signoff-list li {
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px;
}

a.btn {
  display: inline-block;
  text-decoration: none;
}

/* Briefing (variants) */

.questions-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.view-questions.has-briefing {
  max-width: none;
}

.has-briefing .questions-main {
  max-width: 760px;
}

.briefing {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 18px 20px;
  background: #fffdf5;
  border: 1px solid #e6dcc0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.briefing h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.briefing p {
  margin: 0 0 10px;
}

.briefing p:last-child {
  margin-bottom: 0;
}

.briefing-own {
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
}

.briefing-tag {
  display: block;
  margin-bottom: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Deviations from the reference (variants) */

.deviations summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.deviations summary::marker {
  color: var(--accent);
}

.deviations-none {
  margin: 0;
  color: var(--green);
  font-weight: 600;
}

.deviation-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.deviation-list li {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.deviation-list p {
  margin: 0 0 4px;
}

.deviation-question {
  font-weight: 650;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.deviation-label {
  font-weight: 600;
  color: var(--muted);
}

.deviation-reference {
  color: var(--accent-dark);
}

.deviation-reference .deviation-label {
  color: var(--accent);
}

/* Copy for canvas */

.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  text-decoration: underline;
}

.copy-box {
  margin: 0 0 16px;
}

.copy-status {
  margin: 0 0 6px;
  font-weight: 600;
}

.copy-text {
  width: 100%;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  resize: vertical;
}

/* Comparison view (made for the projector) */

.start-compare {
  margin: -8px 0 20px;
  font-weight: 600;
}

.view-compare {
  max-width: 980px;
  margin: 0 auto;
}

.compare-title {
  margin: 4px 0 20px;
  font-size: 2rem;
  line-height: 1.2;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.compare-col {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-col h3 {
  margin: 0;
  font-size: 1.6rem;
}

.compare-tools {
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.compare-verdict {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid;
  border-left-width: 8px;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.compare-verdict .level-icon {
  font-size: 1.8rem;
}

.compare-verdict.verdict-red { color: var(--red); }
.compare-verdict.verdict-amber { color: var(--amber); }
.compare-verdict.verdict-green { color: var(--green); }

.compare-areas {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--bg);
  font-size: 1.15rem;
}

.compare-row .level {
  font-size: 1rem;
}

.compare-row.is-different {
  background: var(--accent-soft);
  box-shadow: inset 5px 0 0 var(--accent);
  border-radius: 4px;
  font-weight: 700;
}

.compare-signoffs {
  margin: 14px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.compare-sentence {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.35;
}

.compare-closing {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: var(--muted);
}

/* Data errors */

.error-panel {
  border-color: var(--red);
  border-left-width: 6px;
}

.error-panel ul {
  padding-left: 1.2em;
}

.error-panel li {
  margin-bottom: 4px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

/* Self-test */

.selftest-summary {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.selftest-summary.is-pass {
  color: var(--green);
}

.selftest-summary.is-fail {
  color: var(--red);
}

.test {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.test-name {
  margin: 0 0 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-block;
  min-width: 3.2em;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.is-pass {
  background: var(--green-soft);
  color: var(--green);
}

.badge.is-fail {
  background: var(--red-soft);
  color: var(--red);
}

.checks {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
}

.checks th:nth-child(1) {
  width: 32%;
}

.checks th:nth-child(4) {
  width: 4.5em;
}

.checks th,
.checks td {
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid var(--bg);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.checks th {
  color: var(--muted);
  font-weight: 600;
}

.checks tr.is-fail td {
  background: var(--red-soft);
}

/* Narrow screens */

@media (max-width: 1000px) {
  .area-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .area-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .verdict {
    padding: 16px;
    gap: 14px;
  }

  .verdict h2 {
    font-size: 1.5rem;
  }

  .verdict p {
    font-size: 1rem;
  }

  .verdict-icon .level-icon {
    font-size: 2.4rem;
  }
}

@media (max-width: 800px) {
  .questions-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .briefing {
    position: static;
    max-height: none;
  }

  .entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry {
    min-height: 0;
  }

}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .panel {
    padding: 16px 12px;
  }

  .question {
    padding: 14px 12px 16px;
  }

  .option {
    padding: 12px 10px;
  }

  .progress-bar {
    padding: 8px 10px;
  }

  .segment-name {
    font-size: 0;
  }

  .segment-index {
    display: inline;
    font-size: 0.75rem;
  }

  .checks th,
  .checks td {
    padding: 4px;
  }

  .compare-title {
    font-size: 1.4rem;
  }

  .compare-grid {
    gap: 8px;
  }

  .compare-col {
    padding: 12px 8px;
  }

  .compare-col h3 {
    font-size: 1.2rem;
  }

  .compare-tools {
    font-size: 0.85rem;
  }

  .compare-verdict {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px;
    font-size: 0.95rem;
  }

  .compare-verdict .level-icon {
    font-size: 1.3rem;
  }

  .compare-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 6px;
    font-size: 0.95rem;
  }

  .compare-row .level {
    font-size: 0.8rem;
  }

  .compare-sentence {
    font-size: 1.1rem;
  }

  .compare-closing {
    font-size: 1rem;
  }
}

/* Print: the result on one A4 page */

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    animation: none !important;
    box-shadow: none !important;
  }

  body {
    background: #fff;
    font-size: 9.5pt;
    line-height: 1.35;
  }

  .app-header {
    background: none;
    color: var(--text);
    margin: 0 0 6px;
    border-bottom: 1px solid var(--border);
  }

  .app-header-inner {
    padding: 0 0 6px;
  }

  .app-header h1 {
    font-size: 14pt;
  }

  .subtitle {
    font-size: 9pt;
  }

  .logo-mark {
    border: 1px solid var(--border);
  }

  .home-link,
  .app-footer,
  .back-link,
  .result-actions,
  .copy-box,
  .deviations,
  .start-compare {
    display: none !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .result-case {
    margin: 0 0 4px;
  }

  .unknown-warning {
    padding: 4px 8px;
    margin-bottom: 6px;
  }

  .verdict {
    padding: 8px 12px;
    margin-bottom: 8px;
    gap: 12px;
    border-left-width: 6px;
  }

  .verdict h2 {
    font-size: 15pt;
  }

  .verdict p {
    font-size: 10pt;
  }

  .verdict-icon .level-icon {
    font-size: 26pt;
  }

  .area-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }

  .area-card {
    padding: 7px 9px 8px;
    border-top-width: 4px;
    break-inside: avoid;
  }

  .area-card-head h3 {
    font-size: 11pt;
  }

  .level {
    font-size: 8pt;
    padding: 1px 6px;
  }

  .area-card .area-question {
    font-size: 8pt;
    margin: 2px 0 5px;
  }

  .findings {
    gap: 5px;
  }

  .finding {
    gap: 6px;
  }

  .finding-text {
    font-size: 8.5pt;
  }

  .finding-fix {
    font-size: 8pt;
  }

  .signoffs {
    padding: 7px 10px;
    margin-bottom: 6px;
    break-inside: avoid;
  }

  .signoffs h3 {
    font-size: 11pt;
    margin-bottom: 5px;
  }

  .signoff-list li {
    padding: 2px 8px;
    font-size: 9pt;
  }

  .count-badge {
    font-size: 8pt;
    padding: 0 8px;
  }

  .notice {
    font-size: 8pt;
    margin: 4px 0 0;
  }
}
