:root {
  --passport-ink: #172238;
  --passport-blue: #234e91;
  --passport-blue-dark: #17345f;
  --passport-red: #c73a37;
  --passport-green: #2f684f;
  --passport-gold: #e8bb55;
  --passport-paper: #fbf5e7;
  --passport-line: #aaa18d;
}

body.passport-mode {
  color: var(--passport-ink);
  background:
    radial-gradient(circle at 12% 16%, rgb(255 255 255 / 70%) 0 2px, transparent 3px),
    linear-gradient(135deg, rgb(35 78 145 / 5%) 25%, transparent 25%) 0 0 / 22px 22px,
    #e9e4d8;
}

.office-passport-view[hidden] { display: none; }

.office-passport-view {
  width: min(100%, 1240px);
  margin: 0 auto;
  color: var(--passport-ink);
}

.passport-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.7fr) 132px;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding: clamp(30px, 5vw, 70px);
  overflow: hidden;
  border: 2px solid var(--passport-ink);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(90deg, transparent 49.7%, rgb(23 34 56 / 4%) 50%, transparent 50.3%) 0 0 / 24px 100%,
    var(--passport-paper);
  box-shadow: 9px 10px 0 var(--passport-ink);
}

.passport-heading::before {
  position: absolute;
  top: 19px;
  right: 19px;
  bottom: 19px;
  left: 19px;
  border: 1px solid rgb(35 78 145 / 28%);
  border-radius: 4px;
  content: "";
  pointer-events: none;
}

.passport-kicker,
.passport-desk-label,
.passport-recovery-kicker,
.passport-inspection-heading > div > p,
.passport-restore-desk > div > p,
.passport-results > header p {
  margin: 0 0 11px;
  color: var(--passport-blue);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.passport-heading h1 {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 9vw, 8.8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.73;
}

.passport-heading-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 4px;
}

.passport-heading-copy p {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.08;
}

.passport-heading-copy span {
  display: block;
  max-width: 33ch;
  color: #555c66;
  font-size: 0.76rem;
  font-weight: 680;
  line-height: 1.45;
}

.passport-entry-stamp {
  position: relative;
  z-index: 1;
  display: grid;
  width: 124px;
  height: 124px;
  padding: 15px;
  place-content: center;
  border: 4px double var(--passport-red);
  border-radius: 50%;
  color: var(--passport-red);
  text-align: center;
  transform: rotate(8deg);
}

.passport-entry-stamp::before,
.passport-entry-stamp::after {
  position: absolute;
  top: 50%;
  right: 7px;
  left: 7px;
  height: 1px;
  background: currentColor;
  content: "";
}

.passport-entry-stamp::before { transform: translateY(-21px); }
.passport-entry-stamp::after { transform: translateY(22px); }
.passport-entry-stamp span,
.passport-entry-stamp small { font-size: 0.58rem; font-weight: 900; letter-spacing: 0.16em; }
.passport-entry-stamp strong { font-size: 2.4rem; line-height: 1; }

.passport-recovery [hidden] { display: none !important; }

.passport-recovery {
  position: relative;
  margin: 38px 0 28px;
  overflow: hidden;
  border: 2px solid var(--passport-ink);
  background:
    linear-gradient(90deg, transparent 49.7%, rgb(23 34 56 / 4%) 50%, transparent 50.3%) 0 0 / 24px 100%,
    #f7efd9;
  box-shadow: 8px 9px 0 var(--passport-gold);
}

.passport-recovery[data-state="held"] { box-shadow: 8px 9px 0 var(--passport-red); }
.passport-recovery[data-state="clear"] { box-shadow: 8px 9px 0 var(--passport-green); }
.passport-recovery[data-state="unavailable"] { box-shadow: 8px 9px 0 var(--passport-line); }

.passport-recovery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(25px, 4vw, 42px);
  border-bottom: 1px solid var(--passport-ink);
}

.passport-recovery-kicker { margin-bottom: 10px; }

