.learn .nav .links a[aria-current="page"] { color: var(--text); }
.learn-hub { padding: 140px 0 80px; }
.learn-hero { max-width: 1240px; }
.learn-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 18px; }
.learn-hero .head-lede { max-width: 640px; color: var(--muted); font-size: 18px; }
.learn-label { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-light); margin: 64px 0 18px; }

.learn-search { position: relative; max-width: 560px; margin-top: 28px; }
.learn-search svg { position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.learn-search input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--rule); background: var(--panel); color: var(--text); font: 15.5px var(--body); padding: 0 16px 0 44px; box-sizing: border-box; }
.learn-search input:focus { outline: none; border-color: var(--blue); }
.learn-results { position: absolute; z-index: 20; top: 54px; left: 0; right: 0; background: #0d1015; border: 1px solid var(--rule); border-radius: 12px; padding: 6px; max-height: 420px; overflow: auto; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.learn-results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.learn-results a:hover, .learn-results a:focus { background: rgba(255,255,255,.05); outline: none; }
.learn-results b { display: block; font-weight: 600; font-size: 14.5px; }
.learn-results small { color: var(--muted); font-size: 12.5px; }
.learn-results p { margin: 10px 12px; color: var(--muted); font-size: 14px; }

.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.series-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; }
.series-art { display: block; height: 96px; border-radius: 10px; margin-bottom: 18px; background: #0d1117; border: 1px solid var(--rule); background-repeat: no-repeat; background-position: center; background-size: 82% 70%; }
.art-0 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50'%3E%3Cg fill='%232F7BEF'%3E%3Crect x='14' y='6' width='22' height='7' rx='1'/%3E%3Crect x='6' y='16' width='30' height='7' rx='1'/%3E%3Crect x='18' y='26' width='18' height='7' rx='1'/%3E%3C/g%3E%3Cg fill='%23B04BE0'%3E%3Crect x='42' y='6' width='14' height='7' rx='1'/%3E%3Crect x='42' y='16' width='34' height='7' rx='1'/%3E%3Crect x='42' y='26' width='26' height='7' rx='1'/%3E%3C/g%3E%3Crect x='6' y='38' width='70' height='5' rx='1' fill='%23222a36'/%3E%3Cpath d='M86 40 L96 30 L104 34 L114 14' stroke='%235AA8FC' stroke-width='2' fill='none'/%3E%3C/svg%3E"); }
.art-1 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50'%3E%3Cpath d='M30 2v46' stroke='%23222a36'/%3E%3Cg fill='%237F77DD'%3E%3Crect x='30' y='6' width='16' height='6'/%3E%3Crect x='30' y='14' width='40' height='6'/%3E%3Crect x='30' y='22' width='62' height='6'/%3E%3Crect x='30' y='30' width='34' height='6'/%3E%3Crect x='30' y='38' width='12' height='6'/%3E%3C/g%3E%3Cpath d='M24 22h80' stroke='%23EF9F27' stroke-width='1.5'/%3E%3C/svg%3E"); }
.art-2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50'%3E%3Cpath d='M4 44 C44 44 52 8 116 6' stroke='%23EF9F27' stroke-width='2.2' fill='none'/%3E%3Cpath d='M4 26h112' stroke='%23222a36' stroke-dasharray='3 3'/%3E%3Ccircle cx='54' cy='26' r='3.5' fill='%23F1F3F6'/%3E%3C/svg%3E"); }
.series-card h3 { font-size: 20px; margin-bottom: 6px; }
.series-card > p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.series-card ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.series-card li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: #c6ccd6; }
.series-card li em { font-style: normal; font-size: 12px; color: var(--muted); }

.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--rule); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.guide-card:hover { border-color: rgba(90,168,252,.45); background: #0d1117; }
.guide-card strong { font-family: var(--display); font-weight: 600; font-size: 16px; }
.guide-card span { color: var(--muted); font-size: 13.5px; }

.learn-doc { display: grid; grid-template-columns: 232px minmax(0, 1fr) 200px; gap: 48px; padding: 120px 0 80px; align-items: start; }
.learn-side, .learn-toc { position: sticky; top: 96px; }
.learn-side nav, .learn-toc { max-height: calc(100vh - 190px); overflow: auto; }
.learn-toc { max-height: calc(100vh - 120px); }
.learn-side .learn-search { margin: 0 0 18px; }
.learn-side .learn-search input { height: 40px; font-size: 14px; border-radius: 10px; }
.learn-side .learn-search svg { top: 11px; }
.learn-side .learn-results { top: 46px; width: 360px; }
.learn-side nav p, .learn-toc p { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.learn-side nav a, .learn-toc a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 7px; color: #aeb5c0; text-decoration: none; font-size: 14px; line-height: 1.4; }
.learn-side nav a:hover, .learn-toc a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.learn-side nav a[aria-current="page"] { color: var(--text); background: rgba(47,123,239,.14); }
.learn-toc a { font-size: 13px; color: var(--muted); }
.learn-article { max-width: 760px; }
.learn-crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.learn-crumbs a { color: var(--blue-light); text-decoration: none; }
.learn-article h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 18px; }
.learn-lede { font-size: 18.5px; color: #c6ccd6; }
.learn-note { padding: 12px 16px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); color: var(--muted); font-size: 15px; }
.learn-note a, .learn-article p a { color: var(--blue-light); }
.learn-article section { padding-top: 26px; scroll-margin-top: 90px; }
.learn-article h2 { font-size: 25px; line-height: 1.25; margin: 0 0 12px; }
.learn-article h3 { font-size: 18px; margin: 18px 0 8px; }
.learn-article p, .learn-article li { color: #c6ccd6; font-size: 16.5px; line-height: 1.7; }
.learn-article ul, .learn-article ol { padding-left: 22px; }
.learn-article li { margin: 4px 0; }
.learn-article strong { color: var(--text); font-weight: 600; }
.learn-updated { margin-top: 48px; font-size: 13px !important; color: var(--muted) !important; }
.ec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ec-item { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; scroll-margin-top: 90px; }
.ec-item h3 { margin: 0 0 6px; font-size: 16.5px; }
.ec-item p { margin: 0; font-size: 15px; line-height: 1.6; }
.learn-risk { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

@media (max-width: 1100px) {
  .learn-doc { grid-template-columns: 210px minmax(0, 1fr); }
  .learn-toc { display: none; }
  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .learn-doc { grid-template-columns: 1fr; padding-top: 100px; gap: 20px; }
  .learn-side { position: static; }
  .learn-side nav { max-height: none; overflow: visible; }
  .learn-side nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
  .learn-side nav p { width: 100%; margin: 10px 0 2px; }
  .learn-side nav a { margin: 0; padding: 4px 10px; border: 1px solid var(--rule); font-size: 13px; }
  .learn-side .learn-results { width: auto; }
  .series-grid, .ec-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-hub { padding-top: 110px; }
}

.lesson-meta { color: var(--muted); font-size: 14px; margin: -6px 0 18px; }
.lesson .learn-lede p { font-size: 19px; line-height: 1.65; color: #d3d8e0; }
.learn-article code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 5px; color: var(--text); }
.lesson-fig { margin: 26px 0; }
.lesson-fig img { display: block; width: auto; max-width: 100%; height: auto; max-height: 760px; border-radius: 12px; border: 1px solid var(--rule); }
.lesson-fig figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.lesson-fig.pending div { padding: 38px 20px; border: 1px dashed rgba(90,168,252,.45); border-radius: 12px; color: var(--blue-light); font-size: 14px; text-align: center; background: rgba(47,123,239,.05); }
.lesson-table { overflow-x: auto; margin: 18px 0; }
.lesson-table table { border-collapse: collapse; min-width: 360px; font-size: 15px; }
.lesson-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--rule); }
.lesson-table td { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--rule); color: #c6ccd6; font-variant-numeric: tabular-nums; }
.lesson-table td.num { text-align: right; }
.learn-side nav a span { display: inline-block; width: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.lesson-pager a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; }
.lesson-pager a:hover { border-color: rgba(90,168,252,.45); }
.lesson-pager a.next { text-align: right; grid-column: 2; }
.lesson-pager small { font-family: var(--body); font-weight: 400; font-size: 12.5px; color: var(--muted); }
.series-card li a { color: #e3e7ee; text-decoration: none; }
.series-card li a:hover { color: var(--blue-light); }

/* colour: the brand gradient on headings and labels, as on the home page (24 Nov 2026) */
.learn-hero h1, .learn-article h1 { background: linear-gradient(100deg, #fff 0%, #8EC5FF 45%, #B07CF0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.learn-label, .learn-side nav p, .learn-toc p { color: #B07CF0; }
.guide-card:hover, .lesson-pager a:hover { border-color: rgba(176,124,240,.5); }
.learn-side nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(47,123,239,.18), rgba(176,124,240,.14)); }
.series-card li a:hover, .learn-crumbs a, .learn-note a, .learn-article p a { color: #B07CF0; }
.series-card { box-shadow: 0 30px 90px rgba(120,90,255,.10); }

/* ---- black leads (the owner's A, 26 Nov 2026): white headings, grey labels, no glows ---- */
.learn-hero h1, .learn-article h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; }
.learn-label, .learn-side nav p, .learn-toc p { color: var(--muted); }
.guide-card:hover, .lesson-pager a:hover { border-color: rgba(255, 255, 255, .3); }
.learn-side nav a[aria-current="page"] { background: rgba(255, 255, 255, .07); }
.series-card li a:hover, .learn-crumbs a, .learn-note a, .learn-article p a { color: var(--blue-light); }
.series-card { box-shadow: none; }
