/* Content glue for chapters 5–8. Canvas geometry, type, paper and navigation
   come from the same viewer.css / viewer-core.js used by chapters 1–4. */
.advanced-flow .working-canvas-node:has(.advanced-content-stack){width:max-content;min-width:0;padding:0;border:0;border-radius:0}
.advanced-content-stack,.advanced-worksheet-part{width:max-content;min-width:760px;max-width:none}
.advanced-worksheet-part+.advanced-worksheet-part{margin-top:64px}
.advanced-letter-layout{width:760px}
.advanced-flow .fundamentals-letter-layout{margin-bottom:0}
.advanced-flow [data-fundamentals-question]>.fundamentals-letter-question-text{display:block}
.advanced-flow .advanced-answer-stack{width:max-content;min-width:760px;margin-top:48px}
.advanced-flow .advanced-answer{width:max-content;max-width:none}
.advanced-flow .advanced-answer+.advanced-answer{margin-top:32px}
.advanced-flow .advanced-answer>h3{margin:0 0 .7em}
.advanced-flow .advanced-answer>:is(p,ul,ol){width:1100px;max-width:1100px;margin:0 0 .7em}
.advanced-flow .advanced-answer>:is(ul,ol){padding-left:1.4em}
.advanced-flow .advanced-answer li{margin:0 0 .4em}
.advanced-flow .fundamentals-letter-answer .advanced-answer{width:100%}
.advanced-flow .fundamentals-letter-answer .advanced-answer>:is(p,ul,ol){width:auto;max-width:none}
.advanced-flow .fundamentals-letter-answer .advanced-answer>:last-child{margin-bottom:0}
.advanced-flow table{margin:.8em 0 1em}
.advanced-flow .advanced-table-copy{max-width:30ch;white-space:normal}
.advanced-flow .advanced-number-cell{white-space:nowrap;text-align:right}
.advanced-flow .equation{width:max-content;max-width:100%;margin:1em 0}
.advanced-flow .equation>.katex-display,.advanced-flow .equation>.katex-display>.katex{text-align:left;margin:0}
.advanced-flow .theory-manual-copy>.worksheet-concept-figure{width:800px;max-width:100%;margin:24px auto}
.advanced-flow .theory-manual-copy>.worksheet-concept-figure img{display:block;width:100%;height:auto;max-width:none}
.advanced-flow .strategy-map{width:1100px;display:grid;gap:40px;margin:24px 0}
.advanced-flow .strategy-level{position:relative;border:1px solid #dce1d8;padding:20px 24px;background:#f7f9f4}
.advanced-flow .strategy-level h3{margin:0 0 .7em}
.advanced-flow .strategy-level p+p{margin-top:.5em}
.advanced-flow .strategy-map-up .strategy-level:not(:last-child)::after,.advanced-flow .strategy-map-down .strategy-level:not(:last-child)::after{content:'↑';position:absolute;bottom:-40px;left:calc(50% - 12px);width:24px;height:40px;line-height:40px;text-align:center;color:#518469}
.advanced-flow .strategy-map-down .strategy-level:not(:last-child)::after{content:'↓'}
@media screen and (max-width:700px){
 .advanced-flow .advanced-content-stack,.advanced-flow .advanced-worksheet-part{width:100%;min-width:0}
 .advanced-flow .advanced-worksheet-part+.advanced-worksheet-part{margin-top:40px}
 .advanced-flow .advanced-answer-stack{margin-top:28px}
 .advanced-flow .advanced-answer{margin-bottom:24px}
 .advanced-flow .advanced-answer>:is(p,ul,ol){width:auto;max-width:100%}
 .advanced-flow .fundamentals-letter-answers{border-left:0;padding:0!important}
 .advanced-flow .advanced-table-copy{max-width:30ch}
 .advanced-flow .equation{overflow-x:auto;max-width:100%;padding-bottom:8px}
 .advanced-flow .equation .katex{font-size:1em}
 .advanced-flow .strategy-map{width:100%}
 .advanced-flow .strategy-level{position:relative!important}
}
@media print{
 .advanced-flow .advanced-content-stack,.advanced-flow .advanced-worksheet-part{width:100%;min-width:0}
 .advanced-flow .advanced-answer>:is(p,ul,ol){width:auto;max-width:100%}
}

/* Page navigation focuses the rendered letter without drawing an interaction ring. */
.advanced-flow .exercise-letter-document[tabindex="-1"]:focus{outline:none}

/* Keep Budgeting explanations next to their related table on the white canvas. */
.advanced-flow .advanced-table-with-note{display:grid;grid-template-columns:max-content 470px;align-items:start;gap:64px;width:max-content}
.advanced-flow .advanced-table-main{min-width:0}
.advanced-flow .advanced-table-note{width:470px;padding-top:.8em}
.advanced-flow .advanced-table-note p{margin:0 0 1em;line-height:1.5}
.advanced-flow .advanced-table-note>:last-child{margin-bottom:0}
@media screen and (max-width:700px),print{
 .advanced-flow .advanced-table-with-note{display:block;width:100%;max-width:100%}
 .advanced-flow .advanced-table-note{width:auto;max-width:100%;padding-top:0;margin-top:20px}
}

/* Consecutive Budgeting explanation paragraphs use a plain line break. */
[data-chapter="6"] .advanced-flow .advanced-answer p:has(+p){margin-bottom:0!important}
[data-chapter="6"] .advanced-flow .advanced-answer p+p{margin-top:0!important}

.advanced-flow .inline-equation>.katex{font-size:1em;font-weight:400}

.advanced-flow table .inline-equation>.katex{font-size:1.1em}

/* Let each Budgeting prompt table take only the width its content needs. */
body[data-chapter="6"] #content .advanced-flow .exercise-letter .exercise-letter-table{
 width:auto!important;max-width:100%!important;table-layout:auto!important;
}
body[data-chapter="6"] #content .advanced-flow .exercise-letter .advanced-table-copy{max-width:none}

@media screen and (max-width:700px){
 body[data-chapter="6"] #content .advanced-flow .exercise-letter .exercise-letter-table{width:max-content!important;max-width:none!important}
}

/* One case, adjacent workstreams; retain each prompt and its own answers. */
.advanced-flow .advanced-case-columns{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;align-items:start;gap:112px;width:max-content}
.advanced-flow .advanced-case-column{width:max-content;min-width:760px}
.advanced-flow .advanced-case-column .advanced-answer>:is(p,ul,ol){width:760px;max-width:760px}
.advanced-flow .advanced-case-column .advanced-table-with-note{display:block}
.advanced-flow .advanced-case-column .advanced-table-note{width:760px;padding-top:0;margin-top:20px}
@media screen and (max-width:700px),print{
 .advanced-flow .advanced-case-columns{display:block;width:100%}
 .advanced-flow .advanced-case-column{width:100%;min-width:0}
 .advanced-flow .advanced-case-column+.advanced-case-column{margin-top:40px}
 .advanced-flow .advanced-case-column .advanced-answer>:is(p,ul,ol),.advanced-flow .advanced-case-column .advanced-table-note{width:auto;max-width:100%}
}

/* A single case letter followed by its matching, clearly separated solutions. */
.advanced-flow .advanced-unified-case .advanced-answer-stack{display:grid;grid-auto-flow:column;grid-auto-columns:max-content;align-items:start;gap:80px;width:max-content}
.advanced-flow .advanced-unified-case .advanced-solution-group{min-width:360px}
.advanced-flow .advanced-unified-case .advanced-solutions-three{grid-auto-flow:row;grid-template-columns:repeat(3,max-content);row-gap:72px}
.advanced-flow .advanced-unified-case .advanced-solution-group+.advanced-solution-group{margin-top:0}
.advanced-flow .advanced-solution-letter{font:inherit;font-weight:500;margin:0 0 18px;color:#50554f}
.advanced-flow .advanced-unified-case .advanced-answer>:is(p,ul,ol){width:480px;max-width:480px}
.advanced-flow .advanced-unified-case .advanced-table-with-note{display:block}
.advanced-flow .advanced-unified-case .advanced-table-note{width:480px;padding-top:0;margin-top:16px}
.advanced-flow .advanced-unified-case .exercise-letter [data-question]{display:block;margin-bottom:20px}
.advanced-flow .advanced-unified-case .exercise-letter p:last-child [data-question]{margin-bottom:0}
@media screen and (max-width:700px),print{
 .advanced-flow .advanced-unified-case .advanced-answer-stack{display:block;width:100%;min-width:0}
 .advanced-flow .advanced-unified-case .advanced-solution-group{min-width:0}
 .advanced-flow .advanced-unified-case .advanced-answer>:is(p,ul,ol),
 .advanced-flow .advanced-unified-case .advanced-table-note{width:auto;max-width:100%}
 .advanced-flow .advanced-unified-case .advanced-solution-group+.advanced-solution-group{margin-top:36px}
}

/* Share the formula-row height so all four BrightBite tables start together. */
@media screen and (min-width:701px){
 .advanced-flow .advanced-unified-case .advanced-aligned-tables{grid-template-rows:auto auto auto;row-gap:0;align-items:stretch}
 .advanced-flow .advanced-aligned-tables .advanced-solution-group{display:grid;grid-template-rows:subgrid;grid-row:span 3;align-items:start}
 .advanced-flow .advanced-aligned-tables .advanced-table-body table{margin-top:0}
}

/* A restrained visual link from the sales-results block to its formula. */
.advanced-flow .revenue-link{position:relative;display:grid;grid-template-columns:max-content max-content;align-items:center;gap:80px;width:max-content}
.advanced-flow .revenue-link>.advanced-answer{margin:0}
.advanced-flow .revenue-table-frame{position:relative;width:max-content}
.advanced-flow .revenue-table-frame table{margin:0}
.advanced-flow .revenue-link svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;color:#b5635e}
.advanced-flow .revenue-result-outline rect{fill:none;stroke:currentColor;stroke-width:1.4;stroke-dasharray:6 5}
.advanced-flow .revenue-formula-connector path{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
@media screen and (max-width:700px),print{
 .advanced-flow .revenue-link{display:block;width:100%}
 .advanced-flow .revenue-link>.advanced-answer+.advanced-answer{margin-top:44px}
}
@media screen and (max-width:700px){
 body[data-chapter="6"] #content .worksheet-mobile-flow .revenue-link,
 body[data-chapter="6"] #content .worksheet-mobile-flow .revenue-table-frame{position:relative!important}
 body[data-chapter="6"] #content .worksheet-mobile-flow .revenue-table-frame{width:max-content!important;max-width:none!important;min-width:max-content!important}
 .advanced-flow .revenue-link .mobile-table-scroll{margin:0;padding:0}
 .advanced-flow .revenue-link>.advanced-answer{max-width:100%;min-width:0}
}

/* A quiet visual key between a calculation and exactly the cells it explains. */
.advanced-flow .calculation-link{position:relative;display:grid;grid-template-columns:max-content max-content;align-items:start;column-gap:80px;width:max-content;padding-bottom:64px;margin:1em 0}
.advanced-flow .calculation-table-frame{position:relative;width:max-content}
.advanced-flow .calculation-table-frame table{margin:0}
.advanced-flow .calculation-note{width:max-content;margin-top:0}
.advanced-flow .calculation-note .equation{margin:0;max-width:none}
.advanced-flow .calculation-note .equation+.equation{margin-top:12px}
.advanced-flow .calculation-link svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;color:#b5635e}
.advanced-flow .calculation-outline rect{fill:none;stroke:currentColor;stroke-width:1.4;stroke-dasharray:6 5}
.advanced-flow .calculation-connector path{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.advanced-flow .calculation-empty-answer{display:none}
.advanced-flow .advanced-aligned-tables .advanced-table-body .calculation-link{margin-top:0}
@media screen and (max-width:700px){
 body #content .worksheet-mobile-flow .calculation-link{position:relative!important;display:block;width:100%!important;max-width:100%!important;min-width:0!important;padding:0}
 body #content .worksheet-mobile-flow .calculation-table-frame{position:relative!important;width:max-content!important;max-width:none!important;min-width:max-content!important}
 .advanced-flow .calculation-link .mobile-table-scroll{margin:0;padding:0}
 .advanced-flow .calculation-note{width:100%;max-width:100%;margin-top:34px}
 .advanced-flow .calculation-note .equation{max-width:100%}
}

/* Selected formulas sit directly beneath their table. */
.advanced-flow .calculation-link.calculation-link-below{display:block;padding-bottom:0}
.advanced-flow .calculation-link-below .calculation-note{margin-top:34px}

.advanced-flow .revenue-link.revenue-link-below{display:block}
.advanced-flow .revenue-link-below>.advanced-answer+.advanced-answer{margin-top:44px}

/* A table may explain inventory rows beside it and retain a cost formula below. */
.advanced-flow .calculation-note.calculation-note-below{grid-column:1;grid-row:2;margin-top:34px}
@media screen and (max-width:700px){
 .advanced-flow .calculation-note.calculation-note-below{margin-top:18px}
}

/* Separate hours and costs so each table has one unambiguous formula. */
.advanced-flow .labour-budget-grid{display:grid;grid-template-columns:max-content max-content;gap:100px;align-items:start;width:max-content}
.advanced-flow .labour-budget-grid .calculation-link{margin-top:0}
@media screen and (max-width:700px),print{
 .advanced-flow .labour-budget-grid{display:block;width:100%}
 .advanced-flow .labour-budget-grid>section+section{margin-top:36px}
}

/* Short prose explanations can use the same precise table-cell annotation. */
.advanced-flow .calculation-note>p{width:380px;max-width:380px;margin:0;line-height:1.45}
@media screen and (max-width:700px){
 .advanced-flow .calculation-note>p{width:auto;max-width:100%}
}

@media screen and (max-width:700px){
 .advanced-flow :is(.calculation-connector,.revenue-formula-connector){overflow:hidden}
}

@media screen and (max-width:700px){
 .advanced-flow .calculation-note>.equation,
 .advanced-flow .revenue-link-below .equation{margin-left:auto;margin-right:auto}
}
/* Keep highlighted totals legible when a centred connector passes behind them. */
.advanced-flow :is(.calculation-link,.revenue-link) table mark{position:relative;z-index:1}

/* Keep a shared stock explanation on one line on the open canvas. */
.advanced-flow .calculation-shared-note>.calculation-note:not(.calculation-note-below)>p{width:max-content!important;max-width:none!important;white-space:nowrap!important}
.advanced-flow .calculation-link td.worksheet-summary-column{--connector-number-bg:#f1f4ed}
.advanced-flow .calculation-link tr.worksheet-intermediate-row td.worksheet-summary-column{--connector-number-bg:#e3ecf1}
.advanced-flow .calculation-link td.worksheet-summary-column .katex-html{position:relative;z-index:1;background:var(--connector-number-bg)}
.advanced-flow .calculation-link td.worksheet-summary-column mark .katex-html{background:inherit}
@media screen and (max-width:700px){
 .advanced-flow .calculation-shared-note>.calculation-note:not(.calculation-note-below){overflow-x:auto}
}

/* Keep the cash-treatment note directly beneath its overhead table. */
.advanced-flow [data-calculation-link="grant-overhead-q1-answer-2"]{padding-bottom:0;margin-bottom:16px}
.advanced-flow .overhead-cash-note{margin-top:0;max-width:650px}

.advanced-flow [data-calculation-link="moe-materials-q1-answer-2"]{padding-bottom:0;margin-bottom:16px}
.advanced-flow .materials-stock-note{margin-top:0;max-width:none}

/* Neighboring calculation boxes need room inside the rows and a visible gap between outlines. */
.advanced-flow .calculation-link tr.calculation-spaced-row>th,
.advanced-flow .calculation-link tr.calculation-spaced-row>td{padding-top:18px;padding-bottom:18px}

.advanced-flow .equation-with-assumption{display:flex;align-items:center;gap:20px}
.advanced-flow .equation-with-assumption .katex-display{margin:0}
.advanced-flow .equation-with-assumption>.calculation-assumption{margin:0;white-space:nowrap;font:inherit;color:#505650}
.advanced-flow [data-calculation-link="raber-collections-q1-answer-2"]{padding-bottom:0;margin-bottom:16px}
.advanced-flow .collections-timing-note{margin-top:0;max-width:none}
@media screen and (max-width:700px){
 .advanced-flow .equation-with-assumption{display:block}
 .advanced-flow .equation-with-assumption>.calculation-assumption{white-space:normal;margin-top:4px}
}

/* Equal row heights are measured per table; all cell contents sit at their vertical midpoint. */
.advanced-flow table :is(th,td){vertical-align:middle!important}

/* Grant: track the overhead rate and attach assumptions to the values they explain. */
.advanced-flow .grant-reference-layout{position:relative}
.advanced-flow [data-calculation-link="grant-overhead-q1-answer-2"]{padding-bottom:110px}
.advanced-flow .grant-activity-note,.advanced-flow .grant-depreciation-note{position:absolute;width:560px;max-width:560px;margin:0;line-height:1.45}
.advanced-flow .grant-reference-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;color:#b5635e}
.advanced-flow .grant-reference-overlay path{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.advanced-flow .grant-reference-overlay rect{fill:none;stroke:currentColor;stroke-width:1.4;stroke-dasharray:6 5}
@media screen and (max-width:700px){
 .advanced-flow .grant-activity-note,.advanced-flow .grant-depreciation-note{position:static;width:auto;max-width:100%;margin-top:28px}
 .advanced-flow .grant-reference-overlay{overflow:hidden}
}

.advanced-flow [data-calculation-link="dewitt-payments-q1-answer-2"]{padding-bottom:0;margin-bottom:16px}
.advanced-flow .operating-payments-note{margin-top:0;max-width:none}
@media screen and (min-width:701px){
 .advanced-flow .advanced-unified-case .advanced-aligned-tables{grid-auto-flow:row;grid-template-columns:repeat(2,max-content);grid-template-rows:auto auto auto 64px auto auto auto;row-gap:0;column-gap:320px}
 .advanced-flow .advanced-aligned-tables .advanced-solution-group:nth-child(-n+2){grid-row:1/span 3}
 .advanced-flow .advanced-aligned-tables .advanced-solution-group:nth-child(n+3){grid-row:5/span 3}
 .advanced-flow .advanced-aligned-tables .advanced-solution-group:nth-child(odd){grid-column:1}
 .advanced-flow .advanced-aligned-tables .advanced-solution-group:nth-child(even){grid-column:2}
}

/* Link Gable's three interpretation notes directly to their given facts. */
.advanced-flow .gable-prompt-layout{position:relative;display:grid;grid-template-columns:760px 640px;column-gap:100px;width:max-content;align-items:stretch}
.advanced-flow .gable-policy-source{display:inline-block;width:100%}
.advanced-flow .gable-prompt-notes{position:relative;width:640px}
.advanced-flow .gable-prompt-notes>p{position:absolute;left:0;width:100%;margin:0;line-height:1.45}
.advanced-flow .gable-prompt-connectors{position:absolute;inset:0;width:100%;height:100%;overflow:visible;color:#b5635e;pointer-events:none}
.advanced-flow .gable-prompt-connectors path{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
@media screen and (max-width:700px){
 .advanced-flow .gable-prompt-layout{display:block;width:100%;max-width:100%}
 .advanced-flow .gable-prompt-notes{width:100%;margin-top:24px}
 .advanced-flow .gable-prompt-notes>p{position:static;margin:0 0 12px}
 .advanced-flow .gable-prompt-connectors{display:none}
}

/* Cash-budget notes follow the facts in the case letter. */
.advanced-flow .cash-prompt-layout{position:relative;display:grid;grid-template-columns:760px 640px;column-gap:100px;width:max-content;align-items:stretch}
.advanced-flow .cash-fact-source{display:inline-block;width:100%}
.advanced-flow .cash-prompt-notes{position:relative;width:640px}
.advanced-flow .cash-prompt-notes>p{position:absolute;left:0;width:100%;margin:0;line-height:1.45}
.advanced-flow .cash-prompt-connectors{position:absolute;inset:0;width:100%;height:100%;overflow:visible;color:#b5635e;pointer-events:none}
.advanced-flow .cash-prompt-connectors path{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
@media screen and (max-width:700px){
 .advanced-flow .cash-prompt-layout{display:block;width:100%;max-width:100%}
 .advanced-flow .cash-prompt-notes{width:100%;margin-top:24px}
 .advanced-flow .cash-prompt-notes>p{position:static;margin:0 0 12px}
 .advanced-flow .cash-prompt-connectors{display:none}
}
@media screen and (min-width:701px){
 .advanced-flow .advanced-unified-case .advanced-aligned-tables{grid-template-rows:auto auto auto 40px auto auto auto}
}

/* Four lettered tasks read like a word-processor list, with hanging text alignment. */
.advanced-flow .brightbite-task-list .brightbite-letter-task+ .brightbite-letter-task{margin-top:1.45em}
.advanced-flow .brightbite-task-list .brightbite-letter-task>p{margin:0}
.advanced-flow .brightbite-task-list .brightbite-letter-task>p+p{margin-top:.8em}
.advanced-flow .brightbite-task-list .brightbite-letter-task [data-question]{display:grid!important;grid-template-columns:1.7em minmax(0,1fr);column-gap:.65em;align-items:start;margin-bottom:0!important}
.advanced-flow .brightbite-task-marker{display:block}
.advanced-flow .brightbite-task-text{display:block;min-width:0}

/* Compact notes stay beneath their own table and match the starred row labels. */
.advanced-flow .footnoted-table-frame{width:max-content}
.advanced-flow .worksheet-footnote-marker{font-size:.78em;line-height:0;margin-left:.25em;vertical-align:super;color:#505650}
.advanced-flow .worksheet-table-footnotes{width:0;min-width:100%;margin-top:14px;color:#505650;font-size:.95em;line-height:1.4}
.advanced-flow .worksheet-table-footnotes>p{display:grid;grid-template-columns:1.25em minmax(0,1fr);gap:.35em;width:auto;max-width:none;margin:0;line-height:1.4}
.advanced-flow .worksheet-table-footnotes>p+p{margin-top:6px}
.advanced-flow .worksheet-footnote-sign{white-space:nowrap}
@media screen and (max-width:700px){
 .advanced-flow .worksheet-table-footnotes{width:auto;min-width:0;max-width:100%;margin:10px 0 18px}
}

/* Category columns mirror the completed classification tables in Foundations. */
.advanced-flow .classification-letter{width:1760px}
.advanced-flow .classification-letter>p{max-width:1100px}
.advanced-flow .classification-table{width:100%;table-layout:fixed;margin-top:1em}
.advanced-flow .classification-table :is(th,td){vertical-align:top!important;text-align:left!important;background:#fff}
.advanced-flow .classification-table thead th{background:#f4f5f3;font-weight:600}
.advanced-flow .classification-table .advanced-table-copy{max-width:none}
.advanced-flow .classification-table .category-column-items>li{grid-template-columns:1.4em minmax(0,1fr);gap:.45em;margin-bottom:1.2em}
.advanced-flow .classification-rationale{display:block;margin-top:.45em;color:#63706b}
.advanced-flow .classification-notes{max-width:1100px;margin-top:1.3em;color:#505650}
.advanced-flow .classification-notes :is(p,ul){margin-bottom:.8em}
@media screen and (max-width:700px){
 .advanced-flow .classification-letter{width:100%;max-width:100%}
 .advanced-flow .classification-table{min-width:1100px}
}


/* Compact workings: one row per calculation, grouped by its question. */
.advanced-flow .brightbite-compact>article{width:760px}
.advanced-flow .brightbite-compact-grid{display:grid;grid-template-columns:repeat(2,max-content);gap:320px;margin-top:56px;align-items:start}
.advanced-flow .brightbite-compact-table{margin:0}
.advanced-flow .brightbite-compact-table .brightbite-stage th{text-align:left}
.advanced-flow .brightbite-stage-letter{display:inline-block;min-width:2em}
body #content .advanced-flow .brightbite-compact-table td{white-space:nowrap;text-align:left}
body #content .advanced-flow .brightbite-compact-table td:last-child{text-align:right}
.advanced-flow .brightbite-compact-table .advanced-table-copy{max-width:none}
.advanced-flow .brightbite-compact-footnote{display:flex;gap:.65em;width:0;min-width:100%;margin-top:16px;font-size:.95em;line-height:1.45;color:#505650}
@media screen and (max-width:700px){
 .advanced-flow .brightbite-compact>article{width:100%;max-width:100%}
 .advanced-flow .brightbite-compact-grid{display:block;width:100%;margin-top:32px}
 .advanced-flow .brightbite-compact-grid>section+section{margin-top:40px}
 .advanced-flow .brightbite-compact-footnote{width:100%;max-width:100%}
}

.advanced-flow .brightbite-reference-table{position:relative;width:max-content}
.advanced-flow .brightbite-reference-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#ad6c6c;stroke-width:1.1}
.advanced-flow .brightbite-reference-lines rect{stroke-dasharray:4 4}

/* Martin uses the shared Budgeting typography, cells and result styles. */
.advanced-flow .martin-compact>article{width:900px}
.advanced-flow .martin-compact-grid{display:grid;grid-template-columns:repeat(2,max-content);column-gap:240px;row-gap:80px;margin-top:56px;align-items:start}
.advanced-flow .martin-budget-panel{width:max-content;max-width:none}
.advanced-flow .martin-compact-table{margin:0}
.advanced-flow .martin-stage th{text-align:center}
.advanced-flow .martin-stage .advanced-table-copy{max-width:none;width:100%}
.advanced-flow .martin-table-note{width:0;min-width:100%;margin:16px 0 0;font-size:.95em;line-height:1.4;color:#505650}
.advanced-flow .martin-source-notes{width:1100px;max-width:100%;margin-top:48px;color:#505650}
.advanced-flow .martin-source-notes summary{cursor:pointer;font-weight:600}
.advanced-flow .martin-source-notes>div{margin-top:24px}
.advanced-flow .martin-source-notes p{margin:0 0 16px}
.advanced-flow .martin-reference-table{position:relative;width:max-content}
.advanced-flow .martin-reference-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#ad6c6c;stroke-width:1.1}
.advanced-flow .martin-reference-lines rect{stroke-dasharray:4 4}
@media screen and (max-width:700px){
 .advanced-flow .martin-compact>article{width:100%;max-width:100%}
 .advanced-flow .martin-compact-grid{display:block;width:100%;margin-top:32px}
 .advanced-flow .martin-budget-panel{width:100%;max-width:100%}
 .advanced-flow .martin-budget-panel+.martin-budget-panel{margin-top:40px}
 .advanced-flow .martin-table-note{width:100%;min-width:0;max-width:100%}
}

/* Keep Martin's opening balances and sales assumptions together. */
.advanced-flow .martin-prompt-tables{display:grid;grid-template-columns:max-content max-content;gap:28px;align-items:start;margin:0 0 20px}
.advanced-flow .martin-prompt-tables>table{width:auto;min-width:0;margin:0}
@media screen and (min-width:701px){.advanced-flow .martin-prompt-tables :is(th,td){white-space:nowrap}}
.advanced-flow .martin-prompt-tables :is(th,td):last-child{width:1%}
.advanced-flow .martin-prompt-tables .advanced-table-copy{white-space:inherit}
@media screen and (max-width:700px){
 .advanced-flow .martin-prompt-tables{display:block}
 .advanced-flow .martin-prompt-tables>table+table{margin-top:24px}
}

/* Context sits beside the amount it explains, using the shared table typography. */
.advanced-flow .table-context-note{display:block;margin-top:6px;font-size:.84em;line-height:1.35;font-weight:400;color:#596158;white-space:normal;max-width:26ch}
.advanced-flow td>.table-context-note{margin-left:auto}
.advanced-flow th .table-context-note{text-align:left}
.advanced-flow .table-context-note .katex{font-size:1em!important}
.advanced-flow .table-context-row :is(th,td){background:#fafbf8;font-weight:400}
.advanced-flow .table-context-row td{text-align:left}

.advanced-flow td>.table-context-note{max-width:16ch}
.advanced-flow .table-context-row .advanced-table-copy{max-width:none;white-space:nowrap}

/* Martin: size each row to its own contents and keep descriptive labels on one line. */
.advanced-flow .martin-compact-table th>.advanced-table-copy{max-width:none;white-space:nowrap}
.advanced-flow .martin-compact-table th>.table-context-note{max-width:none;white-space:nowrap}

/* DeWitt: widen payment labels so the shared row height stays compact. */
.advanced-flow [data-calculation-link="dewitt-payments-q1-answer-2"] th>.advanced-table-copy{max-width:none;white-space:nowrap}

/* Martin: three calculation streams connected through the white gutters. */
.advanced-flow .martin-compact-grid{position:relative;grid-template-columns:repeat(3,max-content);column-gap:320px;row-gap:0;padding-right:56px}
.advanced-flow .martin-flow-column{display:flex;flex-direction:column;gap:170px;align-items:flex-start}
.advanced-flow .martin-flow-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#ad6c6c;stroke-width:1.5;stroke-linejoin:miter}
@media screen and (max-width:700px){
 .advanced-flow .martin-compact-grid{padding-right:0;display:flex;flex-direction:column;gap:40px}
 .advanced-flow .martin-flow-column{display:contents}
 .advanced-flow .martin-budget-panel+.martin-budget-panel{margin-top:0}
 .advanced-flow [data-martin-panel="collections"]{order:0}
 .advanced-flow [data-martin-panel="production"]{order:1}
 .advanced-flow [data-martin-panel="payments"]{order:2}
 .advanced-flow [data-martin-panel="cash"]{order:3}
 .advanced-flow [data-martin-panel="unitcost"]{order:4}
 .advanced-flow [data-martin-panel="income"]{order:5}
 .advanced-flow .martin-flow-links{display:none}
}


/* Same green as chapters 2–4: only audited, supplied numeric inputs. */
.advanced-flow table .working-given{color:#177342!important;font-weight:400!important}

/* Tucson: operating budgets and a continuous cash schedule, with separate closing statements. */
.advanced-flow .tucson-compact>article{width:1000px;max-width:none;margin-inline:auto}
.advanced-flow .tucson-compact-grid{position:relative;display:grid;grid-template-columns:repeat(3,max-content);column-gap:480px;align-items:start;margin-top:96px;padding:0 80px}
.advanced-flow .tucson-flow-column{display:flex;flex-direction:column;align-items:flex-start;gap:260px}
.advanced-flow .tucson-flow-column:nth-child(2){grid-column:3;grid-row:1}
.advanced-flow .tucson-budget-panel{position:relative;width:max-content;max-width:none}
.advanced-flow .tucson-financial-pair{display:grid;grid-template-columns:repeat(2,max-content);column-gap:80px;align-items:start}
.advanced-flow .tucson-compact-table{margin:0;width:auto;min-width:0}
.advanced-flow .tucson-compact-table th>.advanced-table-copy{max-width:none;white-space:nowrap}
.advanced-flow .tucson-compact-table .table-context-note{max-width:none;white-space:nowrap}
.advanced-flow .tucson-stage th{text-align:center;padding-top:18px;padding-bottom:18px}
.advanced-flow .tucson-stage .advanced-table-copy{width:100%;max-width:none}
.advanced-flow .tucson-subtotal :is(th,td),.advanced-flow .tucson-subtotal-cell{background:#eef2f3}
.advanced-flow .tucson-compact-table .tucson-deduction{white-space:nowrap;font-weight:400}
.advanced-flow .tucson-balance-table :is(th,td):nth-child(3){border-left:56px solid white}
.advanced-flow .tucson-flow-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#c43732;stroke-width:1.5;stroke-linejoin:miter}
.advanced-flow .tucson-flow-links rect{stroke-dasharray:4 4;stroke-width:1.1}
@media screen and (max-width:700px){
 .advanced-flow .tucson-compact>article{width:100%;max-width:100%}
 .advanced-flow .tucson-compact-grid{display:flex;flex-direction:column;gap:40px;padding:0}
 .advanced-flow .tucson-flow-column,.advanced-flow .tucson-financial-pair{display:contents}
 .advanced-flow .tucson-budget-panel{width:100%;max-width:100%}
 .advanced-flow [data-tucson-panel="operating"]{order:0}
 .advanced-flow [data-tucson-panel="costs"]{order:1}
 .advanced-flow [data-tucson-panel="unitcost"]{order:2}
 .advanced-flow [data-tucson-panel="income"]{order:3}
 .advanced-flow [data-tucson-panel="cashmaster"]{order:4}
 .advanced-flow [data-tucson-panel="balance"]{order:5}
 .advanced-flow .tucson-flow-links{display:none}
}

/* Tucson closing balances sit below their source budgets; arrows use the central white gutter. */
.advanced-flow .tucson-compact-grid>[data-tucson-panel="balance"]{grid-column:2;grid-row:1;align-self:start}
.advanced-flow .tucson-flow-links .tucson-balance-source{stroke-opacity:.8}
.advanced-flow .tucson-flow-links .tucson-balance-target{stroke-width:1.2}
@media screen and (max-width:700px){.advanced-flow .tucson-balance-table :is(th,td):nth-child(3){border-left:24px solid white}}

.advanced-flow .tucson-statement-link,.advanced-flow .tucson-balance-source,.advanced-flow .tucson-balance-target{stroke:#1266b3}


/* Tucson uses the same 1.5-unit, zoom-scaled connector weight as Martin. */

/* Taller balance-sheet rows keep its incoming connectors clearly separated. */
@media screen and (min-width:701px){.advanced-flow .tucson-balance-table tbody tr{height:84px}.advanced-flow .tucson-balance-table tbody :is(th,td){padding-top:22px;padding-bottom:22px;vertical-align:middle}}

/* Tucson prompt: larger copy, aligned to the first budget column. */
@media screen and (min-width:701px){.advanced-flow .tucson-compact>article{width:1300px;margin-left:80px;margin-right:0;font-size:calc(var(--exercise-answer-size,22px)*1.6)}}

/* Performance exercises use the same white canvas, table typography and result marks. */
.advanced-flow .performance-workspace{width:max-content;min-width:760px}
.advanced-flow .performance-workspace>article{width:1000px;max-width:none}
.advanced-flow .performance-board{position:relative;display:grid;grid-template-columns:repeat(2,max-content);align-items:start;gap:100px 120px;margin-top:64px;width:max-content;font:var(--exercise-answer-size)/1.5 var(--exercise-answer-font)}
.advanced-flow .performance-one{grid-template-columns:max-content}
.advanced-flow .performance-panel{width:max-content;min-width:0}
.advanced-flow .performance-span{grid-column:1 / -1;justify-self:center}
.advanced-flow .performance-board table{margin:0;border-collapse:collapse}
body[data-chapter="7"] #content .performance-table :is(th,td){padding:14px 18px;vertical-align:middle}
body[data-chapter="7"] #content .performance-table caption{text-align:center}
body[data-chapter="7"] #content .performance-table tbody th{font-weight:400;text-align:left}
body[data-chapter="7"] #content .performance-table tbody td{text-align:right}
body[data-chapter="7"] #content .performance-table .advanced-table-copy{max-width:none}
body[data-chapter="7"] #content .performance-table .performance-subtotal :is(th,td){background:#eef2f3;border-top:1px solid #c1cbd0}
body[data-chapter="7"] #content .performance-table .performance-result :is(th,td){border-top:1px solid #9ea99d;background:#f8faf5}
body[data-chapter="7"] #content .performance-table .performance-result th{font-weight:600}
.advanced-flow .performance-cell-work{margin-top:6px;color:#555e59;white-space:nowrap}
.advanced-flow .performance-note{width:0;min-width:100%;margin:18px 0 0;line-height:1.5;color:#505650}
.advanced-flow .performance-note+.performance-note{margin-top:10px}
.advanced-flow .performance-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#ad6c6c;stroke-width:1.5;stroke-linejoin:miter}
.advanced-flow .performance-links rect{stroke-dasharray:4 4;stroke-width:1.1}
.advanced-flow .performance-classified{list-style:none;padding:0;margin:0}
.advanced-flow .performance-classified li{display:grid;grid-template-columns:20px 1fr;gap:12px;margin:0 0 24px;max-width:240px;text-align:left}
.advanced-flow .performance-classified li:last-child{margin-bottom:0}
.advanced-flow .performance-classified p{margin:7px 0 0;color:#555e59}
body[data-chapter="7"] #content .performance-classification td{vertical-align:top!important;background:white}
.advanced-flow .performance-classification .performance-item-letter{color:#686f66}
body[data-chapter="7"] #content .performance-workspace .exercise-letter-table{width:auto!important;table-layout:auto!important}
.advanced-flow .performance-workspace .exercise-letter .advanced-table-copy{max-width:none}
.advanced-flow .performance-workspace>article ol[type="a"]{list-style-type:lower-alpha!important}
.advanced-flow .performance-organisational-centres>article{width:1180px}
.advanced-flow .performance-organisational-centres>article ol{columns:2;column-gap:64px}
.advanced-flow .performance-organisational-centres>article li{break-inside:avoid}
.advanced-flow .performance-analysis{grid-template-columns:repeat(2,max-content)}
body[data-chapter="7"] #content .performance-table tbody tr.performance-explanation td{white-space:normal;text-align:left;background:white;padding-top:10px;padding-bottom:20px}
.advanced-flow .performance-analysis .performance-panel{justify-self:start}
.advanced-flow .performance-eva{row-gap:120px}
@media screen and (max-width:700px),print{
 .advanced-flow .performance-workspace,.advanced-flow .performance-workspace>article{width:100%;min-width:0;max-width:100%}
 .advanced-flow .performance-board{display:block;width:100%;max-width:100%;min-width:0;margin-top:36px}
 .advanced-flow .performance-panel{width:100%;max-width:100%}
 .advanced-flow .performance-panel+.performance-panel{margin-top:40px}
 .advanced-flow .performance-note{width:auto;min-width:0;max-width:100%}
 .advanced-flow .performance-links{display:none}
 .advanced-flow .performance-organisational-centres>article ol{columns:1}
}

/* The three given Performance Aid schedules share one horizontal case letter. */
@media screen and (min-width:701px){
 .advanced-flow .performance-performance-aid-schedule>article{width:max-content;max-width:none}
 .advanced-flow .performance-prompt-tables{display:grid;grid-template-columns:repeat(3,max-content);gap:48px;align-items:start;width:max-content;margin:20px 0}
 .advanced-flow .performance-prompt-tables table{margin:0}
}
@media screen and (max-width:700px),print{
 .advanced-flow .performance-prompt-tables{display:block;width:100%;max-width:100%}
 .advanced-flow .performance-prompt-tables>div+div{margin-top:24px}
}

/* Classification grids match the enclosed category tables in Foundations. */
body[data-chapter="7"] #content .performance-workspace .performance-table.performance-classification{width:1180px!important;table-layout:fixed!important}
body[data-chapter="7"] #content .performance-classification :is(th,td){width:25%!important;border:1px solid #d9dedb!important;padding:8px 10px;vertical-align:top!important;text-align:left}
body[data-chapter="7"] #content .performance-classification thead th{background:#f5f6f3;font-weight:700}
.advanced-flow .performance-classification .performance-classified li{grid-template-columns:1.6em minmax(0,1fr);gap:.2em;max-width:none;margin:0 0 .7em;padding:0}
.advanced-flow .performance-classification .performance-classified li:last-child{margin-bottom:0}
.advanced-flow .performance-classification .performance-classified p{margin:.25em 0 0;color:#63706b}

/* Pair each classification with its case; compare all three Performance Aid solutions. */
@media screen and (min-width:701px){
 .advanced-flow :is(.performance-hotel-centres,.performance-organisational-centres){display:grid;grid-template-columns:1000px 1180px;gap:120px;align-items:start}
 .advanced-flow :is(.performance-hotel-centres,.performance-organisational-centres)>article{width:1000px;margin:0}
 .advanced-flow :is(.performance-hotel-centres,.performance-organisational-centres)>.performance-board{margin-top:0}
 .advanced-flow .performance-performance-aid-schedule>.performance-board{grid-template-columns:repeat(3,max-content);gap:100px 64px}
 .advanced-flow .performance-performance-aid-schedule>.performance-board>.performance-span{grid-column:auto;justify-self:start}
}

.advanced-flow .performance-performance-aid-schedule .performance-prompt-tables+ol{margin-top:2.5em!important}

/* Close every performance exercise table, including the numeric cells. */
body[data-chapter="7"] #content .performance-workspace table tbody:last-child>tr:last-child>:is(th,td){border-bottom:1px solid #d9dedb!important}

/* One shared formula reference for the three Performance Aid schedules. */
.advanced-flow .performance-shared-formulas{display:flex;align-items:center;gap:44px;width:max-content;margin:64px 0 32px;padding:18px 24px;border:1.2px dashed #ad6c6c;font:var(--exercise-answer-size)/1.5 var(--exercise-answer-font)}
.advanced-flow .performance-shared-formulas>div{white-space:nowrap}
.advanced-flow .performance-shared-formulas+.performance-board{margin-top:0}
@media screen and (max-width:700px),print{.advanced-flow .performance-shared-formulas{width:fit-content;max-width:100%;flex-wrap:wrap;gap:18px 28px;margin-top:36px;padding:16px}}

/* Hamilton: each substitution leads directly to its result. */
.advanced-flow .performance-inline-calculation{display:inline-flex;align-items:center;gap:16px;white-space:nowrap}
.advanced-flow .performance-inline-calculation>.performance-cell-work{margin:0}
.advanced-flow .performance-calculation-arrow{width:42px;height:16px;flex:none;fill:none;stroke:#728a79;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

body[data-chapter="7"] #content .performance-performance-aid-schedule .performance-board .performance-table :is(th,td){padding-left:10px;padding-right:10px}

/* Centre column headings consistently; keep row labels and numeric alignment. */
body[data-chapter="7"] #content .advanced-flow table thead tr th{text-align:center!important}

/* Keep interpretations beside the exact data they explain. */
.advanced-flow .performance-commented-table{position:relative;width:max-content;padding-right:340px}
body[data-chapter="7"] #content .performance-commented-table tbody tr{height:110px}
.advanced-flow .performance-row-comment{position:absolute;right:0;width:280px;margin:0;transform:translateY(-50%);line-height:1.5;color:#505650}
.advanced-flow .performance-comment-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#ad6c6c;stroke-width:1.5}
.advanced-flow .performance-comment-links rect{stroke-dasharray:4 4;stroke-width:1.1}
@media print{.advanced-flow .performance-commented-table{break-inside:avoid}}

@media screen and (max-width:700px){
 body[data-chapter="7"] #content .performance-commented-table{width:100%!important;padding-right:0}
 body[data-chapter="7"] #content .performance-commented-table .performance-row-comment{position:static!important;width:auto!important;max-width:none!important;transform:none;margin:18px 0 0}
 .advanced-flow .performance-row-comment[data-comment-for="0"]::before{content:"2023–2024 · "}
 .advanced-flow .performance-row-comment[data-comment-for="1"]::before{content:"2024–2025 · "}
 .advanced-flow .performance-comment-links{display:none}
 body[data-chapter="7"] #content .performance-commented-table tbody tr{height:80px}
}

/* Performance Aid: schedules and interpretation form one case. */
@media screen and (min-width:701px){
 .advanced-flow .performance-performance-aid-schedule>.performance-board.performance-analysis{grid-template-columns:repeat(2,max-content);gap:100px 120px;margin-top:100px}
}

body[data-chapter="7"] #content .performance-performance-aid-schedule .performance-analysis .performance-table :is(th,td){padding-left:18px;padding-right:18px}

/* DuPont sits beside the case letter, before the solution schedules. */
@media screen and (min-width:701px){
 .advanced-flow .performance-performance-aid-schedule{display:grid;grid-template-columns:max-content max-content;column-gap:64px;align-items:start}
 .advanced-flow .performance-performance-aid-schedule>article{grid-column:1;grid-row:1;margin:0}
 .advanced-flow .performance-performance-aid-schedule>.performance-shared-formulas{grid-column:2;grid-row:1;align-self:center;margin:0;padding:24px 28px}
 .advanced-flow .performance-performance-aid-schedule>.performance-board{grid-column:1/-1}
 .advanced-flow .performance-performance-aid-schedule>.performance-shared-formulas+.performance-board{margin-top:64px}
}

/* Interpret changes directly on the original completed schedules. */
.advanced-flow .performance-integrated-analysis{position:relative;width:max-content}
.advanced-flow .performance-analysis-comment{width:0;min-width:100%;box-sizing:border-box;margin:26px 0 0;padding-right:10px;color:#505650;line-height:1.5}
.advanced-flow .performance-analysis-years{display:block;margin-bottom:5px;color:#343b36}
.advanced-flow .performance-analysis-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#ad6c6c;stroke-width:1.3;stroke-linejoin:miter}
.advanced-flow .performance-analysis-links rect{stroke-dasharray:4 4;stroke-width:1.1}
@media screen and (max-width:700px),print{
 body[data-chapter="7"] #content .performance-integrated-analysis{width:100%!important}
 .advanced-flow .performance-analysis-comment{width:auto;min-width:0;max-width:100%}
 .advanced-flow .performance-analysis-links{display:none}
}

@media screen and (min-width:701px){
 .advanced-flow .performance-performance-aid-schedule>.performance-board{column-gap:130px}
}

@media screen and (min-width:701px){
 .advanced-flow .performance-performance-aid-schedule .performance-panel>.performance-note{width:max-content;min-width:0;white-space:nowrap}
}

@media screen and (min-width:701px){
 .advanced-flow .performance-golf>.performance-panel:first-child{position:relative}
 .advanced-flow .performance-golf>.performance-panel:first-child .performance-result td:first-of-type .inline-equation+.inline-equation{display:none}
 .advanced-flow .golf-roi-link{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#728a79;stroke-width:1.5;stroke-linejoin:miter}
}

/* Equations to solve: a quiet frame and one accent on the unknown. */
.advanced-flow .performance-golf .golf-equation-model{display:inline-block;border:1px solid #bd918b;border-radius:3px;padding:10px 12px;white-space:nowrap}
.advanced-flow .performance-golf .golf-unknown,.advanced-flow .golf-price-symbol-source{color:#994d45!important;background:#f9ebe7;border-radius:2px;box-shadow:0 0 0 2px #f9ebe7}

.advanced-flow .golf-price-model{width:max-content;margin-top:28px;white-space:nowrap}
@media screen and (max-width:700px){.advanced-flow .golf-price-model{max-width:100%;overflow-x:auto;padding:8px 0}}

.advanced-flow .golf-price-derivation{margin-top:22px}
.advanced-flow .performance-workspace>article ol.golf-requirements{margin-top:1.5em!important}

.advanced-flow .performance-golf-technology>article{width:850px}
@media screen and (max-width:700px){.advanced-flow .performance-golf-technology>article{width:100%}}

.advanced-flow .golf-price-model{position:relative}
.advanced-flow .golf-price-identity{display:flex;align-items:center;gap:10px}
.advanced-flow .golf-oi-source{display:inline-block;padding:12px 14px;border:1.25px dashed #b36a66;border-radius:3px}
.advanced-flow .golf-price-derivation{margin-top:68px;padding-left:14px}
.advanced-flow .golf-oi-target{color:#994d45!important}
.advanced-flow .golf-income-link{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#b36a66;stroke-width:1.5;stroke-linejoin:miter}

.advanced-flow .performance-golf>.performance-panel{position:relative}
.advanced-flow .golf-price-symbol-link{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#b36a66;stroke-width:1.5;stroke-linejoin:miter}

.advanced-flow .hamilton-overview{column-gap:150px}
.advanced-flow .hamilton-eva-flow{grid-template-columns:repeat(3,max-content);column-gap:150px;margin-top:100px}
.advanced-flow .hamilton-formula{margin-top:28px;white-space:nowrap;line-height:1.8}
.advanced-flow .hamilton-formula+.hamilton-formula{margin-top:20px}
.advanced-flow .hamilton-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#b36a66;stroke-width:1.5;stroke-linejoin:miter}
.advanced-flow .hamilton-links rect{stroke-dasharray:4 4;stroke-width:1.1}
.advanced-flow .performance-workspace>article ol.hamilton-requirements{margin-top:1.5em!important}
body[data-chapter="7"] #content .hamilton-capital [data-hamilton-row="wacc-source"] td{text-align:center}
@media screen and (max-width:700px){.advanced-flow .hamilton-eva-flow{display:block;margin-top:40px}.advanced-flow .hamilton-eva-flow>.performance-panel{margin-top:40px!important}.advanced-flow .hamilton-formula{max-width:100%;overflow-x:auto;padding:8px 0}}

@media screen and (min-width:701px){.advanced-flow .hamilton-nopat{grid-column:1;grid-row:1}.advanced-flow .hamilton-eva{grid-column:2;grid-row:1}.advanced-flow .hamilton-capital{grid-column:3;grid-row:1}}

.advanced-flow :is(.hamilton-overview,.hamilton-eva-flow)>.performance-panel{position:relative}
.advanced-flow .hamilton-formula{margin-top:58px}
.advanced-flow .hamilton-returns .hamilton-formula:last-of-type{margin-top:58px}
.advanced-flow .hamilton-formula-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#b36a66;stroke-width:1.5;stroke-linejoin:miter}
.advanced-flow .hamilton-formula-links rect{stroke-dasharray:4 4;stroke-width:1.1}
@media screen and (max-width:700px){.advanced-flow .hamilton-formula,.advanced-flow .hamilton-returns .hamilton-formula:last-of-type{margin-top:24px}}

/* Hamilton: simple calculations on the white plane; one comparison table. */
.advanced-flow .hamilton-simple{display:grid;grid-template-columns:max-content max-content;gap:130px;width:max-content;margin-top:70px;font:var(--exercise-answer-size)/1.6 var(--exercise-answer-font)}
.advanced-flow .hamilton-simple-column{position:relative;display:flex;flex-direction:column;gap:56px;padding-left:38px}
.advanced-flow .hamilton-simple-step{position:relative;width:max-content}
.advanced-flow .hamilton-step-letter{position:absolute;right:calc(100% + 18px);top:2px;color:#7c837b;font-size:.85em}
.advanced-flow .hamilton-simple-line{white-space:nowrap;width:max-content;display:flex;align-items:center;gap:6px;min-height:40px}
.advanced-flow .hamilton-simple-line+.hamilton-simple-line{margin-top:20px}
.advanced-flow .hamilton-simple-line>.inline-equation{display:inline-block}
.advanced-flow .hamilton-wacc-evaluation{margin-top:32px}
.advanced-flow .hamilton-simple-eva{margin-top:34px}
.advanced-flow .hamilton-eva-equation{margin-top:36px}
.advanced-flow .hamilton-simple-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#b36a66;stroke-width:1.5;stroke-linejoin:miter}
.advanced-flow .hamilton-simple-links rect{stroke-dasharray:4 4;stroke-width:1.1}
@media screen and (max-width:700px),print{
 .advanced-flow .hamilton-simple{display:block;width:100%;max-width:100%;margin-top:36px}
 .advanced-flow .hamilton-simple-column{display:block;padding-left:26px;width:100%;box-sizing:border-box}
 .advanced-flow .hamilton-simple-step{width:100%;max-width:100%;margin:0 0 34px}
 .advanced-flow .hamilton-simple-line{display:block;white-space:normal;width:auto;max-width:100%;overflow-x:auto;padding:5px 0}
 .advanced-flow .hamilton-simple-line+.hamilton-simple-line{margin-top:10px}
 .advanced-flow .hamilton-simple-line>.inline-equation{display:inline}
 .advanced-flow .hamilton-simple-links{display:none}
 .advanced-flow .hamilton-simple-wacc{overflow-x:auto}
}

.advanced-flow .hamilton-simple-line{font-size:1.1em}

/* Keep the general formula and its answer on a single horizontal reading line. */
.advanced-flow .hamilton-result-line{display:flex;align-items:center;gap:16px;white-space:nowrap}
.advanced-flow .hamilton-result-arrow{display:block;width:64px;height:16px;flex:none;fill:none;stroke:#b36a66;stroke-width:1.5;stroke-linejoin:miter}
.advanced-flow .hamilton-result-line>:is(.answer-highlight,.hamilton-simple-source){flex:none}
@media screen and (max-width:700px),print{
 .advanced-flow .hamilton-result-line{display:flex;gap:12px;overflow-x:auto;max-width:100%}
 .advanced-flow .hamilton-result-line>.inline-equation{flex:none}
 .advanced-flow .hamilton-result-arrow{width:44px}
}

/* Read each solution as formula → substitution = result, without a second line. */
.advanced-flow .hamilton-simple{grid-template-columns:max-content;gap:56px}
.advanced-flow .hamilton-simple-column{gap:48px}
.advanced-flow .hamilton-simple-capital{margin-top:8px}
.advanced-flow .hamilton-inline-working{display:inline-flex;align-items:center;gap:6px;flex:none;white-space:nowrap}
.advanced-flow .hamilton-rounding-arrow{width:36px}
.advanced-flow .hamilton-simple-eva{margin-top:22px}
.advanced-flow .hamilton-eva-equation{margin-top:38px}

/* Map the two table rates to their exact WACC factors. */
.advanced-flow .hamilton-simple-wacc [data-hamilton-rate]{display:inline-block;white-space:nowrap}
.advanced-flow .hamilton-simple-wacc .hamilton-wacc-evaluation{margin-top:100px}
.advanced-flow .hamilton-rate-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#b36a66;stroke-width:1.5;stroke-linejoin:miter}
.advanced-flow .hamilton-rate-links rect{stroke-dasharray:4 4;stroke-width:1.1}
@media screen and (max-width:700px),print{.advanced-flow .hamilton-rate-links{display:none}.advanced-flow .hamilton-simple-wacc .hamilton-wacc-evaluation{margin-top:32px}}

.advanced-flow .hamilton-wacc-evaluation{position:relative}
.advanced-flow .hamilton-eva-equation>.hamilton-result-line>.hamilton-result-arrow{width:300px}
.advanced-flow :is(.hamilton-capital-source,.hamilton-capital-target){display:inline-block;white-space:nowrap;flex:none}
@media screen and (max-width:700px),print{.advanced-flow .hamilton-eva-equation>.hamilton-result-line>.hamilton-result-arrow{width:44px}}

/* Golf: replace the revenue/cost schedule with the two requested calculations. */
.advanced-flow .performance-golf{grid-template-columns:max-content;row-gap:64px}
.advanced-flow .golf-inline-summary{display:flex;flex-direction:column;gap:40px}
.advanced-flow .golf-summary-line{display:flex;align-items:center;gap:16px;white-space:nowrap;font-size:1.1em}
.advanced-flow .golf-summary-output{display:inline-flex;align-items:center;gap:0}
.advanced-flow .golf-summary-output>.answer-highlight{padding-left:0}
@media screen and (max-width:700px),print{
 .advanced-flow .golf-inline-summary{display:flex;max-width:100%}
 .advanced-flow .golf-summary-line{max-width:100%;overflow-x:auto;padding:8px 0}
 .advanced-flow .golf-summary-line>*{flex:none}
}

/* Align exercise letters by their left edge, independent of glyph width. */
.advanced-flow .hamilton-step-letter{left:-32px;right:auto;width:20px;text-align:left}

body[data-chapter="7"] #content .performance-golf .golf-required-return td{text-align:center!important}

/* A single conceptual comparison above the two classification exercises. */
.advanced-flow .responsibility-comparison{grid-column:1 / -1;width:2300px;font:var(--exercise-answer-size)/1.5 var(--exercise-answer-font)}
body[data-chapter="7"] #content table.responsibility-concepts{width:100%!important;table-layout:fixed!important;border-collapse:collapse;margin:0;border:1px solid #d9dedb}
body[data-chapter="7"] #content .responsibility-concepts .responsibility-axis{width:12%}
body[data-chapter="7"] #content .responsibility-concepts :is(th,td){border:1px solid #d9dedb;padding:20px 24px;text-align:left;vertical-align:middle;background:white;line-height:1.5}
body[data-chapter="7"] #content .responsibility-concepts thead th{background:#f5f6f3;text-align:center;font-weight:700}
body[data-chapter="7"] #content .responsibility-concepts tbody th{font-weight:600;color:#4d554e}
.advanced-flow .responsibility-measure{display:block;color:#59625c;margin-top:4px}
@media screen and (min-width:701px){.advanced-flow .performance-hotel-centres{row-gap:72px}}
@media screen and (max-width:700px){.advanced-flow .responsibility-comparison{width:100%;max-width:100%;overflow-x:auto;margin-bottom:32px}.advanced-flow table.responsibility-concepts{min-width:1050px}}

body[data-chapter="7"] #content .responsibility-concepts tr>:first-child{width:12%!important}
body[data-chapter="7"] #content .responsibility-concepts tr>:not(:first-child){width:22%!important}
body[data-chapter="7"] #content .responsibility-concepts tbody td{text-align:left!important;white-space:normal}

@media screen and (max-width:700px){body[data-chapter="7"] #content table.responsibility-concepts{width:1050px!important;min-width:1050px!important;max-width:none!important}body[data-chapter="7"] #content .responsibility-concepts :is(th,td){padding:14px 16px!important;word-break:normal;overflow-wrap:normal}}

/* Separate the target-income schedule from the price equations. */
body[data-chapter="7"] #content .performance-golf .golf-equation-break td{height:36px!important;min-height:36px!important;padding:0!important;border:0!important;background:#fff!important;line-height:0!important}
body[data-chapter="7"] #content .performance-golf .golf-equation-break{background:#fff!important;border:0!important}

/* Price equations and final answers sit on the white plane, outside the table. */
body[data-chapter="7"] #content .performance-golf table.golf-target-income{width:1140px!important;table-layout:fixed!important}
body[data-chapter="7"] #content .golf-target-income tr>:first-child{width:270px!important}
body[data-chapter="7"] #content .golf-target-income tr>:not(:first-child){width:435px!important}
.advanced-flow .golf-price-solutions{display:grid;grid-template-columns:270px 435px 435px;width:1140px;margin-top:36px;align-items:start}
.advanced-flow .golf-price-solution:first-child{grid-column:2}
.advanced-flow .golf-price-solution{padding:0 18px;text-align:center;background:transparent;border:0}
.advanced-flow .golf-price-equation{white-space:nowrap}
.advanced-flow .golf-price-answer{margin-top:24px;white-space:nowrap}
@media screen and (max-width:700px){.advanced-flow .golf-price-solutions{max-width:100%;overflow-x:auto;grid-template-columns:435px 435px;padding-bottom:12px}.advanced-flow .golf-price-solution:first-child{grid-column:auto}}

.advanced-flow .golf-income-transfers{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#b36a66;stroke-width:1.5;stroke-linejoin:miter}
.advanced-flow .golf-price-equation{text-align:right}

.advanced-flow .golf-price-equation [data-golf-income-target]{margin-left:.25em}

/* Pair each price equation with its final x value in a restrained dashed frame. */
.advanced-flow .golf-price-solution{margin:0 8px;padding:18px 10px;border:1px dashed #40434a;background:transparent}

/* Give the required-return inputs the same soft tint as their row label. */
body[data-chapter="7"] #content .golf-target-income .golf-required-return :is(th,td){background:#f1f3eb!important}

/* Smart Touch: compare the three ratios once, then calculate residual income. */
.advanced-flow .smart-workspace{display:block;width:1640px;position:relative}
body[data-chapter="7"] #content table.smart-comparison{width:1640px!important;table-layout:fixed!important}
body[data-chapter="7"] #content .smart-comparison tr>:first-child{width:600px!important}
body[data-chapter="7"] #content .smart-comparison tr>:not(:first-child){width:520px!important}
body[data-chapter="7"] #content .smart-comparison :is(th,td){padding:22px 24px!important;vertical-align:middle}
body[data-chapter="7"] #content .smart-comparison thead th{text-align:center;background:#f1f3eb}
body[data-chapter="7"] #content .smart-comparison tbody tr:last-child :is(th,td){background:#f5f7f1;border-top:1px solid #c8d0c5}
.advanced-flow .smart-metric-name{display:block;font-weight:600;margin-bottom:12px}
.advanced-flow .smart-cell-calculation{display:flex;align-items:center;justify-content:center;gap:16px;white-space:nowrap}
.advanced-flow .smart-calculation-arrow{color:#b36a66;font-size:1.3em;font-weight:400}
.advanced-flow .smart-analysis-row,.advanced-flow .smart-ri-grid{display:grid;grid-template-columns:600px 520px 520px}
.advanced-flow .smart-analysis-row p{grid-column:2;margin:52px 20px 0;text-align:center;line-height:1.5}
.advanced-flow .smart-ri-analysis p{grid-column:3}
.advanced-flow .smart-ri-model{margin:64px 0 0 600px;white-space:nowrap;text-align:center}
.advanced-flow .smart-ri-grid{margin-top:28px}
.advanced-flow .smart-ri-block{padding:18px 16px;text-align:center}
.advanced-flow .smart-ri-block:first-child{grid-column:2}
.advanced-flow .smart-ri-calculation{white-space:nowrap}
.advanced-flow .smart-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:#b36a66;stroke-width:1.5;stroke-linejoin:miter}
.advanced-flow .smart-links rect{stroke-dasharray:4 4;stroke-width:1.1}
@media screen and (max-width:700px){
 .advanced-flow .smart-workspace{max-width:100%;width:100%}
 body[data-chapter="7"] #content table.smart-comparison{min-width:1400px!important;max-width:none!important}
 .advanced-flow .smart-ri-model{margin-left:0;max-width:100%;overflow-x:auto;text-align:left}
 .advanced-flow .smart-analysis-row,.advanced-flow .smart-ri-grid{grid-template-columns:520px 520px;max-width:100%;overflow-x:auto}
 .advanced-flow .smart-analysis-row p{grid-column:1;margin-top:24px}
 .advanced-flow .smart-ri-analysis p{grid-column:2}
 .advanced-flow .smart-ri-block:first-child{grid-column:1}
}

@media screen and (min-width:701px){
 .advanced-flow .smart-workspace{width:1500px}
 body[data-chapter="7"] #content table.smart-comparison{width:1500px!important}
 body[data-chapter="7"] #content .smart-comparison tr>:first-child{width:460px!important}
 .advanced-flow .smart-analysis-row,.advanced-flow .smart-ri-grid{grid-template-columns:460px 520px 520px}
 .advanced-flow .smart-ri-model{margin-left:460px}
}

/* Size the division columns around their calculations, with room for the RI workings. */
body[data-chapter="7"] #content table.smart-comparison{width:1220px!important;min-width:1220px!important}
body[data-chapter="7"] #content .smart-comparison tr>:first-child{width:460px!important}
body[data-chapter="7"] #content .smart-comparison tr>:not(:first-child){width:380px!important}
@media screen and (min-width:701px){
 .advanced-flow .smart-workspace{width:1220px}
 .advanced-flow .smart-analysis-row,.advanced-flow .smart-ri-grid{grid-template-columns:460px 380px 380px}
}
@media screen and (max-width:700px){
 .advanced-flow .smart-analysis-row,.advanced-flow .smart-ri-grid{grid-template-columns:380px 380px}
}

/* Extend the RI tree vertically without widening the comparison columns. */
@media screen and (min-width:701px){
 .advanced-flow .smart-ri-grid{margin-top:100px}
}

/* Keep RI in the same division comparison, with concise external notes. */
.advanced-flow .smart-roi-aside p{margin:0;line-height:1.5}
body[data-chapter="7"] #content .smart-comparison [data-smart-roi-row] :is(th,td){background:#f5f7f1;border-top:1px solid #c8d0c5}
body[data-chapter="7"] #content .smart-comparison .smart-ri-table-row :is(th,td){padding-top:28px!important;padding-bottom:28px!important}
.advanced-flow .smart-comparison .smart-ri-calculation{display:flex;align-items:center;justify-content:center;white-space:nowrap}
.advanced-flow .smart-ri-literal{white-space:nowrap}
@media screen and (min-width:701px){
 .advanced-flow .smart-workspace{width:1580px}
 .advanced-flow .smart-roi-aside{position:absolute;left:1280px;width:280px;top:0}
}
@media screen and (max-width:700px){
 .advanced-flow .smart-roi-aside{margin-top:24px}
}

/* Keep both calculated performance rows on white. */
body[data-chapter="7"] #content .smart-comparison :is([data-smart-roi-row],.smart-ri-table-row) :is(th,td){background:#fff!important}

/* Explain what the ratios measure, without repeating the numerical results. */
.advanced-flow .smart-metric-meaning{display:block;max-width:390px;margin-top:12px;font-weight:400;line-height:1.45;font-size:15px;color:#4b514d}
.advanced-flow .smart-ri-analysis p{grid-row:1;max-width:330px;margin-top:64px;text-align:left}
.advanced-flow .smart-ri-analysis .smart-positive-note{grid-column:2}
@media screen and (min-width:701px){
 .advanced-flow .smart-workspace{width:1680px}
 .advanced-flow .smart-roi-aside{width:380px}
}
@media screen and (max-width:700px){
 .advanced-flow .smart-ri-analysis .smart-positive-note{grid-column:1}
}

/* Preserve the green metric column while calculations stay white. */
body[data-chapter="7"] #content .smart-comparison tbody th{background:#f1f3ed!important}

.advanced-flow .exercise-letter p.smart-return-instruction{margin-top:1.3em!important}

body[data-chapter="7"] #content .smart-comparison tbody tr:is([data-smart-roi-row],.smart-ri-table-row) th{background:#f1f3ed!important}
.advanced-flow .smart-note-line{display:block}
@media screen and (min-width:701px){
 .advanced-flow .smart-workspace{width:2260px}
 .advanced-flow .smart-roi-aside{width:960px}
 .advanced-flow .smart-note-line{white-space:nowrap}
 .advanced-flow .smart-ri-analysis p{width:max-content;max-width:none}
}

/* Read each metric name, arrow and formula along one line. */
.advanced-flow .smart-metric-line{display:flex;align-items:center;gap:12px;white-space:nowrap}
.advanced-flow .smart-metric-line .smart-metric-name{display:inline;margin:0;flex:none}
.advanced-flow .smart-metric-line>.smart-calculation-arrow{flex:none}

.advanced-flow .smart-metric-line>.smart-calculation-arrow{color:inherit}

.advanced-flow .smart-metric-equals{color:inherit;font-size:1em;font-weight:400;flex:none}

/* Responsibility-centre visual and explicit DuPont factor mapping. */
.advanced-flow .responsibility-centres-diagram{margin:0 0 40px;width:1180px}
.advanced-flow .responsibility-centres-diagram img{display:block;width:100%;height:auto}
.advanced-flow .dupont-linked .dupont-factor-grid{display:grid;grid-template-columns:70px 28px 154px 36px 190px;grid-template-rows:auto 68px auto;align-items:center;justify-items:center;white-space:nowrap}
.dupont-roi{grid-area:1/1}.dupont-equal-top{grid-area:1/2}.dupont-margin-label{grid-area:1/3}.dupont-times-top{grid-area:1/4}.dupont-turnover-label{grid-area:1/5}
.dupont-margin-link{grid-area:2/3}.dupont-turnover-link{grid-area:2/5}
.dupont-equal-bottom{grid-area:3/2}.dupont-margin-fraction{grid-area:3/3}.dupont-times-bottom{grid-area:3/4}.dupont-turnover-fraction{grid-area:3/5}
.advanced-flow .dupont-factor-arrow{display:block;width:20px;height:48px;color:#343934}
@media(max-width:700px){.advanced-flow .responsibility-centres-diagram{max-width:100%}.advanced-flow .dupont-linked{overflow-x:auto}}

/* Keep each responsibility-centre illustration inside its own table column. */
body[data-chapter="7"] #content .performance-classification .responsibility-visual-row td{padding:26px 0!important;vertical-align:middle!important;background:white!important}
.advanced-flow .responsibility-cell-svg{display:block;width:100%;height:auto;overflow:hidden}

/* Organisational classification: equal-width case and table, stacked. */
@media screen and (min-width:701px){
 .advanced-flow .performance-organisational-centres{display:block;width:1180px}
 .advanced-flow .performance-organisational-centres>article{width:1180px;max-width:none;box-sizing:border-box;margin:0}
 .advanced-flow .performance-organisational-centres>.performance-board{width:1180px;margin-top:64px}
}

/* Give the three longer classification columns more room. */
body[data-chapter="7"] #content .performance-organisational-centres .performance-table.performance-classification{width:1360px!important}
body[data-chapter="7"] #content .performance-organisational-centres .performance-classification :is(th,td):first-child{width:25%!important}
body[data-chapter="7"] #content .performance-organisational-centres .performance-classification :is(th,td):nth-child(n+2){width:25%!important}
.advanced-flow .performance-organisational-centres .responsibility-cell-svg{width:295px;max-width:100%;margin-inline:auto}
@media screen and (min-width:701px){
 .advanced-flow .performance-organisational-centres{width:1360px}
 .advanced-flow .performance-organisational-centres>article{width:1360px}
 .advanced-flow .performance-organisational-centres>.performance-board{width:1360px}
}























/* BSC REFINED START */
/* BSC REFINED START */
.advanced-flow .performance-bsc-case{display:block;width:1800px;min-width:0}
.advanced-flow .performance-bsc-case>article{width:1800px;max-width:none;box-sizing:border-box;margin:0}
.advanced-flow .performance-bsc-case.bsc-classify,.advanced-flow .performance-bsc-case.bsc-classify>article{width:1480px}
.advanced-flow .performance-bsc-case.bsc-diagnostics,.advanced-flow .performance-bsc-case.bsc-diagnostics>article{width:1880px}
.advanced-flow .performance-bsc-case.bsc-map-case,.advanced-flow .performance-bsc-case.bsc-map-case>article{width:1760px}
.advanced-flow .bsc-solution{margin:60px 0 0;font:var(--exercise-answer-size)/1.5 var(--exercise-answer-font);color:#252923}
.advanced-flow .bsc-solution>p{margin:24px 0}
.advanced-flow .bsc-solution>p:first-child{margin-top:0}
body[data-chapter="8"] #content .performance-bsc-case table{width:100%!important;table-layout:auto!important;border-collapse:collapse;margin:0;border:1px solid #d7ddd4;border-bottom:1px solid #b9c2b5!important;font:inherit}
body[data-chapter="8"] #content .performance-bsc-case table :is(th,td){padding:14px 18px!important;height:auto!important;min-width:0;max-width:none;white-space:normal;vertical-align:middle!important;border:1px solid #d7ddd4!important;background:#fff;color:inherit;font-weight:400}
body[data-chapter="8"] #content .performance-bsc-case table th{text-align:left}
body[data-chapter="8"] #content .performance-bsc-case table thead th{text-align:center;background:#f1f3ed;font-weight:600}
body[data-chapter="8"] #content .performance-bsc-case table caption{background:#eef1e8;border:1px solid #d7ddd4;border-bottom:0;text-align:center;padding:12px 18px;margin:0;font-weight:600}
body[data-chapter="8"] #content .performance-bsc-case .bsc-table{table-layout:fixed!important}
body[data-chapter="8"] #content .performance-bsc-case .bsc-table tbody th{background:#f1f3ed}
body[data-chapter="8"] #content .performance-bsc-case .bsc-table .bsc-band th{background:#e9ede3;text-align:center;padding:10px 18px!important;font-weight:600}
body[data-chapter="8"] #content .performance-bsc-case .bsc-table td:has(>.inline-equation),body[data-chapter="8"] #content .performance-bsc-case .bsc-table td:has(>[data-given-values]){text-align:right}
body[data-chapter="8"] #content .performance-bsc-case .bsc-table .bsc-result :is(th,td){border-top:1px solid #a8b39e!important}
.advanced-flow .performance-bsc-case .inline-equation{white-space:nowrap;font-weight:400}
.advanced-flow .performance-bsc-case .inline-equation .katex{font-size:1.04em}
.advanced-flow .performance-bsc-case .answer-highlight{font-weight:400;background:#f4e8a0;padding:1px 4px;border-radius:1px}
.advanced-flow .performance-bsc-case .advanced-table-copy{max-width:none;width:auto}
.advanced-flow .bsc-footnote{font-size:.93em;color:#60685d;line-height:1.45;margin:16px 0 30px!important;max-width:100%}
.advanced-flow .bsc-status{display:block;text-align:center;color:#4c6552}
.advanced-flow .bsc-status.miss{color:#9b514d}
.advanced-flow .bsc-prompt-pair{display:grid;grid-template-columns:1fr 1.4fr;gap:52px;align-items:start;margin:22px 0}
.advanced-flow .bsc-objectives ul{margin:0;padding-left:1.3em;list-style:disc}
.advanced-flow .bsc-objectives li{margin:0 0 .65em;padding-left:.3em}
.advanced-flow .bsc-kpi-list{columns:2;column-gap:72px}
.advanced-flow .bsc-kpi-list li{break-inside:avoid}
.advanced-flow .bsc-classified{margin:0;padding:0;list-style:none}
.advanced-flow .bsc-classified li{display:grid;grid-template-columns:1.6em 1fr;gap:10px;margin:0 0 18px!important;padding:0!important;line-height:1.45}
.advanced-flow .bsc-classified li:last-child{margin-bottom:0!important}
.advanced-flow .bsc-classified li>span:first-child{color:#687061}
body[data-chapter="8"] #content .performance-bsc-case table.bsc-classification tbody td{vertical-align:top!important;padding:22px 18px!important}
.advanced-flow .bsc-annotated{position:relative;width:100%;margin:44px 0;display:grid;grid-template-columns:var(--bsc-table-width) 1fr;gap:80px;align-items:start}
.advanced-flow .bsc-callouts{position:relative;min-width:0;align-self:stretch}
.advanced-flow .bsc-callout{position:absolute;left:0;right:0;margin:0;line-height:1.45;color:#4d584c}
.advanced-flow .bsc-reference-links{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#b36a66;stroke-width:1.35;pointer-events:none}
.advanced-flow .bsc-reference-links rect{stroke-dasharray:4 4;stroke-width:1.1}
.advanced-flow .bsc-strategy-map{margin:34px 0 44px;width:100%}
.advanced-flow .bsc-strategy-map img{display:block;width:100%;height:auto}
.advanced-flow .bsc-prompt-grid{display:grid;grid-template-columns:1fr 1fr;gap:34px 44px;align-items:start;margin:24px 0}
.advanced-flow .bsc-chipset-grid{display:grid;grid-template-columns:1fr;gap:40px}
.advanced-flow .bsc-chipset-grid>.bsc-panel>table{max-width:1120px}
.advanced-flow .bsc-chipset-grid .bsc-annotated{margin:0}
.advanced-flow .bsc-inline-calculations{display:grid;gap:24px;margin:40px 0}
.advanced-flow .bsc-inline-calculations p{margin:0}
.advanced-flow .bsc-causal-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:44px 0;color:#4f604c}
.advanced-flow .bsc-causal-strip span:nth-child(2n){font-size:1.5em;font-weight:400}
.advanced-flow .performance-bsc-case>article>ol{margin-top:28px!important}
@media screen and (max-width:700px),print{
 .advanced-flow .performance-bsc-case,.advanced-flow .performance-bsc-case>article,.advanced-flow .performance-bsc-case.bsc-classify,.advanced-flow .performance-bsc-case.bsc-classify>article,.advanced-flow .performance-bsc-case.bsc-diagnostics,.advanced-flow .performance-bsc-case.bsc-diagnostics>article,.advanced-flow .performance-bsc-case.bsc-map-case,.advanced-flow .performance-bsc-case.bsc-map-case>article{width:100%;max-width:100%}
 .advanced-flow .bsc-prompt-pair,.advanced-flow .bsc-prompt-grid{display:block}
 .advanced-flow .bsc-prompt-grid>*+*,.advanced-flow .bsc-prompt-pair>*+*{margin-top:24px!important}
 .advanced-flow .bsc-kpi-list{columns:1}
 body[data-chapter="8"] #content .bsc-solution{overflow-x:auto!important;max-width:100%!important}
 body[data-chapter="8"] #content .bsc-annotated{display:block;width:var(--bsc-table-width)!important;min-width:var(--bsc-table-width)!important;max-width:none!important;margin:32px 0}
 .advanced-flow .bsc-callouts{display:grid;gap:12px;margin:20px 0;max-width:550px}
 .advanced-flow .bsc-callout{position:static!important}
 .advanced-flow .bsc-reference-links{display:none}
 .advanced-flow .bsc-causal-strip{min-width:1000px}
 body[data-chapter="8"] #content .bsc-solution>.bsc-table{width:1050px!important;min-width:1050px!important;max-width:none!important}
 body[data-chapter="8"] #content .bsc-strategy-map{width:1200px!important;min-width:1200px!important}
}
.advanced-flow .performance-bsc-case.bsc-classify>.bsc-solution{margin-top:0}
.advanced-flow .bsc-classification-title{font:600 1em/1.4 var(--exercise-answer-font);margin:0 0 24px;color:inherit}
body[data-chapter="8"] #content .performance-bsc-case.bsc-classify{width:1600px}
.advanced-flow .bsc-overview-diagram{width:100%;margin:0}
.advanced-flow .bsc-overview-diagram>svg{display:block;width:100%;height:auto;max-width:none}
.advanced-flow .bsc-overview-diagram>.bsc-overview-narrow{display:none}
@media screen and (max-width:700px){
 body[data-chapter="8"] #content .performance-bsc-case.bsc-classify{width:100%!important}
 body[data-chapter="8"] #content .bsc-overview-diagram{width:100%!important;min-width:0!important;max-width:none!important}
 .advanced-flow .bsc-overview-diagram>.bsc-overview-wide{display:none}
 .advanced-flow .bsc-overview-diagram>.bsc-overview-narrow{display:block}
}

@media(min-width:701px){
 .advanced-flow .performance-bsc-case.bsc-dakota>article{width:max-content;max-width:1800px}
 body[data-chapter="8"] #content .performance-bsc-case table.bsc-dakota-inputs{width:auto!important;table-layout:auto!important}
 body[data-chapter="8"] #content .performance-bsc-case table.bsc-dakota-inputs :is(th,td){white-space:nowrap}
}
/* Keep interpretation attached to the relevant Dakota measure. */
.advanced-flow .bsc-dakota .bsc-kpi-direction{display:block;margin-top:5px;font-size:.84em;color:#4c6552;white-space:nowrap}
.advanced-flow .bsc-dakota .bsc-gap{display:block;text-align:right}
.advanced-flow .bsc-dakota .bsc-gap.favourable{color:#4c6552}
.advanced-flow .bsc-dakota .bsc-gap.unfavourable{color:#9b514d}
.advanced-flow .bsc-dakota .bsc-gap-unit{display:inline;margin-left:.3em;font-size:.80em;line-height:1.3;white-space:nowrap}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-table .bsc-band th{text-align:left}

/* Dakota: match the Arial typography and exact palette of the sheet 1 SVG. */
.advanced-flow .performance-bsc-case.bsc-dakota{width:2070px}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report{border:1.2px solid #b4c7e4!important;border-bottom:1.2px solid #b4c7e4!important;color:#252923;--exercise-answer-font:Arial,Helvetica,sans-serif;--exercise-answer-size:19px;font:400 19px/1.42 Arial,Helvetica,sans-serif}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report :is(th,td){padding:10px 18px!important;border:0!important;border-bottom:1px solid #e2eaf5!important;font-family:Arial,Helvetica,sans-serif!important;font-size:19px!important;line-height:1.42!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report thead th{height:48px!important;background:#b9cefa;color:#003b9e;font-weight:600;border-bottom:2.2px solid #003b9e!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report thead th:nth-last-child(-n+2){background:#b9cefa}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report tbody tr>:is(th,td){height:72px!important;box-sizing:border-box}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report tbody .dakota-perspective{width:auto;background:#c0e6f2;color:#003b9e;--exercise-answer-size:20px;font-size:20px!important;font-weight:600;text-align:left;vertical-align:middle!important;border-right:1px solid #b4c7e4!important;border-bottom:2px solid #b4c7e4!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report tbody .dakota-objective{background:#fff;color:#252923;font-weight:400}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report tbody .dakota-kpi{background:#fff;color:#252923}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report tbody :is(.dakota-goal,.dakota-actual){background:#f4f8fe;text-align:right}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report tbody .dakota-goal{border-left:1px solid #b4c7e4!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report tbody .dakota-status{background:#fff;text-align:center;border-left:1px solid #b4c7e4!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report tbody .dakota-gap{background:#fff;text-align:right}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report .dakota-group-end>:is(th,td){border-bottom:2px solid #b4c7e4!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report .bsc-status{display:block;background:none;border:0;padding:0;margin:0;--exercise-answer-size:29px;font-size:29px!important;line-height:1!important;color:#386f61;font-weight:400}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report .bsc-status.miss{color:#a16b5b}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report .bsc-gap-unit{margin-top:3px;color:#727b68;font-size:.76em}
.advanced-flow .bsc-dakota .bsc-kpi-direction{color:#727b68}
@media(max-width:700px){.advanced-flow .performance-bsc-case.bsc-dakota{width:100%}}

.advanced-flow .bsc-dakota-analysis{--bsc-table-width:1520px!important}

.advanced-flow .bsc-dakota-analysis .bsc-callout{right:auto;width:max-content;max-width:360px}
.advanced-flow .bsc-synthesis{position:absolute;left:calc(var(--bsc-table-width) + 80px);right:40px;margin:0!important;padding:12px 0 0;border-top:1px dashed #9aa48f;color:#4d584c;line-height:1.45}
.advanced-flow .bsc-reference-links .bsc-synthesis-link{stroke:#7b8872;stroke-width:1.2}
@media screen and (max-width:700px),print{
 .advanced-flow .bsc-dakota-analysis .bsc-synthesis{position:static;margin:24px 0 0!important;max-width:550px}
}
/* Dakota: neutral data and blue status marks, without green. */
body[data-chapter="8"] #content .bsc-dakota .dakota-report{--given-value-color:#252923}
body[data-chapter="8"] #content .bsc-dakota .dakota-report [data-given-values],
body[data-chapter="8"] #content .bsc-dakota .dakota-report [data-given-values] *,
body[data-chapter="8"] #content .bsc-dakota .dakota-report .bsc-gap.favourable{color:#252923!important}
body[data-chapter="8"] #content .bsc-dakota .dakota-report .bsc-status:not(.miss){color:#003b9e!important}
body[data-chapter="8"] #content .bsc-dakota .dakota-report :is(.bsc-gap-unit,.bsc-kpi-direction){color:#657080!important}
/* BSC REFINED END */

/* BSC REFINED END */

/* Pineway: the same type and blue palette as the overview SVG. */
body[data-chapter="8"] #content .bsc-map-case .pineway-value-map{display:block;width:100%;height:auto;max-width:none;overflow:visible}
body[data-chapter="8"] #content .bsc-map-case .pineway-strategy{font-family:Arial,Helvetica,sans-serif;font-size:23px;color:#252923}
body[data-chapter="8"] #content .bsc-map-case .bsc-strategy-map{margin:30px 0 0}

body[data-chapter="8"] #content .bsc-map-case .pineway-strategy-argument{max-width:1000px;font:23px/1.5 Arial,Helvetica,sans-serif;color:#222831}
body[data-chapter="8"] #content .bsc-map-case .pineway-strategy-argument p{margin:0 0 14px;font:inherit}
@media screen and (max-width:700px){body[data-chapter="8"] #content .bsc-map-case .pineway-strategy-argument{font-size:16px;max-width:100%}}

/* Narrow only the Pineway exercise letter; retain the full-size map. */
@media screen and (min-width:701px){body[data-chapter="8"] #content .performance-bsc-case.bsc-map-case>article.exercise-letter{width:860px!important;max-width:100%!important}}

/* Rationale below the letter; bullets only for the parallel cost drivers. */
body[data-chapter="8"] #content .bsc-map-case .pineway-strategy-argument ul{margin:0 0 12px;padding-left:1.2em;list-style:disc}
body[data-chapter="8"] #content .bsc-map-case .pineway-strategy-argument li{margin:0!important;padding-left:.25em!important;line-height:1.45}
body[data-chapter="8"] #content .bsc-map-case .pineway-strategy-argument .pineway-list-intro{margin-bottom:4px}
body[data-chapter="8"] #content .bsc-map-case .pineway-strategy-argument{width:1000px;max-width:100%}
body[data-chapter="8"] #content .bsc-map-case>.bsc-solution{margin-top:30px}

/* Connect the strategy question to its explanation. */
body[data-chapter="8"] #content .bsc-map-case{position:relative}
body[data-chapter="8"] #content .bsc-map-case .pineway-question-ref{display:inline-block;white-space:nowrap;border:1.35px dashed #b36a66;padding:2px 5px}
body[data-chapter="8"] #content .bsc-map-case .pineway-strategy-argument{box-sizing:border-box;border:1.35px dashed #b36a66;padding:16px 20px}
body[data-chapter="8"] #content .bsc-map-case .pineway-strategy-argument p:last-child{margin-bottom:0}
body[data-chapter="8"] #content .bsc-map-case>.bsc-solution{margin-top:52px}
body[data-chapter="8"] #content .bsc-map-case>.pineway-answer-link{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3;fill:none;stroke:#b36a66;stroke-width:1.35;stroke-linejoin:miter}

/* Dhyanchand: source data beside the strategy and its proposed measures. */
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand{display:grid;grid-template-columns:880px 1120px;gap:80px;align-items:start;width:2080px;font-family:Arial,Helvetica,sans-serif;color:#252923}
body[data-chapter="8"] #content .bsc-dhyanchand>article.exercise-letter{width:880px!important;max-width:100%!important;margin:0}
body[data-chapter="8"] #content .bsc-dhyanchand>.bsc-solution{width:1120px;margin:0;font:19px/1.45 Arial,Helvetica,sans-serif;color:#252923}
body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-strategy-answer{box-sizing:border-box;max-width:100%;width:1120px;padding:18px 22px;border:1.35px dashed #b36a66;margin:0 0 38px}
body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-strategy-answer p{font:inherit;margin:0 0 12px}
body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-strategy-answer p:last-child{margin:0}
body[data-chapter="8"] #content .bsc-dhyanchand table{font-family:Arial,Helvetica,sans-serif;border-color:#b4c7e4!important}
body[data-chapter="8"] #content .bsc-dhyanchand table :is(th,td){border-color:#e2eaf5!important;padding:13px 16px!important;background:#fff;color:#252923}
body[data-chapter="8"] #content .bsc-dhyanchand table thead th{background:#b9cefa!important;color:#003b9e;font-weight:600;text-align:center}
body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-given tbody th{width:56%;background:#fff;font-weight:400}
body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-given tbody td{width:22%;text-align:right;white-space:nowrap}
body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-capacity-policy{margin:22px 0 0}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard{font:19px/1.42 Arial,Helvetica,sans-serif;table-layout:fixed!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard :is(th,td){padding:10px 18px!important;text-align:left;vertical-align:middle!important;overflow-wrap:normal}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard thead th{text-align:center}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard .dhyanchand-perspective{background:#c0e6f2!important;color:#003b9e;font-size:20px!important;font-weight:600}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard tbody th:not(.dhyanchand-perspective){background:#fff!important;font-weight:400}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard .dhyanchand-group-start>*{border-top:2px solid #b4c7e4!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard col:nth-child(1){width:16%!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard col:nth-child(2){width:23%!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard col:nth-child(3){width:31%!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard col:nth-child(4){width:30%!important}
@media screen and (max-width:700px),print{
 body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand{display:block;width:100%;max-width:100%}
 body[data-chapter="8"] #content .bsc-dhyanchand>article.exercise-letter{width:100%!important}
 body[data-chapter="8"] #content .bsc-dhyanchand>.bsc-solution{width:100%;margin-top:30px;overflow-x:auto!important}
 body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-strategy-answer{font-size:16px;width:100%;padding:16px;margin-bottom:28px}
 body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard{min-width:1040px;font-size:17px}
}

@media screen and (max-width:700px){
 body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-given{table-layout:fixed!important;font-size:14px}
 body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-given :is(th,td){padding:11px 7px!important}
 body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-given tbody th{width:44%}
 body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-given tbody td{width:28%}
}

/* Same typography, palette and separators as Dakota's scorecard. */
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard{--exercise-answer-font:Arial,Helvetica,sans-serif;--exercise-answer-size:19px;border:1.2px solid #b4c7e4!important;border-bottom:1.2px solid #b4c7e4!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard :is(th,td){border:0!important;border-bottom:1px solid #e2eaf5!important;font-family:Arial,Helvetica,sans-serif!important;font-size:19px!important;line-height:1.42!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard thead th{height:48px!important;border-bottom:2.2px solid #003b9e!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard tbody tr>*{height:72px!important;box-sizing:border-box}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard .dhyanchand-perspective{font-size:20px!important;border-right:1px solid #b4c7e4!important;border-bottom:2px solid #b4c7e4!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard tbody tr:nth-child(even)>*{border-bottom:2px solid #b4c7e4!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand .bsc-solution .dhyanchand-scorecard tbody td:last-child{background:#f4f8fe;border-left:1px solid #b4c7e4!important}
body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-given tbody td{background:#f4f8fe}
body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-given thead th{border-bottom:2px solid #003b9e!important}

/* Dakota source table: same blue palette and Arial typography as the scorecard. */
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs{--exercise-answer-font:Arial,Helvetica,sans-serif;--exercise-answer-size:19px;font:400 19px/1.42 Arial,Helvetica,sans-serif;border:1.2px solid #b4c7e4!important;border-bottom:1.2px solid #b4c7e4!important;color:#252923}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs :is(th,td){font-family:Arial,Helvetica,sans-serif!important;font-size:19px!important;line-height:1.42!important;padding:10px 18px!important;border:0!important;border-bottom:1px solid #e2eaf5!important;background:#fff;color:#252923}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs caption{font:600 19px/1.42 Arial,Helvetica,sans-serif!important;background:#c0e6f2;color:#003b9e;border:1.2px solid #b4c7e4;border-bottom:0;padding:12px 18px}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs thead th{height:48px!important;background:#b9cefa!important;color:#003b9e;font-weight:600;border-bottom:2.2px solid #003b9e!important;text-align:center}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs tbody td{background:#f4f8fe;text-align:right;border-left:1px solid #e2eaf5!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs tbody tr:last-child>*{border-bottom:1.2px solid #b4c7e4!important}
@media screen and (max-width:700px){
 body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs :is(th,td){font-size:14px!important;padding:10px 7px!important;white-space:normal}
 body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs caption{font-size:16px!important}
}

/* Read vertically: source, strategy explanation, then proposed scorecard. */
@media screen and (min-width:701px){
 body[data-chapter="8"] #content .performance-bsc-case.bsc-dhyanchand{position:relative;display:block;width:1480px}
 body[data-chapter="8"] #content .bsc-dhyanchand>.bsc-solution{display:block;width:1480px;margin-top:52px}
 body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-strategy-answer{width:1000px;margin:0 0 48px}
}
body[data-chapter="8"] #content .bsc-dhyanchand .dhyanchand-question-ref{display:inline-block;white-space:nowrap;border:1.35px dashed #b36a66;padding:2px 5px}
body[data-chapter="8"] #content .bsc-dhyanchand>.pineway-answer-link{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:3;fill:none;stroke:#b36a66;stroke-width:1.35;stroke-linejoin:miter}

/* Use Dakota's canvas width as a common left-alignment frame, without stretching content. */
@media screen and (min-width:701px){
 body[data-chapter="8"] #content .advanced-flow .working-canvas-node:has(.advanced-content-stack),
 body[data-chapter="8"] #content .theory-manual-flow .working-canvas-node:has(.theory-manual-stack){width:2070px;min-width:2070px}
 body[data-chapter="8"] #content .theory-manual-stack{width:2070px}
 body[data-chapter="8"] #content .theory-manual-letter{margin-left:auto;margin-right:auto}
}

/* The introductory diagram is the only centred sheet. */
@media screen and (min-width:701px){
 body[data-chapter="8"] #content .advanced-flow .working-canvas-node:has(.bsc-classify){width:1600px;min-width:1600px}
}

/* Dakota uses the same letter and table widths as Dhyanchand. */
@media screen and (min-width:701px){
 body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter{width:880px;max-width:880px}
 body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota table.bsc-dakota-inputs{width:100%!important;max-width:100%;table-layout:auto!important}
 body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota table.bsc-dakota-inputs tbody th{white-space:normal}
 body[data-chapter="8"] #content .bsc-dakota-analysis{--bsc-table-width:1480px!important}
}

/* Keep each Dakota interpretation and its calculation clearly separated. */
body[data-chapter="8"] #content .bsc-dakota-analysis .bsc-callout{width:max-content;max-width:none;color:#252923;--exercise-answer-font:Arial,Helvetica,sans-serif;--exercise-answer-size:19px}
body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-lead{display:block;white-space:nowrap}
body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-calculation{display:flex;align-items:center;gap:8px;margin-top:14px;white-space:nowrap}
body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-calculation .inline-equation{flex:none}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs caption{background:#f1f3f5;color:#303844}
@media screen and (max-width:700px){
 body[data-chapter="8"] #content .bsc-dakota-analysis .bsc-callout{max-width:100%;width:auto}
 body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-lead{white-space:normal}
 body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-calculation{flex-wrap:wrap}
}

/* Chipset: one scorecard, matching the Dakota and Dhyanchand visual system. */
body[data-chapter="8"] #content .performance-bsc-case.bsc-chipset{width:2070px}
body[data-chapter="8"] #content .performance-bsc-case.bsc-chipset>article.exercise-letter{width:880px;max-width:880px}
body[data-chapter="8"] #content .bsc-chipset .chipset-source-inputs{margin-top:18px}
body[data-chapter="8"] #content .bsc-chipset .chipset-report{border:1.2px solid #b4c7e4!important;border-bottom:1.2px solid #b4c7e4!important;--exercise-answer-font:Arial,Helvetica,sans-serif;--exercise-answer-size:19px;--given-value-color:#252923;font:400 19px/1.42 Arial,Helvetica,sans-serif;color:#252923}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report :is(th,td){padding:8px 12px!important;border:0!important;border-bottom:1px solid #e2eaf5!important;font:400 19px/1.42 Arial,Helvetica,sans-serif!important;color:#252923;vertical-align:middle!important;box-sizing:border-box}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report thead th{height:48px!important;background:#b9cefa!important;color:#003b9e;font-weight:600!important;text-align:center;border-bottom:2.2px solid #003b9e!important}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report tbody :is(th,td){height:64px!important}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report .chipset-perspective{background:#c0e6f2!important;color:#003b9e;font-weight:600!important;font-size:20px!important;text-align:left;border-right:1px solid #b4c7e4!important;border-bottom:2px solid #b4c7e4!important}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report .chipset-kpi{background:#fff!important;text-align:left}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report :is(.chipset-goal,.chipset-actual){background:#f4f8fe!important;text-align:right;white-space:nowrap}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report :is(.chipset-goal,.chipset-status){border-left:1px solid #b4c7e4!important}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report .chipset-status{background:#fff!important;text-align:center}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report .chipset-group-end>*{border-bottom:2px solid #b4c7e4!important}
body[data-chapter="8"] #content .bsc-chipset .chipset-report .bsc-status{display:block;background:none;border:0;padding:0;margin:0;--exercise-answer-size:29px;font-size:29px!important;line-height:1!important;color:#003b9e;font-weight:400}
body[data-chapter="8"] #content .bsc-chipset .chipset-report .bsc-status.miss{color:#a16b5b}
body[data-chapter="8"] #content .bsc-chipset .chipset-direction{display:block;color:#657080;--exercise-answer-size:16px;margin-top:4px}
body[data-chapter="8"] #content .chipset-analysis .bsc-callout{width:500px;max-width:500px;color:#252923;--exercise-answer-font:Arial,Helvetica,sans-serif;--exercise-answer-size:19px}
body[data-chapter="8"] #content .chipset-analysis .chipset-note-lead{display:block}
body[data-chapter="8"] #content .chipset-analysis .chipset-note-calculation{display:flex;align-items:center;gap:8px;white-space:nowrap;margin-top:14px}
body[data-chapter="8"] #content .chipset-analysis .chipset-note-context{display:block;margin-top:18px;color:#657080}
@media screen and (max-width:700px){
 body[data-chapter="8"] #content .performance-bsc-case.bsc-chipset{width:100%!important}
 body[data-chapter="8"] #content .performance-bsc-case.bsc-chipset>article.exercise-letter{width:100%!important;max-width:100%!important}
 body[data-chapter="8"] #content .chipset-analysis .bsc-callout{max-width:100%;width:auto}
}

body[data-chapter="8"] #content .chipset-analysis .bsc-callout>.chipset-note-calculation:first-child{margin-top:0}

/* Compact Chipset columns around the actual labels and values. */
body[data-chapter="8"] #content .chipset-analysis{--bsc-table-width:1300px!important;column-gap:72px}
body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report :is(th,td){padding-left:12px!important;padding-right:12px!important}

/* Numeric and status columns follow their content, without widening the KPI column. */
body[data-chapter="8"] #content .chipset-analysis{--bsc-table-width:1108px!important}
body[data-chapter="8"] #content .bsc-chipset .chipset-report col:nth-child(1){width:208px!important}
body[data-chapter="8"] #content .bsc-chipset .chipset-report col:nth-child(2){width:500px!important}
body[data-chapter="8"] #content .bsc-chipset .chipset-report col:nth-child(3),
body[data-chapter="8"] #content .bsc-chipset .chipset-report col:nth-child(4){width:150px!important}
body[data-chapter="8"] #content .bsc-chipset .chipset-report col:nth-child(5){width:100px!important}

body[data-chapter="8"] #content .bsc-chipset .bsc-solution .chipset-report thead th:last-child{padding-left:6px!important;padding-right:6px!important}

@media screen and (min-width:701px){
 body[data-chapter="8"] #content .chipset-analysis [data-bsc-note="satisfaction"]{width:max-content;max-width:none}
 body[data-chapter="8"] #content .chipset-analysis [data-bsc-note="satisfaction"] .chipset-note-lead{white-space:nowrap}
}

@media screen and (min-width:701px){
 body[data-chapter="8"] #content .chipset-analysis [data-bsc-note="delivery"]{width:max-content;max-width:none}
 body[data-chapter="8"] #content .chipset-analysis [data-bsc-note="delivery"] .chipset-note-lead{white-space:nowrap}
}

@media screen and (min-width:701px){
 body[data-chapter="8"] #content .chipset-analysis .chipset-note-context{white-space:nowrap}
}

body[data-chapter="8"] #content .chipset-result-arrow{display:block;width:64px;height:12px;flex:0 0 64px;fill:none;stroke:#b36a66;stroke-width:1.3;stroke-linecap:butt;stroke-linejoin:miter;overflow:visible}

/* Pineway workshop: the same compact blue scorecard system. */
body[data-chapter="8"] #content .performance-bsc-case.bsc-workshop{width:1480px}
body[data-chapter="8"] #content .performance-bsc-case.bsc-workshop>article.exercise-letter{width:880px;max-width:880px}
body[data-chapter="8"] #content .bsc-workshop .workshop-assumption{margin-top:18px}
body[data-chapter="8"] #content .bsc-workshop .workshop-solution{width:1480px;--exercise-answer-font:Arial,Helvetica,sans-serif;--exercise-answer-size:19px}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution :is(.workshop-report,.workshop-review){width:1480px;table-layout:fixed;border:1.2px solid #b4c7e4!important;border-bottom:1.2px solid #b4c7e4!important;--given-value-color:#252923;--exercise-answer-font:Arial,Helvetica,sans-serif;--exercise-answer-size:19px;font:400 19px/1.42 Arial,Helvetica,sans-serif;color:#252923}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution :is(.workshop-report,.workshop-review) :is(th,td){padding:12px 16px!important;border:0!important;border-bottom:1px solid #e2eaf5!important;font:400 19px/1.42 Arial,Helvetica,sans-serif!important;color:#252923;vertical-align:middle!important;background:#fff!important;box-sizing:border-box;text-align:left}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution :is(.workshop-report,.workshop-review) thead th{height:58px!important;background:#b9cefa!important;color:#003b9e;font-weight:600!important;text-align:center;border-bottom:2.2px solid #003b9e!important}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution .workshop-report tbody :is(th,td){height:94px!important}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution .workshop-report .workshop-perspective{background:#c0e6f2!important;color:#003b9e;font-weight:600!important;font-size:20px!important;text-align:left;border-right:1px solid #b4c7e4!important;border-bottom:2px solid #b4c7e4!important}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution .workshop-report .workshop-target{background:#f4f8fe!important;text-align:center;border-left:1px solid #e2eaf5!important;border-right:1px solid #e2eaf5!important;white-space:nowrap}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution .workshop-report .workshop-group-end>*{border-bottom:2px solid #b4c7e4!important}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution .workshop-review tbody th{background:#f1f3f5!important;color:#303844;font-weight:600!important;border-right:1px solid #e2eaf5!important}
body[data-chapter="8"] #content .bsc-workshop .workshop-pathway-wrap{margin:24px auto;width:1240px}
body[data-chapter="8"] #content .bsc-workshop .workshop-pathway{display:block;width:100%;height:auto}
@media screen and (max-width:700px){
 body[data-chapter="8"] #content .performance-bsc-case.bsc-workshop{width:100%!important}
 body[data-chapter="8"] #content .performance-bsc-case.bsc-workshop>article.exercise-letter{width:100%!important;max-width:100%!important}
 body[data-chapter="8"] #content .bsc-workshop .workshop-solution{max-width:100%;overflow-x:auto}
 body[data-chapter="8"] #content .bsc-workshop .workshop-pathway-wrap{width:1240px;max-width:none}
}

/* Content-led spacing for the Pineway proposal and its review. */
body[data-chapter="8"] #content .bsc-workshop .bsc-solution :is(.workshop-report,.workshop-review) :is(th,td){padding:9px 14px!important;overflow-wrap:normal;word-break:normal}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution :is(.workshop-report,.workshop-review) thead th{height:52px!important;padding-top:8px!important;padding-bottom:8px!important}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution .workshop-report tbody :is(th,td){height:58px!important}
body[data-chapter="8"] #content .bsc-workshop .bsc-solution .workshop-review tbody :is(th,td){height:54px!important}
body[data-chapter="8"] #content .bsc-workshop .workshop-pathway-wrap{margin:24px auto}

body[data-chapter="8"] #content .bsc-workshop .workshop-report + .workshop-review{margin-top:32px}

/* Review as reading text, matching the exercise letters. */
body[data-chapter="8"] #content .bsc-workshop .workshop-review-copy{width:1000px;max-width:100%;box-sizing:border-box;margin:40px 0 0;padding:0;background:transparent;border:0;box-shadow:none;font:400 16px/1.55 Arial,Helvetica,sans-serif;color:#222}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-copy p{margin:0 0 16px;font:inherit}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-copy p:last-child{margin-bottom:0}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-copy strong{font-weight:600}
@media(max-width:700px){body[data-chapter="8"] #content .bsc-workshop .workshop-review-copy{width:100%;padding:0}}

/* Direct title-to-explanation links on the white canvas. */
body[data-chapter="8"] #content .bsc-workshop .workshop-review-copy{width:1480px}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-item{display:grid;grid-template-columns:154px 64px minmax(0,1fr);column-gap:16px;align-items:start;margin-bottom:18px}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-item:last-child{margin-bottom:0}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-item p{margin:0}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-arrow{display:block;width:64px;height:16px;margin-top:4.4px;overflow:visible}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-arrow path{fill:none;stroke:#b36a66;stroke-width:1.4;stroke-linejoin:miter}
@media(max-width:700px){body[data-chapter="8"] #content .bsc-workshop .workshop-review-item{grid-template-columns:120px 32px minmax(0,1fr);gap:10px}body[data-chapter="8"] #content .bsc-workshop .workshop-review-arrow{width:32px}}

@media(min-width:701px){
 body[data-chapter="8"] #content .bsc-workshop .workshop-review-copy{width:max-content;max-width:none}
 body[data-chapter="8"] #content .bsc-workshop .workshop-review-item{grid-template-columns:154px 64px max-content}
 body[data-chapter="8"] #content .bsc-workshop .workshop-review-item p{white-space:nowrap}
}

/* Spaced review labels with reference boxes attached to the connectors. */
body[data-chapter="8"] #content .bsc-workshop .workshop-review-item{grid-template-columns:170px 80px max-content;column-gap:0;align-items:center;margin-bottom:30px}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-item>strong{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:42px;padding:8px 10px;border:1.3px dashed #b36a66;font-weight:600;white-space:nowrap}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-arrow{width:80px;height:16px;margin-top:0}
body[data-chapter="8"] #content .bsc-workshop .workshop-review-item p{padding-left:12px}
@media(max-width:700px){body[data-chapter="8"] #content .bsc-workshop .workshop-review-item{grid-template-columns:130px 40px minmax(0,1fr)}body[data-chapter="8"] #content .bsc-workshop .workshop-review-arrow{width:40px}body[data-chapter="8"] #content .bsc-workshop .workshop-review-item p{padding-left:8px}}

/* Match Dakota's side commentary to the concluding interpretation. */
body[data-chapter="8"] #content .bsc-dakota-analysis .bsc-callout,
body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-lead,
body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-calculation{font-size:inherit!important;line-height:inherit!important;--exercise-answer-size:inherit}

/* Dakota: allocate width to the wording and keep numeric columns compact. */
body[data-chapter="8"] #content .bsc-dakota-analysis{--bsc-table-width:1410px!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report :is(th,td){padding:8px 12px!important;vertical-align:middle!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report tbody tr>:is(th,td){height:64px!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota .bsc-solution .dakota-report thead th{height:64px!important}
body[data-chapter="8"] #content .performance-bsc-case.bsc-dakota>article.exercise-letter .bsc-dakota-inputs :is(th,td){padding:8px 14px!important}

/* Match the overview KPI labels at the chapter's default canvas scales:
   24px × (1600 / 1860) × .54 ≈ 19px × .585. */
body[data-chapter="8"] #content .advanced-flow .performance-workspace.performance-bsc-case table:is(.bsc-table,.bsc-dakota-inputs,.dhyanchand-given) :is(th,td){font-size:19px!important;--exercise-answer-size:19px;line-height:1.42!important}
body[data-chapter="8"] #content .advanced-flow .performance-workspace.performance-bsc-case table:is(.bsc-table,.bsc-dakota-inputs,.dhyanchand-given){--exercise-answer-size:19px}

body[data-chapter="8"] #content .advanced-flow .performance-workspace.performance-bsc-case table.bsc-table :is(th,td)[rowspan]{font-size:19px!important;--exercise-answer-size:19px}

/* Read the Dakota gaps from the table through the calculation to interpretation. */
body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-sequence{display:flex;align-items:center;gap:12px;white-space:nowrap;width:max-content;max-width:none}
body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-sequence .dakota-note-calculation{margin-top:0;flex:none}
body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-comment-arrow{display:block;width:64px;height:16px;flex:none;overflow:visible}
body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-comment-arrow path{fill:none;stroke:#b36a66;stroke-width:1.35;stroke-linejoin:miter}
@media(min-width:701px){body[data-chapter="8"] #content .advanced-flow .working-canvas-node:has(.bsc-dakota){width:2450px;min-width:2450px}}
@media(max-width:700px){body[data-chapter="8"] #content .bsc-dakota-analysis .dakota-note-sequence{max-width:100%;flex-wrap:wrap;white-space:normal}}
