/* RoL 2.20.165 – restored original nav positions; homepage content alignment.
   Previously: v2.20.164. */
/* RoL 2.20.164 – final layout boundary after legacy v159-v163 styles.
   No screenshots-with-text used as a background. Consistent responsive max widths. */
body[data-rol-theme="archlord160"]{--rol164-max:1480px;--rol164-gutter:clamp(18px,3.2vw,60px)}
@media(min-width:1101px){
 body[data-rol-theme="archlord160"] .container{box-sizing:border-box!important;max-width:var(--rol164-max)!important;width:calc(100% - var(--rol164-gutter) - var(--rol164-gutter))!important;margin-inline:auto!important}
 .rol159-home .rol159-hero{min-height:290px!important;height:clamp(290px,20vw,390px)!important}
 .rol159-home .rol159-pillars,.rol159-home .rol159-news,.rol159-home .rol159-quicklinks{
    width:calc(100% - var(--rol164-gutter) - var(--rol164-gutter))!important;max-width:var(--rol164-max)!important;margin-inline:auto!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box!important}
 .rol159-home .rol159-pillars{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important}
 .rol159-home .rol159-pillars a{min-width:0!important;padding:12px clamp(8px,.9vw,18px)!important}
 .rol159-home .rol159-pillars a>span{min-width:0!important;overflow:visible!important}
 .rol159-home .rol159-pillars b{font-size:30px!important;min-width:45px!important;width:45px!important;height:auto!important}
 .rol159-home .rol159-pillars strong{font-size:clamp(12px,.85vw,15px)!important;line-height:1.3!important;overflow-wrap:break-word!important}
 .rol159-home .rol159-pillars small{font-size:clamp(11px,.7vw,13px)!important;line-height:1.4!important}
 .rol159-home .rol159-story-inner{width:calc(100% - var(--rol164-gutter) - var(--rol164-gutter))!important;max-width:var(--rol164-max)!important;grid-template-columns:minmax(0,36fr) minmax(0,44fr) minmax(0,20fr)!important}
 .rol159-home .rol159-news-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
 .rol159-home .rol159-news-tile{min-width:0!important;max-width:100%!important}
 .rol159-home .rol159-classes>.container{width:calc(100% - var(--rol164-gutter) - var(--rol164-gutter))!important;max-width:var(--rol164-max)!important}
 .rol159-home .rol159-classes-grid{width:100%!important;max-width:100%!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:clamp(12px,1vw,22px)!important}
 .rol159-home .rol159-class-card{min-width:0!important;width:100%!important}
 .rol159-home .rol159-world{width:calc(100% - var(--rol164-gutter) - var(--rol164-gutter))!important;max-width:var(--rol164-max)!important;grid-template-columns:minmax(0,60fr) minmax(0,40fr)!important;gap:20px!important}
 .rol159-home .rol159-city-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .rol159-home .rol159-siege-grid{width:calc(100% - var(--rol164-gutter) - var(--rol164-gutter))!important;max-width:var(--rol164-max)!important;margin-inline:auto!important;grid-template-columns:minmax(0,44fr) minmax(0,31fr) minmax(0,25fr)!important}
 .rol159-home .rol159-quicklinks{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
}
/* Never stretch low-res images; preserve proportions and prevent distortion. */
body[data-rol-theme="archlord160"] .rol159-class-card img,
body[data-rol-theme="archlord160"] .rol159-city-grid img,
body[data-rol-theme="archlord160"] .rol159-story-image img,
body[data-rol-theme="archlord160"] .rol159-map-art img,
body[data-rol-theme="archlord160"] .rol159-siege-art img{object-fit:cover!important;object-position:center!important;image-rendering:auto!important;max-width:100%!important}
/* Prevent old screenshot footer background from showing a duplicate logo and text. */
body[data-rol-theme="archlord160"] .site-footer,
body[data-rol-theme="archlord160"].is-home-page .site-footer{background:#080f17!important;background-image:linear-gradient(180deg,#111c27,#070b13)!important;background-repeat:no-repeat!important;overflow:hidden!important;position:relative!important}
body[data-rol-theme="archlord160"] .site-footer:before,
body[data-rol-theme="archlord160"] .site-footer:after{background-image:none!important}
body[data-rol-theme="archlord160"].is-home-page .site-footer .footer-grid{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:24px!important;max-width:var(--rol164-max)!important;width:calc(100% - var(--rol164-gutter) - var(--rol164-gutter))!important;min-height:100px!important;box-sizing:border-box!important;margin-inline:auto!important}
body[data-rol-theme="archlord160"].is-home-page .site-footer .footer-grid>.footer-identity{flex:0 0 auto!important;max-width:190px!important}
body[data-rol-theme="archlord160"].is-home-page .site-footer .footer-grid .footer-brand img{max-width:180px!important;max-height:73px!important;object-fit:contain!important}
body[data-rol-theme="archlord160"].is-home-page .rol160-footer-links{display:flex!important;flex:1!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:0!important}
body[data-rol-theme="archlord160"].is-home-page .rol160-footer-links a{line-height:1.4!important;font-size:clamp(11px,.72vw,13px)!important;padding:0 10px!important}
body[data-rol-theme="archlord160"].is-home-page .rol160-footer-extra{position:static!important;background:none!important;padding:5px 0!important;text-align:center!important}
body[data-rol-theme="archlord160"] .site-footer .footer-bottom{width:calc(100% - var(--rol164-gutter) - var(--rol164-gutter))!important;max-width:var(--rol164-max)!important;margin-inline:auto!important}
@media(max-width:1100px){
 body[data-rol-theme="archlord160"] .site-footer{background-image:linear-gradient(180deg,#14202b,#070b13)!important}
 body[data-rol-theme="archlord160"] .rol159-home :is(.rol159-story-inner,.rol159-world,.rol159-siege-grid){max-width:100%!important;min-width:0!important}
 body[data-rol-theme="archlord160"] .rol159-classes-grid{min-width:0!important}
}
@media(max-width:640px){
 body[data-rol-theme="archlord160"] .rol159-classes-grid{display:flex!important;overflow-x:auto!important}
 body[data-rol-theme="archlord160"].is-home-page .site-footer .footer-grid{display:block!important;min-height:0!important;padding:20px 0!important}
 body[data-rol-theme="archlord160"] .rol160-footer-links{justify-content:flex-start!important}
}

/* v2.20.165 – ONLY homepage alignment. Header navigation is intentionally untouched.
   This higher-specificity declaration supersedes the old v162 full-width rules. */
@media (min-width:1101px) {
  body[data-rol-theme="archlord160"] .rol159-home section.rol159-pillars,
  body[data-rol-theme="archlord160"] .rol159-home section.rol159-news {
    box-sizing: border-box !important;
    width: calc(100% - var(--rol164-gutter) - var(--rol164-gutter)) !important;
    max-width: var(--rol164-max) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body[data-rol-theme="archlord160"] .rol159-home section.rol159-pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }
  body[data-rol-theme="archlord160"] .rol159-home section.rol159-news .rol159-section-head,
  body[data-rol-theme="archlord160"] .rol159-home section.rol159-news .rol159-news-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* At laptop sizes keep the content on the same inset as other site sections. */
@media (min-width:641px) and (max-width:1100px) {
  body[data-rol-theme="archlord160"] .rol159-home section.rol159-pillars,
  body[data-rol-theme="archlord160"] .rol159-home section.rol159-news {
    box-sizing: border-box !important;
    width: calc(100% - 36px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
