/* Learn hub (/learn/), built by scripts/generate-learn-hub.js.
   Spec: the approved site-page mock of 2026-11-10 (Learn hub).
   No cards: structure is spacing, type size and hairlines. Fills only on the
   segmented pickers. Colours come from the live tokens (styles.css, v3.css,
   Field accent); dark is the default, light follows v3.css's switch. */

.lh{
  --lh-field:#1C1C1E; --lh-field-b:#2C2C2E; --lh-seg-on:#3A3A3C; --lh-seg-shadow:none;
  position:relative; z-index:1; display:block; color:var(--text-1); font-family:var(--font-sans); font-size:15px; line-height:1.5;
}
@media (prefers-color-scheme: light){ :root:not([data-theme="dark"]) .lh{ --lh-field:#E9E9EE; --lh-field-b:#DCDCE1; --lh-seg-on:#FFFFFF; --lh-seg-shadow:0 1px 3px rgba(0,0,0,.14); } }
:root[data-theme="light"] .lh{ --lh-field:#E9E9EE; --lh-field-b:#DCDCE1; --lh-seg-on:#FFFFFF; --lh-seg-shadow:0 1px 3px rgba(0,0,0,.14); }

.lh a{ color:inherit; text-decoration:none; }
.lh h2{ font-size:22px; font-weight:700; letter-spacing:-0.03em; line-height:1.2; margin:0 0 14px; color:var(--text-1); }
.lh ul, .lh ol{ list-style:none; margin:0; padding:0; }
.lh :focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

.lh-wrap{ max-width:var(--container,1240px); margin:0 auto; padding:0 20px 24px; }

/* head */
.lh-head{ padding:108px 0 0; }
.lh-crumb{ display:flex; flex-wrap:wrap; gap:4px 8px; font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); margin:0 0 14px; }
.lh-crumb a{ color:var(--text-3); }
.lh-crumb a:hover{ color:var(--text-1); }
.lh-crumb span[aria-hidden]{ opacity:.6; }
.lh-head h1{ font-size:31px; font-weight:700; letter-spacing:-0.04em; line-height:1.06; margin:0; }
.lh-answer{ margin:22px 0 0; font-size:18px; line-height:1.5; color:var(--text-1); max-width:62ch; text-wrap:pretty; }

/* segmented picker (a control, so it may carry a fill) */
.lh-seg{ display:flex; background:var(--lh-field); border:1px solid var(--lh-field-b); border-radius:12px; padding:3px; gap:2px; max-width:100%; }
.lh-seg button{ appearance:none; -webkit-appearance:none; border:0; background:none; cursor:pointer; font:600 14.5px var(--font-sans); color:var(--text-2); padding:9px 6px; min-height:40px; border-radius:9px; white-space:nowrap; flex:1; }
.lh-seg button:hover{ color:var(--text-1); }
.lh-seg button[aria-selected="true"], .lh-seg button[aria-pressed="true"]{ background:var(--lh-seg-on); color:var(--text-1); box-shadow:var(--lh-seg-shadow); }
.lh-lvl{ width:100%; max-width:520px; }

/* labels and article lines */
.lh-lab{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); margin:0 0 10px; }
.lh-art b{ display:block; font-size:16px; font-weight:600; letter-spacing:-0.015em; color:var(--text-1); line-height:1.35; }
.lh-art a:hover b{ color:var(--accent); }
.lh-am{ display:block; font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); margin-top:4px; }

/* where are you starting */
.lh-startsec{ padding:30px 0 8px; border-top:1px solid var(--hair); }
.lh-steps{ margin:14px 0 0 !important; counter-reset:st; max-width:640px; }
.lh-steps[hidden]{ display:none; }
.lh-steps li{ counter-increment:st; display:grid; grid-template-columns:28px minmax(0,1fr); gap:0 6px; padding:13px 0; border-top:1px solid var(--hair); }
.lh-steps li::before{ content:counter(st); font-family:var(--font-mono); font-size:13px; color:var(--text-3); padding-top:2px; }
.lh-steps li:first-child{ border-top:0; }

/* news */
.lh-news{ padding:28px 0 4px; }
.lh-newslist li{ padding:13px 0; border-top:1px solid var(--hair); }
.lh-newslist li:first-child{ border-top:0; padding-top:4px; }
.lh-newslist .d{ display:block; font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); margin-bottom:2px; }
.lh-newslist .ad{ display:block; font-size:14px; color:var(--text-2); margin-top:3px; line-height:1.45; }
.lh-more{ display:inline-block; margin:6px 0 0; font-size:14px; font-weight:600; color:var(--text-2) !important; }
.lh-more:hover{ color:var(--accent) !important; }

/* paths: expandable rows */
.lh-blk{ padding:30px 0 8px; border-top:1px solid var(--hair); }
.lh-paths details{ border-top:1px solid var(--hair); }
.lh-paths details:last-child{ border-bottom:1px solid var(--hair); }
.lh-paths summary{ list-style:none; cursor:pointer; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 16px; padding:15px 0; align-items:baseline; }
.lh-paths summary::-webkit-details-marker{ display:none; }
.lh-paths summary .t{ font-size:17px; font-weight:650; letter-spacing:-0.02em; color:var(--text-1); }
.lh-paths summary .c{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.04em; color:var(--text-2); white-space:nowrap; font-variant-numeric:tabular-nums; }
.lh-paths summary .s{ grid-column:1 / -1; font-size:14px; color:var(--text-2); }
.lh-paths summary:hover .t, .lh-paths details[open] summary .t{ color:var(--accent); }
.lh-paths .pl{ margin:0 0 14px; }
.lh-paths .pl li{ display:flex; justify-content:space-between; gap:16px; padding:9px 0; border-top:1px solid var(--hair); font-size:15px; }
.lh-paths .pl li a{ color:var(--text-1); min-width:0; }
.lh-paths .pl li a:hover{ color:var(--accent); }
.lh-paths .pl li span{ font-family:var(--font-mono); font-size:11.5px; color:var(--text-3); white-space:nowrap; padding-top:2px; }

/* all articles */
.lh-allhead{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin:0 0 6px; }
.lh-allhead h2{ margin:0; }
.lh-sort button{ flex:none; padding:7px 14px; min-height:0; font-size:13.5px; }
.lh-alist{ display:grid; grid-template-columns:minmax(0,1fr); column-gap:48px; }
.lh-alist li{ padding:13px 0; border-top:1px solid var(--hair); min-width:0; }

@media (min-width:860px){
  .lh-wrap{ padding:0 40px 24px; }
  .lh-head{ padding-top:140px; }
  .lh-head h1{ font-size:46px; }
  .lh-answer{ font-size:20px; }
  .lh h2{ font-size:26px; }
}
@media (min-width:960px){
  .lh-grid{ display:grid; grid-template-columns:minmax(0,1fr) 340px; grid-template-areas:"start news"; column-gap:72px; align-items:start; }
  .lh-news{ grid-area:news; padding-top:34px; }
  .lh-start{ grid-area:start; }
  .lh-startsec{ border-top:0; }
  .lh-paths{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:48px; align-items:start; }
  .lh-paths details:nth-last-child(2){ border-bottom:1px solid var(--hair); }
  .lh-alist{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce){ .lh *{ transition:none !important; } }
