/* TAOS EDITORIAL R13 — the inner pages stop being chalkboards.
   Merge: the editorial composition (a hero with a visual panel, readable 17 px copy, two-column ambitions)
   + the R12 one header + the alive layer. Same words. The whole Titan frame is used: nothing hugs the left.
   Loads after taos-pages.css and taos-alive.css. */
:root{--ed-ink:#F1EFE8;--ed-copy:#d9d7cf;--ed-mute:#a3a198;--ed-line:rgba(160,200,200,.14);--ed-glass:rgba(160,200,200,.04)}
main{padding-block:clamp(36px,6vh,80px) clamp(80px,12vh,140px)!important}
main:has(.ed-hero){font-size:17px;line-height:1.75}
main:has(.ed-hero) p{max-width:none;color:var(--ed-copy)}

/* hero: copy on the left, a picture of the idea on the right */
.ed-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);gap:clamp(28px,5vw,110px);align-items:center;min-height:min(72vh,820px);padding-bottom:clamp(30px,6vh,70px)}
.ed-copy h1{max-width:none!important;font-size:clamp(36px,4.6vw,92px)!important;line-height:1.06!important;letter-spacing:.03em!important;margin:0 0 30px!important}
.ed-copy h1 em{font-style:normal;color:#ff6a1f}
.ed-copy .lede{font-size:clamp(18px,1.35vw,23px)!important;line-height:1.65!important;color:#c9c7bf!important;max-width:46ch!important}
.ed-copy .banner{font-size:14px!important;max-width:60ch!important;margin-top:30px!important}
.ed-panel{position:relative;z-index:1;border:1px solid rgba(255,106,31,.32);border-radius:16px;padding:clamp(24px,2.4vw,40px);
  background:linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.01) 60%),rgba(2,6,12,.72);box-shadow:0 40px 120px -60px rgba(255,106,31,.55),inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.ed-pk{font-size:11px!important;letter-spacing:.32em;text-transform:uppercase;color:#ff6a1f!important;margin:0 0 22px!important}
.ed-note{font-size:13px!important;color:var(--ed-mute)!important;margin:20px 0 0!important}
#page-soul{right:4%!important;top:8vh!important;opacity:.38!important}

/* Ambition: the index of eight */
.ed-index{list-style:none;margin:0;padding:0;counter-reset:a}
.ed-index li{counter-increment:a;display:grid;grid-template-columns:34px 130px minmax(0,1fr);align-items:baseline;gap:12px;padding:11px 0;border-top:1px solid var(--ed-line)}
.ed-index li::before{content:"0" counter(a);font-family:"Deltha","Exo 2",sans-serif;color:#ff6a1f;font-size:14px}
.ed-index i{display:none}.ed-index b{font-weight:600;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:#a0c8c8}.ed-index span{color:var(--ed-ink);font-size:15px}

/* Research: bars, lower is better */
.ed-m{margin-bottom:24px}.ed-m>span{display:block;font-size:13px;letter-spacing:.08em;color:var(--ed-mute);margin-bottom:10px}
.ed-bar{position:relative;height:34px;margin:6px 0;border-radius:6px;background:rgba(160,200,200,.07);overflow:hidden}
.ed-bar b{position:absolute;inset:0 auto 0 0;width:var(--v);min-width:4px;background:linear-gradient(90deg,#ff6a1f,#ffc21f);border-radius:6px;transform-origin:left;animation:edGrow 1.6s cubic-bezier(.2,.7,.2,1) both}
.ed-bar.dim b{background:linear-gradient(90deg,#3c8d93,#a0c8c8);opacity:.7}
.ed-bar em{position:relative;z-index:1;font-style:normal;font-size:13px;letter-spacing:.1em;line-height:34px;padding-left:12px;color:#fff;text-shadow:0 1px 3px #000}
.ed-m small{display:block;margin-top:8px;font-size:12px;color:var(--ed-mute)}
@keyframes edGrow{from{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.ed-bar b{animation:none}}

/* Engineering + System: lamps */
.ed-status{list-style:none;margin:0;padding:0}
.ed-status li{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px 0;border-top:1px solid var(--ed-line)}
.ed-status i{width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 10px currentColor}
.ed-status b{color:var(--ed-ink);font-weight:500;font-size:15px}.ed-status span{font-size:11px;letter-spacing:.18em;text-transform:uppercase;text-align:right}
.ed-status .s-on{color:#7ccf8a}.ed-status .s-build{color:#ff6a1f}.ed-status .s-dev{color:#7fb0ff}
@media (prefers-reduced-motion:no-preference){.ed-status .s-build i{animation:taosSys 1.4s steps(1,end) infinite}}
.ed-status b,.ed-status span{color:inherit}.ed-status li b{color:var(--ed-ink)}

/* Licensing */
.ed-lease{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:16px 0;border-top:1px solid var(--ed-line)}
.ed-lease b{font-family:"Deltha","Exo 2",sans-serif;font-weight:400;font-size:20px;letter-spacing:.18em;color:var(--ed-ink)}.ed-lease span{font-size:14px;color:var(--ed-mute);text-align:right}
.ed-lease.pick b{color:#ff6a1f}

/* Contact: Atlas in the hero */
.ed-atlas{padding:18px}.ed-atlas .ed-pk{margin:6px 8px 14px!important}.ed-atlas .ac-inline{height:min(520px,62vh)!important;border:0!important;background:transparent!important}

/* chapters: the heading holds the left, the content fills the right — no empty half-page */
.ed-chap{display:grid;grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr);gap:clamp(24px,4vw,90px);padding:clamp(34px,5vh,64px) 0;border-top:1px solid var(--ed-line)}
.ed-ch h2{margin:0 0 16px!important;font-size:clamp(20px,1.7vw,30px)!important;line-height:1.3!important;letter-spacing:.1em!important}
.ed-ch{position:sticky;top:24px;align-self:start}
.ed-ch p{font-size:16px;color:var(--ed-mute)}
.ed-cb>p{font-size:clamp(17px,1.2vw,20px);line-height:1.75;color:var(--ed-copy);margin:0 0 16px}
.ed-cb>p:last-child{margin-bottom:0}
.ed-chap.wide .ed-cb .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important;margin-top:0!important}
.ed-cb .card h3{font-size:17px!important}.ed-cb .card p{font-size:15.5px!important;line-height:1.7!important;color:#c3c1b9!important}
.ed-cb .tablewrap{margin:0}.ed-cb td,.ed-cb th{font-size:15px}.ed-cb td.n{font-size:14px}
.ed-cb .lic-grid,.ed-cb .steps{margin-top:0!important}
.ed-cb .steps p{font-size:15.5px}

/* the footer and header already sit on the frame; the hero and chapters fill it */
.ed-hero>*,.ed-chap>*{min-width:0}
@media (max-width:1000px){
  .ed-hero{grid-template-columns:1fr;min-height:0}
  .ed-chap{grid-template-columns:1fr;gap:14px}.ed-ch{position:static}
  .ed-index li{grid-template-columns:30px minmax(0,1fr)}.ed-index span{grid-column:2}
  #page-soul{opacity:.22!important}}

.ed-copy h1.long{font-size:clamp(32px,3.5vw,72px)!important}
.ed-cb>p+.grid,.ed-cb>p+.lic-grid,.ed-cb>p+.steps,.ed-cb>p+.tablewrap{margin-top:26px!important}

.ed-copy h1 {overflow-wrap:anywhere}
.ed-panel, .ed-cb {overflow-wrap:anywhere}
.ed-chap .grid {margin-block-start:24px}
.ed-panel a {color:#ff914e;text-decoration:underline;text-underline-offset:.2em}
@media(max-width:620px) {
  .ed-copy h1 {font-size:clamp(26px,8vw,36px)!important}
  .ed-panel {padding:16px}
  .ed-status li {grid-template-columns:12px minmax(0,1fr)}
  .ed-status li span {grid-column:2;text-align:left}
  .ed-lease {flex-wrap:wrap}
  .ed-lease span {text-align:left}
}