.passport-recovery-heading h2 {
  max-width: none;
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.passport-recovery-heading > div > p:last-child {
  max-width: 64ch;
  margin: 0;
  color: #565c65;
  font-size: 0.8rem;
  line-height: 1.5;
}

.passport-recovery-stamp {
  display: grid;
  width: 98px;
  height: 70px;
  place-content: center;
  border: 3px double var(--passport-red);
  border-radius: 3px;
  color: var(--passport-red);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-align: center;
  transform: rotate(5deg);
}

.passport-recovery-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(25px, 4vw, 42px);
  color: #fff;
  background: var(--passport-blue-dark);
}

.passport-recovery-summary strong,
.passport-recovery-summary span { display: block; }
.passport-recovery-summary strong { font-size: 0.82rem; }
.passport-recovery-summary div > span { margin-top: 4px; color: #dbe3f1; font-size: 0.65rem; }

.passport-recovery-lamp {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--passport-gold);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 14%);
}

[data-state="held"] .passport-recovery-lamp { background: #f07469; }
[data-state="clear"] .passport-recovery-lamp { background: #78c59e; }
[data-state="unavailable"] .passport-recovery-lamp { background: var(--passport-line); }

.passport-protected-list { padding: clamp(20px, 3vw, 34px); }

.passport-protected-entry {
  border: 2px solid var(--passport-ink);
  background: #fffdf7;
}

.passport-protected-entry + .passport-protected-entry { margin-top: 18px; }

.passport-protected-entry > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 16px 18px;
  background:
    linear-gradient(110deg, rgb(199 58 55 / 8%) 0 36%, transparent 36%),
    #fff9ec;
}

.passport-protected-number {
  align-self: stretch;
  display: grid;
  padding-right: 16px;
  place-content: center;
  border-right: 1px dashed var(--passport-line);
  color: var(--passport-red);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.passport-protected-entry h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.passport-protected-entry header p { margin: 3px 0 0; color: #68666a; font-size: 0.68rem; }

.passport-protected-entry button {
  min-height: 42px;
  padding: 9px 14px;
  border: 2px solid var(--passport-ink);
  border-radius: 3px;
  color: var(--passport-ink);
  background: #fffdf7;
  box-shadow: 3px 3px 0 var(--passport-ink);
  font: inherit;
  font-size: 0.69rem;
  font-weight: 850;
  line-height: 1.15;
  cursor: pointer;
}

.passport-protected-entry button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--passport-ink); }
.passport-protected-entry button:focus-visible { outline: 3px solid var(--passport-red); outline-offset: 3px; }
.passport-protected-entry button:disabled { opacity: 0.55; cursor: wait; transform: none; }

.passport-protected-details {
  padding: 0 18px 19px;
  border-top: 1px dashed var(--passport-line);
  animation: passport-paper-release 180ms ease-out both;
}

.passport-protected-details dl {
  display: grid;
  grid-template-columns: minmax(110px, 0.55fr) minmax(180px, 1.8fr) minmax(80px, 0.45fr);
  margin: 0 -18px 17px;
}

.passport-protected-details dl div {
  min-width: 0;
  padding: 15px 18px;
}

.passport-protected-details dl div + div { border-left: 1px dashed var(--passport-line); }

.passport-protected-details dt {
  margin-bottom: 5px;
  color: #6b6d72;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.passport-protected-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.4;
}

.passport-protected-details > p {
  max-width: 62ch;
  margin: 0 0 16px;
  color: #5d6168;
  font-size: 0.7rem;
  line-height: 1.45;
}

.passport-protected-entry .passport-recovery-remove {
  color: #7d2a28;
  border-color: var(--passport-red);
  box-shadow: 3px 3px 0 var(--passport-red);
}

.passport-recovery-confirmation {
  margin-top: 18px;
  padding: 17px;
  border: 2px solid var(--passport-red);
  color: #622927;
  background: #fff1e9;
}

.passport-recovery-confirmation > strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.passport-recovery-confirmation > p { margin: 5px 0 14px; font-size: 0.7rem; line-height: 1.45; }
.passport-recovery-confirmation > div { display: flex; flex-wrap: wrap; gap: 10px; }
.passport-protected-entry .passport-recovery-confirm { color: #fff; background: var(--passport-red); }

.passport-recovery-clear {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: clamp(20px, 3vw, 34px);
  padding: 18px;
  border: 1px dashed var(--passport-green);
  color: #234f3d;
  background: #eef7eb;
}

.passport-recovery-clear > span {
  padding: 7px;
  border: 2px solid currentColor;
  border-radius: 2px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

.passport-recovery-clear p { margin: 0; font-size: 0.73rem; line-height: 1.45; }
.passport-recovery-clear strong { display: block; margin-bottom: 2px; }

.passport-recovery-status {
  min-height: 0;
  margin: 0;
  padding: 0 clamp(25px, 4vw, 42px) 24px;
  text-align: right;
}

.passport-recovery + .passport-counter { margin-top: 0; }

@keyframes passport-paper-release {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.passport-counter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 38px 0 42px;
  border: 2px solid var(--passport-ink);
  background: var(--passport-paper);
  box-shadow: 8px 9px 0 var(--passport-ink);
}

.passport-counter-panel {
  min-width: 0;
  padding: clamp(26px, 4vw, 48px);
}

.passport-counter-panel + .passport-counter-panel { border-left: 2px dashed var(--passport-line); }

.passport-desk-label {
  display: flex;
  gap: 9px;
  align-items: center;
}

.passport-desk-label span {
  display: grid;
  width: 28px;
  height: 28px;
  place-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.passport-counter-panel h2,
.passport-inspection-heading h2,
.passport-results h2 {
  max-width: none;
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.passport-counter-panel > p:not(.passport-desk-label, .passport-status) {
  max-width: 47ch;
  margin: 0 0 22px;
  color: #565c65;
  font-size: 0.88rem;
  line-height: 1.55;
}

.passport-counter button,
.passport-inspection button,
.passport-file-button,
.passport-results button,
.passport-results a {
  font: inherit;
}

.passport-primary,
.passport-button-row button,
.passport-file-button,
.passport-story-choice button,
.passport-result-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 2px solid var(--passport-ink);
  border-radius: 3px;
  color: var(--passport-ink);
  background: #fffdf7;
  box-shadow: 3px 3px 0 var(--passport-ink);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}

.passport-primary {
  color: #fff;
  background: var(--passport-blue);
}

.passport-primary:hover,
.passport-button-row button:hover,
.passport-file-button:hover,
.passport-story-choice button:hover,
.passport-result-action:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--passport-ink); }

.passport-primary:disabled,
.passport-button-row button:disabled,
.passport-story-choice button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 2px 2px 0 var(--passport-line);
}

.passport-counter button:focus-visible,
.passport-file-button:focus-within,
.passport-inspection button:focus-visible,
.passport-inspection input:focus-visible + span,
.passport-results button:focus-visible,
.passport-results a:focus-visible,
.passport-counter textarea:focus-visible {
  outline: 3px solid var(--passport-red);
  outline-offset: 3px;
}

.passport-copy-panel {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--passport-line);
}

