/* Components — alert cards, chart card, badges, page header. Flat surfaces,
   single-pixel borders, no drop shadows. Whitespace carries the layout. */

/* ============================================================
   Page header
   ============================================================ */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0 var(--space-4);
  border-bottom: 1px solid var(--athera-line);
}

.page-header-brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.olea-wordmark {
  font-family: var(--athera-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--athera-charcoal);
  letter-spacing: -0.01em;
  line-height: 1;
}
.olea-wordmark .accent { color: var(--athera-blue); }
.olea-subtitle {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-grey);
}

.page-header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.date-selector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.date-selector label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-grey);
}

/* Secondary nav row */
.sub-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--athera-line);
}
.sub-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.sub-nav a:hover,
.sub-nav a.active { color: var(--athera-charcoal); }
.sub-nav a.active {
  position: relative;
}
.sub-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -17px;
  height: 1px;
  background: var(--athera-blue);
}

/* ============================================================
   Section header (band title)
   ============================================================ */
.band {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: 1px solid var(--athera-line);
}
.band:last-child { border-bottom: none; }
.band-header { margin-bottom: var(--space-5); }
.band-header .label { display: block; margin-bottom: var(--space-2); }
.band-header h2 {
  font-family: var(--athera-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--athera-charcoal);
}
.band-header .band-context {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--athera-grey);
}

/* Info button + explanatory popover (Section 01 header). Flat surfaces,
   single-pixel border, one blue accent edge — no drop shadow. */
.band-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.info-popover-wrap {
  position: relative;
  display: inline-flex;
}
.info-button {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--athera-line);
  background: transparent;
  color: var(--athera-grey);
  font-family: var(--athera-display);
  font-style: italic;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.info-button:hover,
.info-button[aria-expanded="true"] {
  border-color: var(--athera-blue-deep);
  color: var(--athera-blue-deep);
}

.info-popover {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: 0;
  z-index: 30;
  width: 400px;
  max-width: 86vw;
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-top: 2px solid var(--athera-blue);
  border-radius: 2px;
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.info-popover[hidden] { display: none; }
.info-popover .label-blue {
  display: block;
  margin-bottom: var(--space-2);
}
.info-popover .label-blue + p { margin-top: 0; }
.info-popover p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--athera-charcoal-light);
  margin: 0 0 var(--space-3);
}
.info-popover ul {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-5);
  list-style: none;
}
.info-popover li {
  position: relative;
  font-size: 13px;
  line-height: 1.6;
  color: var(--athera-charcoal-light);
  margin-bottom: var(--space-2);
}
.info-popover li::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-4));
  top: 0.62em;
  width: 4px;
  height: 1px;
  background: var(--athera-blue);
}
.info-popover .label-blue:not(:first-child) {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--athera-line-light);
}
@media (max-width: 640px) {
  .info-popover { left: auto; right: 0; }
}

/* ============================================================
   Alert cards
   ============================================================ */
.alert-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  min-height: 220px;
}
.alert-card:hover {
  border-color: var(--athera-blue-deep);
  background: var(--athera-white);
}
.alert-card:focus-visible { outline-offset: -2px; }

.alert-severity {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.alert-severity .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--athera-grey-light);
}
.alert-severity.warning { color: var(--athera-blue-deep); }
.alert-severity.warning .dot { background: var(--athera-blue); }
.alert-severity.info    { color: var(--athera-grey); }
.alert-severity.info .dot    { background: var(--athera-grey-light); }
.alert-severity.critical { color: var(--athera-amber); }
.alert-severity.critical .dot { background: var(--athera-amber); }

.alert-headline {
  font-family: var(--athera-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--athera-charcoal);
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

.alert-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--athera-charcoal-light);
  margin-bottom: var(--space-4);
  flex: 1;
}

.alert-action {
  font-size: 12px;
  line-height: 1.55;
  color: var(--athera-grey);
  padding-top: var(--space-3);
  border-top: 1px solid var(--athera-line-light);
}
.alert-action .label-inline {
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--athera-grey-light);
  display: block;
  margin-bottom: var(--space-1);
}

