/* Regelstand 22: Langzeittest-Politur, feste Seitenleiste und zustandsabhängige Vorhaben */

/* Nur der wechselnde Kontextinhalt scrollt; Auftragsbuch und Chronik bleiben erreichbar. */
.inspector{display:flex;flex-direction:column;height:calc(100vh - 7rem);overflow:hidden}
#inspector-content{display:flex;flex:1 1 auto;min-height:0;flex-direction:column}
.inspector-heading,.inspector-tabs{flex:0 0 auto}
.inspector-panel{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:.35rem;scrollbar-gutter:stable}
.sidebar-order-book,.turn-report,.chronicle-section{flex:0 0 auto}
#selected-orders{max-height:8.5rem;overflow-y:auto;overscroll-behavior:contain}
.turn-report-body,.chronicle-section .chronicle{max-height:13rem;overflow-y:auto;overscroll-behavior:contain}

/* Vorhaben zeigen ihren zeitlichen Horizont, bleiben aber bis zur Verfügbarkeit kompakt. */
.venture-section>summary.section-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;border-bottom:0;background:linear-gradient(90deg,#25190f,#382515,#21170e);cursor:pointer;list-style:none}
.venture-section>summary.section-title::-webkit-details-marker{display:none}
.venture-section>summary.section-title::before{content:"▸";flex:0 0 auto;color:#d2aa5a;font-size:1rem}
.venture-section[open]>summary.section-title::before{content:"▾"}
.venture-section[open]>summary.section-title{border-bottom:1px solid #6b5132}
.venture-section>summary.section-title>span{flex:1 1 auto}
.venture-section>summary.section-title b{display:block;color:#ead08e;font:700 .78rem Georgia,serif}
.venture-section>summary.section-title small{margin-top:.12rem}
.venture-section>summary.section-title>strong{flex:0 0 auto;color:#d4bd83;font-size:.62rem;text-align:right}
.steel-venture-section>summary.section-title{background:linear-gradient(90deg,#30190d,#573018,#27150c)}

/* Vollständig erreichte Teilzielblöcke bleiben lesbar, beanspruchen aber nicht ständig Platz. */
.completed-goal-stages{margin-top:.45rem;border:1px solid #466845;background:#111a12}
.completed-goal-stages>summary{padding:.5rem .6rem;color:#9dcc9c;font-size:.62rem;font-weight:800;cursor:pointer;list-style:none}
.completed-goal-stages>summary::before{content:"▸";margin-right:.4rem;color:#d2aa5a}
.completed-goal-stages[open]>summary::before{content:"▾"}
.completed-goal-stages>.goal-stage-track,.completed-goal-stages>.goal-next{margin-left:.55rem;margin-right:.55rem}
.completed-goal-stages>.goal-next{margin-bottom:.55rem}

/* Das sichtbare Tiegelstahlwerk verhält sich wie jeder andere Ort auf dem Gelände. */
.future-plot.steel-site.selected{outline:3px solid #f1c36e;outline-offset:3px;filter:brightness(1.12)}
.steel-project-status{display:grid;gap:.4rem;margin-top:.75rem}
.steel-project-status>span{display:grid;gap:.12rem;padding:.55rem .65rem;border:1px solid #4f3e2a;background:#21170f}
.steel-project-status>span.active{border-color:#a1703c;background:#2d1d10}
.steel-project-status>span.complete{border-color:#51774f;background:#172319}
.steel-project-status b{color:#e8cf94;font-size:.68rem}
.steel-project-status small{color:#b9aa91;font-size:.59rem}

@media(max-width:1100px){
  .inspector{display:block;height:auto;overflow:visible}
  #inspector-content{display:block}
  .inspector-panel{min-height:13rem;overflow:visible;padding-right:0;scrollbar-gutter:auto}
  #selected-orders,.turn-report-body,.chronicle-section .chronicle{max-height:none}
}
