/*!
 * learn.html — «دليل المستثمر» (investor-guide hub)
 * Page-scoped styles only: tokens from style.css, no raw colours. Logical properties (RTL-first).
 * The section accent is the academy violet, used sparingly (hero band, rules, path nodes, one mark per illustration);
 * cards stay neutral. Primary actions are ink (.btn--primary), never violet.
 *  1 Hero (copy, stats, guide map)   2 Jump nav   3 Beginner path (the bridge)   4 Filter + guide groups
 *  5 Guide cards + illustrations     6 Goals      7 Learn more (bento)          8 Standards + disclaimer
 *  9 News strip                     10 Responsive
 */

/* ---------- 1 · hero ---------- */
.learn-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.learn-hero .page-hero__grid { align-items: center; }
.learn-hero__copy { min-width: 0; }
.learn-hero__promise {
  margin-top: var(--sp-2); font-family: var(--font-head); font-size: clamp(20px, .7vw + 15px, 27px); font-weight: 700;
  line-height: var(--lh-head); color: var(--text); text-wrap: balance;
}
.learn-hero .page-hero__lead { margin-top: var(--sp-4); }
.learn-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-6); }

.learn-stats {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 0; margin: var(--sp-8) 0 0; padding: var(--sp-5) 0 0;
  list-style: none; border-top: 1px solid var(--border); max-width: 620px;
}
.learn-stats > li { min-width: 0; padding-inline-end: 22px; margin-inline-end: 22px; border-inline-end: 1px solid var(--border); }
.learn-stats > li:last-child { padding-inline-end: 0; margin-inline-end: 0; border-inline-end: 0; }
.learn-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; border-radius: 10px; }
.learn-stat__value { align-self: flex-start; font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--text); }
.learn-stat__value--text { line-height: 1.3; font-size: 30px; }
.learn-stat__label { font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--text-2); }
.learn-stat:hover .learn-stat__label { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* guide map: the six categories (links jump to — and, with JS, filter — the guide groups) */
.learn-map {
  position: relative; padding: 16px; border-radius: 24px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 52%, transparent); box-shadow: var(--shadow);
}
html[data-theme="light"] .learn-map { background: color-mix(in srgb, var(--surface) 74%, transparent); }
.learn-map__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-inline: 2px; }
.learn-map__title { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: var(--lh-head); }
.learn-map__sub { margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.learn-map__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.learn-map__item { min-width: 0; }
.learn-map__link {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "icon name" "icon topics"; align-items: center; gap: 2px 12px;
  height: 100%; min-height: 78px; padding: 12px 12px 12px 14px; border-radius: 16px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, transparent); color: inherit; text-decoration: none;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), background-color var(--t-med);
}
.learn-map__link:hover { transform: translateY(-2px); background: var(--surface); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.learn-map__icon { grid-area: icon; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.learn-map__name { grid-area: name; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; font-family: var(--font-head); font-size: 15.5px; font-weight: 700; line-height: 1.5; color: var(--text); }
.learn-map__start {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--accent-ink); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); white-space: nowrap;
}
.learn-map__topics { grid-area: topics; min-width: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.learn-map__count { font-weight: 700; color: var(--text-2); white-space: nowrap; }
.learn-map__item--lead .learn-map__link {
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 62%), color-mix(in srgb, var(--surface) 90%, transparent);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
}
.learn-map__item--lead .learn-map__icon { background: var(--brand); color: var(--brand-ink); }

/* ---------- 2 · jump nav ---------- */
.learn-jump { margin-top: var(--sp-8); }
.learn-jump ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.learn-jump li { flex: none; }
.learn-jump a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}
.learn-jump a:hover { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.learn-jump .num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-3); }