/* Empty state — calm, neutral, full-width. Not celebratory. */
.alert-empty-card {
  background: var(--athera-off-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-7) var(--space-6);
  text-align: center;
}
.alert-empty-headline {
  font-family: var(--athera-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--athera-charcoal);
  line-height: 1.25;
  margin-bottom: var(--space-3);
}
.alert-empty-body {
  margin: 0 auto;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--athera-grey);
}

/* Disclosure — "[N] more items need attention" + expandable compact list. */
.alert-more {
  margin-top: var(--space-5);
}
.alert-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--athera-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--athera-blue-deep);
  cursor: pointer;
}
.alert-more-toggle .chevron {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--athera-blue-deep);
  transition: transform 0.2s ease;
}
.alert-more-toggle.open .chevron { transform: rotate(180deg); }

.alert-more-list {
  margin-top: var(--space-4);
  border-top: 1px solid var(--athera-line);
}
.alert-more-row {
  display: grid;
  grid-template-columns: 10px minmax(140px, 1fr) 2fr auto;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--athera-line-light);
  font-size: 12px;
  color: var(--athera-charcoal-light);
  transition: background 0.15s ease;
}
.alert-more-row:hover { background: var(--athera-off-white); }
.alert-more-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--athera-grey-light);
  align-self: center;
}
.alert-more-dot.warning { background: var(--athera-blue); }
.alert-more-dot.info    { background: var(--athera-grey-light); }
.alert-more-dot.critical { background: var(--athera-amber); }
.alert-more-headline {
  font-weight: 500;
  color: var(--athera-charcoal);
}
.alert-more-msg {
  color: var(--athera-grey);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alert-more-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--athera-blue-deep);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .alert-more-row { grid-template-columns: 10px 1fr auto; }
  .alert-more-msg { display: none; }
}

/* ============================================================
   Chart card
   ============================================================ */
.chart-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-6) var(--space-7) var(--space-7);
}
.chart-markers {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}
.chart-marker {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  color: var(--athera-grey);
}
.chart-marker .line {
  width: 16px; height: 1px;
}
.chart-canvas-wrap {
  position: relative;
  height: 320px;
  width: 100%;
}

/* ============================================================
   Quadrant cards (Band 3 — 2x2)
   ============================================================ */
.quadrant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-4);
}
.quadrant-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-6);
  cursor: pointer;
  transition: border-color 0.2s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.quadrant-card:hover { border-color: var(--athera-blue-deep); }

.quadrant-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.quadrant-name {
  font-family: var(--athera-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--athera-charcoal);
}
.quadrant-count {
  font-family: var(--athera-mono);
  font-size: 12px;
  color: var(--athera-grey);
}
.quadrant-subtitle {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.quadrant-items {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--athera-charcoal-light);
  line-height: 1.8;
}
.quadrant-items li {
  border-top: 1px solid var(--athera-line-light);
  padding-top: var(--space-2);
  margin-top: var(--space-2);
}
.quadrant-items li:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.quadrant-items .empty {
  color: var(--athera-grey-light);
  font-style: italic;
}

/* ============================================================
   States — skeleton, error, retry
   ============================================================ */
.skeleton {
  background: var(--athera-surface);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}
.skeleton-tall   { min-height: 360px; }
.skeleton-grid   { min-height: 380px; }
@keyframes skeleton-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.band-error {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.band-error p {
  margin: 0;
  font-size: 14px;
  color: var(--athera-charcoal-light);
}
.band-error .retry-button {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: transparent;
  color: var(--athera-charcoal);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.band-error .retry-button:hover { background: var(--athera-off-white); }

/* ============================================================
   Controls row — added in Session 5
   Used above the scatter (menu engineering) and in the item
   drilldown page header. Date picker, segment select, toggle.
   ============================================================ */
.controls-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.controls-row.right { justify-content: flex-end; }
.control-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.control-group label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.control-group select {
  font-family: var(--athera-sans);
  font-size: 13px;
  color: var(--athera-charcoal);
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-2) var(--space-3);
  transition: border-color 0.2s ease;
  min-width: 140px;
}
.control-group select:hover { border-color: var(--athera-grey-light); }
.control-group select:focus { border-color: var(--athera-blue-deep); outline: none; }

/* Toggle — added in Session 5.
   Inline switch used by "Show transitions only". */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.toggle-switch input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-switch .track {
  position: relative;
  width: 32px;
  height: 18px;
  background: var(--athera-mist);
  border-radius: 999px;
  transition: background 0.2s ease;
}
.toggle-switch .track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--athera-white);
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.toggle-switch input:checked + .track {
  background: var(--athera-blue);
}
.toggle-switch input:checked + .track::after {
  transform: translateX(14px);
}
.toggle-switch input:focus-visible + .track {
  outline: 2px solid var(--athera-blue-deep);
  outline-offset: 2px;
}
.toggle-switch .label-text {
  font-size: 12px;
  color: var(--athera-charcoal);
  letter-spacing: 0.04em;
}

