:root {
  --ink: #17324d;
  --muted: #5f7183;
  --line: #d9e2ea;
  --soft-line: #e9eef3;
  --paper: #ffffff;
  --canvas: #f3f6f8;
  --accent: #087e8b;
  --public-july: #1f5f8b;
  --public-february: #67b8d6;
  --experts-february: #4e8b67;
  --risk-low: #4e8b78;
  --risk-middle: #d89a3d;
  --risk-high: #b94c5e;
  --unknown: #cbd3dc;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: clamp(12px, 2vw, 24px) clamp(18px, 3.5vw, 52px)
    clamp(18px, 3.5vw, 52px);
}

.page-container {
  width: min(1480px, 100%);
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid #cedbe4;
  border-radius: 24px;
  background:
    radial-gradient(circle at 7% 20%, rgb(8 126 139 / 10%), transparent 30%),
    linear-gradient(135deg, #ffffff 25%, #f8fbfc 100%);
  box-shadow: 0 16px 40px rgb(39 66 89 / 8%);
  text-align: left;
}

.hero::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 8px;
  background: linear-gradient(180deg, #087e8b, #6656a8);
  content: "";
}

.institutional-header {
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.logo-link:focus-visible,
.scenario-card:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgb(8 126 139 / 35%);
  outline-offset: 4px;
}

.inss-logo {
  width: clamp(180px, 21vw, 270px);
  height: auto;
  object-fit: contain;
}

.report-heading {
  min-width: 0;
}

.report-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.7vw, 2.55rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.report-heading p {
  margin: 5px 0 0;
  color: #40566b;
  font-size: clamp(0.92rem, 1.45vw, 1.2rem);
  font-weight: 650;
  line-height: 1.35;
}

.report-heading p:last-child {
  color: var(--accent);
  font-size: clamp(0.84rem, 1.2vw, 1.02rem);
  font-weight: 750;
}

.hero-divider {
  height: 1px;
  margin: clamp(22px, 3vw, 34px) 0 clamp(20px, 2.6vw, 30px);
  background: linear-gradient(
    90deg,
    transparent,
    #cedae2 14%,
    #cedae2 86%,
    transparent
  );
}

.scenario-label {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.scenario-title {
  max-width: 1100px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-description {
  max-width: 880px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.survey-legend,
.impact-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #40566b;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.3;
}

.legend-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgb(23 50 77 / 10%);
}

.chart-survey-legend {
  margin: 0 0 20px;
  padding: 11px 14px;
  border: 1px solid #e2e9ee;
  border-radius: 11px;
  background: #f7f9fb;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.chart-card {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 30px);
  border: 1px solid #d6e0e7;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgb(38 67 91 / 7%);
}

.card-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-bottom: 20px;
}

.chart-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #edf5f6;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.card-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.6vw, 1.38rem);
  font-weight: 750;
  line-height: 1.42;
}

.card-eyebrow {
  margin: 0 0 4px;
  color: #7b678d;
  font-size: 0.77rem;
  font-weight: 750;
}

.metric-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
}

.metric-chart {
  position: relative;
  min-height: 280px;
  flex: 1;
  padding-top: 12px;
}

.metric-grid-lines {
  position: absolute;
  inset: 18px 0 62px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #8392a1;
  font-size: 0.72rem;
  pointer-events: none;
}

.metric-grid-lines span {
  display: flex;
  gap: 8px;
  align-items: center;
  direction: ltr;
}

.metric-grid-lines span::after {
  height: 1px;
  flex: 1;
  background: #e7edf1;
  content: "";
}

.metric-bars {
  position: absolute;
  inset: 18px 12px 0 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 42px);
  direction: ltr;
}

.metric-column {
  display: grid;
  min-width: 0;
  grid-template-rows: 26px minmax(150px, 1fr) 52px;
  text-align: center;
}

.metric-value {
  align-self: end;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  direction: ltr;
}

.metric-value.missing {
  color: #82909e;
  font-size: 0.78rem;
  direction: ltr;
}

.metric-bar-space {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.metric-bar {
  width: min(72px, 76%);
  min-height: 3px;
  border-radius: 9px 9px 2px 2px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 5%);
}

.metric-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 9px;
  color: #52687c;
  font-size: 0.79rem;
  font-weight: 650;
  line-height: 1.25;
}

.impact-card {
  display: flex;
  flex-direction: column;
}

.distribution-card {
  min-height: 410px;
}

.impact-legend {
  margin: -4px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--soft-line);
}

