/* Resource library and reflowable guide pages, using the shared Light Jade kit. */
body { background: var(--lj-paper); }
body, body * { letter-spacing: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--lj-jade-deep); }
:focus-visible { outline: 3px solid var(--lj-jade-deep); outline-offset: 5px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--lj-font-display); color: var(--lj-ink); line-height: 1.15; }
.lm-wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.lm-skip { position: fixed; top: -100px; left: 16px; padding: 12px; background: var(--lj-lime); z-index: 5; }
.lm-skip:focus { top: 12px; }
.lm-header { border-bottom: 1px solid var(--lj-hairline); background: var(--lj-surface); }
.lm-nav { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 24px; }
.lm-brand { font-family: var(--lj-font-display); font-size: 22px; font-weight: 800; text-decoration: none; color: var(--lj-ink); }
.lm-brand span { color: var(--lj-jade-deep); }
.lm-nav-links, .lm-languages { display: flex; align-items: center; gap: 28px; font-size: var(--lj-fs-base); }
.lm-nav-links > a { text-decoration: none; font-weight: 600; }
.lm-nav-links > a[aria-current] { color: var(--lj-jade-deep); }
.lm-languages { gap: 16px; border-left: 1px solid var(--lj-hairline); padding-left: 28px; font-size: 13px; }
.lm-languages a { text-decoration: none; padding-block: 12px; }
.lm-languages a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; font-weight: 700; }
.lm-language { font-size: 12px; color: var(--lj-muted); }
.lm-intro { padding: 62px 0 44px; }
.lm-eyebrow { margin: 0 0 24px; }
.lm-intro h1 { font-size: var(--lj-fs-3xl); line-height: var(--lj-lh-snug); font-weight: 900; margin: 0 0 28px; max-width: 850px; }
.lm-intro-bottom { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.lm-intro-bottom p { margin: 0; font-size: var(--lj-fs-md); line-height: var(--lj-lh-normal); }
.lm-collection { border-top: 1px solid var(--lj-hairline); padding: 28px 0 64px; }
.lm-collection-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.lm-collection-heading h2 { font-size: var(--lj-fs-lg); margin: 0; }
.lm-collection-heading h2 span { font: 12px var(--lj-font-mono); color: var(--lj-muted); margin-left: 8px; }
.lm-collection-heading p { color: var(--lj-muted); margin: 0; font-size: 13px; }
.lm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lm-resource { display: flex; flex-direction: column; min-width: 0; }
.lm-cover { display: flex; justify-content: center; align-items: center; aspect-ratio: 1.38; overflow: hidden; background: var(--lj-jade-tint); border-radius: var(--lj-radius-sm); }
.lm-cover-1 { background: var(--lj-surface-alt); }
.lm-cover-2 { background: var(--lj-ink); }
.lm-cover img { width: 43%; height: 86%; object-fit: contain; box-shadow: var(--lj-shadow-sm); }
.lm-cover-screen img { width: 92%; height: 92%; box-shadow: none; }
.lm-resource-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 24px 0 12px; font: var(--lj-fs-xs) var(--lj-font-mono); color: var(--lj-muted); }
.lm-resource-meta .lj-card__label { margin: 0; }
.lm-resource-meta span:first-child { color: var(--lj-jade-deep); }
.lm-resource h3 { font-size: var(--lj-fs-lg); margin: 0 0 12px; font-weight: 800; }
.lm-resource h3 a { text-decoration: none; }
.lm-resource h3 a:hover { text-decoration: underline; }
.lm-resource p { margin: 0 0 22px; font-size: var(--lj-fs-base); line-height: var(--lj-lh-normal); color: var(--lj-body); }
.lm-read { display: inline-flex; align-items: center; gap: 16px; font-weight: 600; text-decoration: none; color: var(--lj-jade-deep); }
.lm-read:hover { text-decoration: underline; }
.lm-resource .lm-read { margin-top: auto; align-self: flex-start; }
.lm-read span { font-size: 22px; }
.lm-author { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 28px; border-top: 1px solid var(--lj-hairline); padding: 40px 0 60px; }
.lm-author img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.lm-author h2 { margin: 0 0 10px; font-size: 22px; }
.lm-author p { margin: 0; max-width: 60ch; color: var(--lj-muted); }
.lm-footer { background: var(--lj-ink); color: var(--lj-paper); padding: 40px 0; }
.lm-footer .lm-brand, .lm-footer a:hover { color: var(--lj-lime); }
.lm-footer-inner { display: flex; justify-content: space-between; gap: 28px; }
.lm-footer p { font-size: var(--lj-fs-sm); margin: 10px 0 0; color: var(--lj-paper); }
.lm-footer-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 13px; }
.lm-footer-links a { text-decoration: none; }
.lm-footer-links a:hover { text-decoration: underline; }
.lm-breadcrumb { margin: 28px 0 38px; font-size: 14px; }
.lm-breadcrumb a { text-decoration: none; color: var(--lj-jade-deep); }
.lm-reader-heading { max-width: 830px; padding-bottom: 48px; }
.lm-reader-heading h1 { margin: 0 0 24px; font-size: var(--lj-fs-2xl); font-weight: 900; line-height: var(--lj-lh-snug); text-wrap: balance; }
.lm-reader-description { max-width: 65ch; font-size: 20px; line-height: 1.6; }
.lm-reader-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; font-size: 13px; }
.lm-reader-meta img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.lm-reader-meta span:last-child { color: var(--lj-muted); }
.lm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.lm-file-size { color: var(--lj-muted); font: 12px var(--lj-font-mono); }
.lm-reader-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 70px; border-top: 1px solid var(--lj-hairline); padding: 42px 0 80px; }
.lm-toc { align-self: start; position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto; }
.lm-toc summary { font-weight: 700; color: var(--lj-ink); cursor: pointer; padding-bottom: 16px; }
.lm-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lm-toc a { font-size: 13px; line-height: 1.5; text-decoration: none; display: block; }
.lm-toc a:hover { text-decoration: underline; }
.lm-article { min-width: 0; max-width: 720px; font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.lm-chapter { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--lj-hairline); scroll-margin-top: 24px; }
.lm-chapter h2, .lm-downloads h2 { font-size: 30px; font-weight: 800; margin: 12px 0 24px; }
.lm-chapter h3 { font-size: 22px; margin: 28px 0 12px; }
.lm-chapter p { margin: 14px 0; }
.lm-chapter li { padding-left: 4px; margin: 8px 0; }
.lm-chapter ul, .lm-chapter ol { padding-left: 24px; }
.lm-chapter .eyebrow, .lm-chapter .cmd-hint { font: 12px/1.6 var(--lj-font-mono); color: var(--lj-muted); }
.lm-chapter .g { color: var(--lj-jade-deep); }
.lm-chapter .box, .lm-chapter .say { border-left: 3px solid var(--lj-jade); padding: 8px 0 8px 22px; margin: 26px 0; }
.lm-chapter .bt, .lm-chapter .lbl, .lm-chapter .lbl2 { display: block; font-weight: 700; color: var(--lj-ink); margin-bottom: 8px; }
.lm-chapter .snippet, .lm-chapter .cmd { white-space: pre-wrap; font: 15px/1.8 var(--lj-font-mono); }
.lm-chapter .snippet, .lm-chapter .cmd, .lm-chapter .prompt { background: var(--lj-surface); border: 1px solid var(--lj-hairline); padding: 24px; border-radius: var(--lj-radius-chip); margin: 16px 0; }
.lm-copy-row { display: flex; justify-content: flex-end; margin-top: -8px; margin-bottom: 24px; }
.lm-copy { background: none; border: 0; padding: 8px 0 8px 16px; font: 13px var(--lj-font-body); color: var(--lj-jade-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.lm-chapter .shot, .lm-chapter .pic, .lm-chapter .step-shot { margin: 24px 0; }
.lm-chapter img { display: block; width: 100%; border: 1px solid var(--lj-hairline); border-radius: var(--lj-radius-chip); }
.lm-chapter .screenshot { margin: 28px 0; }
.lm-chapter .portrait-shot { max-width: 480px; margin-inline: auto; }
.lm-chapter figcaption { margin-top: 12px; font-size: var(--lj-fs-sm); line-height: var(--lj-lh-normal); color: var(--lj-muted); }
.lm-chapter pre code { font: inherit; white-space: inherit; }
.lm-chapter .drawer { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--lj-hairline); }
.lm-chapter .num, .lm-chapter .stepnum { color: var(--lj-jade-deep); font-family: var(--lj-font-mono); font-weight: 700; }
.lm-chapter .stepnum { margin-top: 24px; }
.lm-chapter .steps li > b, .lm-chapter .limits li > b { display: block; }
.lm-chapter table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
.lm-chapter th, .lm-chapter td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--lj-hairline); vertical-align: top; }
.lm-chapter th { background: var(--lj-jade-tint); color: var(--lj-ink); }
.lm-chapter .fsec { font-weight: 700; margin-top: 24px; }
.lm-chapter .field { border-bottom: 1px solid var(--lj-hairline); padding: 12px 0; font-size: 16px; }
.lm-downloads { scroll-margin-top: 24px; }
.lm-downloads ul { list-style: none; padding: 0; }
.lm-downloads li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--lj-hairline); }
.lm-downloads a { color: var(--lj-jade-deep); }
.lm-downloads li > span { font: 12px var(--lj-font-mono); color: var(--lj-muted); padding-top: 7px; }
.lm-reader-end { border-top: 1px solid var(--lj-ink); padding-top: 28px; margin-top: 48px; }
.lm-reader-end h2 { font-size: 26px; }
.lm-empty { padding: 36px 0 12px; }
.lm-empty p { margin: 16px 0 24px; }
.lm-overview-heading { padding-bottom: 32px; }
.lm-overview-heading > .lm-file-size { margin-top: 18px; line-height: 1.6; }
.lm-overview-content { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 64px; padding: 40px 0 48px; border-top: 1px solid var(--lj-hairline); }
.lm-outcomes { margin: 24px 0; padding-left: 22px; max-width: 65ch; }
.lm-outcomes li { margin: 12px 0; padding-left: 4px; }
.lm-document-preview { margin: 0; }
.lm-document-preview img { display: block; width: 100%; box-shadow: var(--lj-shadow-md); }
.lm-document-preview figcaption { font: var(--lj-fs-xs) var(--lj-font-mono); color: var(--lj-muted); margin-top: 16px; text-align: center; }
.lm-overview-online { grid-template-columns: minmax(0, 1fr) minmax(210px, 360px); }
.lm-related { padding: 36px 0 56px; border-top: 1px solid var(--lj-hairline); }
.lm-grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lm-grid-related .lm-cover { max-height: 230px; }
.lm-related .lm-collection-heading > a { font-size: var(--lj-fs-sm); }
@media (max-width: 900px) {
  .lm-wrap { width: calc(100% - 48px); }
  .lm-grid { gap: 24px; }
  .lm-resource h3 { font-size: 22px; }
  .lm-resource-meta { gap: 8px; }
  .lm-resource { padding: 20px; }
  .lm-author { grid-template-columns: 64px 1fr; }
  .lm-author .lm-read { grid-column: 2; }
  .lm-reader-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .lm-wrap { width: calc(100% - 40px); }
  .lm-nav { min-height: 76px; gap: 12px; }
  .lm-brand { font-size: 18px; }
  .lm-nav-links { gap: 12px; font-size: 13px; }
  .lm-languages { gap: 10px; padding-left: 12px; }
  .lm-nav-links > a { display: none; }
  .lm-intro { padding: 38px 0 32px; }
  .lm-eyebrow { font-size: 11px; margin-bottom: 20px; }
  .lm-intro h1 { font-size: var(--lj-fs-2xl); }
  .lm-intro-bottom { display: block; }
  .lm-intro-bottom p { font-size: 17px; }
  .lm-intro-bottom .lj-tag { margin-top: 22px; }
  .lm-collection-heading { margin-bottom: 22px; }
  .lm-collection-heading p { font-size: 11px; }
  .lm-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lm-cover { aspect-ratio: 1.5; }
  .lm-resource-meta { flex-direction: row; margin-top: 18px; }
  .lm-resource h3 { font-size: var(--lj-fs-lg); }
  .lm-resource p { margin-bottom: 14px; }
  .lm-collection { padding-bottom: 42px; }
  .lm-author { gap: 20px; padding: 30px 0 40px; }
  .lm-author img { width: 64px; height: 64px; }
  .lm-author p { font-size: 14px; }
  .lm-footer-inner { flex-direction: column; }
  .lm-footer-links { gap: 20px; }
  .lm-breadcrumb { margin: 24px 0 30px; }
  .lm-reader-heading h1 { font-size: 36px; }
  .lm-reader-description { font-size: 18px; }
  .lm-reader-meta { gap: 10px; }
  .lm-reader-meta span:last-child { width: 100%; }
  .lm-reader-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .lm-toc { position: static; max-height: none; border-bottom: 1px solid var(--lj-hairline); padding-bottom: 16px; }
  .lm-toc a { font-size: 14px; }
  .lm-article { font-size: 17px; }
  .lm-chapter h2 { font-size: 28px; }
  .lm-chapter .snippet, .lm-chapter .cmd, .lm-chapter .prompt { padding: 18px; }
  .lm-chapter td, .lm-chapter th { padding: 10px 8px; }
  .lm-language { font-size: 11px; }
  .lm-overview-content { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lm-document-preview { width: 150px; }
  .lm-overview-online .lm-document-preview { width: min(100%, 360px); }
  .lm-grid-related { grid-template-columns: minmax(0, 1fr); }
  .lm-related .lm-collection-heading { flex-wrap: wrap; }
  .lm-empty h2 { font-size: var(--lj-fs-lg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Card metadata follows the heading, without a decorative pre-title. */
.lm-cover + h3 { margin-top: 24px; }
.lm-resource h3 + .lm-resource-meta { margin: 0 0 16px; }
