/* Designer v2 — page layout panels (topic pages) */

.design-col-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  isolation: isolate;
}

.design-col-stack .design-panel--insight,
.design-col-stack .design-panel--profile {
  flex: 0 0 auto;
}

.design-panel__head--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.design-panel__headcopy {
  min-width: 0;
}

.design-panel__badge {
  flex: none;
  margin-top: 2px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #cbe6d6;
  background: var(--green-100);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-800);
  white-space: nowrap;
}

.design-panel__body--profile {
  padding-top: 14px;
  padding-bottom: 16px;
}

.design-grid--trend {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.design-panel--momentum {
  margin-top: 0;
}

.design-panel--wide .design-panel__body--chart,
.design-panel__body--chart {
  padding-top: 6px;
  padding-bottom: 12px;
}

.design-panel__body--chart .line-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.design-col-stack .design-panel--dark { flex: 0 0 auto; }

.design-col-stack .design-callout { margin-top: 16px; }

.design-col-stack .design-callout p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 550;
  color: rgba(255, 255, 255, .88);
}

.design-col-stack .design-callout strong { display: none; }

[hidden] {
  display: none !important;
}

/* --- Section blocks (flat header + panel grid, no card wrapper) --------- */
.design-block {
  display: grid;
  gap: 14px;
}

.design-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.design-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.design-block__title .tick {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--green-600);
  flex: none;
}

.design-block__title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--green-900);
}

.design-block__sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.design-panel__body--donut .design-donut-wrap--compact {
  grid-template-columns: 128px 1fr;
}

.design-panel__body--chart {
  padding-top: 8px;
  padding-bottom: 10px;
}

.design-panel__body--chart .line-chart {
  width: 100%;
  overflow: visible;
}

.design-panel--chart-live {
  overflow: visible;
}

.design-panel--chart-live .design-panel__body--chart {
  overflow: visible;
}

.line-chart--interactive {
  position: relative;
  cursor: crosshair;
  touch-action: pan-y;
}

.line-chart__tooltip {
  position: absolute;
  z-index: 2;
  min-width: 112px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0e774b;
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 119, 75, .22);
  pointer-events: none;
  white-space: nowrap;
  display: grid;
  gap: 2px;
}

.line-chart__tooltip strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

.line-chart__tooltip span {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.line-chart__crosshair {
  stroke: rgba(14, 119, 75, .28);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.line-chart--interactive .series-dot.is-active,
.line-chart--interactive .series-dot-halo.is-active {
  filter: drop-shadow(0 2px 6px rgba(14, 119, 75, .28));
}

.design-panel__body--chart .line-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.design-panel__head h3:only-child {
  margin: 0;
}

/* --- Value chain stat cards (clean white, no fill colours) ------------ */
.design-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.design-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 14px;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 108px;
}

.design-stat-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.design-stat-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

.design-stat-card__value {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--green-900);
}

.design-stat-card__share {
  font-size: 11px;
  color: var(--muted);
}

.design-section-foot {
  margin-top: 2px;
  padding-top: 0;
  text-align: center;
}

@media (max-width: 1100px) {
  .design-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .design-panel__body--donut .design-donut-wrap--compact {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .design-panel__head--split {
    flex-direction: column;
    align-items: stretch;
  }

  .design-panel__badge {
    align-self: flex-start;
  }

  .design-gender__bar .design-gender__seg {
    font-size: 10px;
    padding: 0 6px;
  }
}

/* --- KPI strip — scaled to match home page density -------------------- */
.page-topic .design-kpis {
  gap: 6px;
}

.page-topic .design-kpi {
  padding: 10px 12px 9px;
  min-height: 0;
  border-radius: 9px;
}

.page-topic .design-kpi__label {
  font-size: 9px;
  margin-bottom: 5px;
}

.page-topic .design-kpi__value {
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 820;
  letter-spacing: -.03em;
  color: var(--ink);
}

.page-topic .design-kpi__meta,
.page-topic .design-kpi__delta {
  font-size: 10px;
  margin-top: 6px;
}

.page-topic .design-grid {
  gap: 12px;
}

.page-topic .design-panel {
  border-radius: var(--r-lg);
}

.page-topic .design-panel__head {
  padding: 10px 14px 8px;
}

.page-topic .design-panel__head h3 {
  font-size: 13.75px;
}

.page-topic .design-panel__sub {
  font-size: 11px;
  margin-top: 4px;
}

.page-topic .design-panel__body {
  padding: 12px 14px 14px;
}

.page-topic .design-panel__foot {
  padding: 9px 14px 11px;
}

.page-topic .design-panel__link {
  font-size: 10px;
}

.page-topic a.design-panel__link {
  text-decoration: none;
  cursor: pointer;
}

.page-topic a.design-panel__link:hover {
  text-decoration: underline;
}

.page-topic .page-jump-target,
.page-topic .topic-directory-block[id] {
  scroll-margin-top: 72px;
}

.page-topic .design-stat-card {
  padding: 11px 13px 10px;
  min-height: 0;
  border-radius: 9px;
}

.page-topic .design-stat-card__label {
  font-size: 9px;
}

.page-topic .design-stat-card__value {
  font-size: clamp(12.5px, 0.95vw, 15px);
  font-weight: 820;
  color: var(--ink);
}

.page-topic .design-stat-card__share {
  font-size: 10px;
}

.page-topic .design-block {
  gap: 10px;
}

.page-topic .design-block__title h3 {
  font-size: 13.75px;
}

.page-topic .design-block__title .tick {
  height: 16px;
}

.page-topic .design-block__sub {
  font-size: 11px;
}

.page-topic .design-insight {
  padding: 14px 16px 13px;
}

.page-topic .design-insight__lead {
  font-size: 13px;
  margin-bottom: 8px;
}

.page-topic .design-insight__body {
  font-size: 12.5px;
  margin-bottom: 14px;
}

.page-topic .design-insight__foot {
  font-size: 9px;
}

.page-topic .design-momentum {
  padding: 14px 16px 15px;
}

.page-topic .design-momentum__eyebrow {
  font-size: 9px;
}

.page-topic .design-momentum__title {
  font-size: 13.75px;
  margin-bottom: 12px;
}

.page-topic .design-momentum__stat-label {
  font-size: 9px;
}

.page-topic .design-momentum__stat-value {
  font-size: clamp(14px, 1.1vw, 17px);
}

.page-topic .design-momentum__foot {
  font-size: 11px;
}

.page-topic .design-stat-duo {
  margin-top: 12px;
  padding-top: 12px;
}

.page-topic .design-stat-duo__label {
  font-size: 9px;
}

.page-topic .design-stat-duo__value {
  font-size: 15px;
  font-weight: 820;
}

.page-topic .design-stat-duo__note {
  font-size: 10px;
}

.page-topic .design-gender__bar--labeled {
  height: 28px;
}

.page-topic .design-gender__bar .design-gender__seg {
  font-size: 10px;
}

.page-topic .design-gender__counts {
  font-size: 11px;
}

.page-topic .design-panel__badge {
  padding: 6px 11px;
  font-size: 9px;
}

.page-topic .design-donut {
  min-height: 160px;
}

.page-topic .design-donut-wrap {
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 22px;
}

.page-topic .design-donut svg {
  max-width: 172px;
}

.page-topic .design-legend-list {
  gap: 6px;
  font-size: 11px;
}

.page-topic .design-legend-list .share {
  font-size: 10px;
}

.page-topic .design-legend-list--share {
  gap: 12px;
  font-size: 13px;
}

.page-topic .design-legend-list--share .share {
  font-size: 15px;
}

.page-topic .design-table {
  font-size: 11px;
}

.page-topic .design-table th {
  font-size: 9px;
  padding: 6px 8px;
}

.page-topic .design-table td {
  padding: 8px;
}

.design-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Public-view rules can withhold a card, so the band follows the surviving
   count instead of leaving an empty slot in a fixed four-column grid. */
.design-kpis[data-kpi-count="1"] { grid-template-columns: minmax(0, 320px); }
.design-kpis[data-kpi-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.design-kpis[data-kpi-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.design-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px 16px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.design-kpi__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.design-kpi__value {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--green-900);
}

.design-kpi__meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.design-kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--green-600);
}