/* ============================================================
   Scatter legend — added in Session 5
   Sits below the menu-engineering scatter chart.
   ============================================================ */
.scatter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--athera-line-light);
}
.scatter-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  color: var(--athera-charcoal-light);
}
.scatter-legend-item .swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.scatter-legend-item .line-swatch {
  width: 16px; height: 0;
  display: inline-block;
  flex-shrink: 0;
}
.scatter-legend-note {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--athera-grey);
  margin-top: var(--space-2);
}

/* Chart container variant that fills the full band — added in Session 5 */
.chart-canvas-wrap.tall { height: 520px; }

/* ============================================================
   Item drilldown — recipe + economics split — added in Session 5
   ============================================================ */
.split-two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 880px) {
  .split-two { grid-template-columns: 1fr; }
}

.recipe-card,
.economics-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-6);
}

.recipe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--athera-charcoal);
}
.recipe-table th,
.recipe-table td {
  padding: var(--space-3) var(--space-2);
  text-align: left;
  border-bottom: 1px solid var(--athera-line-light);
}
.recipe-table th {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
  border-bottom: 1px solid var(--athera-line);
}
.recipe-table td.num,
.recipe-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.recipe-table tfoot td {
  font-size: 13px;
  color: var(--athera-charcoal);
  border-top: 1px solid var(--athera-line);
  border-bottom: none;
  padding-top: var(--space-4);
}
.recipe-table tfoot .label-cell {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.recipe-table tfoot .total-row td {
  font-weight: 500;
  color: var(--athera-charcoal);
  border-top: 1px solid var(--athera-line);
}

/* Economics block — labelled rows on the right. */
.economics-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.economics-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--athera-line-light);
  font-size: 13px;
}
.economics-row .name {
  color: var(--athera-charcoal-light);
}
.economics-row .name .op {
  font-family: var(--athera-mono);
  color: var(--athera-grey-light);
  margin-right: var(--space-2);
  display: inline-block;
  width: 12px;
}
.economics-row .val {
  font-variant-numeric: tabular-nums;
  color: var(--athera-charcoal);
}
.economics-row.subtotal {
  border-top: 1px solid var(--athera-line);
  border-bottom: 1px solid var(--athera-line);
  margin-top: var(--space-2);
}
.economics-row.subtotal .name,
.economics-row.subtotal .val { font-weight: 500; color: var(--athera-charcoal); }
.economics-row.headline {
  border-top: 1px solid var(--athera-charcoal);
  border-bottom: none;
  padding-top: var(--space-4);
  margin-top: var(--space-3);
}
.economics-row.headline .name {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.economics-row.headline .val {
  font-family: var(--athera-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--athera-charcoal);
  line-height: 1;
}

/* ============================================================
   Segment bars — added in Session 5
   Section 3 of item drilldown.
   ============================================================ */
.segment-bars {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.segment-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: var(--space-4);
}
.segment-bar-row .name {
  font-size: 13px;
  color: var(--athera-charcoal);
}
.segment-bar-row .track {
  position: relative;
  height: 10px;
  background: var(--athera-surface);
  border-radius: 2px;
  overflow: hidden;
}
.segment-bar-row .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--athera-blue);
  transition: width 0.4s ease;
}
.segment-bar-row .val {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--athera-charcoal-light);
  text-align: right;
}
.segment-bar-row .val .share {
  color: var(--athera-grey);
  margin-left: var(--space-2);
}

