
/* =========================================================
   PAGE 06 — WHY 12
   ========================================================= */

.why12-shell{
  padding:16px;
  border:1px solid var(--tl-line,#596163);
  border-radius:14px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,0)),
    var(--tl-panel-2,#383e40);
  color:var(--tl-cream,#eadfc8);
}

.closure-block,
.approximation-block,
.result-block,
.per-fifth,
.theory-description{
  border:1px solid var(--tl-line,#596163);
  border-radius:10px;
  background:var(--tl-panel,#303638);
}

.closure-block,
.approximation-block{
  padding:14px;
}

.block-head{
  display:grid;
  gap:3px;
}

.block-head span{
  color:var(--tl-muted,#aea491);
  font-size:.68rem;
}

.block-head strong{
  color:var(--tl-cream,#eadfc8);
  font-size:1rem;
  font-weight:850;
}

/* ---------- derivation ---------- */

.closure-flow{
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr;
  gap:10px;
  align-items:center;
  margin-top:12px;
}

.math-card{
  display:grid;
  gap:5px;
  padding:11px 12px;
  border:1px solid rgba(231,217,186,.09);
  border-radius:8px;
  background:rgba(255,255,255,.012);
  text-align:center;
}

.math-card span{
  color:var(--tl-muted,#aea491);
  font-size:.68rem;
}

.math-card strong{
  color:var(--tl-cream,#eadfc8);
  font-size:.92rem;
}

.math-card.accent{
  border-color:rgba(191,128,96,.38);
}

.closure-flow>b{
  color:var(--tl-copper-2,#bf8060);
  font-size:1rem;
}

/* ---------- approximations ---------- */

.approximation-block{
  margin-top:10px;
}

.target-value{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:16px;
  align-items:center;
  margin-top:11px;
  padding:10px 12px;
  border:1px solid rgba(231,217,186,.09);
  border-radius:8px;
  background:rgba(255,255,255,.012);
}

.target-value span{
  color:var(--tl-muted,#aea491);
  font-size:.69rem;
}

.target-value strong{
  text-align:center;
}

.approx-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
  margin-top:9px;
}

.approx-grid article{
  display:grid;
  gap:5px;
  padding:11px 12px;
  border:1px solid rgba(231,217,186,.09);
  border-radius:8px;
  background:rgba(255,255,255,.012);
  text-align:center;
}

.approx-grid article.best{
  border-left:3px solid var(--tl-copper-2,#bf8060);
  border-color:rgba(191,128,96,.38);
}

.approx-grid article>span{
  color:var(--tl-cream,#eadfc8);
  font-size:1rem;
  font-weight:850;
}

.approx-grid article>strong{
  color:var(--tl-cream,#eadfc8);
  font-size:.90rem;
}

.approx-grid article>small{
  color:var(--tl-muted,#aea491);
  font-size:.69rem;
}

.approx-grid article>em{
  color:var(--tl-copper-2,#bf8060);
  font-size:.72rem;
  font-style:normal;
  font-weight:800;
}

/* ---------- result ---------- */

.result-block{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:12px;
  align-items:center;
  margin-top:10px;
  padding:12px 14px;
}

.result-block>div{
  display:grid;
  gap:5px;
  text-align:center;
}

.result-block span{
  color:var(--tl-muted,#aea491);
  font-size:.69rem;
}

.result-block>b{
  color:var(--tl-copper-2,#bf8060);
  font-size:1.1rem;
}

.per-fifth{
  display:grid;
  grid-template-columns:auto 1fr 1.25fr;
  gap:16px;
  align-items:center;
  margin-top:10px;
  padding:11px 13px;
}

.per-fifth span,
.per-fifth small{
  color:var(--tl-muted,#aea491);
  font-size:.70rem;
  line-height:1.45;
}

.per-fifth strong{
  text-align:center;
}

/* ---------- description ---------- */

.theory-description{
  margin-top:10px;
  overflow:hidden;
}

.theory-description summary{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 13px;
  list-style:none;
  cursor:pointer;
}

.theory-description summary::-webkit-details-marker{
  display:none;
}

.theory-description summary>span{
  color:var(--tl-cream,#eadfc8);
  font-size:.88rem;
  font-weight:850;
}

.theory-description summary>small{
  margin-left:auto;
  color:var(--tl-muted,#aea491);
  font-size:.70rem;
}

.theory-description summary::after{
  content:"+";
  color:var(--tl-copper-2,#bf8060);
  font-weight:900;
}

.theory-description[open] summary::after{
  content:"−";
}

.description-body{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  padding:11px 13px 14px;
  border-top:1px solid rgba(255,255,255,.05);
}

.description-body p{
  margin:0;
  color:var(--tl-cream-2,#d5c8af);
  font-size:.88rem;
  line-height:1.58;
}

mjx-container{
  margin:.25em 0!important;
}

@media(max-width:900px){
  .closure-flow,
  .result-block,
  .per-fifth{
    grid-template-columns:1fr;
  }

  .closure-flow>b,
  .result-block>b{
    transform:rotate(90deg);
    text-align:center;
  }

  .approx-grid,
  .description-body{
    grid-template-columns:1fr;
  }

  .target-value{
    grid-template-columns:1fr;
  }
}
