/* Reusable components. One block per component; modifiers use --. */

/* Buttons. Teal acts on this site; navy with the arrow always leaves for a provider and
   is always followed by a disclosure line. Pills, 46px tall (44px minimum target). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .55rem 1.25rem; border-radius: var(--pill); border: 1.5px solid transparent; font: 700 1rem/1.15 var(--sans); text-decoration: none; cursor: pointer; white-space: normal; text-align: center; }
.btn--primary { background: var(--teal-700); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--secondary { background: var(--paper); color: var(--teal-700); border-color: var(--teal-700); }
.btn--secondary:hover { background: var(--teal-50); color: var(--teal-800); }
.btn--merchant { background: var(--ink); color: #fff; }
.btn--merchant:hover { background: var(--teal-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--saffron-400); color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: oklch(1 0 0 / 0.55); }
.btn--outline-light:hover { background: oklch(1 0 0 / 0.1); color: #fff; }
.btn--sm { min-height: var(--tap); padding: .35rem 1rem; font-size: .93rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn__icon { width: 1em; height: 1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* Form controls */
.field { display: grid; gap: .4rem; margin-bottom: var(--s4); }
.field__label, .fieldset__legend { font-weight: 700; color: var(--ink); font-size: .97rem; line-height: 1.3; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); margin: 0; line-height: 1.45; }
.field__error { font-size: var(--fs-sm); color: var(--danger); font-weight: 600; margin: 0; }
.input, .select { width: 100%; min-height: 46px; padding: .5rem .85rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: 500 1rem/1.3 var(--sans); }
.select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23505c6c' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; cursor: pointer; }
.input:hover, .select:hover { border-color: var(--slate); }
.input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-50); }
.input--money { max-width: 9rem; }
.input-prefix { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.fieldset { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.fieldset__legend { padding: 0; margin-bottom: .5rem; }

/* Segmented control (radio group): a pill track, the chosen option in navy. */
.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, auto); gap: 2px; max-width: 100%; padding: 3px; border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: var(--paper); }
.segmented--full { display: grid; width: 100%; grid-auto-columns: minmax(0, 1fr); }
.segmented label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; min-height: 38px; padding: .3rem 1rem; border-radius: var(--pill); cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.segmented label:hover { background: var(--surface); }
.segmented input { position: absolute; opacity: 0; inset: -3px 0; margin: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--ink); color: #fff; }
.segmented:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.segmented label:has(input:focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 30rem) { .segmented { grid-auto-columns: minmax(0, 1fr); } .segmented label { padding-inline: .6rem; } }

