:root {
  --paper: #f6f1e7;
  --panel: rgba(255, 252, 245, 0.86);
  --ink: #1f1811;
  --muted: #6f6356;
  --line: rgba(54, 38, 25, 0.12);
  --copper: #b64926;
  --copper-soft: #f0c3a1;
  --forest: #5d8a72;
  --slate: #2f4858;
  --sand: #cf9e6a;
  --shadow: 0 24px 60px rgba(58, 36, 19, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(182, 73, 38, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(93, 138, 114, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f4ec 0%, #efe4d0 100%);
}

.page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero-panel,
.panel,
.table-panel {
  background: var(--panel);
  border: 1px solid rgba(85, 59, 36, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel {
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -32% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 73, 38, 0.22), rgba(182, 73, 38, 0));
}

.eyebrow,
.kicker,
.department-mark,
.stamp,
.stat-card span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow,
.kicker,
.stamp,
.stat-card span {
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  align-items: end;
}

.department-mark {
  margin: 0 0 0.5rem;
  color: var(--copper);
  font-size: 0.85rem;
  font-weight: 700;
}

h1,
h2,
.stat-card strong,
.mix-ring-center {
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.96;
}

.hero-copy,
.panel-copy,
.hero-aside p,
.stat-card p,
.mix-legend span {
  color: var(--muted);
}

.hero-copy {
  max-width: 60ch;
  margin: 1.25rem 0 0;
  line-height: 1.7;
}

.hero-aside {
  padding: 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 248, 237, 0.92), rgba(243, 232, 213, 0.82));
  border: 1px solid rgba(182, 73, 38, 0.12);
}

.summary-grid,
.chart-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  padding: 1.4rem;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(85, 59, 36, 0.08);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 2rem;
}

.stat-card p {
  margin-bottom: 0;
}

.accent-copper { border-top: 5px solid var(--copper); }
.accent-forest { border-top: 5px solid var(--forest); }
.accent-slate { border-top: 5px solid var(--slate); }
.accent-sand { border-top: 5px solid var(--sand); }

.chart-grid {
  grid-template-columns: 1.05fr 1.2fr 0.95fr;
  align-items: start;
}

.panel,
.table-panel {
  padding: 1.4rem;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.panel-heading.compact {
  margin-bottom: 1rem;
}

.panel-heading h2 {
  margin: 0.15rem 0 0;
  font-size: 1.55rem;
}

.kicker {
  margin: 0;
}

.panel-copy {
  margin: 0;
  max-width: 24ch;
  text-align: right;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
  min-height: 320px;
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.bar-track {
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: end;
  padding: 0.35rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(47, 72, 88, 0.06), rgba(47, 72, 88, 0.12));
}

.bar-fill {
  width: 100%;
  border-radius: 18px;
  min-height: 18%;
  box-shadow: inset 0 -10px 18px rgba(255, 255, 255, 0.18);
}

.bar-value,
.bar-label,
.trend-label,
.trend-value,
th,
td,
.mix-legend strong,
.mix-legend span {
  font-size: 0.92rem;
}

.bar-label {
  text-align: center;
  font-weight: 700;
}

.trend-panel {
  overflow: hidden;
}

.trend-chart-shell {
  position: relative;
}

.trend-chart {
  width: 100%;
  height: auto;
  display: block;
}

.trend-axis {
  stroke: rgba(47, 72, 88, 0.28);
  stroke-width: 1.2;
}

.trend-area {
  fill: rgba(182, 73, 38, 0.13);
  stroke: none;
}

.trend-line {
  fill: none;
  stroke: var(--copper);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-point {
  fill: var(--paper);
  stroke: var(--copper);
  stroke-width: 3;
}

.trend-html-label,
.trend-html-value {
  position: absolute;
  transform: translateX(-50%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  pointer-events: none;
  white-space: nowrap;
}

.trend-html-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.trend-html-value {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.trend-label,
.trend-value {
  fill: var(--muted);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.trend-value {
  font-weight: 700;
  fill: var(--ink);
}

.mix-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.mix-ring {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto;
}

.mix-ring::after {
  content: "";
  position: absolute;
  inset: 26px;
  background: rgba(246, 241, 231, 0.96);
  border-radius: 50%;
}

.mix-ring-center {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
}

.mix-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.mix-legend li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.table-panel {
  margin-top: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.95rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr:hover {
  background: rgba(182, 73, 38, 0.04);
}

@media (max-width: 1120px) {
  .summary-grid,
  .chart-grid,
  .hero-grid,
  .mix-layout {
    grid-template-columns: 1fr;
  }

  .panel-copy {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1rem, 1200px);
    padding-top: 1rem;
  }

  .hero-panel,
  .panel,
  .table-panel,
  .stat-card {
    border-radius: 22px;
  }

  h1 {
    max-width: none;
  }

  .bar-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  th,
  td {
    min-width: 120px;
  }
}