/* Callout — Eggplant "popularity not margin" framing. */
.popularity-callout {
  background: var(--athera-white);
  border: 1px solid var(--athera-amber);
  border-left: 3px solid var(--athera-amber);
  border-radius: 2px;
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
}
.popularity-callout .label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--athera-amber);
}
.popularity-callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--athera-charcoal);
}

/* ============================================================
   Drilldown page header — item title, selector, back link
   added in Session 5
   ============================================================ */
.drilldown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6) 0 var(--space-4);
  border-bottom: 1px solid var(--athera-line);
  flex-wrap: wrap;
}
.drilldown-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.drilldown-title h1 {
  font-family: var(--athera-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--athera-charcoal);
}
.drilldown-title .meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.back-link {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.back-link:hover { color: var(--athera-charcoal); }


/* ============================================================
   Forces panel — added in Session 6
   Two-column grid of small-multiple commodity charts + right rail
   of scenario toggles. Charts are deliberately wide so the monthly
   x-axis has room to breathe.
   ============================================================ */
.forces-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 1080px) {
  .forces-layout { grid-template-columns: 1fr; }
}

.forces-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 720px) {
  .forces-grid { grid-template-columns: 1fr; }
}

.forces-mini {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-4) var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  cursor: pointer;
  transition: border-color 0.2s ease;
  min-height: 248px;
}
.forces-mini:hover { border-color: var(--athera-blue-deep); }
.forces-mini.focused {
  border: 2px solid var(--athera-blue-deep);
  padding: calc(var(--space-4) - 1px) calc(var(--space-4) - 1px) calc(var(--space-3) - 1px);
}
.forces-mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}
.forces-mini-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--athera-charcoal);
  letter-spacing: 0.02em;
}
.forces-mini-yend {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey);
}
.forces-mini-canvas-wrap {
  position: relative;
  height: 168px;
  width: 100%;
}
.forces-mini-foot {
  font-size: 11px;
  color: var(--athera-grey);
  margin-top: var(--space-1);
  letter-spacing: 0.04em;
}

/* Shock summary slot — final cell in the commodity grid. */
.forces-shock-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 248px;
}
.forces-shock-card h3 {
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.forces-shock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.forces-shock-list li {
  border-left: 2px solid var(--athera-amber);
  padding-left: var(--space-3);
}
.forces-shock-list .shock-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--athera-charcoal);
  display: block;
}
.forces-shock-list .shock-meta {
  font-size: 11px;
  color: var(--athera-grey);
  display: block;
  margin-top: var(--space-1);
}
.forces-shock-empty {
  font-size: 12px;
  color: var(--athera-grey-light);
  font-style: italic;
}

/* Affected items pop-in (right rail when a chart is clicked). */
.affected-items-panel {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.affected-items-panel .panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.affected-items-panel h3 {
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.affected-items-panel .close-x {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--athera-grey);
  cursor: pointer;
  padding: 0 var(--space-2);
  line-height: 1;
}
.affected-items-panel .close-x:hover { color: var(--athera-charcoal); }
.affected-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--athera-charcoal-light);
  line-height: 1.7;
}
.affected-items-list li {
  border-top: 1px solid var(--athera-line-light);
  padding-top: var(--space-2);
  margin-top: var(--space-2);
}
.affected-items-list li:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.affected-items-empty {
  font-style: italic;
  color: var(--athera-grey-light);
}

/* ============================================================
   Scenario rail — used by both forces.html and scenarios.html
   ============================================================ */
