
#rdcc {
    line-height: 1.55;
    text-align: left;
    container: rdcc / inline-size;
}

    #rdcc h2, #rdcc h3 {
        color: inherit;
        text-transform: none;
        letter-spacing: normal;
    }

    #rdcc button {
        min-width: 0;
        margin: 0;
    }

    #rdcc input, #rdcc select, #rdcc textarea {
        min-width: 0;
        margin: 0;
        height: auto;
        box-sizing: border-box;
    }

#rdcc {
    --green: #1C3828;
    --green-2: #142A1E;
    --lime: #CAFD26;
    --sage: #ECF4E9;
    --grey: #E6E6E6;
    --line: #C9D3C6;
    --muted: #5B6B61;
    --bg: #FFFFFF;
    --ink: #000;
    --card: #FFFFFF;
    --field: #FFFFFF;
    --display: #000;
}

    #rdcc, #rdcc * {
        box-sizing: border-box;
    }

#rdcc {
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.55 var(--text);
    -webkit-font-smoothing: antialiased;
}

    #rdcc a {
        color: inherit;
    }

    #rdcc .wrap {
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 16px;
    }

@container rdcc (min-width: 720px) {
    #rdcc .wrap {
        padding: 0 32px;
    }
}

/* Header, modeled on roedl.com */
#rdcc .topbar {
    background: var(--green);
    color: var(--lime);
    font: 500 14px/1 var(--display);
}

    #rdcc .topbar .wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 32px;
    }

    #rdcc .topbar span:last-child {
        opacity: .85;
        font-weight: 400;
    }

#rdcc .mainbar {
    background: var(--grey);
    border-bottom: 1px solid var(--line);
}

    #rdcc .mainbar .wrap {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 68px;
    }

#rdcc .logo {
    font: 600 30px/1 var(--display);
    letter-spacing: .04em;
    color: var(--ink);
    text-decoration: none;
}

#rdcc .mainnav {
    display: none;
    gap: 28px;
    font-size: 15px;
}

    #rdcc .mainnav a {
        text-decoration: none;
    }

        #rdcc .mainnav a:hover {
            text-decoration: underline;
            text-underline-offset: 4px;
        }

@container rdcc (min-width: 900px) {
    #rdcc .mainnav {
        display: flex;
    }
}

#rdcc .crumbs {
    background: var(--grey);
    font-size: 13px;
    color: var(--muted);
}

    #rdcc .crumbs .wrap {
        padding-top: 8px;
        padding-bottom: 8px;
    }

/* Hero */
#rdcc .hero {
    background: linear-gradient(180deg, var(--green-2), var(--green));
    color: #fff;
    padding: 56px 0 64px;
}

#rdcc .eyebrow {
    font: 500 13px/1 var(--display);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lime);
}

#rdcc .hero h1 {
    font: 500 clamp(32px, 5vw, 52px)/1.08 var(--display);
    color: var(--lime);
    margin: 14px 0 16px;
    max-width: 18ch;
    text-wrap: balance;
}

#rdcc .hero p {
    max-width: 60ch;
    color: #D6E2D3;
    margin: 0;
}

/* Layout */
#rdcc .rdcc-main {
    padding: 32px 0 48px;
}

#rdcc .grid {
    display: grid;
    gap: 32px;
}

@container rdcc (min-width: 900px) {
    #rdcc .grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }
}

/* Stepper */
#rdcc .steps {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    counter-reset: s;
}

    #rdcc .steps button {
        flex: 1;
        text-align: left;
        background: none;
        border: 0;
        border-top: 3px solid var(--line);
        padding: 10px 0 0;
        color: var(--muted);
        font: 500 13px/1.3 var(--display);
        cursor: pointer;
    }

        #rdcc .steps button::before {
            counter-increment: s;
            content: "0" counter(s);
            display: block;
            font-size: 12px;
            margin-bottom: 2px;
        }

        #rdcc .steps button.done {
            border-color: var(--ink);
            color: var(--ink);
        }

        #rdcc .steps button.on {
            border-color: var(--lime);
            color: var(--ink);
        }

            #rdcc .steps button.on::after {
                content: "";
                display: block;
            }

