@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --bg-elevated: #ffffff;
  --ink: #1c1f24;
  --ink-muted: #4a5568;
  --slate: #3d4a5c;
  --steel: #5b7a9c;
  --line: #d8dde6;
  --line-strong: #b8c2d0;
  --monitor-w: 20rem;
  --legend-w: 18rem;
  --speak-up-w: 20rem;
  --header-h: 4.25rem;
  --float-gap: 0.75rem;
  --float-top: calc(var(--header-h) + var(--float-gap));
  --float-margin-bottom: 1.25rem;
  --page-max: 52rem;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 40rem;
  --shadow-float: 0 6px 28px rgba(28, 31, 36, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

.site-readonly-banner {
  margin: 0;
  padding: 0.65rem 1rem;
  background: #2a2418;
  color: #f8f4ea;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-readonly-banner strong {
  font-weight: 600;
  color: #fff;
}

a {
  color: var(--steel);
}

a:hover {
  color: var(--slate);
}

.font-mono {
  font-family: var(--font-mono);
}

/* live monitor: floating panel */
.live-monitor__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  cursor: help;
}

.live-monitor__title {
  display: block;
  min-width: 0;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.monitor-pin-tool__toggle {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.monitor-pin-tool__toggle:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.monitor-pin-tool__toggle[hidden],
.monitor-pin-tool__panel[hidden] {
  display: none !important;
}

.monitor-pin-tool__panel {
  flex-shrink: 0;
  padding: 0.55rem 0.85rem 0.65rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.monitor-pin-tool__form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.monitor-pin-tool__input {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.78rem;
  background: var(--bg-elevated);
}

.monitor-pin-tool__submit {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-elevated);
  cursor: pointer;
}

.monitor-pin-tool__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.monitor-pin-tool__msg {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.monitor-pin-tool__msg--error {
  color: #8f2020;
}

.live-monitor--float {
  display: none;
}

.live-monitor__sub {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.live-monitor__viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: var(--bg-elevated);
}

.live-monitor__track {
  display: flex;
  flex-direction: column;
  padding: 0 1.1rem 1rem;
}

.monitor-feed-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.monitor-feed-item:last-child {
  border-bottom: none;
}

.monitor-feed-item__row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.monitor-feed-item__media {
  flex-shrink: 0;
}

.monitor-feed-item__thumb {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
}

.monitor-feed-item__content {
  min-width: 0;
  flex: 1;
}

.monitor-feed-item__body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.monitor-feed-item__body a {
  color: inherit;
  text-decoration: none;
}

.monitor-feed-item__body a:hover {
  color: var(--steel);
}

.monitor-feed-item__meta {
  margin: 0.45rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.monitor-feed-item__unpin,
.monitor-ticker-item__unpin {
  flex-shrink: 0;
  align-self: flex-start;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  cursor: pointer;
  line-height: 1;
  font-size: 0.85rem;
}

.monitor-feed-item__unpin:hover,
.monitor-ticker-item__unpin:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.monitor-ticker-item__unpin {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 0.75rem;
}

.live-monitor--fresh::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 0 3px rgba(91, 122, 156, 0.4);
  opacity: 0;
  animation: monitor-fresh-pulse 2.4s ease-out;
}

@keyframes monitor-fresh-pulse {
  0% {
    opacity: 1;
  }
  35% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

@media (min-width: 1180px) {
  .live-monitor--float {
    position: fixed;
    top: var(--float-top);
    right: 1.25rem;
    left: auto;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: var(--monitor-w);
    max-height: calc(100vh - var(--float-top) - var(--float-margin-bottom));
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-float);
    overflow: hidden;
  }
}

@media (min-width: 1560px) {
  .live-monitor--float {
    right: auto;
    left: calc(50% + var(--page-max) / 2 + 1.5rem);
  }
}

/* speak up: floating panel */
.speak-up--float {
  display: none;
}

.speak-up__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.speak-up__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.35;
  text-wrap: balance;
  flex: 1;
  min-width: 0;
}

.speak-up__collapse {
  display: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 0;
}

.speak-up__collapse:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.speak-up__chevron {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  transition: transform 0.2s ease;
}

.speak-up__viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: var(--bg-elevated);
}

.speak-up__form {
  padding: 1rem 1.1rem 1.15rem;
}

.speak-up__form .form-field {
  margin-bottom: 0.8rem;
}

.speak-up__form .form-field input,
.speak-up__form .form-field select {
  font-size: 0.88rem;
  padding: 0.5rem 0.6rem;
}

.speak-up__form .consent {
  font-size: 0.8rem;
  margin: 0.9rem 0;
}

.speak-up-trigger {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--slate);
  background: var(--slate);
  color: var(--bg-elevated);
  cursor: pointer;
  box-shadow: var(--shadow-float);
  line-height: 1.2;
}

.speak-up-trigger:hover,
.speak-up-trigger[aria-expanded='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-elevated);
}

.site-nav__speak-up {
  display: none;
}

.speak-up-fab {
  display: none;
}

.speak-up-backdrop {
  display: none;
}

@media (min-width: 1180px) {
  .speak-up__collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .speak-up--float {
    position: fixed;
    top: var(--float-top);
    left: 1.25rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: var(--speak-up-w);
    max-height: calc(100vh - var(--float-top) - var(--float-margin-bottom));
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    transition: width 0.22s ease, max-height 0.22s ease;
  }

  .speak-up--float.speak-up--collapsed {
    width: auto;
    min-width: 9.5rem;
    max-height: none;
  }

  .speak-up--float.speak-up--collapsed .speak-up__head {
    border-bottom: none;
  }

  .speak-up--float.speak-up--collapsed .speak-up__viewport {
    display: none;
  }

  .speak-up--float.speak-up--collapsed .speak-up__chevron {
    transform: rotate(45deg);
  }
}

@media (min-width: 1560px) {
  .speak-up--float {
    left: calc(50% - var(--page-max) / 2 - var(--speak-up-w) - 1.5rem);
  }
}

@media (max-width: 1179px) {
  .site-nav__speak-up {
    display: inline-block;
    align-self: center;
  }

  .speak-up--float {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 40rem);
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-bottom: none;
    box-shadow: 0 -8px 32px rgba(28, 31, 36, 0.12);
    transform: translateY(100%);
    transition: transform 0.28s ease;
    pointer-events: none;
    visibility: hidden;
  }

  .speak-up--float.speak-up--open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .speak-up-backdrop--visible {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1099;
    background: rgba(28, 31, 36, 0.32);
  }

  body.speak-up-sheet-open {
    overflow: hidden;
  }
}

/* mobile ticker */
.live-monitor--ticker {
  display: none;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.live-monitor--ticker .live-monitor__head {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-bottom: none;
  border-right: 1px solid var(--line);
  vertical-align: middle;
  background: var(--bg);
}

.live-monitor__ticker-wrap {
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 11rem);
  overflow: hidden;
}

.live-monitor__track--horizontal {
  display: inline-flex;
  flex-direction: row;
  gap: 2rem;
  padding: 0.55rem 1rem;
  white-space: nowrap;
  animation: monitor-scroll-horizontal 90s linear infinite;
}

@keyframes monitor-scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.monitor-ticker-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 20rem;
  max-width: 20rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--line);
  box-sizing: border-box;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ink);
}

.monitor-ticker-item__thumb {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
}

.monitor-ticker-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.monitor-ticker-item a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.monitor-ticker-item a:hover {
  color: var(--steel);
}

.monitor-ticker-item__meta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* main shell */
.site-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--bg-elevated);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--line);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand__mark-link {
  flex-shrink: 0;
  display: flex;
  line-height: 0;
  text-decoration: none;
}

.brand__mark-link:hover .brand__mark {
  opacity: 0.85;
}

.brand__mark {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  object-fit: contain;
}

.brand__text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

a.brand__text,
a.brand__mark-link {
  text-decoration: none;
  color: inherit;
}

a.brand__text:hover,
a.brand__text:visited,
a.brand__text:focus-visible,
a.brand__mark-link:hover,
a.brand__mark-link:visited,
a.brand__mark-link:focus-visible {
  text-decoration: none;
  color: inherit;
}

.brand__text > span {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-top: 0.2rem;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand.brand--with-city-home {
  align-items: flex-start;
}

.brand.brand--with-city-home .brand__mark-link {
  margin-top: 0.15rem;
}

.brand__city-home {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  margin-top: calc(0.55rem + 5px);
  line-height: 1.2;
}

a.brand__city-home:hover,
a.brand__city-home:visited,
a.brand__city-home:focus-visible {
  text-decoration: none;
  color: var(--steel);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
}

.site-nav a:hover {
  color: var(--steel);
}

.site-nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  line-height: 1;
}

.site-nav-contact[hidden] {
  display: none !important;
}

.site-nav-contact__edit {
  font: inherit;
  font-size: 0.85em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.site-nav-contact__edit:hover {
  color: var(--steel);
}

.site-nav-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  margin-right: 0.15rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}

.site-nav-preview:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.site-nav-preview--active {
  color: #a12828;
  border-color: color-mix(in srgb, #a12828 45%, var(--line));
  background: color-mix(in srgb, #a12828 6%, var(--bg));
}

.site-nav-preview:disabled {
  opacity: 0.55;
  cursor: wait;
}

.site-nav-preview__icon {
  display: block;
}

html.std-public-preview .staff-nav__link {
  display: none !important;
}

html.std-public-preview .clips-admin-bar,
html.std-public-preview .clips-card__admin {
  display: none !important;
}

html.std-public-preview .docs-admin-bar,
html.std-public-preview .docs-admin-intro,
html.std-public-preview .docs-visibility-bar,
html.std-public-preview .docs-card__admin,
html.std-public-preview .election-tracker-jump-bar,
html.std-public-preview .election-tracker-ops-manual__trigger,
html.std-public-preview .election-tracker-ops-manual-overlay,
html.std-public-preview .election-tracker-intro__edit,
html.std-public-preview .election-tracker-methodology__edit,
html.std-public-preview .election-tracker-box__edit,
html.std-public-preview .election-tracker-box__add {
  display: none !important;
}

html.std-public-preview .national-map-panel__admin,
html.std-public-preview .national-map-list__eye,
html.std-public-preview .national-map-edit-dialog {
  display: none !important;
}

html.std-public-preview .national-map-list__item-wrap--hidden .national-map-list__item {
  opacity: 1;
}

.site-header--portal .site-header__inner:has(.site-nav-preview) {
  justify-content: space-between;
}

.site-contact-overlay__card {
  width: min(28rem, calc(100vw - 2rem));
}

.site-form-overlay__content {
  padding: 1.15rem 1.35rem 1.35rem;
  overflow-y: auto;
}

.site-form-overlay__content > :last-child {
  margin-bottom: 0;
}

.site-contact-overlay__hint {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.site-contact-overlay__pick {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-contact-overlay__pick-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-contact-overlay__pick-btn:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.site-contact-overlay__back {
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
}

.site-contact-overlay__back:hover {
  color: var(--steel);
}

.site-contact-step[hidden] {
  display: none !important;
}

.site-contact-overlay__choices {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  display: flex;
  gap: 1.25rem;
}

.site-contact-overlay__choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.site-contact-overlay__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-contact-overlay__input {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 100%;
}

.site-contact-overlay__input:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
}

.site-contact-overlay__msg {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.site-contact-overlay__msg--err {
  color: var(--danger, #b42318);
}

.site-contact-overlay__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-contact-overlay__save,
.site-contact-overlay__cancel {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
}

.site-contact-overlay__save {
  background: var(--steel);
  color: #fff;
  border: 1px solid var(--steel);
}

.site-contact-overlay__cancel {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

.site-nav-dropdown--hub {
  position: relative;
}

.site-nav-dropdown__trigger--hub {
  list-style: none;
  cursor: pointer;
  color: var(--ink-muted);
  user-select: none;
}

.site-nav-dropdown--hub[open] .site-nav-dropdown__trigger--hub {
  color: var(--steel);
}

.site-nav-contact--menu {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

#site-nav-team[hidden] {
  display: none !important;
}

#site-nav-act-contact-item[hidden],
#site-nav-act-repository-item[hidden] {
  display: none !important;
}

.site-nav-dropdown__menu a.site-nav-link--badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav-dropdown__menu a.site-nav-link--badge::before {
  content: '';
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
}

.site-nav-dropdown__menu a.site-nav-link--tracker::before {
  background: var(--ink);
  animation: nav-feature-dot-blink 6s ease-in-out infinite;
}

.site-nav-dropdown__menu a.site-nav-link--whip::before {
  background: #a12828;
  animation: nav-whip-dot-blink 4s ease-in-out infinite;
}

.site-nav-dropdown__menu a.site-nav-link--admin::before {
  background: #6b3fa0;
  animation: nav-admin-dot-blink 12s ease-in-out infinite;
}

@keyframes nav-admin-dot-blink {
  0%,
  8%,
  16%,
  100% {
    opacity: 1;
  }

  4%,
  12% {
    opacity: 0;
  }
}

.site-nav-dropdown {
  position: relative;
}

.site-nav-dropdown__trigger {
  list-style: none;
  cursor: pointer;
  color: var(--ink-muted);
  user-select: none;
}

.site-nav-dropdown--feature {
  margin-right: 0.15rem;
}

.site-nav-dropdown__trigger--feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--slate);
  padding: 0.38rem 0.6rem 0.38rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--steel);
  border-radius: 2px;
}

.site-nav-dropdown__trigger--feature::before {
  content: '';
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--ink);
  border-radius: 50%;
  animation: nav-feature-dot-blink 6s ease-in-out infinite;
}

@keyframes nav-feature-dot-blink {
  0%,
  5%,
  10%,
  100% {
    opacity: 1;
  }

  2.5%,
  7.5% {
    opacity: 0;
  }
}

.site-nav-dropdown--feature[open] .site-nav-dropdown__trigger--feature {
  color: var(--ink);
  border-color: var(--slate);
  background: var(--bg-elevated);
}

.site-nav-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--slate);
  padding: 0.38rem 0.6rem 0.38rem 0.55rem;
  background: var(--bg);
  border: 1px solid var(--steel);
  border-radius: 2px;
  text-decoration: none;
  margin-right: 0.15rem;
}

.site-nav-feature:hover {
  color: var(--ink);
  border-color: var(--slate);
  background: var(--bg-elevated);
}

.site-nav-feature[hidden] {
  display: none !important;
}

.site-nav-feature--petition {
  padding-left: 0.6rem;
  transform-origin: center;
  animation: nav-petition-heartbeat 2s ease-in-out infinite;
}

