/* CheapestGoldPrices.com: Budget Planner page styles.
   Everything is scoped under .bp (hero + main) so nothing leaks into the shared header/nav.
   Tokens are local to .bp; site tokens in main.css are untouched. */
.bp {
    --ch: #2C2C2C;
    --gold: #E8960C;
    --gold-ink: #8A5A00;
    --gold-bg: #FFF4DF;
    --paper: #FFFFFF;
    --line: #E3E0D8;
    --line-soft: #ECEAE4;
    --mut: #666666;
    --dim: #767676;
    --green: #1B7A3A;
    --font: 'Montserrat', system-ui, sans-serif;
    font-family: var(--font); color: var(--ch); font-size: 14px; line-height: 1.5;
}
.bp h1, .bp h2, .bp h3, .bp p, .bp ol, .bp ul, .bp dl, .bp dd { margin: 0; padding: 0; }
.bp [data-metal="gold"]      { --m: #E8960C; --ink: #8A5A00; --tint: #FBF1DD; }
.bp [data-metal="silver"]    { --m: #7F9AB5; --ink: #4F6B87; --tint: #EEF2F6; }
.bp [data-metal="platinum"]  { --m: #8E9BAE; --ink: #5B6779; --tint: #EEF0F4; }
.bp [data-metal="palladium"] { --m: #6B7FA3; --ink: #4A5F86; --tint: #ECEFF6; }
.bp a { color: inherit; }
.bp :where(button, input) { font: inherit; color: inherit; }
.bp .num { font-variant-numeric: tabular-nums; }
.bp .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.bp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.bp .dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--m); }
.bp :focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 2px; }
.bp-status { margin-top: 32px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--ch); font-size: 13px; line-height: 1.55; }
.bp-status[hidden] { display: none; }
.bp-status button { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; cursor: pointer; }
.bp-updated { margin-top: 12px; font-size: 12px; color: var(--mut); }
.bp-noscript { margin: 24px 0; padding: 14px 18px; background: #fff; border: 1px solid var(--line); }

/* ── Hero: charcoal, left-aligned (matches Resources revamp) ── */
.bp-hero { background: var(--ch); color: #fff; border-bottom: 3px solid var(--gold); }
.bp-hero .wrap { padding-top: 32px; }
.bp-hero h1 { font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.bp-hero p { margin: 10px 0 28px; max-width: 640px; font-size: 16px; color: #bbb; }

/* ── Numbered eyebrows + section heads ── */
.eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow b { color: var(--dim); font-weight: 700; }
.sec { margin-top: 48px; }
.sec-head { padding-top: 20px; border-top: 1px solid var(--line); margin-bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.3px; margin-top: 6px; }
.sec-head p { font-size: 13px; color: var(--mut); max-width: 460px; }
.list-note { margin: -8px 0 14px; font-size: 12px; line-height: 1.5; color: var(--mut); }

/* ── Setup sheet: three numbered columns on one sheet, hairline dividers ── */
.setup { margin-top: 32px; background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); }
.setup > div { padding: 22px 24px 24px; min-width: 0; }
.setup > div + div { border-left: 1px solid var(--line); }
.setup .eyebrow { margin-bottom: 14px; }

.money { display: flex; align-items: baseline; border-bottom: 2px solid var(--ch); }
.money span { font-size: 26px; font-weight: 800; color: var(--gold-ink); margin-right: 4px; }
.money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -1px; padding: 0 0 4px; font-variant-numeric: tabular-nums; }
.money:focus-within { border-bottom-color: var(--gold); }
.quick { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 8px; }
.quick button, .presets button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 0 5px; font-size: 13px; font-weight: 700; color: var(--mut); cursor: pointer; font-variant-numeric: tabular-nums; }
.quick button:hover, .presets button:hover { color: var(--ch); }
.quick button[aria-pressed="true"], .presets button[aria-pressed="true"] { color: var(--ch); border-bottom-color: var(--gold); }
.hint { font-size: 12px; color: var(--mut); margin-top: 12px; line-height: 1.55; }
.hint b { color: var(--ch); font-weight: 700; }
/* Overflow chooser: same 12px/400 as the hint line it sits in */
.roll { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--mut); }
.roll[hidden] { display: none; }
.roll > span { margin-right: 2px; }
.chip { height: 26px; padding: 0 11px; border: 1px solid #CFCBC2; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 400; color: var(--ch); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip .dot { width: 8px; height: 8px; }
.chip:hover { border-color: var(--ch); }
.chip[aria-pressed="true"] { background: var(--ch); border-color: var(--ch); color: #fff; }
.chip[aria-disabled="true"] { color: #AAA; border-style: dashed; background: transparent; cursor: not-allowed; }
.chip[aria-disabled="true"] .dot { opacity: .35; }
/* ── Quick setup (optional, inline, never a modal). Drives the real setup controls below. ── */
.guide { margin-top: 32px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--ch); padding: 20px 24px 18px; }
.guide[hidden], .guide-min[hidden], .g-step[hidden] { display: none; }
.g-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.g-prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px 0 16px; }
.g-prog i { height: 3px; background: var(--line); }
.g-prog i.on { background: var(--gold); }
.g-step h3 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.3px; outline: none; }
.g-step p { font-size: 13px; color: var(--mut); margin-top: 4px; }
.g-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-top: 16px; }
.g-opt { min-height: 52px; padding: 10px 14px; border: 1px solid #CFCBC2; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 700; color: var(--ch); cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.g-opt small { display: block; font-size: 12px; font-weight: 500; color: var(--mut); margin-top: 2px; }
.g-opt:hover { border-color: var(--ch); }
.g-opt[aria-pressed="true"] { background: var(--ch); border-color: var(--ch); color: #fff; }
.g-opt[aria-pressed="true"] small { color: #ccc; }
.g-other { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--mut); }
.g-other input { width: 140px; height: 44px; border: 1px solid #CFCBC2; border-radius: 8px; padding: 0 12px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.g-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.g-go { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ch); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.g-go:hover { background: #000; }
.g-link { background: none; border: 0; padding: 8px 0; font-size: 13px; font-weight: 700; color: var(--ch); cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.g-back { color: var(--mut); text-decoration: none; }
.g-foot[hidden] { display: none; }
.guide-min { margin-top: 24px; font-size: 13px; color: var(--mut); }

/* Deal-credit control, nested under "Prioritize deals" */
.dc { margin: 2px 0 10px 30px; font-size: 12px; color: var(--mut); line-height: 1.5; }
.dc[hidden] { display: none; }
.dc-set { display: flex; gap: 0; margin: 6px 0 4px; border: 1px solid #CFCBC2; border-radius: 999px; overflow: hidden; width: max-content; }
.dc-set button { background: #fff; border: 0; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.dc-set button + button { border-left: 1px solid #CFCBC2; }
.dc-set button[aria-pressed="true"] { background: var(--ch); color: #fff; }

.alloc-bar { display: flex; height: 14px; background: var(--line-soft); overflow: hidden; }
.alloc-bar i { display: block; height: 100%; background: var(--m); transition: width .2s ease; }
.alloc-bar i + i { box-shadow: inset 2px 0 0 var(--paper); }
.presets { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 6px 0 6px; }
.split-rows { display: grid; gap: 2px; }
.split-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px 84px; align-items: center; gap: 12px; min-height: 36px; }
.split-row label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.split-row input[type=range] { width: 100%; accent-color: var(--m); height: 24px; margin: 0; }
.pct { display: flex; align-items: baseline; border-bottom: 1px solid var(--line); }
.pct input { width: 100%; border: 0; outline: 0; background: transparent; text-align: right; font-size: 15px; font-weight: 700; padding: 4px 2px; font-variant-numeric: tabular-nums; }
.pct:focus-within { border-bottom-color: var(--gold); }
.pct span { font-size: 12px; color: var(--mut); font-weight: 600; }
.split-usd { font-size: 12px; color: var(--mut); text-align: right; font-variant-numeric: tabular-nums; }

.chk { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.chk:first-of-type { border-top: 0; padding-top: 0; }
.chk input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1.5px solid #8C8880; border-radius: 4px; background: #fff center / 12px 12px no-repeat; cursor: pointer; }
.chk input:checked { background-color: var(--ch); border-color: var(--ch); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chk strong { font-size: 13px; font-weight: 700; }
.chk small { grid-column: 2; font-size: 12px; color: var(--mut); line-height: 1.45; }
.chk .junk-ira { display: none; }
.chk.is-off { cursor: default; }
.chk.is-off input, .chk.is-off strong { opacity: .45; cursor: default; }
.chk.is-off .junk-ira { display: inline; }
.spot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--mut); line-height: 1.7; }
.spot b { color: var(--ch); font-weight: 700; }

/* ── Plan comparison board ── */
.plans { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); }
.plan { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--paper); border: 0; border-top: 3px solid transparent; padding: 18px 20px 16px; cursor: pointer; min-width: 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan:hover { background: #FAF9F6; }
.plan[aria-checked="true"] { border-top-color: var(--ch); background: var(--paper); }
.plan[aria-checked="true"]::after { content: "Showing below"; position: absolute; top: 10px; right: 14px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-ink); }
.plan-k { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
.plan-name { font-size: 17px; font-weight: 800; margin-top: 4px; letter-spacing: -0.2px; }
.plan-blurb { font-size: 12px; color: var(--mut); margin-top: 2px; min-height: 36px; line-height: 1.5; }
.plan dl { margin-top: 12px; border-top: 1px solid var(--line-soft); }
.plan dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.plan dt { color: var(--mut); display: flex; align-items: center; gap: 6px; min-width: 0; }
.plan dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.plan dd.best { box-shadow: inset 0 -2px 0 var(--gold); }
.plan .delta { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--mut); }
.plan .delta b { color: var(--ch); }
.plan .delta.zero { color: var(--green); font-weight: 600; }
.plans-key { margin-top: 8px; font-size: 11px; color: var(--mut); }
.plans-key i { display: inline-block; width: 18px; height: 2px; background: var(--gold); vertical-align: 3px; margin-right: 6px; }

/* ── Shopping list (ledger) ── */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--paper); padding: 12px 16px; font-size: 13px; line-height: 1.55; margin-bottom: 12px; }
.callout b { font-weight: 700; }
.callout.info { border-left-color: var(--ch); }
.bp-volume { margin-top: 12px; }
.ledger { background: var(--paper); border: 1px solid var(--line); }
.l-head, .l-row { display: grid; grid-template-columns: 56px 56px minmax(0, 1fr) 120px 120px 88px 190px; column-gap: 16px; align-items: center; padding: 0 20px; }
.l-head { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.l-head .r, .l-row .r { text-align: right; }
.l-group { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 20px 8px; border-top: 1px solid var(--line); }
.l-group:first-of-type { border-top: 0; }
.l-group h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); }
.l-group span { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.l-row { padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--line-soft); }
.l-group + .l-row { border-top: 0; }
/* Quantity counter: filled charcoal box, white tabular numerals, gold "x". Scans down the column. */
.l-qty { display: inline-flex; align-items: baseline; justify-content: center; justify-self: start; min-width: 44px; height: 34px; padding: 0 8px; border-radius: 6px; background: var(--ch); color: #fff; font-size: 18px; line-height: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; }
.l-qty small { font-size: 12px; color: var(--gold); font-weight: 800; margin-left: 2px; }
.l-name { font-size: 15px; font-weight: 700; line-height: 1.35; }
/* Product thumbnail: fixed square, white stage + hairline (many catalog photos are on white).
   The weight label sits underneath and shows if the image is missing or fails (.no-img). */
.th { --th: 56px; position: relative; display: flex; align-items: center; justify-content: center; flex: none; width: var(--th); height: var(--th); border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; overflow: hidden; }
.th b { font-size: 11px; line-height: 13px; font-weight: 800; color: var(--ink, var(--mut)); text-align: center; padding: 0 2px; }
.th img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; object-fit: contain; opacity: 0; transition: opacity .16s ease; }
.th.has-img img { opacity: 1; }
.th.has-img b { visibility: hidden; }
.th.no-img { background: var(--tint, #F1F0EC); border-color: transparent; }
.th.no-img img { display: none; }
.th--sm { --th: 32px; border-radius: 6px; }
.th--sm b { font-size: 9px; line-height: 10px; }
.th--sm img { padding: 2px; }
.l-meta { font-size: 12px; color: var(--mut); margin-top: 2px; }
.l-meta .ira { color: var(--ch); font-weight: 600; }
.l-why { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--ch); }
.l-why em { font-style: normal; color: var(--mut); }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill--alert { color: var(--gold-ink); background: var(--gold-bg); }
.pill--super { color: var(--ch); background: var(--gold); }
.l-num { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.l-num small { display: block; font-size: 11px; color: var(--mut); font-weight: 600; }
.l-line { font-weight: 800; }
.l-cta { justify-self: end; font-size: 13px; font-weight: 700; white-space: normal; text-align: right; min-width: 0; overflow-wrap: anywhere; color: var(--ch); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 5px; }
.l-cta:hover { text-decoration-color: var(--ch); }
.l-cta svg { width: 11px; height: 11px; flex: none; }
.l-lbl { display: none; }

.totals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; padding: 18px 20px 20px; border-top: 2px solid var(--ch); }
.totals dl div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.totals dt { color: var(--mut); }
.totals dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.totals .grand dt, .totals .grand dd { color: var(--ch); font-weight: 800; font-size: 15px; }
.left-note { font-size: 13px; line-height: 1.6; color: var(--ch); }
.left-note p + p { margin-top: 8px; }
.left-note .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; }
.btn-line { background: none; border: 1.5px solid var(--ch); border-radius: 999px; height: 36px; padding: 0 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-line:hover { background: var(--ch); color: #fff; }
.copied { font-size: 12px; color: var(--green); font-weight: 600; }
/* Add-on suggestions: one primary line, at most one quiet alternative */
.addons { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.addon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; padding: 5px 0; font-size: 13px; }
.addon.alt { font-size: 12px; color: var(--mut); }
.addon > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.addon .th--sm { margin-right: 2px; }
.addon b { font-weight: 800; color: var(--ch); font-variant-numeric: tabular-nums; }
.addon .gain { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.apply { background: none; border: 0; padding: 2px 0; font-size: 13px; font-weight: 700; color: var(--ch); cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.apply:hover { text-decoration-color: var(--ch); }
.addon.alt .apply { font-size: 12px; }

.empty { background: var(--paper); border: 1px solid var(--line); padding: 32px 24px; font-size: 14px; line-height: 1.6; }
.empty strong { display: block; font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.legal { margin: 28px 0 48px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--mut); }
.legal p + p { margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 1060px) {
    .setup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .setup > #s-split { grid-column: 1 / -1; grid-row: 2; border-left: 0; border-top: 1px solid var(--line); }
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan:nth-child(odd) { border-left: 0; }
    .plan:nth-child(n+3) { border-top-width: 3px; box-shadow: inset 0 1px 0 var(--line); }
    .l-head, .l-row { grid-template-columns: 48px 56px minmax(0, 1fr) 108px 108px 80px; }
    .l-head .h-cta { display: none; }
    .l-cta { grid-column: 3 / -1; justify-self: start; margin-top: 8px; }
}
@media (max-width: 760px) {
    .bp .wrap { padding: 0 16px; }
    .bp-hero h1 { font-size: 26px; }
    .bp-hero p { font-size: 14px; margin-bottom: 20px; }
    .setup { grid-template-columns: minmax(0, 1fr); }
    .setup > div { padding: 18px 16px 20px; }
    .setup > div + div, .setup > #s-split { grid-column: auto; grid-row: auto; border-left: 0; border-top: 1px solid var(--line); }
    .money input { font-size: 34px; }
    .guide { padding: 16px 16px 14px; margin-top: 20px; }
    .g-step h3 { font-size: 19px; }
    .g-opts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .g-long { display: none; }
    .split-row { grid-template-columns: 84px minmax(0, 1fr) 56px; }
    .split-usd { display: none; }
    .sec { margin-top: 36px; }
    .sec-head h2 { font-size: 20px; }
    .plan { padding: 14px 12px 12px; }
    .plan-name { font-size: 15px; }
    .plan-blurb { display: none; }
    .plan[aria-checked="true"]::after { content: none; }
    .plan dl div { font-size: 11px; padding: 5px 0; }
    .l-head { display: none; }
    .l-group { padding: 14px 16px 6px; }
    .l-row { grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "qty item item" "th unit unit" "th line oz" ". cta cta"; row-gap: 6px; padding: 14px 16px; column-gap: 12px; }
    .l-qty { grid-area: qty; align-self: start; min-width: 38px; height: 30px; line-height: 30px; font-size: 16px; padding: 0 6px; }
    .l-item { grid-area: item; }
    .l-row > .th { grid-area: th; --th: 42px; align-self: start; border-radius: 6px; }
    .l-row > .th img { padding: 3px; }
    .l-row > .th b { font-size: 10px; }
    .l-unit { grid-area: unit; text-align: left !important; }
    .l-tot { grid-area: line; }
    .l-oz { grid-area: oz; text-align: left !important; }
    .l-tot { text-align: left !important; }
    .l-cta { grid-area: cta; margin-top: 2px; }
    .l-lbl { display: inline; font-size: 11px; color: var(--mut); font-weight: 600; margin-right: 4px; }
    .l-num small { display: inline; margin-left: 4px; }
    .totals { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
    .totals > dl { order: -1; }
}
@media (max-width: 400px) {
    .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .plan dt .dot { display: none; }
    .quick, .presets { gap: 0 11px; }
    .quick button, .presets button { font-size: 12px; }
    .split-row { grid-template-columns: 88px minmax(0, 1fr) 50px; gap: 8px; }
    .split-row label { font-size: 12px; gap: 6px; }
}

/* Quick-setup slot: space is reserved before first paint (head script sets html.bp-first / html.bp-seen).
   Without JS neither class exists and the slot is empty, so no blank block appears. */
.guide-slot { display: flow-root; }
html.bp-first .guide-slot { min-height: 288px; }   /* full card + its 32px top margin */
html.bp-seen .guide-slot { min-height: 60px; }     /* one-line link + its 24px top margin */
@media (max-width: 760px) { html.bp-first .guide-slot { min-height: 408px; } }

/* Share menu: inline row of pills under the Copy/Share buttons (no popover, so it fits at 360px) */
.share-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-menu[hidden] { display: none; }
.share-item { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #CFCBC2; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--ch); text-decoration: none; cursor: pointer; }
.share-item:hover { border-color: var(--ch); background: #FAF6EE; }
.share-url { flex: 1 1 100%; min-width: 0; height: 36px; border: 1px solid #CFCBC2; border-radius: 6px; padding: 0 10px; font-size: 12px; }
.share-url[hidden] { display: none; }


/* ── Phones: stacked plan cards are separate bordered cards; larger tap targets ── */
@media (max-width: 760px) {
    .plans { grid-template-columns: minmax(0, 1fr); gap: 14px; border: 0; background: none; }
    .plans .plan, .plans .plan + .plan, .plans .plan:nth-child(odd), .plans .plan:nth-child(n+3) {
        border: 1px solid var(--line); border-top: 3px solid var(--line); box-shadow: none; padding: 16px 16px 14px; }
    .plans .plan[aria-checked="true"] { border-top-color: var(--ch); }
    .plan-blurb { display: block; min-height: 0; }
    .plan[aria-checked="true"]::after { content: "Showing below"; }
    .plan dl div { font-size: 12px; }
    .plan dt .dot { display: inline-block; }
    .quick, .presets { gap: 0 4px; }
    .quick button, .presets button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
    .chip { min-height: 36px; height: auto; padding: 0 14px; font-size: 13px; }
    .chk { grid-template-columns: 24px minmax(0, 1fr); padding: 14px 0; }
    .chk input { width: 24px; height: 24px; background-size: 15px 15px; margin: 0; }
    .split-row { min-height: 44px; }
    .split-row input[type=range] { height: 32px; }
    .pct input { min-height: 36px; font-size: 16px; }
    .g-link, .apply, .btn-line, .share-item { min-height: 44px; }
    .apply, .g-link { display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
    .btn-line { height: 44px; }
    .l-cta { min-height: 44px; }
}

/* Shared-plan banner */
.bp-banner { display: none; margin-top: 24px; position: relative; padding: 12px 48px 12px 16px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); font-size: 13px; line-height: 1.55; }
html.bp-shared .bp-banner { display: block; }
.bp-banner:not([hidden]) { display: block; }
.bp-banner[hidden] { display: none !important; }
.bp-banner .g-link { padding: 0; margin-left: 6px; }
.bp-banner-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--mut); }
@media (max-width: 760px) { .bp-banner .g-link { min-height: 44px; display: inline-flex; align-items: center; } }

.share-item { gap: 8px; }
.share-ico { flex: none; width: 16px; height: 16px; }

/* Sticky "See plans" bar: phones only, fixed so it never shifts layout */
.bp-sticky { display: none; }
@media (max-width: 760px) {
    .bp-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: var(--ch); border-top: 2px solid var(--gold);
        padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(110%); visibility: hidden; transition: transform .18s ease, visibility 0s linear .18s; }
    .bp-sticky.on { transform: none; visibility: visible; transition: transform .18s ease; }
    .bp-sticky a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px; color: #fff; text-decoration: none; }
    .bp-sticky-text { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .bp-sticky-cta { flex: none; padding: 0 14px; height: 36px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--gold); color: var(--ch); font-size: 13px; font-weight: 800; }
    .bp-sticky a:focus-visible { outline-color: #fff; outline-offset: -4px; }
}
@media (prefers-reduced-motion: reduce) { .bp-sticky, .bp-sticky.on { transition: none; } }

/* Typed split that does not total 100 yet */
.split-total { margin-top: 10px; padding: 8px 12px; background: var(--gold-bg); border-left: 3px solid var(--gold); font-size: 12px; line-height: 1.5; color: var(--ch); }
.split-total[hidden] { display: none; }
.split-total .g-link { padding: 0 0 0 4px; font-size: 12px; }
