/* =====================================================================
   FITCOM — LEARN design system  ·  assets/css/learn.css
   Answer Hub (AEO-first) + editorial reading (VP-style single column).
   Fonts: Geist (UI/headings) · Newsreader (article body + accents) ·
   Noto Sans SC (Chinese). Brand: Orange #F6921E + greyscale only.
   Scope: everything lives under .learn — does not leak to other pages.
   ===================================================================== */

.learn {
  --lr-orange: #F6921E;
  --lr-orange-dark: #F6921E;
  --lr-orange-soft: #FEF4E6;
  --lr-ink: #262626;
  --lr-ink-2: #414042;
  --lr-mid: #808083;
  --lr-line: #E5E2DC;
  --lr-bg-soft: #FAF8F4;
  --lr-head: 'Poppins', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --lr-ui:   'Geist', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --lr-read: 'Poppins', 'Noto Sans SC', system-ui, sans-serif; /* article body = Poppins (Kelvin picked B over Maax, 2026-07-08). Maax @font-face kept below for future use. */
  --lr-serif: 'Newsreader', 'Noto Sans SC', Georgia, serif;
  --lr-radius: 16px;
  --lr-radius-s: 8px;
  font-family: var(--lr-ui);
  color: var(--lr-ink);
}
.learn h1, .learn h2, .learn h3, .learn h4 { font-family: var(--lr-head); letter-spacing: -.015em; }
html[data-lang="zh"] .learn { letter-spacing: 0; }
html[data-lang="zh"] .learn h1, html[data-lang="zh"] .learn h2, html[data-lang="zh"] .learn h3 { letter-spacing: 0; }

/* ---------- shared: reading progress bar ---------- */
.lr-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: transparent; pointer-events: none; }
.lr-progress__fill { height: 100%; width: 100%; background: var(--lr-orange); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }

/* ---------- shared: icons (inline SVG, no emoji) ---------- */
.lr-ic { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.lr-ic--s { width: 15px; height: 15px; }
.lr-brandic { width: 20px; height: 20px; fill: currentColor; stroke: none; flex: 0 0 auto; }

/* =====================================================================
   HUB
   ===================================================================== */
.lr-hub { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* hero: the question entrance */
.lr-hero { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(2.2rem, 5vw, 3.6rem) 0 1.6rem; }
.lr-hero .lr-kicker { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lr-orange-dark); margin-bottom: .8rem; }
.lr-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 750; line-height: 1.15; margin: 0 0 1.2rem; }
.lr-search { position: relative; max-width: 460px; margin: 0 auto; }
.lr-search input {
  width: 100%; min-height: 52px; padding: 0 1rem 0 2.9rem;
  font: 500 1rem var(--lr-ui); color: var(--lr-ink);
  background: #fff; border: 1.5px solid var(--lr-line); border-radius: 999px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.lr-search input:focus { border-color: var(--lr-orange); box-shadow: 0 0 0 4px rgba(246,146,30,.14); }
.lr-search .lr-ic { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--lr-mid); }
.lr-popular { margin-top: .9rem; font-size: .88rem; color: var(--lr-mid); display: flex; flex-wrap: wrap; gap: .35rem .5rem; justify-content: center; align-items: center; }
.lr-popular a { color: var(--lr-ink-2); text-decoration: none; border-bottom: 1.5px solid var(--lr-line); padding-bottom: 1px; transition: color .15s, border-color .15s; }
.lr-popular a:hover { color: var(--lr-orange-dark); border-color: var(--lr-orange); }

