/* The Price Ledger — site-specific components, in the studio kit's idiom
   (tokens, hairlines, radius 0, four type roles). Loaded after studio.css + theme.css. */

/* jump links: a mono, ruled row of anchors */
.jump { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding-block: var(--space-4); border-top: 1px solid var(--g-text); border-bottom: 1px solid var(--g-rule); font-family: var(--font-data); font-size: var(--text-data-sm); letter-spacing: .06em; text-transform: uppercase; }
.jump a { color: var(--g-text); text-decoration: none; display: inline-flex; gap: .5em; align-items: baseline; min-height: 2rem; align-items: center; }
.jump a:hover { text-decoration: underline; text-underline-offset: .4em; }
.jump a span { color: var(--g-muted); }
[id] { scroll-margin-top: 1.5rem; }

/* the receipt in the home hero */
.receipt { border-top: 1px solid var(--g-text); padding-top: var(--space-4); }
.receipt__head { display: flex; justify-content: space-between; gap: var(--space-4); font-family: var(--font-data); font-size: var(--text-data-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--g-muted); margin-bottom: var(--space-3); }
.receipt__head strong { color: var(--g-text); font-weight: 500; }
.receipt .leaders .v { white-space: nowrap; }
.receipt .leaders .v b { font-weight: 500; }
.receipt .leaders .v .was { color: var(--g-muted); }
.receipt__foot { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.receipt__foot p { font-size: var(--text-small); color: var(--g-muted); max-width: 30rem; }
.receipt__foot p strong { color: var(--g-text); font-weight: 500; }

/* tables: small helpers */
.table td .spark, .table td.spark-cell .spark { width: 6.5rem; height: 1.5rem; color: var(--g-text); }
.table a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
.table a:hover { text-decoration-thickness: 2px; }
.table .unit { color: var(--g-muted); font-size: var(--text-small); white-space: nowrap; }
.table .first { color: var(--g-muted); font-family: var(--font-data); font-size: var(--text-data-sm); }
.table tbody th small { display: block; margin-top: .15rem; font-family: var(--font-body); font-size: var(--text-small); color: var(--g-muted); letter-spacing: 0; }
.table td.note { color: var(--g-muted); font-size: var(--text-small); min-width: 16rem; }
.table td .badge { white-space: nowrap; }
.na { color: var(--g-muted); }

/* item page: chart section and data notes */
.item-chart .fig__head strong { font-weight: 500; }
.notes-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--g-text); }
.notes-list li { padding-block: var(--space-4); border-bottom: 1px solid var(--g-rule); color: var(--g-muted); font-size: var(--text-small); }
.notes-list li strong { color: var(--g-text); font-weight: 500; }
.dl-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; margin-top: var(--space-5); }

/* policy ledger (pay less) */
.policies { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--g-text); container-type: inline-size; }
.policy { display: grid; gap: var(--space-2) var(--space-5); padding-block: var(--space-5); border-bottom: 1px solid var(--g-rule); grid-template-columns: minmax(0, 1fr); }
.policy__co { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-display-sm); line-height: 1.15; letter-spacing: -.01em; }
.policy__text { max-width: 40rem; }
.policy__foot { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; }
.policy__foot .link-label { min-height: 2rem; }
@container (min-width: 46rem) {
  .policy { grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr) auto; align-items: baseline; }
  .policy__foot { flex-direction: column; align-items: flex-end; gap: var(--space-1); }
}
.cat-intro { color: var(--g-muted); max-width: 34rem; }

