:root {
  --warm: #f5f2ed;
  --card: #ffffff;
  --text: #1a1a18;
  --muted: #6b6860;
  --border: rgba(0, 0, 0, 0.09);
  --accent: #2b5ba8;
  --approved-bg: #eaf3de;
  --approved-text: #2d5a0e;
  --approved-border: #c0dd97;
  --active-bg: #e6f1fb;
  --active-text: #0c447c;
  --active-border: #85b7eb;
  --urgent-bg: #fcebeb;
  --urgent-text: #791f1f;
  --urgent-border: #f09595;
  --neutral-bg: #f5f2ed;
  --neutral-text: #5f5e5a;
  --neutral-border: #d3d1c7;
  --money-bg: #eaf3de;
  --money-text: #27500a;
  --money-border: #c0dd97;
  --pub-bg: #e6f1fb;
  --pub-text: #0c447c;
  --pub-border: #b5d4f4;
  --q-bg: #faeeda;
  --q-text: #633806;
  --q-border: #fac775;
  --meta-bg: #f1efe8;
  --meta-text: #444441;
  --meta-border: #d3d1c7;
  --content-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--warm);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body.detail-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 34px 24px 24px;
}

.hero-eyebrow,
.mobile-banner-eyebrow,
.row-label,
.detail-section-label {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title,
.mobile-banner-title,
.detail-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--text);
}

.hero-title {
  max-width: 840px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.hero-subtitle {
  max-width: 860px;
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 12px;
}

.city-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.city-switcher-link,
.hero-feedback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.city-switcher-link {
  color: var(--muted);
}

.city-switcher-link:hover,
.city-switcher-link:focus-visible {
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.city-switcher-link.is-active {
  background: var(--text);
  color: var(--warm);
  box-shadow: 0 1px 3px rgba(26, 26, 24, 0.18);
}

.hero-feedback-link {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.06);
}

.hero-feedback-link:hover,
.hero-feedback-link:focus-visible {
  outline: none;
  background: #faf7f1;
  border-color: rgba(0, 0, 0, 0.18);
  color: #1f4b90;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 116px;
  padding: 10px 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
}

.stat-num {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.stat-num {
  font-size: 22px;
}

.stat-label {
  display: block;
  color: var(--muted);
}

.stat-label {
  font-size: 11px;
  margin-top: 4px;
}

.mobile-banner {
  display: none;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  padding: 14px 16px 16px;
  background: #ffffff;
  border-bottom: 0.5px solid var(--border);
}

.mobile-banner-copy {
  min-width: 0;
  width: 100%;
}

.mobile-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.city-switcher-mobile {
  background: #f7f3ec;
}

.hero-feedback-link-mobile {
  min-height: 34px;
  padding: 0 12px;
}

.mobile-banner-title {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.05;
  white-space: nowrap;
}

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
}

.filter-inner {
  max-width: calc(var(--content-width) - 48px);
  margin: 0 auto;
  padding: 10px 0;
  background: var(--warm);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.filter-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.search-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.search-wrap input {
  width: 100%;
  padding: 9px 14px 9px 34px;
  border: 0.5px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 91, 168, 0.08);
  background: #ffffff;
}

.search-wrap input:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  color: var(--text);
  opacity: 0.35;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.filter-row-last {
  margin-bottom: 0;
}

.row-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.chips-row {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 3px;
  flex: 1;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #514d45;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.chip:hover,
.chip:focus-visible {
  outline: none;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 5px rgba(26, 26, 24, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.attribute-chip.on {
  background: var(--text);
  color: var(--warm);
  border-color: var(--text);
  box-shadow: 0 2px 5px rgba(26, 26, 24, 0.18);
  font-weight: 500;
}

.attribute-chip:hover,
.attribute-chip:focus-visible {
  background: #faf7f1;
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--text);
}

.attribute-chip.on:hover,
.attribute-chip.on:focus-visible {
  background: #2a2723;
  border-color: #2a2723;
}

.topic-chip {
  color: var(--chip-color);
  background: rgba(255, 255, 255, 0.95);
}

.topic-chip .chip-dot {
  background: var(--chip-dot);
}

.topic-chip:hover,
.topic-chip:focus-visible {
  background: color-mix(in srgb, var(--chip-color) 8%, white);
  border-color: color-mix(in srgb, var(--chip-color) 26%, rgba(0, 0, 0, 0.12));
}

.topic-chip.on {
  background: var(--chip-color);
  color: #ffffff;
  border-color: var(--chip-color);
  box-shadow: 0 2px 5px color-mix(in srgb, var(--chip-color) 28%, rgba(26, 26, 24, 0.12));
  font-weight: 500;
}

.topic-chip.on .chip-dot {
  background: rgba(255, 255, 255, 0.92);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feed-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 18px 24px 48px;
}

.site-note {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 28px;
}

.site-note-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.site-note-copy + .site-note-copy {
  margin-top: 8px;
}

.site-note-link {
  color: var(--accent);
  text-underline-offset: 0.14em;
}

.site-note-link:hover,
.site-note-link:focus-visible {
  color: #1f4b90;
}

.result-count {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  padding: 22px 16px 14px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 214px;
}

.project-card:hover,
.project-card:focus-visible {
  outline: none;
  border-color: #bbb;
}

.card-head,
.card-signal-row,
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.card-head {
  align-items: center;
  margin-top: 0;
}

.card-signal-row-top {
  margin-top: 0;
  margin-bottom: 4px;
  padding-top: 0;
}

.card-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: calc(1.4em * 2);
  font-size: 34px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 10px;
  border: 0.5px solid transparent;
  font-size: 10px;
  font-weight: 500;
  text-transform: lowercase;
  white-space: nowrap;
}

.status-approved {
  background: var(--approved-bg);
  color: var(--approved-text);
  border-color: var(--approved-border);
}

.status-active {
  background: var(--active-bg);
  color: var(--active-text);
  border-color: var(--active-border);
}

.status-urgent {
  background: var(--urgent-bg);
  color: var(--urgent-text);
  border-color: var(--urgent-border);
}

.status-no_action {
  background: var(--neutral-bg);
  color: var(--neutral-text);
  border-color: var(--neutral-border);
}

.card-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-top: -10px;
}

.card-hook {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-family: "Fraunces", serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: var(--muted);
  min-height: calc(1.6em * 3);
  margin-top: -20px;
  margin-bottom: 10px;
}

.card-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border: 0.5px solid transparent;
  border-radius: 5px;
  font-size: 10px;
}

