/* business-plan-template (build_business_plan_template.py). Every rule starts with .ta-bpl.
   Centrepiece: the plan as a bound report, a cover to fill in beside a contents page with dotted leaders and an index tab per section. */
.ta-bpl .bpl-in{max-width:1220px;margin:0 auto;padding:0 28px}
.ta-bpl section[class^="bpl-"] h2{font-size:clamp(1.6rem,2.4vw,2.1rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0;max-width:none}

.ta-bpl .bpl-doc{background:var(--plum);padding:64px 0 88px}
.ta-bpl .bpl-doc .bpl-in{display:grid;grid-template-columns:minmax(0,1fr) 392px;gap:64px;align-items:start}
.ta-bpl .bpl-main h2{color:#fff}
.ta-bpl .bpl-lede{margin:10px 0 0;font-size:1.05rem;color:#f3dbe4}
.ta-bpl .bpl-report{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);margin:34px 30px 0 0;color:var(--ink)}
.ta-bpl .bpl-cover{position:relative;background:var(--cfield);padding:54px 28px 40px 52px;border-radius:4px 0 0 4px}
.ta-bpl .bpl-cover:before{content:"";position:absolute;left:14px;top:18px;bottom:18px;width:14px;background:repeating-linear-gradient(180deg,var(--ink) 0 8px,rgba(255,255,255,0) 8px 22px);border-radius:7px}
.ta-bpl .bpl-title{margin:0 0 72px;font-family:var(--head);font-weight:700;font-size:2rem;line-height:1.05;letter-spacing:-.035em}
.ta-bpl .bpl-f{margin:26px 0 0;font-size:.86rem;font-weight:700}
.ta-bpl .bpl-f i{display:block;border-top:2px solid var(--ink);margin-bottom:7px}
.ta-bpl .bpl-toc{list-style:none;margin:0;padding:26px 0 26px;background:#fff;counter-reset:bpl;position:relative;border-radius:0 4px 4px 0}
.ta-bpl .bpl-toc li{counter-increment:bpl;position:relative;display:flex;align-items:baseline;gap:10px;padding:0 34px 0 32px;height:52px;line-height:52px}
.ta-bpl .bpl-toc li:before{content:counter(bpl);flex:none;width:22px;font-family:var(--head);font-weight:700;color:var(--c)}
.ta-bpl .bpl-toc span{font-family:var(--head);font-weight:600;font-size:1.03rem;letter-spacing:-.012em;white-space:nowrap}
.ta-bpl .bpl-toc li:after{content:"";flex:1;min-width:12px;border-bottom:2px dotted #a79fa3;transform:translateY(-6px)}
.ta-bpl .bpl-toc li i{display:none}
.ta-bpl .bpl-toc:after{content:"";position:absolute;left:100%;top:26px;width:30px;height:468px;background:repeating-linear-gradient(180deg,var(--cfield) 0 44px,rgba(255,255,255,0) 44px 52px);border-radius:0 6px 6px 0}

/* subscription box, side column */
.ta-bpl .bpl-side{position:sticky;top:24px;min-width:0}
.ta-bpl .tpl{border:0;border-radius:14px;overflow:hidden;margin:0;background:#fff}
.ta-bpl .tplbar{display:none}
.ta-bpl .bpl-doc .bpl-in:has(.tpldoc:not(.hidden-guide)){grid-template-columns:1fr}
.ta-bpl .bpl-in:has(.tpldoc:not(.hidden-guide)) .bpl-side{position:static}
.ta-bpl .tpl:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}
.ta-bpl .tplgate{background:#fff;text-align:left;padding:30px 28px}
.ta-bpl .tplgate>p{margin-left:0}
.ta-bpl .tplcta{justify-content:flex-start;gap:14px}
.ta-bpl .tplcta .btn{background:var(--ink);border-color:var(--ink);color:#fff;white-space:normal}
.ta-bpl .tplgate>.tpldfy{background:#fff0f4;margin:26px -28px -30px;padding:26px 28px 30px;border-top:0;text-align:left;max-width:none}
.ta-bpl .tpldfy>p{margin-left:0}
.ta-bpl .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}

/* filling it in: the sections whose figures have to agree */
.ta-bpl .bpl-fill{padding:80px 0 76px}
.ta-bpl .bpl-fill .bpl-in{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:72px;align-items:center}
.ta-bpl .bpl-fill-tx p{margin:16px 0 0;font-size:1.1rem;line-height:1.7;color:#2f2b2e}
.ta-bpl .bpl-agree{display:grid;grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);grid-template-rows:auto auto;gap:16px 0;align-items:center}
.ta-bpl .bpl-chip{margin:0;grid-column:1;padding:16px 18px;border:2px solid var(--ink);border-radius:10px;font-family:var(--head);font-weight:700;font-size:1.02rem;letter-spacing:-.012em;line-height:1.25;position:relative;background:#fff}
.ta-bpl .bpl-chip:after{content:"";position:absolute;left:100%;top:50%;width:72px;border-top:2px solid var(--ink)}
.ta-bpl .bpl-chip.bpl-fin{grid-column:3;grid-row:1/span 2;background:var(--cfield);border-color:var(--cfield);padding:34px 20px}
.ta-bpl .bpl-chip.bpl-fin:after{display:none}

/* the law */
.ta-bpl .bpl-law{padding:0 0 76px}
.ta-bpl .bpl-law .bpl-in{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:20px 64px}
.ta-bpl .bpl-law .bpl-in>h2{grid-column:1/-1;padding-top:30px;border-top:4px solid var(--ink)}
.ta-bpl .bpl-lawp{margin:0;font-family:var(--head);font-weight:500;font-size:1.1rem;line-height:1.68;letter-spacing:-.008em;color:var(--ink)}
.ta-bpl .bpl-b4{background:#fff0f4;border-radius:14px;padding:24px 26px 26px;align-self:start}
.ta-bpl .bpl-law .bpl-b4 h2{font-size:1.15rem}
.ta-bpl .bpl-b4 p{margin:8px 0 0;line-height:1.65;color:#2f2b2e}

.ta-bpl .bpl-faq{background:#fff0f4;padding:64px 0 68px}
.ta-bpl .bpl-faq .bpl-in{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:48px;align-items:start}
.ta-bpl .bpl-qs{border-top:2px solid var(--ink)}
.ta-bpl .bpl-qs details.fq{border-bottom-color:#e9c3cf}

/* related: a contents-style list with dotted leaders */
.ta-bpl .art-rel{padding-block:64px 68px}
.ta-bpl .art-rel-grid{grid-template-columns:1fr;gap:0;max-width:760px}
.ta-bpl .art-rel-grid a,.ta-bpl .art-rel-grid a:first-child{min-height:0;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:12px;padding:12px 0;border:0;border-radius:0;background:none}
.ta-bpl .art-rel-grid a i{order:3}
.ta-bpl .art-rel-grid a:after{content:"";flex:1;order:2;border-bottom:2px dotted #a79fa3;transform:translateY(-5px)}
.ta-bpl .art-rel-grid a:hover{transform:none;box-shadow:none;color:var(--c)}

.ta-bpl .close{background:var(--cfield)}
.ta-bpl .close h2,.ta-bpl .close .r p{color:var(--ink)}
.ta-bpl .close .r a{background:var(--ink);color:#fff}
.ta-bpl .close .r a:hover{background:#fff;color:var(--ink)}

@media (max-width:980px){
.ta-bpl .bpl-doc .bpl-in,.ta-bpl .bpl-fill .bpl-in,.ta-bpl .bpl-law .bpl-in,.ta-bpl .bpl-faq .bpl-in{grid-template-columns:1fr;gap:32px}
.ta-bpl .bpl-side{position:static}
}
@media (max-width:620px){
.ta-bpl .bpl-report{grid-template-columns:1fr;margin-right:24px}
.ta-bpl .bpl-cover{border-radius:4px 4px 0 0;padding:34px 24px 30px 48px}
.ta-bpl .bpl-title{margin-bottom:26px}
.ta-bpl .bpl-toc{border-radius:0 0 4px 4px}
.ta-bpl .bpl-toc li{padding:0 14px 0 18px}
.ta-bpl .bpl-toc span{font-size:.92rem}
.ta-bpl .bpl-toc:after{width:22px}
.ta-bpl .bpl-agree{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr)}
.ta-bpl .bpl-chip{padding:12px 12px;font-size:.92rem}
.ta-bpl .bpl-chip:after{width:28px}
}