@keyframes nav-petition-heartbeat {
  0%,
  18%,
  100% {
    transform: scale(1);
    border-color: var(--steel);
    box-shadow: none;
  }

  4% {
    transform: scale(1.05);
    border-color: #a12828;
    box-shadow: 0 0 0 1px color-mix(in srgb, #a12828 30%, transparent);
  }

  8% {
    transform: scale(1);
    border-color: var(--steel);
    box-shadow: none;
  }

  12% {
    transform: scale(1.035);
    border-color: #a12828;
    box-shadow: 0 0 0 1px color-mix(in srgb, #a12828 22%, transparent);
  }
}

.site-nav-feature--whip::before {
  content: '';
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.35rem;
  background: #a12828;
  border-radius: 50%;
  animation: nav-whip-dot-blink 4s ease-in-out infinite;
}

.site-nav-feature--tracker::before {
  content: '';
  flex-shrink: 0;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--ink);
  border-radius: 50%;
  animation: nav-feature-dot-blink 6s ease-in-out infinite;
}

.site-nav-feature--tracker[aria-current='page'] {
  color: var(--ink);
  border-color: var(--slate);
  background: var(--bg-elevated);
}

@keyframes nav-whip-dot-blink {
  0%,
  5%,
  10%,
  100% {
    opacity: 1;
  }

  2.5%,
  7.5% {
    opacity: 0;
  }
}

.page-whip .site-main {
  padding-top: 1.5rem;
}

.page-whip .section__label {
  margin-bottom: 0.75rem;
}

.whip-preamble {
  position: relative;
  max-width: 42rem;
  margin-bottom: 2.5rem;
  padding-right: 2.35rem;
}

.whip-preamble__edit {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.whip-preamble__edit:hover {
  color: var(--ink);
}

.whip-preamble__edit[hidden] {
  display: none !important;
}

.whip-preamble p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate);
}

.whip-preamble__content.whip-markdown {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate);
}

.whip-preamble__content.whip-markdown h1,
.whip-preamble__content.whip-markdown h2,
.whip-preamble__content.whip-markdown h3 {
  color: var(--steel);
}

.whip-preamble__content.whip-markdown h2:first-child {
  margin-bottom: 0.75rem;
}

.whip-preamble__content.whip-markdown h3 {
  margin-top: 1.65rem;
}

.whip-preamble__content.whip-markdown p:last-child {
  color: var(--ink);
}

.whip-preamble__content.whip-markdown del,
.whip-preamble__content.whip-markdown s {
  color: var(--ink-muted);
}

.whip-preamble__goal-label {
  margin-top: 1.65rem;
  margin-bottom: 0.65rem;
  color: var(--steel);
}

.whip-preamble__goal {
  margin-bottom: 0;
  color: var(--ink);
}

.whip-comms-manual-wrap .section {
  max-width: 46rem;
}

.whip-comms-manual__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.whip-comms-manual__nav-btn {
  flex: 1 1 14rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--steel);
  border-radius: 3px;
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  color: var(--steel);
  cursor: pointer;
  transition:
    color 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.whip-comms-manual__nav-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg);
}

.whip-comms-manual__nav-btn[aria-selected='true'] {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}

.whip-comms-manual__nav-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--steel) 55%, transparent);
  outline-offset: 2px;
}

.whip-comms-manual__card {
  position: relative;
  padding: 1.35rem 1.45rem;
  padding-right: 2.75rem;
}

.whip-comms-manual__edit {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.whip-comms-manual__edit:hover {
  color: var(--ink);
}

.whip-comms-manual__edit[hidden] {
  display: none !important;
}

.whip-comms-manual__status {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

.whip-comms-manual__status[hidden] {
  display: none !important;
}

.whip-comms-manual__card--saving {
  opacity: 0.92;
}

.whip-comms-manual__body {
  width: 100%;
  min-height: 24rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink);
  resize: vertical;
}

.whip-comms-manual__body:focus {
  outline: none;
}

.whip-comms-manual__preview.whip-markdown,
.whip-comms-manual__editor .whip-rich-editor__surface {
  font-size: 0.92rem;
  line-height: 1.55;
}

.whip-comms-manual__preview.whip-markdown h1,
.whip-comms-manual__preview.whip-markdown h2,
.whip-comms-manual__preview.whip-markdown h3,
.whip-comms-manual__editor .whip-rich-editor__surface h1,
.whip-comms-manual__editor .whip-rich-editor__surface h2,
.whip-comms-manual__editor .whip-rich-editor__surface h3 {
  margin-top: 1.35rem;
}

.whip-comms-manual__preview.whip-markdown h2:first-child,
.whip-comms-manual__editor .whip-rich-editor__surface h2:first-child {
  margin-top: 0;
}

.whip-comms-manual__attribution {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.whip-comms-manual__attribution[hidden] {
  display: none !important;
}

.whip-sections {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.whip-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.whip-table-wrap {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--steel);
  box-shadow: var(--shadow-float);
}

.whip-count {
  padding: 0 0 0.15rem;
}

.whip-count__label {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.whip-count__body {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  width: fit-content;
  max-width: 100%;
}

.whip-count__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.whip-count__priorities,
.whip-count__comms-manual {
  flex-shrink: 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--steel);
  border-radius: 3px;
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  cursor: pointer;
  transition:
    color 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.whip-count__priorities {
  transform-origin: center;
  animation: whip-priorities-heartbeat 2.4s ease-in-out infinite;
}

.whip-priorities-label__stack {
  position: relative;
  display: inline-block;
}

.whip-priorities-label__line {
  display: block;
  position: relative;
  z-index: 1;
}

.whip-priorities-label__ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  color: var(--steel);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: portal-video-register-slip 15.1s linear infinite;
}

.whip-count__priorities--slip-flash,
.whip-count__priorities--slip-flash .whip-priorities-label__line {
  color: #8eb4d9;
  text-shadow: 0 0 14px rgb(123 164 204 / 0.55);
}

.whip-count__priorities--slip-flash .whip-priorities-label__ghost {
  color: #b8d4ef;
  text-shadow: 0 0 10px rgb(142 180 217 / 0.45);
}

@keyframes whip-priorities-heartbeat {
  0%,
  20%,
  100% {
    transform: scale(1);
    border-color: var(--steel);
    box-shadow: none;
  }

  5% {
    transform: scale(1.03);
    border-color: #8eb4d9;
    box-shadow: 0 0 0 1px color-mix(in srgb, #8eb4d9 28%, transparent);
  }

  10% {
    transform: scale(1);
    border-color: var(--steel);
    box-shadow: none;
  }

  14% {
    transform: scale(1.018);
    border-color: #8eb4d9;
    box-shadow: 0 0 0 1px color-mix(in srgb, #8eb4d9 20%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whip-count__priorities {
    animation: none;
  }

  .whip-priorities-label__ghost {
    animation: none;
  }
}

a.whip-count__comms-manual {
  display: inline-block;
  text-decoration: none;
  color: var(--steel);
}

.whip-count__comms-manual[hidden] {
  display: none !important;
}

.whip-count__priorities:hover,
.whip-count__comms-manual:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg);
}

.whip-count__priorities:focus-visible,
.whip-count__comms-manual:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--steel) 55%, transparent);
  outline-offset: 2px;
}

.whip-count__list {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.whip-count__row {
  display: grid;
  grid-template-columns: 5.75rem auto;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--slate);
}

.whip-count__row dt {
  margin: 0;
  font-weight: 500;
}

.whip-count__row dd {
  margin: 0;
  min-width: 1.25rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
}

.whip-count__divider {
  align-self: stretch;
  width: 1px;
  min-height: 3.1rem;
  background: var(--line);
}

.whip-count__needed {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--slate);
  white-space: nowrap;
}

.whip-count__needed-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 36rem) {
  .whip-count__body {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .whip-count__divider {
    display: none;
  }
}

.whip-table {
  width: max-content;
  max-width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.whip-table__col-ward {
  width: 2.5rem;
}

.whip-table__col-name {
  width: auto;
}

.whip-table__col-votes {
  width: 5.5rem;
}

.whip-table th,
.whip-table td {
  text-align: left;
  vertical-align: middle;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--line);
}

.whip-table th {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--bg);
}

.whip-table__head th {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-weight: 600;
  vertical-align: middle;
}

.whip-table__head-inner {
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr) auto;
  align-items: center;
  column-gap: 2rem;
  width: 100%;
  padding: 0.82rem 0.85rem 0.78rem 0.85rem;
}

.whip-table__head-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.whip-section-label__edit {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--steel);
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
}

.whip-section-label__edit:hover {
  color: var(--ink);
}

.whip-section-label__edit[hidden] {
  display: none !important;
}

.whip-table__remove-table {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgb(160 48 32 / 0.45);
  background: transparent;
  color: rgb(120 36 24);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.whip-table__remove-table:hover,
.whip-table__remove-table:focus-visible {
  border-color: rgb(120 36 24 / 0.65);
  color: rgb(90 24 16);
  background: rgb(160 48 32 / 0.06);
}

.whip-table__remove-table[hidden] {
  display: none !important;
}

.whip-table__remove-table:disabled {
  opacity: 0.45;
  cursor: default;
}

.whip-table__head-title {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.whip-table__head-legend {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.1rem;
}

.whip-table__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.whip-table__legend-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 3px;
  image-rendering: pixelated;
}

.whip-table__legend-item--yea .whip-table__legend-dot {
  background: #2f6db3;
}

.whip-table__legend-item--nay .whip-table__legend-dot {
  background: #7a1f1f;
  animation: whip-nay-pulse 3s ease-in-out infinite;
}

.whip-table__legend-item--unsure {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.whip-table__legend-item--unsure:hover {
  color: var(--ink);
}

.whip-table__legend-item--unsure .whip-table__legend-dot {
  background: #c62828;
  animation: whip-unsure-pulse 2.5s ease-in-out infinite;
}

.whip-block--unsure-abstained .whip-table__legend-item--unsure .whip-table__legend-dot,
.whip-block--unsure-abstained .whip-table__vote-grid[data-vote='unsure'] .whip-table__vote-marker,
.whip-block--unsure-abstained .whip-table__vote-grid--yea-uncertain[data-vote='yea'] .whip-table__vote-marker {
  background: #75757d;
  animation: none;
  filter: none;
  box-shadow: none;
}

.whip-table__attribution-cell {
  padding: 0.5rem 0.65rem;
  border-bottom: none;
  background: var(--bg);
  text-align: right;
}

.whip-table__attribution {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.whip-table__attribution[hidden] {
  display: none !important;
}

.whip-table tbody tr:last-child td {
  border-bottom: none;
}

.whip-table td:first-child,
.whip-table th:first-child:not(.whip-table__head-title) {
  width: 2.5rem;
  padding-right: 0.25rem;
  white-space: nowrap;
}

.whip-table__ward {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--steel);
  text-align: right;
}

.whip-table__name {
  width: 1%;
  padding-left: 0.15rem;
  padding-right: 0.65rem;
  white-space: nowrap;
}

.whip-table__votes-cell {
  width: 6.1rem;
  padding: 0;
  vertical-align: middle;
}

.whip-table__subhead-actions {
  padding: 0.35rem 0.65rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.whip-table__subhead-actions:not(:has(.whip-table__remove-table:not([hidden]))) {
  padding: 0;
}

.whip-table__loophole-head {
  padding: 0.35rem 0.65rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.whip-table__subhead-spacer,
.whip-table__subhead-actions:empty {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.whip-table__col-loophole {
  width: 3.75rem;
}

.whip-table__col-remove {
  width: 1.75rem;
}

.whip-table__remove-head,
.whip-table__remove-cell {
  width: 1.75rem;
  padding: 0 0.35rem;
  text-align: center;
  vertical-align: middle;
}

.whip-table--readonly .whip-table__remove-cell,
.whip-table:not(.whip-table--row-remove) .whip-table__remove-cell {
  padding: 0;
  width: 0;
  border: 0;
  overflow: hidden;
}

.whip-table--readonly .whip-table__remove-head,
.whip-table:not(.whip-table--row-remove) .whip-table__remove-head {
  display: none;
}

.whip-table__remove-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--steel);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.whip-table__remove-row:hover,
.whip-table__remove-row:focus-visible {
  color: var(--ink);
  background: transparent;
}

.whip-table__remove-row:disabled {
  opacity: 0.45;
  cursor: default;
}

.whip-remove-confirm {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.whip-remove-confirm__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(20 18 16 / 0.35);
  cursor: pointer;
}

.whip-remove-confirm__card {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  box-shadow: 0 10px 30px rgb(20 18 16 / 0.12);
}

.whip-remove-confirm__title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.whip-remove-confirm__prompt {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.whip-remove-confirm__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.whip-remove-confirm__choice {
  min-width: 2.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.whip-remove-confirm__choice:hover,
.whip-remove-confirm__choice:focus-visible {
  border-color: var(--ink);
}

.whip-remove-confirm__choice--yes {
  color: var(--signal-no, #8b2f2f);
  border-color: rgb(139 47 47 / 0.35);
}

.whip-add-session-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.whip-add-session {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
}

.whip-add-session:hover,
.whip-add-session:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
}

.whip-add-session:disabled {
  opacity: 0.5;
  cursor: default;
}

.whip-table__loophole-cell {
  width: 3.75rem;
  padding: 0 0.55rem 0 0.15rem;
  vertical-align: middle;
  text-align: center;
}

.whip-table__loophole-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  font-family: var(--font-mono);
  font-size: 1.28rem;
  line-height: 1;
  transform-origin: center center;
}

.whip-table__loophole-symbol:not(.whip-table__loophole-symbol--empty) {
  animation: whip-loophole-blink var(--whip-loophole-blink-ms, 3s) ease-in-out infinite;
}

@keyframes whip-loophole-blink {
  0%,
  68%,
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
  }

  78% {
    opacity: 0.28;
    filter: brightness(1.35);
    transform: scale(1.08);
  }

  88% {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
  }
}

.whip-table__loophole-symbol--empty {
  color: var(--ink-muted);
  animation: none;
}

.whip-table__loophole-symbol--low {
  color: #2f6b3a;
}

.whip-table__loophole-symbol--moderate {
  color: #6b8a3a;
}

.whip-table__loophole-symbol--elevated {
  color: #a67c00;
}

.whip-table__loophole-symbol--high {
  color: #8f2020;
}

.whip-table__vote-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1.75rem);
  column-gap: 0.3rem;
  width: fit-content;
  min-height: 100%;
  --whip-vote-cell: 1.75rem;
  --whip-vote-gap: 0.3rem;
  --whip-vote-cell-tint: color-mix(in srgb, var(--line) 10%, var(--bg));
}

.whip-table:not(.whip-table--readonly) .whip-table__vote-grid::before {
  content: none;
}

.whip-table:not(.whip-table--readonly) .whip-table__vote::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--whip-vote-cell-tint);
  z-index: -1;
  pointer-events: none;
  transition: background 120ms ease;
}