/* ---------- 3 · beginner path: six numbered piers joined by a deck and arches (a bridge to the market) ---------- */
.learn-path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: stretch; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.learn-path__step { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
/* deck: from this pier to the next one (RTL: toward the left) */
.learn-path__step:not(:last-child)::before {
  content: ""; position: absolute; top: 21px; inset-inline-start: 50%; width: calc(100% + var(--gap)); height: 2px; border-radius: 2px;
  background: linear-gradient(to left, color-mix(in srgb, var(--accent) 60%, transparent), color-mix(in srgb, var(--accent) 30%, var(--border-strong)));
}
/* arch under the deck, springing from the two piers */
.learn-path__step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; inset-inline-start: 50%; width: calc(100% + var(--gap)); height: 24px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 42%, transparent); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
.learn-path__node {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 30px; border-radius: 50%;
  font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--accent-ink); background: var(--bg);
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 5px var(--bg);
}
/* the pier under each node, down to where the arches spring */
.learn-path__node::after { content: ""; position: absolute; top: 100%; inset-inline-start: calc(50% - 1px); width: 2px; height: 12px; background: color-mix(in srgb, var(--accent) 42%, transparent); }
.learn-path__step:first-child .learn-path__node { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.learn-path__card {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 16px 16px 14px;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.learn-path__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.learn-path__kicker { font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--text-3); }
.learn-path__title { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; line-height: 1.55; text-wrap: pretty; }
.learn-path__title a { color: inherit; text-decoration: none; }
.learn-path__why { font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.learn-path__go, .gcard__go {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--accent-ink); white-space: nowrap;
}
.learn-path__go { margin-top: auto; padding-top: 4px; }
.learn-path__go .icon, .gcard__go .icon { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-spring); }
.learn-path__card:hover .learn-path__go .icon, .gcard:hover .gcard__go .icon { transform: translateX(-4px); }

.learn-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--sp-6); }
.learn-after .callout { margin: 0; }
.learn-after .callout a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 4px; }
.learn-after .callout a:hover { text-decoration-color: currentColor; }

/* ---------- 4 · filter + guide groups ---------- */
.learn-filter {
  margin-bottom: var(--sp-8); padding: 14px 16px 10px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.learn-filter__chips { gap: 8px; }
.learn-filter .fchip { min-height: 44px; padding: 0 14px; gap: 7px; }
.learn-filter .fchip .icon { width: 16px; height: 16px; color: var(--text-3); }
.learn-filter .fchip[aria-pressed="true"] .icon { color: inherit; }
.learn-filter__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 44px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.learn-filter__status { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.learn-filter__status b { font-weight: 700; color: var(--text); }
/* without scripting the buttons could not filter: every group stays visible and the hero map links still jump to each one */
@media (scripting: none) { .learn-filter { display: none; } }

.learn-groups { display: grid; gap: var(--sp-12); }
.learn-group { min-width: 0; }
.learn-group[hidden] { display: none; }
.learn-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp-5); padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.learn-group__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.learn-group__icon .icon { width: 22px; height: 22px; }
.learn-group__text { min-width: 0; }
.learn-group__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.learn-group__title { font-family: var(--font-head); font-size: 21px; font-weight: 700; line-height: var(--lh-head); }
.learn-group__count { display: inline-block; min-height: 26px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.learn-group__desc { margin-top: 2px; font-size: 14.5px; line-height: 1.75; color: var(--text-2); max-width: 75ch; }
.learn-group__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.learn-group__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.learn-group__grid--1 { grid-template-columns: minmax(0, 1fr); }
.learn-group.is-entering { animation: learn-in .42s var(--ease) both; }
@keyframes learn-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .learn-group.is-entering { animation: none; } }

/* ---------- 5 · guide cards ---------- */
.gcard { display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 16px; }
.gcard__art {
  position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; border: 1px solid var(--border);
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    radial-gradient(var(--grid-dot) 1px, transparent 1.4px) 0 0 / 14px 14px,
    var(--surface-2);
}
.gcard__art svg { position: absolute; inset: 8% 6%; width: 88%; height: 84%; overflow: visible; transition: transform var(--t-slow) var(--ease); }
.gcard:hover .gcard__art svg { transform: scale(1.04); }
.gcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; padding: 14px 6px 0; }
.gcard__title { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.55; text-wrap: pretty; }
.gcard__title a { color: inherit; text-decoration: none; }
.gcard__en { margin-top: -6px; font-size: 12.5px; font-weight: 500; line-height: 1.5; color: var(--text-3); }
.gcard__desc { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.gcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.gcard__time { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.5; color: var(--text-3); white-space: nowrap; }
.gcard__time .icon { width: 15px; height: 15px; }
.gcard__go { margin-inline-start: auto; }
.gcard__desc + .gcard__meta { margin-top: auto; }

/* two guides in a category: text beside the art */
.gcard--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); grid-template-areas: "body art"; gap: 18px; padding: 12px; }
.gcard--wide .gcard__art { grid-area: art; aspect-ratio: auto; min-height: 196px; }
.gcard--wide .gcard__body { grid-area: body; padding: 8px 6px 4px; }
/* one guide in a category: text · its companions · art */
.gcard--feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, 1fr); grid-template-areas: "body rel art"; gap: 22px; padding: 12px; }
.gcard--feature .gcard__art { grid-area: art; aspect-ratio: auto; min-height: 196px; }
.gcard--feature .gcard__body { grid-area: body; padding: 10px 8px 4px; }
.gcard--feature .gcard__title { font-size: 19px; }
/* deep links into the guide's own sections (feature cards); they sit above the card's stretched link */
.gcard__topics { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.gcard__topics-title { font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--text-3); }
.gcard__topics ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gcard__topics a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 3px 12px; border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--text-2); text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.gcard__topics a:hover { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.gcard__rel { grid-area: rel; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-self: center; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.gcard__rel-title { font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--text-3); }
.gcard__rel-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gcard__rel-list a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; margin-inline: -6px; padding: 6px; border-radius: 10px;
  font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--text); text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.gcard__rel-list a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.gcard__rel-list .icon { width: 18px; height: 18px; color: var(--text-3); }