/* start-here path */
.lr-path { background: var(--lr-bg-soft); border: 1px solid var(--lr-line); border-radius: var(--lr-radius); padding: 1.4rem 1.5rem; margin: 1.8rem 0; }
.lr-path__label { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lr-orange-dark); margin-bottom: .9rem; }
.lr-path__steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .7rem; align-items: stretch; }
.lr-path__arrow { align-self: center; color: var(--lr-mid); }
.lr-path a.lr-path__step {
  display: block; background: #fff; border: 1px solid var(--lr-line); border-radius: var(--lr-radius-s);
  padding: .85rem 1rem; text-decoration: none; color: var(--lr-ink); min-height: 48px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.lr-path a.lr-path__step:hover { border-color: var(--lr-orange); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(38,38,38,.06); }
.lr-path__n { font: italic 600 .95rem var(--lr-serif); color: var(--lr-orange-dark); margin-right: .45rem; }
.lr-path__t { font-weight: 600; font-size: .93rem; line-height: 1.35; }
.lr-path__s { display: block; font-size: .78rem; color: var(--lr-mid); margin-top: .2rem; }
@media (max-width: 720px) {
  .lr-path__steps { grid-template-columns: 1fr; }
  .lr-path__arrow { transform: rotate(90deg); justify-self: center; }
}

/* sticky cluster nav */
.lr-nav { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--lr-line); margin: 0 -20px; padding: .55rem 20px; }
.lr-nav__inner { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; max-width: 1040px; margin: 0 auto; }
.lr-nav__inner::-webkit-scrollbar { display: none; }
.lr-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.05rem;
  font: 600 .88rem var(--lr-ui); color: var(--lr-ink-2); background: #fff;
  border: 1.5px solid var(--lr-line); border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: all .15s; white-space: nowrap;
}
.lr-chip:hover { border-color: var(--lr-orange); color: var(--lr-orange-dark); }
.lr-chip.is-on { background: var(--lr-ink); border-color: var(--lr-ink); color: #fff; }

/* cluster sections */
.lr-cluster { padding: 2.1rem 0 .4rem; scroll-margin-top: 76px; }
.lr-cluster > h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; margin: 0 0 1.1rem; display: flex; align-items: baseline; gap: .6rem; }
.lr-cluster > h2 .lr-count { font: italic 500 .95rem var(--lr-serif); color: var(--lr-mid); }
.lr-qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
@media (max-width: 900px) { .lr-qgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .lr-qgrid { grid-template-columns: 1fr; } }

/* question card: no hero image, question + answer preview */
.lr-qcard {
  display: flex; flex-direction: column; gap: .45rem; background: #fff;
  border: 1px solid var(--lr-line); border-radius: var(--lr-radius); padding: 1.15rem 1.2rem 1rem;
  text-decoration: none; color: var(--lr-ink); min-height: 48px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.lr-qcard:hover { border-color: var(--lr-orange); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(38,38,38,.07); }
.lr-qcard__q { font-family: var(--lr-head); font-weight: 650; font-size: 1.02rem; line-height: 1.4; }
.lr-qcard__a { font-size: .875rem; line-height: 1.55; color: var(--lr-mid); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-qcard__meta { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--lr-mid); }
.lr-qcard__meta .lr-read { margin-left: auto; font-weight: 600; color: var(--lr-orange-dark); display: inline-flex; align-items: center; gap: .25rem; }
.lr-qcard__tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lr-orange-dark); background: var(--lr-orange-soft); border-radius: 999px; padding: .18rem .6rem; }

