/* OldCamp hub: the executive view, the decisions page and the knowledge base in the dashboards' look.
   Loaded after styles.css and hub.css on those three pages only. */

/* ---------- shared ---------- */
.phead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: end; padding-top: 40px; padding-bottom: 26px; }
.phead h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1; font-weight: 800; font-stretch: 70%; margin: 0; text-transform: uppercase; text-wrap: balance; letter-spacing: 0; }
.phead h1 em { font-style: normal; color: var(--brand-bright); }
.phead .facts-line { max-width: 60ch; font-size: 12.5px; line-height: 1.6; }
.phead .now .date { font-size: clamp(24px, 3vw, 36px); }
.phead .now .say { min-height: 0; color: var(--text-secondary); font-size: 13.5px; }
.kick .info { vertical-align: 0; }
.psec { padding-top: 56px; }
.psec h2.title { margin: 0 0 18px; }
.panel { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 8px; padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; }
.phd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 12px; }
.phd h2, .panel h2 { font-size: 16px; font-weight: 700; font-stretch: 90%; margin: 0; display: flex; align-items: center; letter-spacing: 0; }
.plink { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.plink:hover { color: var(--accent); }
.seg { display: inline-flex; gap: 0; border: 1px solid var(--hairline); border-radius: 4px; overflow: hidden; }
.seg button { background: transparent; border: 0; color: var(--text-muted); font: 500 11.5px var(--mono); padding: 5px 10px; cursor: pointer; letter-spacing: .02em; }
.seg button + button { border-left: 1px solid var(--hairline); }
.seg button:hover { color: var(--text-primary); }
.seg button[aria-pressed="true"] { color: var(--text-primary); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent, var(--brand-bright)); }
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-bottom: 14px; }
.fbar .fl { font: 500 11px var(--mono); color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.fbar .fl + .fl, .fbar .gap { margin-left: 14px; }
.fbtn { background: transparent; border: 1px solid var(--hairline); color: var(--text-secondary); border-radius: 4px; font: 500 11.5px var(--mono); padding: 4px 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, border-color .2s, background-color .2s; }
.fbtn::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent, var(--text-muted)); display: none; }
.fbtn[class*="a-"]::before { display: block; }
.fbtn:hover { color: var(--text-primary); border-color: var(--text-muted); }
.fbtn[aria-pressed="true"] { color: var(--text-primary); border-color: var(--accent, var(--text-secondary)); background: var(--surface-1); }
.fbtn small { color: var(--text-muted); font-size: 11px; }
.count { font: 11.5px var(--mono); color: var(--text-muted); margin-left: auto; }
.enter { animation: rin .4s ease-out backwards; }
@keyframes rin { from { opacity: 0; transform: translateY(6px); } }
.st-good { --st: var(--st-good); } .st-warn { --st: var(--st-warn); } .st-bad { --st: var(--st-bad); }