.design-kpi__delta.is-down { color: #c2410c; }

/* --- Panel grid ------------------------------------------------------- */
.design-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.design-grid--1 { grid-template-columns: minmax(0, 1fr); }
.design-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.design-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.design-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.design-grid--1 > .design-panel {
  max-width: 560px;
}

/* Equal-height row — top dashboard band */
.design-grid--equal {
  align-items: stretch;
}

.design-grid--equal > .design-panel,
.design-grid--3 > .design-panel,
.design-grid--2 > .design-panel,
.design-grid--hero > .design-panel {
  height: 100%;
}

.design-grid > .design-panel .design-panel__body {
  flex: 1 1 auto;
}

.design-grid--equal > .design-col-stack,
.design-grid--3 > .design-col-stack {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.design-grid--equal .design-col-stack .design-panel--profile {
  flex: 1 1 auto;
  min-height: 0;
}

.design-grid--equal .design-col-stack .design-panel--profile .design-panel__body--profile {
  flex: 1 1 auto;
}

.design-grid--equal .design-col-stack .design-panel--insight {
  flex: 0 0 auto;
}

.design-grid--equal .design-donut-wrap {
  align-items: start;
  align-content: start;
  min-height: 0;
}

.design-grid--equal .design-panel--momentum {
  height: 100%;
}

.design-grid--equal .design-panel--momentum .design-momentum {
  flex: 1 1 auto;
  min-height: 100%;
}

.design-grid--equal .design-panel__body--chart {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.design-grid--hero {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.design-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.design-panel--dark {
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  border-color: transparent;
  color: #fff;
}

.design-panel--beige {
  background: #f3f0e8;
  border-color: #e6e0d4;
}

.design-panel__head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line-2);
}

.design-panel--dark .design-panel__head {
  border-bottom-color: rgba(255, 255, 255, .12);
}

.design-panel__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--green-900);
  letter-spacing: -.01em;
}

.design-panel--dark .design-panel__head h3 { color: #fff; }

.design-panel__sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.design-panel--dark .design-panel__sub { color: rgba(255, 255, 255, .62); }

.design-panel__body {
  padding: 16px 18px 18px;
  flex: 1 1 auto;
}

.design-panel__foot {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line-2);
  margin-top: auto;
}

.design-panel--dark .design-panel__foot { border-top-color: rgba(255, 255, 255, .1); }

.design-panel__link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-600);
}

.design-panel--dark .design-panel__link { color: var(--gold-light); }

/* --- Donut + legend list (PDF style) ---------------------------------- */
.design-donut-wrap {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: center;
}

.design-donut { min-height: 148px; display: grid; place-items: center; }

.design-panel__body:has(> .design-donut-wrap) {
  display: grid;
  align-content: center;
}

.design-legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.design-legend-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-2);
}

.design-legend-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.design-legend-list .val { font-weight: 700; color: var(--ink); }
.design-legend-list .share { color: var(--muted); font-size: 11px; }

/* With the count withheld, the share is the value — size it like one. */
.design-legend-list--share li {
  grid-template-columns: 10px minmax(0, 1fr) auto;
  font-size: 13px;
}

.design-legend-list--share .share {
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
}

/* --- County rank table ------------------------------------------------ */
.design-table-wrap { overflow: auto; }

.design-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.design-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #fafcfb;
}

.design-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}

.design-table .rank {
  width: 28px;
  color: var(--muted);
  font-weight: 650;
}

.design-table .num,
.design-table .share {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.design-table tr:hover td { background: rgba(14, 119, 75, .04); }

/* --- Gender split bar ------------------------------------------------- */
.design-gender {
  display: grid;
  gap: 10px;
}

.design-gender__bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line-2);
}

.design-gender__bar--labeled {
  height: 34px;
  border-radius: 8px;
}

.design-gender__bar .design-gender__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 0;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.design-gender__seg--male {
  background: #0e774b;
  color: #fff;
}

.design-gender__seg--female {
  background: #c8a036;
  color: var(--green-900);
}

.design-gender__counts {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.design-gender__labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.design-gender__labels strong {
  display: block;
  font-size: 18px;
  color: var(--green-900);
  margin-top: 2px;
}

.design-stat-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

.design-stat-duo__item {
  border-top: none;
  padding-top: 0;
}

.design-stat-duo__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.design-stat-duo__value {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-900);
}

.design-stat-duo__note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.design-callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: #fff;
}

.design-callout strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.design-callout p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}

/* --- Age profile insight card (design v2) ----------------------------- */
.design-insight {
  padding: 20px 22px 18px;
}

.design-insight__lead {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
  color: #fff;
}

.design-insight__lead em {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 800;
}

.design-insight__body {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  color: #fff;
}

.design-insight__foot {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.design-panel--insight {
  overflow: hidden;
}

/* --- Horizontal region bars ------------------------------------------- */
.design-hbar-list { display: grid; gap: 10px; }

.design-hbar-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.design-hbar-row__track {
  height: 10px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}

.design-hbar-row__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-600);
}

.design-hbar-row__value {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* --- Season / vertical bar chart (CSS) -------------------------------- */
.design-vbars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  min-height: 180px;
  padding-top: 8px;
}

.design-vbar {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.design-vbar__col {
  width: 100%;
  max-width: 56px;
  border-radius: 8px 8px 4px 4px;
  background: var(--green-600);
  min-height: 8px;
}

.design-vbar__col.is-gold { background: var(--gold); }
.design-vbar__col.is-muted { background: #c8d2d0; }

.design-vbar__value {
  font-size: 11px;
  font-weight: 800;
  color: var(--green-900);
  text-align: center;
}

.design-vbar__label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}

.design-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* --- Momentum dark panel ---------------------------------------------- */
.design-momentum {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
}

.design-momentum__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 8px;
}

.design-momentum__title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 750;
  color: #fff;
}

.design-momentum__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: auto;
}

.design-momentum__stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
}

.design-momentum__stat-value {
  display: block;
  margin-top: 4px;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
}

.design-momentum__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}

/* --- Fertilizer split banner ------------------------------------------ */
.design-split-banner {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  min-height: 54px;
}

.design-split-banner__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
}

.design-split-banner__seg--plant { background: var(--green-800); }
.design-split-banner__seg--top { background: var(--gold); color: var(--green-950); }

.design-split-banner__seg strong {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

/* --- Formulation list ------------------------------------------------- */
.design-formula-list { display: grid; gap: 12px; }

.design-formula-list__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.design-formula-list__note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

.design-formula-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  font-size: 12px;
}

.design-formula-row__label {
  color: var(--ink-2);
  font-weight: 600;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.design-formula-row__share {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}

.design-formula-row__value { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.page-subsidy--fertilizer .fert-type-split {
  margin-top: 16px;
}

.page-subsidy--fertilizer .design-split-banner__seg {
  min-width: 9rem;
}

/* Compact allocation → redemption flow */
.fert-flow__card {
  background: #fff;
  border: 1px solid #d4dfda;
  border-radius: 16px;
  padding: 16px 18px 14px;
  box-shadow: 0 6px 20px rgba(15, 51, 57, .05);
}

.fert-flow__head {
  margin-bottom: 12px;
}

.fert-flow__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: var(--green-900);
  letter-spacing: -.01em;
}

.fert-flow__head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.fert-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}

.fert-pipeline__step {
  flex: 1 1 140px;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f8f6;
  border: 1px solid #e2ebe7;
}

.fert-pipeline__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b8287;
}

.fert-pipeline__value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -.02em;
  line-height: 1.15;
}

.fert-pipeline__rate {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #0e774b;
}

.fert-pipeline__arrow {
  flex: 0 0 18px;
  align-self: center;
  width: 18px;
  height: 18px;
  margin: 0 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%2394a3b8' d='M6.5 3.5L12 9l-5.5 5.5-.9-.9L10.2 9 5.6 4.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.fert-mix {
  margin-top: 10px;
}

.fert-mix__bar {
  display: flex;
  min-height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d4dfda;
}

.fert-mix__seg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding: 8px 14px;
  color: #fff;
}

.fert-mix__seg strong {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .9;
}

.fert-mix__seg em {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fert-mix__seg--plant {
  background: #0e774b;
}

.fert-mix__seg--top {
  background: #d97706;
  color: #1c1917;
}

.fert-mix__seg--top strong {
  color: #1c1917;
  opacity: .75;
}

.fert-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8efeb;
}

.topic-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8efeb;
}

.fert-notes__item,
.topic-notes__item {
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
}

.fert-notes__item strong,
.topic-notes__item strong {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #6b8287;
}

@media (max-width: 760px) {
  .fert-pipeline__arrow {
    display: none;
  }

  .fert-pipeline {
    gap: 8px;
  }

  .fert-mix__bar {
    flex-direction: column;
  }

  .fert-notes,
  .topic-notes {
    grid-template-columns: 1fr;
  }
}

.design-formula-row__track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}

.design-formula-row__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.design-formula-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.design-formula-total dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.design-formula-total dd {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-900);
}

/* --- Monthly vbars (fertilizer) --------------------------------------- */
.design-month-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 220px;
  padding: 8px 4px 0;
}

.design-month-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.design-month-bar__value {
  font-size: 10px;
  font-weight: 700;
  color: var(--green-800);
}

.design-month-bar__col {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: var(--green-600);
  min-height: 6px;
}

.design-month-bar__col.is-plant { background: var(--green-700); }
.design-month-bar__col.is-top { background: var(--gold); }
.design-month-bar__col.is-gap { background: #d7ddd9; }

.design-month-bar__label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 650;
}

/* --- Seeds programme charts (NFSP-style) ------------------------------- */
.page-subsidy--seeds .seed-chart-legend {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(100%, 220px);
}

.page-subsidy--seeds .design-panel__head--split .design-panel__headcopy {
  min-width: 0;
}