.whip-table__vote-marker {
  position: absolute;
  top: 50%;
  left: 16.666%;
  z-index: 3;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.4rem;
  margin-left: -0.4rem;
  border-radius: 3px;
  background: #2f6db3;
  opacity: 0;
  pointer-events: none;
  image-rendering: pixelated;
  transition:
    left 240ms cubic-bezier(0.33, 1, 0.68, 1),
    width 240ms cubic-bezier(0.33, 1, 0.68, 1),
    height 240ms cubic-bezier(0.33, 1, 0.68, 1),
    margin 240ms cubic-bezier(0.33, 1, 0.68, 1),
    background-color 180ms ease,
    opacity 160ms ease;
}

.whip-table__vote-grid[data-vote='yea'] .whip-table__vote-marker {
  left: var(--whip-yea-marker-left, 16.666%);
  width: calc(0.8rem * var(--whip-marker-scale, 1));
  height: calc(0.8rem * var(--whip-marker-scale, 1));
  margin-top: calc(0.8rem * var(--whip-marker-scale, 1) / -2);
  margin-left: calc(0.8rem * var(--whip-marker-scale, 1) / -2);
  background: color-mix(
    in srgb,
    #6240c9 calc((1 - var(--whip-yea-marker-tint, 1)) * 48%),
    #2f6db3
  );
  opacity: 1;
}

.whip-table__vote-grid--yea-uncertain[data-vote='yea'] .whip-table__vote-marker {
  left: 83.333%;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.4rem;
  margin-left: -0.4rem;
  background: #c62828;
  opacity: 1;
  transform-origin: center center;
  animation: whip-unsure-pulse 2.5s ease-in-out infinite;
}

.whip-table__vote-grid--low-confidence[data-vote='yea'] .whip-table__vote-marker {
  transform-origin: center center;
  animation: whip-yea-confidence-pulse 2s ease-in-out infinite;
  transition:
    left 240ms cubic-bezier(0.33, 1, 0.68, 1),
    width 240ms cubic-bezier(0.33, 1, 0.68, 1),
    height 240ms cubic-bezier(0.33, 1, 0.68, 1),
    margin 240ms cubic-bezier(0.33, 1, 0.68, 1),
    background-color 180ms ease;
}

@keyframes whip-yea-confidence-pulse {
  0%,
  72%,
  100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: none;
  }

  82% {
    transform: scale(calc(1 + 0.14 * var(--whip-pulse-strength, 0.67)));
    filter: brightness(calc(1 + 0.18 * var(--whip-pulse-strength, 0.67)));
    box-shadow: 0 0 0 2px
      color-mix(
        in srgb,
        color-mix(in srgb, #6240c9 calc((1 - var(--whip-yea-marker-tint, 1)) * 48%), #2f6db3)
          calc(42% * var(--whip-pulse-strength, 0.67)),
        transparent
      );
  }

  92% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: none;
  }
}

.whip-table__vote-grid[data-vote='nay'] .whip-table__vote-marker {
  left: 50%;
  background: #7a1f1f;
  opacity: 1;
  transform-origin: center center;
  animation: whip-nay-pulse 3s ease-in-out infinite;
}

.whip-table__vote-grid[data-vote='unsure'] .whip-table__vote-marker {
  left: 83.333%;
  background: #c62828;
  opacity: 1;
  transform-origin: center center;
  animation: whip-unsure-pulse 2.5s ease-in-out infinite;
}

@keyframes whip-nay-pulse {
  0%,
  82%,
  100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: none;
  }

  90% {
    transform: scale(1.12);
    filter: brightness(1.16);
    box-shadow: 0 0 0 2px color-mix(in srgb, #7a1f1f 48%, transparent);
  }

  96% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: none;
  }
}

@keyframes whip-unsure-pulse {
  0%,
  80%,
  100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: none;
  }

  88% {
    transform: scale(1.12);
    filter: brightness(1.16);
    box-shadow: 0 0 0 2px color-mix(in srgb, #c62828 48%, transparent);
  }

  94% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: none;
  }
}

.whip-table__vote {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  margin: 0;
  padding: 0.28rem 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.whip-table:not(.whip-table--readonly) .whip-table__vote:hover::before {
  background: color-mix(in srgb, var(--ink) 14%, var(--line));
}

.whip-table:not(.whip-table--readonly) .whip-table__vote:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 28%, transparent);
  outline-offset: -2px;
}

.whip-table:not(.whip-table--readonly) .whip-table__vote:focus-visible::before {
  background: color-mix(in srgb, var(--ink) 18%, var(--line));
}

.whip-table__vote-grid--saving .whip-table__vote-marker {
  opacity: 0.45;
}

.whip-table__vote-grid--saved .whip-table__vote--selected::before {
  background: color-mix(in srgb, #2f6b3a 24%, var(--whip-vote-cell-tint));
}

.whip-table__vote-grid--error .whip-table__vote--selected::before {
  background: color-mix(in srgb, #8f2020 24%, var(--whip-vote-cell-tint));
}

@media (max-width: 40rem) {
  .whip-table-wrap {
    width: 100%;
    overflow-x: visible;
  }

  .whip-table {
    width: 100%;
    max-width: none;
    min-width: 0;
    table-layout: auto;
  }

  .whip-table colgroup {
    display: none;
  }

  .whip-table thead,
  .whip-table tbody,
  .whip-table tfoot,
  .whip-table thead tr,
  .whip-table tbody tr,
  .whip-table tfoot tr {
    display: block;
  }

  .whip-table__head th,
  .whip-table tbody td,
  .whip-table tfoot td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .whip-table__head-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
  }

  .whip-table__head-title {
    white-space: normal;
  }

  .whip-table__head-legend {
    justify-self: auto;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .whip-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
    padding: 0.8rem 0.85rem 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .whip-table tbody td {
    padding: 0;
    border-bottom: none;
  }

  .whip-table td:first-child,
  .whip-table th:first-child:not(.whip-table__head-title) {
    width: auto;
    padding-right: 0;
  }

  .whip-table__ward {
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
  }

  .whip-table__ward::after {
    content: ' · ';
    font-weight: 400;
    color: var(--ink-muted);
  }

  .whip-table__name {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 0;
    font-weight: 600;
    color: var(--ink);
  }

  .whip-table__votes-cell {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 0.5rem;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: flex-start;
  }

  .whip-table thead tr.whip-table__subhead {
    display: block;
  }

  .whip-table__subhead:not(:has(.whip-table__remove-table:not([hidden]))) {
    display: none;
  }

  .whip-table__subhead-actions {
    display: block;
    width: 100%;
    padding: 0 0.85rem 0.65rem;
    border-bottom: 1px solid var(--line);
  }

  .whip-table__loophole-head,
  .whip-table__remove-head {
    display: none;
  }

  .whip-table__loophole-cell {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
    margin-left: auto;
    order: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .whip-table__loophole-cell::before {
    content: 'Loophole-risk:';
    display: inline;
    margin-bottom: 0;
    font-family: var(--font-mono);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--steel);
    white-space: nowrap;
  }

  .whip-table__remove-cell {
    flex: 0 0 auto;
    order: 4;
    margin-left: 0.25rem;
  }

  .whip-table--readonly .whip-table__remove-cell,
  .whip-table:not(.whip-table--row-remove) .whip-table__remove-cell {
    display: none;
  }

  .whip-table__vote-grid {
    grid-template-columns: repeat(3, 2.75rem);
    column-gap: 0.45rem;
    width: fit-content;
    max-width: 100%;
    --whip-vote-cell: 2.75rem;
    --whip-vote-gap: 0.45rem;
  }

  .whip-table:not(.whip-table--readonly) .whip-table__vote-grid::before {
    content: none;
  }

  .whip-table__vote {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 0;
    padding: 0;
    border-radius: 4px;
  }

  .whip-table__vote-marker {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: -0.55rem;
    margin-left: -0.55rem;
    border-radius: 4px;
  }

  .whip-table__vote-grid[data-vote='yea'] .whip-table__vote-marker {
    width: calc(1.1rem * var(--whip-marker-scale, 1));
    height: calc(1.1rem * var(--whip-marker-scale, 1));
    margin-top: calc(1.1rem * var(--whip-marker-scale, 1) / -2);
    margin-left: calc(1.1rem * var(--whip-marker-scale, 1) / -2);
  }

  .whip-table__vote-grid--yea-uncertain[data-vote='yea'] .whip-table__vote-marker {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: -0.55rem;
    margin-left: -0.55rem;
  }

  .whip-table__legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 4px;
  }

  .whip-table__attribution-cell {
    padding: 0.55rem 0.85rem 0.65rem;
    text-align: left;
  }

  .whip-table__attribution {
    white-space: normal;
  }
}

.whip-wrap .lede {
  max-width: 42rem;
  color: var(--ink-muted);
}

.whip-table__name-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.whip-table__name-btn:hover .whip-table__name-text,
.whip-table__name-btn:focus-visible .whip-table__name-text {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.whip-table__name-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--steel) 55%, transparent);
  outline-offset: 2px;
  border-radius: 2px;
}

.whip-table__name-text {
  flex: 0 1 auto;
}

.whip-table__name-edit {
  flex-shrink: 0;
  font-size: 0.82em;
  line-height: 1;
  color: var(--steel);
}

.whip-notes-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.whip-notes-overlay[hidden] {
  display: none !important;
}

.whip-notes-overlay__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(28, 31, 36, 0.42);
  cursor: pointer;
}

.whip-notes-overlay__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 34rem);
  max-height: min(88vh, 40rem);
  background: var(--bg-elevated);
  border: 1px solid var(--steel);
  box-shadow: var(--shadow-float);
}

.whip-notes-overlay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.85rem 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.whip-notes-overlay__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: var(--steel);
}

.whip-notes-overlay__name {
  color: var(--ink);
}

.whip-notes-overlay__suffix {
  color: var(--steel);
  text-transform: uppercase;
}

.whip-notes-overlay__header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 0.55rem;
}

.whip-notes-overlay__close {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.15rem -0.1rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
}

.whip-notes-overlay__close:hover {
  color: var(--ink);
}

.whip-notes-overlay__toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem 0.55rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.whip-notes-overlay__score-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.85rem 1.15rem;
  width: 100%;
}

.whip-notes-overlay__score-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.38rem;
  min-width: 0;
}

.whip-notes-overlay__score-label,
.whip-notes-overlay__confidence-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.whip-score-slider {
  --whip-score-track: color-mix(in srgb, var(--line) 10%, var(--bg));
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.whip-score-slider__range {
  flex: 1;
  min-width: 0;
  height: 1.55rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.whip-score-slider__range:focus {
  outline: none;
}

.whip-score-slider__range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid color-mix(in srgb, var(--steel) 55%, transparent);
  outline-offset: 2px;
}

.whip-score-slider__range:focus-visible::-moz-range-thumb {
  outline: 2px solid color-mix(in srgb, var(--steel) 55%, transparent);
  outline-offset: 2px;
}

.whip-score-slider__range::-webkit-slider-runnable-track {
  height: 0.35rem;
  border-radius: 3px;
  background: var(--whip-score-track);
}

.whip-score-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.225rem;
  border: 0;
  border-radius: 3px;
  background: #2f6db3;
  image-rendering: pixelated;
  transition: background-color 120ms ease;
}

.whip-score-slider--loophole .whip-score-slider__range::-webkit-slider-thumb {
  background: #7a1f1f;
}

.whip-score-slider[data-unset] .whip-score-slider__range::-webkit-slider-thumb {
  background: var(--ink-muted);
}

.whip-score-slider__range::-moz-range-track {
  height: 0.35rem;
  border: 0;
  border-radius: 3px;
  background: var(--whip-score-track);
}

.whip-score-slider__range::-moz-range-thumb {
  width: 0.8rem;
  height: 0.8rem;
  border: 0;
  border-radius: 3px;
  background: #2f6db3;
  image-rendering: pixelated;
  transition: background-color 120ms ease;
}

.whip-score-slider--loophole .whip-score-slider__range::-moz-range-thumb {
  background: #7a1f1f;
}

.whip-score-slider[data-unset] .whip-score-slider__range::-moz-range-thumb {
  background: var(--ink-muted);
}

.whip-score-slider__value {
  flex: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: right;
  color: var(--ink);
}

.whip-score-slider__range:disabled {
  cursor: default;
  opacity: 0.55;
}

.whip-score-slider__range:disabled ~ .whip-score-slider__value {
  color: var(--slate);
}

.whip-score-slider--invalid {
  --whip-score-track: color-mix(in srgb, #8f2020 18%, var(--bg));
}

.whip-notes-overlay__toolbar[hidden],
.whip-section-settings-toolbar[hidden] {
  display: none !important;
}

.whip-notes-overlay__stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0;
  overflow-y: auto;
  max-height: 14rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.whip-notes-overlay__stack[hidden] {
  display: none !important;
}

.whip-author-note {
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 2px;
  background: var(--bg-elevated);
}

.whip-author-note__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, var(--bg-elevated));
}

.whip-author-note__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.whip-author-note__label--own {
  margin: 0;
  padding: 0.7rem 1rem 0.35rem;
  background: var(--bg-elevated);
}

.whip-author-note__time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

.whip-author-note__delete {
  margin-left: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.2rem;
  cursor: pointer;
}

.whip-author-note__delete:hover {
  color: #8f2020;
}