.badge-money {
  background: var(--money-bg);
  color: var(--money-text);
  border-color: var(--money-border);
}

.badge-pub {
  background: var(--pub-bg);
  color: var(--pub-text);
  border-color: var(--pub-border);
}

.badge-q {
  background: var(--q-bg);
  color: var(--q-text);
  border-color: var(--q-border);
}

.badge-vote,
.badge-time {
  background: var(--meta-bg);
  color: var(--meta-text);
  border-color: var(--meta-border);
}

.card-signal-row {
  align-items: center;
  padding-top: 0;
}

.card-foot {
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

.card-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 10px;
  color: #999;
}

.card-foot-categories {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
}

.card-category-tag {
  min-height: 0;
  gap: 5px;
  padding: 4px 2px;
  border-color: transparent;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}

.card-category-tag:first-child {
  padding-right: 7px;
}

.card-category-tag:last-child {
  padding-left: 0;
}

.foot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.foot-date {
  font-size: 10px;
  color: #999;
  white-space: nowrap;
}

.card-status-date {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.card-foot-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .card-signal-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .card-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .card-status-date {
    justify-content: flex-end;
    margin-left: auto;
  }

  .card-foot-right {
    justify-content: flex-start;
  }

  .card-foot-right {
    margin-left: auto;
  }
}

@media (min-width: 700px) and (max-width: 1179px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .project-card {
    padding: 22px 18px 16px;
    min-height: 238px;
  }

  .card-hook {
    -webkit-line-clamp: 3;
    min-height: calc(1.6em * 3);
  }

  .card-emoji {
    width: 40px;
    min-width: 40px;
    font-size: 38px;
    margin-top: -10px;
  }

  .card-foot {
    align-items: flex-end;
  }

  .card-foot-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .card-foot-categories {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    max-width: 100%;
  }

  .card-category-tag {
    gap: 5px;
    padding: 4px 2px;
    font-size: 10px;
    line-height: 1;
  }

  .card-category-tag:first-child {
    padding-right: 7px;
  }

  .card-category-tag:last-child {
    padding-left: 0;
  }
}

