/* Cost and grant hubs: cream tokens, English-site block structure. */

.page-hero-mini {
  padding: calc(var(--header-h) + 56px) 0 36px;
  background: var(--cream);
}

.page-hero-mini .eyebrow,
.dir-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.page-hero-mini h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.1;
}

.page-hero-mini p {
  width: min(100%, 42rem);
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.62;
}

.inner-section {
  padding: 8px 0 88px;
}

.cost-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.cost-crumb a:hover {
  color: var(--ink);
}

.cost-crumb [aria-current="page"] {
  color: var(--text-muted);
}

.cost-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.cost-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.cost-toc a:hover {
  border-color: #d6d6d0;
  color: var(--ink);
}

.cost-block + .cost-block {
  margin-top: 56px;
}

.cost-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.cost-block h3 {
  margin: 28px 0 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.cost-prose {
  max-width: 46rem;
}

.cost-prose p,
.cost-prose li {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.65;
}

.cost-prose p + p,
.cost-prose p + ul,
.cost-prose ul + p {
  margin-top: 14px;
}

.cost-prose ul {
  padding-left: 1.2rem;
}

.cost-callout {
  margin: 22px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--cream-deep);
}

.cost-callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.cost-callout p + p {
  margin-top: 10px;
}

.cost-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}

.cost-stat-row article {
  padding: 24px 22px;
  border-top: 2px solid var(--ink);
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0 16px 16px 16px;
}

.cost-stat-row strong {
  display: block;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.cost-stat-row span {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.cost-table-wrap,
.table-wrap {
  overflow-x: auto;
  margin: 22px 0 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.cost-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.cost-table th,
.cost-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.cost-table th {
  background: var(--cream);
  font-weight: 500;
  color: var(--ink);
}

.cost-table td {
  color: var(--text-muted);
}

.cost-table tr:last-child th,
.cost-table tr:last-child td {
  border-bottom: 0;
}

.cost-table a {
  color: var(--ink);
}

.cost-table .num {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

.cost-caption {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 13px;
}

.cost-trade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.cost-trade-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.cost-trade-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.cost-trade-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cost-trade-card--link:hover,
.cost-trade-card--link:focus-visible {
  border-color: #d6d6d0;
}

.cost-trade-card--link:hover h3,
.cost-trade-card--link:focus-visible h3 {
  color: var(--ink);
}

.cost-trade-card p,
.cost-trade-card li {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.cost-trade-card ul {
  margin: 12px 0 0;
  padding-left: 1.15rem;
}

.cost-trade-card li + li {
  margin-top: 6px;
}

.cost-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cost-step;
}

.cost-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.cost-steps li::before {
  counter-increment: cost-step;
  content: counter(cost-step, decimal-leading-zero);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.cost-steps h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--ink);
}

.cost-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cost-faq {
  margin-top: 18px;
}

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

.hub-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
}

.hub-card:hover {
  border-color: #d6d6d0;
  color: inherit;
}

.hub-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hub-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.cost-sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cost-sources li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-muted);
}

.cost-sources li:last-child {
  border-bottom: 0;
}

.cost-sources a {
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .cost-stat-row,
  .cost-trade-grid,
  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cost-stat-row,
  .cost-trade-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .cost-stat-row strong {
    font-size: 30px;
  }

  .cost-steps li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cost-table {
    min-width: 520px;
  }
}
