.office-quiz {
  --quiz-header: var(--header-height);
  --quiz-measure: 880px;
  min-height: calc(100svh - var(--quiz-header));
}
.office-quiz h1:focus { outline: none; }
.office-kicker { display: flex; align-items: center; gap: 11px; }
.office-kicker > span {
  width: .65em;
  height: .65em;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.office-opening, .office-results-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
  padding: calc(var(--quiz-header) + clamp(42px, 7vh, 90px))
    max(var(--gutter), calc((100% - var(--max)) / 2)) clamp(48px, 8vh, 100px);
  color: white;
  background: linear-gradient(100deg, #030849a6, #03084933),
    var(--blue) url('/assets/media/nominee-header-texture.jpg') center / cover;
}
.office-opening { min-height: 100svh; }
.office-opening h1 {
  font-size: clamp(74px, 10vw, 154px);
  line-height: .86;
  margin: 0 0 24px;
}
.office-opening h1 em { font-style: normal; color: var(--lime); }
.office-opening-copy > p:not(.detail-label) { max-width: 45ch; }
.office-opening-copy .office-kicker, .office-results-intro .office-kicker { color: var(--lime); }
.office-opening-preview, .office-lead-cards { display: grid; gap: 12px; min-width: 0; }
.office-opening-preview > .detail-label { margin: 0 0 3px; }
.office-preview-card, .office-lead-card {
  color: var(--ink);
  background: white;
  padding: clamp(18px, 2.6vw, 36px);
  border-radius: 3px;
  border-top: 4px solid var(--lime);
}
.office-preview-card { padding-block: clamp(14px, 1.7vw, 22px); }
.office-preview-card:nth-of-type(2) { margin-inline-start: clamp(0px, 2vw, 32px); }
.office-preview-card:nth-of-type(3) { margin-inline-start: clamp(0px, 4vw, 64px); }
.office-preview-card .office-kicker, .office-lead-card .office-kicker { color: var(--blue); margin-bottom: 7px; }
.office-preview-card h2 { font-size: clamp(30px, 3vw, 46px); margin-bottom: 3px; }
.office-preview-card p:last-child { margin: 0; font-size: .9375rem; }
.office-lead-card h2 { font-size: clamp(44px, 5vw, 78px); margin-bottom: 12px; }
.office-lead-card p:not(.detail-label) { margin-bottom: 12px; }
.office-lead-card .office-back { padding-block: 4px; }
.office-opening .office-footnote { margin: 18px 0 0; font-size: .875rem; color: #f1f2ff; }
.office-opening .button[hidden] { display: none; }
.office-opening .button:focus-visible { outline-color: white; }

.office-question {
  width: min(100%, calc(var(--quiz-measure) + 2 * var(--gutter)));
  min-height: calc(100svh - var(--quiz-header));
  padding: clamp(32px, 5.5vh, 75px) var(--gutter) 52px;
  margin: auto;
}
.office-question h1, .office-results h1 {
  font-size: clamp(58px, 8vw, 108px);
  line-height: .91;
  margin-bottom: .24em;
}
.office-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  margin-bottom: clamp(26px, 5vh, 52px);
  color: var(--blue);
}
.office-progress p { margin: 0; }
.office-progress progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--line);
  accent-color: var(--blue);
}
.office-progress progress::-webkit-progress-bar { background: var(--line); }
.office-progress progress::-webkit-progress-value { background: var(--blue); }
.office-progress progress::-moz-progress-bar { background: var(--blue); }
#office-instruction { color: var(--muted); margin-bottom: 18px; }
.office-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.office-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 58px;
  border: 1px solid #b6b9b0;
  border-radius: 3px;
  background: white;
  font-size: 1rem;
  line-height: 1.38;
  cursor: pointer;
}
.office-option:hover { border-color: var(--blue); }
.office-option:has(:checked) { background: #e9edff; border-color: var(--blue); color: #06157d; }
.office-option:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.office-option input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; flex: none; }
.office-option input:focus-visible { outline-offset: 2px; }
.office-text { display: block; width: 100%; padding: 14px; color: var(--ink); border: 1px solid #888; border-radius: 3px; }
.office-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.office-forward { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.office-back {
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 10px 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.office-back:hover { color: var(--blue); }
.office-error { color: #9a1b21; margin: 12px 0; font-size: .9375rem; }
.office-error:empty { margin: 20px 0 0; }
.office-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.office-placeholder .office-kicker, .office-review .office-kicker { color: var(--blue); }
.office-review ul { list-style: none; padding: 0; margin: 26px 0; }
.office-review li { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 10px 0; }

.office-results { background: var(--paper); }
.office-results-body { max-width: calc(1140px + 2 * var(--gutter)); margin: auto; padding: clamp(34px, 6vw, 70px) var(--gutter) 75px; }
.office-results-intro > p { max-width: 52ch; }
.office-result-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.office-result-actions .office-back { color: white; }
.office-result-actions .office-back:hover { color: var(--lime); }
.office-result-actions .office-back:focus-visible { outline-color: white; }
.office-result-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.office-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.office-card-grid:empty { display: none; }
.office-card-grid > :only-child { grid-column: 1 / -1; }
.office-result-card {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 3px;
  padding: clamp(20px, 3vw, 38px);
}
.office-result-card .office-kicker { color: var(--blue); }
.office-result-card h2 { font-size: clamp(46px, 5vw, 70px); margin-bottom: .1em; }
.office-result-card h3 { font: 700 1.1rem/1.4 Manrope, sans-serif; text-transform: none; }
.office-result-card p, .office-result-card li, .office-practical { font-size: 1rem; }
.office-selection, .office-sources { color: var(--muted); }
.office-result-card .office-sources { margin-bottom: 0; font-size: .875rem; }
.office-result-card details, .office-result-note[open] > summary { margin-bottom: 18px; }
.office-result-card details { border-top: 1px solid var(--line); padding-top: 12px; }
.office-result-card summary, .office-result-note summary { cursor: pointer; font-weight: 700; }
.office-result-card details > p:first-of-type { margin-top: 12px; }
.office-practical dt { font-weight: 700; }
.office-practical dd { margin: 0 0 12px; }
.office-alternatives, .office-result-note { margin-top: 32px; }
.office-result-note { border-top: 1px solid #aaa; padding-top: 24px; }
.office-join {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--lime);
  padding: clamp(24px, 5vw, 62px);
  margin-top: 46px;
}
.office-join p:last-child { margin: 0; }
.office-join .office-actions { flex-direction: column; align-items: flex-start; }
.office-join .button { background: var(--ink); border-color: var(--ink); color: white; }
.office-join .button:hover { background: var(--blue); border-color: var(--blue); }
@media (max-width: 900px) {
  .office-opening, .office-results-hero { grid-template-columns: 1fr; }
  .office-opening-preview, .office-lead-cards { width: min(100%, 560px); }
}
@media (max-width: 620px) {
  .office-opening h1 { font-size: clamp(64px, 14.5vw, 88px); }
  .office-options, .office-card-grid, .office-join { grid-template-columns: 1fr; }
  .office-progress .detail-label { font-size: .72rem; }
  .office-progress { column-gap: 10px; }
  .office-progress > span { white-space: nowrap; }
  .office-question .button { min-height: 52px; padding: 14px 16px; gap: 10px; }
}

.office-quiz-page:not(:has(.office-opening, .office-results-hero)) .site-header {
  position: sticky;
  top: 0;
  background: var(--blue) url('/assets/media/nominee-header-texture.jpg') center / cover;
  border-bottom-color: #ffffff26;
  animation: none;
}

.office-place-note { margin: 8px 0 0; color: var(--muted); font-size: .875rem; }
#office-place-status:empty { display: none; }

.office-place-field { position: relative; }

.office-place-options {
  position: absolute;
  z-index: 2;
  top: calc(100% + 4px);
  inset-inline: 0;
  box-sizing: border-box;
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #888;
  border-radius: 3px;
  box-shadow: 0 6px 16px rgb(0 0 0 / 12%);
}

.office-place-options li {
  padding: 10px 14px;
  margin: 0;
  cursor: pointer;
}

.office-place-options li:hover,
.office-place-options li[aria-selected="true"] {
  color: var(--blue);
  background: var(--paper);
}

.office-place-note a { text-decoration: underline; }
.office-analytics-preference {
  align-items: flex-start;
  box-sizing: border-box;
  max-width: min(100%, 26rem);
  margin: 1rem 0;
  padding: .75rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 6px;
  background: transparent;
  color: #f1f2ff;
  font-size: .75rem;
  line-height: 1.5;
}

.office-analytics-preference[hidden] { display: none; }
