.cu-verify-gate__panel.cu-card-cream {
    max-height: min(92vh, 860px);
    overflow: auto;
    background: #FAF8F3;
    color: #1F2421;
}

.cu-learn {
    background: #FAF8F3;
    color: #1F2421;
    border-radius: 18px;
    padding: var(--cu-space-5) var(--cu-space-4) var(--cu-space-6);
    box-shadow: 0 10px 30px rgba(31, 36, 33, 0.08);
}

.cu-learn-lede,
.cu-learn-series p,
.cu-learn-stage p,
.cu-learn-see p {
    line-height: 1.5;
    max-width: var(--cu-measure);
}

.cu-learn li {
    line-height: 1.5;
    max-width: none;
}

.cu-learn-kicker {
    margin: 0 0 0.35rem;
    color: #0f766e;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.cu-learn-series {
    margin: var(--cu-section-gap) 0 0;
    padding: var(--cu-card-pad);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(31, 36, 33, 0.06);
}

.cu-learn > section,
.cu-learn > h2 {
    margin-top: var(--cu-section-gap);
}

.cu-learn > section > h2,
.cu-learn > h2,
.cu-learn-series h2,
.cu-learn-stage h2,
.cu-learn-see h2 {
    margin: var(--cu-heading-gap-before) 0 var(--cu-heading-gap-after);
    max-width: var(--cu-measure);
    line-height: 1.25;
}

.cu-learn > section > h2:first-child,
.cu-learn-see > h2:first-child {
    margin-top: 0;
}

.cu-learn-series h2 {
    margin-top: var(--cu-space-3);
}

.cu-learn-list {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0;
    display: grid;
    gap: var(--cu-list-gap);
}

.cu-learn-list a {
    display: grid;
    gap: 0.1rem;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    background: #FAF8F3;
    color: #1F2421;
    text-decoration: none;
    min-height: 44px;
}

.cu-learn-list a span,
.cu-learn-continue__kicker {
    color: #0f766e;
    font-size: 0.78rem;
}

.cu-learn-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-size: 0.78rem;
}

.cu-learn-badge--quiet {
    background: transparent;
    color: #0f766e;
    box-shadow: inset 0 0 0 1px #0d9488;
}

.cu-learn-dots {
    display: flex;
    gap: 0.4rem;
    margin: 0.4rem 0 0.8rem;
}

.cu-learn-dot {
    width: 44px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: #d9d3c7;
    padding: 0;
}

.cu-learn-dot--on {
    background: #0d9488;
}

.cu-learn-stage,
.cu-learn-see,
.cu-learn-reveal {
    background: #fff;
    color: #1c1917;
    border-radius: 16px;
    padding: var(--cu-card-pad);
    box-shadow: 0 8px 24px rgba(31, 36, 33, 0.06);
}

.cu-shell[data-theme="dark"] .cu-learn-stage,
.cu-shell[data-theme="dark"] .cu-learn-see,
.cu-shell[data-theme="dark"] .cu-learn-reveal {
    background: #16302c;
    color: #f5f0e6;
}

.cu-shell[data-theme="dark"] .cu-learn-stage label,
.cu-shell[data-theme="dark"] .cu-learn-stage .cu-empty,
.cu-shell[data-theme="dark"] .cu-learn-stage p {
    color: #f5f0e6;
}

.cu-shell[data-theme="dark"] .cu-learn-stage .cu-send-input {
    background: #0f1c1a;
    color: #f5f0e6;
    border-color: rgba(94, 234, 212, 0.35);
}

.cu-learn-svg {
    width: 100%;
    height: auto;
    margin-bottom: 0.6rem;
}