.scenario-rail {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-5);
  position: sticky;
  top: var(--space-4);
}
.scenario-rail h3 {
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
  margin: 0 0 var(--space-4);
}
.scenario-group {
  margin-bottom: var(--space-4);
}
.scenario-group:last-of-type { margin-bottom: var(--space-5); }
.scenario-group-label {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-blue-deep);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--athera-line-light);
  margin-bottom: var(--space-2);
}
.scenario-toggle {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  align-items: start;
  cursor: pointer;
}
.scenario-toggle input[type=checkbox] {
  margin-top: 4px;
  accent-color: var(--athera-blue-deep);
  width: 14px;
  height: 14px;
}
.scenario-toggle .body { display: flex; flex-direction: column; gap: 2px; }
.scenario-toggle .title {
  font-size: 13px;
  font-weight: 500;
  color: var(--athera-charcoal);
}
.scenario-toggle .desc {
  font-size: 11px;
  color: var(--athera-grey);
  line-height: 1.4;
}
.scenario-toggle .range {
  font-family: var(--athera-mono);
  font-size: 10px;
  color: var(--athera-grey-light);
  letter-spacing: 0.04em;
}

.scenario-apply,
.scenario-recompute,
.scenario-reset {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--athera-charcoal);
  color: var(--athera-white);
  border: 1px solid var(--athera-charcoal);
  border-radius: 2px;
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.scenario-apply:hover,
.scenario-recompute:hover { background: var(--athera-navy); border-color: var(--athera-navy); }
.scenario-apply:disabled,
.scenario-recompute:disabled,
.scenario-reset:disabled { opacity: 0.6; cursor: wait; }

.scenario-reset {
  background: transparent;
  color: var(--athera-charcoal);
  margin-top: var(--space-2);
}
.scenario-reset:hover { background: var(--athera-off-white); }

.scenario-rail .inline-error {
  margin-bottom: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(200, 149, 90, 0.08);
  border: 1px solid var(--athera-amber);
  border-radius: 2px;
  font-size: 12px;
  color: var(--athera-charcoal);
}
.scenario-rail .inline-error .retry-button {
  margin-top: var(--space-2);
  padding: 4px var(--space-3);
  background: transparent;
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--athera-charcoal);
}

/* ============================================================
   Scenarios simulator — two-column layout
   ============================================================ */
.scenarios-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 1080px) {
  .scenarios-layout { grid-template-columns: 1fr; }
}

.delta-callout {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.delta-cell .label {
  display: block;
  margin-bottom: var(--space-2);
}
.delta-cell .value {
  font-family: var(--athera-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--athera-charcoal);
  font-variant-numeric: tabular-nums;
}
.delta-cell.delta-pos .value { color: #3F7C57; }
.delta-cell.delta-neg .value { color: var(--athera-amber); }

.scenarios-charts {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.scenarios-chart-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-5) var(--space-6);
}
.scenarios-chart-card h3 {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-grey);
  margin: 0 0 var(--space-3);
}
.scenarios-chart-card .chart-canvas-wrap {
  height: 220px;
}

.scenarios-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--athera-line-light);
  font-size: 11px;
  color: var(--athera-grey);
  letter-spacing: 0.04em;
}

/* ============================================================
   Data Inspector — tab strip, data table, pagination, action row
   Added in Session 7.
   ============================================================ */
.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  border-bottom: 1px solid var(--athera-line);
  margin-bottom: var(--space-5);
}
.tab-button {
  background: transparent;
  border: 1px solid var(--athera-line);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  padding: var(--space-3) var(--space-4);
  font-family: var(--athera-mono);
  font-size: 12px;
  color: var(--athera-grey);
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-bottom: -1px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.tab-button:hover  { color: var(--athera-charcoal); background: var(--athera-off-white); }
.tab-button.active {
  color: var(--athera-charcoal);
  background: var(--athera-off-white);
  border-color: var(--athera-line);
}
.tab-button.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--athera-blue);
}

.inspector-panel {
  display: block;
}

.inspector-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.inspector-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--athera-charcoal);
  color: var(--athera-white);
  border: 1px solid var(--athera-charcoal);
  border-radius: 2px;
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.inspector-btn:hover    { background: var(--athera-navy); border-color: var(--athera-navy); }
.inspector-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.inspector-btn.inspector-btn-quiet {
  background: transparent;
  color: var(--athera-charcoal);
  border-color: var(--athera-line);
}
.inspector-btn.inspector-btn-quiet:hover {
  background: var(--athera-off-white);
  color: var(--athera-charcoal);
  border-color: var(--athera-grey-light);
}

