/* Rise of Legends v2.20.162 – desktop layout repair.
   Removes fixed 1024px-preview dimensions introduced in v160/v161.
   Purely presentational. No account, payment, vote, source or database changes. */
:root{--rol162-content:1480px;--rol162-gutter:clamp(22px,3.3vw,64px);--rol162-double-gutter:clamp(44px,6.6vw,128px)}
@media(min-width:1101px){
  body[data-rol-theme="archlord160"] .container{width:calc(100% - var(--rol162-double-gutter))!important;max-width:var(--rol162-content)!important}
  body[data-rol-theme="archlord160"] .site-header.rol159-header{height:150px!important;min-height:150px!important}
  body[data-rol-theme="archlord160"] .rol159-header-top{height:101px!important;max-width:var(--rol162-content)!important;padding:0 0!important}
  body[data-rol-theme="archlord160"] .rol159-brand{height:148px!important;width:300px!important}
  body[data-rol-theme="archlord160"] .rol159-brand .site-brand-logo{height:146px!important;width:300px!important;object-fit:contain!important}
  body[data-rol-theme="archlord160"] .rol159-header-nav{height:49px!important;min-height:49px!important}
  body[data-rol-theme="archlord160"] .rol159-header-nav .main-nav{width:calc(100% - var(--rol162-double-gutter))!important;max-width:var(--rol162-content)!important;height:48px!important;min-height:48px!important;gap:320px!important}
  body[data-rol-theme="archlord160"] .rol159-nav-group>a,
  body[data-rol-theme="archlord160"] .rol159-nav-group>.nav-dropdown>.nav-dropdown-trigger{height:48px!important;min-height:48px!important;padding:13px clamp(9px,.8vw,17px)!important;font-size:clamp(11px,.83vw,14px)!important;white-space:nowrap}
  body[data-rol-theme="archlord160"] .rol159-actions{min-height:41px!important;gap:8px!important}
  body[data-rol-theme="archlord160"] .rol159-actions .ghost-button,
  body[data-rol-theme="archlord160"] .rol159-actions .gold-button{height:32px!important;min-height:32px!important;font-size:12px!important;padding:6px 11px!important}
  .rol159-home .rol159-hero{height:clamp(275px,21vw,398px)!important;min-height:275px!important}
  .rol159-hero-ambience{background-position:center center!important;background-size:cover!important}
  .rol159-hero-layout{max-width:var(--rol162-content)!important;width:calc(100% - var(--rol162-double-gutter))!important;padding:0 clamp(22px,2vw,40px)!important}
  .rol159-hero-copy{width:min(510px,45%)!important;max-width:45%!important;padding:0 0 5px!important;transform:none!important}
  .rol159-hero-copy h1{font-size:clamp(33px,2.5vw,46px)!important;line-height:1.07!important;margin-bottom:15px!important}
  .rol159-hero-copy p{font-size:clamp(14px,.91vw,17px)!important;line-height:1.55!important;max-width:480px!important;margin-bottom:19px!important}
  .rol159-hero .rol159-button{min-height:56px!important;min-width:250px!important;font-size:23px!important}
  .rol159-statusbar{height:auto!important;min-height:53px!important}
  .rol159-status-inner{height:auto!important;min-height:51px!important;width:calc(100% - var(--rol162-double-gutter))!important;max-width:var(--rol162-content)!important;gap:clamp(10px,1.1vw,22px)!important;overflow:visible!important;font-size:clamp(12px,.76vw,15px)!important;white-space:normal!important}
  .rol159-status-inner>strong{font-size:16px!important;min-width:145px!important;padding-right:18px!important;white-space:nowrap}
  .rol159-status-inner b,.rol159-status-inner>a{font-size:clamp(12px,.75vw,14px)!important}
  .rol159-pillars{height:auto!important;min-height:108px!important;width:100%!important;max-width:none!important;padding:15px max(var(--rol162-gutter),calc((100vw - var(--rol162-content))/2))!important;gap:10px!important}
  .rol159-pillars a{min-height:76px!important;padding:8px 16px!important;gap:15px!important}
  .rol159-pillars a b{width:58px!important;height:58px!important;min-width:58px!important}
  .rol159-pillars a>span{max-height:none!important;overflow:visible!important}
  .rol159-pillars strong{font-size:clamp(13px,.85vw,16px)!important;white-space:normal!important;line-height:1.3!important;margin-bottom:5px!important}
  .rol159-pillars small{font-size:clamp(12px,.75vw,14px)!important;line-height:1.45!important;display:block!important;overflow:visible!important}
  .rol159-story{height:auto!important;min-height:285px!important}
  .rol159-story-inner{max-width:var(--rol162-content)!important;width:calc(100% - var(--rol162-double-gutter))!important;min-height:285px!important;height:auto!important;grid-template-columns:37% 43% 20%!important;overflow:visible!important}
  .rol159-story-copy{padding:16px 35px 16px 0!important}
  .rol159-story-copy h2{font-size:clamp(23px,1.6vw,29px)!important;white-space:normal!important;line-height:1.17!important;margin-bottom:13px!important}
  .rol159-story-copy p{font-size:clamp(14px,.82vw,16px)!important;line-height:1.54!important}
  .rol159-story-copy .rol159-button{margin-top:17px!important;min-height:36px!important;padding:8px 18px!important;font-size:13px!important}
  .rol159-story-image{margin:14px!important}
  .rol159-story-image img{height:221px!important;width:100%!important;object-fit:cover!important}
  .rol159-story-side{height:285px!important;min-height:285px!important}
  .rol159-home .rol159-section-head{margin:0 0 15px!important;gap:12px!important}
  .rol159-home .rol159-section-head h2{font-size:clamp(23px,1.5vw,29px)!important;line-height:1.2!important;white-space:normal!important}
  .rol159-home .rol159-section-head>a{font-size:13px!important;white-space:nowrap}
  .rol159-news{height:auto!important;min-height:233px!important;max-width:none!important;width:100%!important;padding:20px max(var(--rol162-gutter),calc((100vw - var(--rol162-content))/2)) 23px!important}
  .rol159-news-grid{height:auto!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
  .rol159-news-tile{height:160px!important;min-width:0!important}
  .rol159-news-tile>a{height:100%!important;overflow:hidden}
  .rol159-news-tile img{width:38%!important;flex:0 0 38%!important;height:100%!important}
  .rol159-news-info{padding:12px 13px!important;gap:7px!important;overflow:hidden!important}
  .rol159-news-info small{font-size:11px!important;line-height:1.3!important}
  .rol159-news-info strong{font-size:clamp(14px,.85vw,17px)!important;line-height:1.3!important;max-height:50px!important;-webkit-line-clamp:3!important}
  .rol159-news-info>span{font-size:12px!important;line-height:1.4!important;-webkit-line-clamp:3!important}
  .rol159-classes{height:auto!important;min-height:345px!important;padding:22px 0 24px!important}
  .rol159-classes .container,.rol159-home .rol159-classes .container{width:calc(100% - var(--rol162-double-gutter))!important;max-width:var(--rol162-content)!important}
  .rol159-classes-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:18px!important}
  .rol159-class-card{height:272px!important;min-width:0!important}
  .rol159-class-card .rol159-class-label{min-height:74px!important;padding:21px 9px 15px!important}
  .rol159-home .rol159-class-label strong{font-size:clamp(18px,1.15vw,22px)!important}
  .rol159-world{height:auto!important;min-height:238px!important;max-width:var(--rol162-content)!important;width:calc(100% - var(--rol162-double-gutter))!important;padding:17px 0 25px!important;grid-template-columns:minmax(0,61%) minmax(0,39%)!important;gap:24px!important}
  .rol159-cities,.rol159-world-map{min-width:0!important}
  .rol159-city-grid{gap:12px!important}
  .rol159-city-grid a{height:145px!important;min-width:0!important}
  .rol159-city-grid span{font-size:15px!important;padding:7px 3px!important}
  .rol159-map-art{height:145px!important}
  .rol159-map-art>.rol159-button{font-size:12px!important;min-height:31px!important;padding:6px 13px!important}
  .rol159-siege{height:auto!important;min-height:256px!important}
  .rol159-siege-grid{height:auto!important;min-height:256px!important;max-width:var(--rol162-content)!important;width:calc(100% - var(--rol162-double-gutter))!important;grid-template-columns:minmax(0,40%) minmax(0,33%) minmax(0,27%)!important;gap:0!important;padding:0!important}
  .rol159-siege-art{height:256px!important;min-width:0!important}
  .rol159-siege-copy{padding:29px 26px!important;min-width:0!important}
  .rol159-siege-copy h2{font-size:clamp(22px,1.45vw,27px)!important;white-space:normal!important;line-height:1.2!important}
  .rol159-siege-copy p{font-size:14px!important;line-height:1.6!important;margin-bottom:17px!important}
  .rol159-siege-copy .rol159-button{min-height:34px!important;padding:7px 16px!important;font-size:12px!important}
  .rol159-rankings{margin:17px 0 17px 14px!important;padding:12px 15px!important;overflow:hidden!important}
  .rol159-rankings h3{font-size:21px!important;margin-bottom:9px!important}
  .rol159-rankings>a:not(.rol159-ranking-more){min-height:27px!important;font-size:13px!important;gap:8px!important}
  .rol159-rankings>a>small{font-size:12px!important}
  .rol159-rankings .rol159-ranking-more{font-size:12px!important}
  .rol159-quicklinks{height:auto!important;min-height:169px!important;max-width:var(--rol162-content)!important;width:calc(100% - var(--rol162-double-gutter))!important;margin:0 auto!important;padding:20px 0 24px!important;gap:16px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .rol159-quicklinks a{min-height:126px!important;padding:15px 18px!important;gap:15px!important}
  .rol159-quicklinks strong{font-size:clamp(18px,1.12vw,22px)!important;line-height:1.15!important}
  .rol159-quicklinks small{font-size:12px!important;line-height:1.45!important}
  .rol159-quicklinks a b{height:59px!important;min-width:65px!important;width:65px!important}
  body[data-rol-theme="archlord160"].is-home-page .site-footer{min-height:115px!important}
  body[data-rol-theme="archlord160"].is-home-page .site-footer .footer-grid{max-width:var(--rol162-content)!important;min-height:86px!important;padding:14px 0!important}
  body[data-rol-theme="archlord160"].is-home-page .rol160-footer-links a{font-size:13px!important}
  body[data-rol-theme="archlord160"].is-home-page .site-footer .footer-bottom{max-width:var(--rol162-content)!important;font-size:11px!important}
}
/* Tablet: don't force the 1024px reference into a cramped, unreadable desktop strip. */
@media(min-width:641px) and (max-width:1100px){
 body[data-rol-theme="archlord160"] .rol159-story-inner{width:calc(100% - 42px)!important}
 .rol159-news-tile{min-width:0}
 .rol159-news-info strong{font-size:12px!important}
 .rol159-home .rol159-section-head h2{white-space:normal!important}
 .rol159-home .rol159-world{width:calc(100% - 42px)!important}
 .rol159-home .rol159-quicklinks a{min-width:0!important}
}
/* Phone: no forced horizontal scrolling or clipped labels from legacy fixed dimensions. */
@media(max-width:640px){
 .rol159-home{width:100%;overflow:hidden}
 .rol159-home .rol159-story-copy h2,.rol159-home .rol159-section-head h2{white-space:normal!important}
 .rol159-home .rol159-news-grid{height:auto!important}
 .rol159-home .rol159-news-tile{height:110px!important}
 .rol159-home .rol159-news-info{gap:5px!important}
 .rol159-home .rol159-news-info strong{font-size:12px!important}
 .rol159-home .rol159-news-info>span{font-size:10px!important}
 .rol159-classes-grid{scroll-snap-type:x proximity}
 .rol159-quicklinks strong{font-size:clamp(12px,3.2vw,16px)!important}
 .rol159-world{max-width:100%!important}
 .rol159-status-inner{overflow:visible!important}
}

@media(min-width:1101px) and (max-width:1320px){
  body[data-rol-theme="archlord160"] .rol159-header-nav .main-nav{gap:clamp(220px,20vw,280px)!important}
  body[data-rol-theme="archlord160"] .rol159-nav-group>a,body[data-rol-theme="archlord160"] .rol159-nav-group>.nav-dropdown>.nav-dropdown-trigger{font-size:11px!important;padding-left:7px!important;padding-right:7px!important}
  .rol159-story-copy p{font-size:13px!important}
  .rol159-pillars strong{font-size:12px!important}
  .rol159-pillars small{font-size:11px!important}
}

/* High-specificity overrides for old v161 .container max-width rules. */
@media(min-width:1101px){
  body[data-rol-theme="archlord160"] .rol159-home .rol159-pillars{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
  body[data-rol-theme="archlord160"] .rol159-home .rol159-news{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
  body[data-rol-theme="archlord160"] .rol159-home .rol159-classes .container{width:calc(100% - var(--rol162-double-gutter))!important;max-width:var(--rol162-content)!important}
  body[data-rol-theme="archlord160"] .rol159-home .rol159-world{width:calc(100% - var(--rol162-double-gutter))!important;max-width:var(--rol162-content)!important;margin-left:auto!important;margin-right:auto!important}
  body[data-rol-theme="archlord160"] .rol159-home .rol159-quicklinks{width:calc(100% - var(--rol162-double-gutter))!important;max-width:var(--rol162-content)!important;margin:0 auto!important}
}