/* glossary teaser */
.lr-glossary-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; background: var(--lr-ink); color: #fff; border-radius: var(--lr-radius); padding: 1.5rem 1.7rem; margin: 2.4rem 0; }
.lr-glossary-teaser h2 { color: #fff; font-size: 1.25rem; margin: 0 0 .3rem; }
.lr-glossary-teaser p { margin: 0; font-size: .9rem; color: #CFD1D2; max-width: 520px; }
.lr-glossary-teaser .lr-btn { margin-left: auto; }
@media (max-width: 720px) { .lr-glossary-teaser .lr-btn { margin-left: 0; } }

/* buttons */
.lr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.6rem; border-radius: var(--lr-radius-s);
  font: 600 .95rem var(--lr-ui); text-decoration: none; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.lr-btn--primary { background: var(--lr-orange); color: #fff; }
.lr-btn--primary:hover { background: var(--lr-orange); filter: brightness(.94); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(246,146,30,.35); }
/* keep button label readable even inside .lr-body (whose <a> are orange links) */
.lr-body a.lr-btn--primary { color: #fff; }
.lr-body a.lr-btn--ghost { color: #fff; }
.lr-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.lr-btn--ghost:hover { border-color: #fff; }

/* hub empty state */
.lr-empty { display: none; text-align: center; color: var(--lr-mid); padding: 2.5rem 0; font-size: .95rem; }
.lr-hub.is-searching .lr-cluster.is-empty { display: none; }
.lr-hub.is-searching .lr-path, .lr-hub.is-searching .lr-glossary-teaser { display: none; }
.lr-hub.no-results .lr-empty { display: block; }

/* CTA band */
.lr-cta-band { text-align: center; background: var(--lr-orange-soft); border-radius: var(--lr-radius); padding: 2.2rem 1.6rem; margin: 1.4rem 0 3rem; }
.lr-cta-band h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.lr-cta-band p { color: var(--lr-ink-2); margin: 0 0 1.1rem; font-size: .95rem; }

/* =====================================================================
   ARTICLE
   ===================================================================== */
.lr-article-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 56px minmax(0, 720px) 224px; justify-content: center; gap: 2rem; }
@media (max-width: 1023px) { .lr-article-wrap { grid-template-columns: minmax(0, 1fr); max-width: 800px; } }

/* TOC as a sticky right sidebar (desktop only) */
.lr-toc-side__inner { position: sticky; top: 110px; margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.lr-toc-side__label { display: flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lr-mid); margin: 0 0 .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--lr-line); }
.lr-toc-side nav { display: flex; flex-direction: column; gap: .1rem; }
.lr-toc-side nav a { font: 500 .88rem/1.4 var(--lr-ui); color: var(--lr-ink-2); text-decoration: none; padding: .4rem 0 .4rem .8rem; border-left: 2px solid var(--lr-line); transition: color .15s, border-color .15s; }
.lr-toc-side nav a:hover { color: var(--lr-orange-dark); border-left-color: var(--lr-orange); }
@media (max-width: 1023px) { .lr-toc-side { display: none; } }

.lr-takeaways--end { margin-top: 2.4rem; }

/* share rail (desktop) */
.lr-rail { display: none; }
@media (min-width: 1024px) {
  .lr-rail { display: block; }
  .lr-rail__inner { position: sticky; top: 110px; margin-top: clamp(1.6rem, 4vw, 2.6rem); display: flex; flex-direction: column; gap: .6rem; }
}
.lr-share-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--lr-line); color: var(--lr-ink-2);
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.lr-share-btn:hover { border-color: var(--lr-orange); color: var(--lr-orange-dark); transform: translateY(-2px); }

/* mobile share bar */
.lr-sharebar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 120; display: flex; gap: .6rem; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--lr-line); }
.lr-sharebar .lr-btn { flex: 1; min-height: 48px; font-size: .9rem; }
.lr-sharebar .lr-share-btn { flex: 0 0 48px; }
@media (min-width: 1024px) { .lr-sharebar { display: none; } }
.lr-article-footer-pad { padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }
@media (max-width: 1023px) { .lr-article-footer-pad { padding-bottom: calc(84px + 2.5rem); } }

/* article header */
.lr-ahead { padding: clamp(1.6rem, 4vw, 2.6rem) 0 0; }
.lr-crumb { font-size: .82rem; color: var(--lr-mid); margin-bottom: .8rem; }
.lr-crumb a { color: var(--lr-mid); text-decoration: none; }
.lr-crumb a:hover { color: var(--lr-orange-dark); }
.lr-ahead h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 750; line-height: 1.18; margin: 0 0 .9rem; }
.lr-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .84rem; color: var(--lr-mid); margin-bottom: 1.4rem; }
.lr-byline .lr-mins { font: italic 500 .9rem var(--lr-serif); }

/* quick answer (the AEO extraction unit) */
.lr-qa { border: 2px solid var(--lr-orange); background: var(--lr-orange-soft); border-radius: var(--lr-radius); padding: 1.25rem 1.4rem; margin: 0 0 1.1rem; }
.lr-qa__label { display: flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lr-orange-dark); margin-bottom: .55rem; }
.lr-qa p { margin: 0; font-family: var(--lr-ui); font-weight: 500; font-size: 1.02rem; line-height: 1.65; color: var(--lr-ink); }

/* key takeaways */
.lr-takeaways { background: var(--lr-bg-soft); border: 1px solid var(--lr-line); border-radius: var(--lr-radius); padding: 1.1rem 1.4rem; margin-bottom: 1.1rem; }
.lr-takeaways__label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lr-ink-2); margin-bottom: .5rem; }
.lr-takeaways ul { margin: 0; padding: 0; list-style: none; }
.lr-takeaways li { position: relative; padding-left: 1.15rem; font-size: .93rem; line-height: 1.7; color: var(--lr-ink-2); }
.lr-takeaways li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--lr-orange); }

