/* /learn. Matched to the adam.new/learn measurements, on the site.css tokens and fonts. */
.learn-page {
  background:
    radial-gradient(1200px 820px at 86% 0%, rgba(245, 197, 24, .12), transparent 58%),
    radial-gradient(1200px 1000px at 0% 20%, rgba(240, 185, 11, .07), transparent 55%),
    radial-gradient(1100px 1000px at 100% 56%, rgba(223, 111, 140, .05), transparent 52%),
    radial-gradient(1100px 1000px at 3% 88%, rgba(245, 197, 24, .07), transparent 55%),
    linear-gradient(180deg, rgba(251, 246, 232, .6), rgba(255, 255, 255, .5) 55%, rgba(251, 246, 238, .55)),
    #ffffff;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* nav aligns to the same 1500/48 container as the content (nav look comes from site.css) */
.learn-page .nav .wrap { max-width: 1500px; padding: 0 48px; }
/* /learn never has an in-page waitlist CTA competing for the eye, so the header CTA is
   always the promoted yellow (site.css leaves it outlined until .cta-promoted, which only
   the landing page's scroll logic sets). */
.learn-page .nav .nav-r .b-yellow { background: var(--yellow); border-color: transparent; color: var(--ink); }
.learn-page .nav .nav-r .b-yellow:hover { background: var(--yellow); filter: brightness(1.05); }

/* one container: 48px gutter until 1500px, then centered (adam) */
.learn-wrap { max-width: 1500px; margin: 0 auto; padding: 120px 48px 104px; }

/* masthead */
.learn-masthead { margin-bottom: 60px; }
.learn-kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 0 0 20px; }
.learn-title { font-family: var(--round); font-size: clamp(42px, 7vw, 84px); line-height: .99; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin: 0; max-width: 768px; }
.learn-title.is-guide { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; max-width: 17ch; min-height: 2.1em; }
.learn-lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 24px 0 0; max-width: 40ch; }
.learn-title.is-guide + .learn-lede { min-height: 3em; }

/* two columns: wider rail, more gap, text capped at 640 */
.learn-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 96px; align-items: start; }

/* search pill: adam's size and soft layered shadow */
.learn-search { position: relative; margin-bottom: 34px; }
.learn-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.learn-search-input { width: 100%; height: 47px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .09); background: #fff;
  padding: 0 20px 0 44px; font-family: inherit; font-size: 14.5px; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 0 rgba(31, 25, 23, .03), 0 10px 28px rgba(31, 25, 23, .07); outline: none; transition: box-shadow .18s ease, border-color .18s ease; }
.learn-search-input::placeholder { color: var(--faint); }
.learn-search-input:focus { border-color: rgba(0, 0, 0, .16); }

/* rail: each section is its own thin 1px line, made of the items' left borders, so it starts at
   the first guide (not the group label); the active item's segment is inked in */