.page-subsidy--seeds .stacked-vchart svg,
.page-subsidy--seeds .combo-vchart svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-subsidy--seeds .chart-placeholder {
  margin: 24px 0 8px;
  padding: 28px 16px;
  border-radius: 12px;
  border: 1px dashed #c5d4ce;
  background: #f7faf8;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.design-insight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.design-insight-list li {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
  padding-left: 14px;
  position: relative;
}

.design-insight-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold-light);
}

.design-gap-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  min-height: 120px;
  padding-top: 8px;
}

.design-gap-col {
  text-align: center;
}

.design-gap-col__bar {
  width: 100%;
  max-width: 72px;
  margin: 0 auto 8px;
  border-radius: 8px 8px 2px 2px;
  background: var(--green-700);
}

.design-gap-col__bar.is-gold { background: var(--gold); }

.design-gap-col__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.design-gap-col__value {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-900);
}

/* --- Executive analytical compositions ------------------------------- */
.topic-grid--executive-three {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .78fr) minmax(270px, .68fr);
  align-items: stretch;
}

.topic-grid--executive-wide {
  grid-template-columns: minmax(0, 1.65fr) minmax(285px, .72fr);
  align-items: stretch;
}

/* --- Subject-led story layouts --------------------------------------- */
.topic-story-grid {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(430px, 1.34fr) minmax(285px, .78fr);
  gap: 16px;
  align-items: stretch;
}

.topic-story-grid--table-first {
  grid-template-columns: minmax(470px, 1.45fr) minmax(255px, .72fr) minmax(285px, .78fr);
}

.topic-story-grid--chart-first {
  grid-template-columns: minmax(430px, 1.36fr) minmax(255px, .72fr) minmax(285px, .78fr);
}

.topic-story-grid > * {
  min-width: 0;
  height: 100%;
}

.topic-story-panel {
  box-shadow: 0 4px 18px rgba(28, 59, 65, .045);
}

.topic-story-panel .tile__head {
  min-height: 52px;
  padding: 15px 18px 13px;
  background: #fff;
}

.topic-story-panel .tile__head h4 {
  color: #244c58;
  font-size: 13px;
  letter-spacing: -.012em;
}

.topic-story-panel .tile__body {
  padding: 18px;
}

.topic-story-panel--donut .tile__body {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 318px;
}

.topic-story-panel--donut .donut {
  min-height: 168px;
}

.topic-story-panel--table .tile__body {
  padding: 0;
}

.topic-story-panel--feature .tile__body--bars {
  padding: 20px 22px 22px;
  min-height: 318px;
}

.topic-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 16px;
  align-items: stretch;
}

.topic-support-grid > * { min-width: 0; }

/* Agripreneur command view: one dominant activity signal, then deployment. */
.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(330px, .68fr);
  gap: 16px;
  align-items: stretch;
}

.command-grid > * { min-width: 0; height: 100%; }

.command-chart {
  border-top: 4px solid #168bc0;
  background: linear-gradient(180deg, #fff 0%, #fbfdfe 100%);
}

.command-chart .tile__head {
  background: #fff;
}

.command-chart .tile__body {
  display: grid;
  align-items: center;
  min-height: 305px;
  padding: 18px 22px 8px;
}

.command-chart .chartbox svg {
  display: block;
  width: 100%;
}

.command-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #60747a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.command-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #13a163;
  box-shadow: 0 0 0 4px rgba(19,161,99,.12);
}

.command-pulse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: #f5f8f7;
}

.command-pulse__metric {
  display: grid;
  gap: 4px;
  padding: 15px 20px 16px;
  border-right: 1px solid var(--line);
}

.command-pulse__metric:last-child { border-right: 0; }

.command-pulse__metric span {
  color: #78878a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.command-pulse__metric strong {
  color: var(--brand-primary);
  font-size: clamp(19px, 1.7vw, 27px);
  line-height: 1;
}

.command-pulse__metric small {
  color: #78878a;
  font-size: 9px;
  line-height: 1.4;
}

.topic-support-grid--deployment {
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
}

.regional-readout .tile__body {
  display: grid;
  align-content: center;
  min-height: 300px;
  padding: 22px;
}

.regional-readout__note {
  padding: 14px 18px;
  border-top: 1px solid #d8ddda;
  background: #f0ede4;
  color: #687679;
  font-size: 9.5px;
  line-height: 1.55;
}

/* A narrow story column cannot carry a full share chart. Keep it legible. */
.topic-story-grid--chart-first > .topic-story-panel--table .executive-table__headrow,
.topic-story-grid--chart-first > .topic-story-panel--table .executive-table__row {
  grid-template-columns: minmax(110px, 1fr) minmax(70px, auto);
}

.topic-story-grid--chart-first > .topic-story-panel--table .executive-table__headrow span:nth-child(3),
.topic-story-grid--chart-first > .topic-story-panel--table .executive-table__share {
  display: none;
}

.topic-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  height: 100%;
}

.topic-stat-strip .network-stat,
.topic-stat-strip .ledger-metric {
  min-height: 118px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.topic-stat-strip .network-stat:last-child,
.topic-stat-strip .ledger-metric:last-child { border-right: 0; }

.topic-stat-strip .network-stat {
  display: grid;
  place-content: center;
  gap: 7px;
}

.topic-stat-strip .network-stat__value {
  color: var(--brand-primary);
  font-size: clamp(24px, 2.1vw, 34px);
}

.topic-stat-strip .ledger-metric {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 20px;
  text-align: center;
}

.topic-stat-strip .ledger-metric__value {
  color: var(--brand-primary);
  font-size: clamp(24px, 2.1vw, 34px);
}

.topic-stat-strip .ledger-metric__label { font-size: 11px; }

/* Compact ranked table used in the first executive screen. */
.executive-table {
  display: grid;
  min-height: 100%;
  background: #fff;
}

.executive-table__headrow,
.executive-table__row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(82px, auto) minmax(120px, .72fr);
  gap: 14px;
  align-items: center;
}

.executive-table__headrow {
  min-height: 38px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
  color: #7a8588;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.executive-table__headrow span:nth-child(2),
.executive-table__headrow span:nth-child(3) { text-align: right; }

.executive-table__row {
  min-height: 45px;
  padding: 6px 18px;
  border-bottom: 1px solid #edf0ed;
}

.executive-table__row:last-child { border-bottom: 0; }

.executive-table__county {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}

.executive-table__county i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e6f1eb;
  color: #176549;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.executive-table__county b {
  overflow: hidden;
  color: #294c55;
  font-size: 11.5px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-table__county small {
  color: #8a9395;
  font-size: 8.5px;
  line-height: 1.2;
}

.executive-table__value {
  color: var(--brand-primary);
  font-size: 11.5px;
  text-align: right;
}

.executive-table__share {
  display: grid;
  grid-template-columns: minmax(54px, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.executive-table__share > i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eeeb;
}

.executive-table__share > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e7b75, #c3a23c);
}

.executive-table__share em {
  color: #747f82;
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

.topic-grid--executive-three > .tile,
.topic-grid--executive-wide > .tile {
  min-width: 0;
  height: 100%;
  box-shadow: 0 2px 10px rgba(28, 59, 65, .035);
}

.executive-feature {
  padding: 18px;
  background: #fff;
}

.executive-rail {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-width: 0;
}

.executive-rail__signal {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  padding: 21px 22px 22px;
  background: linear-gradient(145deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #fff;
}

.executive-rail__signal::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -75px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,255,255,.025);
}

.executive-rail__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #e2c55d;
}

.executive-rail__headline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.24;
  letter-spacing: -.026em;
  text-wrap: balance;
}

.executive-rail__context {
  position: relative;
  z-index: 1;
  margin: 11px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
}

.executive-rail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #ddd8ca;
  border-radius: 14px;
  background: #f0ede4;
}

.executive-rail__fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid #ddd8ca;
  border-bottom: 1px solid #ddd8ca;
}

.executive-rail__fact:nth-child(2n) { border-right: 0; }
.executive-rail__fact:nth-child(3),
.executive-rail__fact:nth-child(4) { border-bottom: 0; }

.executive-rail__fact-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.executive-rail__fact-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #d8e3de;
  border-radius: 8px;
  background: #f0f6f3;
  color: var(--topic-accent, var(--brand-primary));
}

.executive-rail__fact-icon svg { width: 13px; height: 13px; }

.executive-rail__fact-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #707981;
}

