.thevenin-page {
    --thevenin-ink: #202b30;
    --thevenin-muted: #647276;
    --thevenin-line: #d7dfdc;
    --thevenin-green: #17684f;
    --thevenin-green-dark: #124e3c;
    --thevenin-paper: #f3f6f2;
    padding-top: var(--header-height);
    color: var(--thevenin-ink);
    background: #fff;
}

.thevenin-intro {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 3.75rem;
    background:
        linear-gradient(118deg, rgba(233, 241, 232, .94), rgba(250, 246, 232, .8) 68%, rgba(255, 255, 255, .9)),
        repeating-linear-gradient(135deg, transparent 0 24px, rgba(23, 104, 79, .035) 24px 25px);
    border-bottom: 1px solid #e6ebe7;
}

.thevenin-intro__layout {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
}

.thevenin-intro__copy {
    max-width: 760px;
}

.thevenin-eyebrow {
    margin: 0 0 .85rem;
    color: var(--thevenin-green);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.thevenin-eyebrow a {
    color: inherit;
}

.thevenin-intro h1 {
    max-width: 700px;
    margin: 0;
    color: #24352f;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.thevenin-intro h1 span {
    color: var(--thevenin-green);
}

.thevenin-intro__description {
    max-width: 590px;
    margin: 1.25rem 0 1.15rem;
    color: #4b5c57;
    font-size: 1.1rem;
}

.thevenin-text-link {
    color: var(--thevenin-green-dark);
    font-size: .92rem;
    font-weight: 700;
}

.thevenin-text-link span {
    padding-left: .25rem;
}

.thevenin-intro__note {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    width: 250px;
    flex: 0 0 250px;
    padding: 1rem 0 0 1rem;
    border-left: 1px solid #b9c9bf;
}

.thevenin-intro__note-mark {
    color: #a76b2c;
    font-size: 1.2rem;
    font-weight: 700;
}

.thevenin-intro__note p {
    margin: 0;
    color: #53625d;
    font-size: .82rem;
    line-height: 1.55;
}

.thevenin-intro__note strong {
    color: #263b32;
}

.thevenin-workspace {
    padding: 3.5rem 0 4.5rem;
}

.thevenin-workspace__heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.thevenin-workspace__heading h2 {
    margin: 0;
    color: #223b31;
    font-size: 1.75rem;
}

.thevenin-workspace__heading > p {
    margin: 0 0 .2rem;
    color: var(--thevenin-muted);
    font-size: .9rem;
}

.thevenin-calculator {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--thevenin-line);
    border-radius: .35rem;
    background: #fff;
}

.thevenin-calculator__inputs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.thevenin-input label {
    display: block;
    margin-bottom: 0.5rem;
    color: #173c2e;
    font-weight: 700;
}

.thevenin-input__control {
    display: flex;
    align-items: center;
    border: 1px solid #cad9ce;
    border-radius: 0.65rem;
    background: #fff;
}

.thevenin-input__control:focus-within {
    outline: 3px solid rgb(23 104 79 / 18%);
    border-color: var(--thevenin-green);
}

.thevenin-input__control input {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.25rem 0.75rem 0.8rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: #173c2e;
    font: inherit;
}

.thevenin-input__control span {
    padding: 0 0.75rem 0 0.35rem;
    color: #53665c;
    white-space: nowrap;
}

.thevenin-input__control:has(input[aria-invalid="true"]) {
    border-color: #b42318;
}

.thevenin-input > p {
    margin: 0.45rem 0 0;
    color: #617267;
    font-size: 0.82rem;
}

.thevenin-calculator__error {
    margin: 1rem 0 0;
    color: #b42318;
    font-weight: 600;
}

.thevenin-calculator__circuits {
    --thevenin-green: #17684f;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.thevenin-circuit {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid #e1e9e3;
    border-radius: .35rem;
    background: #fbfdfb;
}

.thevenin-circuit figcaption {
    color: #173c2e;
    font-weight: 700;
}

.thevenin-circuit svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 36 / 25;
    margin: 0.75rem auto 0;
    overflow: visible;
}

.thevenin-wire {
    fill: none;
    stroke: var(--thevenin-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.thevenin-source {
    fill: #fff;
    stroke: var(--thevenin-green);
    stroke-width: 3;
}

.thevenin-node {
    fill: var(--thevenin-green);
}

.thevenin-component {
    fill: #e8f3eb;
    stroke: var(--thevenin-green);
    stroke-width: 2.5;
}

.thevenin-circuit__mark {
    fill: #173c2e;
    font: 700 1.1rem system-ui, sans-serif;
}

.thevenin-circuit__label {
    fill: #173c2e;
    font: 600 0.85rem system-ui, sans-serif;
}

.thevenin-circuit__callout rect {
    fill: #fff;
    stroke: #b8cdbd;
    stroke-width: 1.25;
}

.thevenin-circuit__callout text {
    fill: #294b39;
    font: 600 12px system-ui, sans-serif;
}

.thevenin-results {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #dce4dd;
    border-left: 3px solid #b07a39;
    border-radius: 0;
    background: var(--thevenin-paper);
}

.thevenin-results h3 {
    margin: 0 0 1rem;
    color: #173c2e;
}

.thevenin-results dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.5rem;
    margin: 0;
}

.thevenin-results dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #d4e4d8;
}

.thevenin-results dt {
    color: #435b4b;
}

.thevenin-results dd {
    margin: 0;
    color: #173c2e;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.thevenin-privacy,
.thevenin-related {
    max-width: 58rem;
    margin: 1rem auto 0;
    color: #53665c;
    line-height: 1.7;
}

.thevenin-related a {
    color: var(--thevenin-green-dark);
    font-weight: 700;
}

@media (max-width: 760px) {
    .thevenin-intro {
        padding-top: 3.5rem;
    }

    .thevenin-intro__layout {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.75rem;
    }

    .thevenin-intro__note {
        width: auto;
        flex-basis: auto;
    }

    .thevenin-workspace__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .thevenin-workspace__heading > p {
        margin-top: .25rem;
    }
}

@media (max-width: 800px) {
    .thevenin-calculator__inputs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thevenin-workspace__heading {
        display: block;
    }

    .thevenin-workspace__heading > p {
        margin-top: 0.75rem;
    }
}

@media (max-width: 560px) {
    .thevenin-calculator__circuits,
    .thevenin-results dl {
        grid-template-columns: 1fr;
    }

    .thevenin-results dl > div {
        align-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thevenin-page *,
    .thevenin-page *::before,
    .thevenin-page *::after {
        scroll-behavior: auto !important;
    }
}
