@charset "UTF-8";

:root {
    --paper: #f5f8f7;
    --ink: #405864;
    --violet: #655089;
    --lilac: #e9e0f5;
    --green: #d5edba;
    --green-ink: #496344;
    --orange: #ffc3a5;
    --line: #b8c8c7;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { background: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
p { margin: 0; font-size: 16px; line-height: 1.75; }
h1 { margin: 16px 0 19px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 40px; line-height: 1.13; letter-spacing: -1.2px; color: var(--violet); }
h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 28px; line-height: 1.18; margin: 0 0 14px; letter-spacing: -.5px; }
h3 { font-size: 20px; font-weight: 600; margin: 0 0 9px; line-height: 1.4; }
.masthead, main, footer { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 4px double var(--violet); padding: 18px 0; }
.wordmark { display: inline-flex; gap: 16px; align-items: center; }
.wordmark > span:last-child { font-size: 14px; line-height: 1.3; }
.wordmark strong { display: block; font-size: 17px; font-weight: 600; }
.mark { display: grid; place-items: center; background: var(--green); color: var(--violet); font-size: 40px; font-family: Georgia, serif; width: 52px; height: 52px; border-radius: 50%; }
.mast-caption, .eyebrow, .sheet-no, .outcome-label, .distinction-label, .subtotal > span, .formula > span, .footer-name { font-family: "Courier New", monospace; font-size: 11px; letter-spacing: 1px; line-height: 1.5; }
.mast-caption { color: var(--violet); }
.opening { padding: 32px 0 34px; }
.opening > p { max-width: 920px; }
.service-button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 13px 24px; margin-top: 22px; border: 1px solid var(--ink); border-radius: 32px; background: var(--orange); color: inherit; font-weight: 700; font-size: 16px; box-shadow: 3px 3px 0 var(--violet); }
.service-button:hover { background: var(--green); }
.equation-banner { display: flex; align-items: center; justify-content: center; gap: 38px; padding: 18px 30px; border-block: 1px solid var(--violet); margin-bottom: 36px; background: var(--lilac); }
.equation-number { font-family: Georgia, serif; font-size: 29px; line-height: 1.2; text-align: center; }
.equation-symbol { color: var(--violet); font-family: Georgia, serif; font-size: 70px; line-height: 1; }
.section-heading { margin-bottom: 18px; }
.section-heading .eyebrow { display: block; margin-bottom: 10px; }
.section-heading h2 { margin-bottom: 0; }
.calculation { padding-bottom: 38px; }
.calculation > p { max-width: 980px; }
.calculator-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 26px; border: 1px solid var(--ink); }
fieldset { margin: 0; min-width: 0; border: 0; padding: 25px 27px 22px; background: var(--green); }
fieldset + fieldset { background: var(--lilac); border-left: 1px solid var(--ink); }
legend { float: left; width: 100%; font-family: Georgia, serif; font-size: 28px; margin-bottom: 18px; padding: 0; }
.amount-row { clear: both; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #a8b4a2; }
.amount-row label { font-size: 14px; line-height: 1.45; max-width: 58%; }
.input-wrap { display: flex; align-items: center; gap: 8px; flex: 0 0 134px; }
.input-wrap span { font-size: 12px; }
input { width: 108px; min-height: 42px; padding: 9px 10px; border: 1px solid #899c98; border-radius: 0; background: #fbfdfb; color: var(--ink); font: 16px Arial, sans-serif; text-align: right; }
input::placeholder { color: #657781; opacity: 1; }
input[aria-invalid="true"] { border: 2px solid #a54335; }
.subtotal { display: flex; align-items: baseline; justify-content: space-between; padding-top: 22px; gap: 20px; }
.subtotal output { font-size: 27px; font-family: Georgia, serif; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calculate-action { padding: 19px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
button { border: 1px solid var(--ink); background: var(--paper); padding: 12px 20px; color: var(--ink); font: 600 16px Arial, sans-serif; cursor: pointer; min-height: 46px; }
button:hover { background: var(--green); }
.calculate-action > span { font-size: 13px; }
.calculation-result { border-top: 1px dashed var(--violet); border-bottom: 1px solid var(--violet); padding: 20px 0; }
.calculation-result p { font-weight: 600; }
.calculation-note { margin-top: 16px; }
.cost-bars { margin-top: 16px; }
.cost-bar { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 14px; margin-top: 10px; font-size: 12px; }
.bar-track { height: 14px; background: #e2e9e7; }
.bar-track span { display: block; height: 100%; background: #698f55; }
#replace-bar { background: var(--violet); }
.topic-lines { margin-bottom: 34px; }
.topic-line { display: grid; grid-template-columns: 60px 1fr; gap: 25px; border-top: 1px solid var(--line); padding: 22px 0; }
.topic-line > span { font-family: Georgia, serif; font-size: 34px; font-style: italic; color: var(--violet); }
.prose { padding: 0 0 31px; }
.prose p { max-width: 990px; }
.final-note { border-left: 5px solid var(--violet); background: var(--lilac); padding: 27px 30px; margin-bottom: 31px; }
.distinction { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 25px; background: var(--green); border-block: 1px solid var(--ink); margin-bottom: 32px; }
.distinction-label { flex: 0 0 90px; }
.distinction strong { font-size: 18px; font-weight: 500; line-height: 1.35; flex: 1; }
.not-equal { font-size: 36px; color: var(--violet); line-height: 1; margin-inline: 16px; }
.cost-sheet, .quote-sheet { margin-bottom: 33px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--violet); }
.sheet-head h2 { margin: 0; }
.sheet-no { flex-shrink: 0; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; }
th, td { vertical-align: top; padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; }
th { width: 21%; padding-right: 25px; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
td > strong { display: block; font-size: 16px; margin-bottom: 6px; }
td > p { max-width: 800px; }
.two-outcomes { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 34px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.two-outcomes article { padding: 25px 27px; background: #e7f0e1; }
.two-outcomes article + article { background: #ece7f4; border-left: 1px solid var(--ink); }
.outcome-label { display: block; margin-bottom: 12px; }
.two-outcomes h2 { font-size: 28px; }
.sources { display: flex; align-items: baseline; gap: 24px; font-size: 12px; line-height: 1.7; border-top: 1px solid var(--line); padding: 15px 0 5px; }
.sources span:first-child { flex-shrink: 0; font-family: "Courier New", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.quote-steps { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 36px; border-block: 1px solid var(--violet); }
.quote-steps > div { display: grid; grid-template-columns: 45px 1fr; gap: 4px 15px; padding: 22px; }
.quote-steps > div + div { border-left: 1px solid var(--line); }
.quote-steps span { grid-row: span 2; font-size: 32px; font-family: Georgia, serif; font-style: italic; color: var(--violet); }
.quote-steps strong { font-weight: 500; font-size: 19px; }
.quote-steps small { line-height: 1.6; font-size: 12px; }
dl { margin: 0; }
dl > div { display: grid; grid-template-columns: 240px 1fr; gap: 25px; border-bottom: 1px solid var(--line); padding: 22px 0; }
dt { font-family: Georgia, serif; font-size: 22px; line-height: 1.3; }
dd { margin: 0; font-size: 16px; line-height: 1.75; }
.formula { background: var(--green); padding: 24px 28px; margin-bottom: 30px; }
.formula > span { display: block; }
.formula p { margin: 8px 0 17px; }
.formula p:last-child { margin-bottom: 0; }
footer { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; border-top: 4px double var(--violet); padding: 22px 0 27px; margin-top: 28px; }
footer p { font-size: 16px; }
.footer-name { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
    .mast-caption { font-size: 10px; letter-spacing: .4px; }
    .calculator-columns fieldset { padding: 22px 18px; }
    .amount-row { flex-wrap: wrap; gap: 9px; }
    .amount-row label { max-width: none; width: 100%; }
    .input-wrap { flex: 1; }
    input { width: 100%; }
    .distinction { gap: 15px; }
    .distinction-label { flex-basis: 70px; }
    .not-equal { margin-inline: 0; }
    .sheet-head { display: block; }
    .sheet-no { display: block; margin-top: 12px; }
    .two-outcomes article { padding: 24px 22px; }
    dl > div { grid-template-columns: 190px 1fr; }
}

@media (max-width: 640px) {
    .masthead, main, footer { width: calc(100% - 36px); }
    .mast-caption { display: none; }
    .opening { padding: 25px 0 28px; }
    h1 { font-size: 40px; }
    h2, .two-outcomes h2 { font-size: 28px; }
    .eyebrow { font-size: 10px; letter-spacing: .7px; }
    .equation-banner { gap: 17px; padding: 20px 15px; }
    .equation-number { font-size: 22px; }
    .equation-symbol { font-size: 48px; }
    .calculator-columns { display: block; }
    fieldset + fieldset { border-left: 0; border-top: 1px solid var(--ink); }
    .amount-row { flex-wrap: nowrap; }
    .amount-row label { width: auto; max-width: 55%; }
    .input-wrap { flex: 0 0 125px; }
    .calculate-action { gap: 12px; }
    .topic-line { grid-template-columns: 36px 1fr; gap: 16px; }
    .topic-line > span { font-size: 28px; }
    .distinction { flex-wrap: wrap; padding: 18px; }
    .distinction-label { flex: 0 0 100%; }
    .distinction strong { font-size: 16px; }
    .distinction .not-equal { font-size: 30px; }
    th { width: 27%; padding-right: 16px; font-size: 19px; overflow-wrap: anywhere; }
    td > strong { font-size: 16px; }
    .two-outcomes { display: block; }
    .two-outcomes article + article { border-left: 0; border-top: 1px solid var(--ink); }
    .sources { display: block; }
    .sources span { display: block; }
    .sources span:first-child { margin-bottom: 8px; }
    .quote-steps { display: block; }
    .quote-steps > div { padding: 16px 8px; }
    .quote-steps > div + div { border-left: 0; border-top: 1px solid var(--line); }
    dl > div { grid-template-columns: 1fr; gap: 10px; padding: 21px 0; }
    .final-note { padding: 24px 20px; }
    footer { display: block; }
    footer p { margin-top: 10px; }
}

@media print {
    .masthead, main, footer { width: 100%; }
    .service-button, .calculate-action { display: none; }
    .two-outcomes, tr, .quote-sheet dl > div { break-inside: avoid; }
}
