/* The /learn/ pages on the Family components (hub 04:41Z, the /academy/ restyle): launch-family.css draws the header,
   hero, bands, card grid, close band and footer under #lp-family; this file adds only what the Learning Center needs,
   scoped to #lp-learn. DL2 tokens only (declared on #lp-family), no raw colours. */

/* The hero carries no video: one wide copy column, closed by its own bottom padding. */
#lp-learn .fh { padding-bottom: 72px; }
#lp-learn .fh__copy { max-width: 800px; }
#lp-learn .fh__k a { color: inherit; text-decoration: none; }
#lp-learn .fh__k a:hover { color: var(--dl-action); }

/* Guide cards carry no video, so the Family card grid keeps three rows: head, line, link. */
#lp-learn .lp-learn__cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-template-rows: auto 1fr auto; row-gap: 16px; }
#lp-learn .lp-learn__cards .fu__card { grid-row: span 3; }
/* Multi-column only for a full row: one card spans the row, two split it (lp-learn__cards--n<count>). */
#lp-learn .lp-learn__cards--n1 { grid-template-columns: minmax(0, 1fr); }
#lp-learn .lp-learn__cards--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* The guide body: the Family type scale on the existing sections and form. */
#lp-learn .lp-learn__toc { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--dl-muted); }
#lp-learn .lp-learn__toc a, #lp-learn .lp-learn__col a { color: var(--dl-action); font-weight: 600; text-underline-offset: 3px; }
#lp-learn .lp-learn__body { padding: 64px 0; }
#lp-learn .lp-learn__col { max-width: 848px; }
#lp-learn .lp-learn__col section { margin: 0 0 48px; }
#lp-learn .lp-learn__col section:last-child { margin-bottom: 0; }
#lp-learn .lp-learn__col h2 { margin: 0 0 16px; font-family: var(--dl-font-display); font-size: 28px; line-height: 36px; font-weight: 600; color: var(--dl-ink); }
#lp-learn .lp-learn__col p, #lp-learn .lp-learn__col dd { margin: 0 0 16px; font-size: 16px; line-height: 26px; color: var(--dl-text); }
#lp-learn .lp-learn__col dt { margin-top: 16px; font-size: 16px; line-height: 24px; color: var(--dl-ink); }
#lp-learn .lp-learn__col dd { margin-left: 0; }
#lp-learn .lp-learn__col label { display: block; margin: 16px 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--dl-ink); }
#lp-learn .lp-learn__col input { box-sizing: border-box; width: 100%; max-width: 480px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--dl-rule-strong); border-radius: var(--dl-r-control); background: var(--dl-surface); font: inherit; font-size: 15px; color: var(--dl-text); }
#lp-learn .lp-learn__col input:focus-visible, #lp-learn .lp-learn__col button:focus-visible { outline: 2px solid var(--dl-focus-ring); outline-offset: 2px; }
#lp-learn .lp-learn__col form p { margin-top: 24px; }

@media (max-width: 639.98px) {
  #lp-learn .fh { padding-bottom: 48px; }
  #lp-learn .lp-learn__cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  #lp-learn .lp-learn__cards .fu__card { grid-row: auto; }
  #lp-learn .lp-learn__body { padding: 48px 0; }
  #lp-learn .lp-learn__col h2 { font-size: 24px; line-height: 32px; }
  #lp-learn .lp-learn__col button { width: 100%; }
}

/* The printable list: the guide and its results only (the old page's print rules). */
@media print {
  #lp-learn .dl-hdr, #lp-learn .dl-ftr, #lp-learn .fc, #lp-learn .no-print { display: none !important; }
  #lp-learn .fh, #lp-learn .lp-learn__body { padding: 0; border: 0; background: none; }
  #lp-learn .f-in { max-width: none; padding: 0; }
  #lp-learn section { break-inside: avoid; }
}
