/* Situation pages. Colours come only from the Krok --k-* tokens in
   design-tokens.css; the dark values are appended below at build time. The
   exercise, feedback and note rules follow the course (public/styles.css and
   public/workbook.css): square or --k-radius corners, the same verdict
   colours, 44 px touch targets. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; background: var(--k-paper); color: var(--k-ink);
  font-family: var(--k-font-sans); font-size: 1.0625rem; line-height: 1.6;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--k-action); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, summary:focus-visible, textarea:focus-visible, input:focus-visible,
.communication-checks label:focus-within {
  outline: 3px solid var(--k-action); outline-offset: 2px;
}
.communication-checks input:focus-visible { outline: 0; }
[tabindex="-1"]:focus { outline: 0; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--k-action); outline-offset: 4px; }
/* German text hyphenates at line ends instead of breaking mid-word. */
:lang(de) { hyphens: auto; -webkit-hyphens: auto; }
::placeholder { color: var(--k-muted); opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -3rem; padding: 0.5rem 0.9rem; background: var(--k-action); color: var(--k-on-action); border-radius: var(--k-radius); z-index: 2; }
.skip:focus { top: 0.75rem; }

.site-head { border-bottom: 1px solid var(--k-rule); background: var(--k-sheet); }
.site-head__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; max-width: 48rem; margin: 0 auto; padding: 0.2rem 16px; }
.brand, .site-head__link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand { color: var(--k-ink); font-weight: 700; letter-spacing: 0.01em; text-decoration: none; }
.brand:hover { color: var(--k-action); }
.site-head__link { font-size: 0.95rem; font-weight: 600; }

.page { max-width: 48rem; margin: 0 auto; padding: 0 16px 2rem; }
.hero { padding: 2rem 0 1.25rem; }
.kicker { margin: 0 0 0.35rem; color: var(--k-muted); font-size: 0.95rem; font-weight: 600; }
.kicker::before { content: ""; display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.5rem; border-radius: 2px; background: var(--k-tab); vertical-align: -0.05em; }
h1 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); line-height: 1.2; }
h2 { margin: 0 0 0.6rem; font-size: 1.3rem; line-height: 1.3; }
h3 { margin: 1.1rem 0 0.4rem; font-size: 1rem; color: var(--k-muted); }
.lead { margin: 0.75rem 0 0; font-size: 1.125rem; color: var(--k-ink); }
p { margin: 0 0 0.75rem; }

.block { margin: 0 0 1.25rem; padding: 1.1rem; background: var(--k-sheet); border: 1px solid var(--k-rule); border-radius: var(--k-radius); min-width: 0; }
.block > :last-child { margin-bottom: 0; }
.label { color: var(--k-muted); font-size: 0.95rem; }

/* The practical outcome under the title and a scenario's objective. */
.lesson-outcome { max-width: 42.5rem; margin: 1.2rem 0 0.25rem; padding: 0 0 0 14px; border-left: 3px solid var(--k-tab); }
.lesson-outcome span, .lesson-outcome strong { display: block; }
.lesson-outcome span { margin-bottom: 4px; color: var(--k-muted); font-size: var(--k-text-xs); }
.lesson-outcome strong { font-size: var(--k-text-body); font-weight: 600; line-height: 1.5; }
.quiz .lesson-outcome { margin: 0.5rem 0 1rem; }

.letter { padding: 1rem 1.1rem; background: var(--k-note); border-left: 4px solid var(--k-tab); border-radius: var(--k-radius); overflow-wrap: anywhere; }
.letter p { margin: 0; }
.letter--translation { background: var(--k-rail); border-left-color: var(--k-rule); }
.letter-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.6rem 0 0.25rem; }

.phrases, .dialogue, .contrasts, .quiz-wrong { list-style: none; margin: 0; padding: 0; }
.phrase, .turn { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--k-rule); }
.phrase:first-child, .turn:first-child { border-top: 0; }
.phrase__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.phrase__de { font-weight: 600; overflow-wrap: anywhere; }
.phrase__uk { color: var(--k-muted); font-size: 0.95rem; }
.native-player { display: block; width: 100%; max-width: 18rem; height: 2.5rem; margin-top: 0.4rem; }
.turn { align-items: flex-start; }
.turn__speaker { flex: 0 0 5.5rem; padding-top: 0.1rem; color: var(--k-muted); font-size: 0.9rem; }
.turn .play { margin-top: -0.2rem; }

