.ed-assessment {
  --ed-ink: #202b33;
  --ed-muted: #50606a;
  --ed-line: #deded7;
  --ed-accent: #175f68;
  --ed-paper: #fffefa;
  inline-size: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 26px 74px;
  color: var(--ed-ink);
  line-height: 1.85;
}
.ed-assessment[lang=en] { font-family: system-ui, sans-serif; line-height: 1.6; }
.ed-assessment a:focus-visible, .ed-assessment button:focus-visible, .ed-assessment summary:focus-visible {
  outline: 2px solid var(--ed-accent);
  outline-offset: 4px;
}
.ed-topline, .ed-breadcrumb, .ed-languages, .ed-meta, .ed-form-header, .ed-submit, .ed-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ed-topline, .ed-form-header { justify-content: space-between; flex-wrap: wrap; }
.ed-topline { color: var(--ed-muted); font-size: .875rem; margin-block-end: 16px; }
.ed-breadcrumb a, .ed-source a { color: var(--ed-accent); text-decoration: underline; text-underline-offset: .2em; }
.ed-languages { gap: 5px; }
.ed-languages a { padding: 4px 12px; border-radius: 99px; }
.ed-languages a[aria-current] { background: #e3eeec; color: #194d54; font-weight: 700; }
.ed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  grid-template-areas: "copy photo";
  background: #f3e9dc;
  border: 1px solid #e9ded0;
  border-radius: 18px;
  overflow: hidden;
}
.ed-hero-photo { grid-area: photo; width: 100%; height: 100%; min-height: 350px; object-fit: cover; object-position: 65% center; }
.ed-hero-copy { grid-area: copy; padding: clamp(28px, 5vw, 64px); align-self: center; }
.ed-kicker { font-size: .9375rem; font-weight: 700; color: #654b3a; margin: 0 0 8px; }
.ed-hero h1 { margin: 0; font-size: clamp(2.35rem, 5.4vw, 4.35rem); line-height: 1.22; letter-spacing: -.025em; }
.ed-meta { flex-wrap: wrap; gap: 8px 16px; margin-block: 17px 11px; font-size: .875rem; font-weight: 700; }
.ed-meta span + span { border-inline-start: 1px solid #ab9581; padding-inline-start: 16px; }
.ed-lead { max-inline-size: 37ch; margin: 0 0 24px; color: #41494e; font-size: 1rem; }
.ed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 9px 21px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ed-accent);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.ed-button:hover { background: #104b54; color: white; }
.ed-reading { max-inline-size: 760px; margin: clamp(34px, 6vw, 62px) auto 0; }
.ed-form-header { align-items: baseline; }
.ed-form-header h2, .ed-report h2, .ed-feedback h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); margin: 0; }
.ed-form-header h2 { scroll-margin-block-start: 100px; }
.ed-form-header span { font-size: .875rem; color: var(--ed-muted); }
.ed-progress { display: block; inline-size: 100%; block-size: 6px; border: 0; border-radius: 99px; background: #e1e9e7; overflow: hidden; margin-block: 13px 15px; }
.ed-progress::-webkit-progress-bar { background: #e1e9e7; }
.ed-progress::-webkit-progress-value { background: var(--ed-accent); }
.ed-progress::-moz-progress-bar { background: var(--ed-accent); }
.ed-instructions { margin: 0 0 31px; color: var(--ed-muted); }
.ed-item { display: block; min-inline-size: 0; margin: 0 0 26px; padding: 0 0 22px; border: 0; border-block-end: 1px solid var(--ed-line); }
.ed-item legend { display: flex; align-items: baseline; gap: 12px; max-inline-size: 100%; margin-block-end: 12px; padding: 0; font-weight: 700; font-size: 1.0625rem; }
.ed-item-number { color: var(--ed-accent); min-inline-size: 1.6em; font-size: .9rem; font-weight: 800; }
.ed-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.ed-option { position: relative; cursor: pointer; }
.ed-option-0 { --ed-choice-color: #80283a; --ed-choice-bg: #f7e0e4; --ed-choice-line: #dfb4bc; }
.ed-option-1 { --ed-choice-color: #924424; --ed-choice-bg: #faeadc; --ed-choice-line: #e7c1a9; }
.ed-option-2 { --ed-choice-color: #366349; --ed-choice-bg: #e1efe2; --ed-choice-line: #b2cdb9; }
.ed-option-3 { --ed-choice-color: #205d43; --ed-choice-bg: #d3e9dc; --ed-choice-line: #a0c9b3; }
.ed-choice {
  min-height: 51px;
  height: 100%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  border: 1px solid var(--ed-choice-line);
  color: var(--ed-choice-color);
  background: var(--ed-choice-bg);
  text-align: center;
  font-size: .875rem;
  font-weight: 650;
  transition: background .15s, color .15s;
}
.ed-option:hover .ed-choice { border-color: var(--ed-choice-color); }
.ed-option input:checked + .ed-choice { color: white; background: var(--ed-choice-color); border-color: var(--ed-choice-color); }
.ed-option input:focus-visible + .ed-choice { outline: 2px solid var(--ed-choice-color); outline-offset: 3px; }
.ed-radio { width: 14px; height: 14px; flex: 0 0 14px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.ed-option input:checked + .ed-choice .ed-radio::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ed-unanswered legend, .ed-error { color: #832b3d; }
.ed-error { margin-block: 0 10px; font-weight: 700; }
.ed-error:empty { display: none; }
.ed-inline-photo { margin: 12px 0 32px; }
.ed-inline-photo img { display: block; width: 100%; height: clamp(130px, 29vw, 280px); object-fit: cover; object-position: 67% 60%; border-radius: 10px; }
.ed-submit, .ed-actions { flex-wrap: wrap; }
.ed-submit span, .ed-source { color: var(--ed-muted); font-size: .875rem; }
.ed-source { margin-block-start: 35px; padding-block: 15px; border-block-start: 1px solid var(--ed-line); }
.ed-source summary { cursor: pointer; font-weight: 700; color: var(--ed-ink); }
.ed-source p { margin-block: 8px; }
.ed-report { padding: clamp(20px, 5vw, 36px); background: #eaf2f0; border: 1px solid #c7dfda; border-radius: 12px; }
.ed-report p:last-child { margin-block-end: 0; }
.ed-report meter { width: 100%; height: 16px; accent-color: var(--ed-accent); }
.ed-report meter::-webkit-meter-optimum-value { background: var(--ed-accent); }
.ed-score { color: var(--ed-accent); font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 800; line-height: 1.2; margin: 9px 0; }
.ed-summary { font-weight: 650; }
.ed-method { color: var(--ed-muted); font-size: .9rem; }
.ed-feedback { padding-block: 30px; }
.ed-next { padding: 11px 14px; border-inline-start: 3px solid var(--ed-accent); background: #eaf2f0; font-weight: 700; }
.ed-theme-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ed-theme { min-inline-size: 0; padding: 16px; background: var(--ed-paper); border: 1px solid var(--ed-line); border-radius: 8px; }
.ed-theme h3 { margin: 0 0 4px; font-size: 1.04rem; }
.ed-theme h4 { margin: 14px 0 0; color: var(--ed-accent); font-size: .96rem; }
.ed-theme p { margin: 5px 0 0; }
.ed-evidence { margin-block: 10px 12px; padding: 10px 12px; background: #f1f5f3; border-inline-start: 2px solid var(--ed-accent); border-radius: 4px; }
.ed-evidence, .ed-example { color: var(--ed-muted); font-size: .875rem; }
.ed-evidence ul, .ed-instructions-block ol { margin-block: 6px 0; padding-inline-start: 1.25em; }
.ed-evidence li + li, .ed-instructions-block li + li { margin-block-start: 5px; }
.ed-instructions-block .ed-example { margin-block: 10px; }
@media (max-width: 680px) {
  .ed-theme-grid { grid-template-columns: 1fr; }
}
.ed-clear { font: inherit; color: var(--ed-accent); background: none; border: 0; padding: 10px; text-decoration: underline; cursor: pointer; }
@media (max-width: 680px) {
  .ed-assessment { inline-size: calc(100% - 32px); padding-block-start: 18px; }
  .ed-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "copy"; border-radius: 13px; }
  .ed-hero-photo { min-height: 0; height: clamp(155px, 51vw, 300px); }
  .ed-hero-copy { padding: 24px; }
  .ed-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .ed-topline, .ed-actions, .ed-assessment:has(.ed-report) .ed-hero-photo { display: none; }
  .ed-assessment:has(.ed-report) .ed-hero { display: block; background: white; border: 0; }
  .ed-assessment:has(.ed-report) .ed-hero-copy { padding: 0; }
  .ed-assessment:has(.ed-report) { padding: 0; }
  .ed-theme { break-inside: avoid; }
}
