.wc-page {
    --wc-paper: #f6f4ee;
    --wc-panel: #ebe8dc;
    --wc-ink: #272822;
    --wc-muted: #63655b;
    --wc-line: #d9d8cc;
    --wc-accent: #b43c26;
    --wc-accent-hover: #8f2c1c;
    color: var(--wc-ink);
    background: var(--wc-paper);
    font: 16px/1.6 Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.wc-page *, .wc-page *::before, .wc-page *::after { box-sizing: border-box; }
.wc-page h1, .wc-page h2, .wc-page h3, .wc-page p { margin: 0; }
.wc-page h1, .wc-page h2, .wc-page h3 { color: inherit; font-family: inherit; font-weight: 500; }
.wc-page a { color: inherit; text-underline-offset: 4px; }
.wc-page [hidden] { display: none !important; }
.wc-page a:focus-visible, .wc-page button:focus-visible, .wc-page input:focus-visible,
.wc-page select:focus-visible { outline: 3px solid var(--wc-accent); outline-offset: 3px; }
.wc-shell { width: min(100% - 64px, 1180px); margin-inline: auto; }
.wc-eyebrow { color: var(--wc-muted); font-size: 13px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.wc-icon { display: block; flex-shrink: 0; }

.wc-hero { padding-top: 24px; padding-bottom: 40px; }
.wc-breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; color: var(--wc-muted); font-size: 14px; }
.wc-breadcrumbs a { text-decoration: none; }
.wc-breadcrumbs a:hover { text-decoration: underline; }
.wc-page h1 { max-width: 820px; margin-block: 20px; font-size: clamp(36px, 4.3vw, 58px); line-height: 1.04; letter-spacing: -.05em; overflow-wrap: break-word; }
.wc-page h1 > span { color: var(--wc-accent); }
.wc-lead { max-width: 720px; color: var(--wc-muted); font-size: 18px; }

.wc-workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 40px; align-items: start; padding-bottom: 72px; }
.wc-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wc-group { min-width: 0; margin: 0; padding: 26px 28px 28px; border: 1px solid var(--wc-line); background: #fff; }
.wc-group legend { float: left; display: flex; gap: 14px; align-items: baseline; width: 100%; margin: 0 0 6px; padding: 0; font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.wc-group legend + * { clear: both; }
.wc-step { color: var(--wc-accent); font-size: 14px; letter-spacing: 0; }
.wc-group-note { margin-bottom: 18px !important; color: var(--wc-muted); font-size: 15px; }
.wc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.wc-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 16px; }
.wc-field:last-child { margin-bottom: 0; }
.wc-grid .wc-field:last-child { margin-bottom: 16px; }
.wc-group > .wc-field:last-child, .wc-material-body > .wc-grid:last-child .wc-field { margin-bottom: 0; }
.wc-field label { font-size: 14px; font-weight: 700; }
.wc-input { position: relative; display: block; }
.wc-input input, .wc-field select { width: 100%; min-height: 48px; padding: 11px 14px; color: var(--wc-ink); border: 1px solid #b9b9ad; border-radius: 0; background: #fff; font: 16px/1.4 Arial, Helvetica, sans-serif; }
.wc-input input { padding-right: 52px; }
.wc-input input[aria-invalid="true"] { border-color: var(--wc-accent); box-shadow: inset 0 0 0 1px var(--wc-accent); }
.wc-unit { position: absolute; top: 50%; right: 14px; color: var(--wc-muted); font-size: 14px; transform: translateY(-50%); pointer-events: none; }
.wc-hint { color: var(--wc-muted); font-size: 13px; line-height: 1.4; }
.wc-error { color: var(--wc-accent); font-size: 13px; font-weight: 700; line-height: 1.4; }
.wc-toggle { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; font-weight: 700; cursor: pointer; }
.wc-toggle input { width: 20px; height: 20px; accent-color: var(--wc-accent); }
.wc-material-body > .wc-field { margin-bottom: 16px; }

.wc-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.wc-group .wc-choice legend { float: none; display: block; grid-column: 1 / -1; width: auto; margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.6; letter-spacing: 0; }
.wc-choice-option { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 12px 14px; border: 1px solid #b9b9ad; background: #fff; cursor: pointer; }
.wc-choice-option:has(input:checked) { border-color: var(--wc-accent); box-shadow: inset 0 0 0 1px var(--wc-accent); }
.wc-choice-option:has(input:focus-visible) { outline: 3px solid var(--wc-accent); outline-offset: 3px; }
.wc-choice-option input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--wc-accent); }
.wc-choice-option input:focus-visible { outline: none; }
.wc-choice-option > span { display: flex; flex-direction: column; min-width: 0; }
.wc-choice-option strong { font-size: 15px; line-height: 1.35; }
.wc-choice-option small { color: var(--wc-muted); font-size: 13px; line-height: 1.4; }
.wc-roof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wc-roof .wc-choice-option { position: relative; flex-direction: column; align-items: center; padding: 14px 10px 12px; text-align: center; }
.wc-roof .wc-choice-option input { position: absolute; top: 10px; left: 10px; margin: 0; }
.wc-roof .wc-choice-option > span { align-items: center; }
.wc-roof-icon { display: block; width: 64px; height: 44px; margin-bottom: 8px; color: var(--wc-ink); }
.wc-roof-gable-wall { fill: var(--wc-accent); opacity: .18; }
.wc-roof .wc-choice-option:has(input:checked) .wc-roof-gable-wall { opacity: .4; }
[data-gable-fields] { margin-bottom: 0; }
[data-mansard-fields] { margin-top: -4px; margin-bottom: 16px; }
.wc-gable-side .wc-choice-option > span { align-items: flex-start; }
.wc-plan-icon { display: block; width: 56px; height: 36px; margin-bottom: 6px; color: var(--wc-muted); }
.wc-plan-gable { stroke: var(--wc-accent); }

.wc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.wc-link-button { padding: 0; color: var(--wc-ink); border: 0; background: none; font: 700 14px/1.5 Arial, Helvetica, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.wc-link-button:hover { color: var(--wc-accent); }
.wc-share-status { color: var(--wc-muted); font-size: 13px; }

.wc-advanced { margin-top: 4px; border-top: 1px solid var(--wc-line); }
.wc-advanced > summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px 4px; color: var(--wc-ink); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.wc-advanced > summary::-webkit-details-marker { display: none; }
.wc-advanced > summary::after { content: "+"; flex-shrink: 0; color: var(--wc-accent); font-size: 22px; font-weight: 400; line-height: 1; }
.wc-advanced[open] > summary::after { content: "−"; }
.wc-advanced > summary:hover { color: var(--wc-accent); }
.wc-advanced > summary:focus-visible { outline: 3px solid var(--wc-accent); outline-offset: 3px; }
.wc-advanced-body { padding-top: 14px; }
.wc-advanced-body > .wc-grid:last-child .wc-field { margin-bottom: 0; }

.wc-assumptions { padding: 16px 18px; background: #fff; }
.wc-assumptions-title { margin-bottom: 8px !important; color: var(--wc-muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wc-assumptions ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wc-assumptions li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.wc-assumptions li::before { content: ""; position: absolute; top: .6em; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: #9a9b8f; }
.wc-assumptions a { color: var(--wc-ink); text-decoration: underline; text-decoration-color: #b9b9ad; text-underline-offset: 3px; }
.wc-assumptions a:hover { color: var(--wc-accent); text-decoration-color: currentColor; }
.wc-assumptions li.is-warning a { color: var(--wc-accent); font-weight: 700; text-decoration-color: currentColor; }
.wc-assumptions li.is-warning::before { content: "!"; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; color: #fff; background: var(--wc-accent); font-size: 11px; font-weight: 700; line-height: 14px; text-align: center; }

.wc-openings { display: flex; flex-direction: column; gap: 14px; }
.wc-opening { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)) 48px; gap: 0 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--wc-line); }
.wc-opening .wc-field { margin-bottom: 0 !important; }
.wc-opening-remove { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-top: 27px; padding: 0; color: var(--wc-muted); border: 1px solid #b9b9ad; border-radius: 0; background: #fff; cursor: pointer; }
.wc-opening-remove:hover { color: var(--wc-accent); border-color: var(--wc-accent); }
.wc-openings + .wc-error { display: block; margin-top: 10px; }
.wc-openings-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 16px; }
.wc-openings-footer p { color: var(--wc-muted); font-size: 15px; }
.wc-openings-footer strong { color: var(--wc-ink); }
.wc-add { min-height: 44px; padding: 10px 18px; color: var(--wc-accent); border: 1px dashed var(--wc-accent); border-radius: 0; background: transparent; font: 700 15px/1.4 Arial, Helvetica, sans-serif; cursor: pointer; }
.wc-add:hover:not(:disabled) { background: #fff; }
.wc-add:disabled { opacity: .5; cursor: not-allowed; }

.wc-result-sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--wc-panel); }
.wc-result-body { display: flex; flex-direction: column; gap: 14px; }
.wc-result-message { padding: 14px 16px; color: var(--wc-accent); border-left: 3px solid var(--wc-accent); background: #fff; font-size: 15px; font-weight: 700; }
.wc-result-card { padding: 20px; background: #fff; }
.wc-result-card h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.wc-result-total { margin-block: 6px 12px !important; font-size: 18px; }
.wc-result-total strong { font-size: clamp(34px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.04em; }
.is-invalid .wc-result-total strong { color: var(--wc-muted); }
.wc-result-card dl { margin: 0; }
.wc-result-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; border-top: 1px solid var(--wc-line); font-size: 15px; }
.wc-result-card dt { color: var(--wc-muted); font-weight: 400; }
.wc-result-card dt small { display: block; font-size: 12px; line-height: 1.3; }
.wc-result-card dd { margin: 0; font-weight: 700; text-align: right; }
.wc-result-openings, .wc-result-note { color: var(--wc-muted); font-size: 14px; }
.wc-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 52px; padding: 14px 22px; color: #fff; border: 1px solid var(--wc-accent); border-radius: 0; background: var(--wc-accent); font: 700 16px/1.4 Arial, Helvetica, sans-serif; text-align: left; cursor: pointer; transition: background-color .18s, border-color .18s; }
.wc-button:hover:not(:disabled) { border-color: var(--wc-accent-hover); background: var(--wc-accent-hover); }
.wc-button:disabled { opacity: .55; cursor: not-allowed; }
.wc-catalog { display: flex; flex-direction: column; border-top: 1px solid #cbccbe; }
.wc-catalog a { display: flex; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid #cbccbe; font-weight: 700; text-decoration: none; }
.wc-catalog a:hover { color: var(--wc-accent); }

.wc-section { padding-block: 64px 80px; border-top: 1px solid var(--wc-line); }
.wc-section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; margin-bottom: 36px; }
.wc-section-heading > .wc-eyebrow { padding-top: 7px; }
.wc-page h2#wc-method-title { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.035em; }
.wc-section-heading > div > p { max-width: 690px; margin-top: 18px; color: var(--wc-muted); font-size: 17px; }
.wc-method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.wc-method article { min-width: 0; padding-top: 18px; border-top: 1px solid var(--wc-line); }
.wc-method article > span { color: var(--wc-accent); font-size: 14px; }
.wc-method h3 { margin-block: 14px 10px !important; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.wc-method p { color: var(--wc-muted); font-size: 15px; }
.wc-mobile-total { display: none; }
.wc-mobile-total-text { display: flex; flex-direction: column; min-width: 0; }
.wc-mobile-total-text small { color: #ffb3a3; font-size: 13px; font-weight: 700; }
.wc-disclaimer { max-width: 820px; margin-top: 36px !important; padding: 18px 22px; background: var(--wc-panel); font-size: 15px; }

@media (max-width: 991.98px) {
    .wc-workspace { grid-template-columns: 1fr; }
    .wc-result-sticky { position: static; }
    .wc-result { scroll-margin-top: 16px; }
    /* Fields reached by focus or a link stop above the bar instead of under it. */
    html { scroll-padding-bottom: 96px; }
    /* While typing, the keyboard already takes the screen; the bar would cover the field. */
    .wc-form:has(input[type="text"]:focus) .wc-mobile-total { visibility: hidden; }
    .wc-mobile-total { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; color: #fff !important; background: var(--wc-ink); font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
    .wc-method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wc-section-heading { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 575.98px) {
    .wc-shell { width: calc(100% - 32px); }
    .wc-group { padding: 20px 16px; }
    .wc-result-sticky { padding: 20px 16px; }
    .wc-grid { gap: 0 12px; }
    .wc-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wc-method { grid-template-columns: 1fr; }
    .wc-roof { grid-template-columns: 1fr; }
    .wc-roof .wc-choice-option { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; }
    .wc-roof .wc-choice-option input { position: static; }
    .wc-roof .wc-choice-option > span { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
    .wc-roof-icon { grid-row: 1 / 3; width: 52px; height: 36px; margin: 0; }
    .wc-roof .wc-choice-option strong, .wc-roof .wc-choice-option small { justify-self: start; }
    .wc-opening { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
    .wc-opening-type { grid-column: 1 / -1; padding-right: 58px; }
    .wc-opening-remove { position: absolute; top: 0; right: 0; }
    .wc-opening .wc-input input { padding-inline: 10px 34px; }
    .wc-opening .wc-unit { right: 10px; }
    .wc-lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .wc-button { transition: none; }
}
