/* E-learning landing (D-069, D-070), surface "learn": /learn/. Owned by the E-learning workstream.
   A clone of the owner's learning-path reference (Thảo's EN/VI file, 14/11/2026) on the design system's tokens.
   Class selectors only (prefix .leo-learn), in layer `ds`. Template: template-parts/learn-landing.php,
   learn-path-map.php, learn-stages.php. Behaviour: assets/js/ds-learn.js (the five stages, the topic lists, the
   reveals); without it every stage and list is open and nothing is hidden. English values are the defaults;
   Vietnamese sets looser leading (the reference does the same).
   Classes: .is-js (set while the page parses) = the stages and lists are controls; .is-motion (set by ds-learn.js
   when motion is allowed) = blocks below the hero wait for .is-in. Revision 02: the five stages are one grid of five equal columns (they never change width), the proof box has
   no top bar (the banned "strip on a box" motif), the early-access section is a Sun field, and the page moves:
   the hero's entry, section reveals, the chevrons arriving left to right, the stage panel and topic lists opening.
   Every movement sits under `prefers-reduced-motion: no-preference`. */

@layer ds {

	/* ---- Shared ---------------------------------------------------------------------------------- */

	.leo-learn { --leo-ease: cubic-bezier(.2, .7, .2, 1); background: var(--ds-color-paper); color: var(--ds-color-ink); font-family: var(--ds-font-family-text); overflow-x: clip; }
	.leo-learn__dp { font-family: var(--ds-font-family-display); font-stretch: 75%; font-variation-settings: 'wdth' 75; }
	.leo-learn__wrap { width: min(100% - 40px, var(--ds-size-container)); margin-inline: auto; }
	@media (min-width: 768px) { .leo-learn__wrap { width: min(90%, var(--ds-size-container)); } }
	.leo-learn__sun { color: var(--ds-color-sun); }
	.leo-learn__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	:where(.leo-learn) p { margin: 0; }
	:where(.leo-learn) button { font: inherit; }
	.leo-learn :focus-visible { outline: 3px solid var(--ds-color-ink); outline-offset: 3px; }
	.leo-learn__hero :focus-visible, .leo-learn__close :focus-visible, .leo-learn__art-head :focus-visible, .leo-learn__fold--meta .leo-learn__fold-b:focus-visible { outline-color: var(--ds-color-sun); }
	.leo-learn [id] { scroll-margin-top: 88px; }
	/* An in-page link moves the focus to its section (ds-learn.js) so the keyboard continues from there; the section
	   itself is not a control and draws no ring. */
	.leo-learn section[tabindex="-1"]:focus { outline: none; }

	/* Buttons: the Sun primary and the white-outline secondary of the reference (60 px high, display face, 18 px). */
	.leo-learn__btn { display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 28px; font-weight: 700; font-size: 18px; letter-spacing: .03em; line-height: 1; text-decoration: none; transition: background-color 160ms, color 160ms, border-color 160ms; }
	.leo-learn__btn--sun { background: var(--ds-color-sun); border: 2px solid var(--ds-color-sun); color: var(--ds-color-ink); }
	.leo-learn__btn--sun:hover, .leo-learn__btn--sun:focus-visible { background: var(--ds-color-ink); border-color: var(--ds-color-ink); color: var(--ds-color-sun); }
	.leo-learn__btn--line { border: 2px solid #fff; color: #fff; }
	.leo-learn__btn--line:hover, .leo-learn__btn--line:focus-visible { background: #fff; color: var(--ds-color-ultramarine); }
	.leo-learn__btn-arr { display: inline-block; transition: transform 200ms var(--leo-ease); }
	.leo-learn__btn:hover .leo-learn__btn-arr, .leo-learn__btn:focus-visible .leo-learn__btn-arr { transform: translateX(5px); }
	.leo-learn__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

	/* Section head: the label, then a 3 px rule to the edge (a separator beside the heading, not a box's edge). */
	.leo-learn__sechead { display: flex; align-items: center; gap: 20px; }
	.leo-learn__h2 { margin: 0; min-width: 0; font-weight: 800; font-size: clamp(34px, 3.7vw, 58px); line-height: 1; letter-spacing: 0; color: var(--ds-color-ultramarine); overflow-wrap: break-word; }
	.leo-learn__rule { flex: 1 1 24px; height: 3px; background: var(--ds-color-ultramarine); transform-origin: left center; }
	@media (max-width: 374px) { .leo-learn__h2 { font-size: 30px; } .leo-learn__sechead { gap: 14px; } }

	/* ---- Hero ------------------------------------------------------------------------------------ */

	.leo-learn__hero { position: relative; background: var(--ds-color-ultramarine); color: var(--ds-color-on-dark); overflow: hidden; }
	.leo-learn__cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); pointer-events: none; }
	.leo-learn__cols i { display: block; border-left: 1px solid var(--ds-color-rule-on-ultramarine); }
	.leo-learn__cols i:last-child { border-right: 1px solid var(--ds-color-rule-on-ultramarine); }
	.leo-learn__hero-in { position: relative; padding: 72px 0 88px; }
	.leo-learn__hero-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
	.leo-learn__hero-copy { flex: 999 1 640px; min-width: 0; }
	.leo-learn__h1 { margin: 0; font-weight: 800; font-size: clamp(44px, 7.2vw, 118px); line-height: .92; letter-spacing: 0; color: #fff; overflow-wrap: break-word; }
	.leo-learn__line { display: inline-block; }
	.leo-learn__lede { margin: 32px 0 0; max-width: 640px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
	/* The reference keeps the badge at the right edge at every width. */
	.leo-learn__badge-box { flex: 1 1 220px; display: flex; justify-content: flex-end; }
	.leo-learn__badge { width: 172px; height: 172px; border-radius: 50%; background: var(--ds-color-sun); color: var(--ds-color-ink); box-shadow: 0 0 0 3px var(--ds-color-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-8deg); font-weight: 800; line-height: .95; }
	.leo-learn__badge-n { font-size: 58px; }
	.leo-learn__badge-t { font-size: 19px; letter-spacing: .04em; }
	.leo-learn__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 72px 0 0; border-top: 1px solid rgba(255, 255, 255, .3); }
	.leo-learn__stat { min-width: 0; padding: 22px 20px 0 0; }
	.leo-learn__stat-v { margin: 0; font-weight: 800; font-size: 56px; line-height: 1; color: #fff; }
	.leo-learn__stat--sun .leo-learn__stat-v { color: var(--ds-color-sun); }
	.leo-learn__stat-l { margin: 6px 0 0; font-size: 15px; }
	@media (max-width: 767px) {
		.leo-learn__hero-in { padding: 48px 0 64px; }
		.leo-learn__stats { margin-top: 48px; }
		.leo-learn__stat-v { font-size: 48px; }
	}
	@media (max-width: 374px) {
		.leo-learn__h1 { font-size: 40px; }
		.leo-learn__badge { width: 148px; height: 148px; }
		.leo-learn__badge-n { font-size: 50px; }
		.leo-learn__badge-t { font-size: 17px; }
		.leo-learn__btn { padding: 0 22px; }
	}

	/* ---- The five-stage map ---------------------------------------------------------------------- */

	.leo-learn__map { padding: clamp(80px, 9vw, 128px) 0 clamp(72px, 7vw, 104px); }
	.leo-learn__map-p { margin: 20px 0 0; max-width: 700px; font-size: 18px; line-height: 1.6; color: var(--ds-color-ink-2); }
	.leo-learn__scroll { margin-top: 48px; overflow-x: auto; overscroll-behavior-x: contain; }
	.leo-learn__grid { min-width: 1120px; display: grid; grid-template-columns: 170px repeat(5, minmax(0, 1fr)); gap: 6px; font-size: 14px; line-height: 1.4; }
	.leo-learn__row { display: contents; }
	.leo-learn__chev { display: block; padding: 20px 30px; background: var(--ds-color-ultramarine); color: #fff; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); }
	.leo-learn__chev--first { padding-left: 18px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
	.leo-learn__chev--deep { background: var(--ds-color-ultramarine-deep); }
	.leo-learn__chev-k { display: block; font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ds-color-sun); }
	.leo-learn__chev-n { display: block; margin-top: 6px; font-weight: 800; font-size: 26px; line-height: 1; }
	.leo-learn__chev-c { display: block; margin-top: 8px; color: var(--ds-color-on-dark); }
	.leo-learn__rowlabel { padding: 14px 0; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--ds-color-ink-3); }
	.leo-learn__cell { min-width: 0; }
	.leo-learn__cell-t { display: block; }
	.leo-learn__cell--s2 { grid-column-start: 2; }
	.leo-learn__cell--s5 { grid-column-start: 5; }
	.leo-learn__cell--w2 { grid-column-end: span 2; }
	.leo-learn__cell--w3 { grid-column-end: span 3; }

	/* "You will": the reference's hairline under each cell (a row rule, not a box). */
	.leo-learn__row--will .leo-learn__cell { padding: 14px 12px; border-bottom: 1px solid var(--ds-color-grey); font-weight: 600; }
	.leo-learn__row--meta .leo-learn__cell { padding: 12px 14px; border: 1.5px solid var(--ds-color-ultramarine); }
	.leo-learn__row--meta .leo-learn__cell--plain { padding: 14px 12px; border: 0; color: var(--ds-color-ink-3); }
	.leo-learn__row--meta .leo-learn__cell-t { font-size: 16px; color: var(--ds-color-ultramarine); }
	.leo-learn__row--lens .leo-learn__cell { padding: 12px 14px; background: var(--ds-color-grey); color: var(--ds-color-ink-2); }
	.leo-learn__row--proof .leo-learn__cell { padding: 12px 14px; border: 1.5px solid var(--ds-color-ink); }
	.leo-learn__row--proof .leo-learn__cell--empty { padding: 0; border: 0; }
	.leo-learn__row--proof .leo-learn__cell--hi { background: var(--ds-color-sand); }
	.leo-learn__row--proof .leo-learn__cell-t { font-family: var(--ds-font-family-text); font-stretch: 100%; font-variation-settings: normal; font-weight: 700; }
	.leo-learn__row--how .leo-learn__cell { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
	.leo-learn__row--how .leo-learn__cell--w3 { background: var(--ds-color-sun); color: var(--ds-color-ink); font-weight: 600; }
	.leo-learn__row--how .leo-learn__cell--w2 { background: var(--ds-color-ink); color: #fff; justify-content: flex-start; }
	.leo-learn__row--how .leo-learn__cell-t { display: inline; font-weight: 800; font-size: 20px; letter-spacing: .02em; }

	/* ---- The five stages ------------------------------------------------------------------------- */
	/* One grid. Phone: a single column, each tile followed by its own panel. From 768 px: five equal columns
	   (minmax(0, 1fr): content can never widen one), the tiles on row 1, the open panel on row 2 across all five. */

	.leo-learn__stages { padding: 0 0 clamp(80px, 9vw, 128px); }
	.leo-learn__stages-p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--ds-color-ink-3); }
	.leo-learn__tabs { --leo-gap: 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--leo-gap); margin-top: 36px; }

	.leo-learn__tile { position: relative; box-sizing: border-box; min-width: 0; width: 100%; margin: 0; padding: 16px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; text-align: left; background: var(--ds-color-paper); border: 1.5px solid var(--ds-color-ink); color: var(--ds-color-ink); cursor: pointer; transition: background-color 200ms, border-color 200ms, color 200ms; }
	.leo-learn__tile-n { font-weight: 800; font-size: 52px; line-height: .8; color: var(--ds-color-ultramarine); transition: transform 240ms var(--leo-ease), color 200ms; }
	.leo-learn__tile-id { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
	.leo-learn__tile-lvl { font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--ds-color-ink-3); transition: color 200ms; }
	.leo-learn__tile-t { max-width: 100%; font-weight: 700; font-size: 18px; line-height: 1.15; color: inherit; overflow-wrap: break-word; }
	.leo-learn__tile-c { font-size: 12px; font-weight: 700; color: var(--ds-color-ink-3); transition: color 200ms; }
	.leo-learn__tile-act { display: flex; align-items: center; gap: 8px; color: var(--ds-color-ultramarine); font-weight: 700; font-size: 13px; letter-spacing: .02em; transition: color 200ms; }
	.leo-learn__tile-sign { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2px solid currentColor; font-weight: 800; font-size: 22px; line-height: 1; transition: transform 240ms var(--leo-ease); }
	.leo-learn__tile-sign::before { content: '+'; }
	.leo-learn__tile[aria-expanded="true"] .leo-learn__tile-sign::before { content: '\2212'; }
	/* Both labels share one cell, so the tile is as tall for "open" as for "collapse": opening never changes the row. */
	.leo-learn__tile-labels { display: grid; }
	.leo-learn__tile-labels > span { grid-area: 1 / 1; }
	.leo-learn__tile-close { visibility: hidden; text-transform: uppercase; }
	.leo-learn__tile[aria-expanded="true"] .leo-learn__tile-open { visibility: hidden; }
	.leo-learn__tile[aria-expanded="true"] .leo-learn__tile-close { visibility: visible; }
	/* On a phone the tile is one compact row: number, names, the +/- square. The words stay for screen readers. */
	@media (max-width: 767px) {
		.leo-learn__tile-labels { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
		.leo-learn__tile-t { font-size: 17px; }
	}

	.leo-learn__tile:hover { border-color: var(--ds-color-ultramarine); }
	.leo-learn__tile:hover .leo-learn__tile-n { transform: translateY(-3px); }
	.leo-learn__tile:hover .leo-learn__tile-sign { transform: rotate(90deg); }
	.leo-learn__tile[aria-expanded="true"] { background: var(--ds-color-ultramarine); border-color: var(--ds-color-ultramarine); color: #fff; }
	.leo-learn__tile[aria-expanded="true"] .leo-learn__tile-n, .leo-learn__tile[aria-expanded="true"] .leo-learn__tile-act { color: var(--ds-color-sun); }
	.leo-learn__tile[aria-expanded="true"] .leo-learn__tile-lvl, .leo-learn__tile[aria-expanded="true"] .leo-learn__tile-c { color: var(--ds-color-on-dark); }
	.leo-learn__tile[aria-expanded="true"]:hover .leo-learn__tile-sign { transform: none; }
	/* The open tile reaches down across the gap into its panel's Ultramarine head: one shape, tab and panel. */
	.leo-learn__tile[aria-expanded="true"]::after { content: ''; position: absolute; left: -1.5px; right: -1.5px; top: 100%; height: calc(var(--leo-gap) + 3px); background: var(--ds-color-ultramarine); }
	.leo-learn__tile[aria-expanded="true"] { z-index: 1; }

	.leo-learn__mark { display: inline-block; background: var(--ds-color-sun); color: var(--ds-color-ink); padding: 6px 10px; font-weight: 800; font-size: 13px; letter-spacing: .06em; }
	.leo-learn__mark--sm { padding: 4px 8px; font-size: 11px; letter-spacing: .05em; }

	@media (min-width: 768px) {
		.leo-learn__tabs { --leo-gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
		.leo-learn__tile { grid-row: 1; align-self: stretch; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
		.leo-learn__tile--1 { grid-column: 1; }
		.leo-learn__tile--2 { grid-column: 2; }
		.leo-learn__tile--3 { grid-column: 3; }
		.leo-learn__tile--4 { grid-column: 4; }
		.leo-learn__tile--5 { grid-column: 5; }
		.leo-learn__sp { grid-column: 1 / -1; grid-row: 2; }
		.leo-learn__tile-n { font-size: 48px; }
		.leo-learn__tile-id { gap: 8px; }
		.leo-learn__tile-lvl, .leo-learn__tile-c { font-size: 11px; }
		.leo-learn__tile-t { font-size: 15px; }
		.leo-learn__mark--sm { padding: 3px 6px; font-size: 10px; letter-spacing: .04em; }
		.leo-learn__tile-act { margin-top: auto; padding-top: 10px; align-items: flex-start; font-size: 12px; line-height: 1.25; }
		.leo-learn__tile-sign { width: auto; height: auto; border: 0; font-size: 16px; line-height: 1.1; }
	}
	@media (min-width: 1024px) {
		.leo-learn__tile { padding: 18px; }
		.leo-learn__tile-n { font-size: 56px; }
		.leo-learn__tile-t { font-size: 17px; }
		.leo-learn__tile-lvl, .leo-learn__tile-c { font-size: 12px; }
		.leo-learn__mark--sm { padding: 4px 8px; font-size: 11px; letter-spacing: .05em; }
		.leo-learn__tile-act { font-size: 13px; }
	}
	/* From 1280 px a column is the reference's own 220 px card or wider: its sizes exactly. */
	@media (min-width: 1280px) {
		.leo-learn__tile { padding: 20px; }
		.leo-learn__tile-n { font-size: 64px; }
		.leo-learn__tile-id { gap: 10px; }
		.leo-learn__tile-t { font-size: 18px; }
	}

	/* The panel: the reference's article, across the full width under the row. */
	.leo-learn__sp { min-width: 0; }
	.leo-learn.is-js .leo-learn__sp:not(.is-open) { display: none; }
	.leo-learn__art { box-sizing: border-box; width: 100%; background: var(--ds-color-paper); border: 1.5px solid var(--ds-color-ink); }
	.leo-learn.is-js .leo-learn__art { border-color: var(--ds-color-ultramarine); }
	.leo-learn__art-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 26px; background: var(--ds-color-ultramarine); color: #fff; }
	.leo-learn__art-id { min-width: 0; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
	.leo-learn__art-names { min-width: 0; }
	.leo-learn__art-n { font-weight: 800; font-size: 64px; line-height: .85; color: var(--ds-color-sun); }
	.leo-learn__art-k { margin: 0; font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--ds-color-sun); }
	.leo-learn__art-t { margin: 4px 0 0; font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; letter-spacing: 0; color: #fff; overflow-wrap: break-word; }
	.leo-learn__collapse { flex: 0 0 auto; width: 40px; height: 40px; border: 2px solid #fff; background: transparent; color: #fff; font-weight: 800; font-size: 22px; line-height: 1; cursor: pointer; transition: background-color 160ms, color 160ms; }
	.leo-learn__collapse:hover { background: #fff; color: var(--ds-color-ultramarine); }
	.leo-learn__art-body { padding: 26px; }
	.leo-learn__art-a, .leo-learn__art-b { min-width: 0; }
	.leo-learn__art-a > .leo-learn__mark { margin-bottom: 16px; }
	@media (min-width: 1024px) {
		.leo-learn__art-head { padding: 26px 32px; }
		.leo-learn__art-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; padding: 32px; }
		.leo-learn__art-b > .leo-learn__k--learn { margin-top: 0; }
		/* The audience, outcome and proof stay in sight while the topic lists run on beside them. */
		.leo-learn__art-a { position: sticky; top: 96px; align-self: start; }
	}
	.leo-learn__who { font-size: 15px; line-height: 1.6; color: var(--ds-color-ink-3); }
	.leo-learn__k { margin-top: 22px; font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ds-color-ink-3); }
	.leo-learn__k--learn { margin-top: 28px; }
	.leo-learn__outcome { margin-top: 6px; font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--ds-color-ink); }
	/* The proof: a Sun field (the reference's sand box with a 6 px Ultramarine top bar, which is the banned motif). */
	.leo-learn__proof { margin-top: 18px; padding: 16px 18px; background: var(--ds-color-sun); color: var(--ds-color-ink); }
	.leo-learn__proof-k { font-weight: 800; font-size: 13px; letter-spacing: .06em; color: var(--ds-color-ultramarine-deep); }
	.leo-learn__proof-p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ds-color-ink); }
	.leo-learn__folds { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

	.leo-learn__fold { min-width: 0; border: 1.5px solid var(--ds-color-ink); }
	.leo-learn__fold-h { margin: 0; font: inherit; letter-spacing: 0; }
	.leo-learn__fold-b { box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 14px 16px; background: var(--ds-color-paper); border: 0; color: var(--ds-color-ink); text-align: left; cursor: pointer; transition: background-color 160ms; }
	.leo-learn__fold-b:hover { background: var(--ds-color-grey); }
	.leo-learn__fold-l { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
	.leo-learn__fold-n { flex: 0 0 auto; font-weight: 800; font-size: 13px; color: var(--ds-color-ultramarine); }
	.leo-learn__fold-t { min-width: 0; font-weight: 700; font-size: 17px; text-align: left; overflow-wrap: break-word; }
	.leo-learn__fold-r { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
	.leo-learn__fold-c { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ds-color-ink-3); white-space: nowrap; }
	.leo-learn__sign { display: inline-block; width: 14px; text-align: center; font-size: 18px; font-weight: 800; line-height: 1; }
	.leo-learn__sign::before { content: '+'; }
	.leo-learn__fold-b[aria-expanded="true"] .leo-learn__sign::before { content: '\2212'; }
	/* A topic's list opens by its row height (0fr -> 1fr): no fixed heights, nothing clipped when open. */
	.leo-learn__fold-p { display: grid; grid-template-rows: 1fr; }
	.leo-learn__fold-in { min-height: 0; overflow: hidden; }
	.leo-learn__list { margin: 0; padding: 6px 20px 16px 40px; font-size: 14px; line-height: 1.7; color: var(--ds-color-ink-2); background: var(--ds-color-grey); overflow-wrap: break-word; }
	.leo-learn__list li { list-style: decimal; padding-left: 2px; }
	.leo-learn__fold--meta { margin-top: 22px; border-color: var(--ds-color-ultramarine); }
	.leo-learn__fold--meta .leo-learn__fold-b { background: var(--ds-color-ultramarine); color: #fff; }
	.leo-learn__fold--meta .leo-learn__fold-b:hover { background: var(--ds-color-ultramarine-deep); }
	.leo-learn__fold--meta .leo-learn__fold-t { font-size: 13px; letter-spacing: .04em; color: var(--ds-color-sun); }
	.leo-learn__fold--meta .leo-learn__list, .leo-learn__fold--lens .leo-learn__list { padding-top: 12px; }
	.leo-learn__fold--lens { margin-top: 14px; }
	.leo-learn__fold--lens .leo-learn__fold-b { background: var(--ds-color-grey); }
	.leo-learn__fold--lens .leo-learn__fold-b:hover { background: var(--ds-color-sand); }
	.leo-learn__fold--lens .leo-learn__fold-t { font-size: 13px; letter-spacing: .04em; color: var(--ds-color-ultramarine); }
	.leo-learn__fold--lens .leo-learn__list { background: var(--ds-color-paper); }
	.leo-learn__lensnote { margin-top: 14px; padding: 14px 16px; background: var(--ds-color-grey); font-size: 14px; line-height: 1.6; color: var(--ds-color-ink-2); }
	.leo-learn__lensnote b { color: var(--ds-color-ultramarine); }

	@media (max-width: 767px) {
		.leo-learn__art-head, .leo-learn__art-body { padding: 20px; }
		.leo-learn__fold-b { padding: 14px; }
		.leo-learn__fold-t { font-size: 16px; }
		.leo-learn__list { padding-left: 34px; padding-right: 14px; }
	}
	@media (max-width: 374px) {
		.leo-learn__art-head, .leo-learn__art-body { padding: 16px; }
		.leo-learn__fold-b { padding: 12px; gap: 8px; }
		.leo-learn__fold-r { gap: 6px; }
	}

	/* With JavaScript: the tiles are the controls, one panel open at a time, topic lists start folded. The panel's
	   own big number is the tile's, so the head drops it. */
	.leo-learn.is-js .leo-learn__art-n { display: none; }
	/* On a phone the open tile sits right on its panel and is its head: the panel's own head is for screen readers
	   only (its heading names the region), the tile is the one control that closes it, and the entry-hire mark
	   shows once, on the tile. */
	@media (max-width: 767px) {
		.leo-learn.is-js .leo-learn__collapse, .leo-learn.is-js .leo-learn__art-a > .leo-learn__mark { display: none; }
		.leo-learn.is-js .leo-learn__art-head { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
		.leo-learn.is-js .leo-learn__sp { position: relative; }
	}
	.leo-learn.is-js .leo-learn__fold:not(.is-open) .leo-learn__fold-p { grid-template-rows: 0fr; visibility: hidden; }
	/* Without it: no tiles (they would do nothing), every panel open one under another, every list readable. */
	.leo-learn:not(.is-js) .leo-learn__tile, .leo-learn:not(.is-js) .leo-learn__collapse { display: none; }
	.leo-learn:not(.is-js) .leo-learn__sp { grid-row: auto; }
	.leo-learn:not(.is-js) .leo-learn__fold-b { cursor: default; }
	.leo-learn:not(.is-js) .leo-learn__sign { display: none; }

	/* ---- A lesson (the recipe) -------------------------------------------------------------------- */

	.leo-learn__lesson { padding: clamp(80px, 9vw, 128px) 0; background: var(--ds-color-grey); }
	.leo-learn__recipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 48px; }
	.leo-learn__step { min-width: 0; padding: 28px; background: var(--ds-color-paper); border: 1.5px solid var(--ds-color-ink); }
	.leo-learn__step-t { font-weight: 800; font-size: 44px; line-height: 1; color: var(--ds-color-ultramarine); }
	.leo-learn__step-p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--ds-color-ink-2); }
	@media (max-width: 374px) { .leo-learn__recipe { grid-template-columns: minmax(0, 1fr); } .leo-learn__step { padding: 22px; } .leo-learn__step-t { font-size: 38px; } }

	/* ---- Close (the Deep field) ------------------------------------------------------------------- */

	.leo-learn__close { padding: clamp(80px, 9vw, 128px) 0; background: var(--ds-color-ultramarine-deep); color: var(--ds-color-on-dark); }
	.leo-learn__close-in { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
	.leo-learn__close-copy { flex: 999 1 560px; min-width: 0; }
	.leo-learn__h2c { margin: 0; font-weight: 800; font-size: clamp(40px, 4.8vw, 76px); line-height: .96; letter-spacing: 0; color: #fff; overflow-wrap: break-word; }
	.leo-learn__close .leo-learn__lede { margin-top: 28px; max-width: 620px; }
	.leo-learn__panel { box-sizing: border-box; flex: 1 1 360px; min-width: 0; padding: 28px; border: 2px solid rgba(255, 255, 255, .4); }
	.leo-learn__panel-t { margin: 0; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--ds-color-sun); }
	.leo-learn__panel-l { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.5; }
	.leo-learn__panel-l li { list-style: decimal; padding-left: 2px; }
	@media (max-width: 374px) { .leo-learn__h2c { font-size: 36px; } .leo-learn__panel { padding: 22px; } }

	/* ---- Early access: a Sun field, the shared form on paper --------------------------------------- */

	.leo-learn__early { padding: clamp(64px, 7vw, 104px) 0; background: var(--ds-color-sun); color: var(--ds-color-ink); }
	.leo-learn__early-in { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
	.leo-learn__early-copy { flex: 1 1 320px; min-width: 0; }
	.leo-learn__h2--early { text-transform: uppercase; color: var(--ds-color-ultramarine-deep); }
	.leo-learn__early-p { margin-top: 20px; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--ds-color-ink-2); }
	.leo-learn__early-form { box-sizing: border-box; flex: 999 1 560px; min-width: 0; padding: clamp(22px, 3vw, 40px); background: var(--ds-color-paper); border: 1.5px solid var(--ds-color-ink); }

	/* ---- Vietnamese: looser leading, the reference's own values ---------------------------------- */

	.leo-ds--learn:lang(vi) .leo-learn__h1 { font-size: clamp(44px, 7.2vw, 112px); line-height: 1.02; }
	.leo-ds--learn:lang(vi) .leo-learn__lede { line-height: 1.6; }
	.leo-ds--learn:lang(vi) .leo-learn__badge { line-height: 1.02; }
	.leo-ds--learn:lang(vi) .leo-learn__h2 { line-height: 1.08; }
	.leo-ds--learn:lang(vi) .leo-learn__map-p, .leo-ds--learn:lang(vi) .leo-learn__stages-p, .leo-ds--learn:lang(vi) .leo-learn__step-p, .leo-ds--learn:lang(vi) .leo-learn__who, .leo-ds--learn:lang(vi) .leo-learn__lensnote, .leo-ds--learn:lang(vi) .leo-learn__early-p { line-height: 1.65; }
	.leo-ds--learn:lang(vi) .leo-learn__grid { line-height: 1.45; }
	.leo-ds--learn:lang(vi) .leo-learn__chev-n { line-height: 1.08; }
	.leo-ds--learn:lang(vi) .leo-learn__tile-n { line-height: .85; }
	.leo-ds--learn:lang(vi) .leo-learn__tile-t { line-height: 1.2; }
	.leo-ds--learn:lang(vi) .leo-learn__art-n { line-height: .9; }
	.leo-ds--learn:lang(vi) .leo-learn__art-t { line-height: 1.1; }
	.leo-ds--learn:lang(vi) .leo-learn__outcome, .leo-ds--learn:lang(vi) .leo-learn__proof-p { line-height: 1.55; }
	.leo-ds--learn:lang(vi) .leo-learn__list { line-height: 1.75; }
	.leo-ds--learn:lang(vi) .leo-learn__step-t { line-height: 1.04; }
	.leo-ds--learn:lang(vi) .leo-learn__h2c { line-height: 1.06; }
	.leo-ds--learn:lang(vi) .leo-learn__panel-l { line-height: 1.55; }
	@media (max-width: 374px) { .leo-ds--learn:lang(vi) .leo-learn__h1 { font-size: 40px; } }

	/* ---- Motion ------------------------------------------------------------------------------------ */
	/* Only with JavaScript and only when the visitor has not asked for reduced motion. Nothing here changes a width.
	   Headings and coloured blocks arrive by a wipe (they rise out of a slot, clip-path) and never by opacity: a
	   half-transparent Sun or Ink over Ultramarine reads as mud. Only body copy, and things on white, fade. */

	@keyframes leo-learn-line { from { transform: translateY(.5em); clip-path: inset(100% -.3em -.6em -.3em); } to { transform: none; clip-path: inset(-.6em -.3em -.6em -.3em); } }
	@keyframes leo-learn-wipe { from { transform: translateY(22px); clip-path: inset(100% -16px -16px -16px); } to { transform: none; clip-path: inset(-16px -16px -16px -16px); } }
	@keyframes leo-learn-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
	@keyframes leo-learn-fade { from { opacity: 0; } to { opacity: 1; } }
	@keyframes leo-learn-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
	@keyframes leo-learn-chev { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
	@keyframes leo-learn-badge { 0% { transform: rotate(-80deg) scale(0); } 70% { transform: rotate(3deg) scale(1.06); } 100% { transform: rotate(-8deg) scale(1); } }
	@keyframes leo-learn-open { from { transform: translateY(-10px); clip-path: inset(0 -8px 100% -8px); } to { transform: none; clip-path: inset(0 -8px -8px -8px); } }

	@media (prefers-reduced-motion: no-preference) {
		/* The hero's entry, on load: pure CSS (the page's inline script sets .is-js while it parses), so it ends
		   visible even if ds-learn.js never arrives. About 1.3 s from the first line to the last figure. */
		.leo-learn.is-js .leo-learn__hero .leo-learn__line { animation: leo-learn-line 760ms var(--leo-ease) 100ms both; }
		.leo-learn.is-js .leo-learn__hero .leo-learn__line.leo-learn__sun { animation-delay: 230ms; }
		.leo-learn.is-js .leo-learn__hero .leo-learn__lede { animation: leo-learn-rise 700ms var(--leo-ease) 380ms both; }
		.leo-learn.is-js .leo-learn__hero .leo-learn__ctas { animation: leo-learn-wipe 640ms var(--leo-ease) 480ms both; }
		.leo-learn.is-js .leo-learn__hero .leo-learn__badge { animation: leo-learn-badge 900ms var(--leo-ease) 560ms both; }
		.leo-learn.is-js .leo-learn__hero .leo-learn__stat { animation: leo-learn-wipe 620ms var(--leo-ease) both; animation-delay: calc(600ms + var(--leo-i, 0) * 80ms); }

		/* Below the hero, blocks wait to be revealed: ds-learn.js sets .is-motion, then .is-in as each scrolls in.
		   Waiting = invisible; the moment .is-in lands, each animation's first frame takes over. */
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) .leo-learn__h2,
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) .leo-learn__line,
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) .leo-learn__lede,
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) .leo-learn__ctas,
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) .leo-learn__row:not(:first-child) > *,
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) > .leo-learn__tile,
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) > .leo-learn__step,
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) .leo-learn__panel,
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) .leo-learn__early-p,
		.leo-learn.is-motion [data-leo-reveal]:not(.is-in) .leo-learn__early-form { opacity: 0; }
		.leo-learn.is-motion .leo-learn__sechead[data-leo-reveal]:not(.is-in) .leo-learn__rule { transform: scaleX(0); }

		/* Section heads: the heading rises out of its slot, the rule draws out to the edge. */
		.leo-learn.is-js .leo-learn__sechead.is-in .leo-learn__h2 { animation: leo-learn-wipe 640ms var(--leo-ease) both; }
		.leo-learn.is-js .leo-learn__sechead.is-in .leo-learn__rule { animation: leo-learn-draw 900ms var(--leo-ease) 160ms both; }

		/* The path: the five chevrons fill in left to right like a progress line (a mask, so their arrow shape, which
		   is a clip-path, stays), then the rows. */
		.leo-learn.is-motion .leo-learn__chev { -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 50%); mask-image: linear-gradient(90deg, #000 50%, transparent 50%); -webkit-mask-size: 200% 100%; mask-size: 200% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
		.leo-learn.is-motion .is-in .leo-learn__chev { animation: leo-learn-chev 420ms cubic-bezier(.6, 0, .3, 1) both; animation-delay: calc(var(--leo-i, 0) * 120ms); }
		.leo-learn.is-js .is-in .leo-learn__row:not(:first-child) > * { animation: leo-learn-rise 600ms var(--leo-ease) both; animation-delay: 640ms; }

		/* The stage tiles, the lesson recipe: one after another. */
		.leo-learn.is-js .is-in > .leo-learn__tile, .leo-learn.is-js .is-in > .leo-learn__step { animation: leo-learn-rise 620ms var(--leo-ease) both; animation-delay: calc(var(--leo-i, 0) * 80ms); }

		/* The closing and the early-access block. */
		.leo-learn.is-js .leo-learn__close-in.is-in .leo-learn__line { animation: leo-learn-line 760ms var(--leo-ease) both; }
		.leo-learn.is-js .leo-learn__close-in.is-in .leo-learn__line.leo-learn__sun { animation-delay: 130ms; }
		.leo-learn.is-js .leo-learn__close-in.is-in .leo-learn__close-copy > .leo-learn__lede { animation: leo-learn-rise 700ms var(--leo-ease) 260ms both; }
		.leo-learn.is-js .leo-learn__close-in.is-in .leo-learn__close-copy > .leo-learn__ctas { animation: leo-learn-wipe 640ms var(--leo-ease) 360ms both; }
		.leo-learn.is-js .leo-learn__close-in.is-in .leo-learn__panel { animation: leo-learn-rise 760ms var(--leo-ease) 300ms both; }
		.leo-learn.is-js .leo-learn__early-in.is-in .leo-learn__h2 { animation: leo-learn-wipe 640ms var(--leo-ease) both; }
		.leo-learn.is-js .leo-learn__early-in.is-in .leo-learn__early-p { animation: leo-learn-rise 600ms var(--leo-ease) 120ms both; }
		.leo-learn.is-js .leo-learn__early-in.is-in .leo-learn__early-form { animation: leo-learn-rise 760ms var(--leo-ease) 180ms both; }

		/* A stage opening: its body unrolls under the head that joins the tile. A topic list grows open. */
		.leo-learn.is-js .leo-learn__sp.is-open .leo-learn__art-body { animation: leo-learn-open 380ms var(--leo-ease) both; }
		.leo-learn.is-js .leo-learn__sp.is-open .leo-learn__art-names { animation: leo-learn-line 420ms var(--leo-ease) both; }
		.leo-learn.is-js .leo-learn__fold-p { transition: grid-template-rows 300ms var(--leo-ease), visibility 0s linear 0s; }
		.leo-learn.is-js .leo-learn__fold:not(.is-open) .leo-learn__fold-p { transition: grid-template-rows 260ms var(--leo-ease), visibility 0s linear 260ms; }
	}

	@media (prefers-reduced-motion: reduce) {
		.leo-learn *, .leo-learn *::before, .leo-learn *::after { transition: none; animation: none; scroll-behavior: auto; }
	}
}