.executive-rail__fact-value {
  margin-top: 6px;
  overflow: hidden;
  color: var(--brand-primary);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-rail__fact-note {
  margin-top: 5px;
  font-size: 8.5px;
  line-height: 1.35;
  color: #7a8084;
}

.page-topic:has(.executive-rail) .design-kpis {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.page-topic:has(.executive-rail) .design-kpi {
  min-height: 100px;
  padding: 15px 17px 14px;
  border-top: 3px solid color-mix(in srgb, var(--topic-accent) 82%, #fff);
  box-shadow: 0 2px 10px rgba(28, 59, 65, .035);
}

.page-topic:has(.executive-rail) .design-kpi:first-child {
  border-left: 4px solid #cda52e;
  border-top-color: var(--line);
}

.page-topic:has(.executive-rail) .design-kpi__value {
  font-size: clamp(22px, 1.85vw, 29px);
  color: var(--brand-primary);
}

.page-topic:has(.executive-rail) .topic-section > .section__head {
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 1100px) {
  .design-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-grid--3,
  .design-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .topic-grid--executive-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid--executive-three > .executive-rail { grid-column: 1 / -1; }
  .topic-grid--executive-wide { grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); }
  .topic-story-grid,
  .topic-story-grid--table-first,
  .topic-story-grid--chart-first {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topic-story-grid > .executive-rail { grid-column: 1 / -1; }
  .command-grid { grid-template-columns: 1fr; }
  .command-grid > .executive-rail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: none;
  }
}

@media (max-width: 640px) {
  .design-kpis { grid-template-columns: 1fr; }
  .design-grid--2,
  .design-grid--3,
  .design-grid--4,
  .design-grid--hero,
  .design-grid--trend { grid-template-columns: 1fr; }
  .design-split-banner { flex-direction: column; }
  .topic-grid--executive-three,
  .topic-grid--executive-wide { grid-template-columns: 1fr; }
  .topic-story-grid,
  .topic-story-grid--table-first,
  .topic-story-grid--chart-first,
  .topic-support-grid,
  .command-grid { grid-template-columns: 1fr; }
  .command-grid > .executive-rail {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .command-pulse { grid-template-columns: 1fr; }
  .command-pulse__metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .command-pulse__metric:last-child { border-bottom: 0; }
  .topic-story-grid > .executive-rail { grid-column: auto; }
  .topic-stat-strip { grid-template-columns: 1fr; }
  .topic-stat-strip .network-stat,
  .topic-stat-strip .ledger-metric {
    min-height: 94px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .topic-stat-strip > *:last-child { border-bottom: 0; }
  .executive-table__headrow,
  .executive-table__row {
    grid-template-columns: minmax(125px, 1fr) minmax(75px, auto) 78px;
    gap: 8px;
    padding-inline: 12px;
  }
  .executive-table__share { grid-template-columns: 1fr; }
  .executive-table__share > i { display: none; }
  .topic-grid--executive-three > .executive-rail { grid-column: auto; }
  .executive-rail__signal { padding: 20px; }
  .executive-rail__facts { min-height: 190px; }
}

/* --- Executive legibility pass ----------------------------------------
   Internal statistics must remain readable on office and briefing screens. */
.page-topic .design-kpis {
  gap: 12px;
}

.page-topic .design-kpi,
.page-topic:has(.executive-rail) .design-kpi {
  min-height: 126px;
  padding: 20px 21px 18px;
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(28, 59, 65, .055);
}

.page-topic .design-kpi__label,
.page-topic:has(.executive-rail) .design-kpi__label {
  margin-bottom: 9px;
  color: #607378;
  font-size: 10px;
  letter-spacing: .1em;
}

.page-topic .design-kpi__value,
.page-topic:has(.executive-rail) .design-kpi__value {
  color: var(--brand-primary);
  font-size: clamp(30px, 2.7vw, 42px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.045em;
}

.page-topic .design-kpi__meta,
.page-topic .design-kpi__delta,
.page-topic:has(.executive-rail) .design-kpi__meta,
.page-topic:has(.executive-rail) .design-kpi__delta {
  margin-top: 9px;
  color: #728287;
  font-size: 11px;
}

.page-topic .topic-section > .section__head,
.page-topic:has(.executive-rail) .topic-section > .section__head {
  min-height: 58px;
  padding: 15px 18px;
}

.page-topic .section__title h3 {
  color: #244b54;
  font-size: 18px;
  letter-spacing: -.02em;
}

.page-topic .tile__head,
.page-topic .topic-story-panel .tile__head {
  min-height: 56px;
  padding: 16px 18px 14px;
}

.page-topic .tile__head h4,
.page-topic .topic-story-panel .tile__head h4 {
  color: #294e56;
  font-size: 15px;
  font-weight: 760;
}

.page-topic .hbar__label {
  color: #35565e;
  font-size: 12px;
  font-weight: 650;
}

.page-topic .hbar__track { height: 25px; }
.page-topic .hbar__val { font-size: 11px; }

.page-topic .executive-rail__signal {
  padding: 26px 25px 27px;
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
  box-shadow: 0 8px 24px rgba(24, 76, 90, .11);
}

.page-topic .executive-rail__eyebrow { font-size: 10px; }
.page-topic .executive-rail__headline {
  font-size: clamp(22px, 1.75vw, 28px);
  line-height: 1.18;
}
.page-topic .executive-rail__context { font-size: 12px; line-height: 1.55; }
.page-topic .executive-rail__fact { padding: 18px; }
.page-topic .executive-rail__fact-label { font-size: 9px; }
.page-topic .executive-rail__fact-value { font-size: clamp(20px, 1.7vw, 27px); }
.page-topic .executive-rail__fact-note { font-size: 9.5px; }

.page-topic .executive-table__headrow { font-size: 9px; }
.page-topic .executive-table__row { min-height: 49px; }
.page-topic .executive-table__county b,
.page-topic .executive-table__value { font-size: 12.5px; }
.page-topic .executive-table__county small,
.page-topic .executive-table__share em { font-size: 9px; }

/* --- Executive Topic KPI Cards --- */
.design-kpis,
.page-kpi-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.design-kpi,
.page-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 128px;
  padding: 20px 22px 18px;
  border: 1px solid #d4dfda;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 51, 57, .05);
  overflow: hidden;
  transition: all .2s ease;
}

.design-kpi:hover,
.page-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 51, 57, .1);
  border-color: var(--topic-accent, var(--brand-primary));
}

.design-kpi::before,
.page-kpi::before {
  display: none;
}

.design-kpi__head,
.page-kpi__head {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 9px;
  min-width: 0;
}

.design-kpi__icon,
.page-kpi__icon {
  position: absolute;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--topic-accent, var(--brand-primary)) 18%, #dce5e1);
  border-radius: 14px;
  background: color-mix(in srgb, var(--topic-accent, var(--brand-primary)) 8%, #fff);
  color: var(--topic-accent, var(--brand-primary));
  box-shadow: 0 5px 14px rgba(26, 78, 66, .08);
}

.design-kpi__icon svg,
.page-kpi__icon svg { width: 26px; height: 26px; }

.design-kpi__body,
.page-kpi__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 auto;
  padding-right: 62px;
}

.page-topic .design-kpi,
.page-topic:has(.executive-rail) .design-kpi,
.page-topic .page-kpi,
.page-topic:has(.executive-rail) .page-kpi {
  border-top: 1px solid #d4dfda;
  border-left: 1px solid #d4dfda;
}

.page-topic:has(.executive-rail) .design-kpi:first-child,
.page-topic:has(.executive-rail) .page-kpi:first-child {
  border-left: 1px solid #d4dfda;
}

.design-kpi__label,
.page-kpi__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5c7479;
  margin-bottom: 0;
}

.design-kpi__value,
.page-kpi__value {
  display: block;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 850;
  line-height: 1;
  color: var(--brand-primary);
  letter-spacing: -.03em;
  margin-bottom: 8px;
}

.design-kpi__meta,
.page-kpi__note {
  font-size: 11.5px;
  color: #72878c;
  line-height: 1.4;
}

.design-kpi__delta,
.page-kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 750;
  color: #15803d;
  background: #e7f7ec;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
}

.design-kpi__delta.is-down,
.page-kpi__delta.is-down {
  color: #dc2626;
  background: #fef2f2;
}

/* --- Split Banner --- */
.design-split-banner {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.design-split-banner__seg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 0;
  min-width: 9rem;
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid #d4dfda;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 51, 57, .04);
}

.design-split-banner__seg--plant {
  border-left: 5px solid #0e774b;
}

.design-split-banner__seg--top {
  border-left: 5px solid #d97706;
}

.design-split-banner__seg span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #4b666c;
}

.design-split-banner__seg strong {
  font-size: 20px;
  font-weight: 850;
  color: var(--brand-primary);
}

/* --- Formula Lists & Gap Compare --- */
.design-formula-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.design-formula-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
}

.design-formula-row__label {
  font-size: 12px;
  font-weight: 700;
  color: #2e4d54;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.design-formula-row__share {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #6b8287;
}

.design-formula-row__value {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-primary);
}

.design-formula-row__track {
  grid-column: 1 / -1;
  height: 6px;
  background: #e6eee9;
  border-radius: 999px;
  overflow: hidden;
}

