/* Commission guide page: money tables + saving calculator */
.money-wrap { border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.prose .money { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.prose .money th, .prose .money td { border: 0; border-top: 1px solid var(--line); padding: 13px 16px; text-align: left; }
.prose .money thead th { border-top: 0; background: var(--bg); font-size: 13px; font-weight: 800; letter-spacing: .4px; color: var(--muted); }
.prose .money .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose .money .ours { background: var(--green-soft); }
.prose .money thead .ours { color: var(--green); }
.prose .money tfoot td { font-weight: 800; color: var(--navy); background: var(--bg); }
.prose .money tfoot .ours, .t-green { color: var(--green); }
.prose .money tfoot .ours { background: var(--green-soft); }
.t-red { color: var(--red); }

.calc { margin-top: 8px; background: var(--navy); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 24px; color: var(--white); scroll-margin-top: 96px; }
.calc-tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--orange-ink); background: var(--gold); border-radius: 6px; padding: 4px 9px; }
.calc-h { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 800; color: var(--white); }
.calc-sub { font-size: 15.5px; line-height: 1.55; color: var(--on-navy); }
.calc-steppers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px 22px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field label, .calc-label { font-size: 14px; font-weight: 700; color: var(--white); }
.calc-label span { font-weight: 500; color: var(--on-navy-muted); }
.stepper { display: flex; align-items: center; height: 52px; background: var(--white); border-radius: 12px; overflow: hidden; }
.stepper button { width: 52px; height: 52px; flex-shrink: 0; border: 0; background: var(--blue-soft); color: var(--blue); font: 800 22px var(--font); cursor: pointer; }
.stepper button:hover { background: #D6E0FF; }
.stepper input { flex: 1; min-width: 0; height: 52px; border: 0; text-align: center; font: 800 18px var(--font); color: var(--navy); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chips button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid #3A5BA8; background: transparent; color: var(--white); font: 700 14.5px var(--font); cursor: pointer; }
.calc-chips button:hover { border-color: var(--gold); }
.calc-chips button[aria-pressed="true"] { border: 2px solid var(--gold); background: var(--gold); color: var(--orange-ink); }
.calc button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.calc-result { background: var(--white); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.calc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.calc-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; }
.calc-kpi span { font-size: 13px; font-weight: 700; color: var(--muted); }
.calc-kpi b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-kpi.k-red { background: #FDECEC; } .calc-kpi.k-red b { color: var(--red); }
.calc-kpi.k-green { background: var(--green-soft); } .calc-kpi.k-green b { color: var(--green); }
.calc-kpi.k-blue { background: var(--blue-soft); } .calc-kpi.k-blue b { color: var(--blue); }
.calc-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.calc-line strong { color: var(--ink); }
.calc-line strong.t-red { color: var(--red); }
.calc-total { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; background: var(--navy); border-radius: 14px; padding: 20px 22px; color: var(--white); }
.calc-total .lbl { font-size: 14px; font-weight: 700; color: var(--on-navy); }
.calc-total .big { font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.calc-total .yr { font-size: 28px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.prose h2[id], .h2[id] { scroll-margin-top: 96px; }

@media (max-width: 640px) {
    .calc { padding: 22px 16px; border-radius: 20px; }
    .calc-result { padding: 18px 16px; }
    .calc-total .big { font-size: 32px; }
    .calc-total .stack[style] { text-align: left !important; }
}

/* Guide v2 blocks */
.prose .tldr { background: var(--blue-soft); border-radius: 20px; padding: 22px 24px; }
.prose .tldr span { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: 1px; color: var(--blue); margin-bottom: 6px; }
.prose .tldr p { margin: 0; font-size: 17px; line-height: 1.65; font-weight: 600; color: var(--navy); }
.prose .g-cards, .prose .g-steps, .prose .g-helps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.prose .g-cards li, .prose .g-steps li { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.prose .g-cards .no { width: 36px; height: 36px; border-radius: 18px; background: #FDECEC; color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; font-weight: 800; }
.prose .g-cards li > span:last-child, .prose .g-steps li > span:last-child { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.65; }
.prose .g-cards b, .prose .g-steps b { font-size: 18px; line-height: 1.35; color: var(--navy); }
.prose .g-steps .n { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--blue); min-width: 40px; line-height: 1.2; }
.prose .g-steps .you { color: var(--green); }
.prose .g-best { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.prose .g-best > div { background: var(--bg); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.6; }
.prose .g-best b { font-size: 17px; color: var(--navy); }
.prose .g-helps li { display: flex; gap: 12px; line-height: 1.6; }
.prose .g-helps svg { flex-shrink: 0; width: 26px; height: 26px; padding: 5px; border-radius: 13px; background: var(--green-soft); color: var(--green); margin-top: 2px; box-sizing: border-box; }
.g-author { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.g-author .avatar { width: 56px; height: 56px; border-radius: 28px; background: var(--navy); color: var(--white); font-size: 18px; }
.g-author > span:last-child { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.g-author b { font-size: 16px; color: var(--navy); }
