:root {
  --navy: #12263b;
  --ink: #17283a;
  --muted: #6f7d8c;
  --paper: #f4f1ea;
  --white: #ffffff;
  --line: #d9dfe3;
  --gold: #d9a65d;
  --teal: #0b7f7b;
  --teal-dark: #096763;
  --teal-soft: #e0f1ef;
  --coral: #df6a5e;
  --danger: #b84d47;
  --shadow: 0 24px 70px rgba(18, 38, 59, 0.12);
  --page-gutter: clamp(16px, 3vw, 42px);
  --content-width: 1240px;
}

html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

button,
input,
.consent-box {
  border-radius: 2px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 127, 123, 0.34);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

h1,
.display-type {
  font-family: Georgia, "Times New Roman", serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--navy);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 24px;
}

.page-title {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  margin-bottom: 14px;
}

.question-title {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 28px;
}

.eyebrow,
.section-kicker,
.small-label {
  color: var(--teal-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  background: var(--gold);
  content: "";
  display: inline-block;
  height: 2px;
  margin-right: 10px;
  vertical-align: 0.24em;
  width: 30px;
}

.muted {
  color: var(--muted);
}

.lede {
  color: #4d6070;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  max-width: 660px;
}

.screen {
  margin: 0 auto;
  max-width: var(--content-width);
  min-width: 0;
  padding: 28px var(--page-gutter) 64px;
  width: 100%;
}

.screen--welcome {
  padding-top: clamp(32px, 5vw, 72px);
}

.masthead {
  align-items: center;
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid rgba(18, 38, 59, 0.12);
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding: 12px var(--page-gutter);
  position: relative;
  width: 100%;
  z-index: 10;
}

.masthead__brand {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.masthead__logo-wrap {
  background: var(--white);
  border: 1px solid rgba(18, 38, 59, 0.08);
  flex: 0 0 auto;
  padding: 3px;
  width: 170px;
}

.masthead__logo {
  aspect-ratio: 3.14 / 1;
  object-fit: contain;
  width: 100%;
}

.masthead__identity {
  border-left: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.35;
  padding-left: 16px;
  text-transform: uppercase;
}

.masthead__note {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
  text-align: right;
}

.stepbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0 var(--page-gutter);
}

.stepbar__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: var(--content-width);
  padding: 0;
}

.stepbar__item {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 9px;
  min-width: 0;
  padding: 13px 10px;
  position: relative;
  text-transform: uppercase;
}

.stepbar__item::after {
  background: var(--line);
  content: "";
  height: 1px;
  left: 38px;
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 0;
}

.stepbar__item:last-child::after {
  display: none;
}

.stepbar__number,
.stepbar__label {
  position: relative;
  z-index: 1;
}

.stepbar__number {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
}

