:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5c6a63;
  --paper: #ffffff;
  --soft: #f3f7f4;
  --line: #dce4df;
  --teal: #0f766e;
  --teal-deep: #0a514d;
  --coral: #c85f44;
  --amber: #b87921;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--soft);
  color: var(--ink);
  font-family:
    Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial,
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px max(24px, calc((100% - 1120px) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 228, 223, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  width: min(200px, 58vw);
  min-width: 180px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav a:hover {
  color: var(--ink);
  background: #edf4f0;
}

.hero {
  position: relative;
  min-height: 620px;
  isolation: isolate;
  background-image: url("hero-harmonica-observe.webp");
  background-position: center;
  background-size: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 14, 12, 0.48);
}

.hero-content {
  width: min(1120px, calc(100% - 48px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 56px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.75rem;
  line-height: 1.04;
  font-weight: 900;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
}

.secondary-link:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.stat-row div {
  position: relative;
  min-width: 132px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  outline: none;
  cursor: help;
}

.stat-row strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
}

.stat-row span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.stat-card::before,
.stat-card::after {
  position: absolute;
  left: 14px;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.stat-card::before {
  content: "";
  bottom: -10px;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(12, 21, 18, 0.96);
  border-left: 8px solid transparent;
  transform: translateY(-3px);
}

.stat-card::after {
  content: attr(data-tooltip);
  top: calc(100% + 10px);
  width: min(280px, calc(100vw - 48px));
  padding: 10px 12px;
  color: #fff;
  background: rgba(12, 21, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  line-height: 1.45;
  text-wrap: pretty;
  transform: translateY(-3px);
}

.stat-card:hover::before,
.stat-card:hover::after,
.stat-card:focus-visible::before,
.stat-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.band {
  padding: 58px 0;
}

.band-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.split-layout,
.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.section-heading {
  align-items: end;
  margin-bottom: 22px;
}

.section-heading .data-date {
  justify-self: end;
  margin: 0;
  text-align: right;
}

h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.18;
}

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

.latest-feed-band {
  background: #f8faf8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.latest-feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.feed-chip-group-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.feed-option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feed-option-chip {
  min-height: 34px;
  max-width: 100%;
  padding: 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.feed-option-chip:hover {
  color: var(--ink);
  background: #edf4f0;
}

.feed-option-chip[data-filter-state="include"] {
  color: #fff;
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.feed-option-chip[data-filter-state="exclude"] {
  color: #7d372f;
  background: #f5e5e1;
  border-color: #e4beb7;
}

.feed-option-chip[data-filter-state="exclude"]:hover {
  color: #fff;
  background: #9a463c;
  border-color: #9a463c;
}

.feed-river {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 901px) {
  .feed-river {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feed-river-column {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.feed-load-more-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: center;
  padding: 6px 0 2px;
}

.feed-load-more-status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.feed-load-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 33, 29, 0.12);
}

.feed-load-more-button:hover,
.feed-load-more-button:focus-visible {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.feed-load-more-button:focus-visible {
  outline: 3px solid rgba(29, 114, 102, 0.22);
  outline-offset: 3px;
}

.home-feed-card {
  display: grid;
  box-sizing: border-box;
  gap: 14px;
  align-content: start;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  break-inside: avoid;
  page-break-inside: avoid;
  box-shadow: 0 10px 26px rgba(23, 33, 29, 0.06);
}

.feed-river .empty-state {
  grid-column: 1 / -1;
}

.home-feed-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.home-feed-source-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.home-feed-source-main > div {
  min-width: 0;
}

.platform-badge {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #59625d;
}

.platform-badge svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.platform-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-badge-facebook {
  color: #1877f2;
}

.platform-badge-instagram {
  color: #c13584;
}

.platform-badge-rss {
  color: #f97316;
}

.platform-badge-threads,
.platform-badge-x {
  color: #151515;
}

.platform-badge-youtube {
  color: #ff0033;
}

.home-feed-source strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.source-avatar {
  --source-avatar-size: 48px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: var(--source-avatar-size);
  min-width: var(--source-avatar-size);
  height: var(--source-avatar-size);
  aspect-ratio: 1;
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--teal);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.source-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-avatar-small {
  --source-avatar-size: 42px;
  font-size: 0.76rem;
}

.home-feed-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "thumb"
    "excerpt"
    "toggle";
  gap: 10px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  text-decoration: none;
}

.home-feed-thumb {
  grid-area: thumb;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--feed-image-aspect, 4 / 3);
  overflow: hidden;
  background: #eef4f0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.home-feed-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.home-feed-body > .feed-latest-excerpt {
  grid-area: excerpt;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-feed-body-no-image {
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "excerpt"
    "toggle";
}

.home-feed-body-no-title {
  grid-template-areas:
    "thumb"
    "excerpt"
    "toggle";
}

.home-feed-body-no-image.home-feed-body-no-title {
  grid-template-areas:
    "excerpt"
    "toggle";
}

.home-feed-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.home-feed-footer .entry-meta {
  margin: 0;
}

.feed-open-link {
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.feed-open-link:hover {
  color: var(--teal);
}

.feed-latest-excerpt {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feed-latest-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  background: #eef4f0;
  border-radius: var(--radius);
}

.data-date {
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.source-band {
  background: var(--paper);
}

.status-hero,
.status-overview-band,
.status-platform-band {
  background: #f8faf8;
}

.status-summary-panel {
  display: grid;
  gap: 14px;
}

.status-summary-line {
  display: grid;
  gap: 10px;
  align-items: start;
}

.status-summary-line strong {
  font-size: 1.12rem;
  line-height: 1.45;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 3px 9px;
  color: #35503f;
  font-size: 0.82rem;
  font-weight: 900;
  background: #e7f0e9;
  border: 1px solid #ccddd1;
  border-radius: var(--radius);
}

.status-ok {
  color: #075d56;
  background: #dff4ef;
  border-color: #b9ded7;
}

.status-paused,
.status-unknown {
  color: #75500a;
  background: #f7ead2;
  border-color: #ead4ad;
}

.status-degraded,
.status-down {
  color: #8d432f;
  background: #f7dfd8;
  border-color: #e8c3b8;
}

.status-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.status-metric-card {
  display: grid;
  gap: 5px;
  min-height: 132px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(23, 33, 29, 0.06);
}

.status-metric-card span,
.status-detail-list,
.status-error-item p {
  color: var(--muted);
}

.status-metric-card span {
  font-weight: 900;
}

.status-metric-card strong {
  font-size: 2rem;
  line-height: 1.05;
}

.status-metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.status-component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.status-component-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 210px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid #b9ded7;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(23, 33, 29, 0.06);
}

.status-card-paused,
.status-card-unknown {
  border-top-color: #d8b56f;
}

.status-card-degraded,
.status-card-down {
  border-top-color: var(--coral);
}

.status-component-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.status-component-head h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.status-component-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.status-detail-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

.status-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.status-table th,
.status-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.status-table thead th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-table tbody tr:last-child th,
.status-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-table tbody th {
  color: var(--ink);
  font-weight: 900;
}

.status-error-list {
  display: grid;
  gap: 10px;
}

.status-error-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.status-error-item strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.status-error-item p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feed-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--teal-deep);
  font-weight: 900;
  text-decoration: none;
  background: #edf8f5;
  border: 1px solid #cfe6df;
  border-radius: var(--radius);
}

.feed-links a:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.feed-page-hero {
  padding: 64px 0 48px;
  color: #fff;
  background: var(--ink);
}

.feed-page-hero h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.12;
}

.feed-page-summary {
  display: grid;
  gap: 18px;
}

.feed-page-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
}

.feed-page-hero .feed-links a {
  color: #dff4ef;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.feed-page-hero .feed-links a:hover {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.score-table {
  width: max(1240px, var(--score-table-width, 1240px));
  min-width: 1240px;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.2;
}

.score-table caption {
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.score-table th,
.score-table td {
  min-width: 0;
  padding: 6px 8px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  border: 1px solid var(--line);
}

.score-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #2d3d45;
  font-size: 0.78rem;
  font-weight: 950;
  background: #e7ece8;
}

.score-table tbody tr:nth-child(even) {
  background: #f7f9f8;
}

.score-table tbody tr:hover {
  background: #eef4f0;
}

.directory-table td.directory-link-cell {
  overflow: hidden;
  text-align: left;
  text-overflow: clip;
  white-space: nowrap;
}

.directory-link-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  text-decoration: none;
  vertical-align: middle;
}

.directory-link-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.directory-link-icon:hover,
.directory-link-icon:focus-visible {
  opacity: 0.72;
  outline: 2px solid rgba(36, 123, 111, 0.2);
  outline-offset: 2px;
}

.directory-table-list {
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  overflow-x: auto;
}

.directory-table {
  width: var(--score-table-width, 100%);
  min-width: 0;
}

.directory-source-cell {
  color: #1f312f;
  font-weight: 900;
}

.directory-source-identity {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.directory-source-name-block {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-source-name-block > span {
  display: block;
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-source-link {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.score-source-link:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 30px max(24px, calc((100% - 1120px) / 2));
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-title {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 900;
}

.footer-brand p,
.footer-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  min-height: 36px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.footer-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  text-decoration: none;
}

.footer-meta a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .split-layout,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-heading .data-date {
    justify-self: start;
    text-align: left;
  }

  .directory-grid,
  .status-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-component-grid,
  .status-error-item {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    padding: 14px 16px;
  }

  .brand {
    flex: 0 0 auto;
    width: clamp(150px, 48vw, 180px);
    min-width: 0;
  }

  .site-nav {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero {
    background-position: 58% center;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero-content,
  .band-inner {
    width: min(100% - 32px, 1120px);
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .stat-row div {
    flex: 1 1 132px;
  }

  .stat-card:nth-child(even)::before,
  .stat-card:nth-child(even)::after {
    right: 14px;
    left: auto;
  }

  .band {
    padding: 42px 0;
  }

  h2 {
    font-size: 1.55rem;
  }

  .directory-grid,
  .status-metric-grid,
  .status-component-grid {
    grid-template-columns: 1fr;
  }

  .feed-river {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-self: stretch;
    width: auto;
    gap: 14px;
  }

  .feed-river-column {
    display: grid;
    gap: 14px;
  }

  .feed-page-hero h1 {
    font-size: 1.8rem;
  }

  .home-feed-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "thumb"
      "excerpt"
      "toggle";
  }

  .home-feed-body-no-image {
    grid-template-areas:
      "title"
      "excerpt"
      "toggle";
  }

  .home-feed-body-no-title {
    grid-template-areas:
      "thumb"
      "excerpt"
      "toggle";
  }

  .home-feed-body-no-image.home-feed-body-no-title {
    grid-template-areas:
      "excerpt"
      "toggle";
  }

}

/* ===== 2026mayor overrides (appended to the copied Harmonica stylesheet) ===== */

.hero {
  min-height: 460px;
  background-image: linear-gradient(135deg, #0c1512 0%, #123229 55%, #0a514d 100%);
}

.hero-content {
  min-height: 460px;
  padding: 56px 0 48px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}

.candidate-city-list {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.candidate-city-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
}

.candidate-city-list a:hover {
  background: #edf4f0;
}

.candidate-city-list strong {
  font-size: 1.02rem;
}

.topic-chart-panel {
  max-width: 420px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(23, 33, 29, 0.06);
}

.candidate-city-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.candidate-city-identity .source-avatar {
  --source-avatar-size: 34px;
  font-size: 0.7rem;
}

.source-list-table {
  width: 100%;
  min-width: 720px;
}

.source-hero-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.source-hero-avatar {
  --source-avatar-size: 96px;
  font-size: 1.6rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.feed-page-summary#candidate-party,
p.feed-page-summary {
  color: rgba(255, 255, 255, 0.84);
  margin: 6px 0 0;
}

.source-list-table .platform-badge {
  width: 26px;
  height: 26px;
}

.source-list-table .platform-badge svg {
  width: 19px;
  height: 19px;
}

/* /source/ list column tuning: wide link column, narrow city/party. */
#source-table th:nth-child(1),
#source-table td:nth-child(1) {
  width: 220px;
}

#source-table th:nth-child(2),
#source-table td:nth-child(2) {
  width: auto;
}

#source-table th:nth-child(3),
#source-table td:nth-child(3) {
  width: 168px;
}

#source-table th:nth-child(4),
#source-table td:nth-child(4) {
  width: 76px;
}

#source-table th:nth-child(5),
#source-table td:nth-child(5) {
  width: 108px;
}

#source-table .directory-source-identity {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
}

#source-table .source-avatar-small {
  --source-avatar-size: 40px;
}

