/* Cost guide: tables, notes, and trade blocks on the shared cream tokens. */

.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;
  margin: 28px 0 0;
  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);
}

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

.cost-copy {
  width: min(100%, 760px);
  margin: 0 auto;
}

.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;
}

.cost-steps-follow {
  margin-top: 28px;
}

.cost-page .step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cost-page .step {
  padding: 28px 26px 32px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.cost-page .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
}

.cost-page .step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.cost-page .step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 800px) {
  .cost-page .step-grid {
    grid-template-columns: 1fr;
  }
}

.cost-copy p,
.cost-copy li {
  color: var(--text-muted);
}

.cost-copy 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-copy h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.cost-copy p {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.65;
}

.cost-copy ul,
.cost-copy ol {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.cost-copy li + li {
  margin-top: 8px;
}

.cost-copy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

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

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

.cost-note strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

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

.cost-table {
  width: 100%;
  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 tr:last-child th,
.cost-table tr:last-child td {
  border-bottom: 0;
}

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

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

.trade-jump {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 28px;
}

.trade-jump a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.trade-jump a:hover {
  border-color: #d6d6d0;
  color: inherit;
}

.trade-jump strong {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.trade-jump span {
  font-size: 13px;
  color: var(--text-muted);
}

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

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

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

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

@media (max-width: 800px) {
  .trade-jump {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .trade-jump {
    grid-template-columns: 1fr;
  }
}
