/* Direction B, "Dictionnaire": each card is set like a dictionary entry. */
:root {
  --bg: #fbfbf9;
  --surface: #fbfbf9;
  --ink: #1b1b1b;
  --muted: #5f5f5a;
  --line: #deddd6;
  --red: #b01e2d;
  --miss: #b01e2d;
  --chart: #1b1b1b;
  --focus: #b01e2d;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
}

.top { border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.brand { font-weight: 700; font-size: 1.35rem; color: var(--red); }
.tabs button[aria-current="page"] { font-weight: 700; }

.card {
  padding: 8px 0 0 16px;
  border-left: 3px solid var(--red);
  min-height: 260px;
}
.front {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.card[data-cat="quote"] .front { font-weight: 400; font-style: italic; font-size: 1.55rem; line-height: 1.3; }
.kind { order: 2; margin-top: 6px; font-family: var(--font-display); font-style: italic; font-size: 1rem; }
.card { display: flex; flex-direction: column; }
.card .front { order: 1; }
.back-wrap { order: 3; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.back { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; }
.example { font-family: var(--font-display); }
.flag { order: 4; color: var(--red); }

.reveal, form button[type="submit"], .done button {
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}
.rate { gap: 0; border: 1.5px solid var(--ink); border-radius: 2px; }
.rate button { border: 0; border-left: 1px solid var(--line); background: none; font-weight: 500; }
.rate button:first-child { border-left: 0; color: var(--red); }

.done h1, #add h1, #progress h1, #progress h2 { font-family: var(--font-display); }
.done h1 { font-size: 1.9rem; line-height: 1.15; }

.seg { border-bottom: 1px solid var(--line) !important; padding-bottom: 12px !important; }
.seg span { border-radius: 2px; }
.seg input:checked + span { font-weight: 700; color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); }
.field input, .field textarea, .field select { border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent; padding-left: 0; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--red); }

.example-note { border: 1px solid var(--red); color: var(--red); }