.whip-author-note__body {
  padding: 0.75rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.whip-author-note--nick,
.whip-notes-overlay__editor--author-nick .whip-rich-editor__surface {
  --whip-note-color: var(--slate);
  --whip-note-border: var(--slate);
}

.whip-author-note--dan,
.whip-notes-overlay__editor--author-dan .whip-rich-editor__surface {
  --whip-note-color: #2f6b3a;
  --whip-note-border: #2f6b3a;
}

.whip-author-note--aaron,
.whip-notes-overlay__editor--author-aaron .whip-rich-editor__surface {
  --whip-note-color: #0f766e;
  --whip-note-border: #0f766e;
}

.whip-author-note--team,
.whip-notes-overlay__editor--author-team .whip-rich-editor__surface {
  --whip-note-color: #2f6db3;
  --whip-note-border: #2f6db3;
}

.whip-author-note--jesse,
.whip-notes-overlay__editor--author-jesse .whip-rich-editor__surface {
  --whip-note-color: #4338ca;
  --whip-note-border: #4338ca;
}

.whip-author-note--the-boss,
.whip-notes-overlay__editor--author-the-boss .whip-rich-editor__surface {
  --whip-note-color: #7c3aed;
  --whip-note-border: #7c3aed;
}

.whip-author-note--lindsay,
.whip-notes-overlay__editor--author-lindsay .whip-rich-editor__surface {
  --whip-note-color: #b45309;
  --whip-note-border: #b45309;
}

.whip-author-note--rachel,
.whip-notes-overlay__editor--author-rachel .whip-rich-editor__surface {
  --whip-note-color: #7a1f1f;
  --whip-note-border: #7a1f1f;
}

.whip-author-note[class*='whip-author-note--'] {
  border-left-color: var(--whip-note-border);
}

.whip-author-note__label--own[class*='whip-author-note--'],
.whip-author-note[class*='whip-author-note--'] .whip-author-note__label {
  color: var(--whip-note-color);
}

.whip-author-note[class*='whip-author-note--'] .whip-author-note__body {
  color: var(--whip-note-color);
}

.whip-notes-overlay__editor[class*='whip-notes-overlay__editor--author-'] .whip-rich-editor__surface {
  color: var(--whip-note-color);
  box-shadow: inset 3px 0 0 var(--whip-note-border);
}

.whip-notes-overlay__confidence {
  width: 4.25rem;
  margin: 0;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--ink);
}

.whip-notes-overlay__confidence:focus {
  outline: 2px solid color-mix(in srgb, var(--steel) 55%, transparent);
  outline-offset: 1px;
}

.whip-notes-overlay__confidence:read-only {
  cursor: default;
  color: var(--slate);
}

.whip-notes-overlay__confidence--invalid {
  border-color: #8f2020;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #8f2020 35%, transparent);
}

.whip-notes-overlay__body {
  flex: 1;
  min-height: 14rem;
  margin: 0;
  padding: 1rem 1rem 0.85rem;
  border: 0;
  resize: vertical;
  background: var(--bg-elevated);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate);
}

.whip-notes-overlay__body:focus {
  outline: none;
}

.whip-notes-overlay__body:read-only {
  cursor: default;
  color: var(--slate);
}

.whip-notes-overlay__preview {
  flex: 1;
  min-height: 14rem;
  margin: 0;
  padding: 1rem 1rem 0.85rem;
  overflow-y: auto;
  background: var(--bg-elevated);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate);
}

.whip-notes-overlay__preview[hidden],
.whip-notes-overlay__editor[hidden] {
  display: none !important;
}

.whip-notes-overlay__preview:focus {
  outline: none;
}

.whip-notes-overlay__editor {
  flex: 0 1 auto;
  min-height: 10rem;
  max-height: min(24rem, 52vh);
  margin: 0;
  overflow-y: auto;
  background: var(--bg-elevated);
}

.whip-notes-overlay__editor .whip-rich-editor__surface {
  min-height: 8rem;
  height: auto;
  padding: 1rem 1rem 0.85rem;
  outline: none;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate);
}

.whip-notes-overlay__editor .whip-rich-editor__surface:focus {
  outline: none;
}

.whip-notes-overlay__editor .whip-rich-editor__surface > *:first-child {
  margin-top: 0;
}

.whip-notes-overlay__editor .whip-rich-editor__surface > *:last-child {
  margin-bottom: 0;
}

.whip-notes-overlay__card--saving .whip-notes-overlay__editor,
.whip-notes-overlay__card--saving .whip-notes-overlay__preview {
  opacity: 0.65;
}

.whip-markdown p {
  margin: 0 0 0.85rem;
}

.whip-markdown p:last-child {
  margin-bottom: 0;
}

/* TipTap surfaces inherit whip-markdown on the mount; preview margins feel like multi-line gaps on Enter. */
.whip-markdown .whip-rich-editor__surface :is(p, ul, ol, blockquote, pre, h1, h2, h3, hr) {
  margin: 0;
}

.whip-markdown .whip-rich-editor__surface p + p {
  margin-top: 0;
}

.whip-markdown h1,
.whip-markdown h2,
.whip-markdown h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.whip-markdown h1 {
  font-size: 0.95rem;
}

.whip-markdown ul,
.whip-markdown ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.whip-markdown li + li {
  margin-top: 0.35rem;
}

.whip-markdown a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.whip-markdown del,
.whip-markdown s {
  text-decoration: line-through;
  color: var(--ink-muted);
}

.whip-markdown code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.1em 0.3em;
  border-radius: 2px;
  background: color-mix(in srgb, var(--bg) 55%, var(--line));
}

.whip-markdown pre {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
}

.whip-markdown pre code {
  padding: 0;
  background: transparent;
}

.whip-markdown blockquote {
  margin: 0 0 0.85rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--line-strong);
  color: var(--ink-muted);
}

.whip-markdown hr {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.whip-markdown__empty {
  color: var(--ink-muted);
  font-style: italic;
}

.whip-notes-overlay__card--saving .whip-notes-overlay__body {
  opacity: 0.65;
}

.whip-notes-overlay__card--saved {
  box-shadow:
    var(--shadow-float),
    inset 0 0 0 1px color-mix(in srgb, #2f6b3a 35%, transparent);
}

.whip-notes-overlay__card--error {
  box-shadow:
    var(--shadow-float),
    inset 0 0 0 1px color-mix(in srgb, #8f2020 35%, transparent);
}

.whip-notes-overlay__attribution {
  margin: 0;
  padding: 0.55rem 1rem 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.whip-notes-overlay__attribution[hidden] {
  display: none !important;
}

body.whip-notes-open {
  overflow: hidden;
}

@media (max-width: 40rem) {
  .whip-notes-overlay {
    padding: 0;
    place-items: end center;
  }

  .whip-notes-overlay__card {
    width: 100%;
    max-height: min(92vh, 40rem);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .whip-table__name-btn {
    display: inline-flex;
  }
}

.site-nav-dropdown__trigger--feature::after {
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.1rem;
}

.site-nav-dropdown__trigger::-webkit-details-marker {
  display: none;
}

.site-nav-dropdown__trigger::after {
  content: '';
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.1em) rotate(45deg);
  transition: transform 0.15s ease;
}

.site-nav-dropdown[open] .site-nav-dropdown__trigger {
  color: var(--steel);
}

.site-nav-dropdown[open] .site-nav-dropdown__trigger::after {
  transform: translateY(0.05em) rotate(-135deg);
}

.site-nav-dropdown__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.4rem);
  left: 0;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  min-width: 15.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-float);
}

.site-nav-dropdown__menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  line-height: 1.35;
  white-space: normal;
}

.site-nav-dropdown__menu a:hover {
  background: var(--bg);
}

.site-nav-dropdown__menu--tall {
  max-height: min(70vh, 24rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-main {
  flex: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem 3rem;
}

.section {
  padding-top: 2.5rem;
  max-width: var(--max);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.65rem;
}

.section__label--sentence {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.45;
  max-width: 42rem;
}

.section__label--sentence a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section__label--sentence a:hover {
  color: var(--ink);
}

.section--brief h1,
.section--brief h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--ink);
}

.brief-headline {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.4;
  font-weight: 600;
  margin: 1.75rem 0 1rem;
  color: var(--ink);
}

.brief-headline em {
  font-style: italic;
  font-weight: 600;
}

.section--brief .section__label {
  margin-top: 1.65rem;
}

.brief-facts,
.brief-asks {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.brief-facts li,
.brief-asks li {
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--slate);
  line-height: 1.55;
}

.brief-facts strong {
  color: var(--ink);
}

.section h2 {
  font-family: var(--font-body);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

#position {
  position: relative;
  margin: 2rem 0 2.25rem;
}

.core-problem__edit {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.core-problem__edit:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.core-problem__edit[hidden] {
  display: none !important;
}

.core-problem__body.whip-markdown > h3:first-child {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.65rem;
}

.core-problem__body.whip-markdown p:last-child {
  color: var(--ink);
}

.interim-bylaw-note {
  margin: 0 0 2.25rem;
  max-width: 42rem;
}

.interim-bylaw-note__body p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

.interim-bylaw-note__body p:last-child {
  margin-bottom: 0;
}

.interim-bylaw-note a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.interim-bylaw-note a:hover {
  color: var(--ink);
}

.homepage-updates__body.whip-markdown {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate);
}

.homepage-markdown-overlay__counter {
  margin: 0.65rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.homepage-markdown-overlay__counter[hidden] {
  display: none !important;
}

.homepage-markdown-overlay__counter--over {
  color: var(--signal);
}

.core-problem__form[hidden],
.core-problem__edit[hidden] {
  display: none !important;
}

.core-problem__form:not([hidden]) {
  display: grid;
  gap: 0.65rem;
  padding-right: 2rem;
}

.core-problem__field {
  display: grid;
  gap: 0.25rem;
}

.core-problem__field span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.core-problem__field input,
.core-problem__field textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.9rem;
  background: var(--bg-elevated);
}