.impact-legend .legend-item {
  font-size: 0.76rem;
}

.impact-chart {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.survey-distribution-chart {
  gap: 30px;
}

.impact-row {
  display: grid;
  grid-template-columns: minmax(105px, 150px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.impact-row h3 {
  margin: 0;
  color: #334d65;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.stacked-bar {
  display: flex;
  height: 34px;
  overflow: hidden;
  border-radius: 7px;
  background: #f1f4f6;
  box-shadow: inset 0 0 0 1px rgb(23 50 77 / 5%);
  direction: ltr;
}

.stack-segment {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgb(0 0 0 / 22%);
  direction: ltr;
}

.stack-segment.compact {
  color: #35495c;
  text-shadow: none;
}

.pie-card {
  display: flex;
  min-height: 480px;
  flex-direction: column;
}

.pie-content {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(180px, 0.9fr) minmax(230px, 1.1fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
}

.pie-chart-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.pie-population {
  margin: 0 0 12px;
  color: #334d65;
  font-size: 0.84rem;
  font-weight: 750;
}

.pie-chart-wrap {
  position: relative;
  width: min(225px, 100%);
  aspect-ratio: 1;
}

.pie-chart {
  width: 100%;
  height: 100%;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 12px 28px rgb(34 61 83 / 13%),
    0 0 0 1px rgb(23 50 77 / 8%);
}

.pie-slice-label {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 1px 3px rgb(0 0 0 / 42%);
  direction: ltr;
  pointer-events: none;
}

.pie-slice-label.on-light {
  color: #17324d;
  text-shadow: 0 1px 2px rgb(255 255 255 / 68%);
}

.pie-legend {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.pie-legend-item {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid #e3e9ee;
  border-radius: 10px;
  background: #f8fafb;
  color: #40566b;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.3;
}

.pie-legend-item strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.index-hero {
  margin-bottom: 28px;
}

.index-title {
  max-width: 900px;
}

.scenario-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.scenario-card {
  position: relative;
  display: grid;
  min-height: 142px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #d6e0e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(38 67 91 / 6%);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.scenario-card::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: linear-gradient(180deg, #087e8b, #6656a8);
  content: "";
  opacity: 0.8;
}

.scenario-card:hover {
  border-color: #adc4d2;
  box-shadow: 0 13px 30px rgb(38 67 91 / 11%);
  transform: translateY(-2px);
}

.scenario-card-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: #edf5f6;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  direction: ltr;
}

.scenario-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
  font-weight: 760;
  line-height: 1.4;
}

.scenario-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.report-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 28px;
  padding: 11px;
  border: 1px solid #d6e0e7;
  border-radius: 15px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 7px 22px rgb(38 67 91 / 6%);
}

.report-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 10px;
  color: #40566b;
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.report-nav a:hover {
  background: #edf5f6;
  color: var(--accent);
}

.report-nav .method-link {
  margin-inline-start: auto;
  border: 1px solid rgb(8 126 139 / 18%);
  background: #edf5f6;
  color: var(--accent);
}

.report-nav a:focus-visible,
.button-link:focus-visible,
.chapter-card:focus-visible,
.report-footer a:focus-visible {
  outline: 3px solid rgb(8 126 139 / 30%);
  outline-offset: 3px;
}

.report-section {
  margin-block: 30px;
  padding: clamp(24px, 3.2vw, 44px);
  border: 1px solid #d6e0e7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(38 67 91 / 7%);
}

.section-heading {
  max-width: 1000px;
  margin-bottom: 24px;
}

.section-eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.035em;
}

.section-heading h2,
.scenario-analysis h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.8vw, 2.55rem);
  font-weight: 790;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-heading > p:last-child {
  max-width: 900px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: start;
}

.prose-card,
.credits-card,
.chart-narrative {
  border: 1px solid #e0e7ec;
  border-radius: 16px;
  background: #f8fafb;
}

.prose-card {
  padding: clamp(20px, 2.5vw, 32px);
}

.prose-card p,
.scenario-analysis-copy p {
  margin: 0 0 14px;
  color: #40566b;
  font-size: clamp(0.95rem, 1.15vw, 1.06rem);
  line-height: 1.78;
}

.prose-card p:last-child,
.scenario-analysis-copy p:last-child {
  margin-bottom: 0;
}

.report-copy {
  margin-bottom: 20px;
}

.credits-card {
  padding: 24px;
  border-color: #d2e3e6;
  background:
    linear-gradient(145deg, rgb(8 126 139 / 8%), transparent 60%),
    #f8fbfc;
}