.design-formula-row__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.design-formula-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #e5ede9;
  margin-top: 6px;
  font-size: 12px;
}
.design-formula-total dt { color: #6b8287; font-weight: 650; }
.design-formula-total dd { color: var(--brand-primary); font-weight: 800; margin: 0; }

.design-gap-compare {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  min-height: 110px;
  padding: 10px 0;
}

.design-gap-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.design-gap-col__bar {
  width: 100%;
  max-width: 48px;
  background: #0e774b;
  border-radius: 6px 6px 0 0;
  transition: height .4s ease;
}

.design-gap-col__bar.is-gold {
  background: #d97706;
}

.design-gap-col__label {
  font-size: 11px;
  color: #5c7479;
  font-weight: 700;
}

.design-gap-col__value {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-primary);
}

.design-note {
  font-size: 11.5px;
  color: #6a8085;
  line-height: 1.45;
  margin-top: 10px;
}

/* --- Month Bars --- */
.design-month-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  min-height: 190px;
  padding: 10px 0;
}

.design-month-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.design-month-bar__value {
  font-size: 10px;
  font-weight: 750;
  color: var(--brand-primary);
}

.design-month-bar__col {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--brand-primary);
  min-height: 6px;
  transition: height .3s ease;
}

.design-month-bar__col.plant { background: #0e774b; }
.design-month-bar__col.top { background: #d97706; }

.design-month-bar__label {
  font-size: 10px;
  color: #687f84;
  font-weight: 650;
}

/* --- Executive Insights List --- */
.design-insight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-insight-list li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: all .2s ease;
}

.design-insight-list li:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(212, 175, 55, .4);
}

.design-insight-list li strong {
  color: #67e8f9;
  font-size: 13px;
  line-height: 1.35;
}

.design-insight-list li span {
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .design-kpis,
  .page-kpi-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .design-split-banner {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .design-kpis,
  .page-kpi-band {
    grid-template-columns: 1fr;
  }
}

/* --- Extension Role Breakdown Matrix --- */
.extension-role-matrix {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5e9e6;
}

.extension-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8faf9;
  border: 1px solid #e2e8e5;
  transition: all .2s ease;
}

.extension-role-row:hover {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(15, 51, 57, .06);
}

.extension-role-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.extension-role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.extension-role-info strong {
  font-size: 13px;
  color: #0f3339;
  font-weight: 750;
}

.extension-role-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.extension-role-stat strong {
  font-size: 15px;
  color: var(--brand-primary);
  font-weight: 850;
}

.extension-role-stat span {
  font-size: 11px;
  color: #64748b;
}

/* --- Executive internal-page presentation pass ---------------------- */
.page-topic .design-kpis,
.page-topic:has(.executive-rail) .design-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.page-topic .design-kpis[data-kpi-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-topic .design-kpis[data-kpi-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.page-topic .design-kpis[data-kpi-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.page-topic .hbar--value-outside {
  grid-template-columns: minmax(116px, .38fr) minmax(0, 1fr) minmax(62px, auto);
  gap: 12px;
  min-height: 32px;
}

.page-topic .hbar--value-outside .hbar__label {
  overflow: visible;
  color: #294f57;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.22;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
}

.page-topic .hbar--value-outside .hbar__track {
  height: 24px;
  border: 1px solid #dfe6e3;
  border-radius: 7px;
}

.page-topic .hbar--value-outside .hbar__fill {
  filter: saturate(1.12) contrast(1.03);
}

.page-topic .hbars--mono-green .hbar__fill {
  filter: none;
}

.page-topic .hbars--mono-green .hbar.is-lead .hbar__label {
  color: #0e774b;
}

.page-topic .hbar--value-outside .hbar__val {
  position: static;
  align-self: center;
  color: #1d4a54;
  font-size: 11px;
  font-weight: 820;
  text-align: right;
  text-shadow: none;
  transform: none;
}

.page-topic #distribution .tablescroll {
  max-height: none;
  overflow: hidden;
}

.page-topic #distribution .ltable td {
  padding-block: 8px;
}

.design-stat-marquee {
  overflow: hidden;
  padding: 2px 0 4px;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.design-stat-marquee__track {
  display: flex;
  width: max-content;
  animation: internal-signal-marquee 34s linear infinite;
}

.design-stat-marquee:hover .design-stat-marquee__track {
  animation-play-state: paused;
}

.design-stat-marquee__group {
  display: grid;
  grid-template-columns: repeat(6, 188px);
  gap: 12px;
  padding-right: 12px;
}

.design-stat-marquee .design-stat-card {
  min-height: 112px;
  padding: 16px 17px 14px;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(25, 58, 64, .05);
}

.design-stat-marquee .design-stat-card__value {
  color: #194b55;
  font-size: 21px;
}

@keyframes internal-signal-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1380px) {
  .topic-story-grid,
  .topic-story-grid--table-first,
  .topic-story-grid--chart-first {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-story-grid > .executive-rail {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: none;
  }

  .design-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-grid--3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .page-topic .design-kpis[data-kpi-count] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-topic .design-kpis,
  .page-topic:has(.executive-rail) .design-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-topic .design-kpis[data-kpi-count] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-story-grid > .executive-rail {
    grid-template-columns: 1fr;
  }

  .design-grid--3 {
    grid-template-columns: 1fr;
  }

  .design-grid--3 > :last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .page-topic .design-kpis,
  .page-topic:has(.executive-rail) .design-kpis {
    grid-template-columns: 1fr;
  }

  .page-topic .design-kpis[data-kpi-count] {
    grid-template-columns: 1fr;
  }

  .page-topic .hbar--value-outside {
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr) 56px;
    gap: 8px;
  }
}

/* --- Public farmers page ---------------------------------------------- */
.farmers-public-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.farmers-public-filters__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 16px;
}

.farmers-public-filters__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.farmers-public-filters__field > span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.farmers-public-filters__field select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 32px 8px 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  font: inherit;
  color: inherit;
}

