@font-face {
  font-family: "Editorial New";
  src: url("/fonts/EditorialNew-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Editorial New";
  src: url("/fonts/PPEditorialNew-ItalicVariable.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("/fonts/PPNeueMontreal-Book.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("/fonts/PPNeueMontreal-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color: #040d07;
  background: white;
  font-family: "PP Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html {
  background: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body { margin: 0; min-width: 320px; background: white; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
.app-shell { width: min(1512px, 100%); margin: 0 auto; overflow: hidden; background: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.editorial-hero { padding: 150px 44px 112px; border-bottom: 1px solid #707070; }
.hero-title {
  width: min(813px, 100%); margin: 0 auto; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: #232323; text-align: center; font-family: "Editorial New", Georgia, serif;
  font-weight: 200;
}
.hero-title span { width: 100%; font-size: clamp(44px, 4.75vw, 72px); font-style: italic; font-weight: 200; line-height: 1.2; }
.hero-title strong { width: 100%; font-size: clamp(92px, 10vw, 151px); font-weight: 200; letter-spacing: -.02em; line-height: 1; }
.hero-copy-shell { position: relative; width: min(903px, 100%); margin: 112px auto 0; }
.hero-copy {
  display: grid; grid-template-columns: repeat(2, minmax(0, 426px)); gap: 51px;
  color: #040d07; font-size: 18px; line-height: 1.4; text-align: justify;
}
.hero-copy p { margin: 0 0 25px; }
.hero-copy p:last-child { margin-bottom: 0; }
.hero-copy-fade, .hero-read-more { display: none; }

.finder-section { min-height: 923px; padding: 161px 44px; }
.finder-inner { width: 100%; margin: 0 auto; }
.finder-title {
  width: min(399px, 100%); margin: 0 auto; color: #232323; text-align: center;
  font-family: "PP Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 46px; font-weight: 500; line-height: normal; letter-spacing: -.46px;
}
.wizard-layout { margin-top: 125px; }
.question-card {
  width: min(588px, 100%); margin: 0 auto; padding: 0; display: block; scroll-margin-top: 72px;
}
.question-body { display: block; min-width: 0; }
.wizard-controls { display: flex; flex-direction: column; gap: 16px; margin-top: 68px; }
.wizard-progress { width: 100%; height: 7px; overflow: hidden; border-radius: 0; background: #ededed; }
.wizard-progress span { display: block; width: var(--wizard-progress); height: 100%; border-radius: 0; background: #262626; transition: width .2s ease; }
.question-heading { margin: 0 0 28px; }
.question-heading h3 { margin: 0 0 6px; color: #000; font-size: 20px; font-weight: 400; line-height: normal; }
.question-heading p, .field-hint { color: #a1a0a0; }
.question-heading p { margin: 0; font-size: 16px; line-height: normal; letter-spacing: -.16px; }
.question-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.required-mark { margin-left: .2em; color: #d20f2f; font-weight: 600; }
.optional-mark { color: #777; font-weight: 400; }

.field-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  color: #000; font-family: "PP Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: 0;
}
.field-hint {
  margin: -4px 0 0; font-family: "PP Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.35; letter-spacing: 0;
}
.field-hint-banner { padding: 8px 10px; color: #705700; background: #fff1a8; line-height: 1.3; }
.field input, .field select {
  width: 100%; height: 50px; min-height: 50px; padding: 14px 16px; color: #191919; background: white;
  border: 1px solid #aaa9ab; border-radius: 0; outline: none;
  font-family: "PP Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px; font-weight: 400; letter-spacing: 0;
}
.field select {
  display: block; padding-right: 48px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23777' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px;
}
.field select:required:invalid, .field select option[value=""] { color: #a1a0a0; }
.field select option:not([value=""]) { color: #191919; }
.field input::placeholder {
  color: #a1a0a0; opacity: 1; font-family: "PP Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px; font-weight: 400; letter-spacing: 0;
}
.field input:focus, .field select:focus { border-color: #262626; box-shadow: inset 0 0 0 1px #262626; }
.check-row { display: flex; gap: 13px; align-items: center; margin-top: 28px; color: #a1a0a0; font-size: 16px; line-height: 1.2; letter-spacing: -.16px; }
.check-row input {
  width: 20px; height: 20px; margin: 0; flex: 0 0 auto; appearance: none; -webkit-appearance: none;
  border: 1px solid #aaa9ab; border-radius: 50%; background: white;
}
.check-row input:checked { border-color: #262626; background: radial-gradient(circle, #262626 0 4px, transparent 4.5px); }
.check-row input:focus-visible { outline: 2px solid #262626; outline-offset: 3px; }

.choice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.choice { min-height: 51px; padding: 14px 16px; display: flex; align-items: center; gap: 13px; color: #666; background: white; border: 1px solid #aaa9ab; text-align: left; cursor: pointer; }
.choice:hover, .choice.selected { color: white; background: #262626; border-color: #262626; }
.choice-radio { position: relative; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid #777; border-radius: 50%; }
.choice-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: currentColor; transform: scale(0); }
.choice:hover .choice-radio, .choice.selected .choice-radio { border-color: currentColor; }
.choice.selected .choice-radio::after { transform: scale(1); }
.form-group { display: grid; gap: 18px; padding: 20px 0 0; border-top: 1px solid #c9c8c9; }
.field-stack > .location-group:first-child { padding-top: 0; border-top: 0; }
.form-group + .form-group { margin-top: 28px; }
.form-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.form-group-heading h4 { margin: 0; color: #000; font-size: 17px; font-weight: 500; line-height: 1.2; }
.form-group-heading span { color: #777; font-size: 14px; line-height: 1.2; }
.add-button, .text-button { width: fit-content; padding: 0; color: #040d07; background: transparent; border: 0; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 500; }
.text-button { color: #777; }
.wizard-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px;
  width: 100%; height: 46px; padding: 12px 36px; color: #191919; background: white;
  border: 0; border-radius: 0; font-size: 16px; font-weight: 600; line-height: 1.15;
  letter-spacing: -.16px; white-space: nowrap;
}
.button.secondary { flex-basis: 46px; width: 100%; }
.button.primary { order: -1; color: white; background: #262626; }
.button.secondary:hover:not(:disabled) { background: #e8e7e9; }
.button.primary:hover:not(:disabled) { background: #111; }
.button:focus-visible, .choice:has(.choice-input:focus-visible), .add-button:focus-visible, .text-button:focus-visible { outline: 2px solid #262626; outline-offset: 3px; }

.review-list { display: grid; gap: 0; margin: 0; border-top: 1px solid #c9c8c9; }
.review-list div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid #c9c8c9; }
.review-list dt { color: #777; font-size: 14px; }
.review-list dd { margin: 0; overflow-wrap: anywhere; }

.post-search-page {
  min-height: calc(100vh - 132px); padding: 134px 44px 96px; color: #040d07; background: white; scroll-margin-top: 48px;
}
.post-search-inner { width: min(903px, 100%); margin: 0 auto; }
.post-search-title {
  width: min(210px, 100%); margin: 0 0 20px; color: #232323;
  font-size: 26px; font-weight: 500; line-height: normal; letter-spacing: -.26px;
}
.post-search-inner > .review-list, .search-activity, .outcome-message { width: min(533px, 100%); }
.search-activity { margin-top: 72px; }
.search-status-button {
  width: 100%; height: 46px; display: flex; align-items: center; justify-content: center;
  color: white; background: rgba(38, 38, 38, .5); font-size: 16px; font-weight: 500;
}
.search-activity-details { margin-top: 21px; }
.search-activity-progress { width: 100%; height: 7px; overflow: hidden; background: #ededed; }
.search-activity-progress span { display: block; height: 100%; background: #3b3b3b; transition: width .2s ease; }
.search-activity-details p {
  margin: 10px 0 0; color: rgba(38, 38, 38, .5); font-size: 16px; font-weight: 500; line-height: normal;
}
.outcome-message { margin-top: 72px; }
.outcome-message h2 {
  width: min(266px, 100%); margin: 0; color: #232323;
  font-size: 26px; font-weight: 500; line-height: normal; letter-spacing: -.26px;
}
.outcome-message.no-match h2 { color: #e7bd00; }
.outcome-copy { margin-top: 29px; font-size: 18px; font-weight: 400; line-height: 1.4; }
.outcome-copy p { margin: 0; }
.outcome-copy ol { margin: 25px 0 0; padding-left: 27px; }
.outcome-copy p:last-child { margin-top: 29px; }
.likely-match-copy { display: grid; gap: 29px; }
.likely-match-copy p:last-child { margin-top: 0; }
.post-search-alert {
  width: min(533px, 100%); margin: 72px 0 0; padding: 18px 0;
  color: #751c1c; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor;
  font-size: 18px; line-height: 1.4;
}
.result-data { margin-top: 72px; }
.result-data > h3, .result-data > section > h3, .search-details > h3 {
  margin: 0 0 20px; color: #232323; font-size: 20px; font-weight: 500; line-height: 1.2;
}
.result-data > section { margin-top: 72px; }
.result-data .table-scroll { margin-top: 0; }
.result-data .table-shell { margin-top: 0; }
.search-details { margin-top: 72px; }
.search-details > p { max-width: 700px; margin: 0 0 12px; font-size: 16px; line-height: 1.4; }
.search-details details:first-of-type { margin-top: 28px; }

.search-panel, .results-panel, .alert-panel {
  width: min(1424px, calc(100% - 88px)); margin: 0 auto 96px; padding: 68px clamp(24px, 8vw, 119px);
  border-top: 7px solid #232323;
}
.search-panel h2, .results-panel h2 {
  margin: 0 0 24px; font-family: "Editorial New", Georgia, serif;
  font-size: clamp(44px, 4vw, 64px); font-weight: 400; line-height: 1;
}
.results-panel > p { max-width: 900px; font-size: 18px; line-height: 1.45; }
.results-panel h3 { margin: 64px 0 20px; font-size: 28px; font-weight: 500; }
.alert-panel { color: #751c1c; border-top-color: #751c1c; }
progress { width: min(460px, 100%); height: 7px; border: 0; accent-color: #262626; }

.table-shell { position: relative; max-width: 100%; margin: 28px 0 52px; }
.table-shell::after {
  content: ""; position: absolute; z-index: 2; top: 0; right: 0; bottom: 12px; width: 72px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), white); opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.table-shell.has-more::after { opacity: 1; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 28px 0 52px; }
.table-shell .table-scroll { margin: 0; }
table { width: 100%; min-width: 960px; border-collapse: collapse; background: transparent; font-size: 14px; line-height: 1.35; }
th, td { padding: 12px 13px; text-align: left; vertical-align: top; border: 1px solid #cfced0; }
th { color: white; background: #232323; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
td { background: rgba(255, 255, 255, .45); }
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .8); }
.results-table { width: max-content; min-width: 100%; }
.results-table th, .results-table td { vertical-align: middle; }
.result-name-cell, .result-relative-cell, .result-relationship-cell, .result-constituency-cell { white-space: nowrap; }
.result-station-cell { width: 260px; max-width: 260px; }
.result-station-cell span { display: block; width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-results-list { display: none; }
a { color: #040d07; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
details { padding: 16px 0; border-top: 1px solid #c9c8c9; }
details:last-child { border-bottom: 1px solid #c9c8c9; }
summary { cursor: pointer; font-size: 17px; font-weight: 500; }
pre { max-width: 100%; overflow: auto; padding: 20px; background: white; border: 1px solid #cfced0; border-radius: 0; }

.editorial-footer { min-height: 132px; padding: 0; background: white; }
.footer-panel {
  min-height: 132px; padding: 48px 24px 43px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  color: #232323; background: white; text-align: center;
}
.footer-panel p { margin: 0; opacity: .5; font-size: 14px; font-weight: 400; line-height: normal; }
.footer-panel small { margin: 2px 0 0; opacity: .5; font-size: 14px; font-weight: 400; line-height: normal; }
.footer-panel small span { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 760px) {
  .editorial-hero { padding: 171px 23px 35px; }
  .hero-title { width: min(293px, 100%); gap: 16.88px; }
  .hero-title span { font-size: 26.669px; line-height: 40px; }
  .hero-title strong { font-size: 77.1px; line-height: 86px; }
  .hero-copy-shell { width: min(347px, 100%); height: 285px; margin-top: 99px; overflow: hidden; }
  .hero-copy-shell.expanded { height: auto; overflow: visible; }
  .hero-copy { display: block; font-size: 18px; line-height: 1.4; text-align: center; }
  .hero-copy p { margin-bottom: 25.2px; }
  .hero-copy-fade {
    position: absolute; z-index: 1; bottom: 0; left: calc(50% - 50vw); display: block;
    width: 100vw; height: 131px; background: linear-gradient(to bottom, rgba(255,255,255,0), white 79%);
    pointer-events: none;
  }
  .hero-read-more {
    position: relative; z-index: 2; display: block; width: min(349px, 100%); height: 17px;
    margin: -7px auto 0; padding: 0; color: #aaa; background: transparent; border: 0;
    font-size: 14px; font-weight: 500; line-height: 17px; letter-spacing: .98px; text-align: center; text-transform: uppercase;
  }
  .editorial-hero.expanded .hero-read-more { margin-top: 24px; }
  .finder-section { min-height: 645px; padding: 84px 32px 39px; }
  .finder-title {
    width: 210px; margin: 0; font-family: "PP Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 26px; font-weight: 500; line-height: 1.19; letter-spacing: -.26px; text-align: left;
  }
  .wizard-layout { margin-top: 56px; }
  .question-card { display: block; width: 100%; scroll-margin-top: 32px; }
  .question-body { display: block; }
  .wizard-controls { display: flex; flex-direction: column; gap: 16px; margin-top: 68px; }
  .wizard-progress { width: 100%; height: 7px; margin: 0; }
  .question-heading { margin-bottom: 28px; }
  .question-heading h3 { font-size: 20px; font-weight: 400; line-height: 1.2; }
  .question-heading p, .check-row { font-size: 16px; line-height: 1.2; }
  .field input, .field select { min-height: 50px; padding: 14px 16px; }
  .check-row { margin-top: 28px; }
  .choice-list { grid-template-columns: 1fr; }
  .wizard-actions { display: flex; flex-direction: column; gap: 8px; margin: 0; }
  .button, .button.secondary { width: 100%; flex: 0 0 46px; }
  .button.primary { order: -1; }
  .review-list div { grid-template-columns: 1fr; gap: 4px; }
  .post-search-page { padding: 134px 32px 96px; }
  .result-data { width: 100%; }
  .desktop-results-table { display: none; }
  .mobile-results-list { display: block; border-top: 1px solid #c9c8c9; }
  .mobile-record { padding: 0; border-top: 0; border-bottom: 1px solid #c9c8c9; }
  .mobile-record:last-child { border-bottom: 1px solid #c9c8c9; }
  .mobile-record summary {
    display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 16px; align-items: start;
    padding: 18px 0; list-style: none; font-size: 16px;
  }
  .mobile-record summary::-webkit-details-marker { display: none; }
  .mobile-record-summary { display: grid; gap: 14px; min-width: 0; }
  .mobile-record-name { display: grid; gap: 2px; }
  .mobile-record-name strong { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
  .mobile-record-name > span { color: #777; font-size: 16px; overflow-wrap: anywhere; }
  .mobile-record-summary-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; line-height: 1.3; }
  .mobile-record-summary-label { color: #777; font-size: 14px; }
  .mobile-record-summary-row small { display: block; margin-top: 2px; color: #777; font-size: 14px; }
  .mobile-record-toggle { position: relative; width: 22px; height: 22px; }
  .mobile-record-toggle::before, .mobile-record-toggle::after {
    content: ""; position: absolute; top: 10px; left: 4px; width: 14px; height: 1px; background: #232323;
  }
  .mobile-record-toggle::after { transform: rotate(90deg); transition: transform .15s ease; }
  .mobile-record[open] .mobile-record-toggle::after { transform: rotate(0); }
  .mobile-record-details {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px;
    margin: 0; padding: 18px 0 22px; border-top: 1px solid #e4e3e4;
  }
  .mobile-record-detail-row { min-width: 0; }
  .mobile-record-detail-row.wide { grid-column: 1 / -1; }
  .mobile-record-detail-row dt { margin: 0 0 4px; color: #777; font-size: 14px; }
  .mobile-record-detail-row dd { margin: 0; overflow-wrap: anywhere; line-height: 1.35; }
  .search-panel, .results-panel, .alert-panel { width: calc(100% - 40px); margin-bottom: 72px; padding: 44px 0; }
  .table-scroll { margin-right: -20px; }
  .editorial-footer, .footer-panel { min-height: 132px; }
  .footer-panel { padding: 48px 24px 43px; }
}