/* collapsible TOC */
.lr-toc { border: 1px solid var(--lr-line); border-radius: var(--lr-radius-s); margin-bottom: 2rem; background: #fff; }
.lr-toc summary { display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: 0 1.1rem; font: 600 .92rem var(--lr-ui); cursor: pointer; list-style: none; color: var(--lr-ink-2); }
.lr-toc summary::-webkit-details-marker { display: none; }
.lr-toc summary .lr-toc__chev { margin-left: auto; transition: transform .2s; }
.lr-toc[open] summary .lr-toc__chev { transform: rotate(180deg); }
.lr-toc nav { padding: .2rem 1.1rem 1rem; display: flex; flex-direction: column; }
.lr-toc nav a { padding: .42rem 0; font-size: .92rem; color: var(--lr-ink-2); text-decoration: none; border-bottom: none; }
.lr-toc nav a:hover { color: var(--lr-orange-dark); }

/* body: the magazine layer — serif reading */
.lr-body { font-family: var(--lr-read); font-size: 1.08rem; line-height: 1.78; color: var(--lr-ink-2); }
html[data-lang="zh"] .lr-body, .lr-body:lang(zh) { font-family: 'Noto Sans SC', var(--lr-serif); font-size: 1.06rem; line-height: 1.85; }
.lr-body p { margin: 0 0 1.35rem; }
.lr-body h2 { font-family: var(--lr-head); font-size: 1.45rem; font-weight: 700; color: var(--lr-ink); margin: 2.6rem 0 .9rem; line-height: 1.3; }
.lr-body h3 { font-family: var(--lr-head); font-size: 1.15rem; font-weight: 650; color: var(--lr-ink); margin: 1.8rem 0 .6rem; }
.lr-body ul, .lr-body ol { margin: 0 0 1.35rem; padding-left: 1.3rem; }
.lr-body li { margin-bottom: .55rem; }
.lr-body strong { color: var(--lr-ink); font-weight: 600; }
.lr-body a { color: var(--lr-orange-dark); text-decoration: none; border-bottom: 1.5px solid rgba(246,146,30,.4); }
.lr-body a:hover { border-color: var(--lr-orange); }
.lr-body blockquote { margin: 2.2rem 0; padding: 1.1rem 0 1.1rem 1.4rem; border-left: 3px solid var(--lr-orange); font: 600 1.25rem/1.5 var(--lr-head); color: var(--lr-ink); position: relative; }
.lr-body blockquote::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 2px; background: var(--lr-orange); }

/* tables: the AI-quotable unit */
.lr-body table, .lr-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-family: var(--lr-ui); font-size: .92rem; }
.lr-body th, .lr-table th { text-align: left; font-weight: 650; background: var(--lr-bg-soft); color: var(--lr-ink); padding: .65rem .8rem; border: 1px solid var(--lr-line); }
.lr-body td, .lr-table td { padding: .6rem .8rem; border: 1px solid var(--lr-line); color: var(--lr-ink-2); }
@media (max-width: 620px) { .lr-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* also read */
.lr-alsoread { display: flex; align-items: center; gap: .9rem; background: var(--lr-bg-soft); border: 1px solid var(--lr-line); border-radius: var(--lr-radius-s); padding: .9rem 1.1rem; margin: 1.8rem 0; text-decoration: none; transition: border-color .15s, background .15s; }
.lr-alsoread:hover { background: var(--lr-orange-soft); border-color: var(--lr-orange); }
.lr-alsoread__label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lr-orange-dark); white-space: nowrap; }
.lr-alsoread__title { font: 600 .95rem/1.4 var(--lr-ui); color: var(--lr-ink); }

/* faq */
.lr-faq details { border: 1px solid var(--lr-line); border-radius: var(--lr-radius-s); margin-bottom: .6rem; background: #fff; }
.lr-faq summary { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .55rem 1.1rem; font: 600 .98rem var(--lr-ui); color: var(--lr-ink); cursor: pointer; list-style: none; }
.lr-faq summary::-webkit-details-marker { display: none; }
.lr-faq summary .lr-toc__chev { margin-left: auto; transition: transform .2s; }
.lr-faq details[open] summary .lr-toc__chev { transform: rotate(180deg); }
.lr-faq .lr-faq__a { padding: 0 1.1rem 1rem; font-family: var(--lr-ui); font-size: .95rem; line-height: 1.7; color: var(--lr-ink-2); }

/* article CTA */
.lr-acta { background: var(--lr-orange-soft); border-radius: var(--lr-radius); padding: 1.7rem; margin: 2.4rem 0; }
.lr-acta h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.lr-acta p { font-family: var(--lr-ui); font-size: .95rem; color: var(--lr-ink-2); margin: 0 0 1rem; }

/* related */
.lr-related { margin: 2.6rem 0 3rem; }
.lr-related h2 { font-size: 1.25rem; margin: 0 0 1rem; }

/* glossary */
.lr-glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .lr-glossary { grid-template-columns: 1fr; } }
.lr-term { background: #fff; border: 1px solid var(--lr-line); border-radius: var(--lr-radius); padding: 1.3rem 1.4rem; scroll-margin-top: 80px; }
.lr-term__t { font-size: 1.08rem; font-weight: 700; margin: 0 0 .45rem; }
.lr-term__d { margin: 0; font-size: .93rem; line-height: 1.7; color: var(--lr-ink-2); }

/* article hero image + inline figures */
.lr-heroimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--lr-radius); margin: .3rem 0 1.4rem; display: block; background: var(--lr-bg-soft); }
.lr-fig { margin: 2rem 0; }
.lr-fig img { width: 100%; display: block; border-radius: 12px; border: 1px solid var(--lr-line); }
.lr-fig figcaption { margin-top: .55rem; text-align: center; font: 400 .84rem/1.5 var(--lr-ui); color: var(--lr-mid); }

