:root {
  --bg-canvas: #f2e3cf;
  --bg-hero: #e0cdb3;
  --text-primary: #2b211c;
  --text-muted: #5c4a36;
  --text-subtle: #7d6551;
  --panel-dark: #2b160c;
  --panel-soft: #321d11;
  --accent: #d6803c;
  --accent-light: #f3bb88;
  --badge: #626235;
  --border-soft: rgba(57, 32, 20, 0.18);
  --shadow-panel: 0 44px 74px -44px rgba(25, 12, 6, 0.65);
  --shadow-card: 0 26px 60px -32px rgba(32, 18, 9, 0.45);
  --radius-xl: 48px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Source Sans 3", sans-serif;
  --font-mono: "Space Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.24), transparent 48%),
    radial-gradient(circle at 80% 0%, rgba(240, 217, 189, 0.28), transparent 58%), var(--bg-hero);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.brandmark {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brandmark span:first-child {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brandmark span:last-child {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

nav.primary-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

nav.primary-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

nav.primary-nav a.active {
  background: rgba(214, 128, 60, 0.15);
  color: var(--text-primary);
}

nav.primary-nav a:hover {
  background: rgba(214, 128, 60, 0.22);
  color: var(--text-primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.4rem;
  align-items: start;
  margin-bottom: 3.2rem;
}

.hero--split {
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: 0.04em;
  margin: 0;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 1.2rem 0 0;
  color: var(--text-muted);
}

.primary-cta {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent), #e89455);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 20px;
  font-size: 1rem;
  box-shadow: 0 22px 40px -26px rgba(165, 90, 30, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 44px -22px rgba(165, 90, 30, 0.45);
}

.hero-metrics {
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.hero-metrics li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}

.hero-metrics li span {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  min-width: 110px;
}

.hero-sidecard {
  background: linear-gradient(180deg, rgba(243, 227, 203, 0.96), rgba(227, 205, 176, 0.92));
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(57, 32, 20, 0.18);
  box-shadow: 0 28px 58px -36px rgba(32, 18, 9, 0.28);
  display: grid;
  gap: 1rem;
}

.traffic-light {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(49, 30, 14, 0.08);
  align-items: center;
}

.traffic-light-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(43, 33, 28, 0.55);
  min-height: 36px;
}

.traffic-light-item .traffic-light-lamp {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(43, 33, 28, 0.08);
  opacity: 0.35;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  min-width: 18px;
  min-height: 18px;
}

.traffic-light-item.active {
  color: var(--text-primary);
  font-weight: 600;
}

.traffic-light-item.active .traffic-light-lamp {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 6px 12px -4px rgba(43, 33, 28, 0.3);
}

.traffic-light-label {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  text-align: center;
}


@media (max-width: 720px) {
  .traffic-light {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
}

@media (max-width: 520px) {
  .traffic-light {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
  }

  .traffic-light-item {
    justify-content: flex-start;
    width: 100%;
  }

}

.traffic-light-lamp--red {
  background: linear-gradient(135deg, #d1493e, #a32020);
}

.traffic-light-lamp--amber {
  background: linear-gradient(135deg, #f4a941, #d57f06);
}

.traffic-light-lamp--green {
  background: linear-gradient(135deg, #3b9f61, #267c46);
}

.sidecard-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidecard-label {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.sidecard-sub {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-muted);
}

.sidecard-metric {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--panel-soft);
}

.sidecard-stats {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.sidecard-stats div {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.sidecard-stats dt {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-subtle);
  font-size: 0.7rem;
}

.sidecard-stats dd {
  margin: 0;
  font-weight: 600;
}

.sidecard-empty {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.trend-badge--up {
  background: rgba(47, 107, 77, 0.18);
  color: #2f6b4d;
}

.trend-badge--down {
  background: rgba(172, 68, 51, 0.18);
  color: #a13d2c;
}

.trend-badge--flat {
  background: rgba(57, 32, 20, 0.12);
  color: rgba(57, 32, 20, 0.8);
}

.card-trend {
  margin: 0.6rem 0;
}

.forecast-card {
  position: relative;
  background: var(--panel-dark);
  color: #f7ecdd;
  border-radius: var(--radius-xl);
  padding: 3rem 3.4rem 3.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-panel);
  overflow: visible;
}

.forecast-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), transparent 55%);
  pointer-events: none;
}

.forecast-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 3rem;
}

.chart-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 232, 211, 0.96) 100%);
  border-radius: 34px;
  padding: 2.4rem 2.2rem 7rem;
  border: 1px solid rgba(91, 57, 35, 0.12);
  position: relative;
  overflow: visible;
  z-index: 30;
}

.chart-surface .grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.chart-surface .grid-overlay::before,
.chart-surface .grid-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.chart-surface .js-plotly-plot,
.chart-surface .plotly-graph-div,
.chart-surface .plotly-container {
  position: relative;
  z-index: 40;
  overflow: visible !important;
}

.chart-surface .plotly-graph-div .hoverlayer {
  filter: drop-shadow(0 8px 16px rgba(34, 18, 9, 0.25));
}

.chart-surface .grid-overlay::before {
  border-radius: 22px;
  border: 1px solid rgba(91, 57, 35, 0.12);
}

.chart-surface .grid-overlay::after {
  border-radius: 22px;
  background-image: linear-gradient(to right, rgba(91, 57, 35, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 57, 35, 0.08) 1px, transparent 1px);
  background-size: 20% 100%, 100% 25%;
  opacity: 0.35;
}

.feature-term-wrapper {
  display: inline-flex;
  max-width: 100%;
}

.feature-term__label {
  display: inline-flex;
  align-items: center;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.feature-term__hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(214, 128, 60, 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: help;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.feature-term__hint:hover,
.feature-term__hint:focus-visible {
  background: rgba(214, 128, 60, 0.24);
  color: var(--text-primary);
  transform: translateY(-1px);
  outline: none;
}

.feature-term__hint > span[aria-hidden="true"] {
  line-height: 1;
}

.feature-term__tooltip {
  position: absolute;
  inset: auto auto calc(100% + 0.8rem) 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  color: var(--text-primary);
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(91, 57, 35, 0.16);
  box-shadow: 0 24px 36px -24px rgba(27, 14, 7, 0.45);
  min-width: 220px;
  max-width: 320px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 250;
  font-size: 0.85rem;
  text-align: left;
}

.feature-term__tooltip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.feature-term__tooltip span {
  display: block;
  line-height: 1.45;
  color: var(--text-muted);
}

.feature-term__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.97) transparent transparent transparent;
  filter: drop-shadow(0 6px 10px rgba(27, 14, 7, 0.2));
}

.feature-term__code {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-subtle);
}

