/* styles.css: tokens, type, layout and every shared component.
   Flow and report stylesheets use these classes and never restyle them.
   Light only, drawn from the look of soda.io. */

:root {
  color-scheme: light;
  --ink: #0f0f0f;
  --body: #636363;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --surface: #f6f7f7;
  --line: #ececec;
  --line-strong: #dcdcdc;
  --grid: #e6e6e6;
  --mint-50: #e9fbf2;
  --mint-100: #dff8ec;
  --mint-500: #12e29d;
  --mint-600: #0fc489;
  --green-700: #0b7a52;
  --green-900: #0f5a46;
  --tile: #10382e;
  --tile-icon: #3ef0b0;
  --deep-1: #0b1f1c;
  --deep-2: #1e5a4c;
  --lav-50: #f6f2ff;
  --lav-200: #e6dcff;
  --lav-600: #7c5cff;
  --find: #b7791f;
  --fix: #0e9f6e;
  --bad-bg: #ffe1e1;
  --bad-ink: #b4232b;
  --warn-bg: #fff0c2;
  --warn-ink: #7a4b00;
  --good-bg: #12e29d;
  --good-ink: #053b29;
  --dot-good: #0e9f6e;
  --dot-warn: #c48600;
  --dot-bad: #e0464e;
  --detect: #c48600;
  --resolve: #0f5a46;
  --r-panel: 24px;
  --r-card: 16px;
  --r-inner: 10px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(16, 24, 20, .04), 0 8px 24px rgba(16, 24, 20, .06);
  --shadow-float: 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-mint: 0 6px 16px rgba(18, 226, 157, .28);
  --dots: radial-gradient(circle, rgba(15, 15, 15, .07) 1px, transparent 1.3px) 0 0 / 16px 16px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --maxw: 1120px;
  --maxw-step: 760px;
  --gutter: 16px;
  --bar-h: 36px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* No blue or grey flash on tap anywhere (the property inherits); a picked answer keeps its mint look. */
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  min-height: 100vh;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

h1, .display {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2, .h2 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h3, .h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
  max-width: 68ch;
}

.small { font-size: 14px; line-height: 1.5; }

.mono, .mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.source-line {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.num, .big-stat, .stat__value, td, .tabular { font-variant-numeric: tabular-nums; }

a {
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
a:hover { color: var(--green-900); }

:focus-visible {
  outline: 2px solid var(--green-900);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; }

::selection { background: var(--mint-100); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 60;
  background: var(--ink);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--r-inner);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { top: calc(var(--bar-h) + 8px); color: #ffffff; outline: 2px solid var(--mint-500); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--step { max-width: calc(var(--maxw-step) + 2 * var(--gutter)); }

#app {
  display: block;
  min-height: 60vh;
  padding-bottom: 64px;
}
#app:focus { outline: none; }

.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }

/* ---------- Concept bar and nav ---------- */

#concept-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  margin: 0;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  padding: 8px var(--gutter);
  max-width: none;
  text-wrap: balance;
}

.site-header {
  padding-inline: var(--gutter);
  position: relative;
  z-index: 40;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 960px;
  height: 56px;
  margin: 12px auto 0;
  padding: 0 10px 0 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-float);
}

.site-nav__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Error line (boot failures) ---------- */

.error-line {
  max-width: calc(var(--maxw-step) + 2 * var(--gutter));
  margin: 24px auto 0;
  padding-inline: var(--gutter);
}
.error-line p {
  background: var(--bad-bg);
  color: var(--bad-ink);
  border-radius: var(--r-inner);
  padding: 12px 16px;
  font-size: 14px;
  max-width: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--green-900); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn .icon { flex: none; }

.btn--sm { min-height: 36px; padding: 0 16px; font-size: 14px; }