.inspector-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--athera-line-light);
  min-height: 24px;
}
.inspector-filter-row:empty { display: none; }

.inspector-row-count {
  margin: 0 0 var(--space-3);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--athera-grey);
}

.inspector-table-wrap {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  overflow-x: auto;
}

.inspector-empty {
  margin: 0;
  padding: var(--space-7) var(--space-6);
  text-align: center;
  font-size: 13px;
  color: var(--athera-grey);
  font-style: italic;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--athera-charcoal);
  table-layout: auto;
}
.data-table thead th {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--athera-line);
  background: var(--athera-off-white);
  white-space: nowrap;
}
.data-table thead th.numeric { text-align: right; }
.data-table tbody td {
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--athera-line-light);
  vertical-align: top;
  white-space: nowrap;
}
.data-table tbody tr.zebra {
  background: var(--athera-off-white);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table td.mono-cell,
.data-table th.mono-cell {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-charcoal-light);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}
.pagination-btn {
  background: transparent;
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-2) var(--space-4);
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-charcoal);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pagination-btn:hover:not(:disabled) { background: var(--athera-off-white); border-color: var(--athera-grey-light); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination-info {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey);
  letter-spacing: 0.02em;
}

/* ============================================================
   2026 Strategic Outlook — added in Session 10.
   The strategic payoff page: year-in-review header, summary band
   (year in numbers + top moves), five recommendation sections,
   and a closing takeaway. Flat surfaces, one blue accent for
   positive impact, amber for below-target / modified-scenario.
   ============================================================ */

/* Header band */
.strategy-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-7);
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--athera-line);
  flex-wrap: wrap;
}
.strategy-hero .label-blue { display: block; margin-bottom: var(--space-3); }
.strategy-title {
  font-family: var(--athera-display);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--athera-charcoal);
}
.strategy-subtitle {
  margin: var(--space-3) 0 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--athera-grey);
}

/* Scenario-basis chip */
.basis-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  max-width: 320px;
}
.basis-chip .chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.basis-chip .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.basis-chip .chip.baseline {
  background: var(--athera-surface);
  color: var(--athera-grey);
  border: 1px solid var(--athera-line);
}
.basis-chip .chip.modified {
  background: rgba(200, 149, 90, 0.10);
  color: var(--athera-amber);
  border: 1px solid var(--athera-amber);
}
.basis-chip .basis-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--athera-grey);
  text-align: right;
  max-width: 300px;
}