#rdcc .panel {
    display: none;
}

    #rdcc .panel.on {
        display: block;
        animation: rdcc-fade .25s ease;
    }

@keyframes rdcc-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

#rdcc .panel h2 {
    font: 500 28px/1.15 var(--display);
    margin: 0 0 6px;
}

#rdcc .panel > p.lead {
    color: var(--muted);
    margin: 0 0 28px;
    max-width: 62ch;
}

#rdcc fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 28px;
}

#rdcc legend, #rdcc .label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
}

#rdcc .hint {
    font-size: 13px;
    color: var(--muted);
    margin: -4px 0 10px;
}

#rdcc .fields {
    display: grid;
    gap: 20px;
}

@container rdcc (min-width: 560px) {
    #rdcc .fields.two {
        grid-template-columns: 1fr 1fr;
    }

    #rdcc .fields.three {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

#rdcc .money, #rdcc select, #rdcc input[type=number], #rdcc input[type=text] {
    width: 100%;
}

#rdcc .money {
    display: flex;
    align-items: center;
    border: 1px solid #1C3828;
    border-radius: 4px;
    background: #fff;
    padding: 0 8px;
}

    #rdcc .money::after {
        content: "$";
        flex: 0 0 auto;
        margin-right: 6px;
        color: #1C3828;
        pointer-events: none;
    }

#rdcc input, #rdcc select {
    font: 400 16px var(--text);
    color: var(--ink);
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

#rdcc .money input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    padding: 6px 0 !important;
    margin: 0 !important;
    background: transparent;
}

#rdcc .money input {
    padding-left: 28px;
}

#rdcc input:focus, #rdcc select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 60%, transparent);
}

#rdcc .choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    #rdcc .choices label {
        cursor: pointer;
    }

    #rdcc .choices input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    #rdcc .choices span {
        display: inline-block;
        padding: 10px 18px;
        border: 1px solid var(--ink);
        border-radius: 4px;
        font: 500 15px var(--display);
        transition: background .15s;
    }

    #rdcc .choices input:checked + span {
        background: var(--green);
        color: var(--lime);
        border-color: var(--green);
    }

    #rdcc .choices input:focus-visible + span {
        box-shadow: 0 0 0 3px var(--lime);
    }

/* Employee table */
#rdcc .emps {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

#rdcc .emp-head, #rdcc .emp-row {
    display: grid;
    grid-template-columns: 1.4fr .6fr 1fr .8fr 36px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
}

#rdcc .emp-head {
    background: var(--sage);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}

#rdcc .emp-row + .emp-row {
    border-top: 1px solid var(--line);
}

#rdcc .emp-row input {
    padding: 9px 10px;
    font-size: 15px;
}

#rdcc .emp-row .money input {
    padding-left: 22px;
}

#rdcc .emp-row .money::before {
    left: 10px;
}

#rdcc .x {
    background: none;
    border: 0;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}

    #rdcc .x:hover {
        color: var(--ink);
    }

#rdcc .emp-sum {
    padding: 10px 12px;
    background: var(--sage);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

@container rdcc (max-width: 599px) {
    #rdcc .emp-head {
        display: none;
    }

    #rdcc .emp-row {
        grid-template-columns: 1fr 1fr;
    }

        #rdcc .emp-row > :first-child {
            grid-column: 1 / -1;
        }

        #rdcc .emp-row .x {
            justify-self: end;
        }
}

/* Buttons */
#rdcc .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 500 16px var(--display);
    padding: 13px 22px;
    border-radius: 4px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}

    #rdcc .btn:hover {
        background: var(--ink);
        color: var(--bg);
    }

    #rdcc .btn.primary {
        background: var(--lime);
        border-color: var(--lime);
        color: #1C3828;
    }

        #rdcc .btn.primary:hover {
            background: #B8EA10;
        }

    #rdcc .btn.small {
        padding: 8px 14px;
        font-size: 14px;
    }