/* ---------- executive view ---------- */
.tally { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font: 12px var(--mono); color: var(--text-secondary); }
.tally span, .xst { display: inline-flex; align-items: center; gap: 6px; }
.tally i, .xst i { font-style: normal; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--mono); color: #111; background: var(--st); }
.xkpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.xkpi { padding: 16px 16px 14px; min-width: 0; display: flex; flex-direction: column; position: relative; transition: background-color .25s; }
.xkpi:first-child { padding-left: 0; }
.xkpi + .xkpi { border-left: 1px solid var(--hairline); }
.xkpi::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); }
.xkpi + .xkpi::before { left: -1px; }
.xn { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; min-height: 20px; }
.xst { margin-top: 6px; font: 500 11px var(--mono); color: var(--text-primary); letter-spacing: .02em; }
.xv { display: block; font-size: 34px; font-weight: 700; font-stretch: 78%; line-height: 1.05; margin-top: 10px; white-space: nowrap; }
.xt { font: 11.5px var(--mono); color: var(--text-muted); margin-top: 2px; }
.xsp { display: block; width: 100%; height: 54px; margin-top: 14px; cursor: crosshair; touch-action: pan-y; overflow: visible; }
.xsp .xcur { fill: color-mix(in srgb, var(--accent) 7%, transparent); }
.xsp .xl0 { fill: none; stroke: var(--text-muted); stroke-width: 1.4; opacity: .55; vector-effect: non-scaling-stroke; }
.xsp .xl1 { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.xsp .xl2 { fill: none; stroke: var(--text-secondary); stroke-width: 1.2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: .8; }
.xsp .xtg { stroke: var(--text-secondary); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.xsp .xcx { stroke: var(--text-primary); stroke-width: 1; opacity: .35; vector-effect: non-scaling-stroke; }
.xsp .xdot { fill: var(--text-primary); stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.xr { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; font: 11px var(--mono); color: var(--text-muted); min-height: 34px; align-content: flex-start; }
.xr .xm { font-size: 11px; letter-spacing: .04em; }
.xr .xm.on { color: var(--accent); }
.xr .xm + .xm { margin-left: auto; }
.xr .xrv { flex-basis: 100%; color: var(--text-secondary); }
.xkpi.hov .xrv { color: var(--text-primary); }
.xsrc { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.xsrc span { display: block; font: 11px var(--mono); color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.xsrc:hover { color: var(--accent); }

.xgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; margin-top: 28px; }
#ex-bridge svg { display: block; width: 100%; height: auto; }
.bgrid { stroke: var(--hairline); stroke-width: 1; }
.btick { fill: var(--text-muted); font: 11px var(--mono); }
.blab { fill: var(--text-secondary); font: 13px var(--display); }
.bval { fill: var(--text-primary); font: 500 12.5px var(--mono); }
.bbreak { stroke: var(--surface-1); stroke-width: 4; fill: none; }
.blink { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 2 2; opacity: .7; }

.cover { margin-bottom: 14px; }
.cv-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.cv-h > b { font-size: 30px; font-weight: 700; font-stretch: 78%; line-height: 1; color: var(--brand-bright); }
.cv-h span { font-size: 13px; color: var(--text-muted); }
.cv-h span b { color: var(--text-secondary); font-weight: 600; }
.cv-bar { display: flex; height: 14px; gap: 2px; }
.cv-bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); min-width: 2px; cursor: help; transition: opacity .25s, transform .25s; transform-origin: bottom; }
.cv-bar .cv-muted { background: var(--text-muted); }
.cv-bar .cv-open { background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, transparent 5px 9px); border: 1px solid var(--hairline); }
.cover.focus .cv-bar i:not(.lit) { opacity: .3; }
.cv-bar i.lit { transform: scaleY(1.35); }
.xdecs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.xdecs li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--hairline); cursor: help; transition: background-color .2s; }
.xdecs li:hover, .xdecs li.lit, .xdecs li:focus-visible { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.xdecs .did { font: 500 11.5px var(--mono); color: var(--accent); }
.xdecs .dt b { font-weight: 600; font-size: 14px; margin-right: 8px; }
.xdecs .dt em { font: normal 11px var(--mono); color: var(--text-muted); border: 1px solid var(--hairline); border-radius: 3px; padding: 0 5px; white-space: nowrap; }
.xdecs .dv { font-size: 21px; font-weight: 700; font-stretch: 80%; white-space: nowrap; text-align: right; line-height: 1.05; }
.xdecs .dv small { display: block; font: 11px var(--mono); color: var(--text-muted); font-weight: 400; }

.asks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.asks li { padding: 18px 20px 4px 0; min-width: 0; }
.asks li + li { padding-left: 20px; border-left: 1px solid var(--hairline); }
.asks .ano { display: block; font: 500 11.5px var(--mono); color: var(--brand-bright); letter-spacing: .06em; }
.asks .av { display: block; font-size: 32px; font-weight: 700; font-stretch: 76%; line-height: 1.05; margin-top: 10px; color: var(--accent); white-space: nowrap; }
.asks .au { display: block; font: 11px var(--mono); color: var(--text-muted); margin-top: 3px; }
.asks h3 { font-size: 15.5px; font-weight: 700; font-stretch: 92%; margin: 14px 0 4px; line-height: 1.3; }
.asks p { margin: 0; font-size: 13.5px; color: var(--text-secondary); }

.matrix { display: grid; grid-template-columns: 200px repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.mx-h { font: 500 11px var(--mono); color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; padding: 0 2px 4px; display: flex; align-items: center; gap: 7px; }
.mx-h i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.mx-r { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; font-stretch: 88%; padding-right: 8px; border-top: 1px solid var(--hairline); }
.mx-r svg { width: 22px; height: 22px; flex: none; color: var(--brand-bright); }
.mx-c { text-align: left; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 6px; padding: 12px 14px; color: var(--text-secondary); min-width: 0; cursor: help; transition: border-color .2s, background-color .2s, transform .2s; font: inherit; }
.mx-c:hover, .mx-c:focus-visible { border-color: var(--accent); background: var(--surface-2); }
.mx-c b { display: block; font-size: 24px; font-weight: 700; font-stretch: 78%; line-height: 1.1; color: var(--accent); }
.mx-c span { display: block; font-size: 12.5px; line-height: 1.4; margin-top: 4px; }
.mx-c .mx-p { display: none; }
.mx-c.none { background: transparent; border-style: dashed; border-color: color-mix(in srgb, var(--hairline) 70%, transparent); cursor: default; }

@media (max-width: 1100px) {
  .xkpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xkpi:nth-child(4) { padding-left: 0; border-left: 0; }
  .xkpi:nth-child(4)::before { left: 0; }
  .xkpi:nth-child(n+4) { border-top: 1px solid var(--hairline); }
  .xgrid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .phead { grid-template-columns: 1fr; gap: 18px; }
  .phead .now { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 14px; }
}
@media (max-width: 760px) {
  .xkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xkpi:nth-child(n) { padding-left: 16px; border-left: 1px solid var(--hairline); border-top: 0; }
  .xkpi:nth-child(odd) { padding-left: 0; border-left: 0; }
  .xkpi:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .xkpi::before, .xkpi + .xkpi::before { left: 0; }
  .xv { font-size: 28px; }
  .asks { grid-template-columns: 1fr; }
  .asks li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .matrix { grid-template-columns: 1fr 1fr; }
  .matrix > .mx-h { display: none; }
  .mx-r { grid-column: 1 / -1; padding-top: 14px; }
  .mx-c.none { display: none; }
  .mx-c .mx-p { display: block; font: 500 11px var(--mono); color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }
}
@media (max-width: 460px) {
  .xkpis { grid-template-columns: 1fr; }
  .xkpi:nth-child(n) { padding-left: 0; border-left: 0; }
  .xkpi:nth-child(n+2) { border-top: 1px solid var(--hairline); }
  .xdecs li { grid-template-columns: 40px minmax(0, 1fr); }
  .xdecs .dv { grid-column: 2; text-align: left; }
  .matrix { grid-template-columns: 1fr; }
}
.xkpi:not(.hov) .xcx, .xkpi:not(.hov) .xdot { opacity: 0; }

/* ---------- decisions page ---------- */
.phead .facts-line b { color: var(--text-primary); }
.pkpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.pkpis > div { padding: 14px 16px 14px 0; min-width: 0; }
.pkpis > div + div { padding-left: 16px; border-left: 1px solid var(--hairline); }
.pkpis .l { display: block; font-size: 12.5px; color: var(--text-muted); }
.pkpis b { display: block; font-size: 30px; font-weight: 700; font-stretch: 78%; line-height: 1.1; margin-top: 2px; }
.pkpis > div:last-child b { color: var(--brand-bright); }
#ex-src { text-decoration: none; }
#ex-src:hover { color: var(--accent); }

.stepper { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 22px; position: relative; }
.stepper::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--hairline); }
.stepper::after { content: ""; position: absolute; left: 0; top: 11px; height: 2px; width: 100%; background: var(--accent); transform-origin: left; animation: draw .9s cubic-bezier(.2, .7, .2, 1); transition: background-color .4s; }
@keyframes draw { from { transform: scaleX(0); } }
.pstep { position: relative; min-width: 0; padding-top: 34px; }
.pstep .sn { position: absolute; top: 0; left: 0; z-index: 1; background: var(--bg); border: 2px solid var(--accent); color: var(--text-primary); border-radius: 12px; font: 500 11px/20px var(--mono); padding: 0 8px; transition: border-color .4s; }
.pstep h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; font-stretch: 90%; display: flex; align-items: center; }
.pstep .ex { margin: 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.pstep .ex.fx { animation: rin .45s ease-out backwards; }

.pgrid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 18px; margin-top: 30px; }
.rlist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; }
.rlist li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text-secondary); }
.rlist li::before { content: "✓"; position: absolute; left: 4px; top: 8px; color: var(--fc); font: 500 13px var(--mono); }
.rhythm { margin-top: 14px; display: grid; gap: 4px; }
.rl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 4px; border-radius: 4px; cursor: help; transition: background-color .2s; }
.rl:hover, .rl:focus-visible { background: var(--surface-2); }
.rl .rt { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rl .rt::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.rl .rk { position: relative; height: 18px; border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); background: linear-gradient(var(--hairline), var(--hairline)) center / 100% 1px no-repeat; }
.rl .rk i { position: absolute; top: 3px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 1px; background: var(--accent); }
.r-weekly .rk i { width: 1.5px; margin-left: -.75px; opacity: .8; }
.r-quarterly .rk i, .r-yearly .rk i { width: 10px; margin-left: -5px; top: 2px; height: 14px; }
.rl.rm { cursor: default; padding-top: 0; }
.rl.rm:hover { background: transparent; }
.rl.rm .rt::before { display: none; }
.rl.rm .rk { display: grid; grid-template-columns: repeat(12, 1fr); height: auto; border: 0; background: none; }
.rl.rm .rk span { font: 11px var(--mono); color: var(--text-muted); text-align: center; }

