/* 4.6 — Guides: an editorial reading layout in the site's own tokens. */

/* Reading progress */
.tp45-progress{position:fixed;top:0;left:0;right:0;z-index:60;height:3px;pointer-events:none}
.tp45-progress i{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,var(--tp3-cyan),var(--tp3-magenta),var(--tp3-yellow))}

/* Breadcrumb */
.tp-editorial .tp45-crumbs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;font:500 .8rem/1.4 var(--tp3-sans);color:var(--tp3-muted)}
.tp-editorial .tp45-crumbs a{color:var(--tp3-muted);text-decoration:none}
.tp-editorial .tp45-crumbs a:hover{color:var(--tp3-teal-2);text-decoration:underline}

/* Hero: text and one purposeful visual side by side */
.tp45-hero{position:relative;overflow:hidden;background:var(--tp3-cream);padding:clamp(40px,6vw,80px) 0 clamp(44px,6vw,84px);border-bottom:1px solid var(--tp3-line)}
.tp45-hero::before{content:'';position:absolute;right:-12%;top:-30%;width:62%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#e0b04a22,transparent 68%);pointer-events:none}
.tp45-hero-grid{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;gap:clamp(32px,5vw,72px)}
.tp-editorial .tp45-hero h1{margin:10px 0 18px;font:600 clamp(2.3rem,4.6vw,3.9rem)/1.04 var(--tp3-serif);letter-spacing:-.02em;color:var(--tp3-ink);text-wrap:balance}
.tp-editorial .tp45-deck{max-width:36em;margin:0;font:400 clamp(1.05rem,1.4vw,1.22rem)/1.6 var(--tp3-sans);color:var(--tp3-text)}
.tp-editorial .tp45-byline{display:flex;flex-wrap:wrap;gap:8px 0;margin:26px 0 0;padding-top:18px;border-top:1px solid var(--tp3-line);font:500 .86rem/1.4 var(--tp3-sans);color:var(--tp3-muted)}
.tp45-byline span+span::before{content:'';display:inline-block;width:4px;height:4px;margin:0 12px 2px;border-radius:50%;background:var(--tp3-gold-soft)}
.tp45-by{color:var(--tp3-ink)}
.tp45-hero-media{position:relative;min-width:0}
.tp-editorial .tp45-hero-note{margin:18px 0 0;text-align:center;font:400 .84rem/1.5 var(--tp3-sans);color:var(--tp3-muted)}

/* Fanned journal covers */
.tp45-fan{position:relative;height:clamp(300px,34vw,440px);isolation:isolate}
.tp45-fan-item{position:absolute;left:50%;top:50%;width:42%;aspect-ratio:600/760;border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 26px 40px -22px #0b2328b3,0 2px 6px #0b232826;transform:translate(-50%,-50%) translateX(calc(var(--i) * 30%)) rotate(calc(var(--i) * 5deg)) translateY(calc(var(--i) * var(--i) * 2.2%));transition:transform .7s var(--tp3-ease)}
.tp45-fan-item:nth-child(1),.tp45-fan-item:nth-child(5){z-index:1}
.tp45-fan-item:nth-child(2),.tp45-fan-item:nth-child(4){z-index:2}
.tp45-fan-item:nth-child(3){z-index:3}
.tp-editorial .tp45-fan-item img{display:block;width:100%;height:100%;object-fit:cover}
.tp45-hero .tp45-fan-item{animation:tp45-fan-in 1.1s var(--tp3-ease) both;animation-delay:calc((var(--i) + 2) * 70ms)}
.tp45-hero .tp45-fan:hover .tp45-fan-item{transform:translate(-50%,-50%) translateX(calc(var(--i) * 36%)) rotate(calc(var(--i) * 6.5deg)) translateY(calc(var(--i) * var(--i) * 2.6%))}
@keyframes tp45-fan-in{from{transform:translate(-50%,-44%) rotate(0);opacity:0}}

/* Hero clip (portrait press-floor footage) */
.tp45-hero-clip{position:relative;z-index:0;width:min(100%,380px);margin:0 auto}
.tp-editorial .tp45-hero-clip .tp45-clip{aspect-ratio:4/5}
.tp45-clip-frame{position:relative;z-index:0;display:block}
.tp45-clip-frame::before{content:'';position:absolute;inset:18px -18px -18px 18px;z-index:-1;border-radius:18px;background:linear-gradient(135deg,var(--tp3-cyan),var(--tp3-magenta) 55%,var(--tp3-yellow));opacity:.9}
.tp45-hero-clip figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:30px;font:400 .86rem/1.5 var(--tp3-sans);color:var(--tp3-muted)}

/* Video clips */
.tp-editorial .tp45-clip{display:block;width:100%;height:auto;border-radius:16px;background:var(--tp3-ink);object-fit:cover;box-shadow:0 30px 60px -36px #0b2328}

/* Labels on media */
.tp45-real{display:inline-flex;align-items:center;padding:5px 10px;border-radius:99px;background:var(--tp3-ink);color:#fff;font:700 .6rem/1 var(--tp3-sans);letter-spacing:.14em;text-transform:uppercase;white-space:nowrap}
.tp45-real::before{content:'';width:6px;height:6px;margin-right:7px;border-radius:50%;background:#e0b45a;box-shadow:0 0 0 3px #e0b45a33}
.tp45-tag-inline{display:inline-block;margin-left:4px;padding:3px 8px;border-radius:99px;border:1px solid var(--tp3-line);font:700 .58rem/1 var(--tp3-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--tp3-muted);vertical-align:2px}

/* Layout: sticky contents + reading column */
.tp45-layout{display:grid;grid-template-columns:230px minmax(0,740px);justify-content:center;gap:clamp(32px,6vw,84px);padding-block:clamp(48px,7vw,96px)}
.tp45-toc{position:sticky;top:calc(var(--tp3-header-h) + 28px);align-self:start}
.tp-editorial .tp45-label{margin:0 0 12px;font:700 .68rem/1 var(--tp3-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--tp3-gold)}
.tp-editorial .tp45-toc ol{margin:0;padding:0;list-style:none;border-left:2px solid var(--tp3-line);counter-reset:toc}
.tp-editorial .tp45-toc li{counter-increment:toc}
.tp-editorial .tp45-toc ol a{display:block;margin-left:-2px;padding:8px 0 8px 16px;border-left:2px solid transparent;font:500 .92rem/1.35 var(--tp3-sans);color:var(--tp3-muted);text-decoration:none;transition:color .25s,border-color .25s}
.tp-editorial .tp45-toc ol a::before{content:counter(toc,decimal-leading-zero) '  ';font-weight:700;color:#b9ad90}
.tp-editorial .tp45-toc ol a:hover,.tp-editorial .tp45-toc ol a.is-active{color:var(--tp3-ink);border-left-color:var(--tp3-magenta)}
.tp-editorial .tp45-toc-cta{display:inline-block;margin-top:22px;font:600 .9rem/1.3 var(--tp3-sans);color:var(--tp3-teal-2)}

/* Reading column */
.tp45-body{min-width:0;font:400 1.08rem/1.8 var(--tp3-sans);color:var(--tp3-text)}
.tp-editorial .tp45-body p{margin:0 0 1.25em}
.tp-editorial .tp45-body .tp45-first{font-size:1.2rem;line-height:1.75;color:var(--tp3-ink)}
.tp-editorial .tp45-body .tp45-first::first-letter{float:left;margin:.08em .12em 0 0;font:600 3.6em/.8 var(--tp3-serif);color:var(--tp3-teal-2)}
.tp-editorial .tp45-body h2{scroll-margin-top:calc(var(--tp3-header-h) + 24px);margin:2.4em 0 .7em;font:600 clamp(1.8rem,3vw,2.4rem)/1.12 var(--tp3-serif);color:var(--tp3-ink);text-wrap:balance}
.tp-editorial .tp45-body h3{margin:0 0 .35em;font:700 1.05rem/1.35 var(--tp3-sans);color:var(--tp3-ink)}
.tp-editorial .tp45-body a{color:var(--tp3-teal-2)}
.tp-editorial .tp45-body figure{margin:0}
.tp-editorial .tp45-body figcaption{margin-top:12px;font:400 .88rem/1.55 var(--tp3-sans);color:var(--tp3-muted)}
.tp-editorial .tp45-body figure img{display:block;width:100%;height:auto;border-radius:14px}

/* In short */
.tp-editorial .tp45-takeaways{position:relative;margin:2em 0;padding:26px 30px 24px;border-radius:14px;background:var(--tp3-paper);border:1px solid var(--tp3-line);overflow:hidden}
.tp-editorial .tp45-takeaways::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--tp3-cyan),var(--tp3-magenta),var(--tp3-yellow))}
.tp-editorial .tp45-takeaways ul{margin:0;padding-left:1.1em}
.tp-editorial .tp45-takeaways li{margin:.4em 0;line-height:1.6}
.tp-editorial .tp45-takeaways li::marker{color:var(--tp3-magenta)}

/* Interactive checklist */
.tp-editorial .tp45-checklist{margin:0 0 .6em;padding:0;list-style:none;border-top:1px solid var(--tp3-line)}
.tp-editorial .tp45-checklist li{margin:0;border-bottom:1px solid var(--tp3-line)}
.tp-editorial .tp45-checklist label{position:relative;display:block;padding:14px 8px 14px 44px;line-height:1.6;cursor:pointer;border-radius:8px;transition:background .25s}
.tp-editorial .tp45-checklist label:hover{background:#fff}
.tp-editorial .tp45-checklist input{position:absolute;left:8px;top:16px;opacity:0;width:22px;height:22px;min-height:0;margin:0;padding:0}
.tp-editorial .tp45-checklist label::before{content:'';position:absolute;left:8px;top:16px;width:22px;height:22px;border-radius:50%;border:2px solid #c9bea3;background:#fff center/13px no-repeat;transition:background-color .25s,border-color .25s,transform .3s var(--tp3-ease)}
.tp-editorial .tp45-checklist label:has(input:checked)::before{border-color:var(--tp3-gold-soft);background-color:var(--tp3-gold-soft);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23132f33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");transform:scale(1.08)}
.tp-editorial .tp45-checklist label:has(input:focus-visible){outline:2px solid var(--tp3-teal-2);outline-offset:2px}
.tp-editorial .tp45-checklist label:has(input:checked) span{color:var(--tp3-muted)}
.tp-editorial .tp45-check-count{display:flex;align-items:center;gap:12px;margin:0 0 1.4em;font:600 .86rem/1.3 var(--tp3-sans);color:var(--tp3-muted)}
.tp45-check-meter{flex:0 0 120px;height:6px;border-radius:9px;background:var(--tp3-line);overflow:hidden}
.tp45-check-meter i{display:block;height:100%;width:var(--p,0%);border-radius:inherit;background:var(--tp3-gold-soft);transition:width .4s var(--tp3-ease)}

/* Five-step overview */
.tp-editorial .tp45-flow{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:1.4em 0 2.2em;padding:0;list-style:none;text-align:center;font:600 .82rem/1.3 var(--tp3-sans);letter-spacing:.04em;text-transform:uppercase;color:var(--tp3-ink)}
.tp-editorial .tp45-flow::before{content:'';position:absolute;left:10%;right:10%;top:27px;height:2px;background:linear-gradient(90deg,var(--tp3-cyan),var(--tp3-magenta),var(--tp3-yellow));transform-origin:0 50%}
.tp-editorial .tp45-flow li{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;margin:0}
.tp45-flow-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#fff;border:2px solid var(--tp3-line);box-shadow:0 10px 24px -16px #0b2328}
.tp45-flow-icon svg{width:24px;height:24px;fill:none;stroke:var(--tp3-teal-2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Steps */
.tp-editorial .tp45-step{position:relative;padding:0 0 2.2em 72px}
.tp-editorial .tp45-step::before{content:'';position:absolute;left:23px;top:56px;bottom:8px;width:2px;background:linear-gradient(var(--tp3-line) 70%,transparent)}
.tp-editorial .tp45-step.is-last::before{display:none}
.tp-editorial .tp45-step-n{position:absolute;left:0;top:-6px;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--tp3-ink);color:#fff;font:600 1.05rem/1 var(--tp3-serif)}
.tp-editorial .tp45-step-text p{margin:0}
.tp-editorial .tp45-step-visual{margin-top:22px}
.tp-editorial .tp45-step.is-portrait{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:28px;align-items:start}
.tp-editorial .tp45-step.is-portrait .tp45-step-visual{margin-top:0}

/* Diagrams */
.tp-editorial .tp45-body .tp45-diagram{margin:1.8em 0 2em}
.tp45-diagram svg{display:block;width:100%;height:auto}
.tp-editorial .tp45-step-visual.tp45-diagram{margin:22px 0 0;padding:22px 22px 16px;border-radius:14px;background:var(--tp3-paper);border:1px solid var(--tp3-line)}
.tp45-diagram .d-page{fill:#fff;stroke:#cfc6ae;stroke-width:1.5}
.tp45-diagram .d-back{fill:var(--tp3-cream)}
.tp45-diagram .d-soft{fill:#d6ceb8}
.tp45-diagram .d-ink{fill:var(--tp3-ink)}
.tp45-diagram .d-accent{fill:var(--tp3-magenta)}
.tp45-diagram .d-box{fill:var(--tp3-paper);stroke:#d9d1bc}
.tp45-diagram .d-lines rect,.tp45-diagram .d-lines2 rect{fill:#cdc4ad}
.tp45-diagram .d-fig{fill:#e3eef1;stroke:#b8d3da}
.tp45-diagram .d-figline{fill:none;stroke:var(--tp3-teal-2);stroke-width:2;stroke-linejoin:round}
.tp45-diagram .d-labels path{fill:none;stroke:var(--tp3-gold);stroke-width:1.2;stroke-dasharray:3 3}
.tp45-diagram .d-labels text{font:500 14px var(--tp3-sans);fill:var(--tp3-ink)}
.tp45-diagram .d-cells rect{fill:#dff0f7;stroke:var(--tp3-cyan);stroke-width:1.2}
.tp45-diagram .d-foldline{stroke:var(--tp3-ink);stroke-width:3;stroke-linecap:round}
.tp45-diagram .d-spine{fill:var(--tp3-teal-2)}
.tp45-diagram .d-fold{fill:none;stroke:var(--tp3-ink);stroke-width:2.5;stroke-linejoin:round}
.tp45-diagram .d-fold2{fill:none;stroke:#b9ae94;stroke-width:1.6}
.tp45-diagram .d-staple{fill:var(--tp3-gold)}
.tp45-diagram .d-cap,.tp45-diagram .d-cap2{font:500 12px var(--tp3-sans);fill:var(--tp3-muted)}
.tp45-diagram .d-axis{fill:none;stroke:#9fb0b0;stroke-width:1.5}
.tp45-diagram .d-line{fill:none;stroke-width:4;stroke-linecap:round}
.tp45-diagram .d-line.is-digital{stroke:var(--tp3-cyan)}
.tp45-diagram .d-line.is-offset{stroke:var(--tp3-magenta)}
.tp45-diagram .d-cross{fill:var(--tp3-yellow);stroke:var(--tp3-ink);stroke-width:2}
.tp45-diagram .d-note{font:italic 500 14px var(--tp3-sans);fill:var(--tp3-ink)}
.tp45-diagram .d-leader{stroke:var(--tp3-ink);stroke-width:1.2;stroke-dasharray:3 3}
.tp45-diagram .d-key{font:700 15px var(--tp3-sans)}
.tp45-diagram .d-key.is-digital{fill:#08739e}
.tp45-diagram .d-key.is-offset{fill:var(--tp3-magenta)}
.tp45-diagram text.d-cap[transform]{text-anchor:middle}
.tp45-diagram svg[aria-labelledby="tp45-cost-t"]{padding:18px 16px 8px;border-radius:14px;background:#fff;border:1px solid var(--tp3-line);box-sizing:border-box}
.tp45-diagram svg[aria-labelledby="tp45-cost-t"] .d-cap{text-anchor:middle}

/* Imposition: sheet → section → issue */
.tp45-imp{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2vw,20px);padding:24px 20px 18px;border-radius:14px;background:var(--tp3-paper);border:1px solid var(--tp3-line)}
.tp45-imp-part{display:flex;flex-direction:column;align-items:center;gap:10px;flex:1 1 0;min-width:0;text-align:center;font:600 .82rem/1.35 var(--tp3-sans);color:var(--tp3-ink)}
.tp45-imp-part svg{width:auto;max-width:100%;height:124px}

.tp45-imp-arrow{position:relative;flex:0 0 auto;margin-bottom:34px;padding:0 18px 14px 0;font:italic 600 .78rem/1 var(--tp3-sans);color:var(--tp3-magenta)}
.tp45-imp-arrow::after{content:'→';position:absolute;right:0;bottom:-6px;font:normal 400 1.3rem/1 var(--tp3-sans);color:var(--tp3-ink)}

/* Cost factors */
.tp-editorial .tp45-factors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:1.4em 0}
.tp-editorial .tp45-factors>div{position:relative;padding:20px 22px 20px 26px;border-radius:12px;border:1px solid var(--tp3-line);background:#fff;transition:transform .35s var(--tp3-ease),box-shadow .35s}
.tp-editorial .tp45-factors>div::before{content:'';position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:0 3px 3px 0;background:var(--tp3-gold-soft)}
.tp-editorial .tp45-factors>div:hover{transform:translateY(-3px);box-shadow:0 20px 40px -28px #0b232880}
.tp-editorial .tp45-factors p{margin:0;font-size:.98rem;line-height:1.6}

/* Binding comparison */
.tp-editorial .tp45-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:1.4em 0 1.8em}
.tp-editorial .tp45-compare-card{padding:22px 24px 20px;border-radius:14px;border:1px solid var(--tp3-line);background:#fff}
.tp-editorial .tp45-compare-card svg{display:block;width:100%;max-width:240px;height:auto;margin:0 auto 14px;padding:10px 0;border-radius:10px;background:var(--tp3-paper)}
.tp-editorial .tp45-compare-card ul{margin:0;padding-left:1.1em;font-size:.97rem;line-height:1.6}
.tp-editorial .tp45-compare-card li{margin:.3em 0}
.tp-editorial .tp45-compare-card li::marker{color:var(--tp3-gold)}
.tp45-compare .d-page{fill:#fff;stroke:#cfc6ae;stroke-width:1.5}
.tp45-compare .d-lines2 rect{fill:#dcd4bf}
.tp45-compare .d-spine{fill:var(--tp3-teal-2)}
.tp45-compare .d-fold{fill:none;stroke:var(--tp3-ink);stroke-width:2.5;stroke-linejoin:round}
.tp45-compare .d-fold2{fill:none;stroke:#b9ae94;stroke-width:1.6}
.tp45-compare .d-staple{fill:var(--tp3-gold)}
.tp45-compare .d-cap2{font:500 11px var(--tp3-sans);fill:var(--tp3-muted)}

/* Scope: two columns */
.tp-editorial .tp45-scope{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-radius:14px;overflow:hidden;border:1px solid var(--tp3-line);margin:1.2em 0}
.tp-editorial .tp45-scope>div{padding:24px 26px}
.tp-editorial .tp45-scope .is-ours{background:var(--tp3-ink);color:var(--tp3-on-dark)}
.tp-editorial .tp45-scope .is-ours .tp45-label{color:var(--tp3-gold-soft)}
.tp-editorial .tp45-scope .is-yours{background:#fff}
.tp-editorial .tp45-scope ul{margin:0;padding:0;list-style:none}
.tp-editorial .tp45-scope li{position:relative;padding:6px 0 6px 28px;line-height:1.5}
.tp-editorial .tp45-scope li::before{position:absolute;left:0;top:6px;font-weight:700}
.tp-editorial .tp45-scope .is-ours li::before{content:'✓';color:var(--tp3-gold-soft)}
.tp-editorial .tp45-scope .is-yours li::before{content:'—';color:#b9ad90}

/* Backwards plan */
.tp-editorial .tp45-backplan{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:1.6em 0 .6em;padding:0 0 30px;list-style:none;font:600 .82rem/1.3 var(--tp3-sans);color:var(--tp3-ink);text-align:center}
.tp-editorial .tp45-backplan::after{content:'← plan backwards from your date';position:absolute;right:0;bottom:0;font:italic 500 .8rem/1 var(--tp3-sans);color:var(--tp3-magenta)}
.tp-editorial .tp45-backplan li{position:relative;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:74px;margin:0;padding:12px 8px;border-radius:10px;background:#fff;border:1px solid var(--tp3-line)}
.tp-editorial .tp45-backplan li:not(:last-child)::after{content:'';position:absolute;right:-8px;top:50%;width:8px;height:2px;background:#cfc5ab}
.tp-editorial .tp45-backplan small{font-weight:500;font-size:.72rem;color:var(--tp3-muted)}
.tp-editorial .tp45-backplan li.is-goal{background:var(--tp3-gold-soft);border-color:var(--tp3-gold-soft)}
.tp-editorial .tp45-backplan li.is-goal small{color:var(--tp3-ink)}

/* Offset vs digital: where the effort goes */
.tp45-bars{display:grid;gap:14px;padding:24px 22px;border-radius:14px;background:var(--tp3-paper);border:1px solid var(--tp3-line)}
.tp45-bar-row{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:14px}
.tp45-bar-label{font:700 .8rem/1 var(--tp3-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--tp3-ink)}
.tp45-bar{display:flex;height:46px;border-radius:10px;overflow:hidden;background:#fff;border:1px solid var(--tp3-line)}
.tp45-bar i{display:flex;align-items:center;flex:0 0 var(--w);min-width:0;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:600 .8rem/1.2 var(--tp3-sans);font-style:normal;transform-origin:0 50%}
.tp45-bar i.is-setup{background:repeating-linear-gradient(135deg,#e7dfca 0 8px,#efe8d6 8px 16px);color:var(--tp3-ink)}
.tp45-bar i.is-run{background:var(--tp3-magenta);color:#fff}
.tp45-bar i.is-run.is-digital{background:var(--tp3-cyan)}

/* Text + image row */
.tp-editorial .tp45-media-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:28px;align-items:start}
.tp-editorial .tp45-media-row p:last-child{margin-bottom:0}

/* Comparison table */
.tp45-table-wrap{margin:1.2em 0;border-radius:14px;border:1px solid var(--tp3-line);overflow-x:auto;background:#fff}
.tp-editorial .tp45-table{width:100%;border-collapse:collapse;font-size:.97rem;line-height:1.5}
.tp-editorial .tp45-table th,.tp-editorial .tp45-table td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--tp3-line)}
.tp-editorial .tp45-table tr:last-child th,.tp-editorial .tp45-table tr:last-child td{border-bottom:0}
.tp-editorial .tp45-table thead th{background:var(--tp3-ink);color:#fff;font:700 .74rem/1.2 var(--tp3-sans);letter-spacing:.12em;text-transform:uppercase}
.tp-editorial .tp45-table thead th:nth-child(2){box-shadow:inset 0 -3px var(--tp3-magenta)}
.tp-editorial .tp45-table thead th:nth-child(3){box-shadow:inset 0 -3px var(--tp3-cyan)}
.tp-editorial .tp45-table tbody th{width:34%;font-weight:600;color:var(--tp3-ink);background:var(--tp3-cream)}
.tp-editorial .tp45-table tbody tr:hover td{background:#fbf9f3}

/* Common jobs */
.tp-editorial .tp45-jobs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:1.2em 0}
.tp-editorial .tp45-jobs>div{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border-radius:12px;border:1px solid var(--tp3-line);background:#fff}
.tp-editorial .tp45-jobs strong{font:600 1.2rem/1.2 var(--tp3-serif);color:var(--tp3-ink)}
.tp-editorial .tp45-jobs span{font-size:.95rem;line-height:1.55}
.tp-editorial .tp45-body .tp45-jobs a{color:var(--tp3-ink);text-decoration:none;background:linear-gradient(var(--tp3-gold-soft),var(--tp3-gold-soft)) 0 100%/0 2px no-repeat;transition:background-size .35s var(--tp3-ease)}
.tp-editorial .tp45-body .tp45-jobs a::after{content:' ↗';font-size:.8em;color:var(--tp3-magenta)}
.tp-editorial .tp45-body .tp45-jobs a:hover{background-size:100% 2px}

/* Quick check */
.tp-editorial .tp45-quiz{margin:1.2em 0;padding:26px 28px;border-radius:16px;background:var(--tp3-ink);color:var(--tp3-on-dark)}
.tp-editorial .tp45-quiz fieldset{margin:0 0 18px;padding:0;border:0}
.tp-editorial .tp45-quiz legend{margin-bottom:10px;font:600 1.3rem/1.25 var(--tp3-serif);color:#fff}
.tp-editorial .tp45-quiz label{display:inline-flex;align-items:center;gap:10px;margin:0 8px 8px 0;padding:10px 16px;border-radius:99px;border:1px solid #ffffff33;font:500 .95rem/1.2 var(--tp3-sans);cursor:pointer;transition:background .25s,border-color .25s,color .25s}
.tp-editorial .tp45-quiz label:hover{border-color:var(--tp3-gold-soft)}
.tp-editorial .tp45-quiz input{-webkit-appearance:none;appearance:none;flex:0 0 auto;width:18px;height:18px;min-height:0;margin:0;padding:0;border-radius:50%;border:2px solid #ffffff8c;background:transparent;box-shadow:none;cursor:pointer}
.tp-editorial .tp45-quiz input:checked{border-color:var(--tp3-ink);background:radial-gradient(circle,var(--tp3-ink) 40%,transparent 46%)}
.tp-editorial .tp45-quiz label:has(input:checked){background:var(--tp3-gold-soft);border-color:var(--tp3-gold-soft);color:var(--tp3-ink)}
.tp-editorial .tp45-quiz label:has(input:focus-visible){outline:2px solid #fff;outline-offset:2px}
.tp-editorial .tp45-quiz-result{margin:6px 0 0;padding:16px 18px;border-radius:12px;background:#ffffff12;border-left:3px solid var(--tp3-gold-soft);color:var(--tp3-on-dark)}
.tp-editorial .tp45-quiz-result strong{color:#fff}

/* About this guide */
.tp-editorial .tp45-about{display:flex;gap:18px;align-items:flex-start;margin:3em 0 0;padding:22px 24px;border-radius:14px;border:1px dashed #cfc5ab;background:var(--tp3-cream)}
.tp45-about-mark{display:grid;grid-template-columns:repeat(2,12px);gap:4px;flex:0 0 auto;margin-top:4px}
.tp45-about-mark i{width:12px;height:12px;border-radius:50%}
.tp45-about-mark i:nth-child(1){background:var(--tp3-cyan)}.tp45-about-mark i:nth-child(2){background:var(--tp3-magenta)}.tp45-about-mark i:nth-child(3){background:var(--tp3-yellow)}.tp45-about-mark i:nth-child(4){background:var(--tp3-ink)}
.tp-editorial .tp45-about p:last-child{margin:0;font-size:.95rem;line-height:1.65}

/* Related */
.tp-editorial .tp45-related h2{margin:8px 0 26px;font:600 clamp(1.9rem,3.2vw,2.6rem)/1.1 var(--tp3-serif);color:var(--tp3-ink)}
.tp45-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tp-editorial .tp45-related-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:22px 22px 44px;border-radius:14px;border:1px solid var(--tp3-line);background:#fff;color:var(--tp3-text);text-decoration:none;transition:transform .35s var(--tp3-ease),border-color .3s}
.tp-editorial .tp45-related-card:hover{transform:translateY(-4px);border-color:var(--tp3-gold-soft)}
.tp-editorial .tp45-related-card strong{font:600 1.25rem/1.2 var(--tp3-serif);color:var(--tp3-ink)}
.tp-editorial .tp45-related-card span{font-size:.9rem;line-height:1.55}
.tp-editorial .tp45-related-card i{position:absolute;left:22px;bottom:16px;font-style:normal;color:var(--tp3-magenta)}
.tp-editorial .tp45-next{margin-top:34px;padding-top:26px;border-top:1px solid var(--tp3-line)}
.tp-editorial .tp45-next a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 20px;padding:18px 22px;border-radius:14px;background:var(--tp3-paper);color:var(--tp3-ink);text-decoration:none;transition:background .3s}
.tp-editorial .tp45-next a+a{margin-top:10px}
.tp-editorial .tp45-next a:hover{background:var(--tp3-gold-soft)}
.tp-editorial .tp45-next span{grid-column:1;font:700 .66rem/1 var(--tp3-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--tp3-gold)}
.tp-editorial .tp45-next a:hover span{color:var(--tp3-ink)}
.tp-editorial .tp45-next strong{grid-column:1;font:600 clamp(1.3rem,2.2vw,1.7rem)/1.2 var(--tp3-serif)}
.tp-editorial .tp45-next i{grid-column:2;grid-row:1/3;font-style:normal;font-size:1.5rem;transition:transform .3s var(--tp3-ease)}
.tp-editorial .tp45-next a:hover i{transform:translateX(6px)}

/* CTA */
.tp45-cta{background:var(--tp3-ink);color:var(--tp3-on-dark);padding:clamp(48px,6vw,80px) 0}
.tp45-cta-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px}
.tp-editorial .tp45-cta h2{margin:8px 0 12px;max-width:18em;font:600 clamp(1.9rem,3.2vw,2.6rem)/1.12 var(--tp3-serif);color:#fff}
.tp-editorial .tp45-cta p{max-width:38em;margin:0;color:var(--tp3-on-dark)}
.tp45-cta-actions{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.tp-editorial .tp45-cta a.tp-text-link,.tp-editorial .tp45-cta a.tp-text-link:visited{color:var(--tp3-gold-soft);font-weight:600}

/* Hub */
.tp45-hub-hero{background:var(--tp3-cream);padding:clamp(44px,6vw,90px) 0 clamp(30px,4vw,50px)}
.tp-editorial .tp45-hub-hero h1{margin:10px 0 18px;max-width:14em;font:600 clamp(2.6rem,6vw,4.8rem)/1 var(--tp3-serif);letter-spacing:-.02em;color:var(--tp3-ink)}
.tp-editorial .tp45-hub-hero h1 em{color:var(--tp3-teal-2)}
.tp45-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:24px}
.tp-editorial .tp45-card{display:flex;flex-direction:column;overflow:hidden;border-radius:18px;border:1px solid var(--tp3-line);background:#fff;color:var(--tp3-text);text-decoration:none;transition:transform .4s var(--tp3-ease),box-shadow .4s}
.tp-editorial .tp45-card:hover{transform:translateY(-5px);box-shadow:0 30px 60px -36px #0b2328}
.tp45-card-media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:var(--tp3-ink)}
.tp-editorial .tp45-card-media>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--tp3-ease)}
.tp-editorial .tp45-card:hover .tp45-card-media>img{transform:scale(1.04)}
.tp45-card-media.is-covers{background:radial-gradient(circle at 50% 110%,#1d4a50,var(--tp3-ink) 70%)}
.tp45-fan.is-card{position:absolute;inset:0;height:auto}
.tp45-fan.is-card .tp45-fan-item{width:auto;height:74%;border-radius:4px}
.tp-editorial .tp45-card:hover .tp45-fan.is-card .tp45-fan-item{transform:translate(-50%,-50%) translateX(calc(var(--i) * 40%)) rotate(calc(var(--i) * 6deg)) translateY(calc(var(--i) * var(--i) * 3%))}
.tp45-card-body{display:flex;flex-direction:column;gap:10px;padding:22px 24px 26px}
.tp45-card-meta{font:700 .68rem/1 var(--tp3-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--tp3-gold)}
.tp-editorial .tp45-card strong{font:600 1.6rem/1.15 var(--tp3-serif);color:var(--tp3-ink)}
.tp45-card-text{font-size:.98rem;line-height:1.6}
.tp45-card-link{margin-top:auto;padding-top:4px;font:600 .92rem/1 var(--tp3-sans);color:var(--tp3-teal-2)}
.tp-editorial .tp45-hub-note{margin:32px 0 0;color:var(--tp3-muted)}

/* Reveal on scroll (only once JS has marked the element; without JS everything is shown) */
.tp45-anim.tp45-flow::before{transform:scaleX(0);transition:transform 1.2s var(--tp3-ease) .1s}
.tp45-anim.tp45-flow li{opacity:0;transform:translateY(12px);transition:opacity .5s,transform .6s var(--tp3-ease)}
.tp45-anim.tp45-flow li:nth-child(2){transition-delay:.15s}.tp45-anim.tp45-flow li:nth-child(3){transition-delay:.3s}.tp45-anim.tp45-flow li:nth-child(4){transition-delay:.45s}.tp45-anim.tp45-flow li:nth-child(5){transition-delay:.6s}
.tp45-anim.is-in.tp45-flow::before{transform:none}
.tp45-anim.is-in.tp45-flow li{opacity:1;transform:none}
.tp45-anim .d-labels path{stroke-dashoffset:200;transition:stroke-dashoffset 1.4s var(--tp3-ease)}
.tp45-anim .d-labels text{opacity:0;transition:opacity .6s .5s}
.tp45-anim.is-in .d-labels path{stroke-dashoffset:0}
.tp45-anim.is-in .d-labels text{opacity:1}
.tp45-anim .d-cells rect{opacity:0;transition:opacity .35s calc(var(--k) * 70ms)}
.tp45-anim.is-in .d-cells rect{opacity:1}
.tp45-anim .d-sec{opacity:0;transform:translateY(-10px);transition:opacity .4s calc(.7s + (3 - var(--k)) * 120ms),transform .5s var(--tp3-ease) calc(.7s + (3 - var(--k)) * 120ms)}
.tp45-anim.is-in .d-sec{opacity:1;transform:none}
.tp45-anim .d-line{stroke-dasharray:700;stroke-dashoffset:700;transition:stroke-dashoffset 1.6s var(--tp3-ease)}
.tp45-anim .d-line.is-offset{transition-delay:.3s}
.tp45-anim.is-in .d-line{stroke-dashoffset:0}
.tp45-anim .d-cross,.tp45-anim .d-note,.tp45-anim .d-leader{opacity:0;transition:opacity .5s 1.5s}
.tp45-anim.is-in .d-cross,.tp45-anim.is-in .d-note,.tp45-anim.is-in .d-leader{opacity:1}
.tp45-anim .tp45-bar i{transform:scaleX(0);transition:transform .9s var(--tp3-ease)}
.tp45-anim .tp45-bar i.is-run{transition-delay:.45s}
.tp45-anim.is-in .tp45-bar i{transform:none}
.tp45-anim.tp45-compare>*,.tp45-anim.tp45-backplan li{opacity:0;transform:translateY(14px);transition:opacity .5s,transform .6s var(--tp3-ease)}
.tp45-anim.tp45-compare>*:nth-child(2){transition-delay:.15s}
.tp45-anim.tp45-backplan li:nth-last-child(2){transition-delay:.12s}.tp45-anim.tp45-backplan li:nth-last-child(3){transition-delay:.24s}.tp45-anim.tp45-backplan li:nth-last-child(4){transition-delay:.36s}.tp45-anim.tp45-backplan li:nth-last-child(5){transition-delay:.48s}.tp45-anim.tp45-backplan li:nth-last-child(6){transition-delay:.6s}
.tp45-anim.is-in.tp45-compare>*,.tp45-anim.is-in.tp45-backplan li{opacity:1;transform:none}

@media(max-width:1000px){
  .tp45-hero-grid{grid-template-columns:minmax(0,1fr)}
  .tp45-fan{height:clamp(260px,52vw,380px);max-width:560px;margin:0 auto}
  .tp45-layout{grid-template-columns:minmax(0,1fr)}
  .tp45-toc{position:static;padding:20px 22px;border-radius:14px;background:var(--tp3-paper)}
  .tp45-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .tp-editorial .tp45-flow{font-size:.66rem;letter-spacing:.02em}
  .tp45-flow-icon{width:44px;height:44px}
  .tp-editorial .tp45-flow::before{top:21px}
  .tp45-flow-icon svg{width:20px;height:20px}
  .tp-editorial .tp45-backplan{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tp-editorial .tp45-backplan li:nth-child(3n)::after{display:none}
  .tp-editorial .tp45-media-row{grid-template-columns:minmax(0,1fr)}
  .tp45-imp{flex-direction:column;gap:6px}
  .tp45-imp-part,.tp45-imp-part.is-narrow{flex:none;width:100%}
  .tp45-imp-part svg{height:110px}
  .tp45-imp-arrow{margin:4px 0 8px;padding:0 0 18px 0}
  .tp45-imp-arrow::after{content:'↓';right:auto;left:50%;bottom:-4px;transform:translateX(-50%)}
  .tp45-diagram .d-labels text{font-size:18px}
  .tp45-diagram svg[aria-labelledby="tp45-cost-t"] text{font-size:21px}
  .tp45-diagram svg[aria-labelledby="tp45-cost-t"] .d-note{font-size:18px}
}
@media(max-width:600px){
  .tp-editorial .tp45-factors,.tp45-related-grid,.tp-editorial .tp45-compare,.tp-editorial .tp45-scope,.tp-editorial .tp45-jobs{grid-template-columns:1fr}
  .tp-editorial .tp45-step{padding-left:56px}
  .tp-editorial .tp45-step-n{width:40px;height:40px;font-size:.95rem}
  .tp-editorial .tp45-step::before{left:19px;top:46px}
  .tp-editorial .tp45-step.is-portrait{grid-template-columns:minmax(0,1fr)}
  .tp-editorial .tp45-step.is-portrait .tp45-step-visual{max-width:280px}
  .tp-editorial .tp45-step-visual.tp45-diagram{padding:14px 12px 10px}
  .tp-editorial .tp45-takeaways,.tp-editorial .tp45-quiz{padding:22px 20px}
  .tp-editorial .tp45-quiz label{display:flex;margin-right:0}
  .tp45-bar-row{grid-template-columns:minmax(0,1fr);gap:6px}
  .tp45-bar{height:auto;min-height:52px}
  .tp45-bar i{white-space:normal;padding:8px 10px;font-size:.74rem;line-height:1.25}
  .tp45-bar i.is-setup.is-short{flex-basis:10%;padding:0}
  .tp-editorial .tp45-table th,.tp-editorial .tp45-table td{padding:12px 12px;font-size:.9rem}
  .tp45-hero-clip{width:min(82%,340px)}
  .tp-editorial .tp45-backplan::after{left:0;right:auto}
  .tp-editorial .tp45-body .tp45-first::first-letter{font-size:3.1em}
}
@media(prefers-reduced-motion:reduce){
  .tp45-progress{display:none}
  .tp45-hero .tp45-fan-item{animation:none}
  .tp45-fan-item,.tp-editorial .tp45-card,.tp-editorial .tp45-card-media img,.tp-editorial .tp45-factors>div,.tp-editorial .tp45-related-card{transition:none}
  .tp45-anim,.tp45-anim *,.tp45-anim::before{transition:none!important}
}