#rdcc .nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* Summary card */
@container rdcc (min-width: 900px) {
    #rdcc .summary {
        position: sticky;
        top: 20px;
    }
}

#rdcc .summary {
    background: var(--green);
    color: #fff;
    border-radius: 4px;
    padding: 26px;
}

    #rdcc .summary .eyebrow {
        margin-bottom: 14px;
        display: block;
    }

#rdcc .big {
    font: 500 44px/1 var(--display);
    color: var(--lime);
    font-variant-numeric: tabular-nums;
}

#rdcc .sub {
    font-size: 14px;
    color: #BCCDB8;
    margin-top: 8px;
}

#rdcc .rows {
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255,255,255,.18);
    display: grid;
    gap: 10px;
    font-size: 15px;
}

    #rdcc .rows div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    #rdcc .rows dd {
        margin: 0;
        font-variant-numeric: tabular-nums;
        font-weight: 500;
    }

    #rdcc .rows dt {
        color: #D6E2D3;
    }

/* Results */
#rdcc .result-hero {
    background: var(--sage);
    border-radius: 4px;
    padding: 28px;
    margin-bottom: 24px;
}

    #rdcc .result-hero .big {
        color: var(--ink);
        font-size: clamp(40px, 7vw, 64px);
    }

        #rdcc .result-hero .big small {
            font-size: .4em;
            color: var(--muted);
        }

#rdcc .kpis {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 28px;
}

@container rdcc (min-width: 560px) {
    #rdcc .kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

#rdcc .kpi {
    background: var(--card);
    padding: 18px 20px;
}

    #rdcc .kpi b {
        display: block;
        font: 500 24px var(--display);
        font-variant-numeric: tabular-nums;
    }

    #rdcc .kpi span {
        font-size: 13px;
        color: var(--muted);
    }

#rdcc .bar {
    display: flex;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    background: var(--sage);
    margin: 10px 0 12px;
}

    #rdcc .bar i {
        display: block;
        height: 100%;
    }

#rdcc .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 14px;
}

    #rdcc .legend span::before {
        content: "";
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 2px;
        margin-right: 6px;
        background: var(--c);
        vertical-align: 0;
    }

#rdcc .callout {
    border-left: 4px solid var(--lime);
    background: var(--sage);
    padding: 16px 18px;
    border-radius: 0 4px 4px 0;
    margin: 20px 0;
    font-size: 15px;
}

    #rdcc .callout b {
        display: block;
        margin-bottom: 4px;
    }

#rdcc .calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-top: 8px;
}

    #rdcc .calc-table td {
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
    }

        #rdcc .calc-table td:last-child {
            text-align: right;
            font-variant-numeric: tabular-nums;
        }

    #rdcc .calc-table tr.total td {
        font-weight: 600;
        border-bottom: 2px solid var(--ink);
    }

#rdcc details {
    margin-top: 24px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

#rdcc summary {
    cursor: pointer;
    font: 500 16px var(--display);
}

#rdcc .cta {
    background: var(--green);
    color: #fff;
    padding: 48px 0;
}

    #rdcc .cta .wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-between;
        align-items: center;
    }

    #rdcc .cta h3 {
        font: 500 28px/1.2 var(--display);
        color: var(--lime);
        margin: 0 0 6px;
    }

    #rdcc .cta p {
        margin: 0;
        color: #D6E2D3;
    }

#rdcc footer {
    background: var(--grey);
    padding: 28px 0;
    font-size: 13px;
    color: var(--muted);
}

    #rdcc footer .wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }

#rdcc .disclaimer {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 28px;
    line-height: 1.5;
}

#rdcc .err {
    color: #B42318;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

@media print {
    #rdcc .topbar, #rdcc .mainbar, #rdcc .crumbs, #rdcc .steps, #rdcc .nav, #rdcc .summary, #rdcc .cta {
        display: none !important;
    }

    #rdcc .panel {
        display: block !important;
    }
}

/* Dashboard results */
#rdcc .dash {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

