/* Volume 3 · what differs from volume 1's layout: the hero's three squares (the cover),
   the zoom from volume 1's map into the corner volume 2 covers, the picture's parts,
   the book's figures, and the tools. Colours come from css/map.css (volume 2 tokens). */

/* hero: the cover's four squares, transform filled */
.hero-art { max-width: 420px; }
.hero-art .sq { fill: none; stroke: var(--acc); stroke-width: 2; }
.hero-art .sq.on { fill: var(--acc); }
.hero-art .sqn, .hero-art .sql { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; fill: var(--night-ink); }
.hero-art .sq.on + .sqn, .hero-art .sq.on + .sqn + .sql { fill: var(--night); }
.hero-fig figcaption { font-size: 18px; line-height: 1.3; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .sq { animation: sqin 0.9s var(--ease) both; }
  .hero-art .sq:nth-of-type(2) { animation-delay: 0.15s; } .hero-art .sq:nth-of-type(3) { animation-delay: 0.3s; } .hero-art .sq:nth-of-type(4) { animation-delay: 0.45s; }
}
@keyframes sqin { from { opacity: 0; transform: translateY(8px); } }

/* volume 1's map, then the zoom: the map shrinks to a thumbnail with "You are here" */
.map .vmap { transform-origin: 0 0; transform-box: view-box; transition: transform 0.9s var(--ease); }
.js .map:not(.zoom) .vmap { transform: translate(-40px, 70px) scale(1.06); }
.map.zoom .vmap, html:not(.js) .map .vmap { transform: translate(6px, 6px) scale(0.34); }
.map .vplane { fill: var(--white); stroke: var(--rule); }
.map .vl { stroke: var(--rule); }
.map .vrl, .map .vhl { font-family: var(--mono); font-size: 10.5px; fill: var(--grey); }
.map .vtitle { font-size: 15px; font-weight: 700; fill: var(--ink); transition: opacity 0.4s; }
.map.zoom .vtitle, html:not(.js) .map .vtitle { opacity: 0; }
.map .corner { fill: var(--tint); stroke: var(--deep); stroke-width: 3; }
.map .herel { stroke: var(--deep); stroke-width: 1.5; fill: none; }
.map .heret { font-weight: 800; font-size: 17px; fill: var(--deep); }
.map .heres { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; fill: var(--grey); }
.map .fr { fill: var(--white); stroke: var(--deep); stroke-width: 2; }
.map .frl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--deep); }