/* German text with its play control beside it (views.js spokenGerman). */
.spoken { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.spoken > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* The pronunciation control: the course's audio button with a visible label. */
.play {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.8rem;
  background: var(--k-paper); color: var(--k-action); border: 1px solid var(--k-control); border-radius: var(--k-radius);
  font-size: 0.9rem; font-weight: 600; line-height: 1.2;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.play:hover { border-color: var(--k-action); background: var(--k-tint); }
.play.is-playing { background: var(--k-action); color: var(--k-on-action); border-color: var(--k-action); }
.play.is-failed { background: var(--k-bad-bg); color: var(--k-bad); border-color: var(--k-bad); cursor: not-allowed; }
.play.is-failed .play__icon { opacity: 0.45; }

/* Build the conversation: numbered steps, German example, why it works. */
.communication-model { margin: 0; padding-left: 1.5rem; }
.communication-model li { padding-left: 0.4rem; margin: 0 0 1.1rem; line-height: 1.6; }
.communication-model li:last-child { margin-bottom: 0; }
.communication-model li::marker { color: var(--k-action); font-weight: 700; }
.communication-model li > strong { display: block; }
.communication-model .spoken { margin: 0.35rem 0; }
.communication-model [lang="de"]:not([data-inline]) { color: var(--k-action); font-weight: 650; }
.communication-model p { margin: 0; font-size: 0.95rem; }

/* Notes (views.js lessonView insight-grid). */
.insight-grid { display: grid; gap: 13px; margin: 0 0 1.25rem; }
.language-note, .culture-note { min-width: 0; padding: 1.1rem 1.25rem; border-radius: var(--k-radius); }
.language-note { background: var(--k-hint-bg); border: 1px solid var(--k-hint-bg); }
.culture-note { background: var(--k-sheet); border: 1px solid var(--k-rule); }
.language-note h2, .culture-note h2 { margin-bottom: 8px; font-size: 1.15rem; }
.language-note p:last-child, .culture-note p:last-child { margin: 0; color: var(--k-ink); }
.language-note .kicker, .culture-note .kicker { margin-bottom: 8px; font-size: var(--k-text-xs); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.language-note .kicker { color: var(--k-hint); }
.culture-note .kicker { color: var(--k-action); }
.language-note .kicker::before, .culture-note .kicker::before { display: none; }

.contrast { display: grid; gap: 0.1rem; padding: 0.7rem 0 0.7rem 0.9rem; border-left: 3px solid var(--k-tab); margin-top: 0.6rem; }
.contrast__de { font-weight: 600; }
.contrast__uk { color: var(--k-muted); font-size: 0.95rem; }
.contrast__note { font-size: 0.9rem; color: var(--k-hint); }

/* ---- Exercises (views.js exerciseView) ---- */
.quiz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin: 0 0 0.6rem; }
.quiz-head h2 { margin: 0; }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--k-control); border-radius: var(--k-radius); background: transparent;
  color: var(--k-action); font-size: 0.9rem; font-weight: 600; text-align: left;
}
.sound-toggle i { font-style: normal; font-size: var(--k-text-sm); color: var(--k-muted); }
.sound-toggle[aria-pressed="true"] { border-color: var(--k-action); background: var(--k-tint); }
.quiz--scenario { border-top: 4px solid var(--k-tab); }

