/* R3 slice 15/15 (67-org-tiers.css): organization sponsorship tiers + organization dashboard.
   A NEW slice appended after 65-member-misc.css and before landing.css, so the
   existing slice order (which cascade tie-breaks depend on) is untouched.
   Colours come from the :root tokens in 00-foundations.css only; both themes flip
   through those tokens, so there is no body.dark block to keep in sync here. */

/* ---------------------------------------------------------------- tiers view */

.otier {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1080px;
}

.otier-head { display: flex; flex-direction: column; gap: 8px; }

.otier-title {
  margin: 0;
  font-family: var(--font-display-new);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.otier-sub {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.otier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.otier-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.otier-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.otier-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.otier-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.otier-card-name {
  font-family: var(--font-display-new);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

.otier-card-months {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.otier-card-blurb {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.otier-card-cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
}

.otier-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.otier-detail--idle,
.otier-detail--empty {
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-2);
  box-shadow: none;
}

.otier-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.otier-detail-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}

.otier-detail-title {
  font-family: var(--font-display-new);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.otier-detail-body {
  margin: 8px 0 0;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.otier-total { text-align: right; min-width: 180px; }

.otier-total-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.otier-total-value {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.otier-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
}

.otier-fact { display: flex; flex-direction: column; gap: 4px; }

.otier-fact dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.otier-fact dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.otier-fact dd.mono { font-family: var(--mono); }

.otier-caveat {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--chip);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.otier-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----------------------------------------------------- organization dashboard */

.odash {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1080px;
}

.odash-hero { display: flex; flex-direction: column; gap: 6px; padding: 26px; }

.odash-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.odash-org {
  margin: 0;
  font-family: var(--font-display-new);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.odash-hero-sub {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.odash-hero-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.odash-hero-figure { display: flex; flex-direction: column; gap: 4px; }

.odash-hero-value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.odash-hero-label { font-size: 12px; font-weight: 600; color: var(--muted); }

.odash-hero-period {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.odash-panel { display: flex; flex-direction: column; gap: 16px; padding: 24px; }

.odash-panel-head { display: flex; flex-direction: column; gap: 6px; }

.odash-panel-title {
  margin: 0;
  font-family: var(--font-display-new);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.odash-panel-sub {
  margin: 0;
  max-width: 66ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Honest empty/pending states: shown INSTEAD of a zero-naira split, never with one. */
.odash-note {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
}

.odash-note--compact { padding: 12px 14px; }

.odash-note-title { font-size: 14px; font-weight: 700; color: var(--ink); }

.odash-note-body {
  margin: 6px 0 0;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.odash-splits { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }

.odash-split {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(80px, 1.6fr) auto;
  align-items: center;
  gap: 16px;
}

.odash-split-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.odash-split-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.odash-split-kind { font-size: 11.5px; font-weight: 600; color: var(--muted); }

.odash-split-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bar-track);
  overflow: hidden;
}

.odash-split-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.odash-split-figures {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.odash-split-pct { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.odash-split-amount {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.odash-split-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.odash-split-total .mono { font-family: var(--mono); font-size: 16px; }

.odash-progress { display: flex; flex-direction: column; gap: 8px; }

.odash-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.odash-progress-head .mono { font-family: var(--mono); color: var(--ink); }

.odash-progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bar-track);
  overflow: hidden;
}

.odash-progress-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

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

.odash-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.odash-metric-value {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.odash-metric-label { font-size: 12px; font-weight: 600; line-height: 1.45; color: var(--muted); }

.odash-tiers { display: flex; flex-direction: column; gap: 14px; }

.odash-tier { display: flex; flex-direction: column; gap: 12px; padding: 22px; }

.odash-tier-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.odash-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--chip);
}

.odash-badge--gold { border-color: var(--amber); color: var(--amber); }
.odash-badge--platinum { border-color: var(--violet); color: var(--violet); }

.odash-tier-status { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.odash-tier-title {
  font-family: var(--font-display-new);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}

.odash-tier-period { font-size: 12.5px; font-weight: 600; color: var(--muted); }

.odash-tier-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.odash-tier-figures > div { display: flex; flex-direction: column; gap: 2px; }

.odash-tier-figure-label { font-size: 11.5px; font-weight: 600; color: var(--muted); }

.odash-tier-figures .mono { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink); }

.odash-tier-spend { padding-top: 4px; }

@media (max-width: 900px) {
  .otier-grid { grid-template-columns: 1fr; }
  .otier-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .otier-total { text-align: left; min-width: 0; }
  .odash-hero-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .odash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .otier-facts { grid-template-columns: 1fr; }
  .otier-total-value { font-size: 26px; }
  .odash-split { grid-template-columns: 1fr auto; }
  .odash-split-track { grid-column: 1 / -1; order: 3; }
  .odash-tier-figures { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .otier-card { transition: none; }
  .otier-card:hover { transform: none; }
}