.feature-term__hint:hover .feature-term__tooltip,
.feature-term__hint:focus-visible .feature-term__tooltip {
  opacity: 1;
  pointer-events: auto;
}

.forecast-card .feature-term__label {
  color: rgba(43, 33, 28, 0.92);
}

.forecast-card .feature-term__hint {
  color: rgba(43, 33, 28, 0.82);
  background: rgba(247, 236, 221, 0.35);
}

.forecast-card .feature-term__hint:hover,
.forecast-card .feature-term__hint:focus-visible {
  background: rgba(247, 236, 221, 0.48);
  color: rgba(43, 33, 28, 0.95);
}

.driver-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.driver-pill {
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(57, 32, 20, 0.12);
  box-shadow: 0 22px 44px -32px rgba(32, 18, 9, 0.18);
}

.driver-pill h4 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.driver-pill strong {
  display: block;
  font-size: 1.6rem;
  margin-top: 0.4rem;
  color: var(--panel-soft);
  word-break: break-word;
}

.driver-pill p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  word-break: break-word;
}

.driver-progress {
  margin-top: 0.6rem;
  height: 8px;
  background: rgba(98, 98, 53, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.driver-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #626235, #5E5F2F);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 2.6rem;
}

.mini-card {
  background: linear-gradient(180deg, rgba(243, 228, 207, 0.96), rgba(236, 214, 189, 0.92));
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  border: 1px solid #decbb5;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--panel-soft);
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.card-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-top: 1px dashed rgba(43, 33, 28, 0.12);
  border-bottom: 1px dashed rgba(43, 33, 28, 0.12);
}

.card-metric.card-metric--single {
  justify-content: center;
  padding: 1rem 0;
}

.card-metric.card-metric--single .metric-value {
  font-size: 1.8rem;
}

.card-metric.muted {
  color: var(--text-subtle);
}

.card-interval,
.sidecard-interval {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
  display: flex;
  gap: 0.35rem;
}

.band-value {
  font-weight: 600;
  color: var(--panel-soft);
}

.band-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(214, 128, 60, 0.12);
  color: var(--accent);
  cursor: help;
}

