:root {
  --fresh-ink: #173247;
  --fresh-muted: #687780;
  --fresh-canvas: #f3f7f3;
  --fresh-panel: #fffefa;
  --fresh-line: #dce6df;
  --fresh-green: #4c9d71;
  --fresh-event: #f57c20;
  --fresh-camp: #1488dc;
  --fresh-program: #8468c7;
}

* { box-sizing: border-box; }

body.data-freshness-page {
  margin: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(76, 157, 113, 0.07), transparent 28%),
    var(--fresh-canvas);
  color: var(--fresh-ink);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
}

.freshness-main {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 38px 0 72px;
}

.freshness-hero,
.freshness-inventory {
  border: 1px solid rgba(23, 50, 71, 0.09);
  border-radius: 28px;
  background: var(--fresh-panel);
  box-shadow: 0 20px 55px rgba(31, 65, 50, 0.07);
}

.freshness-hero {
  position: relative;
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(38px, 7vw, 92px);
  overflow: hidden;
  padding: clamp(42px, 6vw, 70px);
  background:
    radial-gradient(circle at 92% 0, rgba(255, 196, 0, 0.13), transparent 31%),
    linear-gradient(135deg, #fffefa 0%, #fffefa 62%, #f4f9f6 100%);
}

.freshness-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--fresh-event), #f2bd25 36%, var(--fresh-green) 65%, var(--fresh-camp));
  content: "";
}

.freshness-kicker,
.freshness-section-kicker {
  margin: 0 0 11px;
  color: #39875f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.freshness-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
}

.freshness-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5eb581;
  box-shadow: 0 0 0 5px rgba(94, 181, 129, 0.13);
}

.freshness-hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--fresh-ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1;
}

.freshness-hero h1 em { color: var(--fresh-event); font-style: normal; }

.freshness-hero-copy > p:not(.freshness-kicker) {
  max-width: 620px;
  margin: 23px 0 0;
  color: var(--fresh-muted);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  line-height: 1.58;
}

.freshness-hero-summary {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  padding: 34px;
  background: var(--fresh-ink);
  color: #fff;
  box-shadow: 0 22px 48px rgba(23, 50, 71, 0.2);
}

.freshness-hero-summary::after {
  position: absolute;
  right: -54px;
  bottom: -62px;
  width: 190px;
  height: 190px;
  border: 38px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: "";
}

