/* EverLeaf inner-page app cleanup — Sep 2026
   Keeps public routes consistent with the fixed homepage: dark, flat, edge-led,
   low-chrome, and information-first. This file intentionally loads last. */

body.siteRoute:not(.route-home):not(.route-admin){
  background:#12130f!important;
  color:#e4dfda!important;
}

body.siteRoute:not(.route-home):not(.route-admin) .siteContent{
  min-height:100svh!important;
  background:#12130f!important;
}

/* Compact the old marketing-style hero treatment into an app-like page header. */
body.siteRoute:not(.route-home):not(.route-admin) .lightTitle,
body.siteRoute:not(.route-home):not(.route-admin) .lightTitle.visualPageTitle,
body.siteRoute:not(.route-home):not(.route-admin) .rankingsHero,
body.siteRoute:not(.route-home):not(.route-admin) .wikiDataHero,
body.siteRoute:not(.route-home):not(.route-admin) .accountHero{
  min-height:0!important;
  padding:34px 0 30px!important;
  overflow:visible!important;
  background:#12130f!important;
  border:0!important;
  border-bottom:1px solid #3c3c38!important;
  box-shadow:none!important;
}

body.siteRoute:not(.route-home):not(.route-admin) .lightTitle::before,
body.siteRoute:not(.route-home):not(.route-admin) .lightTitle::after,
body.siteRoute:not(.route-home):not(.route-admin) .rankingsHero::before,
body.siteRoute:not(.route-home):not(.route-admin) .rankingsHero::after,
body.siteRoute:not(.route-home):not(.route-admin) .wikiDataHero::before,
body.siteRoute:not(.route-home):not(.route-admin) .wikiDataHero::after,
body.siteRoute:not(.route-home):not(.route-admin) .visualPageTitle::before,
body.siteRoute:not(.route-home):not(.route-admin) .visualPageTitle::after{
  content:none!important;
  display:none!important;
  background:none!important;
}

body.siteRoute:not(.route-home):not(.route-admin) .pageHeroGrid,
body.siteRoute:not(.route-home):not(.route-admin) .rankingsHeroGrid,
body.siteRoute:not(.route-home):not(.route-admin) .wikiListHeroGrid{
  display:block!important;
  width:100%!important;
  max-width:none!important;
}

body.siteRoute:not(.route-home):not(.route-admin) .pageHeroAside,
body.siteRoute:not(.route-home):not(.route-admin) .pageHeroVisual,
body.siteRoute:not(.route-home):not(.route-admin) .rankingLiveAside,
body.siteRoute:not(.route-home):not(.route-admin) .visualPageArt{
  display:none!important;
}

body.siteRoute:not(.route-home):not(.route-admin) .lightTitle h1,
body.siteRoute:not(.route-home):not(.route-admin) .rankingsHero h1,
body.siteRoute:not(.route-home):not(.route-admin) .wikiDataHero h1,
body.siteRoute:not(.route-home):not(.route-admin) .accountHero h1{
  max-width:1100px!important;
  margin:8px 0 0!important;
  font-size:clamp(46px,6.5vw,96px)!important;
  line-height:.78!important;
  letter-spacing:-.065em!important;
}

body.siteRoute:not(.route-home):not(.route-admin) .lightTitle p,
body.siteRoute:not(.route-home):not(.route-admin) .rankingsHero p,
body.siteRoute:not(.route-home):not(.route-admin) .wikiDataHero p,
body.siteRoute:not(.route-home):not(.route-admin) .accountHero p{
  max-width:760px!important;
  margin-top:14px!important;
  font-size:13px!important;
  line-height:1.3!important;
  color:#9f9b95!important;
}