/* Summary band */
.summary-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 980px) {
  .summary-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

.year-numbers { display: flex; flex-direction: column; gap: var(--space-6); }
.yn-stat { display: flex; flex-direction: column; gap: var(--space-2); }
.yn-value {
  font-family: var(--athera-display);
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
  color: var(--athera-charcoal);
  font-variant-numeric: tabular-nums;
}
.yn-value.below { color: var(--athera-amber); }
.yn-value.ok    { color: var(--athera-blue-deep); }
.yn-cap { font-size: 12px; color: var(--athera-grey); }
.yn-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  margin-top: var(--space-1);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.yn-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.yn-status.below { color: var(--athera-amber); }
.yn-status.ok    { color: var(--athera-blue-deep); }
.yn-secondary { display: flex; gap: var(--space-7); flex-wrap: wrap; }
.yn-secondary .yn-stat .yn-value { font-size: 28px; }

/* Top moves — the executive read */
.top-moves-head {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-grey);
  margin-bottom: var(--space-4);
}
.top-moves { display: flex; flex-direction: column; }
.top-move-row {
  display: grid;
  grid-template-columns: 44px 1fr auto 16px;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-2);
  border-top: 1px solid var(--athera-line-light);
  color: var(--athera-charcoal);
  transition: background 0.15s ease;
}
.top-move-row:first-child { border-top: 1px solid var(--athera-line); }
.top-move-row:last-child { border-bottom: 1px solid var(--athera-line); }
.top-move-row:hover { background: var(--athera-off-white); }
.top-move-rank {
  font-family: var(--athera-display);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: var(--athera-grey-light);
  font-variant-numeric: tabular-nums;
}
.top-move-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.top-move-title { font-size: 15px; font-weight: 500; color: var(--athera-charcoal); }
.top-move-tag { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--athera-grey-light); }
.top-move-impact {
  font-family: var(--athera-mono);
  font-size: 16px;
  color: var(--athera-blue-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.top-move-impact.strategic { color: var(--athera-grey); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.top-move-chevron {
  width: 7px; height: 7px;
  border-top: 1px solid var(--athera-grey-light);
  border-right: 1px solid var(--athera-grey-light);
  transform: rotate(45deg);
  justify-self: end;
}
.top-move-row:hover .top-move-chevron { border-color: var(--athera-blue-deep); }

/* Section description under each section header */
.section-desc { margin: var(--space-2) 0 0; font-size: 13px; color: var(--athera-grey); max-width: 64ch; }

/* Recommendation cards */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 880px) { .rec-grid { grid-template-columns: 1fr; } }

.rec-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-6);
  color: var(--athera-charcoal);
  transition: border-color 0.2s ease;
}
a.rec-card { cursor: pointer; }
a.rec-card:hover { border-color: var(--athera-blue-deep); }
.rec-card:focus-visible { outline-offset: -2px; }
.rec-card-title {
  font-family: var(--athera-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--athera-charcoal);
}
.rec-rationale {
  font-size: 14px;
  line-height: 1.6;
  color: var(--athera-charcoal-light);
  margin: 0;
}
.rec-evidence {
  display: block;
  padding-top: var(--space-3);
  border-top: 1px solid var(--athera-line-light);
  font-family: var(--athera-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--athera-grey);
}
.rec-evidence strong { color: var(--athera-charcoal); font-weight: 400; }

/* Seasonal feature list */
.feature-list { list-style: none; margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--athera-line-light); }
.feature-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--athera-line-light);
  font-size: 13px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .fl-name { color: var(--athera-charcoal); }
.feature-list .fl-vals { font-family: var(--athera-mono); font-size: 11px; color: var(--athera-grey); white-space: nowrap; }

/* Procurement action line */
.rec-action {
  font-size: 13px;
  line-height: 1.55;
  color: var(--athera-charcoal-light);
  padding-top: var(--space-3);
  border-top: 1px solid var(--athera-line-light);
}
.rec-action .label-inline {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
  margin-bottom: var(--space-1);
}

/* Projected impact — the visual anchor of each card */
.rec-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.rec-impact .ri-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
  margin-bottom: var(--space-2);
}
.rec-impact .ri-value {
  font-family: var(--athera-mono);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--athera-blue-deep);
  font-variant-numeric: tabular-nums;
}
.rec-impact.strategic .ri-value {
  font-family: var(--athera-sans);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: var(--athera-grey);
}

/* Confidence badge */
.conf-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
  white-space: nowrap;
}
.conf-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--athera-grey-light); }
.conf-badge.high .dot   { background: var(--athera-blue); }
.conf-badge.medium .dot { background: var(--athera-steel); }
.conf-badge.low .dot    { background: var(--athera-grey-light); }

/* Calm empty state for a category with no recommendations */
.rec-empty {
  background: var(--athera-off-white);
  border: 1px solid var(--athera-line);
  border-radius: 2px;
  padding: var(--space-6);
  font-size: 14px;
  color: var(--athera-grey);
}

/* Closing band — the mic-drop, in the display serif */
.strategy-closing {
  padding: var(--space-9) var(--space-5) var(--space-8);
  text-align: center;
  border-top: 1px solid var(--athera-line);
}
.strategy-closing .blue-rule {
  width: 48px; height: 1px;
  background: var(--athera-blue);
  margin: 0 auto var(--space-6);
}
.strategy-closing p {
  font-family: var(--athera-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--athera-charcoal);
  max-width: 46ch;
  margin: 0 auto;
}

/* Skeletons sized to their content so the load swap does not shift layout */
.sk-numbers { min-height: 240px; }
.sk-moves   { min-height: 360px; }
.sk-cards   { min-height: 220px; }
.sk-closing { min-height: 96px; max-width: 600px; margin: 0 auto; }