.gcard__rel-list a:hover .icon { color: inherit; }

/* illustration parts (decorative SVG, 160×100): ink · muted · accent strokes, then fills */
.gcard__art svg * { vector-effect: non-scaling-stroke; }
.gcard__art .ln, .gcard__art .lm, .gcard__art .la, .gcard__art .lp { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.gcard__art .ln { stroke: var(--text-2); stroke-width: 2; }
.gcard__art .lm { stroke: color-mix(in srgb, var(--text-3) 55%, transparent); stroke-width: 1.5; }
.gcard__art .la { stroke: var(--accent); stroke-width: 2.5; }
.gcard__art .lp { stroke: var(--surface); stroke-width: 2; }
.gcard__art .thick { stroke-width: 3.5; }
.gcard__art .dash { stroke-dasharray: 5 5; }
.gcard__art .fp { fill: var(--surface); }
.gcard__art .fs { fill: var(--surface-3); }
.gcard__art .ft { fill: var(--accent-soft); }
.gcard__art .fa { fill: var(--accent); }
.gcard__art .fk { fill: var(--text-2); }

/* ---------- 6 · goals ---------- */
.learn-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.goal { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 16px; }
.goal__head { display: flex; align-items: center; gap: 12px; }
.goal__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.goal[data-accent] .goal__icon { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.goal__title { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: var(--lh-head); }
.goal__text { font-size: 14.5px; line-height: 1.8; color: var(--text-2); }
.goal__text a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 4px; }
.goal__list { display: grid; gap: 2px; margin: auto 0 0; padding: 10px 0 0; list-style: none; border-top: 1px solid var(--border); }
.goal__list a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; margin-inline: -8px; padding: 6px 8px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--text); text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.goal__list a:hover { background: var(--accent-soft, var(--surface-2)); color: var(--accent-ink, var(--text)); }
.goal__n {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-strong);
}
.goal__list a:hover .goal__n { border-color: currentColor; color: inherit; background: transparent; }
.goal__name { min-width: 0; }