.btn--primary {
  background: var(--mint-500);
  color: var(--ink);
  box-shadow: var(--shadow-mint), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--primary:hover { background: var(--mint-600); }

.btn--secondary {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--secondary:hover { border-color: #c4c4c4; background: #fbfbfb; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 12px;
}
.btn--ghost:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn[aria-disabled="true"]:active { transform: none; }

/* Quiet text button (Start over in the question header): small, muted, a 44 px touch target. */
.btn--quiet {
  min-height: 44px;
  padding: 0 6px;
  gap: 6px;
  font-size: 14px;
  color: var(--body);
}
.btn--quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Start over confirm: an in-page step (the host blocks window.confirm). */
.start-over-slot { width: 100%; }
.start-over-confirm {
  display: grid;
  gap: 12px;
  max-width: 560px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.start-over-confirm__text { margin: 0; color: var(--body); font-size: 15px; line-height: 1.5; }
.start-over-confirm__text strong { color: var(--ink); font-weight: 600; }
.start-over-confirm__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* The nav button keeps a 46 px touch target around a 36 px pill. The inset counts from inside
   the 1 px border: 34 + 2 x 6 = 46 px tall, still inside the 56 px nav. */
.site-nav .btn--sm { position: relative; }
.site-nav .btn--sm::after {
  content: '';
  position: absolute;
  inset: -6px -4px;
}

/* ---------- Tag, chip, pills ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mint-100);
  color: var(--green-700);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 4px 10px 4px 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
}
.chip--find .icon { color: var(--find); }
.chip--understand .icon { color: var(--lav-600); }
.chip--fix .icon { color: var(--fix); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 8px;
  padding: 4px 10px;
  max-width: 100%;
}
.pill .icon { flex: none; }
.pill--bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill--warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill--good { background: var(--good-bg); color: var(--good-ink); }

/* ---------- Icon tile ---------- */

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-inner);
  background: var(--tile);
  color: var(--tile-icon);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.icon-tile .icon { width: 20px; height: 20px; stroke: var(--tile-icon); }

/* ---------- Panels and cards ---------- */

.panel {
  position: relative;
  border-radius: var(--r-panel);
  padding: clamp(24px, 4vw, 56px);
  isolation: isolate;
}
.panel--mint { background: linear-gradient(180deg, var(--mint-50), #ffffff); }
.panel--mint::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--dots);
  opacity: .6;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .3) 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .3) 70%, transparent 100%);
}
.panel--lavender { background: linear-gradient(180deg, var(--lav-50), var(--lav-200)); }
.panel--deep {
  background: radial-gradient(120% 80% at 50% 0%, var(--deep-2), var(--deep-1));
  color: rgba(255, 255, 255, .78);
}
.panel--deep h1, .panel--deep h2, .panel--deep h3 { color: #ffffff; }
.panel--deep a:not(.btn) { color: var(--tile-icon); }
.panel--deep .cite { color: var(--tile-icon); }
.panel--deep .mono, .panel--deep .mono-label { color: rgba(255, 255, 255, .72); }
.panel--grey { background: var(--surface); }

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  min-width: 0;
}

/* ---------- Quotes ---------- */

.quote-wrap { display: inline; }
.q::before { content: "\201C"; }
.q::after { content: "\201D"; }
.q--plain { font-style: normal; }

.cite {
  display: inline;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--green-700);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: baseline;
}
.cite:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--green-900); }
.cite .icon { display: inline-block; vertical-align: -1px; margin-left: 4px; }

.quote-block {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-left: 3px solid var(--mint-500);
  padding-left: 16px;
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}
.quote-block .quote-wrap { display: block; }
.quote-block .cite { display: block; width: fit-content; max-width: 100%; margin: 8px 0 0; }
.panel--deep .quote-block { color: #ffffff; }

/* ---------- Stat tile ---------- */

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  min-width: 0;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: none;
}
.stat__value, .big-stat {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat__unit { font-size: 14px; line-height: 1.5; color: var(--body); }

/* ---------- Progress ---------- */

.progress { display: grid; gap: 8px; }
.progress__text { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.progress__bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.progress__seg { height: 4px; border-radius: 2px; background: var(--grid); }
.progress__seg.is-done { background: var(--green-900); }
.progress__seg.is-current { background: var(--mint-500); }

/* ---------- Option cards ---------- */

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: #c4c4c4; }
.option input[type="radio"], .option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1.5px solid #a8a8a8;
  background: #ffffff;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.option input[type="radio"] { border-radius: 50%; }
.option input[type="checkbox"] { border-radius: 5px; }
.option input[type="radio"]::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-900);
  transform: scale(0);
  transition: transform .12s ease;
}
.option input[type="checkbox"]::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform .12s ease;
}
.option input:checked { border-color: var(--green-900); }
.option input[type="checkbox"]:checked { background: var(--green-900); }
.option input[type="radio"]:checked::before { transform: scale(1); }
.option input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
.option:has(input:checked) {
  border: 1.5px solid var(--green-900);
  background: var(--mint-50);
  padding: 13.5px 15.5px;
}
.option input:focus-visible { outline: 2px solid var(--green-900); outline-offset: 2px; }
@supports selector(:has(*)) {
  .option:has(input:focus-visible) { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--green-900); }
  .option input:focus-visible { outline: none; }
}
.option__body { display: grid; gap: 4px; min-width: 0; }
.option__sub { font-size: 13px; color: var(--body); line-height: 1.45; }

