/* EcoKure Control Tower demo: mission-control console on the space panel. */
.eg-page #main-content .eg-tower { padding: 56px 0 8px; }
.eg-page #main-content .eg-tower-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.eg-page #main-content .eg-tower-lede { color: var(--eg-ink-2); max-width: 620px; margin: 0; }

.eg-page #main-content .eg-tower-console { border-radius: 24px; overflow: hidden; border: 1px solid #17324a; box-shadow: 0 34px 80px -40px rgba(5, 20, 32, .7);
  background: radial-gradient(70% 60% at 50% 0%, rgba(40, 110, 150, .22), transparent 70%), radial-gradient(50% 50% at 15% 100%, rgba(52, 200, 150, .14), transparent 70%), linear-gradient(180deg, #050c18, #08182a 55%, #0b2234); color: #c3d3dd; }
.eg-page #main-content .eg-tower-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #17324a; background: rgba(255, 255, 255, .02); }
.eg-page #main-content .eg-tower-title { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: #6fd3c4; }
.eg-page #main-content .eg-tower-live { width: 8px; height: 8px; border-radius: 50%; background: #6fd3c4; box-shadow: 0 0 0 3px rgba(111, 211, 196, .18); animation: eg-tower-blink 2.4s ease-in-out infinite; }
@keyframes eg-tower-blink { 50% { opacity: .35; } }
.eg-page #main-content .eg-tower-btn { appearance: none; font: 600 .8rem Inter, sans-serif; color: #eef5f8; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.eg-page #main-content .eg-tower-btn:hover { background: rgba(255, 255, 255, .12); }
.eg-page #main-content .eg-tower-btn:focus-visible { outline: 2px solid #6fd3c4; outline-offset: 2px; }

/* The map: eight parts, connected left to right. */
.eg-page #main-content .eg-tower-map { list-style: none; margin: 0; padding: 30px 22px 26px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; align-items: center; }
.eg-page #main-content .eg-tower-map > li { position: relative; }
.eg-page #main-content .eg-tower-map > li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -14px; width: 14px; height: 2px; background: #1f4256; transition: background .25s ease, box-shadow .25s ease; }
.eg-page #main-content .eg-tower-map > li.is-hot:not(:last-child)::after { background: #6fd3c4; box-shadow: 0 0 8px rgba(111, 211, 196, .8); }
.eg-page #main-content .eg-tower-branch { display: grid; gap: 10px; }
.eg-page #main-content .eg-node { appearance: none; width: 100%; text-align: left; display: grid; gap: 3px; padding: 12px 12px 11px; border-radius: 14px; cursor: pointer; color: #dbe8f0;
  background: rgba(255, 255, 255, .04); border: 1px solid #1f4256; transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease, transform .2s ease; }
.eg-page #main-content .eg-node:hover { border-color: #3f7a8c; transform: translateY(-1px); }
.eg-page #main-content .eg-node:focus-visible { outline: 2px solid #6fd3c4; outline-offset: 2px; }
.eg-page #main-content .eg-node[aria-pressed="true"] { border-color: #6fd3c4; background: rgba(111, 211, 196, .08); }
.eg-page #main-content .eg-node-k { font: 600 .66rem ui-monospace, Consolas, monospace; color: #6f8ea0; letter-spacing: .08em; }
.eg-page #main-content .eg-node strong { font: 600 .92rem 'Space Grotesk', Inter, sans-serif; color: #f2f7fa; }
.eg-page #main-content .eg-node small { font: 400 .72rem/1.35 Inter, sans-serif; color: #8fa9b8; }
.eg-page #main-content .eg-node-edge { border-style: dashed; background: rgba(255, 255, 255, .02); }
.eg-page #main-content .eg-node.is-on-path { border-color: #2b5b6f; }
.eg-page #main-content .eg-node.is-hot { border-color: #6fd3c4; background: rgba(111, 211, 196, .1); box-shadow: 0 0 0 3px rgba(111, 211, 196, .12), 0 0 22px rgba(111, 211, 196, .18); }
.eg-page #main-content .eg-node-decision.v-allow { border-color: #3ccf8e; background: rgba(60, 207, 142, .14); box-shadow: 0 0 22px rgba(60, 207, 142, .3); }
.eg-page #main-content .eg-node-decision.v-deny { border-color: #ff8a7a; background: rgba(255, 120, 100, .14); box-shadow: 0 0 22px rgba(255, 120, 100, .3); }
.eg-page #main-content .eg-node-decision.v-escalate { border-color: #fec84b; background: rgba(254, 200, 75, .14); box-shadow: 0 0 22px rgba(254, 200, 75, .28); }
.eg-page #main-content .eg-node-decision.v-abstain { border-color: #98a2b3; background: rgba(152, 162, 179, .16); }
.eg-page #main-content .eg-node-decision small { text-transform: none; }

/* Detail panel and stream counts. */
.eg-page #main-content .eg-tower-lower { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; padding: 0 22px 20px; }
.eg-page #main-content .eg-tower-detail { border: 1px solid #1f4256; border-radius: 16px; padding: 18px 20px; background: rgba(255, 255, 255, .03); min-height: 190px; }
.eg-page #main-content .eg-tower-detail-k { font: 600 .7rem ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: #6fd3c4; margin: 0 0 6px; }
.eg-page #main-content .eg .eg-tower-detail h3 { color: #f2f7fa; margin: 0 0 10px; }
.eg-page #main-content .eg-tower-detail p { color: #c3d3dd; margin: 0; }
.eg-page #main-content .eg-tower-detail dl { display: grid; gap: 10px; margin: 0 0 12px; }
.eg-page #main-content .eg-tower-detail dt { font: 600 .72rem Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8fa9b8; }
.eg-page #main-content .eg-tower-detail dd { margin: 2px 0 0; color: #e3edf2; font-size: .92rem; line-height: 1.55; }
.eg-page #main-content .eg .eg-tower-detail a.ek-text-link { color: #6fd3c4; }
.eg-page #main-content .eg-tower-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.eg-page #main-content .eg-tower-stats > div { border: 1px solid #1f4256; border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .03); }
.eg-page #main-content .eg-tower-stats > div:first-child { grid-column: 1 / -1; }
.eg-page #main-content .eg-tower-stats span { font: 500 .72rem Inter, sans-serif; color: #8fa9b8; }
.eg-page #main-content .eg-tower-stats strong { display: block; font: 600 1.4rem 'Space Grotesk', Inter, sans-serif; color: #f2f7fa; font-variant-numeric: tabular-nums; }
.eg-page #main-content .eg-tower-stats .is-allow strong { color: #3ccf8e; }
.eg-page #main-content .eg-tower-stats .is-deny strong { color: #ff8a7a; }
.eg-page #main-content .eg-tower-stats .is-escalate strong { color: #fec84b; }
.eg-page #main-content .eg-tower-stats .is-abstain strong { color: #c0c8d4; }
.eg-page #main-content .eg-tower-stats p { grid-column: 1 / -1; margin: 2px 0 0; font-size: .74rem; color: #6f8ea0; }

/* Decision stream. */
.eg-page #main-content .eg-tower-stream { border-top: 1px solid #17324a; padding: 6px 22px 18px; overflow-x: auto; }
.eg-page #main-content .eg-tower-stream table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 640px; }
.eg-page #main-content .eg-tower-stream th { text-align: left; font: 600 .68rem Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6f8ea0; padding: 10px 8px; border-bottom: 1px solid #17324a; }
.eg-page #main-content .eg-tower-stream td { padding: 9px 8px; border-bottom: 1px solid rgba(31, 66, 86, .6); color: #c3d3dd; }
.eg-page #main-content .eg-tower-stream td code { background: none; color: #8fa9b8; }
.eg-page #main-content .eg-tower-stream tr.is-new { animation: eg-tower-row .5s ease; }
@keyframes eg-tower-row { from { opacity: 0; transform: translateY(-6px); background: rgba(111, 211, 196, .12); } }

@media (max-width: 1020px) {
  .eg-page #main-content .eg-tower-map { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .eg-page #main-content .eg-tower-map > li:nth-child(4)::after { display: none; }
  .eg-page #main-content .eg-tower-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .eg-page #main-content .eg-tower-map { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 16px; }
  .eg-page #main-content .eg-tower-map > li:nth-child(2n)::after { display: none; }
  .eg-page #main-content .eg-tower-lower, .eg-page #main-content .eg-tower-stream { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .eg-page #main-content .eg-tower-live, .eg-page #main-content .eg-tower-stream tr.is-new { animation: none; }
  .eg-page #main-content .eg-node, .eg-page #main-content .eg-tower-map > li::after { transition: none; }
}

.eg-page #main-content .eg-preview-note { margin: 28px 0 0; display: inline-block; font: 600 .74rem Inter, sans-serif; letter-spacing: .06em; color: #5925dc; background: #f4f1fe; border: 1px solid #d6cbfb; border-radius: 999px; padding: 4px 12px; }

/* On the homepage it follows the same section rhythm as its neighbours. */
.eg-home #main-content .eg-tower { border-top: 1px solid var(--eg-line); margin-top: 24px; padding-top: 52px; }