.passport-copy-panel label,
.passport-paste-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.passport-counter textarea {
  display: block;
  width: 100%;
  min-height: 128px;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--passport-ink);
  border-radius: 2px;
  color: var(--passport-ink);
  background: #fffefb;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  line-height: 1.45;
}

.passport-counter textarea::placeholder { color: #767b82; }

.passport-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  align-items: center;
  margin-top: 13px;
}

#passport-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.passport-status,
.passport-small-status {
  min-height: 1.35em;
  margin: 14px 0 0;
  font-size: 0.74rem;
  font-weight: 730;
  line-height: 1.4;
}

.passport-status.is-warning,
.passport-small-status.is-warning { color: #a52b2d; }

.passport-inspection {
  padding: clamp(24px, 4vw, 46px);
  border: 2px solid var(--passport-ink);
  background: #f9f3e4;
  box-shadow: 8px 9px 0 var(--passport-ink);
}

.passport-inspection-heading {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--passport-line);
}

.passport-inspection-heading h2 { margin-bottom: 0; }

.passport-inspection-heading > p {
  max-width: 28ch;
  margin: 0;
  color: #656972;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: right;
}

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

.passport-story-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--passport-ink);
  background: #fffdf7;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.passport-story-card::after {
  position: absolute;
  top: 54px;
  right: -24px;
  width: 100px;
  height: 1px;
  background: rgb(35 78 145 / 25%);
  content: "";
  transform: rotate(-34deg);
}