/* Remove cream/rounded legacy surfaces and collapse everything into flat modules. */
body.siteRoute:not(.route-home):not(.route-admin) .paperCard,
body.siteRoute:not(.route-home):not(.route-admin) .featurePanel,
body.siteRoute:not(.route-home):not(.route-admin) .featureCard,
body.siteRoute:not(.route-home):not(.route-admin) .downloadCard,
body.siteRoute:not(.route-home):not(.route-admin) .helpCard,
body.siteRoute:not(.route-home):not(.route-admin) .supportCard,
body.siteRoute:not(.route-home):not(.route-admin) .accountCard,
body.siteRoute:not(.route-home):not(.route-admin) .accountPanel,
body.siteRoute:not(.route-home):not(.route-admin) .formCard,
body.siteRoute:not(.route-home):not(.route-admin) .rankingSeasonCard,
body.siteRoute:not(.route-home):not(.route-admin) .rankingSearch,
body.siteRoute:not(.route-home):not(.route-admin) .rankingPodiumCard,
body.siteRoute:not(.route-home):not(.route-admin) .rankingBoardV2,
body.siteRoute:not(.route-home):not(.route-admin) .wikiCard,
body.siteRoute:not(.route-home):not(.route-admin) .libraryCard,
body.siteRoute:not(.route-home):not(.route-admin) .wikiSidebar,
body.siteRoute:not(.route-home):not(.route-admin) .wikiNav,
body.siteRoute:not(.route-home):not(.route-admin) .authCard{
  border-radius:0!important;
  border-color:#3c3c38!important;
  background:transparent!important;
  box-shadow:none!important;
}

body.siteRoute:not(.route-home):not(.route-admin) .paperCard:hover,
body.siteRoute:not(.route-home):not(.route-admin) .featurePanel:hover,
body.siteRoute:not(.route-home):not(.route-admin) .downloadCard:hover,
body.siteRoute:not(.route-home):not(.route-admin) .helpCard:hover,
body.siteRoute:not(.route-home):not(.route-admin) .rankingPodiumCard:hover,
body.siteRoute:not(.route-home):not(.route-admin) .wikiCard:hover{
  transform:none!important;
  background:#171814!important;
  box-shadow:none!important;
}

/* Tighter app rhythm instead of large website-section spacing. */
body.siteRoute:not(.route-home):not(.route-admin) .lightBody,
body.siteRoute:not(.route-home):not(.route-admin) .contentSection,
body.siteRoute:not(.route-home):not(.route-admin) .pageSection,
body.siteRoute:not(.route-home):not(.route-admin) .rankingsPageV2,
body.siteRoute:not(.route-home):not(.route-admin) .wikiCatalogSection,
body.siteRoute:not(.route-home):not(.route-admin) .wikiSearchResults{
  padding-top:26px!important;
  padding-bottom:44px!important;
  background:#12130f!important;
}

body.siteRoute:not(.route-home):not(.route-admin) .contentGrid,
body.siteRoute:not(.route-home):not(.route-admin) .featureGrid,
body.siteRoute:not(.route-home):not(.route-admin) .downloadGrid,
body.siteRoute:not(.route-home):not(.route-admin) .helpGrid,
body.siteRoute:not(.route-home):not(.route-admin) .supportGrid,
body.siteRoute:not(.route-home):not(.route-admin) .accountGrid,
body.siteRoute:not(.route-home):not(.route-admin) .wikiGrid,
body.siteRoute:not(.route-home):not(.route-admin) .libraryGrid{
  gap:1px!important;
  background:#292a26!important;
}

body.siteRoute:not(.route-home):not(.route-admin) .contentGrid>* ,
body.siteRoute:not(.route-home):not(.route-admin) .featureGrid>* ,
body.siteRoute:not(.route-home):not(.route-admin) .downloadGrid>* ,
body.siteRoute:not(.route-home):not(.route-admin) .helpGrid>* ,
body.siteRoute:not(.route-home):not(.route-admin) .supportGrid>* ,
body.siteRoute:not(.route-home):not(.route-admin) .accountGrid>* ,
body.siteRoute:not(.route-home):not(.route-admin) .wikiGrid>* ,
body.siteRoute:not(.route-home):not(.route-admin) .libraryGrid>* {
  background:#12130f!important;
}

/* Journal becomes a compact feed rather than a poster/card gallery. */
body.route-news .newsList{
  display:block!important;
  padding:18px 0 42px!important;
  background:transparent!important;
}
body.route-news .newsStory{
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(160px,220px) 1fr!important;
  border:0!important;
  border-bottom:1px solid #3c3c38!important;
  background:#12130f!important;
}
body.route-news .newsStory img{
  width:100%!important;
  height:150px!important;
  object-fit:cover!important;
}
body.route-news .newsStoryBody{
  padding:18px 20px!important;
}
body.route-news .newsStoryBody h3{
  margin:4px 0 8px!important;
  font-size:clamp(24px,3vw,40px)!important;
}

