/* One concept, three connected learning actions. All content also works without JS. */
.wl-process {
    --process-accent: var(--wl-purple);
    --process-line: color-mix(in srgb, var(--wl-purple) 24%, var(--wl-paper));
    --process-tint: color-mix(in srgb, var(--wl-purple) 7%, var(--wl-paper));
    --process-node-size: 46px;
    --process-badge-height: 32px;
    --process-badge-gap: 14px;
    --process-active-ring: color-mix(in srgb, var(--wl-purple) 14%, transparent);
    --process-active-shadow: color-mix(in srgb, var(--wl-purple) 34%, transparent);
    --process-panel-shadow: inset 0 0 0 1px var(--wl-purple), 0 0 0 4px var(--process-active-ring), 0 12px 30px -8px var(--process-active-shadow);
    --process-badge-shadow: inset 0 0 0 1px var(--wl-purple), 0 0 0 3px var(--process-active-ring), 0 6px 16px -4px var(--process-active-shadow);
    padding-block: 0 80px;
    background: linear-gradient(180deg, var(--wl-paper), var(--wl-soft) 55%, var(--wl-paper));
}
.wl-process-emphasis { color: var(--wl-purple); }
@supports (background-clip: text) {
    .wl-process-emphasis { background: var(--wl-emphasis-gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
}
.wl-process-board { border: 1px solid var(--process-line); border-radius: 30px; background: var(--wl-paper); box-shadow: 0 20px 65px -35px #63479035; overflow: hidden; }
.wm-landing .wl-process-toggle { position: absolute; right: 24px; bottom: 23px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--process-line); border-radius: 50%; background: var(--wl-paper); color: var(--wl-purple); }
.wl-process-toggle[hidden] { display: none !important; }
.wl-process-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wl-process-control-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wl-process-pause-icon { display: none; }
[data-process-play-state="running"] .wl-process-play-icon { display: none; }
[data-process-play-state="running"] .wl-process-pause-icon { display: block; }
.wm-landing .wl-process-toggle:hover { background: var(--wl-soft); border-color: var(--wl-purple); }
.wl-process-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 38px 12px 0; }
.wl-process-step { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0 20px 28px; }
.wl-process-step-heading { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wl-process-node { display: grid; place-items: center; width: var(--process-node-size); height: var(--process-node-size); margin-bottom: 12px; border: 1px solid var(--process-line); border-radius: 16px; color: var(--wl-purple); background: var(--process-tint); transition: background .5s, border-color .5s, box-shadow .5s; }
.wl-process-node svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wm-landing .wl-process-step-heading h3 { font-size: 23px; line-height: 1.4; color: var(--wl-ink); }
.wm-landing .wl-process-step-heading .wl-process-badge { display: inline-flex; align-items: center; justify-content: center; height: var(--process-badge-height); margin: 0 0 var(--process-badge-gap); padding: 5px 13px; border: 1px solid var(--process-line); border-radius: 999px; background: linear-gradient(180deg, var(--wl-paper), var(--process-tint)); color: var(--wl-purple); font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; transition: border-color .35s, box-shadow .35s; }
.wl-process-panel { display: flex; flex: 1; flex-direction: column; margin-top: 22px; border: 1px solid color-mix(in srgb, var(--wl-purple) 14%, var(--wl-paper)); border-radius: 20px; background: var(--wl-paper); transition: border-color .35s, box-shadow .35s; }
.wl-process-visual { display: grid; flex-shrink: 0; grid-template-rows: 132px 44px; justify-items: center; align-items: center; gap: 4px; height: 208px; padding: 14px 10px; border-radius: 19px 19px 0 0; background: linear-gradient(160deg, var(--wl-paper), var(--process-tint)); }
.wl-process-visual--recall { grid-template-rows: minmax(0, 1fr); gap: 0; }
.wl-process-drawing { position: relative; width: min(100%, 266px); aspect-ratio: 7 / 4; color: var(--wl-purple); }
.wl-process-circle { display: block; width: 100%; height: 100%; overflow: visible; }
.wl-process-circle-fill { fill: var(--process-tint); stroke: var(--process-line); stroke-width: 1.5; }
.wl-process-circumference { fill: none; stroke: currentColor; stroke-width: 2.3; transform: rotate(-90deg); transform-origin: 140px 76px; }
.wl-process-radius { fill: none; stroke: currentColor; stroke-width: 2; }
.wl-process-diameter { stroke: var(--wl-muted); stroke-dasharray: 4 4; opacity: .45; }
.wl-process-center { fill: currentColor; }
.wl-process-measure { fill: none; stroke: var(--process-line); stroke-width: 1.5; }
/* MathJax SVGs are rendered at build time; their ex units follow this font size. */
.wl-process-math-svg { display: inline-block; max-width: none; overflow: visible; }
.wl-process-diagram-label { position: absolute; transform: translate(-50%, -50%); font: 18px/1 "Times New Roman", serif; white-space: nowrap; }
.wl-process-diagram-label--radius { left: 59%; top: 37%; }
.wl-process-diagram-label--length { left: 76%; top: 22%; }
.wl-process-diagram-label--diameter { left: 50%; top: 99%; font-size: 16px; }
.wl-process-diagram-label--value { left: 60%; top: 36%; font-size: 17px; }
.wl-process-diagram-label--question { left: 82%; top: 23%; }
.wm-landing .wl-process-equation { display: flex; align-items: baseline; justify-content: center; gap: 7px; margin: 0; font: 32px/1.3 "Times New Roman", serif; letter-spacing: 0; color: var(--wl-ink); white-space: nowrap; }
.wl-process-formula { color: var(--wl-purple); }
.wl-process-recall-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 23px; width: 100%; }
.wm-landing .wl-process-prompt { font-size: 13px; color: var(--wl-muted); text-align: center; }
.wl-process-recall-equation { display: flex; align-items: center; justify-content: center; gap: 10px; font: 32px/1.3 "Times New Roman", serif; letter-spacing: 0; color: var(--wl-ink); }
.wl-process-blank { position: relative; display: grid; place-items: center; width: 120px; height: 64px; border: 2px solid var(--wl-purple); border-radius: 13px; background: var(--wl-paper); color: var(--wl-purple); box-shadow: 0 5px 20px #6d46b50a; }
.wl-process-caret { position: absolute; left: 50%; top: 19px; height: 24px; border-left: 2px solid currentColor; opacity: 0; }
.wl-process-check { position: absolute; right: -9px; top: -9px; width: 23px; height: 23px; padding: 2px; border: 2px solid var(--wl-paper); border-radius: 50%; fill: none; stroke: #fff; stroke-width: 2; background: var(--wl-purple); }
.wm-landing .wl-process-recall-note { margin: 0; color: var(--wl-purple); font-size: 13px; text-align: center; }
.wm-landing .wl-process-equation--apply { gap: 5px; font-size: clamp(17px, 1.8vw, 23px); }
.wl-process-result { display: inline-block; padding: 6px 7px; border-radius: 8px; color: var(--wl-purple); background: color-mix(in srgb, var(--wl-purple) 10%, var(--wl-paper)); }
.wm-landing .wl-process-description { display: flex; align-items: center; justify-content: center; flex: 1; margin: 0; padding: 14px 8px; border-top: 1px solid var(--process-tint); border-radius: 0 0 19px 19px; color: var(--wl-muted); font-size: 13px; line-height: 1.9; text-align: center; transition: color .35s, background-color .35s; }
.wl-process-inline-math { white-space: nowrap; font-family: "Times New Roman", serif; font-size: 1.1em; letter-spacing: 0; }
/* Connect icon centers, leaving an equal gap beside both nodes. */
.wl-process-next { position: absolute; z-index: 1; top: calc(var(--process-badge-height) + var(--process-badge-gap) + var(--process-node-size) / 2 - 8px); left: calc(50% + var(--process-node-size) / 2 + 14px); display: flex; align-items: center; width: calc(100% - var(--process-node-size) - 28px); height: 16px; color: var(--wl-purple); pointer-events: none; }
.wl-process-next > span { position: relative; flex: 1; height: 3px; border-radius: 999px; background: var(--process-line); }
.wl-process-next > span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--wl-purple) 45%, var(--wl-paper)), var(--wl-purple)); transform: scaleX(0); transform-origin: left; }
.wl-process-next svg { width: 16px; height: 16px; flex: 0 0 16px; margin-left: -10px; fill: none; stroke: currentColor; stroke-width: 3.9; stroke-linecap: round; stroke-linejoin: round; opacity: .65; }
.wl-process-return { position: relative; min-height: 102px; padding: 24px 70px 32px; text-align: center; }
.wl-process-loop { position: absolute; top: 0; left: 12px; width: calc(100% - 24px); height: 80px; fill: none; pointer-events: none; }
.wl-process-loop path { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.wl-process-loop-track { stroke: var(--process-line); stroke-width: 3.9; }
.wl-process-loop-light { stroke: var(--wl-purple); stroke-width: 6; stroke-dasharray: .12 1.2; stroke-dashoffset: .12; opacity: 0; }
.wl-process-loop-tip { position: absolute; top: -3px; left: calc(16.666667% + 8px); width: 16px; height: 16px; transform: translateX(-50%); color: var(--wl-purple); opacity: .55; }
.wl-process-loop-tip svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3.9; stroke-linecap: round; stroke-linejoin: round; }
.wm-landing .wl-process-return a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 5px 16px; border: 1px solid var(--process-line); border-radius: 999px; background: var(--wl-paper); color: var(--wl-muted); font-size: 13px; transition: background .4s, border-color .4s, box-shadow .4s; }
.wl-process-return a strong { color: var(--wl-purple); font-weight: 600; }
.wl-process-return a:hover { background: var(--process-tint); }
.wl-process a:focus-visible, .wl-process button:focus-visible { outline: 2px solid var(--wl-purple); outline-offset: 4px; }