.passport-story-card[data-state="selected"] { box-shadow: 5px 6px 0 var(--passport-blue); transform: translate(-2px, -2px); }
.passport-story-card[data-state="protected"] { box-shadow: inset 0 -5px var(--passport-gold); }
.passport-story-card[data-state="invalid"] { box-shadow: inset 0 -5px var(--passport-red); }
.passport-story-card[data-state="same"] { box-shadow: inset 0 -5px var(--passport-green); }
.passport-story-card:focus-visible { outline: 4px solid var(--passport-red); outline-offset: 4px; }

.passport-story-card > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 88px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--passport-ink);
  background: rgb(35 78 145 / 6%);
}

.passport-story-number {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 850;
}

.passport-story-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.passport-story-card header p { margin: 2px 0 0; color: #646873; font-size: 0.66rem; }

.passport-mark {
  position: relative;
  z-index: 1;
  padding: 6px 7px;
  border: 2px solid currentColor;
  border-radius: 2px;
  color: var(--passport-blue);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.09em;
  transform: rotate(4deg);
}

[data-state="invalid"] .passport-mark { color: var(--passport-red); }
[data-state="same"] .passport-mark { color: var(--passport-green); }
[data-state="protected"] .passport-mark { color: #926318; }

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

.passport-comparison section {
  min-width: 0;
  min-height: 148px;
  padding: 18px;
}

.passport-comparison section + section { border-left: 1px dashed var(--passport-line); }

.passport-comparison p {
  margin: 0 0 17px;
  color: #686d76;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.passport-comparison strong,
.passport-comparison span {
  display: block;
  overflow-wrap: anywhere;
}

.passport-comparison strong {
  margin-bottom: 7px;
  font-size: 0.83rem;
  line-height: 1.28;
}

.passport-comparison span { color: #5b6069; font-size: 0.72rem; line-height: 1.45; }

.passport-comparison-note {
  min-height: 42px;
  margin: 0;
  padding: 11px 18px;
  border-top: 1px solid var(--passport-line);
  color: #4f555e;
  background: #f5efe2;
  font-size: 0.69rem;
  font-weight: 720;
  line-height: 1.4;
}

.passport-story-choice {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 17px;
  border-top: 1px dashed var(--passport-line);
}

.passport-story-choice label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.passport-story-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--passport-blue);
}

.passport-story-choice button { min-height: 38px; padding: 8px 11px; color: #7d2a28; font-size: 0.66rem; }

.passport-restore-desk {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 22px;
  border: 2px solid var(--passport-ink);
  background: var(--passport-gold);
}

.passport-restore-desk > div > p { margin-bottom: 5px; color: var(--passport-ink); }
.passport-restore-desk strong,
.passport-restore-desk span { display: block; }
.passport-restore-desk strong { font-size: 0.86rem; }
.passport-restore-desk span { margin-top: 4px; font-size: 0.7rem; }
.passport-restore-status { text-align: right; }

.passport-results {
  margin-top: 42px;
  padding: clamp(25px, 4vw, 44px);
  border: 2px solid var(--passport-ink);
  color: #fdf9ee;
  background: var(--passport-blue-dark);
  box-shadow: 8px 9px 0 var(--passport-gold);
}

.passport-results > header {
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgb(255 255 255 / 35%);
}

.passport-results > header p { color: #f6cf72; }
.passport-results h2 { margin: 0; color: #fff; }

.passport-result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px dashed rgb(255 255 255 / 28%);
}

.passport-result-row:last-child { border-bottom: 0; }
.passport-result-row.is-lead { padding: 23px; border: 2px solid #f6cf72; background: rgb(255 255 255 / 7%); }

.passport-result-seal {
  display: grid;
  width: 46px;
  height: 46px;
  place-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #f6cf72;
  font-size: 0.65rem;
  font-weight: 900;
}

.passport-result-row.is-failure .passport-result-seal { color: #ffaaa5; }
.passport-result-row strong,
.passport-result-row span { display: block; }
.passport-result-row strong { margin-bottom: 4px; font-size: 0.86rem; }
.passport-result-row span { color: #d9dce3; font-size: 0.72rem; line-height: 1.42; }
.passport-result-action { color: var(--passport-ink); background: #f6cf72; white-space: nowrap; }

.passport-footer {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 27px 4px 10px;
  font-size: 0.67rem;
  font-weight: 760;
}

.passport-footer p { margin: 0; }
.passport-footer a { color: inherit; text-underline-offset: 3px; }
.passport-footer a:focus-visible { outline: 3px solid var(--passport-red); outline-offset: 3px; }

@media (max-width: 960px) {
  .passport-heading { grid-template-columns: minmax(0, 1fr) minmax(230px, 0.7fr); }
  .passport-entry-stamp { position: absolute; top: 26px; right: 30px; width: 90px; height: 90px; opacity: 0.2; }
  .passport-counter { grid-template-columns: minmax(0, 1fr); }
  .passport-counter-panel + .passport-counter-panel { border-top: 2px dashed var(--passport-line); border-left: 0; }
  .passport-story-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .experience-switch { width: 100%; }
  .experience-switch a { min-width: 0; padding-right: 9px; padding-left: 9px; flex: 1 1 33.333%; }
  .experience-switch a span { font-size: 0.66rem; }
  .experience-switch a small { font-size: 0.52rem; }
  .passport-heading { display: block; padding: 40px 25px 34px; }
  .passport-heading h1 { font-size: clamp(3.8rem, 20vw, 6.2rem); }
  .passport-heading-copy { margin-top: 38px; }
  .passport-entry-stamp { top: 22px; right: 18px; }
  .passport-counter-panel,
  .passport-recovery-heading,
  .passport-inspection,
  .passport-results { padding: 24px 19px; }
  .passport-recovery-heading { grid-template-columns: minmax(0, 1fr); }
  .passport-recovery-stamp { position: absolute; top: 20px; right: 18px; opacity: 0.18; }
  .passport-recovery-summary { padding-right: 19px; padding-left: 19px; }
  .passport-protected-list { padding: 17px; }
  .passport-protected-entry > header { grid-template-columns: auto minmax(0, 1fr); }
  .passport-protected-entry > header button { grid-column: 1 / -1; width: 100%; }
  .passport-protected-details dl { grid-template-columns: minmax(0, 1fr); }
  .passport-protected-details dl div + div { border-top: 1px dashed var(--passport-line); border-left: 0; }
  .passport-protected-details > .passport-recovery-remove { width: 100%; }
  .passport-recovery-confirmation > div { align-items: stretch; flex-direction: column; }
  .passport-recovery-confirmation button { width: 100%; }
  .passport-recovery-status { padding-right: 19px; padding-left: 19px; text-align: left; }
  .passport-inspection-heading { display: block; }
  .passport-inspection-heading > p { margin-top: 12px; text-align: left; }
  .passport-comparison { grid-template-columns: minmax(0, 1fr); }
  .passport-comparison section { min-height: 0; }
  .passport-comparison section + section { border-top: 1px dashed var(--passport-line); border-left: 0; }
  .passport-story-choice,
  .passport-restore-desk { align-items: stretch; flex-direction: column; }
  .passport-story-choice button,
  .passport-restore-desk button { width: 100%; }
  .passport-restore-status { text-align: left; }
  .passport-result-row { grid-template-columns: auto minmax(0, 1fr); }
  .passport-result-action { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 430px) {
  .experience-switch a { min-height: 50px; padding: 7px 5px; }
  .experience-switch a span { font-size: 0.61rem; }
  .experience-switch a small { display: none; }
  .passport-heading h1 { font-size: clamp(3.3rem, 20vw, 5.1rem); }
  .passport-story-card > header { grid-template-columns: auto minmax(0, 1fr); }
  .passport-mark { grid-column: 1 / -1; width: fit-content; margin-left: 42px; }
  .passport-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .passport-story-card,
  .passport-primary,
  .passport-button-row button,
  .passport-file-button,
  .passport-story-choice button,
  .passport-result-action,
  .passport-protected-entry button { transition: none !important; }

  .passport-protected-details { animation: none; }

  .passport-primary:hover,
  .passport-button-row button:hover,
  .passport-file-button:hover,
  .passport-story-choice button:hover,
  .passport-result-action:hover,
  .passport-protected-entry button:hover { transform: none; box-shadow: 3px 3px 0 var(--passport-ink); }
}