.core-problem__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.core-problem__save,
.core-problem__cancel {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.core-problem__save {
  background: var(--ink);
  color: var(--bg-elevated);
}

.core-problem__cancel {
  background: var(--bg-elevated);
  color: var(--ink);
}

.core-problem__form-msg {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.core-problem__form-msg--error {
  color: #8f2020;
}

.committee-status {
  position: relative;
  width: 80%;
  margin: 0 0 0.85rem;
  margin-inline: 0 auto 0 0;
  padding: 0.85rem 2.35rem 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--steel);
  box-shadow: var(--shadow-float);
  text-align: left;
}

.committee-status__older {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  padding: 0.1rem 0.2rem;
  border: none;
  background: transparent;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 1.44rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.committee-status__older:hover {
  color: var(--ink);
}

.committee-status__older[hidden] {
  display: none !important;
}

.committee-status__delete {
  position: absolute;
  top: 0.55rem;
  right: 5.05rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.committee-status__delete:hover {
  color: #8f2020;
  border-color: #8f2020;
}

.committee-status__new {
  position: absolute;
  top: 0.55rem;
  right: 2.8rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.committee-status__new:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.committee-status__edit {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.committee-status__edit:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.committee-status__form[hidden],
.committee-status__edit[hidden],
.committee-status__new[hidden],
.committee-status__delete[hidden] {
  display: none !important;
}

.committee-status__form:not([hidden]) {
  display: grid;
  gap: 0.65rem;
  padding-right: 2rem;
}

.committee-status__field {
  display: grid;
  gap: 0.25rem;
}

.committee-status__field span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.committee-status__field input,
.committee-status__field textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.9rem;
  background: var(--bg-elevated);
}

.committee-status__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.committee-status__save,
.committee-status__cancel {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.committee-status__save {
  background: var(--ink);
  color: var(--bg-elevated);
}

.committee-status__cancel {
  background: var(--bg-elevated);
  color: var(--ink);
}

.committee-status__form-msg {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.committee-status__form-msg--error {
  color: #8f2020;
}

.committee-status__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.5rem;
}

.committee-status__hearing {
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.committee-status__date {
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  font-weight: 500;
  margin: 0 0 0.55rem;
  color: var(--slate);
}

.committee-status__status {
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 0.4rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.committee-status__live {
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.committee-status__posted {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.committee-status__posted time {
  font: inherit;
  color: inherit;
}

.committee-status__link {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}

.committee-status__link:hover {
  color: var(--ink);
}

.homepage-updates {
  position: relative;
  width: 80%;
  margin: 0 0 0.85rem;
  margin-inline: 0 auto 0 0;
  padding: 0.85rem 2.35rem 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--steel);
  box-shadow: var(--shadow-float);
  text-align: left;
}

.homepage-updates--empty:not(.homepage-updates--editable) {
  display: none;
}

.homepage-updates__edit {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.homepage-updates__edit:hover {
  color: var(--ink);
}

.homepage-updates__edit[hidden],
.homepage-updates__form[hidden] {
  display: none !important;
}

.homepage-updates__label {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.homepage-updates__body:empty {
  display: none;
}

.homepage-updates__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--slate);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.homepage-updates__attribution {
  margin: 0.65rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.homepage-updates__attribution[hidden] {
  display: none !important;
}

.homepage-updates__form:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.homepage-updates__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.homepage-updates__field span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.homepage-updates__field textarea {
  width: 100%;
  min-height: 10rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.homepage-updates__counter {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.homepage-updates__counter--over {
  color: #8f2020;
}

.homepage-updates__form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.homepage-updates__save,
.homepage-updates__cancel {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.homepage-updates__save {
  background: var(--ink);
  color: var(--bg-elevated);
}

.homepage-updates__cancel {
  background: var(--bg-elevated);
  color: var(--ink);
}

.homepage-updates__form-msg {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.homepage-updates__form-msg--error {
  color: #8f2020;
}

.hero {
  position: relative;
}

.hero__wrap {
  position: relative;
}

.hero__edit {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.hero__edit:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.hero__edit[hidden] {
  display: none !important;
}

.hero h1,
.hero__headline {
  display: flex;
  flex-direction: column;
  gap: calc(1.28em * 0.88);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 1.1rem;
}

.hero__line {
  display: block;
}

.hero__line--register-slip {
  position: relative;
}

.hero__register-slip__stack {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hero__register-slip__line {
  display: block;
  position: relative;
  z-index: 1;
}

.hero__register-slip__ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  color: var(--steel);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: portal-video-register-slip 15.1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__register-slip__ghost {
    animation: none;
  }
}

.hero__follow {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 1rem;
  color: var(--ink);
}

.lede {
  font-size: 1.05rem;
  color: var(--slate);
  margin: 1.25rem 0 0;
}

.hamilton-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  width: 80%;
  margin-inline: 0 auto 0 0;
  height: min(35vh, 14.75rem);
  min-height: 10.75rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-float);
}

.hamilton-map--error {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.hamilton-map-legend {
  list-style: none;
  width: 80%;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-muted);
}

.hamilton-map-legend__swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.35rem;
  vertical-align: -0.1rem;
  border: 1px solid var(--line-strong);
}

.hamilton-map-legend__swatch--radius {
  border-radius: 50%;
  background: rgba(28, 31, 36, 0.12);
  border-color: rgba(28, 31, 36, 0.45);
}

.hamilton-map-legend__swatch--site {
  background: rgba(28, 31, 36, 0.45);
  border-color: var(--ink);
}

.campaign-map-radius-handle-wrap {
  background: transparent;
  border: none;
}

.campaign-map-radius-handle {
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px;
  border: 2px solid rgba(28, 31, 36, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
  cursor: grab;
}

.campaign-map-radius-handle-wrap:active .campaign-map-radius-handle {
  cursor: grabbing;
}

.hamilton-map-legend__swatch--heat {
  border-radius: 50%;
  background: rgba(199, 54, 54, 0.45);
  border-color: #8f2020;
}

.hamilton-map .leaflet-container {
  font-family: var(--font-body);
}

.hamilton-map .leaflet-control-attribution {
  font-size: 0.58rem;
  background: rgba(255, 255, 255, 0.92);
}

.hamilton-map-pan-lock__btn {
  display: block;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: var(--bg-elevated);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
}

.hamilton-map-pan-lock__btn:hover:not(:disabled) {
  background: var(--bg);
  color: var(--steel);
}

.hamilton-map-pan-lock__btn:disabled {
  cursor: default;
  color: var(--ink-muted);
  background: var(--bg);
}

.hamilton-map--pan-enabled.leaflet-container {
  cursor: grab;
}

.hamilton-map--pan-enabled.leaflet-container:active {
  cursor: grabbing;
}

.campaign-map-section[hidden] {
  display: none !important;
}

.campaign-map-hint {
  margin: 0 0 0.75rem;
  max-width: 42rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.campaign-map-hint[hidden],
.campaign-map-status[hidden],
.campaign-map-address[hidden] {
  display: none !important;
}

.campaign-map-address {
  margin: 0 0 0.85rem;
  max-width: 42rem;
}

.campaign-map-address__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.35rem;
}

.campaign-map-address__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.campaign-map-address__input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.campaign-map-address__input:focus {
  outline: 2px solid color-mix(in srgb, var(--steel) 35%, transparent);
  outline-offset: 1px;
}

.campaign-map-address__input:disabled,
.campaign-map-address__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.campaign-map-address__submit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-elevated);
  cursor: pointer;
}

.campaign-map-address__submit:hover:not(:disabled) {
  background: var(--slate);
  border-color: var(--slate);
}

.campaign-map-status {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.campaign-map-status--err {
  color: #9b2c2c;
}

.campaign-map-section .hamilton-map-legend {
  margin-bottom: 2rem;
}

.pillars {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.pillars li {
  font-size: 0.92rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--slate);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.2rem 1.3rem;
  margin-top: 1rem;
}

.card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
}

.two-col {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label,
.form-field legend {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
}

.form-field .hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.consent {
  font-size: 0.84rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 1.1rem 0;
  color: var(--slate);
}

.concerns-field {
  border: 0;
  padding: 0;
  margin: 0 0 0.9rem;
}

.form-field label.concern-option {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.3rem 0 0;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--slate);
}

.form-field .concern-option input,
.speak-up__form .form-field .concern-option input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.concern-option input:disabled + span {
  opacity: 0.45;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--slate);
  background: var(--slate);
  color: var(--bg-elevated);
  cursor: pointer;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn:disabled {
  opacity: 0.5;
}

.form-message {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.ok {
  background: #eef6ee;
  border-color: #9cb89c;
}

.form-message.err {
  background: #faf0f0;
  border-color: #d4a5a5;
}

.feed-links {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  margin-top: 0.5rem;
}

.page-council {
  display: block;
}

.council-wrap,
.election-tracker-wrap,
.put-everywhere-wrap {
  padding-top: 2rem;
}

.page-put-everywhere {
  display: block;
}

.page-put-everywhere .put-everywhere-wrap {
  padding-top: 0.75rem;
}

.page-put-everywhere .section {
  padding-top: 1rem;
}

.put-everywhere-intro {
  margin-top: 0;
  max-width: 36rem;
}

.put-everywhere-intro p {
  margin: 0 0 0.85rem;
  line-height: 1.55;
}

.put-everywhere-places {
  margin: 0;
  padding-left: 0;
  list-style: none;
  line-height: 1.6;
  color: var(--ink-muted);
}

.put-everywhere-places li::before {
  content: '– ';
}

.put-everywhere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
  max-width: 48rem;
}

.put-everywhere-card {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.put-everywhere-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-float);
}

.put-everywhere-card__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--bg);
}

.put-everywhere-card__title {
  margin: 2rem 0 0;
  padding-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-election-tracker .election-tracker-wrap {
  padding-top: 0.75rem;
}

.page-election-tracker .election-tracker-wrap > .section {
  padding-top: 0.75rem;
}

.page-election-tracker {
  display: block;
}

.election-legend--float {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
}

.election-legend__head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.election-legend__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.election-legend__list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.election-legend__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.election-legend__symbol {
  flex-shrink: 0;
  width: 1.6rem;
  text-align: center;
  line-height: 1.2;
}

.election-legend__symbol.election-tracker-candidate__stance--no,
.election-legend__symbol.election-tracker-candidate__stance--yes,
.election-legend__symbol.election-tracker-candidate__stance--unsure {
  font-size: 1.35rem;
  font-weight: 700;
}

.election-legend__text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

@media (min-width: 1180px) {
  .election-legend--float {
    position: fixed;
    top: calc(var(--float-top) + 2rem);
    right: 1.25rem;
    left: auto;
    z-index: 30;
    width: var(--legend-w);
    max-height: calc(100vh - var(--float-top) - 2rem - var(--float-margin-bottom));
    overflow: auto;
  }
}

@media (min-width: 1560px) {
  .election-legend--float {
    right: auto;
    left: calc(50% + var(--page-max) / 2 + 0.5rem);
  }
}

@media (max-width: 1179px) {
  .page-election-tracker .site-main {
    padding-bottom: 5.75rem;
  }

  .election-legend--float {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    border-bottom: none;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(28, 31, 36, 0.08);
  }

  .election-legend__head {
    display: none;
  }

  .election-legend__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.85rem;
    padding: 0.65rem 0.75rem 0.75rem;
  }

  .election-legend__item {
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
  }

  .election-legend__symbol {
    width: 1.25rem;
  }

  .election-legend__symbol.election-tracker-candidate__stance--no,
  .election-legend__symbol.election-tracker-candidate__stance--yes,
  .election-legend__symbol.election-tracker-candidate__stance--unsure {
    font-size: 1.05rem;
  }

  .election-legend__text {
    font-size: 0.68rem;
    line-height: 1.3;
  }
}

.election-tracker-wrap .election-tracker-intro {
  margin-bottom: 1.5rem;
}

.election-tracker-ops-manual__trigger {
  margin: 0 0 1rem;
}

.election-tracker-ops-manual__trigger:hover {
  background: var(--bg-elevated);
}

.election-tracker-ops-manual-overlay__card {
  max-width: 34rem;
}

.election-tracker-ops-manual-overlay__body {
  padding: 1rem 1.25rem 1.25rem;
  max-height: min(70vh, 28rem);
  overflow: auto;
}

.election-tracker-ops-manual-overlay__edit {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.election-tracker-ops-manual-overlay__edit:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.election-tracker-intro__block,
.election-tracker-methodology__block {
  position: relative;
}

.election-tracker-intro__edit,
.election-tracker-methodology__edit {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.election-tracker-intro__edit:hover,
.election-tracker-methodology__edit:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.election-tracker-intro__edit[hidden],
.election-tracker-methodology__edit[hidden] {
  display: none !important;
}

.election-tracker-add-race {
  margin: 0.85rem 0 2rem;
}

.election-tracker-add-race__trigger {
  display: block;
  width: 100%;
  max-width: 24rem;
  padding: 0.55rem 0.75rem;
  border: 1px dashed var(--steel);
  background: var(--bg);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.election-tracker-add-race__trigger:hover {
  color: var(--ink);
  border-color: var(--slate);
}

.election-tracker-add-race__form {
  max-width: 24rem;
  padding: 0.85rem 0 0;
}

.election-tracker-add-race__field {
  display: block;
  margin-bottom: 0.75rem;
}

.election-tracker-add-race__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.election-tracker-add-race__input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.election-tracker-add-race__actions {
  display: flex;
  gap: 0.5rem;
}

.election-tracker-add-race__save,
.election-tracker-add-race__cancel {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}

.election-tracker-add-race__msg {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.election-tracker-add-race__msg--err {
  color: #9b2c2c;
}

.election-tracker-intro__body {
  padding-right: 2.25rem;
}

.election-tracker-methodology__body {
  padding-right: 2.25rem;
}

.election-tracker-methodology__body.whip-markdown blockquote {
  margin: 0.85rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink);
}

.election-tracker-methodology__body.whip-markdown blockquote p {
  margin: 0 0 0.85rem;
}

.election-tracker-methodology__body.whip-markdown blockquote p:last-child {
  margin-bottom: 0;
}

.election-tracker-intro .lede {
  margin: 0;
}

.election-tracker-intro .lede + .lede {
  margin-top: 0.85rem;
}

.election-tracker-intro a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.election-tracker-intro a:hover {
  color: var(--ink);
}

.election-tracker-last-updated {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.election-tracker-last-updated time {
  margin-left: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--steel);
}

.election-tracker-methodology__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  cursor: pointer;
}

.election-tracker-methodology__toggle:hover {
  color: var(--ink);
}

.election-tracker-methodology__chevron {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.election-tracker-methodology__toggle--open .election-tracker-methodology__chevron {
  transform: rotate(180deg);
}

.election-tracker-methodology__panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--slate);
}

.election-tracker-methodology__panel p {
  margin: 0;
}

.election-tracker-methodology__panel p + p {
  margin-top: 0.85rem;
}

.election-tracker-methodology__email {
  margin-top: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink);
}

.election-tracker-methodology__email p {
  margin: 0 0 0.85rem;
}

.election-tracker-methodology__email p:last-child {
  margin-bottom: 0;
}

.election-tracker-methodology__panel[hidden] {
  display: none !important;
}

.election-tracker-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.election-tracker-jump[hidden] {
  display: none !important;
}

.election-tracker-jump__label {
  color: var(--steel);
}

.election-tracker-jump__select {
  min-width: 12rem;
  max-width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

.election-tracker-jump-bar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.65rem;
  padding: 0.18rem 0.38rem;
  border: 1px dashed var(--line);
  border-radius: 3px;
  background: transparent;
  max-width: fit-content;
}

.election-tracker-jump-bar[hidden] {
  display: none !important;
}

.election-tracker-jump-bar__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.election-tracker-jump-bar__switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.election-tracker-jump-bar__option {
  padding: 0.12rem 0.38rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
}

.election-tracker-jump-bar__option:last-child {
  border-right: 0;
}

.election-tracker-jump-bar__option:hover {
  color: var(--ink);
  background: var(--bg-elevated);
}

.election-tracker-jump-bar__option--active {
  color: var(--ink);
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px var(--steel);
}

.election-tracker-jump-bar__option:disabled {
  opacity: 0.55;
  cursor: wait;
}

.election-tracker-jump-bar__status {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.election-tracker-jump-bar__status[hidden] {
  display: none !important;
}

.election-tracker-jump-bar__status--error {
  color: #8f2020;
}

.election-tracker-section {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.election-tracker-section:first-child {
  padding-top: 0;
}

.election-tracker-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.election-tracker-placeholder {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.election-tracker-box {
  position: relative;
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--steel);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.election-tracker-box__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 2.5rem 0.85rem 1.1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.election-tracker-box__head h2,
.election-tracker-box__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.election-tracker-box__title-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.25rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--steel);
  border-radius: 2px;
}

.election-tracker-box__title-input:focus {
  outline: none;
  border-color: var(--ink-muted);
}

.election-tracker-box__head h2,
.election-tracker-box__title {
  color: var(--slate);
}

.election-tracker-box__body {
  padding: 0 1.1rem 1rem;
}

.election-tracker-box__collapse {
  padding: 0 1.1rem 1rem;
}

.election-tracker-box__expand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  cursor: pointer;
}

.election-tracker-box__expand:hover {
  color: var(--ink);
}

.election-tracker-candidates__status {
  margin: 0;
  padding: 0.35rem 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  list-style: none;
}

.election-tracker-candidates__status--error {
  color: #b42318;
}

.election-tracker-box__edit {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.election-tracker-box__edit:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.election-tracker-box__edit[hidden],
.election-tracker-box__form[hidden] {
  display: none !important;
}

.election-tracker-box__form:not([hidden]) {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.election-tracker-box__add {
  display: block;
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px dashed var(--steel);
  background: var(--bg);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.election-tracker-box__add:hover {
  color: var(--ink);
  border-color: var(--slate);
}

.election-tracker-box__form-actions {
  display: flex;
  gap: 0.5rem;
}

.election-tracker-box__save,
.election-tracker-box__cancel {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  cursor: pointer;
}

.election-tracker-box__save {
  background: var(--slate);
  color: var(--bg-elevated);
  border-color: var(--slate);
}

.election-tracker-box__cancel {
  background: var(--bg);
  color: var(--ink-muted);
}

.election-tracker-box__form-msg {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--steel);
}

.election-tracker-box__form-msg--error {
  color: #8f2020;
}

.election-tracker-candidates {
  list-style: none;
  margin: 0;
  padding: 0;
}

.election-tracker-candidate {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.election-tracker-candidate:first-child {
  padding-top: 0.15rem;
}

.election-tracker-candidate:last-child {
  border-bottom: none;
  padding-bottom: 0.1rem;
}

.election-tracker-candidate__identity {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.election-tracker-candidate__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.election-tracker-candidate__email {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel);
  text-decoration: none;
  word-break: break-word;
}

.election-tracker-candidate__email:hover {
  color: var(--ink);
  text-decoration: underline;
}

.election-tracker-candidate__note {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.election-tracker-candidate__note.whip-markdown p {
  margin: 0 0 0.55rem;
  font-size: inherit;
  color: inherit;
}

.election-tracker-candidate__note.whip-markdown p:last-child {
  margin-bottom: 0;
}

.election-tracker-candidate__note.whip-markdown a {
  color: var(--steel);
}

.election-tracker-candidate__note.whip-markdown del,
.election-tracker-candidate__note.whip-markdown s {
  color: var(--ink-muted);
}

.election-tracker-candidate__note.whip-markdown ul,
.election-tracker-candidate__note.whip-markdown ol {
  margin: 0 0 0.55rem;
  padding-left: 1.2rem;
  font-size: inherit;
}

.election-tracker-candidate__note-editor {
  margin-top: 0.35rem;
  min-height: 6rem;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow-y: auto;
}

.election-tracker-candidate__note-editor .whip-rich-editor__surface {
  min-height: 6rem;
  padding: 0.45rem 0.5rem;
  outline: none;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink);
}

.election-tracker-candidate__note-editor .whip-rich-editor__surface:focus {
  outline: none;
}

.election-tracker-candidate__note-editor .whip-rich-editor__surface > *:first-child {
  margin-top: 0;
}

.election-tracker-candidate__note-editor .whip-rich-editor__surface > *:last-child {
  margin-bottom: 0;
}

.election-tracker-candidate__badges,
.election-tracker-candidate__badge-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 0.45rem;
}

.election-tracker-incumbent {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: #000;
  white-space: nowrap;
}

.election-tracker-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: var(--steel);
  white-space: nowrap;
}

.election-tracker-badge--toggle {
  padding: 0.22rem 0.48rem;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  opacity: 0.42;
}

.election-tracker-badge--toggle:hover {
  opacity: 0.72;
  border-color: var(--steel);
}

.election-tracker-badge--toggle.election-tracker-badge--on {
  opacity: 1;
  border-color: var(--steel);
  color: var(--ink);
  background: var(--bg-elevated);
}

.election-tracker-candidate__note-field {
  display: block;
  margin-top: 0.35rem;
}

.election-tracker-candidate__name-field,
.election-tracker-candidate__email-field {
  display: block;
}

.election-tracker-candidate__email-field {
  margin-top: 0.35rem;
}

.election-tracker-candidate__name-input,
.election-tracker-candidate__email-input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
}

.election-tracker-candidate__email-input {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.election-tracker-candidate__name-input:focus,
.election-tracker-candidate__email-input:focus,
.election-tracker-candidate__note-editor:focus-within {
  outline: none;
  border-color: var(--steel);
}

.election-tracker-candidate--draft {
  background: rgba(244, 242, 237, 0.55);
  margin-inline: -0.35rem;
  padding-inline: 0.35rem;
  border-radius: 2px;
}

.election-tracker-candidate__stance {
  flex-shrink: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.election-tracker-candidate__stance--no,
.election-tracker-candidate__stance--yes,
.election-tracker-candidate__stance--unsure {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 2.76rem;
  font-weight: 700;
  line-height: 1;
}

.election-tracker-candidate__stance--no {
  color: #7a1f1f;
}

.election-tracker-candidate__stance--yes {
  color: #2f6db3;
}

.election-tracker-candidate__stance--unsure {
  color: #c62828;
}

.election-tracker-candidate__stance--edit {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

.election-tracker-candidate__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.election-tracker-candidate__remove {
  padding: 0.15rem 0.35rem;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  cursor: pointer;
  text-decoration: underline;
}

.election-tracker-candidate__remove:hover {
  color: #7a1f1f;
}

.election-tracker-candidate__stance--edit.election-tracker-candidate__stance--pending:hover {
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.council-icons-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.council-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.council-header__edit {
  font: inherit;
  color: var(--ink-muted);
  background: none;
  border: none;
  padding: 0.15rem 0.25rem;
  cursor: pointer;
  line-height: 1;
}

.council-header__edit:hover {
  color: var(--steel);
}

.council-header__edit[hidden] {
  display: none !important;
}

.council-empty {
  margin: 2rem 0 0;
  color: var(--ink-muted);
  font-style: italic;
}

.council-empty[hidden] {
  display: none !important;
}

.council-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.council-list[hidden] {
  display: none !important;
}

.council-add-row {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: var(--steel);
  border: 1px solid var(--line);
}

.council-add-row[hidden] {
  display: none !important;
}

.council-row__tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.council-row__edit,
.council-row__delete {
  font: inherit;
  color: var(--ink-muted);
  background: none;
  border: none;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  line-height: 1;
}

.council-row__edit:hover,
.council-row__delete:hover {
  color: var(--steel);
}

.council-editor-overlay__card {
  width: min(32rem, calc(100vw - 2rem));
}

.council-editor-overlay__card .site-form-overlay__content {
  max-height: min(70vh, 32rem);
}

.council-editor-overlay__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.council-editor-overlay__input {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 100%;
}

.council-editor-overlay__socials {
  margin-bottom: 1rem;
}

.council-editor-overlay__socials-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.council-editor-overlay__social-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.council-editor-overlay__add-social,
.council-editor-overlay__remove-social {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

.council-editor-overlay__save,
.council-editor-overlay__cancel {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
}

.council-editor-overlay__save {
  background: var(--steel);
  color: #fff;
  border: 1px solid var(--steel);
}

.council-editor-overlay__cancel {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

.council-editor-overlay__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.council-editor-overlay__msg {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.council-editor-overlay__msg--err {
  color: var(--danger, #b42318);
}

.council-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.council-row__identity {
  min-width: min(100%, 12rem);
}

.council-row__ward {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.2rem;
}

.council-row__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.council-row__note,
.council-row__none {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
}

.council-socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.council-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  color: var(--ink-muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elevated);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.council-social:hover {
  color: var(--steel);
  border-color: var(--line-strong);
  background: var(--bg);
}

.council-social__icon {
  width: 1.05rem;
  height: 1.05rem;
}

.council-social__icon--bluesky {
  display: block;
  object-fit: contain;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  border-top: 1px solid var(--line);
  padding: 1.75rem 1.5rem 2.5rem;
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
  font-size: 0.84rem;
  color: var(--ink-muted);
  text-align: center;
}

.site-footer > p {
  margin: 0;
  width: 100%;
  text-align: center;
}

.site-footer a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.site-footer__blurb {
  max-width: 26rem;
  font-size: 0.66rem;
  line-height: 1.55;
  text-wrap: balance;
}

.site-footer__national {
  max-width: 26rem;
  font-size: 0.66rem;
  line-height: 1.55;
  text-wrap: balance;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__auth {
  font-size: 0.62rem;
  color: var(--ink-muted);
  opacity: 0.85;
}

.site-footer__auth button {
  font: inherit;
  font-family: var(--font-mono);
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__auth a {
  font-size: inherit;
}

@media (max-width: 1179px) {
  body {
    display: flex;
    flex-direction: column;
  }

  .live-monitor--ticker {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    border-bottom: none;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(28, 31, 36, 0.08);
  }

  .live-monitor__ticker-row {
    display: flex;
    align-items: stretch;
    min-width: 0;
  }

  .live-monitor--ticker .live-monitor__head {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border-right: 1px solid var(--line);
    border-bottom: none;
    cursor: default;
  }

  .live-monitor--ticker .monitor-pin-tool__toggle {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.85rem;
  }

  .live-monitor--ticker .monitor-pin-tool__panel {
    border-bottom: 1px solid var(--line);
  }

  .live-monitor--ticker .live-monitor__title--stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    line-height: 1.05;
    letter-spacing: 0.08em;
  }

  .live-monitor--ticker .live-monitor__title-line {
    display: block;
  }

  .live-monitor__ticker-wrap {
    display: block;
    flex: 1;
    min-width: 0;
    width: auto;
    vertical-align: unset;
  }

  .live-monitor__track--horizontal {
    padding: 0.4rem 0.75rem;
    gap: 1.25rem;
  }

  .monitor-ticker-item {
    gap: 0.35rem;
    width: 14rem;
    max-width: 14rem;
    padding-right: 1rem;
    font-size: 0.68rem;
  }

  .monitor-ticker-item__thumb {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 2px;
  }

  .monitor-ticker-item__meta {
    font-size: 0.54rem;
  }

  .site-shell {
    flex: 1;
    min-width: 0;
  }

  .site-main {
    padding-bottom: 5rem;
  }
}

/* crt atmosphere */
html {
  isolation: isolate;
}

html::before,
body::before,
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
}

body::before {
  z-index: 2147483000;
  background-image:
    linear-gradient(
      102deg,
      rgba(180, 120, 90, 0.012) 0%,
      transparent 38%,
      transparent 62%,
      rgba(91, 122, 156, 0.014) 100%
    ),
    radial-gradient(
      ellipse 94% 90% at 50% 46%,
      rgba(244, 242, 237, 0) 0%,
      transparent 58%,
      rgba(28, 31, 36, 0.055) 100%
    );
  opacity: 0.88;
  box-shadow: inset 0 0 72px 24px rgba(28, 31, 36, 0.045);
}

html::before {
  z-index: 2147483001;
  inset: -8px;
  background-image:
    repeating-linear-gradient(
      101deg,
      transparent 0,
      transparent 2px,
      rgba(28, 31, 36, 0.006) 2px,
      rgba(28, 31, 36, 0.006) 3px,
      transparent 3px,
      transparent 5px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(91, 122, 156, 0.007) 3px,
      rgba(91, 122, 156, 0.007) 4px,
      transparent 4px,
      transparent 7px
    ),
    radial-gradient(ellipse 85% 55% at 22% 28%, rgba(180, 120, 90, 0.014) 0%, transparent 58%),
    radial-gradient(ellipse 70% 45% at 82% 72%, rgba(91, 122, 156, 0.016) 0%, transparent 52%),
    repeating-linear-gradient(
      71deg,
      transparent 0,
      transparent 19px,
      rgba(91, 122, 156, 0.04) 19px,
      rgba(91, 122, 156, 0.04) 20px,
      transparent 20px,
      transparent 58px
    ),
    repeating-linear-gradient(
      -63deg,
      transparent 0,
      transparent 27px,
      rgba(28, 31, 36, 0.028) 27px,
      rgba(28, 31, 36, 0.028) 28px,
      transparent 28px,
      transparent 52px
    ),
    linear-gradient(
      88deg,
      transparent 0%,
      transparent 46%,
      rgba(91, 122, 156, 0.05) 49.4%,
      rgba(244, 242, 237, 0.04) 50%,
      rgba(91, 122, 156, 0.05) 50.6%,
      transparent 54%,
      transparent 100%
    );
  opacity: 0.28;
  will-change: transform, opacity;
  backface-visibility: hidden;
  animation: site-crt-phosphor-atmosphere 10s steps(2, jump-none) infinite;
}

body::after {
  z-index: 2147483002;
  inset: -8px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(28, 31, 36, 0.028) 3px,
    rgba(28, 31, 36, 0.028) 4px
  );
  background-size: 100% 4px;
  opacity: 0.72;
  will-change: transform;
  backface-visibility: hidden;
  animation: site-crt-scanlines 1.6s steps(2, jump-none) infinite;
}

@media (prefers-reduced-motion: reduce) {
  html::before,
  body::after {
    animation: none;
  }
}

html.crt-anim-paused::before,
html.crt-anim-paused body::after {
  animation-play-state: paused;
}

@keyframes site-crt-phosphor-atmosphere {
  0%,
  100% {
    opacity: 0.26;
    transform: translate3d(0, 0, 0);
  }

  6.85% {
    opacity: 0.27;
    transform: translate3d(0.35px, -0.2px, 0);
  }

  6.9% {
    opacity: 0.36;
    transform: translate3d(0.6px, -0.2px, 0);
  }

  6.98% {
    opacity: 0.27;
    transform: translate3d(0.35px, -0.2px, 0);
  }

  25% {
    opacity: 0.3;
    transform: translate3d(2.5px, -1.5px, 0);
  }

  28.9% {
    opacity: 0.3;
    transform: translate3d(2.9px, -1.74px, 0);
  }

  28.95% {
    opacity: 0.35;
    transform: translate3d(2.7px, -1.59px, 0);
  }

  29.02% {
    opacity: 0.3;
    transform: translate3d(2.9px, -1.74px, 0);
  }

  44.55% {
    opacity: 0.31;
    transform: translate3d(4.45px, -2.67px, 0);
  }

  44.6% {
    opacity: 0.37;
    transform: translate3d(4.61px, -2.78px, 0);
  }

  44.68% {
    opacity: 0.32;
    transform: translate3d(4.47px, -2.68px, 0);
  }

  44.75%,
  50% {
    opacity: 0.32;
    transform: translate3d(5px, -3px, 0);
  }

  70.95% {
    opacity: 0.29;
    transform: translate3d(2.9px, -1.74px, 0);
  }

  71% {
    opacity: 0.34;
    transform: translate3d(2.9px, -1.74px, 0);
  }

  71.06% {
    opacity: 0.29;
    transform: translate3d(2.9px, -1.74px, 0);
  }

  75% {
    opacity: 0.28;
    transform: translate3d(2.5px, -1.5px, 0);
  }

  87.75% {
    opacity: 0.27;
    transform: translate3d(0.7px, -0.42px, 0);
  }

  87.8% {
    opacity: 0.36;
    transform: translate3d(0.4px, -0.42px, 0);
  }

  87.88% {
    opacity: 0.27;
    transform: translate3d(0.7px, -0.42px, 0);
  }

  95.55% {
    opacity: 0.26;
    transform: translate3d(0.22px, -0.13px, 0);
  }

  95.6% {
    opacity: 0.35;
    transform: translate3d(0.42px, -0.03px, 0);
  }

  95.67% {
    opacity: 0.26;
    transform: translate3d(0.22px, -0.13px, 0);
  }
}

@keyframes site-crt-scanlines {
  0% {
    transform: translate3d(0, 0, 0);
  }

  23% {
    transform: translate3d(0.25px, 0.95px, 0);
  }

  49% {
    transform: translate3d(-0.18px, 2.05px, 0);
  }

  74% {
    transform: translate3d(0.1px, 3.15px, 0);
  }

  100% {
    transform: translate3d(0, 4px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html::before {
    animation: none;
    opacity: 0.28;
    transform: none;
  }

  body::after {
    animation: none;
    opacity: 0;
  }
}

/* apex portal */
.page-portal {
  display: block;
}

.site-header--portal .site-header__inner {
  justify-content: flex-start;
  align-items: center;
}

.site-header__inner--portal {
  gap: 0;
}

.site-nav--portal {
  margin-left: clamp(2.5rem, 14vw, 9.5rem);
}

.portal-nav-clips {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.48rem 0.95rem;
  border: 1px solid var(--steel);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border-radius: 2px;
}

.portal-nav-clips:hover {
  color: var(--steel);
  border-color: var(--slate);
  background: var(--bg-elevated);
}

.portal-nav-clips[aria-current='page'] {
  color: var(--bg-elevated);
  background: var(--slate);
  border-color: var(--slate);
}

@media (max-width: 639px) {
  .site-header--portal .site-header__inner {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.7rem 1rem;
    gap: 0.45rem;
  }

  .site-header--portal .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.5rem;
  }

  .site-header--portal .brand__mark {
    width: 1.65rem;
    height: 1.65rem;
  }

  .site-header--portal .brand__text > span {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav--portal {
    margin-left: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .portal-nav-clips {
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    padding: 0.28rem 0.55rem;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.45);
  }

  .site-header--portal .site-nav-preview {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0;
  }
}

.site-nav a[aria-current='page']:not(.portal-nav-clips) {
  color: var(--ink);
}

.clips-main {
  max-width: 56rem;
}

.clips-hero {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.clips-hero__title {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  line-height: 1.18;
  margin: 0.35rem 0 0.75rem;
}

.clips-hero__lede {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.clips-admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.clips-admin-bar[hidden] {
  display: none !important;
}

.clips-admin-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.clips-admin-bar__btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.clips-admin-bar__btn:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.clips-admin-bar__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.clips-admin-bar__status--error {
  color: #8f2020;
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.15rem;
}

.clips-grid__empty {
  grid-column: 1 / -1;
  color: var(--ink-muted);
}

.clips-grid__item {
  min-width: 0;
}

.clips-grid__item--editable {
  position: relative;
  display: flex;
  flex-direction: column;
}

.clips-grid__item--editable > .clips-card {
  flex: 1 1 auto;
  height: auto;
}

.clips-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.clips-card--news {
  overflow: hidden;
}

.clips-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.clips-card__link:hover .clips-card__title {
  color: var(--steel);
}

.clips-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(28, 31, 36, 0.06);
  object-fit: cover;
}

.clips-card__media--audio {
  aspect-ratio: auto;
  padding: 0.85rem 0.75rem 0;
}

.clips-card__cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(28, 31, 36, 0.06);
}

.clips-card__cover--placeholder {
  background:
    linear-gradient(135deg, rgba(91, 122, 156, 0.12), rgba(28, 31, 36, 0.04)),
    rgba(28, 31, 36, 0.04);
}

.clips-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(28, 31, 36, 0.06);
}

.clips-card__thumb--placeholder {
  background:
    linear-gradient(135deg, rgba(91, 122, 156, 0.12), rgba(28, 31, 36, 0.04)),
    rgba(28, 31, 36, 0.04);
}

.clips-card__title {
  margin: 0;
  padding: 0.85rem 0.95rem 1rem;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 600;
}

.clips-card__outlink {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  font-size: 0.85rem;
  color: var(--steel);
}

.clips-card__admin {
  display: flex;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-top: 0.45rem;
  padding: 0;
}

.clips-card__admin-btn {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.clips-card__admin-btn:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.clips-card__admin-btn--danger:hover {
  color: #8f2020;
  border-color: #8f2020;
}

.clips-editor-overlay[hidden] {
  display: none !important;
}

.clips-editor-overlay__card {
  max-width: 28rem;
}

.clips-editor-overlay__content {
  display: grid;
  gap: 0.85rem;
}

.clips-editor-overlay__field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.clips-editor-overlay__field input[type='text'],
.clips-editor-overlay__field input[type='url'] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
}

.clips-editor-overlay__field--file input[type='file'] {
  font-size: 0.82rem;
}

.clips-editor-overlay__msg {
  margin: 0;
  color: #8f2020;
  font-size: 0.88rem;
}

.clips-editor-overlay__msg[hidden] {
  display: none !important;
}

.clips-editor-overlay__actions {
  display: flex;
  gap: 0.55rem;
}

.clips-editor-overlay__save,
.clips-editor-overlay__cancel {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  cursor: pointer;
}

.clips-editor-overlay__save:hover,
.clips-editor-overlay__cancel:hover {
  border-color: var(--steel);
}

.docs-main {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

.docs-hero {
  margin-bottom: 1rem;
}

.docs-hero .section__label {
  margin-bottom: 0;
}

.docs-admin-intro {
  margin-bottom: 1.15rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.docs-admin-intro[hidden] {
  display: none !important;
}

.docs-admin-intro__copy {
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.docs-admin-intro__copy p {
  margin: 0 0 0.65rem;
}

.docs-admin-intro__copy p:last-of-type {
  margin-bottom: 0.85rem;
}

.docs-admin-intro__copy ul {
  margin: 0 0 0.65rem;
  padding-left: 1.25rem;
}

.docs-admin-intro__copy li + li {
  margin-top: 0.2rem;
}

.docs-admin-intro__visibility {
  margin: 0;
}

.docs-admin-intro__hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.docs-admin-intro__hint[hidden] {
  display: none !important;
}

.docs-visibility-bar {
  margin-bottom: 0;
}

.docs-admin-bar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.docs-admin-bar[hidden] {
  display: none !important;
}

.docs-admin-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.docs-admin-bar__btn {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.docs-admin-bar__btn:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.docs-admin-bar__status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.docs-admin-bar__status--error {
  color: #8f2020;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.15rem;
}

.docs-grid__empty {
  grid-column: 1 / -1;
  color: var(--ink-muted);
}

.docs-grid__item {
  min-width: 0;
}

.docs-grid__item--editable {
  position: relative;
  display: flex;
  flex-direction: column;
}

.docs-grid__item--editable > .docs-card {
  flex: 1 1 auto;
  height: auto;
}

.docs-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.docs-card--link,
.docs-card--document {
  overflow: hidden;
}

.docs-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.docs-card__link:hover .docs-card__title {
  color: var(--steel);
}

.docs-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(28, 31, 36, 0.06);
  object-fit: cover;
}

.docs-card__media--audio {
  aspect-ratio: auto;
  padding: 0.85rem 0.75rem 0;
}

.docs-card__cover,
.docs-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(28, 31, 36, 0.06);
}

.docs-card__cover--placeholder,
.docs-card__thumb--placeholder {
  background:
    linear-gradient(135deg, rgba(91, 122, 156, 0.12), rgba(28, 31, 36, 0.04)),
    rgba(28, 31, 36, 0.04);
}

.docs-card__title {
  margin: 0;
  padding: 0.85rem 0.95rem 1rem;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 600;
}

.docs-card__outlink {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  font-size: 0.85rem;
  color: var(--steel);
}

.docs-card__admin {
  display: flex;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-top: 0.45rem;
  padding: 0;
}

.docs-card__admin-btn {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.docs-card__admin-btn:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.docs-card__admin-btn--danger:hover {
  color: #8f2020;
  border-color: #8f2020;
}

.docs-editor-overlay[hidden] {
  display: none !important;
}

.docs-editor-overlay__card {
  max-width: 28rem;
}

.docs-editor-overlay__content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.docs-editor-overlay__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.docs-editor-overlay__field input[type='text'],
.docs-editor-overlay__field input[type='url'] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
}

.docs-editor-overlay__field--file input[type='file'] {
  font: inherit;
}

.docs-editor-overlay__msg {
  margin: 0;
  font-size: 0.9rem;
  color: #8f2020;
}

.docs-editor-overlay__msg[hidden] {
  display: none !important;
}

.docs-editor-overlay__actions {
  display: flex;
  gap: 0.55rem;
}

.docs-editor-overlay__save,
.docs-editor-overlay__cancel {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  cursor: pointer;
}

.docs-editor-overlay__save:hover,
.docs-editor-overlay__cancel:hover {
  border-color: var(--steel);
}

.portal-main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.portal-hero {
  padding-top: 0.5rem;
  max-width: 42rem;
}

.portal-hero__headline {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.22;
}

.page-portal .portal-hero .hero__headline {
  margin-bottom: 3.25rem;
}

.hero__line--typewriter-waiting {
  visibility: hidden;
}

.hero__type-char {
  opacity: 0;
}

.hero__type-char.is-visible {
  opacity: 1;
}

.hero__type-char--em {
  font-style: italic;
}

.hero__line-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hero__line-link:hover,
.hero__line-link:focus,
.hero__line-link:active,
.hero__line-link:visited {
  color: inherit;
  text-decoration: none;
}

.hero__line-link:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.portal-section {
  margin-bottom: 2.75rem;
  max-width: 38rem;
}

.portal-section-card {
  position: relative;
  margin-top: 0.75rem;
}

.portal-section__edit {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--steel);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.portal-section__edit:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.portal-section__edit[hidden] {
  display: none !important;
}

.portal-section__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1rem;
}

.portal-section__subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.portal-copy,
.portal-outreach {
  margin: 0;
  color: var(--slate);
  line-height: 1.65;
}

.portal-copy p,
.portal-outreach p {
  margin: 0 0 0.85rem;
}

.portal-copy p:last-child,
.portal-outreach p:last-child {
  margin-bottom: 0;
}

.portal-campaigns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.08rem 1.15rem;
}

@media (min-width: 960px) {
  .portal-campaigns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.1rem 1.5rem;
  }
}

.portal-campaigns__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  color: color-mix(in srgb, var(--ink) 72%, var(--ink-muted));
  padding: 0.05rem 0;
}

.portal-campaigns__link:hover {
  color: var(--steel);
}

.portal-campaigns__template {
  margin-left: 0.1em;
  font-size: 0.68em;
  font-weight: 500;
  color: var(--steel);
  vertical-align: super;
  line-height: 0;
}

.portal-campaigns__dot {
  flex-shrink: 0;
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  background: #a12828;
  border-radius: 50%;
  animation: nav-whip-dot-blink 8s ease-in-out infinite;
}

.portal-campaigns__loading,
.portal-campaigns__empty {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.portal-video-section {
  margin-top: -0.35rem;
}

.portal-video-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  font-size: clamp(0.92rem, 1.95vw, 1.22rem);
  font-weight: 600;
  line-height: 1.28;
}

@media (max-width: 639px) {
  .portal-video-trigger {
    font-size: clamp(1.82rem, 3.9vw, 2.45rem);
  }
}

.portal-video-trigger__stack {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.portal-video-trigger__mark {
  margin-right: 2px;
}

.portal-video-trigger__line {
  display: block;
  position: relative;
  z-index: 1;
}

.portal-video-trigger__ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  color: var(--steel);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: portal-video-register-slip 15.1s linear infinite;
}

@media (min-width: 640px) {
  .portal-video-trigger__stack,
  .portal-video-trigger__line,
  .portal-video-trigger__ghost {
    white-space: nowrap;
  }

  .portal-video-trigger__ghost {
    overflow: hidden;
  }
}

.portal-video-trigger--live .portal-video-trigger__ghost {
  animation-play-state: paused;
  opacity: 0;
  transform: none;
}

@keyframes portal-video-register-slip {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  13.974% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  14.57% {
    opacity: 0.74;
    transform: translate3d(-3.1px, 0.56px, 0);
  }

  14.897% {
    opacity: 0.42;
    transform: translate3d(2.3px, -0.38px, 0);
  }

  15.166% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  20.596% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  21.192% {
    opacity: 0.74;
    transform: translate3d(-3.1px, 0.56px, 0);
  }

  21.52% {
    opacity: 0.42;
    transform: translate3d(2.3px, -0.38px, 0);
  }

  21.788% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  24.57% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  25.166% {
    opacity: 0.74;
    transform: translate3d(-3.1px, 0.56px, 0);
  }

  25.497% {
    opacity: 0.42;
    transform: translate3d(2.3px, -0.38px, 0);
  }

  25.762% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  43.113% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  43.709% {
    opacity: 0.74;
    transform: translate3d(-3.1px, 0.56px, 0);
  }

  44.036% {
    opacity: 0.42;
    transform: translate3d(2.3px, -0.38px, 0);
  }

  44.305% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  55.033% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  55.629% {
    opacity: 0.74;
    transform: translate3d(-3.1px, 0.56px, 0);
  }

  55.957% {
    opacity: 0.42;
    transform: translate3d(2.3px, -0.38px, 0);
  }

  56.225% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  74.901% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  75.497% {
    opacity: 0.74;
    transform: translate3d(-3.1px, 0.56px, 0);
  }

  75.825% {
    opacity: 0.42;
    transform: translate3d(2.3px, -0.38px, 0);
  }

  76.093% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  77.55% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  78.146% {
    opacity: 0.74;
    transform: translate3d(-3.1px, 0.56px, 0);
  }

  78.477% {
    opacity: 0.42;
    transform: translate3d(2.3px, -0.38px, 0);
  }

  78.742% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  99.139% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  99.735% {
    opacity: 0.74;
    transform: translate3d(-3.1px, 0.56px, 0);
  }

  99.934% {
    opacity: 0.42;
    transform: translate3d(2.3px, -0.38px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-video-trigger__ghost {
    animation: none;
  }
}

.portal-video-trigger:hover {
  color: var(--steel);
}

.portal-video-trigger--slip-flash,
.portal-video-trigger--slip-flash .portal-video-trigger__line {
  color: #8eb4d9;
  text-shadow: 0 0 16px rgba(123, 164, 204, 0.62);
}

.portal-video-trigger--slip-flash .portal-video-trigger__ghost {
  color: #b8d4ef;
  text-shadow: 0 0 12px rgba(142, 180, 217, 0.5);
}

.portal-video-trigger:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

html.portal-video-playing::before,
html.portal-video-playing body::after,
html.portal-video-playing .portal-campaigns__dot,
html.portal-video-playing .portal-video-trigger__ghost,
html.portal-video-playing .portal-national-map__ghost,
html.portal-video-playing .portal-national-map__dot {
  animation-play-state: paused !important;
}

.portal-national-map-section {
  margin-top: 0.35rem;
  margin-bottom: 2.25rem;
}

.portal-national-map {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.portal-national-map:focus-visible {
  outline: 2px solid rgba(91, 122, 156, 0.55);
  outline-offset: 4px;
  border-radius: 2px;
}

.portal-national-map:hover .portal-national-map__land {
  fill: rgba(91, 122, 156, 0.1);
}

.portal-national-map__svg {
  display: block;
  width: 95%;
  height: auto;
}

.portal-national-map__ghost {
  pointer-events: none;
  will-change: transform, opacity;
  animation: portal-national-map-register-slip 11.5s linear infinite;
}

.portal-national-map__land--ghost {
  fill: rgba(91, 122, 156, 0.04);
  stroke: rgba(91, 122, 156, 0.34);
  stroke-width: 1.15;
}

.portal-national-map__province--ghost {
  fill: none;
  stroke: rgba(91, 122, 156, 0.22);
  stroke-width: 0.85;
  stroke-linejoin: round;
}

@keyframes portal-national-map-register-slip {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  13.974% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  14.57% {
    opacity: 0.46;
    transform: translate3d(-1.5px, 0.28px, 0);
  }

  14.897% {
    opacity: 0.28;
    transform: translate3d(1.1px, -0.18px, 0);
  }

  15.166% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  20.596% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  21.192% {
    opacity: 0.46;
    transform: translate3d(-1.5px, 0.28px, 0);
  }

  21.52% {
    opacity: 0.28;
    transform: translate3d(1.1px, -0.18px, 0);
  }

  21.788% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  24.57% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  25.166% {
    opacity: 0.46;
    transform: translate3d(-1.5px, 0.28px, 0);
  }

  25.497% {
    opacity: 0.28;
    transform: translate3d(1.1px, -0.18px, 0);
  }

  25.762% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  43.113% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  43.709% {
    opacity: 0.46;
    transform: translate3d(-1.5px, 0.28px, 0);
  }

  44.036% {
    opacity: 0.28;
    transform: translate3d(1.1px, -0.18px, 0);
  }

  44.305% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  55.033% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  55.629% {
    opacity: 0.46;
    transform: translate3d(-1.5px, 0.28px, 0);
  }

  55.957% {
    opacity: 0.28;
    transform: translate3d(1.1px, -0.18px, 0);
  }

  56.225% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  74.901% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  75.497% {
    opacity: 0.46;
    transform: translate3d(-1.5px, 0.28px, 0);
  }

  75.825% {
    opacity: 0.28;
    transform: translate3d(1.1px, -0.18px, 0);
  }

  76.093% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  77.55% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  78.146% {
    opacity: 0.46;
    transform: translate3d(-1.5px, 0.28px, 0);
  }

  78.477% {
    opacity: 0.28;
    transform: translate3d(1.1px, -0.18px, 0);
  }

  78.742% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  99.139% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }

  99.735% {
    opacity: 0.46;
    transform: translate3d(-1.5px, 0.28px, 0);
  }

  99.934% {
    opacity: 0.28;
    transform: translate3d(1.1px, -0.18px, 0);
  }
}

.portal-national-map__land {
  fill: rgba(28, 31, 36, 0.032);
  stroke: rgba(91, 122, 156, 0.52);
  stroke-width: 1.15;
}

.portal-national-map__province {
  fill: none;
  stroke: rgba(91, 122, 156, 0.3);
  stroke-width: 0.85;
  stroke-linejoin: round;
}

.portal-national-map__dot-link {
  cursor: pointer;
}

.portal-national-map__dot-link:focus {
  outline: none;
}

.portal-national-map__dot-link:focus-visible .portal-national-map__dot {
  stroke: var(--ink);
  stroke-width: 2px;
}

.portal-national-map__dot {
  fill: #a12828;
  animation: nav-whip-dot-blink 4s ease-in-out infinite;
}

.portal-national-map__dot-link:hover .portal-national-map__dot {
  fill: #8f2020;
}

@media (prefers-reduced-motion: reduce) {
  .portal-national-map__ghost {
    animation: none;
  }

  .portal-national-map__dot {
    animation: none;
  }
}

.portal-video-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.portal-video-shell[hidden] {
  display: none !important;
}

.portal-video-shell__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(26, 35, 50, 0.58);
  cursor: pointer;
}

.portal-video-shell--fullscreen .portal-video-shell__backdrop {
  display: none;
}

.portal-video-shell--popup {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.portal-video-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  overflow: hidden;
}

.portal-video-shell--popup .portal-video-stage {
  position: relative;
  z-index: 1;
  width: min(20rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 18px 42px rgba(26, 35, 50, 0.22);
}

.portal-video-shell--fullscreen .portal-video-stage {
  width: 100%;
  height: 100%;
}

.portal-video-stage:fullscreen,
.portal-video-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.portal-video__player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(100vh, 100%);
  border: 0;
  background: #111;
  object-fit: contain;
}

.portal-video-shell--fullscreen .portal-video__player,
.portal-video-stage:fullscreen .portal-video__player,
.portal-video-stage:-webkit-full-screen .portal-video__player {
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: auto;
}

.portal-video-mode-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.45rem;
  background: rgba(17, 17, 17, 0.72);
  color: #f4f2ed;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.portal-video-mode-toggle:hover {
  background: rgba(17, 17, 17, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
}

.portal-video-mode-toggle:focus-visible {
  outline: 2px solid #f4f2ed;
  outline-offset: 2px;
}

.portal-video-mode-toggle__icon {
  display: block;
  transform: translateY(0.02rem);
}


.page-national-map .site-header {
  position: relative;
  z-index: 3;
}

.page-national-map {
  background: var(--bg);
}

.national-map-main {
  padding: 0;
  min-height: calc(100dvh - var(--header-h));
}

.national-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(24rem, 38vw);
  min-height: calc(100dvh - var(--header-h));
  height: calc(100dvh - var(--header-h));
}

.national-map-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid rgba(91, 122, 156, 0.28);
  background: var(--bg);
}

.national-map-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  background: var(--bg);
}

.national-map-stage::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(28, 31, 36, 0.018) 3px,
    rgba(28, 31, 36, 0.018) 4px
  );
}

.national-map-stage::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(91, 122, 156, 0.22);
}

.national-map-canvas {
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - var(--header-h));
}

.page-national-map .maplibregl-ctrl-group {
  border: 1px solid rgba(91, 122, 156, 0.38);
  border-radius: 2px;
  background: rgba(244, 242, 237, 0.92);
  box-shadow: none;
}

.page-national-map .maplibregl-ctrl-group button {
  width: 2rem;
  height: 2rem;
}

.page-national-map .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(91, 122, 156, 0.22);
}

.page-national-map .maplibregl-ctrl button .maplibregl-ctrl-icon {
  filter: none;
}

.page-national-map .maplibregl-ctrl-attrib {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  background: rgba(244, 242, 237, 0.82);
  color: rgba(61, 74, 92, 0.72);
}

.page-national-map .maplibregl-ctrl-attrib a {
  color: rgba(91, 122, 156, 0.95);
}

.national-map-hud {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  pointer-events: none;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(91, 122, 156, 0.32);
  border-radius: 2px;
  background: rgba(244, 242, 237, 0.88);
  font-family: var(--font-mono);
}

.national-map-hud__title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.national-map-hud__hint {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(61, 74, 92, 0.72);
}

.national-map-loading,
.national-map-error {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  background: rgba(244, 242, 237, 0.94);
  border: 1px solid rgba(91, 122, 156, 0.35);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  max-width: min(28rem, calc(100vw - 2rem));
  text-align: center;
}

.national-map-error {
  border-color: rgba(161, 40, 40, 0.45);
}

.national-map-city-labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.national-map-city-label {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 0 3px rgba(244, 242, 237, 0.95),
    0 0 6px rgba(244, 242, 237, 0.75);
  will-change: transform;
}

.national-map-city-label--capital {
  font-size: 11px;
  color: rgba(61, 74, 92, 0.68);
}

.national-map-city-label--major {
  font-size: 10px;
  color: rgba(61, 74, 92, 0.56);
}

.national-map-city-label--town {
  font-size: 9px;
  color: rgba(61, 74, 92, 0.46);
}

.national-map-city-label[hidden] {
  display: none;
}

.national-map-sidebar__tools {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(91, 122, 156, 0.2);
}

.national-map-sidebar__tools-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.national-map-sidebar__tools-row .national-map-city-search {
  flex: 1;
  min-width: 0;
}

.national-map-sidebar__tools-row .national-map-toggle {
  flex-shrink: 0;
  white-space: nowrap;
}

.national-map-toggle--loading {
  opacity: 0.72;
  pointer-events: none;
}

.national-map-toggle__spinner {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(91, 122, 156, 0.28);
  border-top-color: rgba(61, 74, 92, 0.82);
  border-radius: 50%;
  animation: national-map-toggle-spin 0.75s linear infinite;
}

@keyframes national-map-toggle-spin {
  to {
    transform: rotate(360deg);
  }
}

.national-map-city-search {
  display: block;
}

.national-map-city-search__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.national-map-city-search__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(91, 122, 156, 0.35);
  border-radius: 2px;
  background: rgba(244, 242, 237, 0.72);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.national-map-city-search__input::placeholder {
  color: rgba(61, 74, 92, 0.45);
}

.national-map-city-search__input:focus {
  outline: none;
  border-color: rgba(91, 122, 156, 0.62);
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(91, 122, 156, 0.18);
}

.national-map-city-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 0.75rem;
  width: 0.75rem;
  background: linear-gradient(
      45deg,
      transparent 45%,
      rgba(61, 74, 92, 0.55) 45%,
      rgba(61, 74, 92, 0.55) 55%,
      transparent 55%
    ),
    linear-gradient(
      -45deg,
      transparent 45%,
      rgba(61, 74, 92, 0.55) 45%,
      rgba(61, 74, 92, 0.55) 55%,
      transparent 55%
    );
  cursor: pointer;
}

.national-map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  user-select: none;
}

.national-map-toggle input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  accent-color: var(--steel);
}

.national-map-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem 0 0.75rem;
}

.national-map-list__loading,
.national-map-list__empty {
  margin: 0;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(61, 74, 92, 0.72);
}

.national-map-list__group {
  margin: 0;
}

.national-map-list__city {
  margin: 0;
  padding: 0.65rem 1rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.national-map-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.national-map-list__item-wrap {
  margin: 0;
}

.national-map-list__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(91, 122, 156, 0.12);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.national-map-list__item:hover {
  background: rgba(255, 255, 255, 0.45);
}

.national-map-list__item--active {
  background: rgba(91, 122, 156, 0.1);
  box-shadow: inset 3px 0 0 #a12828;
}

.national-map-list__address {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink);
}

.national-map-list__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(61, 74, 92, 0.68);
}

.national-map-panel {
  flex-shrink: 0;
  border-left: none;
  border-bottom: 1px solid rgba(91, 122, 156, 0.28);
  background: var(--bg);
  padding: 1.25rem 1.15rem 1.15rem;
  overflow: auto;
  position: relative;
  max-height: min(46vh, 22rem);
}

.national-map-panel::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(28, 31, 36, 0.012) 3px,
    rgba(28, 31, 36, 0.012) 4px
  );
}

