/* Academy (/academy/ and every page under it), 2026-12-01.
   The look comes from the shared Help Center files (site-chrome.css: navbar and
   banner; rows.css: the row list). This file only holds what is specific to the
   Academy: the video thumbnail in a row, the player stage, the inline article
   reader, chapter lists and the compact banner on item pages. No black
   backgrounds, electric-yellow primary buttons. */
.ac-noscript { margin: 0; color: #4b5563; font-size: 0.9rem; }
.ac-noscript a { color: inherit; }

/* Compact banner on item pages (video and article): breadcrumb, then the tabs. */
.pfn-hero-compact .pfn-hero-inner { padding-top: clamp(20px, 3vw, 30px); }
.pfn-hero-compact .pfn-tabs { margin-top: clamp(16px, 2.4vw, 22px); }
.ac-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.86rem; color: #6b7280; min-width: 0; }
.ac-crumbs a { color: #1a1a1a; text-decoration: underline; text-decoration-color: rgba(26, 26, 26, 0.28); text-underline-offset: 0.22em; }
.ac-crumbs a:hover { text-decoration-color: currentColor; }
.ac-crumbs [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Video thumbnail inside a row heading. */
.ac-thumb { flex: 0 0 auto; display: block; width: 136px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #f3f4f6; border: 1px solid #e5e7eb; }
.ac-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-row[data-kind="video"] .pfr-head { align-items: center; }
.ac-row .pfr-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* The player: opens directly under the row (hub) or sits at the top of the page. */
.ac-stage { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; margin: 18px 0 4px; border-radius: 12px; overflow: hidden; background: #f3f4f6; border: 1px solid #e5e7eb; }
.ac-stage:empty { display: none; }
.ac-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-stage-page { margin-top: 14px; scroll-margin-top: 84px; }
.ac-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 4px; }
.ac-copy { display: inline-flex; }

/* Chapters. */
.ac-stamp { display: inline-block; min-width: 3.9em; margin-right: 8px; font-variant-numeric: tabular-nums; color: #6b7280; font-weight: 400; }
.ac-chapter-link { text-decoration: none; }
.ac-chapter-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pfr-topic.is-current { background: #fdffd9; border-radius: 8px; box-shadow: -10px 0 0 #fdffd9, 10px 0 0 #fdffd9; }

/* Item pages. */
.ac-item .ac-video { max-width: 960px; }
.ac-h1 { margin: 4px 0 0; font: 400 clamp(1.8rem, 4.2vw, 2.8rem)/1.1 var(--pfn-font, Inter, sans-serif); letter-spacing: -0.02em; color: #1a1a1a; }
.ac-about { display: grid; gap: 12px; margin: 18px 0 clamp(28px, 4vw, 44px); max-width: 720px; color: #374151; line-height: 1.65; }
.ac-about p { margin: 0; overflow-wrap: anywhere; }
.ac-item .pfr-group { margin-top: clamp(28px, 4vw, 44px); }
.ac-item .pfr-topics { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 4px 20px; }

/* Articles: same article look as before, sized to sit under the banner. */
.footnote-article { padding-top: clamp(8px, 2vw, 20px); padding-bottom: clamp(40px, 6vw, 72px); }
.footnote-article-header h1 { font: 400 clamp(1.9rem, 4.6vw, 3.1rem)/1.1 var(--pfn-font, Inter, sans-serif); letter-spacing: -0.02em; }
.footnote-article-header { padding-bottom: clamp(28px, 4vw, 44px); }
.footnote-article-body { padding: clamp(28px, 4vw, 44px) 0; }
.footnote-article-body h2 { position: relative; scroll-margin-top: 90px; }
.footnote-article-body h2 .ac-h2-copy { display: inline-flex; vertical-align: middle; margin-left: 6px; opacity: 0; transition: opacity 0.15s ease; }
.footnote-article-body h2:hover .ac-h2-copy, .footnote-article-body h2 .ac-h2-copy:focus-within { opacity: 1; }
.footnote-article-body h2 .pfr-copy { min-height: 30px; padding: 0 8px; font-size: 12px; }
@media (hover: none) { .footnote-article-body h2 .ac-h2-copy { opacity: 1; } }

/* The article opened inside the hub. */
.ac-reader { margin-top: 12px; }
.ac-reader:empty { display: none; }
.ac-reader .footnote-article { max-width: none; padding: 0; }
.ac-reader .footnote-article-header { padding: 4px 0 8px; border-bottom: 0; }
.ac-reader .footnote-article-header h1 { display: none; }
.ac-reader .footnotes-kicker { display: none; }
.ac-reader .footnote-deck { margin-top: 4px; font-size: 1.05rem; }
.ac-reader .footnote-meta { margin-top: 10px; }
.ac-reader .footnote-article-body { padding: 18px 0 0; }
.ac-reader .footnote-article-end { display: none; }
.ac-reader .footnote-article-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-top: 44px; }
.ac-loading { margin: 12px 0 0; color: #6b7280; font-size: 0.92rem; }

@media (max-width: 720px) {
  .ac-thumb { width: 96px; border-radius: 8px; }
  .ac-row[data-kind="video"] .pfr-head { align-items: flex-start; }
  .ac-stage { margin-top: 14px; border-radius: 10px; }
  .ac-item .pfr-topics { padding: 2px 14px; }
  .ac-actions .pfr-btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .ac-thumb { width: 76px; }
}
