.report-body {
  background:
    linear-gradient(180deg, #f7fbfc 0%, #eef6f4 45%, #f8fbff 100%);
  color: #17212b;
}

.report-shell {
  max-width: 1240px;
}

.report-main {
  display: grid;
  gap: 38px;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(23, 33, 43, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(237, 248, 246, 0.94));
  box-shadow: 0 18px 44px rgba(33, 43, 54, 0.08);
}

.report-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.report-hero h2 {
  max-width: 15ch;
  margin: 0;
  color: #111827;
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: 0;
}

.report-hero-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 20px 0 0;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.8;
}

.report-source-note {
  padding-top: 12px;
  border-top: 1px solid rgba(23, 33, 43, 0.1);
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
}

.report-kpi,
.featured-card,
.support-card,
.structure-card,
.compact-analysis-card,
.feature-list-card,
.premise-grid article,
.route-card-grid a,
.data-notice-panel {
  border: 1px solid rgba(23, 33, 43, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(33, 43, 54, 0.06);
}

.report-kpi {
  min-height: 104px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.report-kpi span,
.report-note,
.metric-chip b,
.article-category,
.compact-card-head span {
  color: #64748b;
}

.report-kpi strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 1.48rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.report-kpi small {
  display: block;
  margin-top: 8px;
  color: #526171;
  font-size: 0.82rem;
  line-height: 1.4;
}

.report-section {
  display: grid;
  gap: 16px;
}

.report-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.report-section-head.compact {
  align-items: start;
}

.report-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 2.1rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.report-section-head p:not(.eyebrow) {
  max-width: 780px;
  margin: 10px 0 0;
  color: #526171;
  line-height: 1.7;
}

.reading-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: reading-step;
}

.reading-map-grid a {
  counter-increment: reading-step;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  border: 1px solid rgba(31, 111, 101, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #1f6f65;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.reading-map-grid a::before {
  content: counter(reading-step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #1f6f65;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.featured-card {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  padding: 20px;
}

.featured-card.primary-card {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 360px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 248, 245, 0.9));
  border-color: rgba(31, 111, 101, 0.22);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.article-category {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-set,
.data-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.value-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.value-badge.observed {
  background: #e7f7ef;
  color: #126044;
}

.value-badge.derived {
  background: #e8f1ff;
  color: #25599a;
}

.value-badge.estimated {
  background: #fff1dd;
  color: #8a4b05;
}

.featured-card h3,
.support-card h3,
.structure-copy h3,
.compact-card-head strong,
.feature-list-card h3,
.premise-grid h3,
.route-card-grid h3 {
  margin: 0;
  color: #111827;
  line-height: 1.3;
  letter-spacing: 0;
}

.featured-card h3 {
  font-size: 1.34rem;
}

.featured-card.primary-card h3 {
  font-size: 1.8rem;
}

.article-subtitle,
.featured-card p,
.support-card p,
.structure-copy p,
.compact-analysis-card p,
.premise-grid p,
.route-card-grid p,
.data-notice-panel p {
  margin: 0;
  color: #526171;
  line-height: 1.7;
}

.article-happened {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.article-happened h4 {
  margin: 0;
  color: #334155;
  font-size: 0.86rem;
}

.article-happened p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.article-body {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.article-body p {
  margin: 0;
  color: #445363;
  font-size: 0.92rem;
  line-height: 1.75;
}

.report-mini-figure {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(247, 250, 249, 0.9);
}

.report-mini-figure figcaption {
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
}

.report-mini-figure p {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.6;
}

.mini-bars,
.score-stack-labels,
.figure-chip-row {
  display: grid;
  gap: 8px;
}

.mini-bar-group {
  display: grid;
  gap: 6px;
}

.mini-bar-group h4 {
  margin: 0;
  color: #334155;
  font-size: 0.82rem;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.9fr) minmax(90px, 1.1fr) auto;
  gap: 8px;
  align-items: center;
  color: #526171;
  font-size: 0.8rem;
}

.mini-bar-row i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf1;
}

.mini-bar-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f6f65, #54a69b);
}

.mini-bar-row strong {
  color: #17212b;
  font-size: 0.82rem;
}

.score-stack-bar {
  display: flex;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf1;
}

.score-stack-bar i {
  min-width: 2px;
}

.score-stack-bar .top {
  background: #1f6f65;
}

.score-stack-bar .mid {
  background: #4f8fda;
}

.score-stack-bar .low {
  background: #9fb7c8;
}

.score-stack-bar .bonus {
  background: #d7a441;
}

.score-stack-labels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-stack-labels span {
  color: #526171;
  font-size: 0.82rem;
}

.score-stack-labels b {
  color: #17212b;
}

.figure-chip-row {
  display: flex;
  flex-wrap: wrap;
}

.first-vote-card {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.slope-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 120px;
}

.slope-row div {
  display: grid;
  gap: 6px;
  align-content: end;
  min-height: 120px;
}

.slope-row span,
.slope-row strong {
  color: #334155;
}

.slope-row i {
  display: block;
  min-height: 8px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #1f6f65, #9fcfc8);
}

.gap-axis {
  position: relative;
  height: 24px;
  border-radius: 999px;
  background: #e5edf1;
}

.gap-axis .zero {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 2px;
  background: #334155;
}

.gap-axis b {
  position: absolute;
  top: 5px;
  height: 14px;
  border-radius: 999px;
}

.gap-axis b.positive {
  background: #1f6f65;
}

.gap-axis b.negative {
  background: #bf4a4a;
}

.article-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.metric-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 30px;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 999px;
  padding: 5px 9px;
  background: #f7faf9;
  color: #17212b;
  font-size: 0.84rem;
  white-space: normal;
}

.metric-chip b {
  font-size: 0.72rem;
  font-weight: 800;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.article-data-routes {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(23, 33, 43, 0.1);
  margin-top: 2px;
  padding-top: 12px;
}

.article-data-routes > span {
  color: #334155;
  font-size: 0.8rem;
  font-weight: 900;
}

.article-data-route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-data-route-actions .report-action {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 0.8rem;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 999px;
  padding: 4px 8px;
  background: #f7faf9;
  color: #526171;
  font-size: 0.74rem;
  font-weight: 850;
}

.article-key-figures {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(31, 111, 101, 0.14);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(247, 250, 249, 0.82);
}

.article-key-figures > strong {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
}

.article-key-figures span {
  display: grid;
  grid-template-columns: minmax(78px, 0.88fr) minmax(0, 1.12fr);
  gap: 8px;
  align-items: baseline;
  color: #17212b;
  font-size: 0.86rem;
  line-height: 1.35;
}

.article-key-figures b {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
}

.report-article-reader[hidden] {
  display: none;
}

.report-article {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(23, 33, 43, 0.12);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(33, 43, 54, 0.08);
}

.article-back-link {
  width: fit-content;
}

.report-article-header {
  display: grid;
  gap: 14px;
  max-width: 880px;
}

.report-article-header h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.report-article-header p {
  margin: 0;
  color: #526171;
  font-size: 1.05rem;
  line-height: 1.75;
}

.report-article-section {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.report-article-section h3 {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.report-article-section > p,
.report-article-section .article-body p {
  margin: 0;
  color: #445363;
  font-size: 1rem;
  line-height: 1.85;
}

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

.related-song-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #f7faf9;
}

.related-song-card span,
.related-song-card p {
  color: #64748b;
}

.related-song-card strong {
  display: block;
  margin-top: 4px;
  color: #111827;
  overflow-wrap: anywhere;
}

.related-song-card p {
  margin: 0;
  line-height: 1.55;
}

.article-related-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(31, 111, 101, 0.26);
  border-radius: 8px;
  padding: 7px 11px;
  color: #1f6f65;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.report-action.primary {
  border-color: #1f6f65;
  background: #1f6f65;
  color: #ffffff;
}

.report-action:hover,
.reading-map-grid a:hover,
.route-card-grid a:hover,
.feature-list-items a:hover {
  border-color: rgba(31, 111, 101, 0.55);
  box-shadow: 0 10px 24px rgba(31, 111, 101, 0.12);
}

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

.support-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  box-shadow: none;
}

.support-card h3 {
  font-size: 1rem;
}

.support-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.structure-list,
.compact-card-list {
  display: grid;
  gap: 10px;
}

.structure-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 0.74fr) minmax(320px, 1.36fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.structure-rank {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 38px;
  border-radius: 999px;
  background: #e7f7ef;
  color: #126044;
  font-weight: 900;
}

.structure-copy,
.compact-card-head,
.feature-list-items a {
  min-width: 0;
}

.structure-copy h3,
.structure-copy p,
.compact-card-head strong,
.feature-list-items strong {
  overflow-wrap: anywhere;
}

.structure-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-analysis-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.compact-card-head {
  display: grid;
  gap: 4px;
}

.compact-card-head span {
  font-size: 0.78rem;
  font-weight: 900;
}

.gap-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f1ff;
  color: #25599a;
  font-weight: 900;
}