.exercise-card { margin: 1rem 0 0; padding: 1rem; border: 1px solid var(--k-rule); border-radius: 0; background: var(--k-paper); min-width: 0; }
.exercise-card__head { display: flex; align-items: center; gap: 9px; }
.exercise-card__number { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--k-action); background: var(--k-tint); font-size: var(--k-text-sm); font-weight: 650; font-variant-numeric: tabular-nums; }
.exercise-card__type { margin: 0; color: var(--k-muted); font-size: var(--k-text-sm); font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.3; }
.exercise-card__prompt { margin: 0.9rem 0 1rem; color: var(--k-ink); font-size: 1.125rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
/* A fill-in gap is drawn as a gap and read by its aria-label. */
.blank-gap { display: inline-block; width: 4.5em; height: 1em; margin: 0 0.15em; vertical-align: -0.15em; border-bottom: 2px solid var(--k-ink); }

/* Hints: the no-script list, then the course's ladder built by the script. */
.hint-ladder { margin: 0 0 1rem; font-size: 0.95rem; }
.hint-ladder summary { display: flex; align-items: center; width: fit-content; min-height: 44px; color: var(--k-hint); font-weight: 650; cursor: pointer; }
.hint-ladder ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hint-ladder li, .exercise-hint-ladder li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px; background: var(--k-hint-bg); color: var(--k-ink); font-size: 0.95rem; line-height: 1.5; }
.hint-ladder li strong, .exercise-hint-ladder li strong { color: var(--k-hint); }
.exercise-hint-ladder { margin: 0 0 1rem; }
.exercise-hint-ladder ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.exercise-hint-ladder ol:empty { display: none; }
.exercise-hint-ladder .text-button { color: var(--k-hint); text-decoration: underline; text-underline-offset: 4px; }
.exercise-hint-ladder .text-button:disabled { text-decoration: none; opacity: 0.75; }

/* Choice options: static list items without scripting, full-width buttons with it. */
.answer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.answer-list > li { min-width: 0; }
.answer-option {
  width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 15px;
  padding: 12px 15px; border: 1px solid var(--k-control); border-radius: var(--k-radius);
  color: var(--k-ink); background: var(--k-sheet); font-size: 1.0625rem; line-height: 1.5; text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.answer-option > span { min-width: 0; overflow-wrap: anywhere; }
button.answer-option:hover:not(:disabled) { border-color: var(--k-action); background: var(--k-tint); }
.answer-option i { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--k-control); border-radius: 50%; color: transparent; font-size: 14px; font-style: normal; font-weight: 700; line-height: 1; }
.answer-option.is-correct { color: var(--k-good); border-color: var(--k-good); background: var(--k-good-bg); }
.answer-option.is-wrong { color: var(--k-bad); border-color: var(--k-bad); background: var(--k-bad-bg); }
.answer-option.is-correct i { border-color: var(--k-good); color: var(--k-on-good); background: var(--k-good); }
.answer-option.is-wrong i { border-color: var(--k-bad); color: var(--k-on-bad); background: var(--k-bad); }

/* Word order (views.js orderAnswerMarkup). */
.order-answer { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 10px; border: 1px dashed var(--k-control); border-radius: var(--k-radius); background: var(--k-sheet); }
.order-answer__empty { color: var(--k-muted); font-size: var(--k-text-body); }
.word-bank { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.word-bank .chunk, .order-answer button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--k-control); border-radius: var(--k-radius);
  color: var(--k-ink); background: var(--k-sheet); font-size: 1.0625rem; line-height: 1.3;
}
.word-bank button:hover:not(:disabled), .order-answer button:hover { border-color: var(--k-action); }
.word-bank button:disabled { opacity: 0.3; }
.exercise-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.locked-answer { padding: 13px 15px; display: grid; gap: 4px; border: 1px solid var(--k-rule); border-radius: var(--k-radius); background: var(--k-sheet); }
.locked-answer span { color: var(--k-muted); font-size: 12px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; }
.locked-answer strong { font-size: 1.125rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }

/* Buttons (styles.css .button, .text-button). */
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 17px; border: 0; border-radius: var(--k-radius); font-weight: 650; line-height: 1.3; }
.button--primary { color: var(--k-on-action); background: var(--k-action); }
.button--primary:not(:disabled):hover { text-decoration: underline; text-underline-offset: 3px; }
.button--quiet { color: var(--k-action); background: transparent; border: 1px solid var(--k-control); }
.button--quiet:not(:disabled):hover { background: var(--k-tint); }
.button:disabled { opacity: 0.5; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--k-action); font-size: 0.95rem; font-weight: 650; text-align: left; }