.freshness-hero-summary > p {
  margin: 0 0 17px;
  color: #b9d7c7;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.freshness-hero-status { display: flex; align-items: center; gap: 13px; }
.freshness-hero-status .material-symbols-outlined { color: #6ec291; font-size: 31px; }
.freshness-hero-status strong { max-width: 240px; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.05em; line-height: 1.08; }
.freshness-hero-summary > span { margin-top: 9px; color: #d7e3dc; font-size: 13px; font-weight: 850; }

.freshness-hero-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 31px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #c8d5ce;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.freshness-hero-meta .material-symbols-outlined { color: #6ec291; font-size: 17px; }

.freshness-inventory {
  margin-top: 34px;
  padding: clamp(30px, 4.7vw, 50px);
}

.freshness-inventory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.freshness-inventory-heading h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.freshness-section-intro {
  max-width: 670px;
  margin: 13px 0 0;
  color: var(--fresh-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.freshness-window-note {
  flex: 0 0 auto;
  margin: 0 0 5px;
  color: var(--fresh-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.freshness-window-note span { margin: 0 5px; color: var(--fresh-green); }
.freshness-chart-status { min-height: 0; }
.freshness-chart-status:not(:empty) { padding: 64px 20px; }

.freshness-year-chart-card {
  margin-top: 32px;
  border-top: 1px solid var(--fresh-line);
  border-bottom: 1px solid var(--fresh-line);
  padding: 27px 0 25px;
}

.freshness-year-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.freshness-chart-kicker { margin: 0 0 5px; color: var(--fresh-green); font-size: 10px; font-weight: 950; letter-spacing: 0.11em; text-transform: uppercase; }
.freshness-year-chart-head h3 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 24px; letter-spacing: -0.04em; }

.freshness-year-charts { margin-top: 20px; overflow: hidden; border: 1px solid var(--fresh-line); border-radius: 18px; background: #fbfcfa; }
.freshness-year-chart-panel { padding: 18px 20px 13px; }
.freshness-year-chart-panel + .freshness-year-chart-panel { border-top: 1px solid var(--fresh-line); }
.freshness-year-chart-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.freshness-year-chart-panel > header > div { display: flex; align-items: center; gap: 9px; }
.freshness-year-chart-panel > header i { width: 22px; height: 6px; border-radius: 99px; }
.freshness-year-chart-panel.is-event > header i { background: var(--fresh-event); }
.freshness-year-chart-panel.is-camp > header i { background: var(--fresh-camp); }
.freshness-year-chart-panel.is-program > header i { background: var(--fresh-program); }
.freshness-year-chart-panel h4 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; letter-spacing: -0.03em; }
.freshness-year-chart-panel > header span { color: var(--fresh-muted); font-size: 10px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.freshness-year-chart-scroll { margin-top: 4px; overflow-x: auto; overscroll-behavior-inline: contain; }
.freshness-year-chart { min-width: 940px; }
.freshness-year-chart svg { display: block; width: 100%; height: 240px; }
.freshness-year-bar { opacity: 0.9; }
.freshness-year-bar.is-event { fill: var(--fresh-event); }
.freshness-year-bar.is-camp { fill: var(--fresh-camp); }
.freshness-year-bar.is-program { fill: var(--fresh-program); }
.freshness-year-label { fill: #99a49e; font-size: 9px; }
.freshness-program-ongoing { display: inline-flex; align-items: baseline; gap: 5px; margin: 2px 0 5px 48px; border: 1px solid rgba(132, 104, 199, 0.24); border-radius: 99px; padding: 7px 10px; background: #f5f2fb; color: var(--fresh-muted); font-size: 11px; font-weight: 800; }
.freshness-program-ongoing b { color: var(--fresh-ink); font-size: 13px; font-weight: 950; }

.freshness-category-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--fresh-line);
  border-bottom: 1px solid var(--fresh-line);
}

.freshness-category-card {
  min-width: 0;
  padding: 28px 30px 30px;
}

.freshness-category-card:first-child { padding-left: 0; }
.freshness-category-card:last-child { padding-right: 0; }
.freshness-category-card + .freshness-category-card { border-left: 1px solid var(--fresh-line); }

.freshness-category-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.freshness-category-card header span {
  display: block;
  color: var(--fresh-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.freshness-category-card header strong {
  display: block;
  margin-top: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 35px;
  letter-spacing: -0.055em;
  line-height: 1;
}

.freshness-category-card header small {
  display: block;
  margin-top: 9px;
  color: var(--fresh-muted);
  font-size: 12px;
  font-weight: 750;
}

.freshness-category-card header small b { color: var(--fresh-ink); font-weight: 950; }
.freshness-category-card header i { width: 32px; height: 7px; margin-top: 4px; border-radius: 99px; }
.freshness-category-card.is-event header i,
.freshness-category-card.is-event .freshness-category-track i { background: var(--fresh-event); }
.freshness-category-card.is-camp header i,
.freshness-category-card.is-camp .freshness-category-track i { background: var(--fresh-camp); }
.freshness-category-card.is-program header i,
.freshness-category-card.is-program .freshness-category-track i { background: var(--fresh-program); }

.freshness-category-heading {
  margin: 25px 0 0;
  padding-top: 19px;
  border-top: 1px solid #e9efeb;
  color: #8a9690;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.freshness-category-bars { display: grid; gap: 12px; margin-top: 13px; }
.freshness-category-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.freshness-category-label span { overflow: hidden; color: var(--fresh-muted); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.freshness-category-label strong { color: var(--fresh-ink); font-size: 12px; font-weight: 950; }
.freshness-category-track { height: 6px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #edf2ef; }
.freshness-category-track i { display: block; width: var(--freshness-bar-width); height: 100%; border-radius: inherit; opacity: 0.82; }
.freshness-empty-category { margin: 0; color: var(--fresh-muted); font-size: 13px; font-weight: 750; }
.freshness-inventory-note { margin: 19px 0 0; color: #7e8983; font-size: 11px; font-weight: 750; line-height: 1.55; }

.freshness-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; color: var(--fresh-muted); font-size: 12px; font-weight: 850; }
.freshness-legend span { display: inline-flex; align-items: center; gap: 7px; }
.freshness-legend i { width: 18px; height: 4px; border-radius: 99px; }
.freshness-legend .is-event { background: var(--fresh-event); }
.freshness-legend .is-camp { background: var(--fresh-camp); }
.freshness-legend .is-program { background: var(--fresh-program); }
.freshness-grid-line { stroke: #e9efeb; stroke-width: 1; }
.freshness-axis-label { fill: #7a8981; font-family: "Nunito Sans", sans-serif; font-size: 11px; font-weight: 800; }
.freshness-month-label { fill: var(--fresh-ink); font-size: 11px; font-weight: 900; }
.freshness-chart-summary { margin-top: 9px; color: var(--fresh-muted); font-size: 11px; font-weight: 750; text-align: center; }

@media (max-width: 860px) {
  .freshness-hero { grid-template-columns: 1fr; }
  .freshness-hero-summary { min-height: 0; }
  .freshness-inventory-heading,
  .freshness-year-chart-head { align-items: flex-start; flex-direction: column; }
  .freshness-category-charts { grid-template-columns: 1fr; }
  .freshness-category-card,
  .freshness-category-card:first-child,
  .freshness-category-card:last-child { padding: 25px 0; }
  .freshness-category-card + .freshness-category-card { border-top: 1px solid var(--fresh-line); border-left: 0; }
}

@media (max-width: 620px) {
  .freshness-main { width: min(100% - 28px, 1180px); padding-top: 20px; }
  .freshness-hero { min-height: 0; border-radius: 23px; padding: 34px 23px 23px; }
  .freshness-hero h1 { font-size: 42px; }
  .freshness-hero-summary { padding: 25px; }
  .freshness-inventory { margin-top: 20px; border-radius: 23px; padding: 27px 19px; }
  .freshness-inventory-heading h2 { font-size: 32px; }
  .freshness-legend { gap: 12px; padding-inline: 4px; }
  .freshness-year-chart-panel { padding-inline: 13px; }
  .freshness-program-ongoing { margin-left: 35px; }
}