.border-diff-bar {
  position: relative;
  min-height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(191, 74, 74, 0.08), rgba(255, 255, 255, 0.9) 49%, rgba(31, 111, 101, 0.08));
  border: 1px solid rgba(23, 33, 43, 0.1);
}

.border-diff-bar b,
.border-diff-bar .bar-zero,
.border-diff-bar strong {
  position: absolute;
}

.border-diff-bar b {
  top: 18px;
  height: 8px;
  border-radius: 999px;
}

.border-diff-bar.negative b {
  right: 50%;
  background: #bf4a4a;
}

.border-diff-bar.positive b {
  left: 50%;
  background: #1f6f65;
}

.border-diff-bar .bar-zero {
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  background: #334155;
}

.border-diff-bar strong {
  top: 4px;
  left: calc(50% + 6px);
  color: #334155;
  font-size: 0.76rem;
}

.bar-side {
  position: absolute;
  bottom: 4px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
}

.bar-side.left {
  left: 10px;
}

.bar-side.right {
  right: 10px;
}

.report-caution {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(160, 115, 18, 0.25);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff7df;
  color: #6b4a0c;
  line-height: 1.7;
}

.report-caution::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f6d76b;
  color: #5b3d06;
  font-weight: 900;
}

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

.feature-list-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.feature-list-description {
  margin: 0;
  color: #526171;
  line-height: 1.65;
}