.farmers-public-filters__badge {
  margin-left: auto;
  align-self: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.farmers-public-filters__clear {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

.farmers-public-filters__clear:hover {
  background: #f8fafc;
}

.farmers-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.farmers-insight-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.farmers-insight-tile strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.farmers-insight-tile p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}

.farmers-insight-tile--0 { border-top: 3px solid #0e774b; }
.farmers-insight-tile--1 { border-top: 3px solid #7c3aed; }
.farmers-insight-tile--2 { border-top: 3px solid #0284c7; }
.farmers-insight-tile--3 { border-top: 3px solid #f59e0b; }

.farmers-vc-hero {
  margin-top: 4px;
}

.farmers-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 2px;
}

/* The band follows however many cards a page publishes, so a fifth card sits in
   the row rather than wrapping onto a line of its own. */
.farmers-kpi-grid[data-kpi-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.farmers-kpi-grid[data-kpi-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1240px) {
  .farmers-kpi-grid[data-kpi-count="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.farmers-kpi-card {
  min-height: 0;
  gap: 4px;
  padding: 16px 16px 14px;
}

/* Farmer groups — uppercase card titles + readable line spacing */
.page-topic[data-api-topic="farmer-groups"] .farmers-kpi-card {
  gap: 8px;
}

.page-topic[data-api-topic="farmer-groups"] .farmers-kpi-card .farmers-vc-card__label {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.5;
  font-size: 12px;
}

.page-topic[data-api-topic="farmer-groups"] .design-panel__head {
  padding: 12px 14px 10px;
}

.page-topic[data-api-topic="farmer-groups"] .design-panel__head h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
  font-size: 12.5px;
  font-weight: 700;
}

.page-topic[data-api-topic="farmer-groups"] .topic-directory-datatable__title {
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

/* Farmers — uppercase card / section titles + readable line spacing */
.page-topic[data-api-topic="farmers"] .farmers-kpi-card {
  gap: 8px;
}

.page-topic[data-api-topic="farmers"] .farmers-vc-card__label {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.5;
  font-size: 12px;
}

.page-topic[data-api-topic="farmers"] .design-panel__head {
  padding: 12px 14px 10px;
}

.page-topic[data-api-topic="farmers"] .design-panel__head h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
  font-size: 12.5px;
  font-weight: 700;
}

.page-topic[data-api-topic="farmers"] .design-block__title h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.page-topic[data-api-topic="farmers"] .topic-directory-datatable__title {
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.page-topic[data-api-topic="farmers"] .section__title h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

/* Crops value chain — uppercase card / section titles */
.page-vc[data-vc-sector="crops"] .farmers-vc-card__label {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.5;
  font-size: 12px;
}

.page-vc[data-vc-sector="crops"] .farmers-kpi-card {
  gap: 8px;
}

.page-vc[data-vc-sector="crops"] .design-panel__head {
  padding: 12px 14px 10px;
}

.page-vc[data-vc-sector="crops"] .design-panel__head h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
  font-size: 12.5px;
  font-weight: 700;
}

.page-vc[data-vc-sector="crops"] .design-block__title h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.page-vc[data-vc-sector="crops"] .topic-directory-datatable__title {
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.page-vc[data-vc-sector="crops"] .section__title h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

/* Livestock value chain — uppercase card / section titles */
.page-vc[data-vc-sector="livestock"] .farmers-vc-card__label {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.5;
  font-size: 12px;
}

.page-vc[data-vc-sector="livestock"] .farmers-kpi-card {
  gap: 8px;
}

.page-vc[data-vc-sector="livestock"] .design-panel__head {
  padding: 12px 14px 10px;
}

.page-vc[data-vc-sector="livestock"] .design-panel__head h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
  font-size: 12.5px;
  font-weight: 700;
}

.page-vc[data-vc-sector="livestock"] .design-block__title h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.page-vc[data-vc-sector="livestock"] .topic-directory-datatable__title {
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.page-vc[data-vc-sector="livestock"] .section__title h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

/* Apiculture value chain — match crops KPI / title styling */
.page-vc[data-vc-sector="apiculture"] .farmers-vc-card__label {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.5;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-vc[data-vc-sector="apiculture"] .farmers-kpi-card {
  gap: 8px;
}

.page-vc[data-vc-sector="apiculture"] .design-panel__head {
  padding: 12px 14px 10px;
}

.page-vc[data-vc-sector="apiculture"] .design-panel__head h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
  font-size: 12.5px;
  font-weight: 700;
}

.page-vc[data-vc-sector="apiculture"] .design-block__title h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.page-vc[data-vc-sector="apiculture"] .topic-directory-datatable__title {
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.page-vc[data-vc-sector="apiculture"] .section__title h3 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.farmers-vc-card__label--tip {
  cursor: help;
  text-decoration: underline dotted rgba(75, 102, 108, 0.35);
  text-underline-offset: 3px;
}

/* Floating KPI / hint tooltip (hero-chart style, topic pages) */
.kadic-float-tip {
  position: fixed;
  z-index: 10050;
  pointer-events: none;
  background: rgba(8, 48, 60, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(210, 166, 46, 0.65);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(210, 166, 46, 0.2);
  max-width: min(288px, calc(100vw - 24px));
  white-space: normal;
  opacity: 1;
  transition: opacity 0.12s ease;
}

.kadic-float-tip[hidden] {
  display: none;
}

.kadic-float-tip__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9fc0ca;
  margin-bottom: 4px;
  line-height: 1.3;
}

.kadic-float-tip__body {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.kadic-float-tip--apiculture {
  border-color: rgba(167, 139, 250, 0.75);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 14px rgba(124, 58, 237, 0.22);
}

.farmers-kpi-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.farmers-kpi-card__foot .farmers-vc-card__share {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.farmers-kpi-card__foot .farmers-vc-card__share--empty {
  visibility: hidden;
}

.farmers-kpi-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--vc-accent, #0e774b) 18%, #dce5e1);
  border-radius: 10px;
  background: color-mix(in srgb, var(--vc-accent, #0e774b) 8%, #fff);
  color: var(--vc-accent, #0e774b);
  box-shadow: 0 4px 12px rgba(26, 78, 66, .07);
}

.farmers-kpi-card__icon svg {
  width: 20px;
  height: 20px;
}

.farmers-vc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.farmers-vc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 148px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(24, 76, 90, .1);
  background: linear-gradient(165deg, rgba(255, 255, 255, .98), rgba(247, 250, 249, .94));
  box-shadow: 0 6px 18px rgba(25, 58, 64, .06);
}

.farmers-vc-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.farmers-vc-card__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vc-accent, #0e774b);
}

.farmers-vc-card__label {
  font-size: 13px;
  font-weight: 600;
  color: #48656b;
  line-height: 1.35;
}

.farmers-vc-card__value {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  color: #194b55;
  line-height: 1.1;
}

.farmers-vc-card__share {
  font-size: 12px;
  color: #6b848a;
}

.farmers-vc-card__link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vc-accent, #0e774b);
  text-decoration: none;
}

.farmers-vc-card__link:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .farmers-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .farmers-vc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .farmers-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .farmers-vc-grid { grid-template-columns: 1fr; }
  .farmers-kpi-grid { grid-template-columns: 1fr; }
}

.farmers-county-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #6b848a;
}

.farmers-county-legend__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: -1px;
}

.farmers-county-legend__swatch--female {
  background: #7c3aed;
}

.farmers-county-legend__swatch--male {
  background: #0284c7;
}

#county-gender-bars .stacked-hbar {
  cursor: pointer;
}

.stacked-hbars--tips {
  position: relative;
}

.stacked-hbars--tips .stacked-hbar {
  cursor: default;
}

.stacked-hbars__tip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8e4;
  box-shadow: 0 8px 22px rgba(15, 51, 57, .12);
  font-size: 11px;
  line-height: 1.4;
  color: #374151;
  min-width: 148px;
}

.stacked-hbars__tip[hidden] {
  display: none;
}

.stacked-hbars__tip-title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  font-size: 11px;
}

.stacked-hbars__tip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.stacked-hbars__tip-row b {
  margin-left: auto;
  font-weight: 700;
  color: #111827;
}

.stacked-hbars__tip-swatch {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.stacked-hbars__tip-total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eef2f0;
  font-size: 10px;
  font-weight: 650;
  color: #64748b;
}

.page-topic[data-api-topic="farmer-groups"] .topic-directory-block[id] {
  scroll-margin-top: 72px;
}

.design-table--directory tbody tr[data-county] {
  cursor: pointer;
}

.design-table--directory tbody tr[data-county]:hover,
.design-table--directory tbody tr[data-county]:focus-visible {
  background: rgba(14, 119, 75, .03);
  outline: none;
}

/* --- Topic county directory (search / filter / sort) ------------------- */
.topic-directory-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fert-directory-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px 12px;
  padding: 12px 16px;
  border: 1px solid #e2e8e4;
  border-radius: 8px;
  background: #fff;
}

.topic-directory-card,
.fert-directory-card {
  overflow: hidden;
  height: auto;
  border: 1px solid #e2e8e4;
  border-radius: 8px;
  box-shadow: none;
}

.topic-directory-datatable__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8e4;
  background: #fff;
}

.topic-directory-datatable__title-wrap {
  flex: 0 1 auto;
  min-width: 160px;
}

.topic-directory-datatable__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px 10px;
  flex: 1 1 360px;
  min-width: 0;
  margin-left: auto;
}

.topic-directory-field--compact {
  gap: 0;
}

.topic-directory-datatable__title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #111827;
}

.topic-directory-datatable__count {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
}

.topic-directory-datatable__sub {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.45;
}

.topic-directory-datatable__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.topic-directory-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  min-height: 30px;
  white-space: nowrap;
}

.topic-directory-export:hover {
  background: #f0f7eb;
  border-color: #0e774b;
  color: #0a5c3a;
}

.topic-directory-field,
.fert-directory-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.topic-directory-field--search,
.fert-directory-field--search {
  flex: 0 1 168px;
  width: 168px;
  max-width: 200px;
}

.topic-directory-field--select,
.fert-directory-field--select {
  flex: 0 0 auto;
  min-width: 108px;
  max-width: 132px;
}

.topic-directory-field > span,
.fert-directory-field > span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
}

.topic-directory-field input,
.topic-directory-field select,
.fert-directory-field input,
.fert-directory-field select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink);
  background: #fff;
  min-height: 32px;
}

.topic-directory-search-input {
  padding-left: 30px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.25' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 9px center;
}

.topic-directory-field select,
.fert-directory-field select {
  appearance: none;
  padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
}

.topic-directory-field input:focus,
.topic-directory-field select:focus,
.fert-directory-field input:focus,
.fert-directory-field select:focus {
  outline: none;
  border-color: #0e774b;
  box-shadow: 0 0 0 3px rgba(14, 119, 75, .12);
}

.topic-directory-clear,
.fert-directory-clear {
  flex-shrink: 0;
  border: 1px solid #d1d5db;
  background: transparent;
  border-radius: 6px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  color: #4b5563;
  min-height: 32px;
  white-space: nowrap;
}

.topic-directory-clear:hover:not(:disabled),
.fert-directory-clear:hover:not(:disabled) {
  background: #f4f8f6;
}

.topic-directory-clear:disabled,
.fert-directory-clear:disabled {
  opacity: .45;
  cursor: default;
}

.topic-directory-scroll,
.fert-directory-scroll {
  max-height: min(32rem, 68vh);
  padding: 0;
  margin: 0;
  overflow: auto;
}

/* Table scroll area flush under card header (no panel body padding gap) */
.page-topic .topic-directory-datatable > .topic-directory-scroll,
.page-topic .topic-directory-datatable > .design-panel__body {
  padding: 0;
  margin-top: 0;
}

.topic-directory-table,
.fert-directory-table {
  margin: 0;
}

.topic-directory-table,
.fert-directory-table {
  font-size: 0.8125rem;
}

.topic-directory-table thead th,
.fert-directory-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f6f9f7;
  box-shadow: 0 1px 0 #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  white-space: nowrap;
  color: #56655e;
}

.topic-directory-table tbody tr,
.fert-directory-table tbody tr {
  cursor: pointer;
}

.topic-directory-table tbody tr:hover,
.fert-directory-table tbody tr:hover {
  background: rgba(14, 119, 75, .03);
}

.topic-directory-table td,
.fert-directory-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f4;
  vertical-align: middle;
  color: #374151;
}

