/* Compact styles for pages loaded inside iframes */
body.in-iframe header {
    padding-top: 0.6rem !important;
    padding-bottom: 0.5rem !important;
}
body.in-iframe header h1 {
    font-size: clamp(0.9rem, 2vw, 1.3rem) !important;
}
body.in-iframe header p {
    font-size: 0.55rem !important;
    margin-top: 0.15rem !important;
}
body.in-iframe .header-classified,
body.in-iframe .header-skull,
body.in-iframe .header-divider,
body.in-iframe .watermark {
    display: none !important;
}
body.in-iframe .page-wrap {
    padding-top: 0 !important;
}

/* Locale-based show/hide for static bilingual pages.
   Pages mark Chinese spans/divs with .zh and English with .en;
   iframe-detect.js sets html[lang] based on locale. */
html[lang="en"] .zh { display: none !important; }
html[lang="zh-TW"] .en { display: none !important; }
/* Block-level alternates: keep span inline-defaults, force block when block content */
html[lang="en"] div.zh,
html[lang="en"] p.zh,
html[lang="en"] li.zh { display: none !important; }
html[lang="zh-TW"] div.en,
html[lang="zh-TW"] p.en,
html[lang="zh-TW"] li.en { display: none !important; }

/* Additional bilingual variants (faction-specific class patterns) */
html[lang="en"] .doctrine-name-zh,
html[lang="en"] .synergy-name-zh { display: none !important; }
html[lang="zh-TW"] .doctrine-name-en,
html[lang="zh-TW"] .synergy-name-en,
html[lang="zh-TW"] .uc-en,
html[lang="zh-TW"] .u-en { display: none !important; }
