/*
 * Method page — additions only.
 *
 * The Method page reuses the landing page's class vocabulary (.band, .sheet,
 * .section-head, .steps, .figures, .card, .fine-print …) so the two pages stay
 * one design system. Everything below is a device the landing page has no use
 * for. All rules are scoped to .da-landing, matching landing.css.
 */

/* ---- worked example: a real market taken apart ---- */
.da-landing .worked {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
@media (max-width: 900px) {
  .da-landing .worked { grid-template-columns: minmax(0, 1fr); }
}

.da-landing .ledger {
  border-top: 1px solid var(--rule);
}
.da-landing .ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 92px;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--fs-sm);
}
.da-landing .ledger__row--head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.da-landing .ledger__row--head span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.da-landing .ledger__label { color: var(--text); }
.da-landing .ledger__v,
.da-landing .ledger__n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.da-landing .ledger__v { color: var(--display); font-weight: 600; }
.da-landing .ledger__n { color: var(--text-muted); }
.da-landing .ledger__row--total {
  border-bottom: none;
  border-top: 1px solid var(--rule);
  margin-top: 4px;
  padding-top: 14px;
}
.da-landing .ledger__row--total .ledger__label { font-weight: 600; color: var(--display); }
.da-landing .ledger__row--total .ledger__v { font-size: var(--fs-lg); }

/* ---- coverage matrix ---- */
.da-landing .matrix { margin-top: 34px; overflow-x: auto; }
.da-landing table.cov {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.da-landing .cov th,
.da-landing .cov td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--fs-sm);
}
.da-landing .cov thead th {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  background: var(--surface-alt);
}
.da-landing .cov tbody tr:last-child td { border-bottom: none; }
.da-landing .cov .n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.da-landing .cov .yes { color: var(--sage); font-weight: 600; }
.da-landing .cov .no { color: var(--text-faint); }

/* ---- limits: deliberately plain, no decoration ---- */
.da-landing .limits {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 780px) {
  .da-landing .limits { grid-template-columns: minmax(0, 1fr); }
}
.da-landing .limit {
  background: var(--surface);
  padding: 22px 24px 24px;
}
.da-landing .limit h3 {
  font-size: var(--fs-md);
  margin-bottom: 8px;
}
.da-landing .limit p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- inline formula ---- */
.da-landing .formula {
  display: block;
  margin: 16px 0 0;
  padding: 14px 18px;
  background: var(--surface-alt);
  border-left: 2px solid var(--sage);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text);
  overflow-x: auto;
}

/* inline "vs national" comparison inside a ledger value */
.da-landing .vsnat {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-left: 6px;
}
/* two-up driver grid on vertical pages */
.da-landing .legend__item .legend__band { display: block; margin-bottom: 2px; }
