:root {
  --paper: #f4f0e7;
  --paper-deep: #e7e0d4;
  --ink: #17212b;
  --ink-soft: #4f5961;
  --rule: #b8b0a4;
  --rule-dark: #756f67;
  --red: #b7342c;
  --red-dark: #85241f;
  --blue: #1a5f83;
  --blue-dark: #12445f;
  --amber: #d79d28;
  --white: #fffdf8;
  --focus: #f2b94b;
  --content: 1240px;
  --reading: 760px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: .09em;
  text-underline-offset: .18em;
}

a:hover {
  text-decoration-thickness: .16em;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--content));
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: -.08em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.privacy-note::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #2c7654;
  content: "";
}

main {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.journey {
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.journey ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.journey li {
  color: #655f58;
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.journey li span {
  margin-right: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.journey li[aria-current="step"] {
  color: var(--ink);
}

.journey li[aria-current="step"]::after {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 8px;
  background: var(--red);
  content: "";
}

.stage {
  min-height: 680px;
  padding: 42px 0 88px;
}

.stage-number,
.eyebrow,
.section-label,
.article-index,
.step-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stage-number {
  margin-bottom: 44px;
  color: var(--red-dark);
}

.eyebrow,
.section-label {
  margin: 0 0 13px;
  color: var(--red-dark);
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 7.5vw, 7rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

p {
  margin: 0 0 1.2em;
}

.lede {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 2vw, 1.62rem);
  line-height: 1.42;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: end;
  padding-bottom: 72px;
}

.hero-copy {
  padding-bottom: 12px;
  font-size: 1rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--red);
}

.button-primary:hover:not(:disabled) {
  color: var(--white);
  background: #283541;
}

.button-primary:active:not(:disabled) {
  box-shadow: 2px 2px 0 var(--red);
  transform: translate(3px, 3px);
}

.button-primary:disabled {
  color: #e6e0d4;
  background: #817b72;
  box-shadow: none;
  opacity: .7;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover {
  background: var(--paper-deep);
}

.urgent-notice,
.next-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 26px;
  padding: 32px;
  color: var(--white);
  background: var(--ink);
}

.urgent-notice h2,
.next-step h2 {
  max-width: 840px;
  font-size: clamp(1.7rem, 3.5vw, 3rem);
}

.urgent-notice p,
.next-step p {
  max-width: 830px;
  color: #e5e0d8;
}

.urgent-notice a {
  color: var(--white);
}

.notice-index {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: .9;
  color: var(--amber);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.evidence-grid article {
  min-height: 280px;
  padding: 28px 28px 32px 0;
}

.evidence-grid article + article {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.article-index {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--red-dark);
}

.evidence-grid h2 {
  font-size: 1.55rem;
}

.evidence-grid p {
  color: var(--ink-soft);
  font-size: .94rem;
}

.method-note {
  border-bottom: 1px solid var(--ink);
}

.method-note summary,
.site-footer summary {
  min-height: 52px;
  padding: 18px 34px 18px 0;
  font-weight: 750;
  cursor: pointer;
}

.method-note > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 6px 0 28px;
  color: var(--ink-soft);
}

.question-layout {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(480px, 1fr);
  gap: clamp(54px, 9vw, 128px);
}

.question-layout h1,
.narrow-heading h1,
.practice-layout h1,
.results-heading h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend,
.field > label {
  display: block;
  margin-bottom: 13px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.field > label span {
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 600;
  text-transform: none;
}

.check-list {
  border-top: 1px solid var(--ink);
}

.check-list legend {
  padding: 0 0 14px;
}

.check-list label {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
  min-height: 86px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.check-list input,
.single-check input {
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.check-list span,
.single-check span {
  color: var(--ink-soft);
}

.check-list strong {
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 42px;
}

.field {
  margin-top: 34px;
}

.form-row .field {
  margin-top: 0;
}

select,
input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
}

select:focus,
input[type="text"]:focus {
  border-color: var(--ink);
}

.choice-group {
  margin-top: 42px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.segmented-control label {
  position: relative;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-control span {
  display: grid;
  min-height: 52px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--rule-dark);
  background: var(--white);
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
}

.segmented-control label + label span {
  border-left: 0;
}

.segmented-control input:checked + span {
  color: var(--white);
  background: var(--ink);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.accuracy-field p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: .84rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.form-error {
  padding: 13px 15px;
  margin-top: 20px;
  border-left: 5px solid var(--red);
  color: var(--red-dark);
  background: #f4ded9;
  font-weight: 700;
}

.narrow-heading {
  max-width: 930px;
}

.calibration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 52px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.calibration-step {
  min-width: 0;
  padding: 30px 36px 34px 0;
}

.calibration-step + .calibration-step {
  padding-right: 0;
  padding-left: 36px;
  border-left: 1px solid var(--rule);
}

.step-index {
  display: block;
  margin-bottom: 52px;
  color: var(--red-dark);
}

.calibration-step h2 {
  font-size: 2rem;
}

.calibration-step > p {
  color: var(--ink-soft);
}

.channel-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 30px 0 26px;
}

.sound-button {
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  font-weight: 750;
}

.sound-button:hover:not(:disabled) {
  color: var(--white);
  background: var(--ink);
}

.sound-button span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  margin-right: 7px;
  place-items: center;
  border: 1px solid currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sound-button-wide {
  width: 100%;
  margin: 30px 0 26px;
}

.single-check {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
}

.single-check input:disabled + span {
  opacity: .62;
}

.inline-status,
.console-status {
  min-height: 1.5em;
  color: var(--ink-soft);
  font-size: .84rem;
}

.calibration-limit {
  max-width: 900px;
  padding: 20px 0 20px 26px;
  margin-top: 34px;
  border-left: 4px solid var(--amber);
  color: var(--ink-soft);
}

.calibration-limit strong {
  color: var(--ink);
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(380px, 1fr);
  gap: clamp(50px, 10vw, 130px);
  align-items: center;
}

.practice-console {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  padding: 38px;
  border: 1px solid var(--ink);
  background: rgba(255, 253, 248, .52);
}

.response-button {
  width: 100%;
  min-height: 170px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 8px var(--paper-deep);
  user-select: none;
  touch-action: manipulation;
}

.response-button span,
.response-button small {
  display: block;
}

.response-button span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -.03em;
}

.response-button small {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.response-button[aria-pressed="true"],
.response-button:active:not(:disabled) {
  color: var(--white);
  background: var(--red-dark);
  box-shadow: inset 0 0 0 8px #6e1c18;
}

.response-button[aria-pressed="true"] small,
.response-button:active:not(:disabled) small {
  color: #f3dfdc;
}

.response-button:disabled {
  opacity: .48;
}

.attempt-marks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.attempt-marks span {
  height: 8px;
  background: var(--paper-deep);
}

.attempt-marks span.complete {
  background: #2c7654;
}

.test-header,
.results-heading,
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.test-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
}

.test-progress-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 18px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.progress-track {
  display: block;
  width: 100%;
  height: 6px;
  margin: 26px 0 52px;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: var(--paper-deep);
}

.progress-track::-webkit-progress-bar {
  background: var(--paper-deep);
}

.progress-track::-webkit-progress-value {
  background: var(--red);
}

.progress-track::-moz-progress-bar {
  background: var(--red);
}

.listening-field {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.listening-field > p:first-child {
  max-width: 580px;
  margin: 0 auto 26px;
  color: var(--ink-soft);
}

.response-button-main {
  min-height: 250px;
}

.test-controls {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 44px;
}

.text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}

.text-button-danger {
  color: var(--red-dark);
}

.pause-panel {
  max-width: 640px;
  padding: 36px;
  margin: 40px auto 0;
  border: 1px solid var(--ink);
  background: var(--white);
  text-align: center;
}

.results-heading {
  padding-bottom: 42px;
}

.quality-stamp {
  min-width: 190px;
  padding: 16px 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.quality-stamp span,
.quality-stamp strong {
  display: block;
}

.quality-stamp span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quality-stamp strong {
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  text-transform: capitalize;
}

.quality-stamp[data-grade="niedrig"] strong {
  color: var(--red-dark);
}

.quality-stamp[data-grade="eingeschränkt"] strong {
  color: #865d08;
}

.result-limit {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) 1fr;
  gap: 28px;
  padding: 21px 24px;
  color: var(--white);
  background: var(--ink);
}

.result-limit span {
  color: #e6e1d9;
}

.result-summary,
.data-section,
.quality-section {
  display: grid;
  grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 100px);
  padding: 70px 0;
  border-bottom: 1px solid var(--ink);
}

.result-summary h2,
.data-section h2,
.quality-section h2,
.audiogram-section h2,
.export-panel h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.findings-list {
  border-top: 1px solid var(--ink);
}

.finding {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--rule);
}

.finding-symbol {
  color: var(--blue-dark);
  font-size: 1.3rem;
  font-weight: 800;
}

.finding[data-level="attention"] .finding-symbol {
  color: var(--red-dark);
}

.finding h3 {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.finding p {
  margin: 0;
  color: var(--ink-soft);
}

.audiogram-section {
  padding: 70px 0;
  border-bottom: 1px solid var(--ink);
}

.chart-legend {
  display: flex;
  gap: 22px;
  padding-bottom: 12px;
  font-size: .86rem;
  font-weight: 750;
}

.chart-legend b {
  margin-right: 5px;
  font-size: 1.35rem;
}

.legend-right b {
  color: var(--red);
}

.legend-left b {
  color: var(--blue);
}

.chart-help {
  max-width: 760px;
  color: var(--ink-soft);
}

.chart-scroll,
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.chart-scroll {
  margin-top: 30px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.audiogram {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.audiogram text {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  fill: var(--ink);
}

.audiogram .grid-line {
  stroke: #d5d0c8;
  stroke-width: 1;
}

.audiogram .grid-line.major {
  stroke: #9f988f;
}

.audiogram .axis-line {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.audiogram .right-line {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
}

.audiogram .left-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-dasharray: 9 7;
}

.audiogram .right-marker {
  fill: var(--white);
  stroke: var(--red);
  stroke-width: 4;
}

.audiogram .left-marker {
  stroke: var(--blue);
  stroke-width: 4;
}

.audiogram .no-response {
  font-weight: 800;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: rgba(255, 253, 248, .5);
}

caption {
  padding: 0 0 13px;
  color: var(--ink-soft);
  font-size: .8rem;
  text-align: left;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

th {
  border-top: 1px solid var(--ink);
  border-bottom-color: var(--ink);
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

td:nth-child(n + 2) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.quality-section dl {
  display: grid;
  grid-template-columns: minmax(160px, .45fr) 1fr;
  margin: 0;
  border-top: 1px solid var(--ink);
}

.quality-section dt,
.quality-section dd {
  padding: 15px 0;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.quality-section dt {
  padding-right: 18px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.quality-section dd {
  color: var(--ink-soft);
}

.export-panel {
  display: grid;
  grid-template-columns: 1fr minmax(300px, .62fr);
  gap: clamp(40px, 8vw, 100px);
  padding: 70px 0;
}

.export-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}

.next-step {
  color: var(--white);
}

.next-step .notice-index {
  font-size: 3.2rem;
}

#restartTest {
  display: block;
  margin: 38px auto 0;
}

.noscript-notice {
  padding: 40px;
  margin: 30px 0;
  border: 3px solid var(--red-dark);
  background: var(--white);
}

.site-footer {
  display: grid;
  grid-template-columns: .55fr 1fr;
  gap: 60px;
  width: min(calc(100% - 48px), var(--content));
  padding: 30px 0 60px;
  margin: 0 auto;
  border-top: 1px solid var(--ink);
  color: var(--ink-soft);
  font-size: .78rem;
}

.site-footer > div {
  display: flex;
  flex-direction: column;
}

.site-footer strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.site-footer details {
  border-bottom: 1px solid var(--rule);
}

.site-footer ul {
  padding: 0 0 15px 19px;
  margin: 0;
}

.site-footer li + li {
  margin-top: 7px;
}

@media (max-width: 900px) {
  .hero-grid,
  .question-layout,
  .practice-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-copy {
    max-width: var(--reading);
  }

  .question-layout {
    gap: 30px;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .evidence-grid article {
    min-height: 0;
    padding: 28px 0;
  }

  .evidence-grid article + article {
    padding-left: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .article-index,
  .step-index {
    margin-bottom: 24px;
  }

  .calibration-grid {
    grid-template-columns: 1fr;
  }

  .calibration-step {
    padding: 28px 0;
  }

  .calibration-step + .calibration-step {
    padding-left: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .result-summary,
  .data-section,
  .quality-section,
  .export-panel {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 640px) {
  body {
    background: var(--paper);
  }

  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header {
    min-height: 70px;
  }

  .header-meta > span:first-child {
    display: none;
  }

  .header-meta {
    font-size: .62rem;
  }

  .wordmark {
    gap: 8px;
    font-size: 1.05rem;
  }

  .wordmark-mark {
    width: 34px;
    height: 34px;
    font-size: .62rem;
  }

  .journey {
    padding: 16px 0;
  }

  .journey ol {
    gap: 7px;
  }

  .journey li {
    font-size: 0;
  }

  .journey li span {
    display: grid;
    width: 100%;
    min-height: 30px;
    place-items: center;
    margin: 0;
    font-size: .68rem;
  }

  .journey li[aria-current="step"] span {
    color: var(--white);
    background: var(--ink);
  }

  .journey li[aria-current="step"]::after {
    margin-top: 4px;
  }

  .stage {
    padding: 28px 0 60px;
  }

  .stage-number {
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .hero-grid {
    padding-bottom: 50px;
  }

  .urgent-notice,
  .next-step {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 25px 21px;
  }

  .notice-index {
    font-size: 3rem;
  }

  .method-note > div,
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-row .field + .field {
    margin-top: 12px;
  }

  .segmented-control {
    grid-template-columns: 1fr 1fr;
  }

  .segmented-control label + label span {
    border-left: 1px solid var(--rule-dark);
  }

  .segmented-control label:nth-child(even) span {
    border-left: 0;
  }

  .segmented-control label:nth-child(n + 3) span {
    border-top: 0;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }

  .channel-controls {
    grid-template-columns: 1fr;
  }

  .practice-console {
    padding: 22px 15px;
  }

  .response-button {
    min-height: 150px;
    padding: 20px 12px;
    box-shadow: inset 0 0 0 5px var(--paper-deep);
  }

  .response-button span {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
  }

  .response-button-main {
    min-height: 220px;
  }

  .test-header,
  .results-heading,
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .test-progress-copy {
    align-items: flex-start;
    padding-bottom: 0;
  }

  .results-heading {
    padding-bottom: 28px;
  }

  .quality-stamp {
    width: 100%;
  }

  .result-limit {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .result-summary,
  .data-section,
  .quality-section,
  .audiogram-section,
  .export-panel {
    padding: 50px 0;
  }

  .chart-legend {
    padding: 0;
  }

  .quality-section dl {
    grid-template-columns: 1fr;
  }

  .quality-section dt {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .quality-section dd {
    padding-top: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 340px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 20px), var(--content));
  }

  .privacy-note {
    max-width: 72px;
    line-height: 1.2;
    text-align: right;
  }

  .check-list label {
    grid-template-columns: 25px 1fr;
    gap: 10px;
  }

  .check-list input,
  .single-check input {
    width: 22px;
    height: 22px;
  }

  .button {
    padding-right: 12px;
    padding-left: 12px;
  }

  .response-button small {
    font-size: .65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

}

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

  :root {
    --paper: #fff;
    --white: #fff;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 10pt;
  }

  .site-header,
  .journey,
  .site-footer,
  body > main > .stage:not(#resultsStage),
  .export-panel,
  .next-step,
  #restartTest,
  .chart-help {
    display: none !important;
  }

  main,
  #resultsStage {
    display: block !important;
    width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
  }

  .stage-number {
    margin-bottom: 5mm;
  }

  .results-heading {
    padding-bottom: 5mm;
  }

  .results-heading h1 {
    font-size: 28pt;
  }

  .result-limit {
    padding: 4mm;
    color: #000;
    border: 1px solid #000;
    background: #fff;
  }

  .result-limit span {
    color: #000;
  }

  .result-summary,
  .data-section,
  .quality-section,
  .audiogram-section {
    display: block;
    padding: 8mm 0;
    break-inside: avoid;
  }

  .findings-list,
  .table-scroll,
  .quality-section dl {
    margin-top: 4mm;
  }

  .chart-scroll {
    overflow: visible;
  }

  .audiogram {
    width: 100%;
    min-width: 0;
  }
}
