/* Support remains visible without opening the mobile navigation. */
body[data-realm] .rh-sanctuary .rh-top{height:auto;min-height:44px}
body[data-realm] .rh-sanctuary .rh-top-inner{min-height:44px}
body[data-realm] .rh-sanctuary .rh-top-right{gap:18px}
body[data-realm] .rh-sanctuary .realm-support-top{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:4px 16px;border-inline:1px solid #a27c3f80;background:linear-gradient(110deg,#53301480,#272013);box-shadow:inset 0 -2px #b68b45;color:#f5deb1;font:600 12px/1.4 RealmNavigation,Georgia,serif;letter-spacing:.5px;white-space:nowrap;text-decoration:none}
.realm-support-top img{object-fit:contain;flex:none}
body[data-realm] .rh-sanctuary .realm-support-top:hover{background:#50351d;color:#fff3d6}
.realm-support-footer{display:flex;align-items:center;gap:22px;position:relative;z-index:1;margin:0 auto 42px;padding:24px 30px;border-block:1px solid #9e794b80;background:radial-gradient(ellipse at 8% 50%,#8d481c29,transparent 60%),#0d0d0de8;text-align:left}
.realm-support-footer>img{object-fit:contain;flex:none}
.realm-support-footer>div{flex:1;min-width:0}
.realm-support-footer strong{font:500 23px/1.4 RealmNavigation,Georgia,serif;color:#e7cf9f}
.realm-support-footer p{margin:6px 0 0;color:#bfb6a2;font:16px/1.6 RealmNavigation,Georgia,serif}
.realm-support-footer .d2-button{flex:none;min-height:48px;min-width:180px;color:#f6dfaf}
.realm-support-footer a:focus-visible{outline:2px solid #f1d399;outline-offset:4px}
/* Wiki links in the top bar (8.11): Polish wiki on PL pages, English wiki on EN pages. */
body[data-realm] .rh-sanctuary .realm-wiki-top{display:inline-flex;align-items:center;gap:2px;white-space:nowrap;font:600 12px/1.4 RealmNavigation,Georgia,serif;letter-spacing:.5px}
body[data-realm] .rh-sanctuary .realm-wiki-top span{margin-right:4px;color:#a8916a;font-size:11px;letter-spacing:1px;text-transform:uppercase}
body[data-realm] .rh-sanctuary .realm-wiki-top a{display:inline-flex;align-items:center;min-height:44px;padding:0 7px;color:#e7cf9f;text-decoration:none}
body[data-realm] .rh-sanctuary .realm-wiki-top a:hover{color:#fff3d6;text-decoration:underline;text-underline-offset:3px}
.realm-wiki-top a:focus-visible{outline:2px solid #f1d399;outline-offset:-2px}
/* Up to 380 px (360/375 px phones, measured) the wiki links get their own centred row; wider phones keep one row. */
@media(max-width:380px){body[data-realm] .rh-sanctuary .realm-wiki-top{order:3;flex-basis:100%;justify-content:center}}
@media(max-width:1100px){body[data-realm] .rh-sanctuary .rh-season{display:none}}
@media(max-width:700px){
 body[data-realm] .rh-sanctuary .rh-top-inner{flex-wrap:wrap;gap:0;padding-block:4px 0}
 body[data-realm] .rh-sanctuary .realm-switch{width:100%;justify-content:center}
 body[data-realm] .rh-sanctuary .rh-top-right{width:100%;justify-content:space-between;gap:12px;padding-top:4px}
 body[data-realm] .rh-sanctuary .realm-support-top{flex:1}
 body[data-realm] .rh-sanctuary .rh-top-right{gap:8px;flex-wrap:wrap;row-gap:0}
 body[data-realm] .rh-sanctuary .realm-support-top{padding:4px 10px;gap:7px}
 body[data-realm] .rh-sanctuary .realm-wiki-top a{padding:0 5px}
 body[data-realm] .rh-sanctuary .rh-lang a{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:44px}
 .realm-support-footer{flex-wrap:wrap;gap:16px;padding:22px 18px}
 .realm-support-footer strong{font-size:20px}.realm-support-footer p{font-size:15px}
 .realm-support-footer .d2-button{width:100%}
}
/* Page polish (8.11): one compact page heading on every realm, with the values D2R already uses (realm-cohesion.css,
   beta usability audit). LoD/hub headings were 84 px in a box up to 603 px tall and long titles broke in two. */
body[data-realm] .hero.compact-hero{min-height:0;padding:28px 20px 20px;margin-bottom:20px}
body[data-realm] .hero.compact-hero h1{font-size:clamp(28px,3.4vw,44px);line-height:1.3;max-width:100%;overflow-wrap:anywhere}
body[data-realm] .hero.compact-hero p{max-width:720px;margin-inline:auto;font-size:17px;line-height:1.55;margin-block:12px}
body[data-realm] .hero.compact-hero p.eyebrow{max-width:none;font-size:10px;line-height:1.3;margin-block:0}
body[data-realm] .hero.compact-hero .rune-divider{margin-top:18px}
/* D2R armory and Grail: the wrapper's 24 px top margin put their heading 14 px lower than on ladder and the rest. */
body[data-realm="d2r"] .d2r-public:is(.d2r-armory-page,.d2r-grail-page){margin-top:0}
@media(max-width:600px){
 body[data-realm] .hero.compact-hero{padding:20px 12px 12px}
 body[data-realm] .hero.compact-hero p:not(.eyebrow){font-size:16px}
}
/* Tablets (8.11 r2): at 701-860 px the wiki links squeezed the realm switch ("LORD OF DESTRUCTION" broke in two):
   use the two-row phone top bar there, and a tighter right side up to 1000 px. Measured 701-1101 px, PL and EN. */
@media(min-width:701px) and (max-width:860px){
 body[data-realm] .rh-sanctuary .rh-top-inner{flex-wrap:wrap;gap:0;padding-block:4px 0}
 body[data-realm] .rh-sanctuary .realm-switch{width:100%;justify-content:center}
 body[data-realm] .rh-sanctuary .rh-top-right{width:100%;justify-content:space-between;gap:12px;padding-top:4px}
 body[data-realm] .rh-sanctuary .realm-support-top{flex:1}
}
@media(min-width:861px) and (max-width:1000px){
 body[data-realm] .rh-sanctuary .rh-top-right{gap:10px}
 body[data-realm] .rh-sanctuary .realm-support-top{padding:4px 10px}
 body[data-realm] .rh-sanctuary .realm-wiki-top a{padding:0 5px}
 body[data-realm] .rh-sanctuary .realm-wiki-top span{margin-right:2px}
}