@container rdcc (min-width: 560px) {
    #rdcc .dash {
        grid-template-columns: repeat(3, 1fr);
    }

    #rdcc .hero-tile {
        grid-column: 1 / -1;
    }
}

#rdcc .tile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    #rdcc .tile b {
        font: 500 26px/1.1 var(--display);
        font-variant-numeric: tabular-nums;
    }

#rdcc .tile-label {
    font: 500 12px var(--display);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

#rdcc .tile-foot {
    font-size: 13px;
    color: var(--muted);
}

#rdcc .hero-tile {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    padding: 26px 28px;
}

    #rdcc .hero-tile .tile-label, #rdcc .hero-tile .tile-foot {
        color: #BCCDB8;
    }

#rdcc .tile-big {
    font: 500 clamp(40px, 7vw, 64px)/1 var(--display) !important;
    color: var(--lime);
    margin: 6px 0 4px;
}

#rdcc .drill-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

#rdcc .drills {
    border-top: 1px solid var(--line);
    margin-bottom: 32px;
}

#rdcc .drill {
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 0;
}

    #rdcc .drill summary {
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 16px 4px;
    }

        #rdcc .drill summary::-webkit-details-marker {
            display: none;
        }

        #rdcc .drill summary span {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        #rdcc .drill summary small {
            font: 400 13px var(--text);
            color: var(--muted);
        }

        #rdcc .drill summary i {
            font-style: normal;
            font-size: 22px;
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            border: 1px solid var(--line);
            border-radius: 50%;
            transition: transform .2s, background .2s;
        }

    #rdcc .drill[open] summary i {
        transform: rotate(45deg);
        background: var(--lime);
        border-color: var(--lime);
        color: #1C3828;
    }

    #rdcc .drill summary:hover b {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

#rdcc .drill-body {
    padding: 0 4px 20px;
    animation: rdcc-fade .2s ease;
}

    #rdcc .drill-body .callout:first-child {
        margin-top: 0;
    }

#rdcc .inquiry {
    background: var(--sage);
    border-radius: 4px;
    padding: 26px 28px;
    margin-bottom: 8px;
}

    #rdcc .inquiry h3 {
        font: 500 24px/1.2 var(--display);
        margin: 10px 0 6px;
    }

    #rdcc .inquiry .eyebrow {
        color: var(--muted);
    }

    #rdcc .inquiry p {
        margin: 0 0 18px;
        max-width: 60ch;
    }

    #rdcc .inquiry textarea {
        width: 100%;
        font: 400 16px var(--text);
        color: var(--ink);
        background: var(--field);
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 12px 14px;
        resize: vertical;
        outline: none;
    }

        #rdcc .inquiry textarea:focus {
            border-color: var(--ink);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 60%, transparent);
        }

#rdcc .inq-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 14px 0 12px;
}

#rdcc .copied {
    font-size: 14px;
    font-weight: 600;
}

#rdcc .mail-fallback {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--lime);
    border-radius: 4px;
    padding: 18px 20px;
    margin: 4px 0 16px;
    animation: rdcc-fade .2s ease;
}

    #rdcc .mail-fallback p {
        margin: 4px 0 14px;
        font-size: 15px;
    }

    #rdcc .mail-fallback dl {
        margin: 0 0 12px;
        display: grid;
        gap: 6px;
        font-size: 15px;
    }

        #rdcc .mail-fallback dl div {
            display: flex;
            gap: 10px;
        }

    #rdcc .mail-fallback dt {
        width: 64px;
        flex: none;
        color: var(--muted);
    }

    #rdcc .mail-fallback dd {
        margin: 0;
        overflow-wrap: anywhere;
    }

    #rdcc .mail-fallback textarea {
        font-size: 14px;
    }

#rdcc .link {
    background: none;
    border: 0;
    padding: 0 0 0 6px;
    font: 600 13px var(--text);
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

#rdcc .inquiry .fine {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

@media print {
    #rdcc .inquiry, #rdcc .drill-head {
        display: none !important;
    }

    #rdcc .drill-body {
        display: block !important;
    }
}