.topic-directory-table td.rank,
.fert-directory-table td.rank {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 650;
  width: 2.5rem;
}

.topic-directory-name__link {
  font-weight: 700;
  color: #0a5c3a;
}

.topic-directory-table tbody tr:hover .topic-directory-name__link,
.fert-directory-table tbody tr:hover .topic-directory-name__link {
  text-decoration: underline;
}

.topic-directory-table th.is-sort-active,
.fert-directory-table th.is-sort-active {
  background: #eef6f1;
}

.topic-directory-table th .topic-sort,
.topic-directory-table th .fert-sort,
.fert-directory-table th .topic-sort,
.fert-directory-table th .fert-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
}

.topic-directory-table th .topic-sort::before,
.topic-directory-table th .fert-sort::before,
.fert-directory-table th .topic-sort::before,
.fert-directory-table th .fert-sort::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 4px solid #cbd5e1;
  margin-bottom: 1px;
}

.topic-directory-table th .topic-sort::after,
.topic-directory-table th .fert-sort::after,
.fert-directory-table th .topic-sort::after,
.fert-directory-table th .fert-sort::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #cbd5e1;
}

.topic-directory-table th .topic-sort.is-active,
.topic-directory-table th .fert-sort.is-active,
.fert-directory-table th .topic-sort.is-active,
.fert-directory-table th .fert-sort.is-active {
  color: #0e774b;
  background: rgba(14, 119, 75, .08);
  border-radius: 999px;
  padding: 2px 8px 2px 6px;
}

.topic-directory-table th .topic-sort.is-asc::before,
.topic-directory-table th .fert-sort.is-asc::before,
.fert-directory-table th .topic-sort.is-asc::before,
.fert-directory-table th .fert-sort.is-asc::before {
  border-bottom-color: #0e774b;
}

.topic-directory-table th .topic-sort.is-desc::after,
.topic-directory-table th .fert-sort.is-desc::after,
.fert-directory-table th .topic-sort.is-desc::after,
.fert-directory-table th .fert-sort.is-desc::after {
  border-top-color: #0e774b;
}

.topic-directory-table td strong,
.fert-directory-table td strong {
  font-weight: 750;
  color: var(--ink);
}

.topic-region-pill,
.fert-region-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f4;
  border: 1px solid #e2ebe7;
  font-size: 11px;
  font-weight: 650;
  color: #4b666c;
  white-space: nowrap;
}

.topic-share-cell,
.fert-share-cell {
  display: grid;
  grid-template-columns: minmax(48px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 110px;
}

.topic-share-cell__bar,
.fert-share-cell__bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0e774b, #22c55e);
}

.topic-share-cell__val,
.fert-share-cell__val {
  font-weight: 750;
  color: var(--ink);
  font-size: 12px;
}

.topic-directory-empty,
.fert-directory-empty {
  margin: 0;
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.topic-directory-foot .design-panel__link,
.fert-directory-foot .design-panel__link {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
  color: #4b666c;
}

.topic-directory-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.topic-directory-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line-2);
  background: #fafcfb;
}

.topic-directory-pager__btn {
  border: 1px solid #d4dfda;
  border-radius: 999px;
  background: #fff;
  color: #1d4a54;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.topic-directory-pager__btn:hover:not(:disabled) {
  border-color: #0e774b;
  color: #0e774b;
}

.topic-directory-pager__btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.topic-directory-pager__status {
  font-size: 12px;
  font-weight: 650;
  color: #4b666c;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .topic-directory-datatable__head {
    align-items: stretch;
  }

  .topic-directory-datatable__toolbar {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .topic-directory-datatable__actions {
    width: 100%;
  }

  .topic-directory-export {
    flex: 1 1 auto;
    justify-content: center;
  }

  .topic-directory-field--search,
  .fert-directory-field--search {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }

  .topic-directory-field--select,
  .fert-directory-field--select {
    flex: 1 1 calc(50% - 6px);
    max-width: none;
  }

  .topic-directory-clear,
  .fert-directory-clear {
    flex: 1 1 auto;
  }
}

@media (max-width: 1100px) {
  .farmers-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .farmers-public-filters__badge { margin-left: 0; width: 100%; text-align: center; }
  .farmers-insights-grid { grid-template-columns: 1fr; }
}

/* --- Public value chain pages ----------------------------------------- */
.vc-public-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vc-public-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.vc-public-tabs__btn:hover {
  background: #f8fafc;
}

.vc-public-tabs__btn.is-active {
  background: #ecfdf5;
  border-color: #86efac;
  color: #065f46;
}

.vc-public-tabs__icon {
  font-size: 1rem;
  line-height: 1;
}

.page-vc.main {
  padding-top: 16px;
}

.vc-scope-line {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.vc-scope-line--lead {
  padding-top: 4px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-vc > .shell > .vc-scope-line--lead:first-child {
  margin-bottom: 2px;
}

.vc-scope-line--lead a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.vc-scope-line--lead a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.vc-scope-line--lead em {
  font-style: normal;
  opacity: 0.85;
}

.vc-scope-line strong {
  color: var(--ink);
}

.vc-sector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vc-sector-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 180px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vc-sector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.vc-sector-card--green { border-top: 4px solid #166534; }
.vc-sector-card--amber { border-top: 4px solid #d97706; }
.vc-sector-card--blue { border-top: 4px solid #0284c7; }
.vc-sector-card--violet { border-top: 4px solid #7c3aed; }

.vc-sector-card__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.vc-sector-card__head h4 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.vc-sector-card__value {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}

.vc-sector-card__meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  flex: 1 1 auto;
}

.vc-sector-card__link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0e774b;
}

.vc-charts-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.vc-charts-primary:has(> :only-child),
.vc-charts-primary:has(> .vc-chart-panel:only-child) {
  grid-template-columns: 1fr;
}

.page-vc #vc-charts-donuts + .vc-charts-primary {
  margin-top: 14px;
}

.vc-chart-panel .design-panel__body--bars {
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 12px;
}

/* Topic / VC bar charts — slim rows like directory share column */
.page-topic .hbars--slim {
  gap: 5px;
  padding: 2px 0;
}

.page-topic .hbars--slim .hbar--value-outside {
  grid-template-columns: minmax(100px, 34%) minmax(0, 1fr) 52px;
  gap: 8px;
  min-height: 0;
  align-items: center;
}

.page-topic .hbars--slim .hbar__label {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  color: #4b666c;
}

.page-topic .hbars--slim .hbar__track {
  height: 10px;
  border: none;
  border-radius: 999px;
  background: #eef2f0;
}

.page-topic .hbars--slim .hbar__fill {
  border-radius: 999px;
  filter: none;
}

.page-topic .hbars--slim.hbars--mono-green .hbar__fill,
.page-topic .hbars--slim .hbar__fill {
  background: linear-gradient(90deg, #166534 0%, #22a06b 100%) !important;
}

.page-topic .hbars--slim .hbar__val {
  font-size: 11px;
  font-weight: 700;
  color: #35565c;
}

.page-topic .hbars--slim .hbar.is-lead .hbar__label {
  color: #0e774b;
  font-weight: 750;
}

.page-topic .design-panel__body--bars:has(.hbars--slim) {
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 12px;
}

.page-vc .vc-charts-primary .hbar__fill {
  background: linear-gradient(90deg, #166534 0%, #166534cc 100%) !important;
}

@media (max-width: 1100px) {
  .vc-sector-grid,
  .vc-charts-primary { grid-template-columns: 1fr; }
}

.design-donut-wrap--wide {
  grid-template-columns: 160px minmax(0, 1fr);
  max-width: 520px;
}


.page-subsidy--fertilizer .farmers-vc-card__label {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.5;
  font-size: 12px;
}

.page-subsidy--fertilizer .farmers-kpi-card {
  gap: 8px;
}

.page-subsidy--fertilizer #topic-locked {
  display: none !important;
}

.page-subsidy--fertilizer .farmers-kpi-grid {
  --vc-accent-fallback: #d97706;
}

.page-subsidy--vaccination #vacc-programme-viz-block[hidden] {
  display: none !important;
}

.page-subsidy--vaccination .vacc-alloc-meter__track {
  height: 12px;
  border-radius: 999px;
  background: #e8efeb;
  overflow: hidden;
}

.page-subsidy--vaccination .vacc-alloc-meter__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #166534, #0284c7);
}

.page-subsidy--vaccination .vacc-alloc-meter__labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-2);
}

.page-subsidy--vaccination .vacc-alloc-meter__labels strong {
  color: var(--ink);
  font-weight: 700;
}

.page-subsidy--vaccination .design-donut-wrap--compact {
  max-width: 420px;
}

.page-subsidy--vaccination .farmers-vc-card__label {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 1.5;
  font-size: 12px;
}

.page-subsidy--vaccination .farmers-kpi-card {
  gap: 8px;
}

.page-subsidy--vaccination .farmers-kpi-grid {
  --vc-accent-fallback: #9a4f2d;
}