/* language twin cross-link */
.lr-langlink { margin: -0.6rem 0 1.2rem; font-size: .88rem; }
.lr-langlink a { color: var(--lr-orange-dark); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(246,146,30,.4); }

/* click-to-load YouTube embed (lr_video helper · 16:9 + vertical 9:16) */
.lr-video { position: relative; margin: 2rem 0; border-radius: var(--lr-radius); overflow: hidden; aspect-ratio: 16 / 9; background: #1A1A1A; }
.lr-video--vertical { aspect-ratio: 9 / 16; max-width: min(400px, 100%); margin-inline: auto; }
.lr-video__poster { appearance: none; border: 0; padding: 0; margin: 0; cursor: pointer; position: absolute; inset: 0; width: 100%; height: 100%; background: #1A1A1A; }
.lr-video__poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s ease; }
.lr-video__poster:hover img { opacity: 1; }
.lr-video__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--lr-orange); color: #fff; box-shadow: 0 10px 28px rgba(246,146,30,.45); transition: transform .2s ease; }
.lr-video__poster:hover .lr-video__play { transform: translate(-50%, -50%) scale(1.08); }
.lr-video__play svg { margin-left: 3px; }
.lr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Fitcom brand body font — Maax (Kelvin 2026-07-07). File present as TTF;
   swap in woff2 later for smaller payload. Referenced by --lr-read. */
@font-face {
  font-family: 'Maax';
  src: url('/assets/fonts/MaaxRounded-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* TOC scrollspy active state + anchor offset for sticky header */
.lr-body section[id] { scroll-margin-top: 120px; }
.lr-toc-side nav a.is-active { color: var(--lr-orange-dark); border-left-color: var(--lr-orange); font-weight: 600; }

/* Author byline chip + bio card (transparent persona system) */
.lr-byline .lr-byauthor { display: inline-flex; align-items: center; gap: .4rem; }
.lr-byline .lr-byav { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.lr-author { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid var(--lr-line); border-radius: var(--lr-radius); padding: 1.25rem 1.4rem; margin-top: 2.2rem; }
.lr-author__av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.lr-author__av--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #F6921E, #c9781e); color: #fff; font: 700 1.5rem/1 var(--lr-ui); }
.lr-author__name { font: 600 .98rem/1.4 var(--lr-ui); color: var(--lr-ink-2); margin: 0 0 .35rem; }
.lr-author__bio { font: 400 .87rem/1.65 var(--lr-ui); color: var(--lr-mid); margin: 0; }

/* TOC fold toggle */
.lr-toc-side__toggle { margin-left: auto; appearance: none; border: 1px solid var(--lr-line); background: #fff; border-radius: 8px; width: 26px; height: 26px; display: grid; place-items: center; cursor: pointer; color: var(--lr-mid); padding: 0; }
.lr-toc-side__toggle:hover { color: var(--lr-ink); border-color: var(--lr-mid); }
.lr-toc-side__toggle .lr-ic { transition: transform .25s ease; transform: rotate(180deg); }
.lr-toc-side.is-folded .lr-toc-side__toggle .lr-ic { transform: rotate(0deg); }
.lr-toc-side__inner nav { max-height: 70vh; overflow: hidden; transition: max-height .3s ease, opacity .25s ease; }
.lr-toc-side.is-folded .lr-toc-side__inner nav { max-height: 0; opacity: 0; }
.lr-toc-side.is-folded .lr-toc-side__label { margin-bottom: 0; border-bottom-color: transparent; }
