/* examples.html: the worked-examples page. Tokens and bands come from styles.css. */
.page-head h1 { max-width: 16em; }
.standfirst { margin-top: var(--gap-sf); max-width: var(--measure); font-size: 17px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.ex { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--gap-block) var(--split-gap); align-items: start; }
.ex-copy h2 { max-width: 14em; text-wrap: balance; }
.ex-links { margin-top: var(--gap-foot); display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.ex-facts { margin: 0; border-top: 1px solid var(--line); }
.ex-facts > div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 24px; padding: var(--pad-row) 0; border-bottom: 1px solid var(--line); }
.ex-facts dt { font-size: var(--fs-label); line-height: 1.5; color: var(--text-3); }
.ex-facts dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.ex-facts .mono, .ex-table .n { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.ex-unit { font-size: var(--fs-meta); color: var(--text-3); }
.ex-table { margin-top: var(--gap-figure); overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.ex-table:focus-visible { outline-offset: 2px; }
.ex-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.ex-table th, .ex-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--text-2); }
.ex-table thead th { color: var(--text-3); font-size: var(--fs-meta); }
.ex-table tbody th { color: var(--text); font-weight: 500; }
.ex-table .n { text-align: right; white-space: nowrap; color: var(--text); }
.ex-table tbody tr:last-child th, .ex-table tbody tr:last-child td { border-bottom: 0; }
.ex-table .total th, .ex-table .total td { color: var(--text); font-weight: 500; border-top: 1px solid var(--text-3); }
.ex-note { margin-top: 12px; max-width: 78ch; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.ex-sub { margin: var(--gap-block) 0 0; font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; }
.ex-sub + .rows { margin-top: 16px; }
.rows { list-style: none; margin: var(--gap-block) 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px var(--split-gap); padding: var(--pad-row) 0; border-bottom: 1px solid var(--line); }
.rows h3, .rows h4 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3-row); line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.rows p { max-width: var(--measure); font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.rows--tight li { padding: 16px 0; }
.textlink--inline { display: inline; min-height: 0; color: var(--text); }
@media (max-width: 900px) {
  .ex { grid-template-columns: minmax(0, 1fr); }
  .rows li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ex-facts > div { grid-template-columns: minmax(0, 1fr); }
}

/* The offer: steps, price, payback check */
.ex-steps { list-style: none; margin: var(--gap-block) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--cols-gap); }
.ex-steps li { padding-top: 16px; border-top: 1px solid var(--line); }
.ex-steps .n { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-3); }
.ex-steps h3 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3-row); line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 8px; }
.ex-steps p { font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.ex-price { margin-top: var(--gap-block); padding: var(--pad-row) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px var(--split-gap); align-items: start; }
.ex-price-fig { font-size: 15px; color: var(--text-2); }
.ex-price-fig .mono { display: block; font-family: var(--mono); font-weight: 500; font-size: var(--fs-figure); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--text); margin-bottom: 4px; }
.ex-price-terms { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap-list); }
.ex-price-terms li { max-width: var(--measure); font-size: 15px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.ex-calc { margin-top: var(--gap-block); padding: 24px; border: 1px solid var(--line); border-radius: 6px; }
.ex-calc h4 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3-row); line-height: 1.25; letter-spacing: -0.015em; }
.ex-calc-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px var(--cols-gap); }
.ex-calc label { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-label); line-height: 1.4; color: var(--text-3); }
.ex-calc input { min-height: 44px; padding: 0 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 5px; font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.ex-calc input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ex-calc-out { margin-top: 20px; max-width: var(--measure); font-size: 16px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
@media (max-width: 900px) {
  .ex-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--cols-gap); }
  .ex-price { grid-template-columns: minmax(0, 1fr); }
  .ex-calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ex-steps, .ex-calc-grid { grid-template-columns: minmax(0, 1fr); }
  .ex-calc { padding: 16px; }
}
