.sor-lesson {
    --sor-bg: #0d1118;
    --sor-panel: #121923;
    --sor-deep: #080c12;
    --sor-line: #303a47;
    --sor-text: #f3f1ea;
    --sor-muted: #9eabc0;
    --sor-cyan: #5fc4d4;
    --sor-orange: #e58100;
    --sor-red: #f45b5b;
    width: 100%;
    margin: 0 auto;
    padding: 42px;
    border-top: 4px solid var(--sor-orange);
    border-right: 1px solid var(--sor-line);
    border-bottom: 1px solid var(--sor-line);
    border-left: 1px solid var(--sor-line);
    background: var(--sor-bg);
    color: var(--sor-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    box-sizing: border-box;
}

.sor-lesson *,
.sor-lesson *::before,
.sor-lesson *::after {
    box-sizing: border-box;
}

.sor-lesson h2,
.sor-lesson h3,
.sor-lesson h4,
.sor-lesson p,
.sor-lesson blockquote,
.sor-lesson dl,
.sor-lesson dd {
    margin-top: 0;
}

.sor-hero {
    max-width: 860px;
    margin-bottom: 30px;
}

.sor-eyebrow,
.sor-section-label,
.sor-premise span,
.sor-path-card header > span,
.sor-path-card dt {
    font-family: Consolas, "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}

.sor-eyebrow {
    margin-bottom: 12px;
    color: var(--sor-orange);
    font-size: .76rem;
}

.sor-hero h2 {
    margin-bottom: 12px;
    color: var(--sor-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    line-height: 1.06;
}

.sor-intro {
    margin-bottom: 0;
    color: var(--sor-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.sor-premise {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 30px;
    border-top: 1px solid var(--sor-line);
    border-left: 1px solid var(--sor-line);
}

.sor-premise > div {
    min-width: 0;
    padding: 19px 20px;
    border-right: 1px solid var(--sor-line);
    border-bottom: 1px solid var(--sor-line);
    background: var(--sor-deep);
}

.sor-premise span {
    display: block;
    margin-bottom: 8px;
    color: #75859c;
    font-size: .65rem;
}

.sor-premise strong {
    display: block;
    color: var(--sor-text);
    font-size: 1.05rem;
    line-height: 1.3;
}

.sor-layout {
    display: grid;
    grid-template-columns: minmax(270px, .72fr) minmax(0, 1.75fr);
    border: 1px solid var(--sor-line);
}

.sor-controls {
    min-width: 0;
    padding: 30px;
    border-right: 1px solid var(--sor-line);
    background: var(--sor-panel);
}

.sor-results {
    min-width: 0;
    padding: 30px;
    background: var(--sor-panel);
}

.sor-section-label {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sor-line);
    color: var(--sor-text);
    font-size: .72rem;
}

.sor-section-label span {
    margin-right: 8px;
    color: var(--sor-orange);
}

.sor-section-label-spaced {
    margin-top: 30px;
}

.sor-controls > label {
    display: block;
    margin-top: 25px;
    margin-bottom: 8px;
    color: var(--sor-text);
    font-size: .92rem;
    font-weight: 700;
}

.sor-range-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.sor-range-heading output {
    color: var(--sor-cyan);
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.55rem;
    font-weight: 700;
}

.sor-range-heading span {
    max-width: 130px;
    color: var(--sor-muted);
    font-size: .75rem;
    line-height: 1.35;
    text-align: right;
}

.sor-lesson input[type="range"] {
    width: 100%;
    height: 4px;
    margin: 10px 0 18px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: var(--sor-line);
    accent-color: var(--sor-cyan);
    cursor: pointer;
}

.sor-lesson input[type="range"]::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    border: 2px solid var(--sor-deep);
    border-radius: 0;
    background: var(--sor-cyan);
    box-shadow: 0 0 0 1px var(--sor-cyan);
    -webkit-appearance: none;
}

.sor-presets,
.sor-playback {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sor-lesson button,
.sor-next-step a {
    border-radius: 0;
    font-family: Consolas, "Courier New", monospace;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.sor-presets button,
.sor-secondary-button {
    padding: 9px 11px;
    border: 1px solid #465363;
    background: transparent;
    color: var(--sor-muted);
    cursor: pointer;
}

.sor-presets button:hover,
.sor-presets button.is-active,
.sor-secondary-button:hover {
    border-color: var(--sor-cyan);
    color: var(--sor-cyan);
}

.sor-control-note {
    margin-top: 24px;
    padding: 16px 17px;
    border-left: 3px solid var(--sor-cyan);
    background: var(--sor-deep);
    color: var(--sor-muted);
    font-size: .82rem;
}

.sor-control-note strong {
    color: var(--sor-text);
}

.sor-control-note p {
    margin: 5px 0 0;
}

.sor-playback {
    margin-top: 22px;
}

.sor-primary-button,
.sor-secondary-button {
    min-height: 42px;
    padding: 10px 15px;
    cursor: pointer;
}

.sor-primary-button {
    border: 1px solid var(--sor-orange);
    background: var(--sor-orange);
    color: #090d12;
}

.sor-primary-button:hover {
    border-color: #f09521;
    background: #f09521;
}

.sor-secondary-button {
    border-color: #465363;
}

.sor-scrubber-label {
    font-size: .82rem !important;
    font-weight: 400 !important;
}

.sor-scrubber-label output {
    color: var(--sor-cyan);
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
}

.sor-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 20px;
}

.sor-results-heading > div:first-child {
    flex: 1;
}

.sor-results-heading h3 {
    margin: 18px 0 0;
    color: var(--sor-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
}

.sor-current-returns {
    min-width: 205px;
    color: var(--sor-muted);
    font-size: .74rem;
    line-height: 1.8;
}

.sor-current-returns > div {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 7px;
}

.sor-current-returns strong {
    min-width: 52px;
    color: var(--sor-text);
    font-family: Consolas, "Courier New", monospace;
    text-align: right;
}

.sor-key {
    display: block;
    width: 10px;
    height: 3px;
}

.sor-key-early {
    background: var(--sor-orange);
}

.sor-key-late {
    background: var(--sor-cyan);
}

.sor-chart-wrap {
    position: relative;
    width: 100%;
    height: 390px;
    border: 1px solid var(--sor-line);
    background: var(--sor-deep);
}

.sor-chart-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.sor-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.sor-path-card {
    min-width: 0;
    border: 1px solid var(--sor-line);
    background: var(--sor-deep);
}

.sor-path-card header {
    padding: 16px 18px;
    border-top: 3px solid;
    border-bottom: 1px solid var(--sor-line);
}

.sor-path-early header {
    border-top-color: var(--sor-orange);
}

.sor-path-late header {
    border-top-color: var(--sor-cyan);
}

.sor-path-card header > span {
    display: block;
    margin-bottom: 4px;
    color: #75859c;
    font-size: .61rem;
}

.sor-path-card h4 {
    margin-bottom: 0;
    color: var(--sor-text);
    font-size: 1rem;
}

.sor-path-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
}

.sor-path-card dl > div {
    min-width: 0;
    padding: 14px 18px;
    border-right: 1px solid var(--sor-line);
    border-bottom: 1px solid var(--sor-line);
}

.sor-path-card dl > div:nth-child(even) {
    border-right: 0;
}

.sor-path-card dl > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.sor-path-card dt {
    margin-bottom: 6px;
    color: #75859c;
    font-size: .57rem;
    line-height: 1.35;
}

.sor-path-card dd {
    margin-bottom: 0;
    color: var(--sor-text);
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(.82rem, 1.05vw, 1rem);
    font-weight: 700;
    white-space: nowrap;
}

.sor-takeaway {
    margin: 14px 0 0;
    padding: 20px 22px;
    border: 1px solid var(--sor-cyan);
    border-left: 4px solid var(--sor-cyan);
    background: #0a1219;
    color: var(--sor-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    line-height: 1.6;
}

.sor-explanation {
    margin-top: 30px;
}

.sor-explanation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 1px solid var(--sor-line);
}

.sor-explanation-grid article {
    padding: 24px;
    border-right: 1px solid var(--sor-line);
    border-bottom: 1px solid var(--sor-line);
    background: var(--sor-deep);
}

.sor-explanation-grid h3 {
    margin-bottom: 8px;
    color: var(--sor-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.17rem;
}

.sor-explanation-grid p {
    margin-bottom: 0;
    color: var(--sor-muted);
    font-size: .88rem;
}

.sor-next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 24px;
    border-right: 1px solid var(--sor-line);
    border-bottom: 1px solid var(--sor-line);
    border-left: 1px solid var(--sor-line);
    background: var(--sor-panel);
}

.sor-next-step span,
.sor-next-step strong {
    display: block;
}

.sor-next-step span {
    margin-bottom: 3px;
    color: var(--sor-muted);
    font-size: .82rem;
}

.sor-next-step strong {
    color: var(--sor-text);
}

.sor-next-step a {
    flex: 0 0 auto;
    padding: 13px 16px;
    border: 1px solid var(--sor-cyan);
    background: var(--sor-cyan);
    color: #071016;
    text-decoration: none;
}

.sor-next-step a:hover {
    background: transparent;
    color: var(--sor-cyan);
}

@media (max-width: 980px) {
    .sor-lesson {
        padding: 32px 26px;
    }

    .sor-layout {
        grid-template-columns: 1fr;
    }

    .sor-controls {
        border-right: 0;
        border-bottom: 1px solid var(--sor-line);
    }

    .sor-chart-wrap {
        height: 350px;
    }
}

@media (max-width: 700px) {
    .sor-lesson {
        padding: 25px 17px;
    }

    .sor-premise {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sor-controls,
    .sor-results {
        padding: 21px 18px;
    }

    .sor-results-heading {
        display: block;
    }

    .sor-current-returns {
        margin-top: 14px;
    }

    .sor-chart-wrap {
        height: 310px;
    }

    .sor-path-grid,
    .sor-explanation-grid {
        grid-template-columns: 1fr;
    }

    .sor-path-card dl {
        grid-template-columns: 1fr;
    }

    .sor-path-card dl > div,
    .sor-path-card dl > div:nth-child(even),
    .sor-path-card dl > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--sor-line);
    }

    .sor-path-card dl > div:last-child {
        border-bottom: 0;
    }

    .sor-next-step {
        align-items: stretch;
        flex-direction: column;
    }

    .sor-next-step a {
        text-align: center;
    }
}

@media (max-width: 430px) {
    .sor-premise {
        grid-template-columns: 1fr;
    }

    .sor-range-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .sor-range-heading span {
        max-width: none;
        text-align: left;
    }

    .sor-chart-wrap {
        height: 280px;
    }
}
