.health-mock-page {
  min-width: 320px;
  background: var(--field);
  color: var(--ink);
  font-family: var(--zine-mono);
}

.health-mock-main {
  margin: 0 auto 32px;
  padding: clamp(24px, 4vw, 40px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--paper);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 28%, transparent);
}

.health-mock-page button,
.health-mock-page a {
  font: inherit;
}

.synthetic-banner {
  margin: calc(clamp(24px, 4vw, 40px) * -1);
  margin-bottom: clamp(28px, 5vw, 48px);
  padding: 10px 20px;
  background: var(--zine-accent);
  color: var(--zine-paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.health-hero {
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 2px solid var(--ink);
}

.health-eyebrow,
.section-index,
.section-note {
  margin: 0;
  font-family: var(--zine-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.health-eyebrow,
.section-index {
  color: var(--zine-accent);
}

.health-hero h1 {
  max-width: 12ch;
  margin: 20px 0 14px;
  font-family: var(--zine-display);
  font-size: clamp(48px, 8vw, 82px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.health-intro {
  max-width: 670px;
  margin: 0;
  color: var(--mut);
  font-family: var(--zine-mono);
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.55;
}

.health-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.health-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok, #1a7a3a);
}

.health-section {
  margin-top: clamp(44px, 6vw, 64px);
}

.health-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.health-section-heading h2,
.boundary-card h2 {
  margin: 6px 0 0;
  font-family: var(--zine-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.96;
  text-transform: uppercase;
}

.section-note {
  color: var(--mut);
  text-align: right;
}

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

.metric-card,
.trend-card,
.boundary-card {
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.metric-card {
  display: flex;
  height: 336px;
  min-height: 336px;
  flex-direction: column;
  padding: 16px;
  border-top-width: 5px;
  border-top-color: var(--mut);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 20%, transparent);
}

.metric-card.tone-good {
  border-top-color: var(--ok, #1a7a3a);
}

.metric-card.tone-accent {
  border-top-color: var(--zine-accent);
}

.metric-top,
.trend-heading,
.source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-number,
.metric-status,
.trend-target,
.source-state {
  color: var(--mut);
  font-family: var(--zine-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-status {
  color: var(--ok, #1a7a3a);
  text-align: right;
}

.metric-card h3 {
  min-height: 34px;
  margin: 28px 0 8px;
  color: var(--mut);
  font-family: var(--zine-mono);
  font-size: 10px;
  line-height: 1.45;
  text-transform: uppercase;
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
}

.metric-value strong {
  font-family: var(--zine-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.metric-value small,
.metric-detail {
  color: var(--mut);
}

.metric-detail {
  margin: 16px 0 10px;
  font-size: 10px;
  line-height: 1.5;
}

.detail-disclosure {
  margin-top: auto;
  border-top: 1px dashed var(--ink);
}

.detail-summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--mut);
  cursor: pointer;
  font-family: var(--zine-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  list-style: none;
  text-transform: uppercase;
}

.detail-summary::-webkit-details-marker {
  display: none;
}

.detail-summary::after {
  color: var(--zine-accent);
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.detail-disclosure[open] .detail-summary::after {
  content: "−";
}

.detail-summary:focus-visible {
  outline: 3px solid var(--zine-accent);
  outline-offset: 2px;
}

.detail-body {
  margin: 0;
  padding: 2px 0 12px;
  color: var(--mut);
  font-size: 10px;
  line-height: 1.5;
}

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

.trend-card {
  padding: 16px;
}

.trend-card h3 {
  margin: 0;
  font-family: var(--zine-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.bar-chart {
  display: grid;
  height: 180px;
  grid-template-columns: repeat(7, minmax(16px, 1fr));
  align-items: end;
  gap: 7px;
  margin-top: 24px;
  border-bottom: 2px solid var(--ink);
}

.bar-column {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr 24px;
  align-items: end;
  gap: 6px;
}

.bar {
  display: block;
  width: 100%;
  height: var(--bar-height);
  min-height: 12px;
  background: var(--zine-accent);
  transform-origin: bottom;
  animation: rise 500ms ease-out both;
}

.bar-column small {
  color: var(--mut);
  font-size: 8px;
  text-align: center;
  text-transform: uppercase;
}

.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr);
  gap: 12px;
}

.boundary-card {
  padding: 22px;
}

.boundary-card > p:not(.section-index) {
  max-width: 560px;
  color: var(--mut);
  line-height: 1.6;
}

.source-grid {
  margin-top: 24px;
  border-top: 2px solid var(--ink);
}

.source-row {
  min-height: 166px;
  padding-block: 16px;
  border-bottom: 1px dashed var(--ink);
}

.source-head {
  min-height: 44px;
}

.source-row strong,
.source-row small {
  display: block;
}

.source-row small {
  margin-top: 4px;
  color: var(--mut);
  font-size: 10px;
}

.source-state {
  color: var(--warn, #a76b00);
}

.privacy-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 7px solid var(--zine-accent);
}

.privacy-card > p {
  color: var(--mut);
}

.privacy-mark {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 7px 9px;
  border: 2px solid var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mock-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  color: var(--mut);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes rise {
  from {
    transform: scaleY(0.1);
    opacity: 0.3;
  }
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-grid,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .health-mock-main {
    width: 100%;
    margin-bottom: 0;
    padding: 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .synthetic-banner {
    margin: -20px -20px 32px;
  }

  .health-hero h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

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

  .health-section-heading,
  .mock-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