.learn-rail { position: sticky; top: 100px; }
/* overview: no rail line; active is just bold, darker text. Text lines up with the guide titles. */
.learn-overview { display: block; padding: 0 0 0 19px; margin-bottom: 22px; font-size: 14px; color: #57514b; transition: color .12s ease; }
.learn-overview:hover { color: var(--ink); }
.learn-overview.on { color: var(--ink); font-weight: 700; }
.learn-group { margin-bottom: 28px; }
.learn-group:last-child { margin-bottom: 0; }
.learn-group-label { font-family: var(--round); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; padding-left: 19px; }
.learn-list { list-style: none; margin: 0; padding: 0; }
.learn-list li { margin: 0; }
.learn-link { display: grid; grid-template-columns: 24px 1fr; align-items: center; padding: 9px 0 9px 18px;
  border-left: 1px solid rgba(0, 0, 0, .1); color: #57514b; font-size: 14px; line-height: 1.35; transition: color .12s ease, border-color .12s ease; }
.learn-link:hover { color: var(--ink); }
.learn-link:hover:not(.on) { border-left-color: rgba(0, 0, 0, .3); }
.learn-link.on { color: var(--ink); border-left-color: var(--ink); }
.learn-num { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.learn-link.on .learn-num { color: var(--ink); }
.learn-none { font-size: 14px; color: var(--faint); margin: 12px 0 0; padding-left: 19px; }

/* article */
.learn-content { min-width: 0; max-width: 640px; }
.learn-body { font-size: 18px; line-height: 1.62; color: #3b332e; }
.learn-lead { max-width: 540px; }
.learn-lead p { font-size: 21px; line-height: 1.52; color: #2b2620; }
.learn-body h2 { font-family: var(--round); font-size: clamp(22px, 2.3vw, 26px); line-height: 1.2; font-weight: 600; letter-spacing: -.005em; color: var(--ink); margin: 54px 0 14px; scroll-margin-top: 96px; }
.learn-body h2:first-child { margin-top: 0; }
.learn-body h3 { font-family: var(--round); font-size: 21px; font-weight: 600; color: var(--ink); margin: 38px 0 10px; }
.learn-body p { margin: 0 0 24px; }
.learn-body ul, .learn-body ol { margin: 0 0 24px; padding-left: 24px; }
.learn-body li { margin: 8px 0; }
.learn-body strong { font-weight: 600; }
.learn-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.learn-body a:hover { text-decoration-color: var(--ink); }
.learn-body blockquote { margin: 30px 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--yellow); font-size: 23px; line-height: 1.36; font-weight: 500; color: var(--ink); }

/* section dividers: hairlines that fade to transparent at both ends */
.learn-cta, .learn-refs, .learn-related { position: relative; }
.learn-cta::before, .learn-refs::before, .learn-related::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .11) 14%, rgba(0, 0, 0, .11) 86%, transparent);
}
.learn-cta { margin-top: 54px; padding-top: 40px; }
.learn-cta p { font-size: 20px; line-height: 1.55; color: var(--ink); margin: 0 0 24px; max-width: 54ch; }
.learn-refs { margin-top: 52px; padding-top: 36px; }
.learn-refs h2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.learn-refs ol { margin: 0; padding-left: 20px; }
.learn-refs li { margin: 9px 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.learn-refs a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.learn-refs a:hover { color: var(--ink); }
.learn-related { margin-top: 48px; padding-top: 36px; }
.learn-related h2 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 18px; }
.learn-related ul { list-style: none; margin: 0; padding: 0; }
.learn-related li { margin: 0 0 18px; }
.learn-related a { display: block; font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.learn-related a:hover { color: var(--yellow-2); }
.learn-related-sum { display: block; font-size: 16px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* mobile rail toggle (button hidden on desktop) */
.learn-menu { display: none; }
.learn-menu svg { width: 16px; height: 16px; transition: transform .18s ease; }
.learn-menu[aria-expanded="true"] svg { transform: rotate(180deg); }

/* mobile */
@media (max-width: 880px) {
  .learn-page { background-attachment: scroll; }
  .learn-page .nav .wrap { padding: 0 22px; }
  .learn-wrap { padding: 100px 22px 72px; }
  .learn-masthead { margin-bottom: 40px; }
  .learn-cols { grid-template-columns: 1fr; gap: 0; }
  .learn-menu { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; height: 42px; padding: 0 18px;
    border-radius: 999px; border: 1px solid rgba(0, 0, 0, .12); background: #fff; font-family: inherit; font-size: 15px;
    font-weight: 500; color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px -10px rgba(24, 39, 75, .2); }
  .learn-rail { display: none; }
  .learn-rail.open { display: block; position: static; margin-bottom: 8px; }
  .learn-content { max-width: 100%; }
  .learn-body { font-size: 18px; }
  .learn-title.is-guide, .learn-title.is-guide + .learn-lede { min-height: 0; }
}