#source-table td.directory-link-cell .directory-link-icon {
  margin-right: 12px;
}

/* Account table on /source/<candidate>/: full URLs need the widest column. */
#account-table th:nth-child(1),
#account-table td:nth-child(1) {
  width: 160px;
}

#account-table th:nth-child(2),
#account-table td:nth-child(2) {
  width: auto;
}

#account-table th:nth-child(3),
#account-table td:nth-child(3) {
  width: 110px;
}

#account-table th:nth-child(4),
#account-table td:nth-child(4) {
  width: 110px;
}

/* Post text keeps original line breaks. */
.home-feed-card .feed-latest-excerpt {
  white-space: pre-line;
}

/* Brand lockup: logo tile + single-line site name (overrides the copied
   Harmonica .brand, whose fixed width made our longer name wrap badly). */
.brand {
  width: auto;
  min-width: 0;
  gap: 10px;
  white-space: nowrap;
  font-size: 1rem;
}

.brand-logo-img {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .brand {
    font-size: 0.9rem;
  }
}

/* Account handle under the card's source name: single line, ellipsis. */
.home-feed-source-main .data-date {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Six-city overview cards: tight title, vertically centered candidate rows. */
.city-card {
  gap: 8px;
}

.city-card-title {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.candidate-city-list {
  margin-top: 0;
}

.candidate-city-list a {
  align-items: center;
}

.candidate-city-list .candidate-city-identity {
  flex: 1 1 auto;
}

.candidate-city-list > a > .data-date {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
}

.spectrum-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.spectrum-identity strong {
  display: block;
  line-height: 1.25;
}

.spectrum-identity .data-date {
  display: block;
  font-size: 0.8rem;
}

/* Spectrum heatmap table. */
.spectrum-table {
  width: 100%;
  min-width: 900px;
}

.spectrum-table th:first-child,
.spectrum-table td:first-child {
  width: 220px;
}

.spectrum-topic-head {
  text-align: center;
  font-size: 0.8rem;
}

.spectrum-cell {
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.spectrum-cell-max {
  outline: 2px solid var(--teal-deep);
  outline-offset: -2px;
}

.spectrum-city-cell {
  color: var(--teal-deep);
  font-weight: 900;
  background: #eef4f0;
}

/* Spectrum filter controls + topic detail pages. */
.spectrum-controls {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spectrum-control-group {
  display: grid;
  gap: 8px;
}

.spectrum-topic-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.spectrum-topic-link:hover {
  color: var(--teal-deep);
}

.topic-candidate-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-candidate-heading .entry-meta {
  margin: 0;
}

/* Candidate page: per-topic breakdown next to the pie chart. */
.topic-breakdown-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .topic-breakdown-layout {
    grid-template-columns: 1fr;
  }
}

.topic-breakdown {
  display: grid;
  gap: 14px;
}

.topic-breakdown-row {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-breakdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.topic-breakdown-name {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

a.topic-breakdown-name:hover {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-breakdown-track {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  background: #eef4f0;
  border-radius: 999px;
}

.topic-breakdown-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.topic-breakdown-row .entry-meta {
  margin: 10px 0 0;
}

/* Candidate picker on topic pages. */
.topic-candidate-picker {
  margin-bottom: 20px;
}

.topic-candidate-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topic-candidate-chip .source-avatar {
  --source-avatar-size: 24px;
  font-size: 0.6rem;
  border: none;
}

.topic-summaries {
  display: grid;
  gap: 10px;
}

.topic-summaries .topic-candidate-heading {
  margin-bottom: 0;
}

.sort-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.context-meta { margin-top: 8px; }
.intent-pill { border-width: 2px; background: #eef4f0; border-color: #56826c; color: #284f3c; }
.policy-question { max-width: 880px; margin: 0 auto 28px; }
.policy-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 18px; }
.policy-choice { padding: 18px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.policy-choice:hover, .policy-choice[data-selected="true"] { border-color: var(--teal-deep); background: #e5f3ee; }
.policy-submit { display: block; margin: 24px auto 12px; }
.policy-results { margin-top: 48px; }
.policy-city-title { margin: 28px 0 12px; }
.policy-score { display: block; margin-top: 14px; color: var(--teal-deep); font-size: 1.15rem; }
.policy-evidence { display: block; margin-top: 8px; color: var(--ink); font-size: .88rem; line-height: 1.45; }
