/* Candidate-first editorial atlas. Political colours identify profiles, not scores. */
.politics-page,
.dossier-page {
  max-width: 1440px;
  margin: auto;
  padding: 0 48px 50px;
}
.campaign-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 0 42px;
}
.campaign-intro h1 {
  font: clamp(40px, 4.2vw, 65px) / 1.02 var(--serif);
  letter-spacing: -0.045em;
  margin-top: 19px;
}
.campaign-intro h1 em {
  color: #6d7667;
}
.tiny-rule {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: currentColor;
  margin: 0 12px;
  vertical-align: middle;
  opacity: 0.5;
}
.intro-aside {
  padding-bottom: 5px;
}
.intro-aside > p {
  font: 20px/1.4 var(--serif);
  max-width: 320px;
}
.intro-path {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #6c7167;
  margin-top: 26px;
}
.intro-path .icon {
  width: 15px;
}
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-line > span:last-child {
  font: 10px/1.5 var(--mono);
  color: #73796e;
}
.candidate-gallery {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}
.candidate-card {
  min-width: 0;
  display: block;
  color: var(--ink);
}
.candidate-photo {
  height: clamp(165px, 16vw, 230px);
  overflow: hidden;
  position: relative;
  background: #deded4;
  border-radius: 3px;
  isolation: isolate;
}
.candidate-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 24, 22, 0.45), transparent 55%);
  pointer-events: none;
}
.candidate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale(1);
  transition:
    filter 0.25s,
    transform 0.3s;
}
.candidate-card:hover img,
.candidate-card.selected img {
  filter: grayscale(0);
  transform: scale(1.035);
}
.candidate-card.selected .candidate-photo {
  outline: 3px solid var(--party);
  outline-offset: 4px;
}
.candidate-card:hover {
  color: var(--party);
}
.party-monogram {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 11px;
  min-width: 29px;
  height: 27px;
  padding: 7px 6px;
  font: 10px/1 var(--mono);
  background: var(--party);
  color: white;
  border-radius: 3px;
}
.portrait-arrow {
  position: absolute;
  bottom: 12px;
  right: 10px;
  color: #fff;
  z-index: 2;
}
.portrait-arrow .icon {
  width: 17px;
}
.candidate-name {
  font: 17px/1.18 var(--serif);
  margin: 13px 0 7px;
}
.candidate-name strong {
  display: block;
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.025em;
}
.candidate-party {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #74796e;
}
.gallery-caption {
  display: flex;
  justify-content: space-between;
  color: #797e73;
  font: 10px/1.6 var(--mono);
  padding-top: 19px;
}
.gallery-caption button {
  font: inherit;
  padding: 0;
}
.gallery-caption .icon {
  width: 14px;
}
.candidate-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.proposal-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-top: 38px;
}
.proposal-heading h2 {
  font-size: 34px;
  letter-spacing: -0.025em;
  margin-top: 7px;
}
.politics-search {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 340px;
  border-bottom: 1px solid #9ba18f;
  padding: 10px 0;
  color: #777e70;
}
.politics-search input {
  width: 100%;
  background: none;
  border: 0;
  font-size: 12px;
  color: var(--ink);
  outline-offset: 6px;
}
.proposal-filter-row {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 14px;
}
.proposal-themes {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.proposal-themes button {
  font-size: 11px;
  white-space: nowrap;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.proposal-themes .icon {
  width: 14px;
  height: 14px;
}
.proposal-themes button[aria-pressed="true"] {
  background: #303b33;
  border-color: #303b33;
  color: #fff;
}
.archives-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  font-size: 10px;
  color: #6a7065;
}
.archives-toggle input {
  accent-color: #526148;
}
.results-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 10px/1.6 var(--mono);
  color: #757b70;
  margin: 5px 0 17px;
}
.results-line .icon {
  height: 14px;
  width: 14px;
}
.proposal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.proposal-card {
  padding: 21px 22px 17px;
  background: #fffdf7;
  border: 1px solid #dedfd4;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  min-height: 266px;
  color: var(--ink);
}
.proposal-card:hover {
  border-color: var(--party);
  box-shadow: 0 5px 20px #353d2f08;
  color: var(--ink);
}
.proposal-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}
.proposal-byline > img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  filter: grayscale(1);
}
.proposal-byline > span:first-of-type {
  font-size: 11px;
}
.proposal-byline small {
  display: block;
  color: #777c71;
  font-size: 9px;
  margin-top: 4px;
}
.topic-label {
  margin-left: auto;
  color: #777c71;
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 9px;
  white-space: nowrap;
}
.topic-label .icon {
  height: 13px;
  width: 13px;
}
.proposal-card h3 {
  font: 23px/1.14 var(--serif);
  letter-spacing: -0.018em;
  margin: 21px 0 12px;
}
.proposal-card > p {
  font-size: 12px;
  line-height: 1.65;
  color: #74796e;
  flex: 1;
}
.proposal-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-top: 1px solid #e6e7dd;
  padding-top: 15px;
  margin-top: 20px;
}
.document-era {
  font: 9px/1.5 var(--mono);
  color: #6d7563;
}
.document-era.is-archive {
  color: #9d6741;
}
.study-link {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.study-link .icon {
  width: 15px;
}
.editorial-invitation {
  margin: 55px 0 35px;
  padding: 38px;
  background: #eaece2;
  border: 1px solid #d9ddce;
  border-radius: 3px;
  position: relative;
}
.editorial-invitation h2 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 18px 0 22px;
}
.editorial-invitation h2 em {
  color: #697461;
}
.editorial-invitation > p {
  max-width: 540px;
  line-height: 1.7;
  font-size: 13px;
  margin: 20px 0;
}
.lens-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.lens-preview span {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.lens-preview .icon {
  width: 16px;
}
.politics-method {
  font-size: 12px;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding: 19px 0;
}
.politics-method > summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
}
.politics-method > div {
  padding-top: 20px;
}
.politics-method p + p {
  margin-top: 12px;
}
.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 22px;
}
.photo-credit {
  font: 10px/1.6 var(--mono);
  color: #777e70;
}
.photo-credit summary {
  cursor: pointer;
}
.photo-credit p {
  max-width: 500px;
  font:
    11px/1.7 Arial,
    sans-serif;
  margin-top: 7px;
}
.photo-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.photo-credit .icon {
  width: 12px;
}
.selected-profile {
  display: flex;
  border: 1px solid var(--line);
  background: #eeeee4;
  margin-top: 32px;
  border-radius: 3px;
  overflow: hidden;
}
.profile-photo {
  width: 220px;
  flex-shrink: 0;
  max-height: 300px;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(0.25);
}
.profile-copy {
  padding: 28px 35px;
  display: flex;
  align-items: start;
  flex-direction: column;
}
.back-link {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6a7366;
}
.back-link .icon {
  width: 16px;
}
.profile-copy > .party-label {
  margin-top: 20px;
}
.party-label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font: 10px/1.3 var(--mono);
  color: var(--party);
}
.party-label i {
  background: var(--party);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.profile-copy h2 {
  font-size: 37px;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}
.profile-copy > p {
  font-size: 13px;
  color: #72796b;
  line-height: 1.6;
}
.profile-status {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 10px;
  margin-top: 18px;
  color: #6a7263;
}
.profile-status a {
  display: flex;
  gap: 5px;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-status .icon {
  width: 13px;
  height: 13px;
}
.politics-empty {
  text-align: center;
  padding: 42px;
  line-height: 1.7;
}
.politics-empty h3 {
  font: 25px var(--serif);
  margin-bottom: 13px;
}
.politics-empty p {
  color: #767d6e;
  font-size: 13px;
  margin: 0 auto 18px;
  max-width: 500px;
}
.dossier-page {
  padding-top: 28px;
}
.dossier-heading {
  display: flex;
  align-items: center;
  gap: 38px;
  margin: 28px 0;
}
.dossier-person {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
}
.dossier-person > img {
  width: 84px;
  height: 108px;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(1);
  border-radius: 3px;
}
.dossier-person > span {
  font: 19px/1.2 var(--serif);
}
.dossier-person strong {
  display: block;
  font-weight: 400;
  font-size: 25px;
}
.dossier-person .party-label {
  display: flex;
  margin-top: 10px;
  max-width: 150px;
  line-height: 1.5;
}
.dossier-title {
  border-left: 1px solid var(--line);
  padding-left: 38px;
  flex: 1;
}
.dossier-title h1 {
  font: clamp(29px, 3vw, 43px) / 1.08 var(--serif);
  letter-spacing: -0.03em;
  margin-top: 13px;
  max-width: 800px;
}
.dossier-lead {
  display: grid;
  grid-template-columns: 1fr 350px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.dossier-lead > p {
  font: 17px/1.65 var(--serif);
  padding: 23px 50px 23px 0;
  max-width: 800px;
}
.proposal-quantity {
  padding: 18px 0 18px 28px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}
.proposal-quantity strong {
  font: 33px/1 var(--serif);
  color: var(--party);
}
.proposal-quantity > span:last-child {
  font-size: 11px;
  line-height: 1.5;
  color: #74796d;
}
.archive-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f2e8db;
  color: #855f3c;
  font-size: 12px;
  padding: 14px 19px;
  margin-top: -16px;
  margin-bottom: 25px;
  border-radius: 3px;
}
.investigation-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.investigation-toolbar h2 {
  font-size: 29px;
  margin-top: 5px;
}
.network-controls {
  display: flex;
  gap: 4px;
}
.network-controls button {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fffdf7;
}
.investigation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.proposal-network {
  background: #eeefe6;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 15px 0 35px;
  overflow: hidden;
}
#political-network {
  width: 100%;
  height: 420px;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
#political-network:active {
  cursor: grabbing;
}
#political-network [data-map-node] {
  cursor: move;
}
.network-person image {
  filter: grayscale(1);
}
.lens-connector {
  stroke-dasharray: 4 6;
}
.network-name {
  font:
    18px Georgia,
    serif;
  fill: #30392f;
}
.network-small {
  font:
    12px Arial,
    sans-serif;
}
.network-eyebrow {
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 2px;
}
.network-proposal-label {
  font:
    21px Georgia,
    serif;
}
.network-lens-label {
  font:
    18px Georgia,
    serif;
}
.network-legend {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 9px;
  color: #6d7565;
  pointer-events: none;
}
.network-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.network-legend i {
  height: 1px;
  width: 18px;
  background: #7a8572;
}
.network-legend .dashed {
  background: none;
  border-top: 1px dashed #7a8572;
}
.investigation-panel {
  background: #fffef9;
  padding: 25px;
  border-left: 1px solid var(--line);
  max-height: 590px;
  overflow: auto;
  scrollbar-width: thin;
}
.lens-panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--lens);
}
.lens-panel-heading > .icon {
  width: 29px;
  height: 29px;
}
.lens-panel-heading h3 {
  font: 22px var(--serif);
  margin-top: 3px;
}
.lens-panel-heading .eyebrow {
  font-size: 8px;
}
.investigation-panel > h2 {
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 13px;
}
.panel-intro {
  font-size: 12px;
  line-height: 1.65;
  color: #777d70;
  margin-bottom: 20px;
}
.evidence-entry {
  border-top: 1px solid var(--line);
  padding: 22px 0 18px;
}
.evidence-place {
  font: 9px/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #54717a;
}
.evidence-entry h3 {
  font: 21px/1.2 var(--serif);
  margin: 8px 0 12px;
}
.evidence-number {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
  color: #376f75;
}
.evidence-number strong {
  font: 39px/1 var(--serif);
  letter-spacing: -0.04em;
}
.evidence-number > span {
  font-size: 11px;
  line-height: 1.5;
}
.evidence-entry p {
  font-size: 12px;
  line-height: 1.7;
  color: #687260;
  margin: 12px 0;
}
.evidence-entry small,
.evidence-method {
  font-size: 10px;
  color: #79806f;
  line-height: 1.6;
  display: block;
}
.evidence-entry details {
  font-size: 11px;
  color: #68715f;
  margin: 15px 0 0;
}
.evidence-entry summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.evidence-entry summary .icon {
  width: 13px;
}
.evidence-entry .relation-limit {
  font-size: 10px;
  line-height: 1.6;
  border-left: 2px solid #ced4c2;
  padding-left: 10px;
}
.evidence-entry .text-link {
  font-size: 11px;
  text-align: left;
  line-height: 1.5;
}
.research-gap {
  padding: 16px;
  background: #f0f0e7;
  border-left: 2px solid #a3aa8a;
  margin: 20px 0;
}
.research-gap .eyebrow {
  font-size: 8px;
}
.research-gap p {
  font-size: 12px;
  line-height: 1.75;
  margin-top: 7px;
  color: #68705f;
}
.inquiry-points {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.inquiry-points > span {
  font: 10px var(--mono);
  display: block;
  margin-bottom: 12px;
}
.inquiry-points > p {
  margin: 8px 0;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.unavailable-note {
  font-size: 12px;
  line-height: 1.7;
  color: #777e6d;
  margin: 17px 0;
}
.lens-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 17px 0 36px;
}
.lens-tabs a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.lens-tabs a[aria-current="page"] {
  background: #303b33;
  color: #fff;
  border-color: #303b33;
}
.lens-tabs .icon {
  width: 16px;
  height: 16px;
}
.proposal-document {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  gap: 65px;
}
.proposal-document h2 {
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 15px;
}
.proposal-document h2 em {
  color: #727b67;
}
.source-origin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  color: #797d70;
}
.source-origin > span {
  font: 9px var(--mono);
  text-transform: uppercase;
}
.source-origin strong {
  font-weight: normal;
  color: #4d5b42;
}
.proposal-document h3 {
  font: 22px/1.2 var(--serif);
  margin: 12px 0;
}
.proposal-document p {
  font-size: 12px;
  line-height: 1.7;
  color: #707867;
}
.proposal-document .text-link {
  display: inline-flex;
  margin: 15px 0;
  font-size: 12px;
  gap: 8px;
  align-items: center;
}
.source-limits {
  padding-top: 8px;
}
.source-limits p + p {
  margin-top: 10px;
}
.source-limits strong {
  font-weight: normal;
  color: #3d4934;
}
.related-proposals {
  margin-top: 35px;
}
.related-proposals h2 {
  font-size: 27px;
}
.dossier-credit {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
  font: 9px/1.6 var(--mono);
  color: #7b8273;
  padding-top: 30px;
}
.politics-page .text-link .icon,
.dossier-page .text-link .icon {
  width: 15px;
  height: 15px;
}
@media (min-width: 1550px) {
  .candidate-photo {
    height: 235px;
  }
  .campaign-intro {
    padding-top: 60px;
  }
}
@media (max-width: 1100px) {
  .politics-page,
  .dossier-page {
    padding-left: 28px;
    padding-right: 28px;
  }
  .candidate-gallery {
    gap: 10px;
  }
  .candidate-name strong {
    font-size: 18px;
  }
  .candidate-party {
    font-size: 9px;
  }
  .proposal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proposal-filter-row {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .investigation-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .investigation-panel {
    padding: 21px;
  }
  .network-legend {
    font-size: 8px;
    gap: 7px;
  }
  .dossier-title {
    padding-left: 25px;
  }
  .dossier-heading {
    gap: 25px;
  }
  .dossier-person {
    min-width: 225px;
  }
  .dossier-lead {
    grid-template-columns: 1fr 310px;
  }
  .intro-path {
    max-width: 230px;
    flex-wrap: wrap;
  }
  .campaign-intro h1 {
    font-size: 52px;
  }
  .proposal-heading h2 {
    font-size: 31px;
  }
  .politics-search {
    width: 300px;
  }
  .topic-label {
    display: none;
  }
}
@media (max-width: 780px) {
  .campaign-intro {
    padding: 35px 0 30px;
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }
  .campaign-intro h1 {
    font-size: 48px;
  }
  .intro-aside > p {
    font-size: 17px;
  }
  .intro-aside > p br {
    display: none;
  }
  .intro-path {
    margin-top: 15px;
    max-width: none;
  }
  .candidate-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .candidate-photo {
    height: 185px;
  }
  .section-line > span:last-child {
    font-size: 8px;
  }
  .candidate-name strong {
    font-size: 21px;
  }
  .candidate-party {
    font-size: 10px;
  }
  .proposal-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .politics-search {
    width: 100%;
  }
  .investigation-layout {
    grid-template-columns: 1fr;
  }
  .investigation-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: none;
  }
  .proposal-network {
    min-height: 330px;
  }
  #political-network {
    height: 360px;
  }
  .dossier-heading {
    align-items: start;
    flex-direction: column;
  }
  .dossier-title {
    padding-left: 0;
    border-left: 0;
  }
  .dossier-person > img {
    width: 55px;
    height: 68px;
  }
  .dossier-person > span {
    font-size: 16px;
  }
  .dossier-person strong {
    display: inline;
    font-size: 20px;
  }
  .dossier-person .party-label {
    margin-top: 6px;
  }
  .dossier-lead {
    grid-template-columns: 1fr 220px;
  }
  .dossier-lead > p {
    padding-right: 25px;
    font-size: 16px;
  }
  .proposal-document {
    gap: 25px;
  }
  .proposal-document h2 {
    font-size: 28px;
  }
  .lens-tabs {
    justify-content: start;
  }
  .profile-photo {
    width: 160px;
  }
  .profile-copy {
    padding: 23px;
  }
  .profile-copy h2 {
    font-size: 31px;
  }
  .gallery-caption {
    font-size: 8px;
  }
  .dossier-title h1 {
    font-size: 36px;
  }
  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .politics-page,
  .dossier-page {
    padding-left: 20px;
    padding-right: 20px;
  }
  .campaign-intro h1 {
    font-size: 42px;
  }
  .campaign-intro .eyebrow {
    font-size: 8px;
  }
  .campaign-intro .tiny-rule {
    width: 18px;
    margin: 0 7px;
  }
  .section-line {
    align-items: start;
  }
  .candidate-section .section-line {
    flex-direction: column;
    gap: 4px;
  }
  .candidate-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .candidate-photo {
    height: 205px;
  }
  .candidate-name {
    font-size: 17px;
  }
  .candidate-name strong {
    font-size: 24px;
  }
  .candidate-party {
    font-size: 11px;
  }
  .gallery-caption {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    font-size: 9px;
  }
  .proposal-heading {
    margin-top: 30px;
  }
  .proposal-heading h2 {
    font-size: 28px;
  }
  .proposal-grid {
    grid-template-columns: 1fr;
  }
  .proposal-card {
    min-height: 255px;
    padding: 20px;
  }
  .proposal-card h3 {
    font-size: 25px;
  }
  .topic-label {
    display: flex;
    font-size: 8px;
  }
  .proposal-themes button {
    font-size: 11px;
    padding: 9px;
  }
  .results-line > span:last-child {
    display: none;
  }
  .editorial-invitation {
    padding: 26px 22px;
    margin-top: 35px;
  }
  .editorial-invitation h2 {
    font-size: 32px;
  }
  .lens-preview {
    gap: 15px;
  }
  .credits-grid {
    grid-template-columns: 1fr;
  }
  .selected-profile {
    align-items: stretch;
  }
  .profile-photo {
    width: 96px;
    max-height: none;
  }
  .profile-copy {
    padding: 17px 15px;
  }
  .profile-copy h2 {
    font-size: 27px;
  }
  .profile-copy .back-link {
    font-size: 9px;
  }
  .profile-copy > .party-label {
    margin-top: 15px;
    font-size: 9px;
  }
  .profile-copy > p {
    font-size: 12px;
  }
  .profile-status {
    font-size: 9px;
    gap: 9px;
  }
  .dossier-heading {
    margin: 23px 0;
    gap: 22px;
  }
  .dossier-title h1 {
    font-size: 33px;
  }
  .dossier-title .eyebrow {
    font-size: 8px;
    line-height: 1.8;
  }
  .dossier-title .tiny-rule {
    width: 17px;
    margin: 0 7px;
  }
  .dossier-lead {
    grid-template-columns: 1fr;
  }
  .dossier-lead > p {
    padding: 20px 0;
    font-size: 17px;
  }
  .proposal-quantity {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0;
    gap: 8px;
  }
  .proposal-quantity strong {
    font-size: 36px;
  }
  .investigation-toolbar h2 {
    font-size: 26px;
  }
  .investigation-toolbar .eyebrow {
    font-size: 8px;
  }
  .network-controls {
    gap: 2px;
  }
  .network-controls .icon-button {
    width: 29px;
    height: 29px;
  }
  .proposal-network {
    min-height: 240px;
    padding: 0 0 35px;
  }
  #political-network {
    height: 230px;
  }
  .network-legend {
    font-size: 7px;
    left: 10px;
    right: 10px;
    gap: 9px;
    justify-content: start;
    bottom: 10px;
    flex-wrap: wrap;
  }
  .investigation-panel {
    padding: 24px;
  }
  .lens-tabs {
    gap: 6px;
  }
  .lens-tabs a {
    font-size: 10px;
    padding: 9px 10px;
  }
  .proposal-document {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 25px 0;
  }
  .proposal-document h2 {
    font-size: 30px;
  }
  .related-proposals .section-line {
    flex-direction: column;
    gap: 8px;
  }
  .dossier-credit {
    flex-direction: column;
  }
  .archive-notice {
    align-items: start;
    line-height: 1.6;
  }
  .site-header {
    gap: 8px;
  }
  .main-nav {
    gap: 16px;
  }
  .main-nav > a {
    font-size: 11px;
  }
  .main-nav .icon {
    display: none;
  }
  .edition {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .candidate-photo img,
  .proposal-card {
    transition: none;
  }
}