@media (min-width: 1180px) {
  :root {
    --content-width: 1120px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .hero-title {
    max-width: 980px;
    font-size: clamp(36px, 3.8vw, 56px);
  }

  .hero-subtitle {
    max-width: 940px;
    font-size: 16px;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat-num {
    font-size: 30px;
  }

  .stat-label {
    font-size: 12px;
    margin-top: 6px;
  }

  .stat-card {
    min-width: 124px;
    padding: 12px 14px;
  }

  .filter-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .search-wrap {
    width: 100%;
    margin-top: 10px;
  }

  .search-wrap input {
    font-size: 18px;
  }

  .search-icon {
    left: 12px;
    width: 14px;
    height: 14px;
  }

  .row-label {
    font-size: 11px;
  }

  .chips-row {
    gap: 7px;
    margin-top: 2px;
  }

  .chip {
    gap: 4px;
    padding: 10px 22px;
    border-radius: 22px;
    font-size: 15px;
  }

  .chip-dot {
    width: 7px;
    height: 7px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .project-card {
    padding: 22px 18px 16px;
    min-height: 238px;
  }

  .card-hook {
    -webkit-line-clamp: 3;
    min-height: calc(1.6em * 3);
  }

  .card-emoji {
    width: 40px;
    min-width: 40px;
    font-size: 38px;
    margin-top: -10px;
  }

  .card-foot {
    align-items: flex-end;
  }

  .card-foot-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .card-foot-categories {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    max-width: 100%;
  }

  .chip.card-category-tag {
    gap: 5px;
    padding: 4px 2px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
  }

  .chip.card-category-tag:hover,
  .chip.card-category-tag:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 2px rgba(26, 26, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    color: var(--chip-color);
  }

  .chip.card-category-tag:first-child {
    padding-right: 7px;
  }

  .chip.card-category-tag:last-child {
    padding-left: 0;
  }

  .detail-panel {
    width: min(100%, 680px);
  }

  .detail-panel-header {
    padding: 20px 24px 14px;
  }

  .detail-scroll {
    padding: 24px 26px 30px;
  }

  .detail-title {
    font-size: clamp(34px, 3.4vw, 48px);
  }

  .detail-summary {
    font-size: 17px;
  }

  .detail-why,
  .detail-body {
    font-size: 15px;
  }
}

@media (max-width: 1180px) {
  .stat-card-optional-wide {
    display: none;
  }
}

@media (max-width: 980px) {
  .stat-card-optional {
    display: none;
  }
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.empty-state-rich {
  max-width: 620px;
  margin: 0 auto;
}

.empty-state-title {
  margin: 0 0 10px;
  color: var(--text);
  font-family: "Fraunces", serif;
  font-size: 26px;
  line-height: 1.2;
}

.empty-state-copy {
  margin: 0 0 16px;
}

.city-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.city-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.city-link:hover,
.city-link:focus-visible {
  outline: none;
  border-color: rgba(0, 0, 0, 0.18);
  background: #faf7f1;
}

.detail-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.detail-layer.hidden {
  display: none;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(26, 26, 24, 0.18);
  cursor: pointer;
}

.detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 560px);
  height: 100%;
  background: #fbf8f2;
  border-left: 0.5px solid var(--border);
}

.detail-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.detail-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 0.5px solid var(--border);
}

.detail-close {
  border: 0.5px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
}

.detail-close-inline {
  padding: 6px 12px;
  font-size: 12px;
}

.detail-close-icon {
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
}

.detail-scroll {
  overflow: auto;
  padding: 20px;
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-topline .status-pill {
  flex-shrink: 0;
}

.detail-category-tag {
  min-height: 0;
  gap: 5px;
  padding: 4px 2px;
  border-color: transparent;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
}

.detail-category-tag:first-child {
  padding-right: 7px;
}

.detail-category-tag:last-child {
  padding-left: 0;
}

.detail-title {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 640px) {
  .detail-topline {
    flex-direction: column;
    align-items: flex-start;
  }
}

.detail-section {
  margin-top: 22px;
}

.detail-section-label {
  color: var(--muted);
}

.detail-section-lead {
  margin-top: 18px;
}

.detail-hook {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #3f3b35;
}

.detail-section-briefing {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.detail-summary {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.detail-why,
.detail-body {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.detail-why {
  font-family: "Inter", sans-serif;
}

.detail-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.detail-metric {
  padding: 12px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: #fff8ee;
}

.detail-metric-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-metric-value {
  margin-top: 7px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
}

.money-detail-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.money-detail-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: #fff8ee;
}

.money-detail-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.money-detail-title {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.money-detail-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.money-detail-amount {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-align: right;
}

.open-question-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.open-question {
  padding: 12px;
  border: 0.5px solid var(--q-border);
  border-radius: 12px;
  background: var(--q-bg);
  color: var(--q-text);
  font-size: 13px;
  line-height: 1.55;
}

.detail-quote {
  margin: 10px 0 0;
  font-family: "Fraunces", serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
}

.detail-quote footer {
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.timeline-list,
.source-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.vote-list,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vote-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.timeline-item {
  position: relative;
  padding-left: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1a45f;
}

.source-item {
  padding: 0;
}

.vote-item {
  display: grid;
  grid-template-columns: minmax(70px, 92px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: #fff8ee;
}

.vote-copy {
  min-width: 0;
}

.timeline-date,
.source-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vote-value-block {
  display: flex;
  align-items: center;
}

.vote-value {
  color: var(--text);
  white-space: nowrap;
}

.vote-value-numeric {
  font-size: 32px;
  font-weight: 500;
  line-height: 0.95;
}

.vote-value-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--meta-text);
  line-height: 1.1;
}

.vote-motion {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.timeline-copy,
.source-id,
.source-link,
.source-chip {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.source-link {
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: rgba(43, 91, 168, 0.28);
  text-underline-offset: 2px;
}

.source-link:hover {
  color: var(--accent);
  text-decoration-color: rgba(43, 91, 168, 0.7);
}

.source-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--meta-border);
  background: color-mix(in srgb, white 58%, var(--warm));
  text-decoration: none;
  color: var(--meta-text);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.source-chip:hover {
  color: var(--text);
  background: #fff8ee;
  border-color: rgba(43, 91, 168, 0.22);
}

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

@media (max-width: 860px) {
  .hero-desktop {
    display: none;
  }

  .mobile-banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 16px 12px;
  }

  .mobile-banner-title {
    font-size: clamp(24px, 6.8vw, 32px);
    line-height: 1.04;
  }

  .mobile-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    width: auto;
  }

  .city-switcher-mobile {
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .city-switcher-mobile .city-switcher-link {
    min-height: 22px;
    padding: 0 0 2px;
    border-radius: 0;
    font-size: 11px;
    color: var(--muted);
  }

  .city-switcher-mobile .city-switcher-link.is-active {
    padding-bottom: 1px;
    border-bottom: 2px solid var(--text);
    background: transparent;
    color: var(--text);
    box-shadow: none;
  }

  .hero-feedback-link-mobile {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.14em;
    white-space: nowrap;
  }

  .filter-inner,
  .feed-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .filter-inner {
    padding-top: 14px;
  }

  .search-wrap {
    width: 100%;
  }

  .search-wrap input {
    padding: 10px 14px 10px 34px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 13px;
  }

  .filter-search-row {
    margin-bottom: 18px;
  }

  .filter-row {
    margin-bottom: 9px;
  }

  .row-label {
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  .chips-row {
    gap: 6px;
  }

  .chip {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 18px;
    font-size: 12px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    inset: auto 0 0 0;
    width: 100%;
    height: min(100vh, 100%);
    border-left: 0;
    border-top: 0.5px solid var(--border);
  }

  .detail-panel-header {
    position: sticky;
    top: 0;
    background: #fbf8f2;
    z-index: 1;
  }

  .detail-metrics-grid {
    grid-template-columns: 1fr;
  }

  .detail-hook {
    font-size: 17px;
  }

  .money-detail-item {
    flex-direction: column;
  }

  .money-detail-amount {
    text-align: left;
  }

  .vote-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vote-value-block {
    justify-items: flex-start;
  }
}