/* Typed answer (views.js typed_production and umlautRow). */
.typed-answer { display: grid; gap: 6px; font-size: var(--k-text-body); font-weight: 650; }
.typed-answer textarea {
  display: block; width: 100%; min-height: 56px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--k-control); border-radius: var(--k-radius);
  color: var(--k-ink); background: var(--k-sheet); font: 400 1.125rem/1.6 var(--k-font-sans);
}
.typed-form { display: grid; gap: 12px; }
.typed-form > .button { justify-self: start; }
.typed-form small { color: var(--k-muted); font-size: var(--k-text-sm); line-height: 1.45; }
.umlaut-row { display: flex; flex-wrap: wrap; gap: 6px; }
.umlaut-row button { min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--k-control); border-radius: var(--k-radius); color: var(--k-ink); background: var(--k-sheet); font: 600 18px/1 var(--k-font-sans); }
.umlaut-row button:hover { border-color: var(--k-action); background: var(--k-tint); }

/* Feedback card (views.js exerciseFeedback, exerciseFeedbackBody). */
.exercise-feedback { margin-top: 16px; overflow: hidden; border: 1px solid var(--k-good); border-radius: var(--k-radius); background: var(--k-good-bg); color: var(--k-ink); }
.exercise-feedback.is-wrong { border-color: var(--k-bad); background: var(--k-bad-bg); }
.exercise-feedback.is-unrecognized { border-color: var(--k-hint); background: var(--k-hint-bg); }
.exercise-feedback > header { padding: 13px 15px; display: flex; align-items: flex-start; gap: 10px; }
.exercise-feedback > header + * { border-top: 1px solid var(--k-rule); }
.exercise-feedback > header > div { flex: 1; min-width: 0; }
.exercise-feedback__icon { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--k-on-good); background: var(--k-good); font-weight: 700; line-height: 1; }
.exercise-feedback.is-wrong .exercise-feedback__icon { color: var(--k-on-bad); background: var(--k-bad); }
.exercise-feedback.is-unrecognized .exercise-feedback__icon { color: var(--k-on-good); background: var(--k-hint); }
.exercise-feedback > header strong { display: block; margin: 0; padding-top: 3px; color: var(--k-good); font-size: 15px; line-height: 1.4; }
.exercise-feedback.is-wrong > header strong { color: var(--k-bad); }
.exercise-feedback.is-unrecognized > header strong { color: var(--k-hint); }
.exercise-feedback__label { display: block; margin-top: 6px; color: var(--k-muted); font-size: var(--k-text-xs); }
.exercise-feedback__answer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; font-size: 1.125rem; line-height: 1.5; }
.exercise-feedback__answer > span { min-width: 0; overflow-wrap: anywhere; }
.exercise-feedback > header em { display: block; margin-top: 4px; color: var(--k-muted); font-size: var(--k-text-xs); font-style: normal; }
.exercise-feedback > section { padding: 14px 15px; }
.exercise-feedback__kicker { margin: 0; color: var(--k-action); font-size: var(--k-text-xs); font-weight: 650; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; }
.exercise-feedback section > p:last-child { margin: 5px 0 0; font-size: var(--k-text-body); line-height: 1.55; }
.exercise-feedback .selected-answer-feedback .exercise-feedback__kicker { color: var(--k-bad); }
.exercise-feedback.is-unrecognized .exercise-feedback__kicker { color: var(--k-hint); }
.exercise-feedback__more { border-top: 1px solid var(--k-rule); }
.exercise-feedback__more > summary { min-height: 44px; display: flex; align-items: center; padding: 0 15px; color: var(--k-action); font-weight: 650; cursor: pointer; }
.exercise-feedback__more > section { padding: 0 15px 14px; }
.exercise-feedback__retry { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; padding: 6px 15px 4px; border-top: 1px solid var(--k-rule); }
.exercise-feedback__retry p { flex: 1 1 14rem; margin: 6px 0; font-size: 0.95rem; }
.exercise-feedback__actions { display: flex; flex-wrap: wrap; gap: 0 20px; }
.exercise-feedback > section + section { border-top: 1px solid var(--k-rule); }
.exercise-feedback__choices { margin: 5px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: var(--k-text-body); line-height: 1.55; }
.exercise-feedback__option { display: block; font-weight: 600; }
.exercise-feedback .play:not(.is-playing):not(.is-failed) { background: var(--k-sheet); }
/* An unrecognised typed answer: both texts side by side, nothing marked. */
.answer-compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 20px; margin-top: 6px; }
.answer-compare > div { min-width: 0; }
.answer-compare span:not([lang]) { display: block; color: var(--k-muted); font-size: var(--k-text-xs); font-weight: 600; }
.answer-compare__text { margin: 4px 0 0; font-size: 1.125rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }

/* No-script answer; hidden by the script, which reads it. */
.quiz-reveal { margin-top: 0.7rem; font-size: 0.95rem; }
.quiz-reveal summary { cursor: pointer; color: var(--k-action); font-weight: 600; min-height: 2.75rem; display: flex; align-items: center; width: fit-content; }
.quiz-reveal p, .quiz-wrong li { margin: 0.4rem 0 0; }

/* Result once every exercise is answered (views.js page-recap). */
.quiz-summary { margin-top: 16px; overflow: hidden; border: 1px solid var(--k-rule); border-radius: var(--k-radius); background: var(--k-sheet); }
.quiz-summary__head { padding: 18px 16px; background: var(--k-tint); border-bottom: 1px solid var(--k-rule); }
.quiz-summary h3 { margin: 0 0 12px; color: var(--k-ink); font-size: 1.2rem; }
.recap-score { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 6px; }
.recap-score span { padding: 10px; border-radius: var(--k-radius); color: var(--k-muted); background: var(--k-sheet); font-size: var(--k-text-sm); line-height: 1.35; text-align: center; }
.recap-score strong { display: block; margin-bottom: 2px; color: var(--k-action); font-size: 20px; font-variant-numeric: tabular-nums; }
.quiz-summary__note { margin: 0; padding: 12px 16px; color: var(--k-muted); font-size: var(--k-text-sm); }

/* ---- Own words (views.js communicationWorkshop, final page) ---- */
.task-situation { padding: 14px 16px; background: var(--k-tint); border-left: 3px solid var(--k-action); }
.task-draft { display: block; margin: 1rem 0 0.5rem; font-weight: 600; }
.block--task textarea {
  display: block; width: 100%; max-width: 100%; min-height: 150px; margin: 0 0 0.5rem; padding: 14px; resize: vertical;
  border: 1px solid var(--k-control); border-radius: var(--k-radius);
  color: var(--k-ink); background: var(--k-paper); font: 400 1.0625rem/1.6 var(--k-font-sans);
}
.communication-checks { list-style: none; margin: 0.5rem 0 1rem; padding: 0; display: grid; gap: 8px; }
.communication-checks label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--k-rule); border-radius: var(--k-radius); background: var(--k-paper); cursor: pointer; line-height: 1.5; overflow-wrap: anywhere; }
.communication-checks input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--k-action); }
.communication-checks label:has(input:checked) { border-color: var(--k-action); background: var(--k-tint); }
.task-compare { margin: 0 0 1rem; padding: 0 16px; border: 1px solid var(--k-rule); border-radius: var(--k-radius); background: var(--k-paper); }
.task-compare > summary { display: flex; align-items: center; min-height: 44px; color: var(--k-action); font-weight: 650; cursor: pointer; }
.task-compare[open] { padding-bottom: 16px; }
.task-compare[open] > summary { margin-bottom: 8px; }
/* Flex summaries lose the native marker; a small triangle keeps them
   recognisable as disclosures. */
:is(.hint-ladder, .exercise-feedback__more, .quiz-reveal, .task-compare) > summary { list-style: none; }
:is(.hint-ladder, .exercise-feedback__more, .quiz-reveal, .task-compare) > summary::-webkit-details-marker { display: none; }
:is(.hint-ladder, .exercise-feedback__more, .quiz-reveal, .task-compare) > summary::before { content: "\25B8"; flex: none; width: 1.1em; font-size: 0.9em; }
:is(.hint-ladder, .exercise-feedback__more, .quiz-reveal, .task-compare)[open] > summary::before { content: "\25BE"; }
.task-compare .letter { margin-bottom: 0.75rem; }
.task-compare p:last-child { margin-bottom: 0; }
.task-again { padding: 16px 18px; background: var(--k-tint); }
.task-again strong { display: block; }
.task-again p { margin: 0.3rem 0 0; }

