/* CATALOG22: only a file with a proven current academic class inherits these
   tokens. Download/preview authentication, ads and semantic alerts are intact. */
body.b16-stage-scoped[data-academic-stage] .fn22-catalog-badge{
    background:var(--b16-soft)!important;color:var(--b16-action)!important;
    border-color:var(--b16-line)!important;box-shadow:none!important;
    min-height:44px;line-height:1.7;text-decoration:none;overflow-wrap:anywhere;
}
/* File format/size are neutral metadata; retain a readable surface in both modes. */
body.b16-stage-scoped[data-academic-stage] .nz-reader-page span.nz-reader-pill{background:var(--b16-panel)!important;color:var(--b16-ink)!important;border-color:var(--b16-line)!important;box-shadow:none!important}
body.b16-stage-scoped[data-academic-stage] .nz-reader-page .nz-reader-breadcrumb{color:var(--b16-muted)!important}
body.b16-stage-scoped[data-academic-stage] .fn22-catalog-badge:hover{background:var(--b16-panel)!important;filter:none}
body.b16-stage-scoped[data-academic-stage] :is(.fn22-catalog-badge,.download-main-btn,.download-secondary-btn,.download-back a):focus-visible{outline:3px solid var(--b16-action);outline-offset:4px}
body.b16-stage-scoped[data-academic-stage] .download-page{
    --download-primary:var(--b16-action);--download-accent:var(--b16-accent-action);--download-emerald:var(--b16-brand);
    color:var(--b16-ink);background:linear-gradient(140deg,var(--b16-soft),var(--b16-page) 45%,var(--b16-page))!important;
}
body.b16-stage-scoped[data-academic-stage] .download-page:before{background:var(--b16-brand);opacity:.08}
body.b16-stage-scoped[data-academic-stage] :is(.download-preview-card,.download-details-card){background:var(--b16-panel)!important;border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage] :is(.download-ready-box,.download-stat,.download-meta-item,.collection-step-card){background:var(--b16-soft)!important;border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage] .download-ready-box{color:var(--b16-action)}
body.b16-stage-scoped[data-academic-stage] :is(.download-title,.download-stat b,.download-meta-item,.collection-step-card p){color:var(--b16-ink)!important}
body.b16-stage-scoped[data-academic-stage] .download-stat p{color:var(--b16-muted)!important}
body.b16-stage-scoped[data-academic-stage] .download-stat:before{background:var(--b16-brand);opacity:.3}
body.b16-stage-scoped[data-academic-stage] .download-main-btn{background:var(--b16-action)!important;color:var(--b16-on-action)!important;box-shadow:0 12px 30px rgba(15,23,42,.12)}
body.b16-stage-scoped[data-academic-stage] .download-main-btn:hover{background:var(--b16-action-hover)!important;color:var(--b16-on-action-hover)!important;filter:none}
body.b16-stage-scoped[data-academic-stage] :is(.download-secondary-btn,.collection-step-actions .pdf-btn){background:var(--b16-panel)!important;color:var(--b16-action)!important;border:1px solid var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage] :is(.download-secondary-btn,.collection-step-actions .pdf-btn):hover{background:var(--b16-soft)!important;color:var(--b16-action)!important}
body.b16-stage-scoped[data-academic-stage] .download-back a{color:var(--b16-action)}
@media(max-width:640px){body.b16-stage-scoped[data-academic-stage] .download-wrap{grid-template-columns:minmax(0,1fr)}body.b16-stage-scoped[data-academic-stage] :is(.download-details-card,.download-preview-card,.download-stat){min-width:0}body.b16-stage-scoped[data-academic-stage] :is(.download-badges,.download-badge){max-width:100%}}
@media(prefers-reduced-motion:reduce){body.b16-stage-scoped[data-academic-stage] :is(.download-main-btn,.download-secondary-btn,.fn22-catalog-badge){transition:none;transform:none}}