.feature-list-items {
  display: grid;
  gap: 8px;
}

.feature-list-items a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.feature-list-items span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #25599a;
  font-weight: 900;
}

.feature-list-items small {
  color: #64748b;
  line-height: 1.45;
}

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

.route-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premise-grid article,
.route-card-grid a {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.route-card-grid a {
  color: inherit;
  text-decoration: none;
}

.report-deep-links {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0.92));
}

.report-deep-links h3 {
  margin: 0 0 6px;
  color: #14212d;
  font-size: 1rem;
  letter-spacing: 0;
}

.report-deep-links p {
  margin: 0;
  color: #526171;
  line-height: 1.6;
}

.report-deep-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-deep-link-grid a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 10px;
  padding: 10px;
  color: #0f766e;
  background: #ffffff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.report-deep-link-grid a:hover {
  border-color: rgba(20, 184, 166, 0.55);
  background: #ecfeff;
}

.data-notice-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.mobile-section-toggle,
.mobile-list-toggle {
  display: none;
}

.data-badge-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.data-badge-row > div {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(23, 33, 43, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: #f7faf9;
}

.data-badge-row p,
.report-closing p {
  line-height: 1.7;
}

.report-closing h2 {
  margin: 0;
  color: #111827;
  font-size: 1.55rem;
}

.report-note {
  margin: 0;
  line-height: 1.6;
}

.report-note.error {
  color: #b42318;
}

@media (max-width: 1120px) {
  .report-hero,
  .featured-report-grid,
  .support-analysis-grid,
  .compact-card-list,
  .feature-list-grid,
  .premise-grid,
  .route-card-grid,
  .report-deep-link-grid,
  .data-badge-row,
  .related-song-grid {
    grid-template-columns: 1fr;
  }

  .featured-card.primary-card {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .structure-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .structure-metrics,
  .structure-card .article-actions {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .report-main {
    gap: 24px;
  }

  .report-hero {
    padding: 22px;
  }

  .report-article {
    padding: 20px;
  }

  .report-hero h2 {
    max-width: none;
    font-size: 2.35rem;
  }

  .report-kpis,
  .reading-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reading-map-grid a {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
  }

  .report-section-head h2 {
    font-size: 1.55rem;
  }

  .mobile-section-toggle,
  .mobile-list-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    border: 1px solid rgba(31, 111, 101, 0.24);
    border-radius: 8px;
    padding: 8px 12px;
    background: #ffffff;
    color: #1f6f65;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 900;
  }

  .mobile-collapsible:not(.is-mobile-expanded) > .mobile-toggle-content {
    display: none;
  }

  .mobile-collapsible.is-mobile-expanded > .mobile-toggle-content {
    display: block;
  }

  .structure-list:not(.is-expanded) .mobile-extra-row {
    display: none;
  }

  .mobile-list-toggle {
    width: 100%;
  }

  .featured-card,
  .support-card,
  .compact-analysis-card,
  .feature-list-card,
  .premise-grid article,
  .route-card-grid a,
  .data-notice-panel {
    padding: 16px;
  }

  .featured-card.primary-card h3 {
    font-size: 1.34rem;
  }

  .structure-card {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 12px;
  }

  .structure-metrics,
  .structure-card .article-actions {
    grid-column: 1 / -1;
  }

  .article-actions {
    flex-direction: column;
  }

  .report-action {
    width: 100%;
  }

  .mini-bar-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .score-stack-labels,
  .slope-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .report-kpis,
  .reading-map-grid {
    grid-template-columns: 1fr;
  }

  .report-hero h2 {
    font-size: 2rem;
  }
}