/* The active step moves along the diagram; explanations never disappear. */
[data-process-phase="0"] [data-process-step="0"] .wl-process-panel,
[data-process-phase="1"] [data-process-step="1"] .wl-process-panel,
[data-process-phase="2"] [data-process-step="2"] .wl-process-panel { border-color: var(--wl-purple); box-shadow: var(--process-panel-shadow); }
.wm-landing [data-process-phase="0"] [data-process-step="0"] .wl-process-badge,
.wm-landing [data-process-phase="1"] [data-process-step="1"] .wl-process-badge,
.wm-landing [data-process-phase="2"] [data-process-step="2"] .wl-process-badge { border-color: var(--wl-purple); box-shadow: var(--process-badge-shadow); }
.wm-landing [data-process-phase="0"] [data-process-step="0"] .wl-process-description,
.wm-landing [data-process-phase="1"] [data-process-step="1"] .wl-process-description,
.wm-landing [data-process-phase="2"] [data-process-step="2"] .wl-process-description { color: var(--wl-ink); background-color: var(--process-tint); }
[data-process-phase="0"] [data-process-step="0"] .wl-process-node,
[data-process-phase="1"] [data-process-step="1"] .wl-process-node,
[data-process-phase="2"] [data-process-step="2"] .wl-process-node { background: color-mix(in srgb, var(--wl-purple) 18%, var(--wl-paper)); border-color: var(--wl-purple); box-shadow: 0 0 0 5px var(--process-tint); }
.is-process-ready[data-process-phase="0"] .wl-process-visual--understand .wl-process-circumference { animation: wl-process-outline 1.8s ease both; }
.is-process-ready[data-process-phase="0"] .wl-process-answer,
.is-process-ready[data-process-phase="0"] .wl-process-check { opacity: 0; }
.is-process-ready[data-process-phase="0"] .wl-process-caret { opacity: .6; }
.is-process-ready[data-process-phase="1"] .wl-process-answer { animation: wl-process-recall 2s ease both; }
.is-process-ready[data-process-phase="1"] .wl-process-check { animation: wl-process-confirm 2s ease both; }
.is-process-ready[data-process-phase="1"] .wl-process-caret { animation: wl-process-caret 2s ease both; }
.is-process-ready[data-process-phase="2"] .wl-process-substitution { animation: wl-process-substitute 1.6s ease both; }
.is-process-ready[data-process-phase="2"] .wl-process-result { animation: wl-process-result 1.8s ease both; }
.is-process-ready[data-process-phase="0"] [data-process-step="0"] .wl-process-next > span::after,
.is-process-ready[data-process-phase="1"] [data-process-step="1"] .wl-process-next > span::after { animation: wl-process-forward .8s 1.8s ease-in-out both; }
.is-process-ready[data-process-phase="0"] [data-process-step="0"] .wl-process-next svg,
.is-process-ready[data-process-phase="1"] [data-process-step="1"] .wl-process-next svg { animation: wl-process-forward-tip .8s 1.8s ease-in-out both; }
.is-process-ready[data-process-phase="return"] .wl-process-loop-light { animation: wl-process-loop 2.6s ease-in-out both; }
.is-process-ready[data-process-phase="return"] .wl-process-loop-tip { animation: wl-process-arrival 2.6s ease both; }
.is-process-ready[data-process-phase="return"] [data-process-step="0"] .wl-process-node { animation: wl-process-homecoming 2.6s ease both; }
.is-process-ready[data-process-phase="return"] [data-process-step="0"] .wl-process-panel { animation: wl-process-panel-homecoming 2.6s ease both; }
.is-process-ready[data-process-phase="return"] [data-process-step="0"] .wl-process-badge { animation: wl-process-badge-homecoming 2.6s ease both; }
.wm-landing .is-process-ready[data-process-phase="return"] .wl-process-return a { background: var(--process-tint); border-color: var(--wl-purple); box-shadow: var(--process-badge-shadow); }
[data-process-play-state="paused"] *, [data-process-play-state="paused"] *::before, [data-process-play-state="paused"] *::after { animation-play-state: paused !important; }
@keyframes wl-process-outline { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes wl-process-recall { 0%, 38% { opacity: 0; transform: translateY(5px); } 72%, 100% { opacity: 1; transform: none; } }
@keyframes wl-process-confirm { 0%, 65% { opacity: 0; transform: scale(.7); } 100% { opacity: 1; transform: scale(1); } }
@keyframes wl-process-caret { 0%, 20% { opacity: .7; } 30% { opacity: 0; } 40% { opacity: .7; } 50%, 100% { opacity: 0; } }
@keyframes wl-process-substitute { 0%, 20% { color: var(--wl-purple); } 100% { color: var(--wl-ink); } }
@keyframes wl-process-result { 0%, 35% { opacity: .25; transform: translateY(4px); } 80%, 100% { opacity: 1; transform: none; } }
@keyframes wl-process-forward { 0% { transform: scaleX(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes wl-process-forward-tip { 0%, 60% { opacity: .65; } 100% { opacity: 1; filter: drop-shadow(0 0 3px var(--process-active-shadow)); } }
@keyframes wl-process-loop { 0% { stroke-dashoffset: .12; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes wl-process-arrival { 0%, 70% { opacity: .35; } 100% { opacity: 1; } }
@keyframes wl-process-homecoming { 0%, 68% { background: var(--process-tint); border-color: var(--process-line); box-shadow: 0 0 0 0 transparent; } 100% { background: color-mix(in srgb, var(--wl-purple) 18%, var(--wl-paper)); border-color: var(--wl-purple); box-shadow: 0 0 0 5px var(--process-tint); } }
@keyframes wl-process-panel-homecoming { 0%, 68% { border-color: var(--process-line); box-shadow: none; } 100% { border-color: var(--wl-purple); box-shadow: var(--process-panel-shadow); } }
@keyframes wl-process-badge-homecoming { 0%, 68% { border-color: var(--process-line); box-shadow: none; } 100% { border-color: var(--wl-purple); box-shadow: var(--process-badge-shadow); } }

@media (max-width: 1000px) {
    .wl-process-step { padding-inline: 12px; }
    .wm-landing .wl-process-step-heading h3 { font-size: 21px; }
    .wm-landing .wl-process-description { font-size: 12px; }
    .wl-process-blank { width: 104px; }
    .wl-process-diagram-label { font-size: 16px; }
}
@media (max-width: 760px) {
    .wl-process { padding-block: 0 42px; }
    .wl-process-board { border-radius: 24px; }
    .wl-process-steps { grid-template-columns: 1fr; gap: 62px; padding: 28px 22px 24px; }
    .wl-process-step { padding: 0; }
    .wm-landing .wl-process-step-heading h3 { font-size: 22px; }
    .wl-process-panel { margin-top: 20px; }
    .wm-landing .wl-process-equation { font-size: 30px; }
    .wm-landing .wl-process-equation--apply { font-size: clamp(17px, 5.2vw, 23px); }
    .wm-landing .wl-process-description { font-size: 13px; text-align: center; }
    .wl-process-next { top: auto; left: calc(50% - 18px); bottom: -39px; width: 36px; transform: rotate(90deg); }
    .wl-process-return { min-height: 90px; padding: 15px 10px 36px; border-top: 1px solid var(--wl-line); background: var(--process-tint); }
    .wl-process-loop, .wl-process-loop-tip { display: none; }
    .wm-landing .wl-process-return a { font-size: 12px; gap: 4px; padding-inline: 8px; border-color: transparent; background: transparent; }
    .wm-landing .wl-process-toggle { width: 28px; height: 28px; right: 14px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .wl-process *, .wl-process *::before, .wl-process *::after { animation: none !important; transition: none !important; }
    .wl-process .wl-process-answer, .wl-process .wl-process-check { opacity: 1 !important; }
    .wl-process .wl-process-caret { opacity: 0 !important; }
}
@media print, (forced-colors: active) {
    .wl-process-emphasis { background: none; -webkit-text-fill-color: currentColor; }
    .wl-process *, .wl-process *::before, .wl-process *::after { animation: none !important; transition: none !important; }
    .wl-process-toggle { display: none !important; }
    .wl-process .wl-process-answer, .wl-process .wl-process-check { opacity: 1 !important; }
    .wl-process .wl-process-caret { opacity: 0 !important; }
}