.national-map-panel > * {
  position: relative;
  z-index: 1;
}

.national-map-panel__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.national-map-panel__admin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.national-map-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid rgba(91, 122, 156, 0.35);
  background: rgba(255, 255, 255, 0.45);
  color: var(--steel);
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}

.national-map-admin-btn:hover {
  color: var(--ink);
  border-color: rgba(28, 31, 36, 0.35);
  background: rgba(255, 255, 255, 0.75);
}

.national-map-admin-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.national-map-admin-btn--edit {
  width: auto;
  min-width: 1.75rem;
  padding: 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.national-map-admin-btn__icon {
  display: block;
}

.national-map-list__item-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.35rem;
}

.national-map-list__item-wrap--hidden .national-map-list__item {
  opacity: 0.55;
}

.national-map-list__eye {
  align-self: center;
}

.national-map-edit-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid rgba(91, 122, 156, 0.35);
  background: var(--bg-elevated);
  color: var(--ink);
}

.national-map-edit-dialog::backdrop {
  background: rgba(28, 31, 36, 0.45);
}

.national-map-edit-dialog__form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}

.national-map-edit-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(91, 122, 156, 0.2);
}

.national-map-edit-dialog__title {
  margin: 0;
  font-size: 1.05rem;
}

.national-map-edit-dialog__close {
  appearance: none;
  border: 1px solid rgba(91, 122, 156, 0.35);
  background: transparent;
  color: var(--steel);
  padding: 0.35rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
}