.popover-trigger {
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
}

.popover-content {
  display: none;
  position: absolute;
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: 320px;
  padding: 0.6rem 0.8rem;
  background: #fff;
  border: 1px solid rgba(43, 33, 28, 0.15);
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgba(43, 33, 28, 0.15);
  font-size: 0.85rem;
  line-height: 1.35;
  z-index: 5;
}

.band-popover:hover .popover-content,
.band-popover:focus-within .popover-content {
  display: block;
}

.metric-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--panel-soft);
}

.metric-value.accent {
  color: var(--accent);
}

.mini-card--today .card-title {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.snapshot-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.card-insights {
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin: 3.6rem 0 1rem;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 2rem 2.4rem;
  border: 1px solid rgba(57, 32, 20, 0.12);
  box-shadow: 0 32px 56px -36px rgba(32, 18, 9, 0.22);
}

.panel h3 {
  margin-top: 0;
  font-size: 1.4rem;
  font-family: var(--font-serif);
  letter-spacing: 0.03em;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(43, 33, 28, 0.08);
}

thead th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--text-subtle);
  background: rgba(214, 128, 60, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(214, 128, 60, 0.18);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.timeline {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(57, 32, 20, 0.12);
}

.timeline-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.timeline-item h4 {
  margin: 0.35rem 0;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline-block;
}

.swap-placeholder {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-style: italic;
}

footer.site-footer {
  margin-top: 4rem;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.2rem;
  margin-top: 3.2rem;
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  border: 1px solid rgba(57, 32, 20, 0.12);
  box-shadow: 0 28px 56px -38px rgba(32, 18, 9, 0.22);
}

.support-card {
  display: grid;
  gap: 1rem;
}

.support-price {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--panel-soft);
}

.support-price span {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-left: 0.4rem;
}

.support-delta {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}


.support-notes {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.support-notes div {
  background: rgba(214, 128, 60, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(214, 128, 60, 0.22);
  color: var(--text-muted);
  line-height: 1.5;
}

.support-notes span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

.insight-band {
  margin-top: 2.8rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.insight-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid rgba(57, 32, 20, 0.12);
  box-shadow: 0 24px 48px -34px rgba(32, 18, 9, 0.22);
}

.insight-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.insight-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tab-container {
  display: grid;
  gap: 1.4rem;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tab-button {
  border: 1px solid rgba(214, 128, 60, 0.35);
  background: rgba(214, 128, 60, 0.12);
  color: var(--panel-dark);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-button.active,
.tab-button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tab-panels {
  background: #faf3e7;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(57, 32, 20, 0.12);
  box-shadow: 0 24px 52px -34px rgba(32, 18, 9, 0.24);
}

.tab-panel {
  display: none;
  padding: 1.8rem 2rem;
}

.tab-panel.active {
  display: block;
}

.tab-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.tab-panel-column h4,
.tab-panel-column h5 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.tab-stat-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.tab-stat-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tab-stat-list .trend-badge {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.tab-metrics ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tab-table th,
.tab-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(43, 33, 28, 0.08);
  text-align: left;
}

.tab-table th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--text-subtle);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  header.site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }
}

/* Presentation */
.presentation-shell {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.slide-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 245, 0.8));
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-panel);
  border: 1px solid var(--border-soft);
  min-height: 900px;
  display: flex;
  flex-direction: column;
}

.slide-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slide-header {
  margin-bottom: 2rem;
}

.slide-header h1 {
  margin: 0.35rem 0 0.2rem;
  font-size: 2rem;
  font-family: var(--font-serif);
}