/* Downloads/help: flatten sidebars and make the main action read first. */
body.route-downloads .contentGrid,
body.route-help .contentGrid{
  grid-template-columns:1fr!important;
}
body.route-downloads .downloadCard,
body.route-help .helpCard{
  min-height:0!important;
  padding:18px!important;
}
body.route-downloads .downloadIcon,
body.route-help .helpIcon{
  border:0!important;
  background:transparent!important;
}

/* Rankings: keep data dense and remove decorative podium emphasis. */
body.route-rankings .rankingStats{
  margin-bottom:22px!important;
}
body.route-rankings .rankingPodium{
  gap:1px!important;
  background:#292a26!important;
}
body.route-rankings .rankingPodiumCard{
  min-height:0!important;
  padding:18px!important;
}
body.route-rankings .rankingSeasonCard{
  background:#171814!important;
}

/* Wiki: compact library shell with fewer boxed layers. */
body.route-wiki .wikiShell,
body.route-wiki .wikiLayout,
body.route-wiki .wikiDataPage{
  background:#12130f!important;
}
body.route-wiki .wikiSidebar,
body.route-wiki .wikiNav{
  border-left:0!important;
  border-right:0!important;
}
body.route-wiki .wikiCatalogGrid{
  gap:1px!important;
  background:#292a26!important;
}
body.route-wiki .wikiCatalogGrid>*{
  background:#12130f!important;
}

/* Auth/account: remove the giant scenic split and keep the product UI centered and direct. */
body.route-login .authWrap,
body.route-register .authWrap,
body.route-recover .authWrap{
  min-height:100svh!important;
  padding:28px 20px 44px!important;
  background:#12130f!important;
}
body.route-login .authGrid,
body.route-register .authGrid,
body.route-recover .authGrid{
  width:min(920px,100%)!important;
  margin:0 auto!important;
  grid-template-columns:minmax(0,1fr)!important;
  border:0!important;
}
body.route-login .authIntro,
body.route-register .authIntro,
body.route-recover .authIntro{
  min-height:0!important;
  padding:0 0 24px!important;
  border:0!important;
  border-bottom:1px solid #3c3c38!important;
}
body.route-login .authIntro img,
body.route-register .authIntro img,
body.route-recover .authIntro img{
  display:none!important;
}
body.route-login .authCard,
body.route-register .authCard,
body.route-recover .authCard{
  padding:26px 0!important;
  border:0!important;
  background:transparent!important;
}

/* Footer is intentionally absent site-wide; keep this as a hard guard. */
body.siteRoute .siteFooter,
body.siteRoute .terminalFooter{
  display:none!important;
}

@media(max-width:760px){
  body.siteRoute:not(.route-home):not(.route-admin) .lightTitle,
  body.siteRoute:not(.route-home):not(.route-admin) .lightTitle.visualPageTitle,
  body.siteRoute:not(.route-home):not(.route-admin) .rankingsHero,
  body.siteRoute:not(.route-home):not(.route-admin) .wikiDataHero,
  body.siteRoute:not(.route-home):not(.route-admin) .accountHero{
    padding:26px 0 22px!important;
  }
  body.siteRoute:not(.route-home):not(.route-admin) .lightTitle h1,
  body.siteRoute:not(.route-home):not(.route-admin) .rankingsHero h1,
  body.siteRoute:not(.route-home):not(.route-admin) .wikiDataHero h1,
  body.siteRoute:not(.route-home):not(.route-admin) .accountHero h1{
    font-size:clamp(40px,13vw,64px)!important;
  }
  body.route-news .newsStory{
    grid-template-columns:1fr!important;
  }
  body.route-news .newsStory img{
    height:170px!important;
  }
  body.route-login .authWrap,
  body.route-register .authWrap,
  body.route-recover .authWrap{
    padding:20px 14px 34px!important;
  }
}