.credits-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
}

.credits-card p {
  margin: 0;
  color: #52687c;
  font-size: 0.88rem;
  line-height: 1.7;
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 18px;
  padding: 9px 16px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 780;
  text-decoration: none;
}

.report-chart-card {
  min-width: 0;
  margin-top: 20px;
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid #d8e1e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(38 67 91 / 5%);
}

.report-chart-card > h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.4;
}

.chart-narrative {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-inline-start: 5px solid var(--accent);
  border-radius: 11px;
}

.chart-narrative p {
  margin: 0;
  color: #40566b;
  font-size: 0.92rem;
  line-height: 1.72;
}

.section-subdivider {
  height: 1px;
  margin: 42px 0;
  background: linear-gradient(90deg, transparent, #d9e2ea 12%, #d9e2ea 88%, transparent);
}

.rank-chart {
  display: grid;
  gap: 16px;
}

.rank-scale {
  display: flex;
  justify-content: space-between;
  margin-inline-start: min(27vw, 340px);
  padding-inline: 22px 50px;
  color: #82909e;
  font-size: 0.68rem;
  direction: ltr;
}

.rank-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 22px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #edf1f4;
}

.rank-group:first-of-type {
  border-top: 0;
}

.rank-group h3,
.single-rank-row h3 {
  margin: 0;
  color: #334d65;
  font-size: 0.88rem;
  font-weight: 730;
  line-height: 1.48;
}

.rank-group-link {
  color: inherit;
  text-decoration-color: rgb(8 126 139 / 35%);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease;
}

.rank-group-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.rank-group-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgb(8 126 139 / 30%);
  outline-offset: 3px;
}

.rank-series-list {
  display: grid;
  gap: 7px;
}

.rank-series {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 43px;
  gap: 9px;
  align-items: center;
}

.series-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.rank-track {
  display: flex;
  height: 12px;
  overflow: hidden;
  justify-content: flex-start;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgb(23 50 77 / 3%), rgb(23 50 77 / 7%)),
    #f2f5f7;
  direction: ltr;
}

.rank-fill {
  display: block;
  min-width: 0;
  height: 100%;
  border-radius: 999px;
}

.rank-series strong,
.single-rank-value strong {
  color: var(--ink);
  font-size: 0.77rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  direction: ltr;
}

.single-rank-chart {
  display: grid;
  gap: 0;
}

.single-rank-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
  gap: 22px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #edf1f4;
}

.single-rank-row:first-child {
  border-top: 0;
}

.single-rank-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45px;
  gap: 10px;
  align-items: center;
}

.single-rank-value .rank-track {
  height: 17px;
}

.report-chart-legend {
  margin: 0 0 22px;
}

.report-distribution-chart {
  display: grid;
  gap: 24px;
}

.distribution-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.distribution-row h3 {
  margin: 0;
  color: #334d65;
  font-size: 0.84rem;
  line-height: 1.4;
}

.distribution-bar {
  display: flex;
  height: 42px;
  overflow: hidden;
  border-radius: 9px;
  background: #f1f4f6;
  box-shadow: inset 0 0 0 1px rgb(23 50 77 / 6%);
  direction: ltr;
}

.distribution-segment {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.73rem;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgb(0 0 0 / 22%);
  direction: ltr;
}

.distribution-segment.on-light {
  color: #2e465c;
  text-shadow: none;
}

.impact-comparison .rank-group {
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
}

.scenario-analysis {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
  margin: 0 0 24px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid #d4e1e7;
  border-radius: 20px;
  background:
    linear-gradient(140deg, rgb(8 126 139 / 8%), transparent 48%),
    #fff;
  box-shadow: 0 9px 26px rgb(38 67 91 / 6%);
}

.scenario-analysis-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 780;
  line-height: 1.28;
}

.scenario-analysis-subtitle {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: clamp(0.86rem, 1.15vw, 1rem);
  font-weight: 780;
  line-height: 1.4;
}

.scenario-analysis-copy {
  padding-inline-start: 24px;
  border-inline-start: 1px solid #dbe5ea;
}

.scenario-card {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.scenario-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
  font-weight: 760;
  line-height: 1.4;
}

.scenario-card-stat {
  min-width: 54px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #edf5f6;
  color: var(--public-july);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  direction: ltr;
}

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

.chapter-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #d6e0e7;
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgb(8 126 139 / 7%), transparent 55%),
    #fff;
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.chapter-card:hover {
  box-shadow: 0 12px 28px rgb(38 67 91 / 10%);
  transform: translateY(-2px);
}