.slide-header .subtitle {
  margin-top: 0.25rem;
  color: var(--text-muted);
}

.slide-badge,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--panel-dark);
  color: #fff5e5;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.problem-card {
  background: rgba(255, 255, 255, 0.75);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.problem-card h3 {
  margin-top: 0;
  font-family: var(--font-serif);
}

.solution-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quote-block {
  background: rgba(43, 22, 13, 0.9);
  color: #f7ede0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.quote-block ul {
  margin: 0;
  padding-left: 1.5rem;
}

.quote-footnote {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.trend-highlight {
  font-weight: 600;
  color: var(--accent);
}

.question-card {
  border-left: 6px solid var(--accent);
  padding: 1rem 1.25rem;
  background: rgba(243, 187, 136, 0.15);
  border-radius: var(--radius-md);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.data-badge {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed var(--border-soft);
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.data-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(43, 22, 13, 0.1);
  background: rgba(214, 128, 60, 0.12);
  color: var(--panel-dark);
}

.data-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.data-icon--satellite {
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.8), transparent 60%),
    rgba(129, 198, 255, 0.45);
}

.data-icon--weather {
  background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.9), transparent 55%),
    rgba(255, 214, 153, 0.65);
}

.data-icon--acreage {
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.75), transparent 55%),
    rgba(169, 225, 177, 0.65);
}

.data-icon--market {
  background: radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.75), transparent 55%),
    rgba(255, 174, 189, 0.55);
}

.arrow-callout {
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
  text-align: center;
}

.training-list {
  padding-left: 1.2rem;
}

.chart-placeholder,
.table-placeholder,
.visualisation-wrapper {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(43, 22, 13, 0.3);
  background: rgba(255, 255, 255, 0.7);
}

.metrics-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(50, 29, 17, 0.85);
  color: #f6ede1;
}

.visualisation-wrapper ul {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
}

.delta-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.chart-note {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin: 0.4rem 0 0;
}

.chart-warning {
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(214, 128, 60, 0.18);
  color: var(--panel-dark);
  font-size: 0.85rem;
}

.plot-shell {
  margin: 1rem 0;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
}

.plot-shell iframe,
.plot-shell div {
  width: 100%;
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.driver-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.driver-panel-context h3 {
  margin: 0 0 0.4rem 0;
}

.driver-panel-context p {
  margin: 0 0 0.8rem 0;
  color: var(--text-muted);
}

.driver-panel-list {
  margin: 0;
  padding-left: 1.4rem;
  color: var(--text-primary);
}

.driver-panel-list li {
  margin: 0.35rem 0;
}

.driver-card {
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid rgba(43, 22, 13, 0.15);
  box-shadow: var(--shadow-card);
  background: rgba(255, 255, 255, 0.95);
}

.driver-card--up {
  border-color: rgba(0, 128, 64, 0.4);
}

.driver-card--down {
  border-color: rgba(214, 128, 60, 0.6);
}

.driver-weight {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.driver-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.driver-headline h3 {
  margin: 0.1rem 0;
}

.driver-category-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(22, 122, 198, 0.12);
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  margin-bottom: 0.2rem;
}

.driver-description {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0;
}

.lag-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.lag-pill {
  background: rgba(43, 33, 28, 0.08);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
}

.lag-inline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.driver-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.2rem 0;
}

.driver-direction {
  margin-top: 0.4rem;
  font-weight: 600;
}

.presentation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.presentation-table th,
.presentation-table td {
  border-bottom: 1px solid rgba(43, 33, 28, 0.08);
  padding: 0.75rem;
  vertical-align: top;
}

.presentation-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.presentation-table tr:nth-child(even) td {
  background: rgba(242, 227, 207, 0.28);
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.35rem 0;
}

.timing-grid {
  margin-top: 1rem;
}

.timing-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.timing-card.baseline {
  background: rgba(123, 96, 74, 0.9);
}

.timing-card.improvement {
  background: rgba(79, 120, 89, 0.92);
}
.feature-term {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

.plot-shell {
  margin: 1rem 0;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  animation: fadePlot 0.9s ease;
}

@keyframes fadePlot {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