.national-map-edit-dialog__fields {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  overflow: auto;
}

.national-map-edit-dialog__field {
  display: grid;
  gap: 0.35rem;
}

.national-map-edit-dialog__field > span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
}

.national-map-edit-dialog__field input,
.national-map-edit-dialog__field textarea {
  width: 100%;
  border: 1px solid rgba(91, 122, 156, 0.35);
  background: var(--bg);
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.national-map-edit-dialog__field--checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.national-map-edit-dialog__status {
  margin: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
}

.national-map-edit-dialog__status--error {
  color: #a12828;
}

.national-map-edit-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(91, 122, 156, 0.2);
}

.national-map-edit-dialog__cancel,
.national-map-edit-dialog__save {
  appearance: none;
  border: 1px solid rgba(91, 122, 156, 0.35);
  background: transparent;
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.national-map-edit-dialog__save {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.national-map-panel__close {
  appearance: none;
  border: 1px solid rgba(91, 122, 156, 0.35);
  background: transparent;
  color: var(--slate);
  border-radius: 2px;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.national-map-panel__close:hover {
  border-color: rgba(28, 31, 36, 0.35);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.national-map-panel__eyebrow {
  margin: 0.85rem 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.national-map-panel__title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.national-map-panel__sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.national-map-panel__sector {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(61, 74, 52, 0.35);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f3a28;
  background: rgba(198, 210, 178, 0.45);
}

.national-map-panel__sector--military {
  border-color: rgba(61, 74, 52, 0.45);
  background: rgba(198, 210, 178, 0.62);
}

.national-map-panel__facts {
  margin: 0;
}

.national-map-panel__row {
  margin-bottom: 0.85rem;
}

.national-map-panel__row dt {
  margin: 0 0 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--steel);
}

.national-map-panel__row dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}

.national-map-panel__row dd a {
  color: var(--steel);
  word-break: break-word;
}

.national-map-panel__note {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(61, 74, 92, 0.68);
}

.national-map-panel__actions {
  margin: 1.25rem 0 0;
}

.national-map-panel__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 2px;
  border: 1px solid rgba(91, 122, 156, 0.38);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.national-map-panel__link:hover {
  background: var(--bg-elevated);
  border-color: var(--slate);
  color: var(--slate);
}

.national-map-panel__link-stack {
  position: relative;
  display: inline-block;
}

.national-map-panel__link-line {
  display: block;
  position: relative;
  z-index: 1;
}

.national-map-panel__link-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  color: var(--steel);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: portal-video-register-slip 15.1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .national-map-panel__link-ghost {
    animation: none;
  }
}

@media (max-width: 900px) {
  .national-map-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(52vh, 1fr) auto;
    height: auto;
    min-height: calc(100dvh - var(--header-h));
  }

  .national-map-stage {
    min-height: 52vh;
  }

  .national-map-canvas {
    min-height: 52vh;
    height: 52vh;
  }

  .national-map-sidebar {
    border-left: none;
    border-top: 1px solid rgba(91, 122, 156, 0.28);
    max-height: none;
  }

  .national-map-panel {
    max-height: none;
  }

  .national-map-list {
    max-height: min(42vh, 22rem);
  }

  .national-map-hud {
    left: 0.65rem;
    bottom: 0.65rem;
    max-width: calc(100% - 1.3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .national-map-stage::before {
    opacity: 0.25;
  }
}
