/* Shared chrome must not inherit course typography or lesson layout. */
body .site-header,body .dictionary-footer,.dictionary-display-preferences{font-family:DictionarySans,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:15px;line-height:1.65;color:var(--text,#e9eadb)}
body .site-header .mobile-menu>summary{font-family:inherit;font-size:13px;font-weight:700;line-height:1.65;padding:9px 12px;color:#20291f}
body .site-header .mobile-menu>summary:hover{background:#e9d3a5;color:#20291f}
body .site-header .paid-navigation{display:flex;gap:18px;align-items:center;border-left:1px solid #bdaa7880;padding-left:22px;margin-left:4px}
body .site-header .paid-navigation a{color:#eed3a0;font-size:14px;font-weight:700;white-space:nowrap;padding:6px 0;border-bottom:2px solid transparent}
body .site-header .paid-navigation a:hover,body .site-header .paid-navigation a[aria-current]{border-bottom-color:#d8bc87;text-decoration:none}
body .site-header>nav>.program-link{border-left:0;padding-left:0;margin-left:0}
.dictionary-display-preferences{width:calc(100% - 64px);max-width:1640px;margin:0 auto;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.dictionary-display-preferences button{font:inherit;font-size:12px;line-height:1.5;padding:5px 10px;min-height:32px;border:1px solid #bdaa7855;border-radius:6px;color:#d7d6c4;background:transparent;cursor:pointer}
.dictionary-display-preferences button:hover{background:#d8bc8715;color:#f3d9a8}
.dictionary-display-preferences button:focus-visible{outline:2px solid #f5db9d;outline-offset:3px}
.dictionary-display-preferences [data-preference-notice]:empty{display:none}
.dictionary-display-preferences [data-preference-notice]{font-size:12px;width:100%;margin:0;text-align:right}
html.dj-hide-romaji :is([data-romaji],.romaji,.reading-romaji,.study-romaji,.roman){display:none!important}
html.dj-hide-images :is([data-illustration],.course-cover,.course-card-art,.course-bundle-feature>img){display:none!important}
html.dj-hide-images .course-hero,html.dj-hide-images .course-bundle-feature{grid-template-columns:1fr}
html.dj-hide-images .course-hero-method{background-image:none}
body>.dictionary-footer{width:calc(100% - 64px);max-width:1480px;margin:65px auto 0;padding:30px 0 45px;border-top:1px solid var(--border,#bdaa7833);display:flex;flex-wrap:wrap;align-items:center;gap:20px;font-size:12px}
body>.dictionary-footer .footer-brand{font-size:14px;color:var(--text,#e9eadb);font-weight:600}
body>.dictionary-footer nav{display:flex;flex-wrap:wrap;gap:14px 24px;margin-left:auto;align-items:center}
body>.dictionary-footer nav a{color:var(--muted,#b9bbae)}
body>.dictionary-footer .dictionary-ownership{width:100%;line-height:1.65}
@media(max-width:1380px){body .site-header .mobile-menu .paid-navigation{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-left:0;border-top:1px solid #bdaa7880;padding:10px 0;margin:6px 0 0}body .site-header .mobile-menu .paid-navigation a{padding:12px 13px;background:#d8bc8710;border:0;border-radius:5px}}
@media(max-width:680px){.dictionary-display-preferences{width:calc(100% - 32px)}body>.dictionary-footer{width:calc(100% - 32px);margin-top:40px;padding:25px 0 30px;gap:12px 20px}body>.dictionary-footer nav{display:grid;grid-template-columns:1fr 1fr;gap:13px;width:100%;font-size:11px;margin:10px 0 0}}

html.dj-hide-images main img{display:none!important}

/* Badges sit above the label without increasing its width. */
body .site-header .paid-navigation a{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:0}
.paid-navigation .nav-new{position:absolute;top:-6px;right:0;padding:2px 3px;border:1px solid #d4b96b77;border-radius:3px;background:#30352a;color:#efd996;font-size:7px;font-weight:800;line-height:1;letter-spacing:.06em;pointer-events:none}
@media(min-width:1381px){
 body .site-header{gap:20px}
 body .site-header>nav{flex-wrap:nowrap;column-gap:clamp(10px,1vw,18px);row-gap:0}
 body .site-header .paid-navigation{gap:16px;padding-left:16px;margin-left:0}
 body .site-header .game-link{font-size:14px;padding:8px 12px}
 body .site-header .game-link span{margin-left:6px}
}
@media(min-width:1381px) and (max-width:1600px){
 body .site-header .brand{font-size:14px;gap:8px;letter-spacing:1.4px}
 body .site-header .tags-link,body .site-header .paid-navigation a{font-size:13px}
 body .site-header>nav>.program-link{font-size:12px}
 body .site-header .support-link{font-size:12px;padding:7px 9px}
}
@media(max-width:1380px){
 body .site-header .mobile-menu .paid-navigation a{display:flex;padding:19px 10px 10px;min-height:48px}
 .mobile-menu .paid-navigation .nav-new{top:4px;right:8px}
}
/* Compact previews use the space beside each cover. */
.expansion-hub-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0 24px;max-width:520px}
.expansion-hub-previews figure{margin:0;min-width:0}
.expansion-hub-previews a{display:block}
.expansion-hub-previews img{display:block;width:100%;height:130px;object-fit:cover;border-radius:8px;border:1px solid #bdaa7860}
.expansion-hub-previews figcaption{font-size:11px;line-height:1.5;color:#c5cbbd;padding-top:7px}
.expansion-hub-previews .myth-mini{object-position:center 30%}
.expansion-hub-previews .game-mini{object-fit:contain;background:#15201b}
@media(max-width:600px){.expansion-hub-previews{gap:10px;margin:18px 0}.expansion-hub-previews img{height:105px}.expansion-hub-previews figcaption{font-size:10px}}