/* checker (phone + streaming) */
.checker { display: grid; gap: var(--space-6); }
.checker__form { display: grid; gap: var(--space-5); align-content: start; }
.checker fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checker legend { padding: 0; margin-bottom: var(--space-3); }
.choice-list { display: grid; gap: 0; border-top: 1px solid var(--g-rule); }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding-block: var(--space-3); border-bottom: 1px solid var(--g-rule); cursor: pointer; min-height: var(--tap); }
.choice input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--accent); }
.choice__name { font-size: var(--text-small); }
.choice__name small { display: block; color: var(--g-muted); font-size: .8125rem; }
.choice__price { font-family: var(--font-data); font-size: var(--text-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice:has(input:checked) .choice__name { font-weight: 500; }
.check-inline { display: flex; gap: var(--space-3); align-items: center; min-height: var(--tap); cursor: pointer; }
.check-inline input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--accent); }
.input-money { position: relative; }
.input-money::before { content: "$"; position: absolute; left: 0; bottom: .95rem; font-family: var(--font-data); color: var(--g-muted); }
.input-money .input { padding-left: 1rem; font-family: var(--font-data); }
.results { border-top: 1px solid var(--g-text); container-type: inline-size; }
.results__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--g-rule); font-family: var(--font-data); font-size: var(--text-data-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--g-muted); }
.results__head strong { color: var(--g-text); font-weight: 500; }
.results__empty { padding-block: var(--space-5); color: var(--g-muted); font-size: var(--text-small); }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--g-rule); }
.result__name { font-family: var(--font-display); font-weight: var(--lead-weight); font-size: 1.25rem; line-height: 1.2; }
.result__name small { display: block; font-family: var(--font-data); font-size: var(--text-data-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--g-muted); margin-top: .25rem; }
.result__price { text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; font-size: 1.25rem; line-height: 1.2; white-space: nowrap; }
.result__price small { display: block; font-size: var(--text-data-xs); letter-spacing: .04em; color: var(--g-muted); }
.result__save { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.result__note { grid-column: 1 / -1; font-size: var(--text-small); color: var(--g-muted); max-width: 40rem; }
.result__note a { color: var(--g-text); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.save { font-family: var(--font-data); font-size: var(--text-data); font-variant-numeric: tabular-nums; }
.save.is-good { color: var(--down); }
.save.is-bad { color: var(--up); }
.total-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--g-rule); }
.total-band .numbers__value { font-size: var(--text-display-md); }
.js-only { display: none; }
.has-js .js-only { display: block; }
.has-js .no-js { display: none; }
@media (min-width: 64em) { .checker { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; } }
.svc-grid { display: grid; gap: var(--space-5); }
@media (min-width: 40em) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); } }
@media (min-width: 64em) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

/* changes ledger */
.dated { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--g-text); }
.dated li { display: grid; gap: var(--space-2); padding-block: var(--space-4); border-bottom: 1px solid var(--g-rule); }
.dated li p { max-width: 44rem; }

/* category rows on home */
.cat-meta { display: inline-flex; gap: var(--space-3); align-items: baseline; }

/* misc */
.lead-sm { font-family: var(--font-display); font-weight: var(--lead-weight); font-size: var(--text-display-sm); line-height: 1.35; max-width: 38rem; }
.center-close { text-align: center; display: grid; justify-items: center; gap: var(--space-5); }
.center-close .actions { justify-content: center; }
.prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-display-md); line-height: 1.1; letter-spacing: -.015em; }
.prose p, .prose li { max-width: 40rem; }
.prose .meta { margin-top: var(--space-2); }

/* kit fix: single-column splits must not grow to a wide child's min-content (tables) on phones */
@media (max-width: 55.99em) { .split { grid-template-columns: minmax(0, 1fr); } }

/* round 2 */
.prices-table .table { table-layout: fixed; }
.prices-table .table th:nth-child(1) { width: 34%; }
.prices-table .table th:nth-child(2), .prices-table .table th:nth-child(3), .prices-table .table th:nth-child(4) { width: 12%; }
.prices-table .table th:nth-child(5) { width: 14%; }
.prices-table .table th:nth-child(6) { width: 16%; }
.result .badge { font-family: var(--font-data); font-size: .6875rem; font-stretch: 100%; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--g-muted); border-color: var(--g-rule); padding: .2rem .45rem; }
.result .badge--accent { background: transparent; color: var(--up); border-color: color-mix(in srgb, var(--up) 55%, transparent); }
@media (min-width: 64em) {
  .checker--sticky-form .checker__form { position: sticky; top: 1.5rem; }
  .checker--sticky-results .results { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; overscroll-behavior: contain; }
}
.about-numbers .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