.stepbar__label {
  background: var(--white);
  overflow: hidden;
  padding-right: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stepbar__item[aria-current="step"] {
  color: var(--navy);
}

.stepbar__item[aria-current="step"] .stepbar__number {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.stepbar__item.is-complete .stepbar__number {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.welcome-grid {
  align-items: stretch;
  display: grid;
  gap: clamp(32px, 5vw, 78px);
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.welcome-copy {
  align-self: center;
  min-width: 0;
  padding: 24px 0;
}

.welcome-logo {
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 34px;
  max-width: 300px;
  padding: 5px;
}

.welcome-logo img {
  object-fit: contain;
  width: 100%;
}

.welcome-actions,
.form-actions,
.result-actions,
.quiz-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 50px;
  padding: 12px 21px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
}

.btn--primary:not(:disabled):hover {
  background: var(--teal-dark);
}

.btn--secondary {
  background: var(--white);
  border-color: #c7d0d6;
  color: var(--navy);
}

.btn--danger {
  background: var(--navy);
  color: var(--white);
}

.btn--wide {
  min-width: 210px;
}

.welcome-panel {
  background: var(--navy);
  box-shadow: var(--shadow);
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: clamp(28px, 4vw, 50px);
  position: relative;
}

.welcome-panel::before {
  border: 1px solid rgba(217, 166, 93, 0.35);
  border-radius: 50%;
  content: "";
  height: 290px;
  position: absolute;
  right: -140px;
  top: -120px;
  width: 290px;
}

.welcome-panel__top {
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  position: relative;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 0;
  margin: auto 0;
  padding: 40px 0;
  position: relative;
}

.feature {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 14px;
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 22px 0;
}

.feature:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.feature__value {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  line-height: 1;
}

.feature__label {
  align-self: center;
  color: #dce5eb;
  font-size: 0.9rem;
}

.brand-statement {
  color: #dce5eb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0;
  max-width: 300px;
  position: relative;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
  padding: clamp(22px, 4vw, 48px);
}

.intro-block {
  margin-bottom: 34px;
  max-width: 780px;
}

.form-grid {
  display: grid;
  gap: 23px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  color: var(--navy);
  display: block;
  font-size: 0.86rem;
  font-weight: 760;
  margin-bottom: 8px;
}

.field label span {
  color: var(--danger);
}

.field input {
  background: var(--white);
  border: 1px solid #bbc6cd;
  color: var(--ink);
  font-size: 16px;
  height: 54px;
  padding: 0 15px;
  width: 100%;
}

.field input::placeholder {
  color: #8d99a5;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  color: var(--danger);
  font-size: 0.78rem;
  margin: 6px 0 0;
  min-height: 1.2em;
}

.consent-box {
  align-items: flex-start;
  background: #f7f9f8;
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  gap: 13px;
  padding: 17px;
}

.consent-box input {
  accent-color: var(--teal);
  flex: 0 0 20px;
  height: 20px;
  margin: 2px 0 0;
  width: 20px;
}

.consent-box span {
  color: #42576a;
  font-size: 0.88rem;
}

.status-error {
  background: #fff3f1;
  border-left: 3px solid var(--danger);
  color: #8a3935;
  margin: 18px 0 0;
  padding: 12px 14px;
}

.instruction-person {
  align-items: center;
  background: var(--navy);
  color: var(--white);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 20px 24px;
}

.instruction-person__label {
  color: #abc8c6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.instruction-person__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin: 0;
}

.instruction-person__institution {
  color: #d4dde3;
  font-size: 0.88rem;
  margin: 3px 0 0;
}

.instruction-person__stamp {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.instruction-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.instruction-card {
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 0;
  padding: 23px;
}

.instruction-card__number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.instruction-card h2 {
  color: var(--navy);
  font-size: 1rem;
  margin: 9px 0 7px;
}

.instruction-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.notice {
  align-items: flex-start;
  background: #fbf3e7;
  border-left: 3px solid var(--gold);
  color: #62533f;
  display: flex;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 16px;
}

.notice__mark {
  color: var(--gold);
  font-weight: 900;
}

.quiz-masthead {
  position: sticky;
  top: 0;
}

.quiz-masthead .masthead__note {
  display: none;
}

.quiz-summary {
  align-items: center;
  display: flex;
  gap: 18px;
}

.quiz-summary__person {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 760;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timer {
  align-items: center;
  background: var(--navy);
  color: var(--white);
  display: flex;
  gap: 9px;
  min-height: 48px;
  padding: 7px 14px;
  transition: background-color 180ms ease;
}

.timer__label {
  color: #bdd0dc;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timer__value {
  font-feature-settings: "tnum" 1;
  font-size: 1.23rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  min-width: 56px;
}

.timer.is-warning {
  background: var(--danger);
}

.quiz-screen {
  padding-top: 20px;
}

.quiz-progress-card {
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  padding: 17px 20px;
}

.quiz-progress-meta {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 13px;
}

.quiz-progress-meta p {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
}

.question-nav {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(10, minmax(42px, 1fr));
  margin: 0;
}

.question-nav__button {
  background: var(--white);
  border: 1px solid #c4ced4;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  height: 42px;
  min-width: 42px;
}

.question-nav__button.is-answered::after {
  background: var(--teal);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 5px;
  margin-left: 5px;
  vertical-align: 0.1em;
  width: 5px;
}

.question-nav__button[aria-current="step"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.question-nav__button[aria-current="step"]::after {
  background: var(--gold);
}

.quiz-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 295px;
}

.question-card {
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 0;
  padding: clamp(22px, 4vw, 42px);
}

.question-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 17px;
}

.topic-chip,
.answer-mode {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  padding: 6px 9px;
  text-transform: uppercase;
}

.topic-chip {
  background: var(--teal-soft);
  border-color: #b4d8d4;
  color: var(--teal-dark);
}

.answers {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.answers legend {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

.answers button {
  align-items: center;
  background: var(--white);
  border: 1px solid #c7d0d6;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 13px;
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 62px;
  overflow-wrap: anywhere;
  padding: 11px 14px;
  text-align: left;
  width: 100%;
}

.answers button:hover {
  border-color: var(--teal);
}

.answers button.is-selected {
  background: var(--teal-soft);
  border: 2px solid var(--teal);
  padding: 10px 13px;
}

.answer-letter {
  align-items: center;
  border: 1px solid #aebac2;
  border-radius: 50%;
  color: var(--navy);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.is-selected .answer-letter {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.answer-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.selected-note {
  color: var(--teal-dark);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quiz-actions {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 19px;
}

.quiz-actions__nav {
  display: flex;
  gap: 9px;
}

.brand-panel {
  background: var(--navy);
  color: var(--white);
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  position: sticky;
  top: 87px;
}

.brand-panel__eyebrow {
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.brand-panel__art {
  align-items: center;
  background: var(--white);
  display: flex;
  justify-content: center;
  min-height: 142px;
  padding: 12px;
}

.brand-panel__art img {
  height: 120px;
  object-fit: contain;
  width: 100%;
}

.brand-panel__content {
  animation: brand-in 220ms ease-out both;
}

.brand-panel__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  margin: 18px 0 0;
}

.brand-panel__generic {
  color: #bfcdd7;
  font-size: 0.82rem;
  margin: 2px 0 0;
}

.brand-panel__note {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #aebfca;
  font-size: 0.72rem;
  line-height: 1.55;
  margin: 20px 0 0;
  padding-top: 15px;
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-layout {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.score-panel {
  align-items: center;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.score-panel .small-label {
  color: var(--gold);
}

.score-ring {
  align-items: center;
  background: conic-gradient(var(--teal) var(--score-angle), rgba(255, 255, 255, 0.13) 0);
  border-radius: 50%;
  display: flex;
  height: 190px;
  justify-content: center;
  margin: 14px 0 24px;
  padding: 12px;
  width: 190px;
}

.score-ring__center {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.score-ring__score {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.7rem;
  line-height: 0.95;
}

.score-ring__total {
  color: #bdcbd5;
  font-size: 0.83rem;
  margin-top: 5px;
}

.score-panel__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.score-panel__copy {
  color: #bccbd5;
  font-size: 0.84rem;
  margin: 0;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
}

.result-statuses {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0;
}

.result-status {
  border: 1px solid var(--line);
  padding: 14px;
}

.result-status__label {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-status__value {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 4px;
}

.result-status.is-success .result-status__value {
  color: var(--teal-dark);
}

.result-status.is-pending .result-status__value {
  color: var(--danger);
}

.reward-message {
  background: var(--teal-soft);
  border-left: 3px solid var(--teal);
  color: #275c59;
  font-size: 0.9rem;
  line-height: 1.65;
  padding: 15px 17px;
}

.details-list {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 26px 0 0;
}

.detail {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding: 13px 12px 13px 0;
}

.detail__label {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail__value {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 650;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

#toast-region {
  bottom: 18px;
  display: grid;
  gap: 8px;
  left: 50%;
  max-width: min(420px, calc(100% - 24px));
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 100;
}

.toast {
  background: var(--navy);
  box-shadow: 0 12px 38px rgba(18, 38, 59, 0.25);
  color: var(--white);
  font-size: 0.86rem;
  padding: 13px 16px;
}

.toast--error {
  background: var(--danger);
}

.screen-loader {
  align-items: center;
  display: flex;
  min-height: 45vh;
  justify-content: center;
  text-align: center;
}

.screen-loader p {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .welcome-panel {
    min-height: 400px;
  }

  .feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0 35px;
    padding: 0;
  }

  .feature {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    grid-template-columns: 1fr;
    padding-right: 18px;
  }

  .feature + .feature {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 20px;
  }

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

  .brand-panel {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    position: static;
  }

  .brand-panel__eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -6px;
  }

  .brand-panel__art {
    grid-row: span 3;
  }
}

@media (max-width: 820px) {
  .masthead__note,
  .masthead__identity {
    display: none;
  }

  .stepbar__label {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
  }

  .stepbar__item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .stepbar__item::after {
    left: 50%;
  }

  .form-grid,
  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

  .question-nav {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .quiz-progress-card {
    padding: 14px;
  }

  .quiz-summary__person {
    max-width: 180px;
  }
}

@media (max-width: 560px) {
  .screen {
    padding-bottom: 40px;
  }

  .welcome-logo {
    margin-bottom: 26px;
    max-width: 235px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 75px minmax(0, 1fr);
  }

  .feature + .feature {
    border-left: 0;
    padding-left: 0;
  }

  .instruction-person {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions,
  .result-actions,
  .welcome-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .btn,
  .result-actions .btn,
  .welcome-actions .btn {
    width: 100%;
  }

  .quiz-summary {
    gap: 8px;
  }

  .quiz-summary__person {
    display: none;
  }

  .timer {
    padding: 6px 10px;
  }

  .quiz-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-actions__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-actions .btn {
    width: 100%;
  }

  .brand-panel {
    display: block;
  }

  .brand-panel__art {
    margin-bottom: 18px;
  }

  .result-layout,
  .result-statuses,
  .details-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  :root {
    --page-gutter: 10px;
  }

  .masthead {
    padding-bottom: 9px;
    padding-top: 9px;
  }

  .masthead__logo-wrap {
    width: 128px;
  }

  .screen {
    padding-top: 18px;
  }

  .screen--welcome {
    padding-top: 26px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .page-title {
    font-size: 2.35rem;
  }

  .question-title {
    font-size: 24px;
  }

  .content-card,
  .question-card,
  .result-card {
    padding: 20px 16px;
  }

  .welcome-panel {
    min-height: 0;
    padding: 28px 22px;
  }

  .answers button {
    min-height: 60px;
  }

  .question-nav {
    gap: 6px;
  }

  .question-nav__button {
    min-width: 0;
  }

  .quiz-progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .score-ring {
    height: 160px;
    width: 160px;
  }

  .score-ring__score {
    font-size: 3.1rem;
  }
}

@media (max-width: 340px) {
  .masthead__logo-wrap {
    width: 116px;
  }

  .timer__label {
    display: none;
  }

  .timer__value {
    min-width: 52px;
  }

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

  .answers button {
    gap: 9px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .answers button.is-selected {
    padding-left: 9px;
    padding-right: 9px;
  }
}

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

@media print {
  body {
    background: var(--white);
  }

  .masthead,
  .stepbar,
  .result-actions,
  #toast-region,
  .no-print {
    display: none !important;
  }

  .screen {
    max-width: none;
    padding: 0;
  }

  .result-layout {
    grid-template-columns: 1fr 1.4fr;
  }

  .score-panel,
  .result-card {
    box-shadow: none;
    break-inside: avoid;
  }
}