.cu-learn-svg text {
    fill: #1c1917;
    font-size: 12px;
    font-weight: 650;
    text-anchor: middle;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.cu-strategy-node[data-on="true"] + .cu-node-label,
.cu-strategy-node[data-on="True"] + .cu-node-label {
    fill: #fff;
}

.cu-svg-label {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 2px;
    color: #1c1917;
    background: transparent;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.cu-svg-label--on {
    color: #fff;
}

.cu-svg-label--sm {
    font-size: 11px;
}

.cu-learn-svg rect,
.cu-learn-svg ellipse,
.cu-learn-svg circle {
    fill: #f4fffd;
    stroke: #0f766e;
    stroke-width: 1.5;
}

.cu-learn-flow {
    fill: none;
    stroke: #0d9488;
    stroke-width: 2;
}

.cu-learn-node,
.cu-learn-flow {
    opacity: 0.28;
}

.cu-learn-node[data-on="True"],
.cu-learn-node[data-on="true"],
.cu-learn-flow[data-on="True"],
.cu-learn-flow[data-on="true"] {
    opacity: 1;
}

.cu-learn-nav {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.cu-learn-nav button,
.cu-learn-choices button,
.cu-fine button {
    min-height: 44px;
    border-radius: 999px;
    border: 0;
    background: #0f766e;
    color: #fff;
    padding: 0.4rem 0.9rem;
}

.cu-learn-nav button:disabled {
    background: #d9d3c7;
    color: #1F2421;
}

.cu-learn-choices {
    display: grid;
    gap: 0.4rem;
}

.cu-learn-choices button {
    text-align: left;
    background: #FAF8F3;
    color: #1F2421;
    box-shadow: inset 0 0 0 1px #0d9488;
}

.cu-learn-check {
    border: 0;
    margin: 0.6rem 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.cu-learn-check label {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    min-height: 44px;
}

.cu-learn-see {
    margin-top: var(--cu-section-gap);
}

.cu-learn-see a,
.cu-learn-sources a,
.cu-learn a {
    color: #0f766e;
}

.cu-learn-sources {
    font-size: 0.85rem;
}

.cu-learn-sources a {
    margin-right: 0.7rem;
}

.cu-learn-continue {
    display: grid;
    gap: 0.1rem;
    margin: 0.8rem 0;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: #FAF8F3;
    color: #1F2421;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(31, 36, 33, 0.08);
}

.cu-fine-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.cu-fine-facts div,
.cu-fine-section,
.cu-fine-time li {
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 6px 16px rgba(31, 36, 33, 0.05);
}

.cu-fine-time {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.cu-fine-time--night {
    box-shadow: inset 3px 0 0 #0d9488;
}

.cu-fine-time--short {
    box-shadow: inset 3px 0 0 #b45309;
}

.cu-fine-time--night.cu-fine-time--short {
    box-shadow: inset 3px 0 0 #0d9488, inset 7px 0 0 #b45309;
}

.cu-fine-section {
    margin: 0.45rem 0;
}

.cu-fine-section h3 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

@media (max-width: 700px) {
    .cu-learn {
        padding: var(--cu-space-4) var(--cu-space-3) var(--cu-space-5);
        border-radius: 0;
    }

    .cu-fine-facts {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .cu-learn-node,
    .cu-learn-flow {
        transition: opacity 280ms ease;
    }

    .cu-learn-flow[data-on="True"],
    .cu-learn-flow[data-on="true"] {
        stroke-dasharray: 8 6;
        animation: cu-learn-dash 1.4s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cu-learn-node,
    .cu-learn-flow,
    .cu-strategy-node {
        transition: none;
        animation: none;
    }
}

@keyframes cu-learn-dash {
    to { stroke-dashoffset: -28; }
}

.cu-demo {
    max-width: 40rem;
}

.cu-demo-progress {
    height: 0.4rem;
    border-radius: 999px;
    background: #d9d3c7;
    overflow: hidden;
    margin: 0.4rem 0 0.8rem;
}

.cu-demo-progress span {
    display: block;
    height: 100%;
    background: #0d9488;
}

.cu-demo-banner {
    margin: 0.4rem 0 0.8rem;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    background: #e8c56b;
    color: #1c1917;
    font-weight: 700;
}

.cu-demo-scene {
    min-height: 18rem;
}

@media (prefers-reduced-motion: no-preference) {
    .cu-demo-progress span {
        transition: width 280ms ease;
    }
}

.cu-strategy-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0;
    padding: var(--cu-space-1) var(--cu-space-2);
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.cu-strategy-badge--soon {
    background: transparent;
    color: #0f766e;
    box-shadow: inset 0 0 0 1px #0d9488;
}

.cu-strategy-rules {
    list-style: none;
    margin: var(--cu-space-4) 0 0;
    padding: 0;
    display: grid;
    gap: var(--cu-card-gap);
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .cu-learn > section,
    .cu-learn-stage,
    #rules,
    #points {
        width: 100%;
        max-width: none;
    }

    .cu-strategy-rules {
        grid-template-columns: 1fr 1fr;
    }
}

.cu-strategy-rules li,
.cu-strategy-stephead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--cu-pill-gap);
}

.cu-strategy-rules li,
.cu-strategy-fold {
    background: #fff;
    border-radius: 12px;
    padding: var(--cu-card-pad);
    box-shadow: 0 6px 16px rgba(31, 36, 33, 0.05);
}

.cu-strategy-fold {
    margin: var(--cu-card-gap) 0 0;
}

.cu-strategy-fold :is(ul, ol) {
    display: grid;
    gap: var(--cu-list-gap);
    margin: var(--cu-space-3) 0 0;
    padding-left: 1.2rem;
}

.cu-strategy-fold li {
    margin: 0;
    max-width: var(--cu-measure);
}

.cu-arch {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: var(--cu-space-4) 0 0;
    padding: 0;
    max-width: 100%;
}

.cu-arch > li + li {
    margin-top: var(--cu-space-2);
}

.cu-arch > li + li::before {
    content: "";
    display: block;
    width: 0;
    height: var(--cu-space-4);
    margin-left: var(--cu-space-6);
    border-left: 2px dashed #0f766e;
}

.cu-arch__node {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--cu-space-1);
    min-height: 3.25rem;
    padding: var(--cu-space-3) var(--cu-space-4);
    border-radius: 12px;
    background: #0f766e;
    color: #fff;
    font-weight: 650;
    line-height: 1.3;
}

.cu-arch__note {
    display: block;
    color: #f0fdfa;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
}

.cu-arch__split {
    display: flex;
    flex-direction: column;
    gap: var(--cu-space-3);
}

@media (min-width: 900px) {
    .cu-arch {
        flex-direction: row;
        align-items: center;
    }

    .cu-arch > li {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
    }

    .cu-arch > li + li {
        margin-top: 0;
        margin-left: var(--cu-space-5);
    }

    .cu-arch > li + li::before {
        position: absolute;
        left: calc(var(--cu-space-5) * -1);
        top: 50%;
        width: var(--cu-space-5);
        height: 0;
        margin: 0;
        border-left: 0;
        border-top: 2px dashed #0f766e;
    }

    .cu-arch__split {
        align-self: stretch;
        justify-content: center;
    }
}

.cu-strategy-fold summary {
    cursor: pointer;
    min-height: 44px;
    font-weight: 700;
    color: #0f766e;
}

.cu-learn-svg .cu-strategy-node[data-on="True"],
.cu-learn-svg .cu-strategy-node[data-on="true"] {
    fill: #0f766e;
    stroke: #0f766e;
}

@media (prefers-reduced-motion: no-preference) {
    .cu-strategy-node {
        transform-box: fill-box;
        transform-origin: center;
        transition: fill 280ms ease;
    }

    .cu-strategy-node[data-on="True"],
    .cu-strategy-node[data-on="true"] {
        animation: cu-strategy-pop 420ms ease;
    }
}

/* Dark theme: learn, how-it-works, open books, and verify use a dark surface so bright links stay readable. */
html[data-theme="dark"] .cu-learn,
.cu-shell[data-theme="dark"] .cu-learn,
html[data-theme="dark"] .cu-learn-series,
.cu-shell[data-theme="dark"] .cu-learn-series,
html[data-theme="dark"] .cu-learn-stage,
.cu-shell[data-theme="dark"] .cu-learn-stage,
html[data-theme="dark"] .cu-learn-see,
.cu-shell[data-theme="dark"] .cu-learn-see,
html[data-theme="dark"] .cu-learn-reveal,
.cu-shell[data-theme="dark"] .cu-learn-reveal,
html[data-theme="dark"] .cu-learn-list a,
.cu-shell[data-theme="dark"] .cu-learn-list a,
html[data-theme="dark"] .cu-learn-continue,
.cu-shell[data-theme="dark"] .cu-learn-continue,
html[data-theme="dark"] .cu-fine-facts div,
.cu-shell[data-theme="dark"] .cu-fine-facts div,
html[data-theme="dark"] .cu-fine-section,
.cu-shell[data-theme="dark"] .cu-fine-section,
html[data-theme="dark"] .cu-fine-time li,
.cu-shell[data-theme="dark"] .cu-fine-time li,
html[data-theme="dark"] .cu-strategy-rules li,
.cu-shell[data-theme="dark"] .cu-strategy-rules li,
html[data-theme="dark"] .cu-strategy-fold,
.cu-shell[data-theme="dark"] .cu-strategy-fold {
    background: #1c1917;
    color: #f5f0e6;
}

/* Beats .cu-shell__main a { color:#5eead4 }, which was 1.39:1 on the cream continue card. */
html[data-theme="dark"] .cu-shell__main a.cu-learn-continue,
.cu-shell[data-theme="dark"] .cu-shell__main a.cu-learn-continue {
    background: #1c1917;
    color: #f5f0e6;
}

html[data-theme="dark"] .cu-learn a,
.cu-shell[data-theme="dark"] .cu-learn a,
html[data-theme="dark"] .cu-shell__main .cu-learn a,
.cu-shell[data-theme="dark"] .cu-shell__main .cu-learn a {
    color: #5eead4;
}

html[data-theme="dark"] .cu-learn-kicker,
.cu-shell[data-theme="dark"] .cu-learn-kicker,
html[data-theme="dark"] .cu-learn-list a span,
.cu-shell[data-theme="dark"] .cu-learn-list a span,
html[data-theme="dark"] .cu-learn-continue__kicker,
.cu-shell[data-theme="dark"] .cu-learn-continue__kicker {
    color: #99f6e4;
}

@keyframes cu-strategy-pop {
    0% { transform: scale(0.86); }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.cu-rules-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.cu-rules-flow li {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 118, 110, 0.4);
}

@media (min-width: 800px) {
    .cu-rules-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    article.cu-learn-stage:has(.cu-strategy-rail) {
        display: grid;
        grid-template-columns: 340px minmax(0, 1fr);
        column-gap: 40px;
        align-items: start;
    }

    article.cu-learn-stage > .cu-strategy-rail {
        grid-column: 1;
        grid-row: 1 / span 8;
        position: sticky;
        top: 1rem;
        margin: 0;
    }

    article.cu-learn-stage > :not(.cu-strategy-rail) {
        grid-column: 2;
        max-width: none;
    }

    #points > ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 24px;
        margin: 0.75rem 0 0;
        padding: 0;
        list-style: none;
        max-width: none;
    }

    #points > ul > li {
        max-width: none;
        margin: 0;
        padding: 0.7rem 0.85rem;
        border: 1px solid rgba(15, 118, 110, 0.35);
        border-radius: 0.65rem;
    }

    .cu-strategy-rules li {
        max-width: none;
    }
}

html[data-theme="dark"] .cu-learn :is(h1, h2, h3, p, li, label, summary, figcaption, .cu-empty),
.cu-shell[data-theme="dark"] .cu-learn :is(h1, h2, h3, p, li, label, summary, figcaption, .cu-empty) {
    color: #f5f0e6;
}

html[data-theme="dark"] .cu-learn :is(a, .cu-learn-kicker, .cu-learn-list a span, .cu-strategy-fold summary),
.cu-shell[data-theme="dark"] .cu-learn :is(a, .cu-learn-kicker, .cu-learn-list a span, .cu-strategy-fold summary) {
    color: #99f6e4;
}

/* Dark continue tile: kicker #99f6e4 on #1c1917 (13.87:1), title #f5f0e6 on #1c1917 (15.40:1).
   Beats .cu-shell[data-theme="dark"] .cu-shell__main a { color:#5eead4 }. */
html[data-theme="dark"] .cu-shell__main a.cu-learn-continue,
html[data-theme="dark"] .cu-shell__main .cu-learn a.cu-learn-continue,
.cu-shell[data-theme="dark"] .cu-shell__main a.cu-learn-continue,
.cu-shell[data-theme="dark"] .cu-shell__main .cu-learn a.cu-learn-continue {
    background: #1c1917;
    color: #f5f0e6;
}

html[data-theme="dark"] .cu-shell__main a.cu-learn-continue strong,
html[data-theme="dark"] .cu-shell__main .cu-learn a.cu-learn-continue strong,
.cu-shell[data-theme="dark"] .cu-shell__main a.cu-learn-continue strong,
.cu-shell[data-theme="dark"] .cu-shell__main .cu-learn a.cu-learn-continue strong {
    color: #f5f0e6;
}

html[data-theme="dark"] .cu-shell__main a.cu-learn-continue .cu-learn-continue__kicker,
html[data-theme="dark"] .cu-shell__main .cu-learn a.cu-learn-continue .cu-learn-continue__kicker,
.cu-shell[data-theme="dark"] .cu-shell__main a.cu-learn-continue .cu-learn-continue__kicker,
.cu-shell[data-theme="dark"] .cu-shell__main .cu-learn a.cu-learn-continue .cu-learn-continue__kicker {
    color: #99f6e4;
    background: transparent;
}

html[data-theme="dark"] .cu-learn-badge,
html[data-theme="dark"] .cu-learn-badge--quiet,
.cu-shell[data-theme="dark"] .cu-learn-badge,
.cu-shell[data-theme="dark"] .cu-learn-badge--quiet {
    color: #ffffff;
    background: #0f766e;
}

html[data-theme="dark"] .cu-strategy-badge--soon,
.cu-shell[data-theme="dark"] .cu-strategy-badge--soon {
    color: #5eead4;
    box-shadow: inset 0 0 0 1px #5eead4;
}

html[data-theme="dark"] .cu-learn :is(.cu-cta, .cu-chip-btn--on, .cu-learn-badge, .cu-learn-nav button),
.cu-shell[data-theme="dark"] .cu-learn :is(.cu-cta, .cu-chip-btn--on, .cu-learn-badge, .cu-learn-nav button) {
    color: #ffffff;
    background: #0f766e;
}

html[data-theme="dark"] .cu-learn-svg text,
.cu-shell[data-theme="dark"] .cu-learn-svg text {
    fill: #f5f0e6;
}

/* Cream type needs a dark plate. Chart bars keep the fill written on the rect. */
html[data-theme="dark"] .cu-learn-svg rect,
html[data-theme="dark"] .cu-learn-svg ellipse,
html[data-theme="dark"] .cu-learn-svg circle,
.cu-shell[data-theme="dark"] .cu-learn-svg rect,
.cu-shell[data-theme="dark"] .cu-learn-svg ellipse,
.cu-shell[data-theme="dark"] .cu-learn-svg circle {
    fill: #16302c;
}

html[data-theme="dark"] .cu-learn-svg rect[fill="#0d9488"],
.cu-shell[data-theme="dark"] .cu-learn-svg rect[fill="#0d9488"] {
    fill: #0d9488;
}

html[data-theme="dark"] .cu-learn-svg rect[fill="#0f766e"],
.cu-shell[data-theme="dark"] .cu-learn-svg rect[fill="#0f766e"] {
    fill: #0f766e;
}

html[data-theme="dark"] .cu-svg-label,
.cu-shell[data-theme="dark"] .cu-svg-label {
    color: #f5f0e6;
}

html[data-theme="dark"] .cu-svg-label--on,
.cu-shell[data-theme="dark"] .cu-svg-label--on {
    color: #ffffff;
}

html[data-theme="dark"] .cu-strategy-badge--soon,
.cu-shell[data-theme="dark"] .cu-strategy-badge--soon {
    color: #99f6e4;
    background: transparent;
    box-shadow: inset 0 0 0 1px #5eead4;
}