/* ---------- figures in the cards ---------- */
.acts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.act { background: var(--white); border-top: 5px solid var(--acc); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.4; }
.act .mono { color: var(--deep); font-size: 10.5px; }
.act b { font-weight: 900; font-stretch: 70%; font-size: 28px; line-height: 1; text-transform: uppercase; }
.act i { font-style: normal; font-weight: 700; color: var(--deep); }
@media (max-width: 520px) { .acts { grid-template-columns: minmax(0, 1fr); } }
.cubegrid { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.cubegrid .cl { text-align: right; }
.cubegrid div > div { display: flex; flex-direction: column; margin: 8px 0; }
.cubegrid b { font-weight: 900; font-stretch: 70%; font-size: 17px; text-transform: uppercase; line-height: 1.05; }
.cubegrid span { font-size: 13.5px; color: var(--grey); }
.cube { width: 150px; height: auto; }
@media (max-width: 560px) { .cubegrid { grid-template-columns: minmax(0, 1fr); } .cubegrid .cl { text-align: left; } .cube { margin: 0 auto; } }
.oldnew { color: var(--deep); font-size: 10.5px; text-align: center; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.flow .st { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--white); padding: 8px 12px; border-left: 2px solid transparent; position: relative; }
.flow .st + .st { margin-top: 14px; }
.flow .st + .st::before { content: ""; position: absolute; left: 26px; top: -14px; height: 14px; border-left: 2px solid var(--deep); }
.flow .sn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--deep); color: var(--white); font-size: 12px; font-weight: 600; }
.flow b { display: block; font-weight: 800; font-size: 15.5px; }
.flow span:not(.sn) { display: block; font-size: 13.5px; color: var(--grey); }
.flow .who { font-style: normal; font-size: 9.5px; color: var(--grey); text-align: right; }
.flow .st.on { border-left-color: var(--acc); background: var(--tint); }
.fclose { font-weight: 800; font-stretch: 80%; font-size: 20px; line-height: 1.15; color: var(--deep); margin-top: 6px; }
.tbl { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; }
.tbl .tr { display: grid; gap: 2px; }
.tbl.t3 .tr { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.2fr) minmax(0, 0.6fr); }
.tbl.t9 .tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr); }
.tbl.t2 .tr { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.4fr); }
.tbl .tr > * { background: var(--white); padding: 7px 9px; }
.tbl .th > * { background: var(--ink); color: var(--night-ink); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.tbl .th > span:empty { background: transparent; }
.tbl .ai { background: var(--tint); }
.tbl .th .ai { background: var(--deep); }
.tbl .lvl { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--deep); color: var(--white); font-size: 10px; margin-right: 4px; }
@media (max-width: 520px) { .tbl.t3 .tr, .tbl.t9 .tr, .tbl.t2 .tr { grid-template-columns: minmax(0, 1fr); } .tbl .th { display: none; } }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.stack li { margin-left: calc(var(--i) * 22px); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 9px 12px; background: var(--white); font-size: 13.5px; }
.stack li:nth-child(2) { background: var(--tint); }
.stack li:last-child { background: var(--deep); color: var(--white); }
.stack .mono { font-weight: 600; color: var(--deep); font-size: 14px; }
.stack li:last-child .mono { color: var(--white); }
.stack b { display: block; font-weight: 800; }
.fcap.r { text-align: right; }
.mwmrow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.mwm { flex: 1 1 120px; border: 1px solid var(--ink); background: var(--white); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.mwm b { font-weight: 900; font-size: 22px; color: var(--deep); }
.mwm i { font-style: normal; color: var(--grey); }
.mwm.we { background: var(--tint); }
.mwm.many { background: var(--ink); color: var(--white); }
.mwm.many b { color: var(--acc); } .mwm.many i { color: #E4E2DC; }
.mv { align-self: center; color: var(--deep); font-size: 9.5px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tier { background: var(--white); display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.35; padding-bottom: 10px; }
.tier .mono { padding: 6px 10px; font-size: 10px; background: var(--tint); color: var(--ink); }
.tier.mid .mono { background: #E7A3BB; } .tier.hi .mono { background: var(--deep); color: var(--white); }
.tier > span, .tier > b, .tier > i { padding: 0 10px; }
.tier i { font-style: normal; color: var(--deep); letter-spacing: 0.15em; }
.tier b { font-weight: 800; }
@media (max-width: 560px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bars .bar { display: flex; height: 40px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.bars .bar span { display: flex; align-items: center; padding-left: 8px; overflow: hidden; white-space: nowrap; }
.bars .pr { background: var(--ink); color: var(--night-ink); } .bars .rv { background: var(--deep); color: var(--white); }
.loops .lp1 { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 4; }
.loops .lp2 { fill: none; stroke: var(--deep); stroke-width: 2.5; }
.loops .lp1d { fill: var(--ink); } .loops .lp2d { fill: var(--deep); }
.loops .ll { font-size: 11px; font-weight: 700; fill: var(--ink); font-family: var(--body); }
.loops .lh { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; }
.loops .lp1t { fill: var(--ink); } .loops .lp2t { fill: var(--deep); }
.loops .ldiv { stroke: var(--rule); }
@media (prefers-reduced-motion: no-preference) {
  .js .loops .lp2 { stroke-dasharray: 370; stroke-dashoffset: 370; }
  .js .card.play .loops .lp2 { animation: draw 1.6s var(--ease) 0.3s forwards; }
}
.rules3 li { font-weight: 400; }
.four.plain li { font-weight: 400; }
.close.try { border: 1.5px solid var(--deep); }
.close.try .mono { color: var(--white); background: var(--deep); align-self: flex-start; padding: 4px 10px; border-radius: 999px; }

/* ---------- tools ---------- */
.aqs, .rqs, .tts, .sqs, .tsteps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.aq, .rq, .sq { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.4; }
.sq { grid-template-columns: minmax(0, 1fr) auto auto; }
.sq .ch { font-size: 10px; color: var(--deep); white-space: nowrap; }
@media (max-width: 560px) { .aq, .rq, .sq { grid-template-columns: minmax(0, 1fr); } }
.rg { color: var(--deep); font-size: 11px; margin-top: 8px; }
.sh { color: var(--grey); font-size: 10px; }
.result p[hidden], .js .result p[hidden] { display: none; }
.rulefull { border-top: 1px solid var(--rule); padding-top: 8px; }
.tsteps { counter-reset: s; gap: 4px; font-size: 14.5px; }
.tsteps li { counter-increment: s; padding-left: 26px; position: relative; }
.tsteps li::before { content: counter(s) "."; position: absolute; left: 0; font-family: var(--mono); color: var(--deep); font-weight: 600; }
.tts { gap: 6px; }
.tt { background: var(--paper); padding: 8px 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.tt .why { display: none; }
.tt.miss .why { display: flex; }
.fld select { font: inherit; font-size: 15px; padding: 6px 8px; border: 1.5px solid var(--ink); background: var(--white); border-radius: 0; }
#tenList { margin: 0; padding-left: 22px; font-weight: 400; }
.selfpage { border-top: 2px solid var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.selfpage + .selfpage { margin-top: 16px; }
.selfpage .tt { background: none; padding: 0; display: block; }
.selfpage h3.tt em { font-style: normal; color: var(--deep); }
.self .result .tot { font-size: 18px; }
.self .result .tot .num { font-family: var(--mono); }
.self .result p[data-band] { font-weight: 400; opacity: 0.45; }
.self .result p[data-band].on { opacity: 1; font-weight: 700; }
.self .lows { margin: 0; padding-left: 22px; font-weight: 400; }
.self .lowh { margin-top: 6px; }
html:not(.js) .self .lowh { display: none; }

/* ---------- closing: the back cover's five sentences ---------- */
.five-h { color: var(--acc); font-size: 11px; }
.five { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.five li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; align-items: baseline; border-top: 1px solid var(--night-rule); padding: 10px 0; font-weight: 900; font-stretch: 68%; font-size: clamp(26px, 4.4vw, 40px); line-height: 1; text-transform: uppercase; }
.five li .mono { color: var(--acc); font-size: 12px; font-weight: 400; }

/* without JavaScript: the bands read as printed, and the empty copy boxes are hidden */
html:not(.js) .self .result p[data-band] { opacity: 1; }
html:not(.js) #tself .xfile, html:not(.js) #tten .xfile, html:not(.js) #tself .tot { display: none; }
.oldnew svg, .mv svg { width: 24px; height: 10px; display: inline-block; vertical-align: middle; margin: 0 4px; }
.mv { display: inline-flex; align-items: center; }
.result[hidden] { display: none; }

/* ---------- volume 3: the picture ---------- */
.map .h3row { fill: var(--acc); fill-opacity: 0.25; }
.map .ob { fill: var(--paper); stroke: var(--grey); stroke-width: 1.5; }
.map .oa, .map .ca { stroke: var(--grey); stroke-width: 1.5; fill: none; marker-end: url(#mk3); }
.map marker path { fill: var(--grey); }
.map .cap { font-size: 11px; font-weight: 700; fill: var(--ink); }
.map .cap2 { font-size: 11px; font-weight: 700; fill: var(--deep); }
.map .badge circle { fill: var(--acc); }
.map .badge text { font-family: var(--mono); font-size: 8px; font-weight: 600; fill: var(--night); }
.map .nd rect { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.map .nd.k-ai rect { fill: var(--acc); stroke: var(--deep); }
.map .nd.k-person rect { fill: var(--tint); stroke: var(--deep); stroke-width: 2.5; }
.map .nn { font-family: var(--mono); font-size: 8px; fill: var(--grey); }
.map .nk { font-size: 12px; font-weight: 800; fill: var(--ink); }
.map .lb { font-size: 10px; font-weight: 700; fill: var(--deep); }
.map .lb2 { font-family: var(--mono); font-size: 8.5px; fill: var(--grey); }
.map .lb3 { font-weight: 900; font-stretch: 70%; font-size: 15px; text-transform: uppercase; fill: var(--deep); }
.map .pp circle, .map .pp path { fill: var(--ink); }
.map .brk, .map .brk2 { fill: none; stroke: var(--deep); stroke-width: 1.5; }
.map .dia { fill: var(--acc); }
.map .gl, .map .bridge { fill: none; stroke: var(--deep); stroke-width: 1.5; }
.map .bridge { stroke-dasharray: 4 3; marker-end: url(#mk3); }
.map .svc { fill: var(--tint); stroke: var(--deep); stroke-width: 1.5; }
.map .ln { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 4; }
.map .env { fill: var(--paper); stroke: var(--acc); stroke-width: 1.5; }
.map .mw { fill: var(--acc); fill-opacity: 0.6; }
.map .up, .map .dn, .map .pr { fill: none; stroke: var(--deep); stroke-width: 1.5; marker-end: url(#mk3); }
.map .lst { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.map .li { stroke: var(--grey); stroke-width: 1.5; }
.map .doc { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.map .gp { stroke: var(--deep); stroke-width: 3; }
.map .gbar { stroke: var(--acc); stroke-width: 4; }
.map .bub { fill: var(--white); stroke: var(--deep); stroke-width: 1.5; }
/* chapter 6: the chain loosens towards goal-driven work */
.map.loose .chain .nd rect { stroke-dasharray: 4 3; }
.map.loose .chain .ca { opacity: 0.25; }
.map.loose .chain .cap { opacity: 0; }
.map .cur.badge, .map .cur .badge circle { fill: var(--acc); }
@media (prefers-reduced-motion: no-preference) {
  .js .map .decor .badge { transform-box: fill-box; transform-origin: center; }
  .js .map .cur.decor .badge { animation: pop 0.5s var(--ease) both; }
}
@keyframes pop { from { transform: scale(0); } }
/* figures and tools of volume 3 */
.flow .k-ai { background: var(--tint); }
.flow .k-person { border-left: 3px solid var(--deep); }
.tbl.t4 .tr { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.tbl .tr.hot > * { background: var(--tint); }
@media (max-width: 560px) { .tbl.t4 .tr { grid-template-columns: minmax(0, 1fr); } }
.metr { display: flex; flex-direction: column; gap: 8px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.mtrack { position: relative; height: 22px; background: var(--white); }
.mtrack i { position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 2px solid var(--ink); }
.mb { position: absolute; top: 0; bottom: 0; }
.mb.f { background: var(--acc); } .mb.s { background: var(--ink); }
.mv { font-size: 12px; white-space: nowrap; }
@media (max-width: 560px) { .mrow { grid-template-columns: minmax(0, 1fr) auto; } .mrow .ml { grid-column: 1 / -1; } }
.qs li { font-weight: 400; }
.rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.rq { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.rq .opts { flex-wrap: wrap; }
.sq p .ch { color: var(--deep); font-size: 10px; white-space: nowrap; }
.hero-art .sq.on + .sqn, .hero-art .sq.on + .sqn + .sql { fill: var(--night); }
/* the hero is the cover's own drawing: the process today, then the same process with AI */
.hero-art.v3cover { max-width: 560px; width: 100%; height: auto; overflow: visible; }
.mrow.max { margin-bottom: -4px; }
.mtrack.ax { background: none; height: auto; display: flex; justify-content: space-between; }
.mtrack.ax i { position: static; border: 0; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--grey); }
.ml b { display: block; }