.chapter-card span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.chapter-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.35;
}

.chapter-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.chapter-card b {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.8rem;
}

.methodology-section {
  max-width: 1100px;
  margin-inline: auto;
}

.long-form {
  padding: clamp(24px, 4vw, 46px);
}

.long-form p {
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.9;
}

.report-chart-stack {
  display: grid;
  gap: 22px;
}

.report-chart-stack > .report-chart-card {
  margin-top: 0;
}

.report-footer {
  display: flex;
  width: min(1480px, 100%);
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin: 34px auto 6px;
  padding: 21px 24px;
  border-top: 1px solid #d6e0e7;
  color: #617487;
  font-size: 0.78rem;
}

.report-footer img {
  width: 116px;
  height: auto;
}

.report-footer p {
  margin: 0;
}

.report-footer a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.screen-reader-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: 980px) {
  .charts-grid,
  .scenario-index {
    grid-template-columns: 1fr;
  }

  .intro-layout,
  .scenario-analysis {
    grid-template-columns: 1fr;
  }

  .scenario-analysis-copy {
    padding-inline-start: 0;
    padding-top: 18px;
    border-top: 1px solid #dbe5ea;
    border-inline-start: 0;
  }

  .chapter-index {
    grid-template-columns: 1fr;
  }

  .chart-card {
    min-height: auto;
  }

  .metric-card {
    min-height: 390px;
  }

  .pie-card {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 12px;
  }

  .hero {
    padding: 24px 20px 25px;
    border-radius: 17px;
  }

  .hero::before {
    width: 5px;
  }

  .institutional-header {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }

  .inss-logo {
    width: min(190px, 65vw);
  }

  .report-heading h1 {
    font-size: 1.5rem;
  }

  .report-heading p {
    font-size: 0.92rem;
  }

  .report-nav {
    gap: 5px;
    padding: 8px;
  }

  .report-nav a {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 0.74rem;
  }

  .report-nav .method-link {
    margin-inline-start: 0;
  }

  .hero-divider {
    margin-block: 22px 19px;
  }

  .scenario-title {
    font-size: 2.05rem;
  }

  .hero-description {
    margin-block: 14px 18px;
    font-size: 0.96rem;
  }

  .charts-grid {
    gap: 14px;
  }

  .chart-card {
    padding: 18px 15px;
    border-radius: 16px;
  }

  .report-section {
    margin-block: 20px;
    padding: 22px 16px;
    border-radius: 17px;
  }

  .report-chart-card {
    padding: 19px 14px;
  }

  .rank-scale {
    display: none;
  }

  .rank-group,
  .single-rank-row,
  .impact-comparison .rank-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rank-group {
    padding-block: 17px;
  }

  .rank-group h3,
  .single-rank-row h3 {
    font-size: 0.82rem;
  }

  .distribution-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .distribution-bar {
    height: 38px;
  }

  .card-header {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }

  .chart-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .card-header h2 {
    font-size: 1.04rem;
  }

  .survey-legend,
  .impact-legend {
    gap: 8px 13px;
  }

  .legend-item {
    font-size: 0.75rem;
  }

  .metric-card {
    min-height: 370px;
  }

  .metric-bars {
    inset-inline: 34px 4px;
    gap: 14px;
  }

  .metric-column {
    grid-template-rows: 25px minmax(145px, 1fr) 52px;
  }

  .metric-label {
    font-size: 0.69rem;
  }

  .distribution-card {
    min-height: 0;
  }

  .survey-distribution-chart {
    gap: 23px;
  }

  .impact-row {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 9px;
  }

  .impact-row h3 {
    font-size: 0.74rem;
  }

  .stacked-bar {
    height: 32px;
  }

  .stack-segment {
    font-size: 0.63rem;
  }

  .pie-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pie-chart-wrap {
    width: min(210px, 72vw);
  }

  .pie-slice-label {
    font-size: 0.76rem;
  }

  .pie-legend-item {
    padding: 8px 9px;
    font-size: 0.7rem;
  }

  .scenario-card {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 13px;
    padding: 19px 17px;
  }

  .scenario-card-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .scenario-card-stat {
    min-width: 48px;
    padding: 8px 7px;
    font-size: 0.88rem;
  }

  .report-footer {
    justify-content: flex-start;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  .page-shell {
    padding: 0;
  }

  .hero,
  .chart-card,
  .scenario-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .charts-grid {
    gap: 12px;
  }
}