/* ---------- Switch ---------- */

.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  margin: 0;
  border-radius: var(--r-pill);
  background: #d4d4d4;
  border: 0;
  cursor: pointer;
  transition: background-color .15s ease;
}
.switch::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .15s ease;
}
.switch:checked { background: var(--mint-500); }
.switch:checked::before { transform: translateX(16px); }
.switch:focus-visible { outline: 2px solid var(--green-900); outline-offset: 2px; }

/* ---------- Fields ---------- */

.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.field__control { position: relative; display: flex; align-items: center; }
.field input[type="text"], .field input:not([type]), .field__input {
  width: 100%;
  height: 48px;
  padding: 0 64px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover { border-color: #c4c4c4; }
.field input:focus-visible {
  outline: none;
  border-color: var(--green-900);
  box-shadow: 0 0 0 3px rgba(15, 90, 70, .18);
}
.field input[aria-invalid="true"] { border-color: var(--bad-ink); }
.field__unit {
  position: absolute;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}
.field__help { font-size: 13px; line-height: 1.5; color: var(--body); }
.field__error { font-size: 13px; line-height: 1.5; color: var(--bad-ink); }

.error-text, .step-error { color: var(--bad-ink); font-size: 14px; line-height: 1.5; }

/* ---------- Stepper ---------- */

.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper__btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.stepper__btn:hover { border-color: #c4c4c4; background: #fbfbfb; }
.stepper__btn:disabled, .stepper__btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.stepper__btn:focus-visible { outline: 2px solid var(--green-900); outline-offset: 2px; }
.stepper__count {
  min-width: 28px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Exhibit frame ---------- */

.exhibit {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: clamp(20px, 3.5vw, 40px);
  margin-block: 32px;
  min-width: 0;
}
.exhibit__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 12px;
}
.exhibit__label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}
.exhibit__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 40ch;
}
.exhibit__subtitle { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--body); }
.exhibit__chart { margin-block: 24px; min-width: 0; }
.exhibit__chart svg:not(.icon) { display: block; width: 100%; height: auto; overflow: visible; }
svg.icon { display: inline-block; flex: none; vertical-align: middle; overflow: visible; }
.exhibit__notes {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}
.exhibit__notes li { display: flex; gap: 10px; align-items: baseline; }
.note-marker {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--ink);
}
.exhibit__source {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: none;
}
.exhibit__source a { color: var(--green-700); }

/* ---------- Decorative motif ---------- */

.motif {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  width: 100%;
  max-width: 560px;
  min-height: 168px;
  margin-inline: auto;
}
.motif__col { display: grid; gap: 28px; position: relative; z-index: 1; }
.motif__col--left { justify-items: end; }
.motif__col--right { justify-items: start; }
.motif__lines { grid-column: 2 / 5; grid-row: 1; width: 100%; height: 168px; }
.motif__lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.motif__node {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--green-900);
  box-shadow: var(--shadow-float);
}
.motif .motif__col--left { grid-column: 1; grid-row: 1; }
.motif .motif__col--right { grid-column: 5; grid-row: 1; }

@media (max-width: 559.98px) {
  .motif { display: none !important; }
}

/* ---------- Details, lists, footer ---------- */

details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  color: var(--ink);
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  margin-right: 4px;
}
details[open] > summary::before { transform: rotate(45deg); }
details > summary:focus-visible { outline: 2px solid var(--green-900); outline-offset: 2px; border-radius: 6px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter) 40px;
  text-align: center;
}
.site-footer p { margin-inline: auto; }

/* ---------- Narrow screens ---------- */

@media (max-width: 420px) {
  .site-nav { padding-left: 16px; padding-right: 6px; gap: 8px; }
  .site-nav__name { font-size: 14px; }
  .site-nav .btn--sm { padding: 0 14px; }
  .card { padding: 20px; }
}

/* Phones and short landscape screens: the sticky concept bar stays, same text, less height. */
@media (max-width: 767.98px), (max-height: 500px) {
  #concept-bar { padding: 4px var(--gutter); line-height: 1.35; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .site-nav { height: 44px; margin-top: 6px; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