.page-subsidy--vaccination .farmers-insight-tile--0 { border-top-color: #9a4f2d; }
.page-subsidy--vaccination .farmers-insight-tile--1 { border-top-color: #a64f2f; }
.page-subsidy--vaccination .farmers-insight-tile--2 { border-top-color: #166534; }
.page-subsidy--vaccination .farmers-insight-tile--3 { border-top-color: #0284c7; }

.page-subsidy--vaccination .vacc-coverage-strip {
  margin-bottom: 4px;
}

.page-subsidy--vaccination .vacc-coverage-strip .fert-pipeline {
  margin: 0;
  gap: 8px;
}

.page-subsidy--vaccination .vacc-coverage-strip .fert-pipeline__arrow {
  display: none;
}

.page-subsidy--vaccination .vacc-coverage-strip .fert-pipeline__step {
  padding: 14px 16px;
  gap: 4px;
}

.subsidy-funnel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.page-subsidy .design-funnel__step {
  min-height: 72px;
}

.page-subsidy .design-panel--momentum .design-momentum {
  min-height: 100%;
}

@media (max-width: 640px) {
  .page-subsidy .vc-charts-primary,
  .page-subsidy .design-grid--3 { grid-template-columns: 1fr; }
}

/* Workforce pages — extension, AHAs, agripreneurs */
.page-cooperatives .farmers-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-cooperatives .coop-register-legend__swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.page-cooperatives .coop-register-legend__swatch--fpo { background: #7c3aed; }
.page-cooperatives .coop-register-legend__swatch--sacco { background: #0d9488; }

.page-cooperatives .coop-member-mix {
  display: grid;
  gap: 14px;
  align-content: start;
}
.page-cooperatives .coop-member-mix__hero {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 4px 0 2px;
}
.page-cooperatives .coop-member-mix__hero strong {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: #173f49;
  line-height: 1.1;
}
.page-cooperatives .coop-member-mix__hero span {
  color: #496168;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
}
.page-cooperatives .coop-member-mix__bar .split-bar__legend {
  margin-top: 10px;
}
.page-cooperatives .coop-member-mix__section {
  margin: 0;
  color: #496168;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}
.page-cooperatives .coop-member-mix__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.page-cooperatives .coop-member-mix__chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.page-cooperatives .coop-member-mix__chip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.page-cooperatives .coop-member-mix__dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.page-cooperatives .coop-member-mix__chip--fpo .coop-member-mix__dot { background: #7c3aed; }
.page-cooperatives .coop-member-mix__chip--sacco .coop-member-mix__dot { background: #0d9488; }
.page-cooperatives .coop-member-mix__chip-name {
  color: #2f4f57;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.page-cooperatives .coop-member-mix__chip-value {
  padding-left: 18px;
  color: #173f49;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.page-cooperatives .coop-member-mix__note {
  margin: 0;
  color: #5a7279;
  font-size: 11.5px;
  line-height: 1.45;
}
.page-workforce--extension .farmers-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-workforce--extension .farmers-insight-tile--0 { border-top-color: #475569; }
.page-workforce--extension .farmers-insight-tile--1 { border-top-color: #16a34a; }
.page-workforce--ahas .farmers-insight-tile--0 { border-top-color: #92400e; }
.page-workforce--ahas .farmers-insight-tile--1 { border-top-color: #166534; }
.page-workforce--agripreneurs .farmers-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.page-workforce--agripreneurs .farmers-insight-tile--0 { border-top-color: #0284c7; }
.page-workforce--agripreneurs .farmers-insight-tile--1 { border-top-color: #16a34a; }
.page-workforce--agripreneurs .farmers-insight-tile--2 { border-top-color: #db2777; }
.page-workforce--agripreneurs .farmers-insight-tile--3 { border-top-color: #0d9488; }

.page-workforce--agripreneurs .agp-charts-grid {
  align-items: start;
  gap: 16px;
}

.page-workforce--agripreneurs .agp-gender-panel .design-panel__body--donut {
  padding-top: 6px;
  padding-bottom: 12px;
}

.page-workforce--agripreneurs .agp-gender-panel .design-donut-wrap--wide {
  max-width: 100%;
  width: 100%;
}

.page-workforce--agripreneurs .agp-gender-panel .design-donut {
  min-height: 120px;
}

.page-workforce--agripreneurs .agp-county-panel .design-panel__body--bars {
  min-height: 0;
  padding-top: 4px;
  padding-bottom: 8px;
}

.page-workforce--agripreneurs .agp-county-panel .hbar__fill {
  background: linear-gradient(90deg, #0284c7 0%, #0284c7cc 100%) !important;
}

.page-workforce--agripreneurs .agp-county-panel .hbar.is-lead .hbar__label {
  color: #0369a1;
}

@media (max-width: 900px) {
  .page-workforce--agripreneurs .agp-charts-grid {
    grid-template-columns: 1fr;
  }
}

.page-workforce .wf-mix-grid { align-items: stretch; }
.page-workforce .wf-role-key { margin-top: 0.75rem; }
.page-workforce .wf-command-pulse { margin-top: 1rem; }

@media (max-width: 640px) {
  .page-workforce .vc-charts-primary,
  .page-workforce .design-grid--3,
  .page-workforce .wf-mix-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .design-stat-marquee {
    overflow-x: auto;
    mask-image: none;
  }

  .design-stat-marquee__track {
    animation: none;
  }
}

/* --- Market prices ---------------------------------------------------- */
.page-market .market-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.page-market .market-cat-tabs__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4b666c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.page-market .market-cat-tabs__btn:hover,
.page-market .market-cat-tabs__btn.is-active {
  border-color: color-mix(in srgb, #0e774b 35%, var(--line));
  background: color-mix(in srgb, #0e774b 8%, #fff);
  color: #0e774b;
}

.page-market .live-ticker-slot {
  margin: 0 0 18px;
  min-height: 70px;
}

.page-market .live-ticker {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  overflow: hidden;
  min-height: 70px;
  border: 1px solid #1d515d;
  border-radius: 16px;
  background: linear-gradient(90deg, #123943, #1c5260);
  color: #fff;
  box-shadow: 0 9px 26px rgba(21, 55, 61, .08);
}

.page-market .live-ticker__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #12343c;
  color: #fff;
}

.page-market .live-ticker__tag > span:last-child {
  display: grid;
  gap: 2px;
}

.page-market .live-ticker__tag b {
  color: #f1d46a;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-market .live-ticker__tag small {
  color: rgba(255, 255, 255, .68);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.page-market .live-ticker__track {
  overflow: hidden;
  min-width: 0;
}

.page-market .live-ticker__content {
  display: flex;
  width: max-content;
  animation: market-ticker-scroll 48s linear infinite;
}

.page-market .live-ticker__content:hover,
.page-market .live-ticker:focus-within .live-ticker__content {
  animation-play-state: paused;
}

.page-market .live-ticker__group {
  display: flex;
  flex: 0 0 auto;
}

.page-market .live-ticker__group[aria-hidden="true"] {
  pointer-events: none;
}

.page-market .live-ticker__signal {
  --signal: #70d1a5;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 228px;
  padding: 10px 16px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .11);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.page-market .live-ticker__signal.is-action {
  cursor: pointer;
}

.page-market .live-ticker__signal--gold { --signal: #f0cf5c; }
.page-market .live-ticker__signal--green { --signal: #70d1a5; }
.page-market .live-ticker__signal--blue { --signal: #78c5e8; }
.page-market .live-ticker__signal--clay { --signal: #ef9a73; }

.page-market .live-ticker__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  color: var(--signal);
}

.page-market .live-ticker__icon svg {
  width: 18px;
  height: 18px;
}

.page-market .live-ticker__signal > span:last-child {
  display: grid;
  min-width: 0;
}

.page-market .live-ticker__signal small {
  overflow: hidden;
  color: var(--signal);
  font-size: 8.5px;
  font-weight: 820;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-market .live-ticker__signal b {
  overflow: visible;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: clip;
  white-space: normal;
  word-wrap: break-word;
}

.page-market .live-ticker__signal em {
  overflow: visible;
  color: rgba(255, 255, 255, .66);
  font-size: 9.5px;
  line-height: 1.45;
  font-style: normal;
  text-overflow: clip;
  white-space: normal;
  word-wrap: break-word;
}

@keyframes market-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .page-market .live-ticker {
    grid-template-columns: 1fr;
  }

  .page-market .live-ticker__tag {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .page-market .live-ticker__signal {
    min-width: 200px;
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-market .live-ticker__content {
    animation: none;
  }
}

.page-market .market-hub-card {
  min-height: 0;
  cursor: pointer;
}

.page-market .market-hub-card__place {
  font-size: clamp(18px, 1.8vw, 22px);
}

.page-market .market-hub-card__prices {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-market .market-hub-card__prices li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #4b666c;
}

.page-market .market-hub-card__prices strong {
  color: #194b55;
  font-weight: 700;
}

.page-market .market-hub-card__link {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.page-market .farmers-vc-card__value {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .page-market .market-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-market .market-hub-grid {
    grid-template-columns: 1fr;
  }
}