.block--notice { background: var(--k-hint-bg); border-color: var(--k-rule); }

/* Hub (/situacii/): one card per page. The title link stretches over the
   whole card, so the card is one link without scripting. */
.hub-list { margin: 0 0 1.5rem; }
.cards { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.card { position: relative; display: flex; flex-direction: column; padding: 1rem 1.1rem; background: var(--k-sheet); border: 1px solid var(--k-rule); border-radius: var(--k-radius); }
.card:hover { border-color: var(--k-action); }
.card__meta { order: -1; margin: 0 0 0.35rem; color: var(--k-muted); font-size: 0.9rem; }
.card__level { display: inline-block; padding: 0 0.45rem; border-radius: var(--k-radius); background: var(--k-tint); color: var(--k-action); font-weight: 700; font-size: 0.85rem; }
.card__title { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.card__title a { color: var(--k-action); }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--k-radius); }
/* Keyboard focus rings the whole card where :has() is supported. */
@supports selector(:has(*)) {
  .card:has(a:focus-visible) { outline: 3px solid var(--k-action); outline-offset: 2px; }
  .card__title a:focus-visible { outline: 0; }
}
.card__de { margin: 0.2rem 0 0; font-weight: 600; }
.card__text { margin: 0.4rem 0 0; color: var(--k-muted); font-size: 0.95rem; }

.site-foot { max-width: 48rem; margin: 0 auto; padding: 1rem 16px 2.5rem; color: var(--k-muted); font-size: 0.9rem; }
.course-notice { padding: 0.9rem 1rem; border: 1px solid var(--k-rule); border-radius: var(--k-radius); background: var(--k-sheet); }
.course-notice p { margin: 0.25rem 0 0; }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; margin-top: 1rem; }
.legal-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.voice-note { font-size: 0.85rem; }

/* Related situations at the end of a page, and the 401 page's way on. */
.related__list { margin: 0; padding: 0; list-style: none; }
.related__list li { padding: 0.6rem 0; border-top: 1px solid var(--k-rule); }
.related__list li:first-child { border-top: 0; padding-top: 0; }
.related__list a { display: inline-block; padding: 0.2rem 0; font-weight: 600; }
.related__de { display: block; color: var(--k-muted); font-size: 0.95rem; }
.next-link a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }

@media (min-width: 34rem) {
  .answer-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exercise-card { padding: 1.35rem; }
  .quiz-summary__head { padding: 20px 22px; }
  .quiz-summary__note { padding: 12px 22px; }
}
@media (min-width: 40rem) {
  .block { padding: 1.5rem 1.75rem; }
  .hero { padding: 3rem 0 1.5rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .insight-grid > :only-child { grid-column: 1 / -1; }
  .language-note, .culture-note { padding: 1.5rem; }
}
@media (max-width: 30rem) {
  /* Icon-only play control; the label stays as its accessible name. */
  .play { padding: 0; }
  .play__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .turn { flex-wrap: wrap; row-gap: 0.1rem; }
  .turn__speaker { flex-basis: 100%; padding: 0; }
  .exercise-card { padding: 0.9rem; }
  .exercise-actions .button { flex: 1 1 auto; }
}
/* Reduced motion: no transitions or smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Generated from public/design-tokens.css by scripts/build-situation-pages.cjs. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --k-paper: #20282c; --k-sheet: #293339; --k-rail: #1b2328;
    --k-ink: #e8e4d9; --k-muted: #b2b9b7; --k-rule: #4b565b;
    --k-action: #bdd4e3; --k-on-action: #202e39; --k-tint: #35434d;
    --k-note: #3b3931; --k-tab: #c9a064;
    --k-good: #acd0b6; --k-good-bg: #2b3b33;
    --k-bad: #f0b3a0; --k-bad-bg: #46332e;
    --k-hint: #e9cb8a; --k-hint-bg: #403a2c;
    --k-control: #84949d;
    /* 8.2:1 on --k-good, 7.7:1 on --k-bad. */
    --k-on-good: #202e39; --k-on-bad: #202e39;
    --k-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  }
}