/* ---------- 7 · learn more ---------- */
.lm-academy {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border: 0; color: var(--on-vivid); background: var(--grad-academy); box-shadow: var(--shadow-lg);
}
.lm-academy::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--on-vivid) 14%, transparent) 1px, transparent 1.4px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 75%); mask-image: linear-gradient(to left, #000, transparent 75%);
}
.lm-academy__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--on-vivid-2); }
.lm-academy__kicker .icon { width: 18px; height: 18px; }
.lm-academy__title { font-family: var(--font-head); font-size: clamp(24px, .8vw + 18px, 32px); font-weight: 800; line-height: var(--lh-head); color: var(--on-vivid); }
.lm-academy__text { max-width: 52ch; font-size: 15.5px; line-height: 1.85; color: var(--on-vivid-2); }
.lm-academy__art {
  position: relative; flex: 1 1 auto; min-height: 150px; margin-top: 4px; border-radius: 16px; overflow: hidden;
  background: color-mix(in srgb, var(--on-vivid) 8%, transparent); border: 1px solid color-mix(in srgb, var(--on-vivid) 18%, transparent);
}
.lm-academy__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lm-academy__art svg * { vector-effect: non-scaling-stroke; }
.lm-grid { fill: none; stroke: color-mix(in srgb, var(--on-vivid) 12%, transparent); stroke-width: 1; }
.lm-zero { fill: none; stroke: color-mix(in srgb, var(--on-vivid) 45%, transparent); stroke-width: 1.5; stroke-dasharray: 4 5; }
.lm-area { fill: color-mix(in srgb, var(--on-vivid) 14%, transparent); }
.lm-curve { fill: none; stroke: var(--on-vivid); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
/* the kink (strike) as an HTML dot: the SVG stretches with its box, a circle inside it would turn oval */
.lm-academy__dot {
  position: absolute; left: 61.25%; top: 53.33%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--on-vivid); box-shadow: 0 0 0 5px color-mix(in srgb, var(--on-vivid) 22%, transparent);
}
.lm-academy__stat { position: absolute; inset-block-start: 14px; inset-inline-start: 16px; display: flex; align-items: baseline; gap: 8px; color: var(--on-vivid); }
.lm-academy__stat b { font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1; }
.lm-academy__stat span { font-size: 13.5px; font-weight: 600; color: var(--on-vivid-2); }
.lm-academy__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.lm-academy__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14.5px; font-weight: 700; color: var(--on-vivid); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-vivid) 40%, transparent); text-underline-offset: 5px; }
.lm-academy__link:hover { text-decoration-color: currentColor; }
.lm-academy__link .icon { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-spring); }
.lm-academy__link:hover .icon { transform: translateX(-4px); }
.lm-academy .btn--on-vivid:focus-visible, .lm-academy__link:focus-visible { outline-color: var(--on-vivid); }

.lm-tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; color: inherit; text-decoration: none; overflow: hidden; }
.lm-tile__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft, var(--surface-3)); color: var(--accent-ink, var(--text)); }
.lm-tile__icon .icon { width: 22px; height: 22px; }
.lm-tile__title { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: var(--lh-head); }
.lm-tile__text { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.lm-tile__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--accent-ink, var(--text)); }
.lm-tile__go .icon { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-spring); }
.lm-tile:hover .lm-tile__go .icon { transform: translateX(-4px); }
.lm-tile__letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.lm-tile__letters span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1; color: var(--text-2);
}
.lm-tile__letters span:first-child { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
/* a question bubble and its answer (decorative) */
.lm-tile__chat { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; }
.lm-tile__q {
  display: grid; place-items: center; width: 40px; height: 36px; border-radius: 14px 14px 14px 4px; background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-head); font-size: 20px; font-weight: 800; line-height: 1;
}
.lm-tile__a { display: grid; align-content: center; gap: 7px; width: 112px; height: 40px; padding: 0 12px; border-radius: 14px 14px 4px 14px; background: var(--surface-2); border: 1px solid var(--border); }
.lm-tile__a i { display: block; height: 4px; border-radius: 2px; background: var(--border-strong); }
.lm-tile__a i + i { width: 62%; }
.lm-tools { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.lm-tools__head { display: flex; align-items: flex-start; gap: 14px; }
.lm-tools__head .lm-tile__text { margin-top: 4px; }
.lm-tools__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.lm-tools__link {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--text); text-decoration: none;
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-med) var(--ease);
}
.lm-tools__link:hover { background: var(--surface-3); border-color: var(--border-strong); transform: translateY(-2px); }
.lm-tools__link .icon { width: 18px; height: 18px; color: var(--accent-ink); }
.lm-tools__all { align-self: flex-start; min-height: 44px; }

/* ---------- 8 · standards + disclaimer ---------- */
.learn-std { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.learn-std__item { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.learn-std__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.learn-std__title { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: var(--lh-head); }
.learn-std__text { font-size: 14px; line-height: 1.8; color: var(--text-2); }
.learn-disclaimer { margin: var(--sp-6) 0 0; }

/* ---------- 9 · news strip (news.js compact layout, laid out as a row) ---------- */
.learn-news .news-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap); }
.learn-news .ncard--compact { padding: 16px 0 4px; border-bottom: 0; border-top: 2px solid var(--accent, var(--border-strong)); }
.learn-news .ncard--compact .ncard__title { font-size: 17.5px; }
.learn-news__noscript { padding: 18px 20px; border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); background: var(--surface); font-size: 15px; line-height: 1.8; color: var(--text-2); }
.learn-news__noscript a { color: var(--link); }