.board { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 14px; align-items: start; }
.bcol { min-width: 0; }
.bh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid var(--hairline); }
.bc-done .bh { border-bottom-color: var(--fc); }
.bc-next .bh { border-bottom-color: var(--text-secondary); }
.bh b { font-size: 15px; font-weight: 700; font-stretch: 90%; text-transform: uppercase; letter-spacing: .02em; }
.bh .bn { font: 500 11.5px var(--mono); color: var(--text-muted); }
.bh small { flex-basis: 100%; font: 11px var(--mono); color: var(--text-muted); }
.bc-done { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bc-done .bh, .bc-done .rempty { grid-column: 1 / -1; margin-bottom: 2px; }
.bcard { background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 6px; padding: 11px 12px; margin-bottom: 8px; box-shadow: inset 2px 0 0 var(--accent); transition: border-color .2s; }
.bc-done .bcard { margin-bottom: 0; }
.bcard:hover { border-color: var(--accent); }
.board .tag, .blist .tag { border-radius: 3px; font: 500 11px var(--mono); padding: 0 5px; letter-spacing: .03em; }
.bcard h3 { margin: 7px 0 4px; font-size: 14.5px; font-weight: 700; font-stretch: 92%; line-height: 1.25; }
.bcard p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.bm { margin-top: 8px; font: 11px/1.45 var(--mono); color: var(--text-secondary); }
.bm span { display: block; color: var(--text-muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.bc-now .rempty { border: 1px dashed var(--hairline); border-radius: 6px; padding: 12px; margin: 0; font-size: 12.5px; }

#f-epic, #f-status { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.blist { border-top: 1px solid var(--hairline); }
.blist .story { background: transparent; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; }
.blist .story[open] { background: var(--surface-1); }
.blist .story summary { grid-template-columns: 54px minmax(0, 1fr) auto auto 86px; gap: 14px; padding: 11px 6px; transition: background-color .2s; }
.blist .story summary:hover { background: var(--surface-1); }
.blist .story .sid { font: 500 11.5px var(--mono); }
.blist .story .stext { font-size: 14px; }
.blist .st { border-radius: 3px; font: 500 11px var(--mono); padding: 1px 6px; }
.blist .ws { width: 86px; height: 20px; border-radius: 3px; }
.blist .ws b { font: 500 11.5px var(--mono); }
.blist .sbody { padding-left: 74px; }
.blist .sbody h4, .dbody h4 { font: 500 11px var(--mono); letter-spacing: .07em; }
.more { margin-top: 12px; background: transparent; border: 1px solid var(--hairline); color: var(--text-secondary); border-radius: 4px; font: 500 12px var(--mono); padding: 6px 12px; cursor: pointer; }
.more:hover { color: var(--text-primary); border-color: var(--text-muted); }
.blist .empty, .dlog .empty { padding: 14px 6px; margin: 0; }
details[open] > .sbody, details[open] > .dbody { animation: rin .35s ease-out; }

.dstat { display: flex; gap: 8px; align-items: stretch; margin-bottom: 18px; }
.dstat button { text-align: left; border: 1px solid var(--hairline); background: transparent; color: var(--text-secondary); border-radius: 4px; padding: 8px 10px; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .02em; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: border-color .2s, background-color .2s, color .2s; }
.dstat button b { display: block; font: 700 22px/1.1 var(--display); font-stretch: 80%; color: var(--text-primary); }
.dstat .ds-all { flex: none; }
.dsbar { flex: 1; display: flex; gap: 3px; min-width: 0; }
.dsbar button { flex-basis: 0; border-radius: 3px; border: 0; border-top: 3px solid currentColor; background: var(--surface-1); }
.dsbar button.zero { opacity: .5; }
.dstat button:hover { background: var(--surface-2); color: var(--text-primary); }
.dstat button[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px currentColor; }
.dstat .ds-all[aria-pressed="true"] { color: var(--text-primary); border-color: var(--text-secondary); box-shadow: none; }
.dlog { list-style: none; margin: 0; padding: 0; position: relative; }
.dlog::before { content: ""; position: absolute; left: 76px; top: 0; bottom: 0; width: 1px; background: var(--hairline); }
.dlog > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 25px; position: relative; }
.dlog > li::before { content: ""; position: absolute; left: 72px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.dlog .dd { font: 11px var(--mono); color: var(--text-muted); padding-top: 16px; text-align: right; white-space: nowrap; }
.dlog .dec { background: transparent; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; padding: 0; }
.dlog .dec[open] { background: var(--surface-1); }
.dlog .dec summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 128px; gap: 14px; align-items: center; padding: 11px 8px; transition: background-color .2s; }
.dlog .dec summary::-webkit-details-marker { display: none; }
.dlog .dec summary:hover { background: var(--surface-1); }
.dlog .did { font: 500 11.5px var(--mono); }
.dtt b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.dch { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dch::before { content: "→ "; color: var(--accent); }
.dlog .dv { font-size: 19px; font-weight: 700; font-stretch: 80%; text-align: right; white-space: nowrap; line-height: 1.05; }
.dlog .dv small { display: block; font: 11px var(--mono); color: var(--text-muted); font-weight: 400; }
.dlog .ds { margin: 0; justify-self: end; border-radius: 3px; font: 500 11px var(--mono); padding: 2px 7px; white-space: nowrap; }
.dbody { padding: 2px 14px 16px 68px; display: grid; gap: 0; }
.dbody .dctx { margin: 0 0 12px; font-size: 14px; color: var(--text-secondary); max-width: 80ch; }
.dbody .opts li { border-radius: 4px; }
.dbody dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.dbody dt { color: var(--text-muted); font: 11px/1.9 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.dbody dd { margin: 0; color: var(--text-secondary); }
.dsbar .ds-impl { color: #8ad9ae; } .dsbar .ds-pilot { color: #92c4f2; } .dsbar .ds-approved { color: #f0c27c; } .dsbar .ds-open { color: #ff9aa8; } .dsbar .ds-deferred { color: var(--text-muted); }

@media (max-width: 1000px) {
  .stepper { grid-template-columns: 1fr; gap: 0; }
  .stepper::before, .stepper::after { left: 15px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; }
  @keyframes draw { from { transform: scaleY(0); } }
  .pstep { padding: 0 0 18px 50px; }
  .pgrid2 { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr 1fr; }
  .bc-done { grid-column: 1 / -1; }
  .pkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkpis > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pkpis > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 760px) {
  .blist .story summary { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 12px; }
  .blist .story summary > .tag { grid-column: 2; justify-self: start; }
  .blist .story summary > .st, .blist .story summary > .ws { grid-column: 2; justify-self: start; }
  .blist .sbody { padding-left: 14px; grid-template-columns: 1fr; }
  .dlog::before, .dlog > li::before { display: none; }
  .dlog > li { grid-template-columns: 1fr; gap: 0; }
  .dlog .dd { text-align: left; padding: 12px 8px 0; }
  .dlog .dec summary { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 10px; }
  .dlog .dv, .dlog .ds { grid-column: 2; justify-self: start; text-align: left; }
  .dlog .dv small { display: inline; margin-left: 4px; }
  .dbody { padding-left: 14px; }
  .dstat { flex-direction: column; }
  .dsbar { flex-wrap: wrap; }
  .dsbar button { flex: 1 1 30% !important; }
  .rl { grid-template-columns: 1fr; gap: 4px; }
  .board { grid-template-columns: 1fr; }
  .bc-done { grid-template-columns: 1fr; }
}

/* ---------- knowledge base ---------- */
.ktoc { display: grid; gap: 0; align-self: end; }
.ktoc a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; font-size: 16px; font-weight: 600; font-stretch: 90%; transition: color .2s, padding .25s; }
.ktoc a:first-child { border-top: 1px solid var(--hairline); }
.ktoc a span { font: 500 11px var(--mono); color: var(--brand-bright); }
.ktoc a b { font: 400 11.5px var(--mono); color: var(--text-muted); }
.ktoc a:hover { color: var(--brand-bright); padding-left: 6px; }
.dk { display: block; font: 500 11px var(--mono); color: var(--text-muted); letter-spacing: .07em; text-transform: uppercase; }
.ksearch { flex: 0 1 280px; min-width: 0; background: var(--bg-deep); border: 1px solid var(--hairline); border-radius: 4px; color: var(--text-primary); padding: 6px 10px; font: 13.5px var(--display); margin-right: 6px; }
.ksearch:focus { border-color: var(--text-muted); outline: none; }
#kb-proj { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.glist { border-top: 1px solid var(--hairline); }
.glist article { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 12px 6px; border-bottom: 1px solid var(--hairline); box-shadow: inset 2px 0 0 transparent; transition: background-color .2s, box-shadow .2s; }
.glist article:hover { background: var(--surface-1); box-shadow: inset 2px 0 0 var(--accent); }
.glist h3 { margin: 0; font-size: 15px; font-weight: 700; font-stretch: 92%; }
.glist h3 small { display: flex; align-items: center; gap: 6px; font: 400 11px var(--mono); color: var(--text-muted); margin-top: 3px; letter-spacing: .02em; }
.glist h3 small::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.glist p { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.glist code { font: 12px/1.5 var(--mono); color: var(--text-primary); background: var(--bg-deep); border: 1px solid var(--hairline); border-radius: 4px; padding: 6px 9px; align-self: start; }
.glist .empty { padding: 14px 6px; margin: 0; }

.star { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px 70px; margin-top: 6px; --hl: var(--text-secondary); }
.star-ln { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.star-ln path { fill: none; stroke: var(--hairline); stroke-width: 1.5; transition: stroke .3s, stroke-width .3s; }
.star-ln path.lit { stroke: var(--hl); stroke-width: 2; }
.kdim { position: relative; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 8px; padding: 14px 16px; min-width: 0; transition: border-color .3s; }
.kdim[data-d="0"] { grid-area: 1 / 1; } .kdim[data-d="1"] { grid-area: 1 / 3; } .kdim[data-d="2"] { grid-area: 2 / 1; } .kdim[data-d="3"] { grid-area: 2 / 3; }
.kdim.lit { border-color: var(--hl); }
.kdim h3 { margin: 4px 0 0; font-size: 16px; font-weight: 700; font-stretch: 90%; }
.kdim > b { display: block; font-size: 26px; font-weight: 700; font-stretch: 78%; line-height: 1.1; margin-top: 4px; }
.kdim ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.kdim li { font-size: 13px; color: var(--text-secondary); padding-left: 12px; position: relative; line-height: 1.4; }
.kdim li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 1px; background: var(--text-muted); }
.kfacts { grid-area: 1 / 2 / 3 / 3; align-self: center; position: relative; background: var(--bg-deep); border: 1px solid var(--hairline); border-radius: 8px; padding: 14px; display: grid; gap: 6px; }
.kfacts .dk { margin-bottom: 4px; text-align: center; }
.fact { display: flex; align-items: center; gap: 8px; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 4px; color: var(--text-secondary); font: 600 13.5px var(--display); padding: 8px 10px; cursor: pointer; text-align: left; transition: border-color .2s, color .2s; }
.fact i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.fact small { margin-left: auto; font: 400 11px var(--mono); color: var(--text-muted); }
.fact:hover, .fact.lit { border-color: var(--accent); color: var(--text-primary); }

#chain .chain { margin-top: 6px; column-gap: 14px; row-gap: 6px; }
#chain .station { border-radius: 8px; padding: 14px 16px 16px; }
#chain .station::after { opacity: .5; }
#chain .station .sno { position: absolute; top: 14px; right: 16px; font: 500 11px var(--mono); color: var(--text-muted); }
#chain .station .ico { width: 34px; height: 34px; border-radius: 6px; margin-bottom: 10px; }
#chain .station h3 { font-size: 15.5px; font-weight: 700; font-stretch: 90%; }
#chain .station p { font-size: 13px; }
#chain .span { border-radius: 4px; padding: 8px 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 3px 0 0 var(--accent); border: 0; transition: background-color .25s, opacity .25s; }
#chain .span b { font-weight: 700; font-stretch: 92%; }
#chain .span small { font: 11.5px var(--mono); color: var(--text-muted); }
#chain .station .tags span { border-radius: 3px; font: 500 11px var(--mono); }

#method .stepper { margin-top: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#method .pstep h3 { font-size: 17px; }
#method .pstep code { display: block; margin-top: 10px; font: 11.5px var(--mono); color: var(--text-muted); }
.kgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-top: 30px; }
.kvals { display: grid; gap: 14px; margin-top: 12px; }
.kval { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 2px 16px; align-items: center; }
.kval b { grid-row: 1 / 3; font-size: 19px; font-weight: 700; font-stretch: 80%; color: var(--accent); white-space: nowrap; }
.kval .vl { font-size: 12.5px; color: var(--text-secondary); }
.vs { position: relative; height: 22px; margin: 4px 0 10px; background: linear-gradient(var(--hairline), var(--hairline)) center / 100% 1px no-repeat; }
.vs i { position: absolute; top: 50%; }
.vs em { position: absolute; top: 15px; transform: translateX(-50%); font: normal 11px var(--mono); color: var(--text-muted); }
.vs em:first-of-type { transform: none; } .vs em:last-of-type { transform: translateX(-100%); }
.vs .vb { left: 0; height: 6px; margin-top: -3px; border-radius: 2px; background: var(--accent); }
.ve, .vt, .vw { display: inline-block; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; }
.vs .ve, .vkey .ve { background: var(--accent); }
.kval .vt, .vkey .vt { border: 2px solid var(--text-primary); background: transparent; }
.vs .vw { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--text-muted); cursor: help; }
.vkey { margin: 2px 0 0; font: 11px var(--mono); color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.vkey i { position: static; margin: 0; }
.vkey .ve { background: var(--text-secondary); }
.vkey .vt + * , .vkey i + i { margin-left: 8px; }
.knext h2 { margin: 6px 0 10px; }
.knext p { margin: 0 0 10px; font-size: 13.5px; color: var(--text-secondary); }
.knext p.last { color: var(--text-primary); margin: 0; }
.klayers { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 14px; }
.klayers span { position: relative; font: 500 11.5px var(--mono); padding: 6px 12px 6px 18px; background: var(--surface-2); color: var(--text-secondary); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); margin-right: -4px; }
.klayers span:first-child { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); padding-left: 12px; }
.klayers .l-bronze { background: color-mix(in srgb, #a9713f 40%, var(--surface-2)); color: var(--text-primary); }
.klayers .l-silver { background: color-mix(in srgb, #a7adb4 30%, var(--surface-2)); color: var(--text-primary); }
.klayers .l-gold { background: color-mix(in srgb, #c9a227 38%, var(--surface-2)); color: var(--text-primary); }
.kstack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.kstack span { font: 500 11.5px var(--mono); color: var(--text-secondary); border: 1px solid var(--hairline); border-radius: 3px; padding: 3px 9px; }

@media (max-width: 1000px) {
  .glist article { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); }
  .glist code { grid-column: 2; }
  #method .stepper { grid-template-columns: 1fr; }
  .kgrid { grid-template-columns: 1fr; }
  .star { gap: 14px 40px; }
}
@media (max-width: 760px) {
  .glist article { grid-template-columns: 1fr; gap: 6px; }
  .glist code { grid-column: auto; }
  .ksearch { flex-basis: 100%; margin: 0 0 4px; }
  .star { grid-template-columns: 1fr; }
  .star-ln { display: none; }
  .kdim[data-d] { grid-area: auto; }
  .kfacts { grid-area: auto; order: -1; }
  .kval { grid-template-columns: 1fr; }
  .kval b { grid-row: auto; }
}
.fact { width: 100%; }

/* ---------- knowledge base: architecture diagrams (arch.js) ---------- */
.span-pricing { grid-column: 3 / 5; }
.kmeth { margin: -8px 0 18px; }
.arch { --s-live: #8ad9ae; --s-built: #92c4f2; --s-paused: #f0c27c; --s-planned: var(--text-muted); --accent: var(--brand-bright); }
.abar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; border-bottom: 1px solid var(--hairline); }
.atabs { display: flex; flex-wrap: wrap; gap: 0; min-width: 0; }
.atabs button { background: transparent; border: 0; color: var(--text-muted); font: 600 13.5px var(--display); font-stretch: 90%; padding: 10px 12px 11px; cursor: pointer; display: inline-flex; align-items: baseline; gap: 7px; box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .25s; }
.atabs button span { font: 500 11px var(--mono); color: var(--text-muted); }
.atabs button:hover { color: var(--text-primary); }
.atabs button[aria-selected="true"] { color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--accent); }
.atabs button[aria-selected="true"] span { color: var(--accent); }
.actl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 8px; }
.amode button { font-size: 12px; padding: 6px 14px; }
.arch.fut .amode button[data-m="future"] { box-shadow: inset 0 -2px 0 var(--s-built); }
.abtn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--hairline); color: var(--text-secondary); border-radius: 4px; font: 500 12px var(--mono); padding: 5px 10px; cursor: pointer; transition: color .2s, border-color .2s; }
.abtn svg { width: 11px; height: 11px; fill: currentColor; }
.abtn b { font-weight: 500; }
.abtn:hover, .abtn[aria-pressed="true"] { color: var(--text-primary); border-color: var(--text-muted); }
.astage { padding-top: 18px; }
.ahd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: baseline; margin-bottom: 18px; }
.ano { font: 500 11.5px var(--mono); color: var(--accent); letter-spacing: .04em; white-space: nowrap; grid-row: 1 / 3; }
.ahd h3 { margin: 0; font-size: clamp(19px, 2.2vw, 26px); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 1.1; }
.ahd p { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.abody { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.agraph { --cols: 5; position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(92px, auto); gap: 30px 28px; padding: 6px 0; }
.agraph.in .anode { animation: rin .45s ease-out backwards; animation-delay: calc(var(--o) * 6ms); }
.a-ln { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.a-ln path { fill: none; stroke: var(--text-muted); stroke-width: 1.4; opacity: .6; transition: stroke .25s, opacity .25s; }
.a-ln path.dash { stroke-dasharray: 4 4; }
.a-ln path.fut { stroke: var(--s-built); }
.a-ln marker path { fill: var(--text-muted); stroke: none; opacity: 1; }
.agraph.focus .a-ln path:not(.lit) { opacity: .18; }
.a-ln path.lit { stroke: var(--accent); opacity: 1; stroke-dasharray: 6 5; animation: aflow .8s linear infinite; }
@keyframes aflow { to { stroke-dashoffset: -11; } }
.anode { position: relative; z-index: 1; text-align: left; display: flex; flex-direction: column; gap: 3px; min-width: 0; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 6px; padding: 10px 12px 9px; color: var(--text-primary); cursor: pointer; font: inherit; box-shadow: inset 0 2px 0 var(--st, var(--hairline)); transition: border-color .2s, background-color .2s, opacity .25s; }
.anode .ak, .ainsp .ak { font: 500 11px var(--mono); color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; }
.anode b { font-size: 14.5px; font-weight: 700; font-stretch: 88%; line-height: 1.2; overflow-wrap: anywhere; }
.anode small { font-size: 12px; color: var(--text-secondary); line-height: 1.35; }
.anode .ast { margin-top: auto; padding-top: 6px; font: normal 500 11px var(--mono); color: var(--st); letter-spacing: .04em; display: inline-flex; align-items: center; gap: 5px; }
.anode .ast::before, .ai-st i, .ai-lg i, .kstat i { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st); flex: none; display: inline-block; }
.s-live { --st: var(--s-live, #8ad9ae); } .s-built { --st: var(--s-built, #92c4f2); } .s-paused { --st: var(--s-paused, #f0c27c); } .s-planned { --st: var(--s-planned, var(--text-muted)); }
.anode.s-planned { background: transparent; border-style: dashed; }
.anode.s-planned .ast::before, .ai-st.s-planned i, .ai-lg .s-planned i, .kstat .s-planned i { background: transparent; border: 1px dashed var(--text-muted); }
.anode.s-paused .ast::before { animation: apulse 1.6s ease-in-out infinite; }
@keyframes apulse { 50% { opacity: .3; } }
.anode.l-bronze { background: color-mix(in srgb, #a9713f 22%, var(--surface-1)); }
.anode.l-silver { background: color-mix(in srgb, #a7adb4 16%, var(--surface-1)); }
.anode.l-gold { background: color-mix(in srgb, #c9a227 20%, var(--surface-1)); }
.anode:hover { border-color: var(--text-muted); }
.anode[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-1)); }
.agraph.focus .anode:not([aria-pressed="true"]):not(.near) { opacity: .45; }
.anode.is-new::after { content: "new"; position: absolute; top: 8px; right: 9px; font: 500 11px var(--mono); color: var(--s-built); letter-spacing: .05em; }
.ainsp { position: sticky; top: 84px; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: 8px; padding: 14px 16px; min-height: 180px; box-shadow: inset 0 2px 0 var(--accent); }
.ainsp.fx > * { animation: rin .35s ease-out backwards; }
.ainsp h4 { margin: 4px 0 6px; font-size: 18px; font-weight: 700; font-stretch: 85%; line-height: 1.2; }
.ainsp p { margin: 10px 0 0; font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.ainsp .ai-hint { margin-top: 6px; }
.ainsp .ai-n { color: var(--text-primary); border-left: 2px solid var(--accent); padding-left: 10px; font-size: 13px; }
.ai-st { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); color: var(--st); }
.ai-t { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.ai-t span { font: 500 11px var(--mono); color: var(--text-secondary); border: 1px solid var(--hairline); border-radius: 3px; padding: 2px 7px; }
.ai-lg { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hairline); display: grid; gap: 6px; font: 500 11px var(--mono); color: var(--text-secondary); }
.ai-lg li { display: flex; align-items: center; gap: 8px; }
.afoot { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.anote { margin: 0; max-width: 92ch; font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }
.anav { display: flex; gap: 6px; flex: none; }
.anav .abtn { font-size: 14px; padding: 4px 12px; }
.kstat { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 8px; }
.kstat li { font-size: 13.5px; color: var(--text-secondary); line-height: 1.45; padding-left: 16px; position: relative; }
.kstat li i { position: absolute; left: 0; top: 6px; }
.kstat li b { color: var(--st); font: 500 11px var(--mono); margin-right: 6px; letter-spacing: .03em; }
.kstat { --s-live: #8ad9ae; --s-built: #92c4f2; --s-paused: #f0c27c; --s-planned: var(--text-muted); }

/* full screen for screen sharing */
.arch.present { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow: auto; padding: 22px clamp(16px, 3vw, 44px) 28px; }
.arch:fullscreen { background: var(--bg); overflow: auto; padding: 22px clamp(16px, 3vw, 44px) 28px; }
.arch.present .agraph { grid-auto-rows: minmax(112px, auto); gap: 40px 36px; }
.arch.present .anode b { font-size: 17px; }
.arch.present .anode small { font-size: 13.5px; }
.arch.present .ahd h3 { font-size: clamp(24px, 2.6vw, 34px); }
.arch.present .abody { grid-template-columns: minmax(0, 1fr) 320px; }
.arch.present .ainsp { top: 0; }

@media (max-width: 1000px) {
  .abody { grid-template-columns: 1fr; }
  .ainsp { position: static; min-height: 0; }
}
@media (max-width: 760px) {
  .agraph { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 18px; }
  .agraph .anode { grid-column: 1 !important; grid-row: auto !important; order: var(--o); }
  .atabs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
  .atabs button { white-space: nowrap; }
  .ahd { grid-template-columns: 1fr; }
  .ano { grid-row: auto; }
  .afoot { flex-direction: column; }
  .span-pricing { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .a-ln path.lit { animation: none; stroke-dasharray: none; }
  .anode.s-paused .ast::before { animation: none; }
}

/* lighter architecture diagrams: name-only boxes, details below the diagram */
.abody { grid-template-columns: 1fr; gap: 16px; }
.agraph { grid-auto-rows: minmax(62px, auto); gap: 26px 40px; padding: 4px 0; }
.anode { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; box-shadow: none; }
.anode b { font-size: 15px; }
.anode .ast { margin: 0; padding: 0; flex: none; }
.anode .ast::before { width: 8px; height: 8px; }
.anode.is-new::after { top: 4px; right: 7px; }
.ainsp { position: static; min-height: 0; padding: 12px 16px; display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 4px 22px; align-items: start; }
.ainsp > .ak, .ainsp > h4, .ainsp > .ai-st { grid-column: 1; }
.ainsp > p, .ainsp > .ai-t { grid-column: 2; margin-top: 0; }
.ainsp > p:first-of-type { grid-row: 1 / span 3; }
.ainsp .ai-hint { grid-column: 1 / -1; grid-row: auto !important; margin: 0; }
.ai-lg { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 6px 0 0; padding: 0; border: 0; }
.arch.present .agraph { grid-auto-rows: minmax(78px, auto); gap: 36px 52px; }
.arch.present .anode b { font-size: 18px; }
@media (max-width: 760px) {
  .ainsp { grid-template-columns: 1fr; }
  .ainsp > p, .ainsp > .ai-t { grid-column: 1; }
  .ainsp > p:first-of-type { grid-row: auto; }
}
.kgrid-one { grid-template-columns: minmax(0, 720px); }
.asec { padding-top: 8px; }

/* make anything that is not live impossible to miss */
.anode:not(.s-live) { background: repeating-linear-gradient(135deg, var(--surface-1) 0 7px, color-mix(in srgb, var(--st) 7%, var(--surface-1)) 7px 14px); border-color: color-mix(in srgb, var(--st) 45%, var(--hairline)); }
.anode:not(.s-live) b { color: var(--text-secondary); }
.anode.s-planned { border-style: dashed; }
.anode.l-bronze:not(.s-live), .anode.l-silver:not(.s-live), .anode.l-gold:not(.s-live) { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--lc) 70%, transparent); }
.anode.l-bronze { --lc: #a9713f; } .anode.l-silver { --lc: #a7adb4; } .anode.l-gold { --lc: #c9a227; }
.atag { margin-left: auto; flex: none; font: normal 500 11px var(--mono); color: var(--st); border: 1px solid color-mix(in srgb, var(--st) 55%, transparent); border-radius: 3px; padding: 1px 6px; letter-spacing: .03em; white-space: nowrap; background: var(--bg); }
.anode.is-new::after { display: none; }
.alive { margin: 0; font-size: 13px; color: var(--text-secondary); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.alive b { color: var(--s-live); font-weight: 600; }
.arch.fut .alive b { color: var(--s-built); }
.arch.fut .agraph { outline: 1px dashed color-mix(in srgb, var(--s-built) 55%, transparent); outline-offset: 12px; border-radius: 4px; margin: 12px; }
.arch.fut .agraph::before { content: "FUTURE · PLANNED TARGET · NOT LIVE"; position: absolute; top: -21px; right: 0; font: 500 11px var(--mono); letter-spacing: .08em; color: var(--s-built); background: var(--bg); padding: 0 6px; z-index: 2; }
@media (max-width: 760px) { .atag { margin-left: 0; } .anode { flex-wrap: wrap; } }
.anode { flex-wrap: wrap; row-gap: 6px; }
.anode b { flex: 1 0 auto; max-width: calc(100% - 22px); }
.atag { margin-left: 18px; }
.alive.part b { color: var(--s-paused); }