/* Choice chips (checkbox group): a ticked box inside a pill. --radio drops the box. */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 1rem 0 .85rem; border: 1.5px solid var(--line-strong); border-radius: var(--pill); background: var(--paper); cursor: pointer; font-weight: 600; font-size: .95rem; line-height: 1.2; color: var(--ink-2); }
.chip:hover { border-color: var(--slate); }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip::before { content: ""; width: 1rem; height: 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-xs); flex: none; background: var(--paper); }
.chip:has(input:checked) { border-color: var(--teal-700); background: var(--teal-50); color: var(--teal-700); box-shadow: inset 0 0 0 1px var(--teal-700); }
.chip:not(.chip--radio):has(input:checked)::before { background: var(--teal-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--teal-700); }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip--radio::before { border-radius: 50%; }
.chip--radio:has(input:checked)::before { background: radial-gradient(circle, var(--teal-700) 0 38%, var(--paper) 44%); }
.chip__count { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Cost status: the vocabulary of honesty. Text plus a glyph, never colour alone. */
.status { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .6rem; border-radius: var(--pill); font: 700 .78rem/1.6 var(--sans); white-space: nowrap; vertical-align: .1em; }
.status .icon { width: 12px; height: 12px; }
.status--verified, .status--complete { color: var(--teal-700); background: var(--teal-50); }
.status--estimate { color: var(--saffron-700); background: var(--saffron-50); }
.status--unknown, .status--incomplete { color: var(--slate); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.status--included { color: var(--blue-700); background: var(--blue-50); }
.status--user_input { color: var(--orchid-700); background: var(--orchid-50); }
.status--unavailable { color: var(--muted); background: var(--surface); }

/* Data confidence: three bars and a word (low uses saffron). */
.conf { display: inline-flex; align-items: center; gap: .45rem; font: 600 .82rem/1.2 var(--sans); color: var(--slate); white-space: nowrap; }
.conf__bars { display: inline-flex; gap: 2px; }
.conf__bar { width: 4px; height: 12px; border-radius: 1px; background: var(--line); }
.conf--high .conf__bar, .conf--medium .conf__bar:nth-child(-n+2) { background: var(--teal-700); }
.conf--low .conf__bar:first-child { background: var(--saffron-700); }

/* Badges: facts about a provider or placement. */

/* Provider marker (A–D): one per triad hue plus blue; ties columns, chips and cards together. */
.marker { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 7px; color: #fff; font: 700 .8rem/1 var(--sans); flex: none; background: var(--teal-700); }
.marker--b { background: var(--saffron-700); } .marker--c { background: var(--orchid-700); } .marker--d { background: var(--blue-700); }

/* Notices: tinted panels; drafts also carry a red edge. */
.notice { background: var(--teal-50); color: var(--ink-2); padding: var(--s4) var(--s5); border-radius: var(--r-md); margin-bottom: var(--s5); }
.notice > :last-child { margin-bottom: 0; }
.notice__title { font-weight: 700; color: var(--ink); margin-bottom: .25rem; }
.notice--warn { background: var(--saffron-50); }
.notice--draft { background: var(--danger-50); box-shadow: inset 4px 0 0 var(--danger); }
.notice--quiet { background: var(--surface); }
.notice--how { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: var(--s4); align-items: start; }
.notice--how::before { content: "i"; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--ink); color: #fff; font: 700 .95rem/1 var(--serif); }

/* Inline affiliate disclosure placed next to merchant CTAs. */
.disclosure-inline { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; margin: var(--s2) 0 0; }
.disclosure-inline a { color: var(--slate); }

/* Accordion (details/summary). */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: var(--tap); padding: var(--s4) 0; cursor: pointer; font-weight: 700; color: var(--ink); }
.accordion__item > summary::-webkit-details-marker { display: none; }
.accordion__item > summary::after, .faq > summary::after { content: "+"; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--surface); color: var(--ink); font-weight: 700; flex: none; }
.accordion__item[open] > summary::after, .faq[open] > summary::after { content: "−"; }
.accordion__body { padding: 0 0 var(--s4); color: var(--ink-2); max-width: var(--measure); }
.accordion__body > :last-child { margin-bottom: 0; }
.card > .accordion { border-top-color: transparent; }
.card > .accordion > .accordion__item:last-child { border-bottom: 0; }

/* The cost receipt: the signature component. Ledger lines with dotted leaders, grouped
   by who you pay, closed by an accounting double rule (or "No total" + the known part). */
.receipt { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); padding: clamp(1.25rem, 2vw, 1.75rem); box-shadow: var(--shadow); }
.receipt__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s2); }
.receipt__title { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
.receipt__group { margin: var(--s4) 0 0; }
.receipt__group-title { font: 700 .8rem/1 var(--sans); letter-spacing: .01em; color: var(--slate); margin: 0 0 var(--s1); }
.receipt__lines { list-style: none; padding: 0; margin: 0; }
.receipt__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem var(--s4); padding: .6rem 0; border-bottom: 1px dotted var(--line-strong); }
.receipt__line + .receipt__line { margin-top: 0; }
.receipt__label { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; font-weight: 600; }
.receipt__amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.receipt__amount--unknown { color: var(--muted); }
.receipt__note { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; margin: 0; }
.receipt__total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--s3); margin-top: var(--s5); padding-top: var(--s3); border-top: 4px double var(--ink); }
.receipt__total-label { font-weight: 700; }
.receipt__total-amount { font: 700 var(--fs-2xl)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.receipt__known { color: var(--slate); font-size: .95rem; text-align: right; }
.receipt__known strong { font-size: var(--fs-lg); color: var(--ink); }
.receipt__years { display: flex; gap: var(--s2) var(--s5); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--slate); margin: var(--s3) 0 0; }
/* Summary strip: set-up, year 1, each later year, the horizon. */
.receipt__strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: var(--s3); margin: var(--s3) 0 var(--s2); padding: var(--s3) var(--s4); background: var(--surface); border-radius: var(--r-md); }
.receipt__strip div { display: grid; gap: .15rem; margin: 0; }
.receipt__strip dt { font: 600 var(--fs-xs)/1.3 var(--sans); color: var(--slate); }
.receipt__strip dd { margin: 0; font: 700 1.15rem/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.receipt__strip-total dd { color: var(--teal-700); }
/* "How this total was calculated": collapsed by default, one row per line with kind, status and source. */
.receipt__how { margin-top: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s3); font-size: var(--fs-sm); }
.receipt__how > summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); cursor: pointer; font-weight: 700; color: var(--teal-700); }
.receipt__how > summary::-webkit-details-marker { display: none; }
.receipt__how > summary::before { content: "+"; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--teal-50); font-weight: 700; }
.receipt__how[open] > summary::before { content: "−"; }
.receipt__how-body { color: var(--ink-2); }
.receipt__how-body p { margin: var(--s2) 0 var(--s3); }
.receipt__trace { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.receipt__trace th, .receipt__trace td { padding: .45rem .5rem .45rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.receipt__trace thead th { font-weight: 700; color: var(--slate); }
.receipt__trace th[scope=row] { font-weight: 600; color: var(--ink); }
.receipt__how-foot { font-size: var(--fs-xs); color: var(--muted); margin: var(--s3) 0 0 !important; }
@media (max-width: 40rem) { .receipt__trace thead { display: none; } .receipt__trace tr, .receipt__trace th, .receipt__trace td { display: block; } .receipt__trace td { padding-top: 0; border-bottom: 0; } .receipt__trace th[scope=row] { border-bottom: 0; padding-bottom: .1rem; } .receipt__trace tr { border-bottom: 1px solid var(--line); padding-bottom: .4rem; } }

/* Cost bar (SVG, CSP-safe): provider fees teal, state fees navy, unknown hatched,
   advertised price as a saffron pin. Widths are percentages of the row's scale. */
.cbar { display: block; width: 100%; height: 26px; overflow: visible; }
.cbar__track { fill: var(--surface); }
.cbar__p { fill: var(--teal-700); }
.cbar__s { fill: var(--ink-2); }
.cbar__o { fill: var(--orchid-700); }
.cbar__pin { fill: var(--saffron-400); stroke: var(--ink); stroke-width: 1; }
.cbar__sep { fill: var(--paper); }
.hatch-stroke { fill: var(--line-strong); }
.keys { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.keys li + li { margin-top: 0; }
.key { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); color: var(--slate); }
.key__sw { width: 1.15rem; height: .65rem; border-radius: var(--pill); flex: none; }
.key__sw--p { background: var(--teal-700); }
.key__sw--s { background: var(--ink-2); }
.key__sw--o { background: var(--orchid-700); }
.key__sw--u { background: repeating-linear-gradient(135deg, var(--line-strong) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px var(--line); }
.key__sw--pin { width: 4px; height: 1.15rem; border-radius: 2px; background: var(--saffron-400); }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); padding: var(--s5); }
/* The card's padding is its only inset: a heading's own top margin (e.g. .review__article h3) or a
   paragraph's bottom margin must not add to it. */
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
/* Link cards are a column, so a meta line (date, byline) can sit on the card's bottom edge and line
   up across a row of cards of different text lengths. */
.card--link { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.card--link > .card__meta:last-child { margin-top: auto; padding-top: var(--s3); }
.card--link:hover { border-color: var(--teal-700); box-shadow: 0 0 0 1px var(--teal-700); color: inherit; }
.card--link:hover .card__title { color: var(--teal-700); text-decoration: underline; }
.card__title { font-family: var(--sans); font-size: var(--fs-lg); font-weight: 700; margin: 0 0 var(--s2); color: var(--ink); }
/* Guide and article cards set their title in the display serif, like the guides index and the
   head-to-head matchups they sit next to. */
.card--link .card__title { font: 600 1.3rem/1.2 var(--serif); letter-spacing: -0.01em; }
.card__meta { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.grid { display: grid; gap: var(--s5); }
/* At most three columns (the minimum track grows to a third of the row), so six items never break
   4 + 2 and seven never 4 + 3 at wide sizes; two columns from 40rem, one below. */
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(19rem, calc((100% - 2 * var(--s5)) / 3))), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

/* Steps: a real sequence, so the numbers carry meaning. One triad hue per step. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s5); grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps > li { counter-increment: step; margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); padding: var(--s5); }
.step__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.step__n { font: 600 1.2rem/1 var(--serif); color: var(--muted); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--fs-md); margin-bottom: var(--s2); }
.steps p { color: var(--slate); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 68rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Definition list for provider facts. */
.facts { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: var(--s3) 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-weight: 700; padding-right: var(--s4); color: var(--ink); }
.facts dd { color: var(--ink-2); }
@media (max-width: 36rem) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* Sources list */
.sources { font-size: var(--fs-sm); color: var(--slate); padding-left: 1.1rem; }
.sources li { margin-top: var(--s2); }

/* Tables of figures (state fees, year by year, review pricing). */
.year-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .97rem; }
.year-table th, .year-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.year-table th:first-child, .year-table td:first-child { text-align: left; padding-left: 0; }
.year-table thead th { font: 700 .8rem/1.2 var(--sans); color: var(--slate); border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.year-table tfoot td, .year-table tfoot th { font-weight: 700; border-top: 4px double var(--ink); border-bottom: 0; }
.year-table--left th, .year-table--left td { text-align: left; }
/* Figures then a source column: the table keeps the figures together and reads its last column as text
   (left-aligned), instead of spreading four numbers and a right-aligned sentence across 1280px. */
.year-table--sources { max-width: 66rem; }
.year-table--sources th:last-child, .year-table--sources td:last-child { text-align: left; }
@media (min-width: 48rem) { .year-table--sources th:last-child, .year-table--sources td:last-child { padding-left: var(--s6); min-width: 17rem; } }
.table-scroll { overflow-x: auto; position: relative; } /* positioned, so visually-hidden (absolute) descendants stay inside the clip */
.table-scroll:focus-visible { outline: 3px solid var(--focus); }

/* States: loading, empty, error. */
turbo-frame[busy] .results, turbo-frame[busy] .calc__results { opacity: .55; transition: opacity .15s; pointer-events: none; }
turbo-frame[busy]::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--teal-700) 0 30%, var(--teal-50) 30%); background-size: 200% 100%; animation: loadbar 1s linear infinite; }
@keyframes loadbar { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--line) 50%, var(--surface) 100%); background-size: 200% 100%; animation: loadbar 1.4s ease-in-out infinite; border-radius: var(--r-xs); height: 1rem; }
.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: var(--s6); background: var(--paper); }
.empty h2, .empty h3 { font: 700 var(--fs-lg)/1.3 var(--sans); margin-bottom: var(--s2); }
.error-summary { border: 2px solid var(--danger); border-radius: var(--r-md); padding: var(--s3) var(--s4); background: var(--danger-50); margin-bottom: var(--s4); }
.error-summary h2 { font: 700 var(--fs-md)/1.3 var(--sans); margin: 0 0 var(--s1); color: var(--danger); }