/* ---------- 10 · responsive ---------- */
@media (max-width: 1279px) {
  .gcard--feature { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr); }
  /* six piers need ~200px each: below 1280 the bridge becomes two spans of three */
  .learn-path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--sp-6); }
  .learn-path__step:nth-child(3n)::before, .learn-path__step:nth-child(3n)::after { display: none; }
  .learn-map__link { grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; padding: 10px; }
  .learn-map__icon { width: 34px; height: 34px; border-radius: 10px; }
  .learn-map__icon .icon { width: 18px; height: 18px; }
}
@media (max-width: 1099px) {
  .learn-hero__aside { margin-top: var(--sp-2); }
  .learn-map__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .learn-map__link { grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; padding: 12px 12px 12px 14px; }
  .learn-map__icon { width: 40px; height: 40px; border-radius: 12px; }
  .learn-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-group__grid--1 { grid-template-columns: minmax(0, 1fr); }
  .gcard--wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "body"; gap: 0; padding: 10px 10px 16px; }
  .gcard--wide .gcard__art { aspect-ratio: 16 / 10; min-height: 0; }
  .gcard--wide .gcard__body { padding: 14px 6px 0; }
  .gcard--feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "body art" "rel art"; gap: 14px 20px; }
  .gcard__rel { align-self: start; }
  .learn-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lm-tools__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-std { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-news .news-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .learn-hero .learn-hero__title { font-size: clamp(32px, 9vw, 40px); }
  .learn-hero__promise { font-size: 19px; }
  .learn-hero .page-hero__lead { font-size: 15.5px; line-height: 1.85; }
  .learn-hero__ctas .btn { flex: 1 1 auto; padding-inline: 16px; }
  .learn-hero__ctas .btn--lg { --btn-h: 52px; font-size: 15.5px; }
  .learn-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; margin-top: var(--sp-6); max-width: none; }
  .learn-stats > li { margin-inline-end: 0; padding-inline: 0 12px; }
  .learn-stats > li:nth-child(2n) { border-inline-end: 0; padding-inline: 16px 0; }
  .learn-stats > li:nth-child(1), .learn-stats > li:nth-child(2) { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .learn-stats > li:nth-child(3) { border-inline-end: 1px solid var(--border); }
  .learn-stat__value { font-size: 28px; }
  .learn-stat__value--text { font-size: 25px; }
  .learn-stat__label { font-size: 13px; }
  .learn-map { padding: 12px; border-radius: 20px; }
  .learn-map__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .learn-map__link { grid-template-columns: minmax(0, 1fr); grid-template-areas: "icon" "name" "topics"; align-items: start; gap: 6px; min-height: 0; padding: 10px; border-radius: 14px; }
  .learn-map__icon { width: 34px; height: 34px; border-radius: 10px; }
  .learn-map__icon .icon { width: 18px; height: 18px; }
  .learn-map__name { flex-direction: column; align-items: flex-start; gap: 0; font-size: 14.5px; }
  .learn-map__topics { font-size: 12px; }

  .learn-jump { margin-top: var(--sp-6); }
  .learn-jump ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); margin-block: -5px; padding-block: 5px; }
  .learn-jump ul::-webkit-scrollbar { display: none; }
  .learn-jump a { gap: 6px; padding: 0 12px; }

  /* the path becomes a vertical line of piers */
  .learn-path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .learn-path__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: start; padding-bottom: 12px; }
  .learn-path__step:not(:last-child)::before { top: 44px; bottom: 0; inset-inline-start: 21px; width: 2px; height: auto; background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 55%, transparent), var(--border-strong)); }
  .learn-path__step::after, .learn-path__step:not(:last-child)::after, .learn-path__node::after { display: none; }
  .learn-path__node { margin: 0; }
  .learn-path__card { padding: 12px 14px; gap: 6px; }
  .learn-path__title { font-size: 16px; }
  .learn-path__why { font-size: 13.5px; }
  .learn-after { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .learn-filter { padding: 12px 12px 8px; margin-bottom: var(--sp-6); }
  /* one swipeable row of chips; the end fades to show that more follow */
  .learn-filter__chips {
    flex-wrap: nowrap; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: -12px; padding: 2px 12px; scroll-padding-inline: 12px;
    -webkit-mask-image: linear-gradient(to left, transparent, #000 12px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to left, transparent, #000 12px, #000 calc(100% - 28px), transparent);
  }
  .learn-filter__chips::-webkit-scrollbar { display: none; }
  .learn-filter .fchip { flex: none; padding: 0 12px; font-size: 13.5px; }
  .learn-filter__status { font-size: 13.5px; }
  .learn-groups { gap: var(--sp-10); }
  .learn-group__head { gap: 12px; margin-bottom: 14px; padding-bottom: 12px; }
  .learn-group__icon { width: 42px; height: 42px; border-radius: 13px; }
  .learn-group__title { font-size: 19px; }
  .learn-group__desc { font-size: 14px; }

  /* phones: every card is a compact row (text, then a small art panel at the end) */
  .learn-group__grid, .learn-group__grid--2, .learn-group__grid--1 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gcard, .gcard--wide, .gcard--feature {
    display: grid; grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "body art"; align-items: start; gap: 10px 12px; padding: 12px;
  }
  .gcard .gcard__art, .gcard--wide .gcard__art, .gcard--feature .gcard__art { grid-area: art; aspect-ratio: 1 / 1; min-height: 0; border-radius: 12px; }
  .gcard__art svg { inset: 10% 4%; width: 92%; height: 80%; }
  /* the only guide of its category: the art as a short banner on top, then the text at full width (its section links wrap),
     then its companions. These come after the square-art rule above (same specificity), so the banner ratio wins. */
  .gcard--feature { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "body" "rel"; gap: 12px; }
  .gcard--feature .gcard__art { aspect-ratio: 16 / 7; }
  .gcard--feature .gcard__art svg { inset: 8% 18%; width: 64%; height: 84%; }
  .gcard .gcard__body, .gcard--wide .gcard__body, .gcard--feature .gcard__body { grid-area: body; padding: 0; gap: 6px; }
  .gcard__title, .gcard--feature .gcard__title { font-size: 16px; line-height: 1.55; }
  .gcard__en { display: none; }
  .gcard__desc { font-size: 13.5px; line-height: 1.7; }
  .gcard__meta { padding-top: 10px; gap: 6px 10px; }
  .gcard__go { display: none; }
  .gcard__rel { padding: 10px 12px; }

  .learn-goals { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .goal { padding: 18px 16px 12px; gap: 10px; }
  .goal__title { font-size: 17px; }
  .goal__text { font-size: 14px; }

  .lm-academy { padding: 22px 18px; gap: 12px; }
  .lm-academy__text { font-size: 15px; }
  .lm-academy__art { min-height: 132px; }
  .lm-academy__stat b { font-size: 34px; }
  .lm-academy__ctas .btn { flex: 1 1 auto; }
  .lm-tile { padding: 18px 16px; }
  .lm-tools { padding: 18px 16px; }
  .lm-tools__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .lm-tools__link { min-height: 52px; padding: 8px 10px; gap: 8px; font-size: 13px; }
  .lm-tools__link .icon { width: 16px; height: 16px; }
  .learn-std { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .learn-std__item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 14px; padding: 16px; }
  .learn-std__icon { grid-row: span 2; margin: 0; }
  .learn-std__title { font-size: 16.5px; padding-top: 8px; }
  .learn-news .news-compact { grid-template-columns: minmax(0, 1fr); }
  .learn-news .ncard--compact { padding: 14px 0 12px; border-top-width: 1px; }
}
/* phones / touch: every tap target ≥ 44px */
@media (max-width: 699px), (pointer: coarse) {
  .gcard__topics a { min-height: 44px; }
  .learn-stat { min-height: 44px; }
}
@media (max-width: 380px) {
  .learn-map__topics { display: none; }
  /* compact rows get a smaller art column; the feature card keeps its single column (art banner on top) */
  .gcard:not(.gcard--feature) { grid-template-columns: minmax(0, 1fr) 80px; }
}
@media print {
  .learn-filter, .learn-jump, .learn-news, .learn-map .edge-light { display: none !important; }
  .learn-group[hidden] { display: block !important; }
}
