/* Forest Frontier v0.12.9 — unified service exits, map-owned trials and Forge placeholder. */

/* Every detached activity/service screen uses the same right-side exit contract. */
body.theme-ashen .service-screen-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  margin:0 0 10px!important;
}
body.theme-ashen .service-screen-head>div:first-child{
  min-width:0!important;
}
body.theme-ashen .service-screen-head .section-label{
  margin:0 0 2px!important;
}
body.theme-ashen .service-screen-head h2{
  margin:0!important;
  overflow:hidden!important;
  color:#eadfbd!important;
  font-size:1.2rem!important;
  line-height:1.08!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.theme-ashen .service-screen-head .service-exit-button{
  width:auto!important;
  min-width:88px!important;
  min-height:44px!important;
  margin:0!important;
  padding:8px 12px!important;
  font-size:11px!important;
  white-space:nowrap!important;
}
body.theme-ashen.screen-shop-active #screenShop .shop-service-head{
  margin-bottom:8px!important;
}
body.theme-ashen.screen-shop-active #screenShop .shop-content-heading{
  display:none!important;
}
body.theme-ashen.screen-patrol-active #screenPatrol .patrol-screen-head,
body.theme-ashen.screen-ruins-active #screenRuins .ruins-screen-head{
  margin-bottom:8px!important;
}

/* Forge is a future Outpost service; trials never render inside it. */
body.theme-ashen.screen-map-active #screenMap .forge-placeholder-service{
  align-content:start!important;
}
body.theme-ashen.screen-map-active #screenMap .forge-placeholder-card{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  align-items:start!important;
  gap:12px!important;
  padding:14px!important;
  border:1px solid rgba(177,145,79,.34)!important;
  border-radius:14px!important;
  background:linear-gradient(145deg,rgba(29,27,21,.94),rgba(8,16,14,.96))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035),0 10px 24px rgba(0,0,0,.18)!important;
}
body.theme-ashen.screen-map-active #screenMap .forge-placeholder-glyph{
  display:grid!important;
  place-items:center!important;
  width:46px!important;
  height:46px!important;
  border:1px solid rgba(199,167,91,.5)!important;
  border-radius:50%!important;
  color:#d7bc72!important;
  background:rgba(49,37,18,.58)!important;
  font-size:21px!important;
}
body.theme-ashen.screen-map-active #screenMap .forge-placeholder-card strong{
  display:block!important;
  color:#ead9a9!important;
  font:700 18px/1.12 Georgia,serif!important;
}
body.theme-ashen.screen-map-active #screenMap .forge-placeholder-card .path-service-intro{
  margin:6px 0 0!important;
  color:#b7bfba!important;
  font-size:11px!important;
  line-height:1.4!important;
}
body.theme-ashen.screen-map-active #screenMap .forge-placeholder-card small{
  display:block!important;
  margin-top:8px!important;
  color:#8f9a95!important;
  font-size:9.5px!important;
  line-height:1.35!important;
}
body.theme-ashen.screen-map-active #screenMap #heroTrialsActivity[aria-hidden="true"]{
  display:none!important;
}

/* Mandatory trial nodes remain visually distinct on the chapter route. */
body.theme-ashen.screen-map-active #screenMap button.path-map-node.kind-trial .path-node-anchor{
  border-color:rgba(102,193,176,.72)!important;
  box-shadow:0 0 0 1px rgba(35,90,79,.55),0 0 16px rgba(53,161,139,.16)!important;
}
body.theme-ashen.screen-map-active #screenMap button.path-map-node.kind-trial.current .path-node-label,
body.theme-ashen.screen-map-active #screenMap button.path-map-node.kind-trial.selected .path-node-label{
  border-color:rgba(97,198,177,.64)!important;
}

@media(max-width:390px){
  body.theme-ashen .service-screen-head{
    gap:7px!important;
    margin-bottom:7px!important;
  }
  body.theme-ashen .service-screen-head h2{
    font-size:1.05rem!important;
  }
  body.theme-ashen .service-screen-head .service-exit-button{
    min-width:78px!important;
    min-height:40px!important;
    padding:7px 9px!important;
    font-size:10px!important;
  }
  body.theme-ashen.screen-map-active #screenMap .forge-placeholder-card{
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:9px!important;
    padding:11px!important;
  }
  body.theme-ashen.screen-map-active #screenMap .forge-placeholder-glyph{
    width:38px!important;
    height:38px!important;
    font-size:18px!important;
  }
  body.theme-ashen.screen-map-active #screenMap .forge-placeholder-card strong{
    font-size:15px!important;
  }
  body.theme-ashen.screen-map-active #screenMap .forge-placeholder-card .path-service-intro{
    font-size:10px!important;
  }
}