/* Compare tray: a navy pill floating at the bottom once something is selected. On the
   directory at wide sizes the "Your comparison" rail replaces it. */
.tray { position: fixed; left: 0; right: 0; bottom: var(--s4); z-index: 40; pointer-events: none; }
.tray__inner { pointer-events: auto; width: min(64rem, calc(100% - 2 * var(--gut))); margin-inline: auto; display: flex; align-items: center; gap: var(--s3); background: var(--ink); color: #fff; border-radius: var(--pill); box-shadow: var(--shadow-lg); padding: .55rem .6rem .55rem 1.4rem; }
.tray :focus-visible { outline-color: var(--focus-on-dark); }
.tray__label { font-weight: 700; white-space: nowrap; }
.tray__chips { display: flex; gap: var(--s2); flex-wrap: nowrap; overflow: hidden; list-style: none; padding: 0; margin: 0; flex: 1 1 auto; min-width: 0; }
.tray__chips li + li { margin-top: 0; }
.tray__chip { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .25rem .2rem .3rem; border-radius: var(--pill); background: oklch(1 0 0 / 0.12); font-weight: 600; font-size: .9rem; }
.tray__remove, .rail__remove { position: relative; }
.tray__remove::after, .rail__remove::after, .cmp__remove::after { content: ""; position: absolute; inset: -6px; }
.tray__remove { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: oklch(1 0 0 / 0.14); cursor: pointer; color: #fff; font-size: 1.05rem; }
.tray__remove:hover { background: oklch(1 0 0 / 0.28); }
.tray__hint { font-size: var(--fs-xs); color: var(--on-ink-muted); margin: 0; }
.tray .btn--ghost { color: #fff; border-color: oklch(1 0 0 / 0.4); }
.tray .btn--ghost:hover { background: oklch(1 0 0 / 0.1); color: #fff; }
.has-tray { padding-bottom: 6rem; }
html:has(.has-tray) { scroll-padding-bottom: 6rem; }
@media (max-width: 64rem) {
  .tray__chips, .tray__hint { display: none; }
  .tray__label { flex: 1; }
}
@media (max-width: 48rem) {
  .tray { bottom: var(--s3); }
  .tray__inner { border-radius: var(--r-lg); padding: .6rem .6rem .6rem 1rem; }
  .tray__label { font-size: var(--fs-sm); white-space: normal; }
}

/* Event debug panel (prototype only, ?debug_events=1). */
.event-log { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; width: min(26rem, calc(100vw - 2rem)); max-height: 40vh; overflow: auto; background: var(--ink); color: var(--on-ink); font: .78rem/1.4 ui-monospace, monospace; border-radius: var(--r-sm); padding: var(--s3); box-shadow: var(--shadow-lg); }
.event-log ol { margin: 0; padding-left: 1.2rem; }

/* Inline icons (Lucide, IconsHelper#lucide): sized by attribute, coloured by context. */
.icon { display: inline-block; flex: none; vertical-align: -0.15em; }

/* Icon tiles: one icon in a tinted rounded square. The tone says what kind of thing it is:
   teal money and costs, saffron warnings and hidden costs, orchid sources and method, ink the final step. */
.itile { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); flex: none; }
.itile--sm { width: 36px; height: 36px; }
.itile--teal { background: var(--teal-50); color: var(--teal-700); }
.itile--saffron { background: var(--saffron-50); color: var(--saffron-700); }
.itile--orchid { background: var(--orchid-50); color: var(--orchid-700); }
.itile--ink { background: var(--ink); color: #fff; }
.hero .itile--teal, .band--ink .itile--teal, .site-footer .itile--teal { background: oklch(1 0 0 / 0.1); color: var(--teal-400); }
.hero .itile--saffron, .band--ink .itile--saffron, .site-footer .itile--saffron { background: oklch(1 0 0 / 0.1); color: var(--saffron-400); }
.hero .itile--orchid, .band--ink .itile--orchid, .site-footer .itile--orchid { background: oklch(1 0 0 / 0.1); color: var(--orchid-400); }

/* Provider logo tiles: the same white box for every brand (24 in rows and tables, 40 on cards
   and headers, 56 on the review hero), 1px line, r-sm. A neutral monogram sits behind the image,
   so a missing or failed logo degrades to the provider's initial without JavaScript. */
.plogo { position: relative; display: inline-grid; place-items: center; flex: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; vertical-align: middle; }
.plogo::before { content: attr(data-mono); position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); font: 700 .5em/1 var(--sans); }
.plogo__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.plogo--dark, .plogo--dark .plogo__img { background: var(--ink); border-color: var(--ink); }
.plogo--24 { width: 24px; height: 24px; font-size: 24px; } .plogo--24 .plogo__img { padding: 2px; }
.plogo--40 { width: 40px; height: 40px; font-size: 40px; } .plogo--40 .plogo__img { padding: 6px; }
.plogo--56 { width: 56px; height: 56px; font-size: 56px; } .plogo--56 .plogo__img { padding: 8px; }