.selected-profile {
  scroll-margin-top: 110px;
}
.mobile-gallery-hint {
  display: none;
}
@media (max-width: 520px) {
  .site-header {
    height: auto;
    padding: 14px 20px 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    width: 100%;
    flex-shrink: 0;
  }
  .main-nav {
    width: 100%;
    gap: 14px;
    min-height: 42px;
    justify-content: space-between;
  }
  .main-nav > a {
    white-space: nowrap;
  }
  .candidate-gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 150px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 6px 4px 14px;
    margin: 0 -4px;
  }
  .candidate-card {
    scroll-snap-align: start;
  }
  .mobile-gallery-hint {
    display: block;
    font-size: 10px;
    color: #59684f;
  }
}

/* Programme documents: editions are provenance, not a ranking. */
.candidate-corpus {
  margin: 38px 0 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line, #d9dccf);
}
.candidate-corpus h2 {
  font: 30px/1.15 var(--serif);
  margin: 12px 0;
}
.corpus-editions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.corpus-edition {
  text-align: left;
  border: 1px solid #d6d8cd;
  background: #faf9f2;
  padding: 24px;
  color: inherit;
  cursor: pointer;
}
.corpus-edition:hover,
.corpus-edition:focus-visible {
  border-color: #ac493d;
  background: #fffdf6;
}
.corpus-edition > strong {
  display: block;
  font: 43px/1.15 var(--serif);
  color: #a54c40;
  margin: 16px 0 8px;
}
.corpus-edition h3 {
  font: 20px/1.2 var(--serif);
  margin: 0 0 12px;
}
.corpus-edition p {
  font:
    13px/1.6 Arial,
    Helvetica,
    sans-serif;
  color: #5a6055;
  margin: 0 0 18px;
}
#candidate-documents {
  margin-top: 18px;
  scroll-margin-top: 90px;
  border-bottom: 1px solid #d6d8cd;
}
#candidate-documents > summary {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 14px;
}
#candidate-documents[open] > summary {
  border-bottom: 1px solid #d6d8cd;
}
.corpus-library {
  padding: 16px 0;
}
.corpus-note {
  max-width: 850px;
  font-size: 13px;
  line-height: 1.7;
  color: #60675d;
}
.corpus-filters,
.measure-document-filters {
  display: flex;
  align-items: end;
  gap: 20px;
  margin: 22px 0;
}
.corpus-filters label,
.measure-document-filters label {
  display: grid;
  gap: 8px;
  font:
    11px/1.3 Arial,
    Helvetica,
    sans-serif;
  color: #5a6055;
  flex: 1;
  min-width: 0;
}
.corpus-filters input,
.corpus-filters select,
.measure-document-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9cec0;
  border-radius: 4px;
  padding: 10px 12px;
  background: #fffef9;
  color: #343a31;
  font:
    13px/1.4 Arial,
    Helvetica,
    sans-serif;
}
#document-count {
  font: 11px/1.4 var(--mono);
  color: #656c60;
  padding-bottom: 10px;
}
.corpus-document {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 165px;
  gap: 20px;
  border-top: 1px solid #d6d8cd;
  padding: 24px 0;
}
.document-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #a54c40;
  font: 11px/1 var(--mono);
}
.document-symbol .icon {
  width: 25px;
  height: 25px;
}
.document-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #656c60;
  font-size: 10px;
}
.corpus-document h3 {
  margin: 12px 0 8px;
  font: 23px/1.2 var(--serif);
}
.corpus-document p {
  font-size: 12px;
  line-height: 1.65;
  color: #5a6055;
}
.corpus-document details {
  margin-top: 12px;
  font-size: 11px;
}
.corpus-document details summary {
  cursor: pointer;
}
.document-hash {
  display: block;
  overflow-wrap: anywhere;
  font-size: 10px;
}
.document-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
}
.document-actions > span {
  color: #656c60;
  font-size: 10px;
}
.document-actions .secondary {
  font-size: 12px;
  justify-content: center;
}
.document-actions .text-link {
  text-align: left;
}
.proposal-provenance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-block: 1px solid #d6d8cd;
  padding: 15px 0;
  font-size: 12px;
  line-height: 1.5;
}
.proposal-provenance > span {
  flex: 1;
  min-width: 160px;
}
.proposal-provenance a {
  color: #a54c40;
}
.edition-notice {
  padding: 12px 0;
  font-size: 12px;
  color: #6a6255;
}
.announced-financing {
  margin: 22px 0;
  padding: 18px;
  background: #f2efe3;
  border-left: 3px solid #a8793e;
}
.announced-financing p {
  margin: 10px 0;
}
.announced-financing small,
.document-references small {
  font-size: 11px;
  line-height: 1.5;
}
.document-references {
  margin: 22px 0;
  border-top: 1px solid #d6d8cd;
  padding-top: 18px;
}
.document-references h4 {
  font-size: 13px;
}
@media (max-width: 700px) {
  .candidate-corpus .section-line {
    display: block;
  }
  .candidate-corpus h2 {
    font-size: 27px;
  }
  .corpus-editions {
    grid-template-columns: 1fr;
  }
  .corpus-edition {
    padding: 20px;
  }
  .corpus-edition > strong {
    font-size: 34px;
    margin: 10px 0;
  }
  .corpus-filters,
  .measure-document-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .corpus-document {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }
  .document-actions {
    grid-column: 2;
    align-items: start;
  }
  .document-actions .secondary {
    min-height: 44px;
  }
  .corpus-document h3 {
    font-size: 21px;
  }
}

.investigation-panel .announced-financing {
  font-size: 13px;
  line-height: 1.65;
}