/* EXPERIENCE23: native file article only. The file's trusted stage context
   supplies the palette; advertisements, author content, rating/status colors,
   download and PDF reader surfaces keep their existing presentation. */
.fn23-file-page .nezakr-meta-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;max-width:100%}
.fn23-file-page .nezakr-meta-badge{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;max-width:100%;min-height:44px;padding:.375rem 1rem;border-radius:999px;line-height:1.7;font-size:.875rem;font-weight:800;text-decoration:none;overflow-wrap:anywhere}
.fn23-file-page .nezakr-meta-badge>i{flex-shrink:0;margin:0}
.fn23-file-page .nezakr-meta-badge>span{min-width:0}
.fn23-file-page .fn22-catalog-badge{background:var(--b16-soft,#eef2ff)!important;color:var(--b16-action,#3131c1)!important;border-color:var(--b16-line,#d7dfeb)!important;box-shadow:none!important}
.dark .fn23-file-page .fn22-catalog-badge{background:var(--b16-soft,#242844)!important;color:var(--b16-action,#c7d2fe)!important;border-color:var(--b16-line,#43516c)!important}
.fn23-file-page .fn23-meta-neutral{background:var(--b16-panel,#fff)!important;color:var(--b16-muted,#526078)!important;border-color:var(--b16-line,#d7dfeb)!important;box-shadow:none!important}
.fn23-file-page .fn23-meta-collection{background:var(--b16-soft,#eef2ff)!important;color:var(--b16-action,#3131c1)!important;border-color:var(--b16-line,#d7dfeb)!important;box-shadow:none!important}
.dark .fn23-file-page .fn23-meta-neutral{background:var(--b16-panel,#172237)!important;color:var(--b16-muted,#b7c3d7)!important;border-color:var(--b16-line,#43516c)!important}
.dark .fn23-file-page .fn23-meta-collection{background:var(--b16-soft,#242844)!important;color:var(--b16-action,#c7d2fe)!important;border-color:var(--b16-line,#43516c)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page{background:linear-gradient(155deg,var(--b16-soft),var(--b16-page) 35%,var(--b16-page))!important;color:var(--b16-ink)}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.file-main-layout-card,.file-section-card,.file-stat-card,.file-rating-card-v2,.file-related-section,.file-recommendation-card,.file-linked-learning-section,.nezakr-learning-file-card,.nezakr-learning-quiz-card,.file-related-sources,.file-collection-memberships,#share-section,#report-file,#comments>div>div){background:var(--b16-panel)!important;border-color:var(--b16-line)!important;color:var(--b16-ink)}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.file-page-main-content>h1,.file-smart-help h2,.file-linked-learning-head h2,.file-related-section h2,.file-recommendation-card h3,.file-manual-related-head h3,.file-related-sources h4,.stat-value){color:var(--b16-ink)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.file-smart-help p,.file-linked-learning-head p,.file-manual-related-head p,.file-manual-related-card small,.file-recommendation-card p,.stat-label){color:var(--b16-muted)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-page-action-panel:before{background:var(--b16-brand)}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-stat-card{--stat-accent:var(--b16-brand)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-stats-showcase:before{background:radial-gradient(ellipse at center,var(--b16-soft),transparent 70%)}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-breadcrumb-compact :is(a,.crumb-class){background:var(--b16-panel)!important;color:var(--b16-action)!important;border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-breadcrumb-compact .crumb-current,
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-breadcrumb-compact>i{color:var(--b16-muted)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.nezakr-learning-quiz-icon,.nezakr-learning-quiz-card em){background:var(--b16-soft)!important;color:var(--b16-action)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.nezakr-learning-file-body strong,.nezakr-learning-quiz-card strong){color:var(--b16-ink)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.nezakr-learning-file-body small,.nezakr-learning-quiz-card small){color:var(--b16-muted)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.file-stat-card .stat-icon,.file-smart-help-step b,.file-manual-related-head>span,.file-related-sources a,.file-related-sources span){background:var(--b16-soft)!important;color:var(--b16-action)!important;border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-stat-card .stat-orb{background:var(--b16-brand)!important;opacity:.1}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.file-smart-help,.file-journey-strip){background:linear-gradient(130deg,var(--b16-panel),var(--b16-soft))!important;border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.file-smart-help-step,.file-journey-strip a,.file-manual-related-card,.file-linked-lessons span,.collection-quick-index){background:var(--b16-panel)!important;border-color:var(--b16-line)!important;color:var(--b16-ink)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-smart-help-step span{color:var(--b16-ink)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-journey-strip a i{background:var(--b16-soft)!important;color:var(--b16-action)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.file-journey-strip a,.file-manual-related-card,.file-recommendation-card):hover{border-color:var(--b16-action)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-smart-help-icon{background:var(--b16-action)!important;color:var(--b16-on-action)!important;box-shadow:0 12px 30px rgba(15,23,42,.12)}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-related-hero{background:var(--b16-action)!important;color:var(--b16-on-action)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-related-hero :is(h2,p){color:var(--b16-on-action)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.copy-file-link-btn,#file-preview-screenshots .file-screenshot-download){background:var(--b16-soft)!important;color:var(--b16-action)!important;border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.copy-file-link-btn,#file-preview-screenshots .file-screenshot-download):hover{background:var(--b16-panel)!important;border-color:var(--b16-action)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page .file-content-readmore.file-content-collapsed:after{background:linear-gradient(to bottom,transparent,var(--b16-panel))}
/* The FAQ and mobile actions are native siblings of the article wrapper. */
body.b16-stage-scoped[data-academic-stage]:has(.fn23-file-page) .nezakr-file-faq-section{background:linear-gradient(130deg,var(--b16-panel),var(--b16-soft))!important;border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage]:has(.fn23-file-page) :is(.nezakr-file-faq-head,.nezakr-file-faq-list details){border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage]:has(.fn23-file-page) .nezakr-file-faq-list details{background:var(--b16-panel)!important}
body.b16-stage-scoped[data-academic-stage]:has(.fn23-file-page) :is(.nezakr-file-faq-head h2,.nezakr-file-faq-list summary,.nezakr-file-faq-answer){color:var(--b16-ink)!important}
body.b16-stage-scoped[data-academic-stage]:has(.fn23-file-page) .nezakr-file-faq-head p{color:var(--b16-muted)!important}
body.b16-stage-scoped[data-academic-stage]:has(.fn23-file-page) :is(.nezakr-file-faq-head>i,.nezakr-file-faq-toggle){background:var(--b16-soft)!important;color:var(--b16-action)!important;border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage]:has(.fn23-file-page) .nezakr-file-faq-list details[open] .nezakr-file-faq-toggle{background:var(--b16-action)!important;color:var(--b16-on-action)!important;border-color:var(--b16-action)!important;box-shadow:none}
body.b16-stage-scoped[data-academic-stage]:has(.fn23-file-page) .nezakr-mobile-sticky-actions{background:var(--b16-panel)!important;border-color:var(--b16-line)!important}
body.b16-stage-scoped[data-academic-stage]:has(.fn23-file-page) .nezakr-mobile-sticky-actions :is(a,button):not(.bg-primary){background:var(--b16-soft)!important;color:var(--b16-action)!important}
body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.fn22-catalog-badge,.copy-file-link-btn,.file-screenshot-download,.file-journey-strip a,.file-manual-related-card,.file-recommendation-card):focus-visible{outline:3px solid var(--b16-action);outline-offset:3px}
@media(max-width:640px){.fn23-file-page .nezakr-meta-badge{padding:.375rem .75rem;font-size:.8125rem}body.b16-stage-scoped[data-academic-stage] .fn23-file-page :is(.file-main-layout-card,.file-section-card,.file-stat-card,.file-related-section){min-width:0}}
