/* Editorial article template. Loaded after site.css on blog posts. */

.progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:60;pointer-events:none}
.progress i{display:block;height:100%;width:100%;background:var(--orange);transform-origin:left;transform:scaleX(0)}

.crumbs{font-family:var(--font-display);font-size:.92rem;color:var(--text-soft);margin-bottom:2rem}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;margin:0;padding:0}
.crumbs li+li::before{content:"/";margin-right:.4rem;color:var(--line-strong)}
.crumbs a{color:var(--text-soft);text-decoration:none}
.crumbs a:hover{color:var(--orange-text)}

/* Hero */
.post-hero{padding-block:clamp(2rem,1.5rem + 3vw,4rem) clamp(2rem,1.5rem + 2vw,3rem);background:var(--warm);border-bottom:1px solid #F1DFCF}
.post-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(2rem,1.5rem + 3vw,4.5rem);align-items:center}
.post-hero .cat{display:inline-block;font-family:var(--font-display);font-weight:600;font-size:.92rem;color:var(--orange-text);margin-bottom:1rem}
.post-hero h1{font-size:var(--step-4);line-height:1.06;letter-spacing:-.03em;max-width:20ch}
.dek{font-size:var(--step-1);line-height:1.55;color:var(--text);margin:1.25rem 0 1.75rem;max-width:38rem}
.meta{display:flex;flex-wrap:wrap;gap:.5rem 1.75rem;font-size:.95rem;color:var(--text-soft)}
.meta span{display:inline-flex;align-items:center;gap:.45rem}
.meta svg{width:16px;height:16px;flex-shrink:0;color:var(--orange)}
.meta b{color:var(--forest);font-weight:600}
.post-hero img{border-radius:var(--r-lg);aspect-ratio:1200/630;object-fit:cover;width:100%;box-shadow:var(--shadow-panel)}

/* Body layout: contents rail + reading column */
.post-layout{display:grid;grid-template-columns:15rem minmax(0,1fr);gap:clamp(2rem,1rem + 4vw,5rem);padding-block:clamp(2.5rem,2rem + 3vw,4.5rem) var(--section);align-items:start}
.toc{position:sticky;top:6rem;font-family:var(--font-display);font-size:.92rem}
.toc h2{font-size:.95rem;letter-spacing:0;margin-bottom:.9rem;color:var(--forest)}
.toc ol{list-style:none;margin:0;padding:0;border-left:1.5px solid var(--line)}
.toc a{display:block;padding:.4rem 0 .4rem 1rem;margin-left:-1.5px;border-left:1.5px solid transparent;color:var(--text-soft);text-decoration:none;line-height:1.35}
.toc a:hover{color:var(--forest)}
.toc a.is-current{color:var(--forest);border-left-color:var(--orange);font-weight:600}
.toc .share{margin-top:2rem;display:grid;gap:.5rem}
.toc .share a.share-btn{display:inline-flex;padding:.55rem .9rem;margin:0;border:1px solid var(--line);color:var(--forest)}
.share-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.55rem .9rem;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--forest);font-family:var(--font-display);font-size:.88rem;font-weight:500;text-decoration:none;cursor:pointer;justify-self:start}
.share-btn:hover{border-color:var(--forest);color:var(--forest)}
.share-btn svg{width:15px;height:15px}
.toc-mobile{display:none}

.prose{max-width:54rem;font-size:1.125rem;line-height:1.7;color:var(--text)}
.prose > * + *{margin-top:1.25em}
.prose p{margin-bottom:0}
.prose > :not(.figure):not(.brief):not(.post-cta):not(.formula):not(.callout):not(.cmp-wrap){max-width:34em}
.prose > .formula,.prose > .callout{max-width:36em}
.prose h2{font-size:var(--step-3);margin-top:3.25rem;line-height:1.12;scroll-margin-top:6rem}
.prose h3{font-size:var(--step-1);margin-top:2rem}
.prose h2 + p,.prose h3 + p{margin-top:.9em}
.prose strong{color:var(--forest);font-weight:600}
.prose ul,.prose ol{padding-left:1.25rem}
.prose li + li{margin-top:.4rem}
.prose abbr{text-decoration:underline dotted var(--line-strong);text-underline-offset:.2em;cursor:help}

.brief{border-radius:var(--r-lg);background:#fff;border:1.5px solid var(--forest);padding:1.5rem 1.6rem;margin-top:0}
.brief h2{font-size:1.1rem;margin:0 0 .75rem;letter-spacing:0}
.brief p{font-size:1.07rem}
.brief dl{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.25rem 0 0;padding-top:1.25rem;border-top:1px solid var(--line)}
.brief dt{order:2;font-size:.88rem;color:var(--text-soft);line-height:1.4}
.brief dd{order:1;margin:0;font-family:var(--font-display);font-weight:600;font-size:1.65rem;color:var(--forest);line-height:1.1}
.brief dl > div{display:flex;flex-direction:column;gap:.35rem}

/* Figures: allowed to run wider than the text column */
.figure{margin:2.5rem 0 0;width:100%}
.prose > .figure + p,.prose > .figure + h2{margin-top:2rem}
.figure figcaption{font-size:.92rem;color:var(--text-soft);line-height:1.5;margin-top:.9rem;max-width:43rem}
.figure figcaption b{color:var(--forest);font-weight:600}
.fig-title{font-family:var(--font-display);font-weight:600;color:var(--forest);font-size:1.05rem;margin-bottom:1rem;line-height:1.3}
.fig-panel{border:1px solid var(--line);border-radius:var(--r-lg);background:#fff;padding:clamp(1rem,.75rem + 1vw,1.75rem)}
.label-illus{display:inline-block;font-family:var(--font-display);font-size:.8rem;font-weight:500;color:var(--text-soft);background:var(--warm);border-radius:999px;padding:.15rem .65rem;margin-left:.5rem;vertical-align:middle}

/* Tables */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-lg);background:#fff;-webkit-overflow-scrolling:touch}
.data{width:100%;border-collapse:collapse;font-size:.98rem;line-height:1.45}
.data caption{caption-side:top;text-align:left;padding:1rem 1.25rem .25rem;font-family:var(--font-display);font-weight:600;color:var(--forest);font-size:1rem}
.data caption small{display:block;font-family:var(--font-body);font-weight:400;color:var(--text-soft);font-size:.88rem;margin-top:.2rem}
.data th,.data td{padding:.75rem 1.25rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.data thead th{font-family:var(--font-display);font-weight:600;font-size:.88rem;color:var(--text-soft);background:#FCFAF7;white-space:nowrap}
.data tbody th{font-weight:600;color:var(--forest);font-family:var(--font-display)}
.data .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.data tr:last-child th,.data tr:last-child td{border-bottom:0}
.data tr.total th,.data tr.total td{background:var(--warm);font-weight:600;color:var(--forest);border-top:1.5px solid var(--forest)}
.data .neg{color:#9A3412}
.table-note{font-size:.9rem;color:var(--text-soft);margin-top:.75rem}
.ledgers{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.ledgers .data th,.ledgers .data td{padding:.6rem 1rem}

/* Formula block */
.formula{border-left:3px solid var(--orange);background:#FCFAF7;border-radius:0 var(--r-md) var(--r-md) 0;padding:1.1rem 1.4rem}
.formula .f-label{font-family:var(--font-display);font-size:.9rem;font-weight:500;color:var(--text-soft);margin:0 0 .35rem}
.formula .f-expr{font-family:var(--font-display);font-size:clamp(1.15rem,1rem + .6vw,1.45rem);font-weight:600;color:var(--forest);margin:0;line-height:1.35}
.formula .f-expr + .f-label{margin-top:1rem}
.formula var{font-style:italic;font-family:var(--font-body);font-weight:600}
.formula dl{display:grid;grid-template-columns:auto 1fr;gap:.25rem .75rem;margin:1rem 0 0;font-size:.95rem}
.formula dt{font-style:italic;font-weight:600;color:var(--forest)}
.formula dd{margin:0;color:var(--text-soft)}

/* Callouts */
.callout{border-radius:var(--r-md);background:var(--warm);padding:1.25rem 1.4rem}
.callout h3{font-size:1.05rem;margin:0 0 .5rem}
.callout p{font-size:1.02rem}

/* Cost stack bar */
.stackbar{display:flex;height:2.75rem;border-radius:var(--r-sm);overflow:hidden;gap:2px;background:#fff}
.stackbar span{flex:var(--v) 0 0;background:var(--c);min-width:2px}
.stackbar-row{display:grid;grid-template-columns:9.5rem 1fr;gap:1rem;align-items:center}
.stackbar-row + .stackbar-row{margin-top:1rem}
.stackbar-row .lbl{font-family:var(--font-display);font-size:.92rem;font-weight:600;color:var(--forest);line-height:1.25}
.stackbar-row .lbl small{display:block;font-weight:500;color:var(--text-soft);font-size:.85rem}
.stackbar-scale{position:relative;margin-left:10.5rem;height:1.25rem;margin-top:.5rem;font-size:.78rem;color:var(--text-soft);font-family:var(--font-display)}
.stackbar-scale span{position:absolute;transform:translateX(-50%)}
.stackbar-scale span:first-child{transform:none}
.key{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem 1.25rem;margin:1.5rem 0 0;padding:1.25rem 0 0;border-top:1px solid var(--line);font-size:.92rem}
.key li{display:grid;grid-template-columns:12px 1fr auto;gap:.5rem;align-items:baseline;margin:0}
.key i{width:12px;height:12px;border-radius:3px;background:var(--c);transform:translateY(1px)}
.key b{font-variant-numeric:tabular-nums;color:var(--forest);font-weight:600}

/* Waterfall */
.waterfall{display:grid;grid-template-columns:3.25rem repeat(4,1fr);gap:0 clamp(.5rem,2vw,1.5rem);align-items:end;height:18rem;position:relative}
.wf-axis{position:relative;height:100%;font-size:.78rem;color:var(--text-soft);font-family:var(--font-display)}
.wf-axis span{position:absolute;right:.25rem;transform:translateY(50%)}
.wf-col{position:relative;height:100%;border-bottom:1.5px solid var(--forest)}
.wf-col::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#F1ECE5 calc(25% - 1px),#F1ECE5 25%);pointer-events:none}
.wf-bar{position:absolute;left:12%;right:12%;bottom:var(--b);height:var(--h);background:var(--c);border-radius:4px 4px 0 0}
.wf-bar.float{border-radius:3px}
.wf-val{position:absolute;left:0;right:0;bottom:calc(var(--b) + var(--h) + .4rem);text-align:center;font-family:var(--font-display);font-weight:600;font-size:.95rem;color:var(--forest);font-variant-numeric:tabular-nums}
.wf-val.neg{color:#9A3412}
.wf-labels{display:grid;grid-template-columns:3.25rem repeat(4,1fr);gap:0 clamp(.5rem,2vw,1.5rem);margin-top:.75rem}
.wf-labels span{font-size:.86rem;line-height:1.35;color:var(--text);text-align:center;font-family:var(--font-display)}
.wf-link{position:absolute;height:0;border-top:1.5px dashed var(--line-strong);bottom:var(--b);left:88%;width:calc(24% + clamp(.5rem,2vw,1.5rem))}

/* Sensitivity heatmap */
.heat td.num{font-weight:600}
.heat td[data-l="1"]{background:#FDF1E6}
.heat td[data-l="2"]{background:#F9DDC2}
.heat td[data-l="3"]{background:#F0B886;color:#4A2306}
.heat td[data-l="4"]{background:#D9843D;color:#fff}
.heat td.base{outline:2px solid var(--forest);outline-offset:-2px}
.heat-legend{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--text-soft);margin-top:.75rem;font-family:var(--font-display)}
.heat-legend i{width:1.75rem;height:.75rem;border-radius:2px;display:inline-block}

/* Flow diagram */
.flow-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.flow{min-width:640px;width:100%}
.flow .box rect{fill:#fff;stroke:var(--line-strong);stroke-width:1.2}
.flow .box.rto rect{fill:#FBEFE4;stroke:#E6B98E}
.flow .box.good rect{fill:#EEF3EE;stroke:#B8C9B9}
.flow .box.mid rect{fill:#FCFAF7}
.flow .box.bad rect{fill:#F9DDC2;stroke:#D9843D}
.flow .box.root rect{fill:var(--forest);stroke:var(--forest)}
.flow .box.root text{fill:#fff}
.flow text{font-family:'Anuphan',sans-serif;fill:var(--forest)}
.flow .t{font-size:13.5px;font-weight:600}
.flow .n{font-size:17px;font-weight:600}
.flow .s{font-size:12px;fill:var(--text-soft)}
.flow .box.root .s{fill:#C9D6C9}
.flow path{fill:none;stroke:var(--line-strong);stroke-width:1.5}

/* Loop */
.loop{list-style:none;padding:0!important;display:grid;grid-template-columns:repeat(5,1fr);gap:.75rem;counter-reset:loop;position:relative;margin-bottom:0}
.loop li{counter-increment:loop;background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:1rem;margin:0!important;position:relative;font-size:.95rem;line-height:1.45}
.loop li::before{content:counter(loop);display:grid;place-items:center;width:1.75rem;height:1.75rem;border-radius:50%;background:var(--orange-tint);color:var(--orange-deep);font-family:var(--font-display);font-weight:600;font-size:.85rem;margin-bottom:.6rem}
.loop li:not(:last-child)::after{content:"";position:absolute;top:1.85rem;right:-.6rem;width:.45rem;height:.45rem;border-top:1.5px solid var(--orange);border-right:1.5px solid var(--orange);transform:rotate(45deg);z-index:1}
.loop b{display:block;font-family:var(--font-display);color:var(--forest);font-weight:600;margin-bottom:.3rem;line-height:1.25}
.loop-return{display:flex;align-items:center;gap:.6rem;margin-top:.9rem;font-family:var(--font-display);font-size:.9rem;color:var(--text-soft)}
.loop-return svg{width:100%;max-width:none;height:24px;flex:1}

/* Components list (cost components) */
.components{display:grid;grid-template-columns:1fr 1fr;gap:0 2rem;margin-bottom:0}
.components div{padding:1rem 0;border-top:1px solid var(--line)}
.components dt{font-family:var(--font-display);font-weight:600;color:var(--forest);margin-bottom:.25rem}
.components dd{margin:0;font-size:1rem;color:var(--text-soft);line-height:1.55}

/* Q&A, sources */
.qa{margin-bottom:0}
.qa div{padding:1.25rem 0;border-top:1px solid var(--line)}
.qa dt{font-family:var(--font-display);font-weight:600;color:var(--forest);font-size:1.12rem;margin-bottom:.4rem;line-height:1.3}
.qa dd{margin:0}
.sources{font-size:1rem;color:var(--text-soft)}
.sources ul{margin-top:.75rem}

/* Article CTA + related */
.post-cta{margin-top:3.5rem;border-radius:var(--r-lg);background:var(--forest);color:var(--on-dark);padding:clamp(1.5rem,1rem + 2vw,2.5rem)}
.post-cta h2{color:#fff;font-size:var(--step-2);margin:0 0 .75rem}
.post-cta p{color:var(--on-dark-soft);font-size:1.05rem;margin:0 0 1.5rem}
.post-cta p a{color:#F0A35E}
.post-cta p a:hover{color:#fff}
.post-cta .actions{display:flex;flex-wrap:wrap;gap:.75rem}
.related{border-top:1px solid var(--line);padding-block:clamp(3rem,2rem + 3vw,5rem)}
.related h2{font-size:var(--step-3);margin-bottom:2rem}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.25rem,1rem + 1vw,2rem);list-style:none}
.related-grid a{display:block;text-decoration:none;color:inherit}
.related-grid img{border-radius:var(--r-md);aspect-ratio:720/380;object-fit:cover;width:100%;background:var(--warm)}
.related-grid .post-cat{margin:1rem 0 .35rem}
.related-grid h3{font-size:1.15rem;line-height:1.3;transition:color .15s}
.related-grid a:hover h3{color:var(--orange-text)}

@media (max-width:1100px){
  .post-layout{grid-template-columns:minmax(0,1fr)}
  .toc{display:none}
  .toc-mobile{display:block;border:1px solid var(--line);border-radius:var(--r-md);background:#fff;margin-bottom:2rem;max-width:43rem}
  .toc-mobile summary{cursor:pointer;padding:1rem 1.2rem;font-family:var(--font-display);font-weight:600;color:var(--forest);list-style:none;display:flex;justify-content:space-between}
  .toc-mobile summary::-webkit-details-marker{display:none}
  .toc-mobile summary::after{content:"+";font-weight:400;font-size:1.3rem;line-height:1}
  .toc-mobile[open] summary::after{content:"−"}
  .toc-mobile ol{margin:0;padding:0 1.2rem 1rem 2.4rem;font-size:.98rem}
  .toc-mobile li{padding:.25rem 0}
  .toc-mobile a{color:var(--text);text-decoration:none}
  .post-hero-grid{grid-template-columns:1fr}
  .post-hero img{max-width:40rem}
}
@media (max-width:760px){
  .ledgers{grid-template-columns:1fr}
  .brief dl{grid-template-columns:1fr;gap:.9rem}
  .brief dl > div{flex-direction:row;align-items:baseline;gap:.75rem}
  .brief dd{font-size:1.4rem;min-width:4.5rem}
  .key{grid-template-columns:1fr 1fr}
  .stackbar-row{grid-template-columns:1fr;gap:.4rem}
  .stackbar-scale{margin-left:0}
  .waterfall,.wf-labels{grid-template-columns:2.5rem repeat(4,1fr)}
  .wf-val{font-size:.8rem}
  .wf-labels span{font-size:.75rem}
  .loop{grid-template-columns:1fr}
  .loop li:not(:last-child)::after{top:auto;bottom:-.55rem;right:auto;left:1.6rem;transform:rotate(135deg)}
  .components{grid-template-columns:1fr}
  .related-grid{grid-template-columns:1fr}
  .data th,.data td{padding:.65rem .9rem}
  .prose{font-size:1.0625rem}
}

/* Byline: author name and LinkedIn link, no dates */
.byline .li-link{display:inline-flex;align-items:center;justify-content:center;width:1.6rem;height:1.6rem;border-radius:4px}
.byline .li-link svg{width:16px;height:16px;color:#0A66C2}
.byline .li-link:hover{background:#E8F1FA}
.post-hero a.cat{text-decoration:none}
.post-hero .crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 1rem;padding:0;font-size:.88rem;color:var(--text-soft)}
.post-hero .crumbs li+li::before{content:"/";margin-right:.4rem;color:var(--line-strong)}
.post-hero .crumbs a{color:var(--text-soft)}
.related-back{margin-top:2rem}
/* Terms and tool boxes at the end of an article */
.art-terms,.art-tool{margin:2.5rem 0 0;padding:1.25rem 1.4rem;border:1px solid var(--line);border-radius:var(--r-md)}
.art-terms h2,.art-tool h2{font-size:1.1rem;margin:0 0 .6rem}
.art-terms ul{list-style:none;margin:0 0 .8rem;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 1.2rem}
.art-tool{background:var(--warm)}
.art-tool h2{margin-top:.6rem}
.art-tool .tool-status{display:inline-block;padding:.15rem .6rem;border-radius:999px;background:var(--orange-tint);font:600 .75rem var(--font-display);color:var(--orange-deep)}
/* Components carried over from the earlier blog posts, restyled to the brand */
.prose .callout{display:block;border-left:3px solid var(--orange);margin:1.5rem 0}
.prose .callout-title{font-size:1.05rem;margin:0 0 .4rem}
.prose .info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.9rem;margin:1.5rem 0}
.prose .info-card{padding:1.1rem 1.2rem;border:1px solid var(--line);border-top:3px solid var(--forest);border-radius:var(--r-md);background:#fff}
.prose .info-card-icon{display:none}
.prose .info-card-title{font:600 1rem var(--font-display);color:var(--forest);margin-bottom:.35rem}
.prose .info-card-body{font-size:.95rem;line-height:1.55}
.prose .compare-card{padding:1.1rem 1.2rem;border:1px solid var(--line);border-radius:var(--r-md);margin:1rem 0}
.prose .compare-row{display:grid;grid-template-columns:minmax(8rem,12rem) 1fr;gap:.5rem 1rem;padding:.45rem 0;border-bottom:1px solid #F1ECE5}
.prose .compare-row-label{font:600 .9rem var(--font-display);color:var(--forest)}
.prose .timeline-step{display:grid;grid-template-columns:2.2rem 1fr;gap:.25rem 1rem;padding:1rem 0;border-bottom:1px solid var(--line)}
.prose .timeline-num{display:grid;place-items:center;width:2.2rem;height:2.2rem;border-radius:50%;border:1.5px solid var(--orange);font:600 .9rem var(--font-display);color:var(--orange-text)}
.prose .timeline-title{font:600 1rem var(--font-display);color:var(--forest)}
.prose .timeline-output{font-size:.9rem;color:var(--text-soft);margin-top:.3rem}
.prose .mistake-card{display:grid;grid-template-columns:2.2rem 1fr;gap:1rem;padding:.9rem 0;border-bottom:1px solid var(--line)}
.prose .mistake-num{font:700 1.1rem var(--font-display);color:var(--orange-text)}
.prose .table-scroll{overflow-x:auto;margin:1.5rem 0}
.prose .table-scroll table{min-width:36rem}
@media (max-width:640px){.prose .compare-row{grid-template-columns:minmax(0,1fr)}}
.art-ribbon{margin:0 0 1rem}
.prose .lede{font-size:1.15rem;line-height:1.65}
.prose .timeline-step p{margin:.3rem 0 0}

/* Comparison tables (<table class="cmp">): clear columns on desktop, labelled cards on phones */
.prose .cmp-wrap{border:0;background:none;border-radius:0;overflow:visible;margin:1.5rem 0}
.prose table.cmp{width:100%;border-collapse:separate;border-spacing:0;font-size:.95rem;line-height:1.5;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:#fff}
.prose table.cmp thead th{padding:.85rem 1rem;background:var(--forest);color:#fff;font:600 .92rem/1.3 var(--font-display);text-align:left;vertical-align:bottom;border:0}
.prose table.cmp thead th:first-child{background:#244a24;color:rgba(255,255,255,.75);font-weight:500}
.prose table.cmp thead th.col-brand{background:#3a5e3a}
.prose table.cmp thead th.col-partner{background:var(--orange-btn)}
.prose table.cmp tbody th{width:28%;padding:.85rem 1rem;background:#FAF7F1;font:600 .92rem/1.35 var(--font-display);color:var(--forest);text-align:left;vertical-align:top;border-top:1px solid var(--line)}
.prose table.cmp td{padding:.85rem 1rem;vertical-align:top;color:var(--text);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.prose table.cmp tbody tr:hover td{background:#FFFBF6}
.prose table.cmp.cmp-3 tbody th{width:22%}
.prose table.cmp .row-best th,.prose table.cmp .row-best td{background:var(--warm)}
.prose table.cmp .row-best td{font-weight:500;color:var(--forest)}
@media (max-width:900px){
  .prose table.cmp,.prose table.cmp tbody,.prose table.cmp tr,.prose table.cmp th,.prose table.cmp td{display:block;width:auto}
  .prose table.cmp{border:0;background:none;overflow:visible}
  .prose table.cmp thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .prose table.cmp tbody tr{margin:0 0 .9rem;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:#fff}
  .prose table.cmp tbody th{width:auto;padding:.75rem 1rem;border-top:0;background:var(--forest);color:#fff}
  .prose table.cmp td{display:grid;grid-template-columns:minmax(6.5rem,38%) 1fr;gap:.75rem;padding:.65rem 1rem;border-left:0}
  .prose table.cmp td::before{content:attr(data-label);font:600 .8rem/1.4 var(--font-display);color:var(--text-soft)}
  .prose table.cmp tbody tr:hover td{background:none}
  .prose table.cmp .row-best th{background:var(--orange-btn);color:#fff}
  .prose table.cmp .row-best td{background:var(--warm)}
}

/* Left rail: the contents list plus a call to action, tool and terms, so the column is used
   for the length of the article. Sticky, scrolls on its own when taller than the screen. */
.toc{max-height:calc(100vh - 7rem);overflow-y:auto;padding-bottom:1rem;scrollbar-width:thin}
.rail-card{margin-top:1.5rem;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:var(--r-md);background:#fff}
.rail-card h3{margin:0 0 .5rem;font:600 .92rem var(--font-display);color:var(--forest)}
.rail-card p{margin:0 0 .8rem;font-size:.88rem;line-height:1.5;color:var(--text)}
.rail-card a{color:var(--orange-text)}
.rail-cta{background:var(--warm);border-color:#F1DFCF}
.rail-cta .btn{width:100%;min-height:2.6rem;padding:.6rem 1rem;font-size:.92rem;color:#fff}
.rail-terms ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem}
.rail-terms li a{display:inline-block;padding:.2rem .6rem;border:1px solid var(--line);border-radius:999px;font-size:.82rem;color:var(--forest);text-decoration:none;line-height:1.4}
.rail-terms li a:hover{border-color:var(--orange)}
.rail-terms .g-acr{background:none;padding:0;font-size:.75rem}
.toc .rail-card a{display:inline;padding:0;margin:0;border:0}
.toc .rail-terms li a{display:inline-block;padding:.2rem .6rem;border:1px solid var(--line)}
.toc .rail-cta .btn{display:flex;margin-top:.2rem}
/* The rail shows from 1101px; below that the contents list moves into the article and the terms box shows at the end */
@media (min-width:1101px){.prose .art-terms{display:none}}

.prose > .cmp-wrap{max-width:none}

/* Table headers left-aligned everywhere (browsers centre <th> by default) */
.prose th{text-align:left}

/* Long links (for example source URLs) wrap instead of running off narrow screens */
.prose{overflow-wrap:break-word}
.prose a{overflow-wrap:anywhere}

/* Three-column guide layout (user, 2026-11-23): contents on the left, the article in the middle, and the
   call to action, tool and glossary terms in a right rail. From 1280px the layout has a maximum width and
   sits centred, so wide screens do not leave a blank right side. 1101-1279px keeps two columns with the
   cards under the contents list; below 1101px the rails give way to the in-article contents list. */
.rail-right{display:none}
@media (min-width:1280px){
  .post-layout{grid-template-columns:14rem minmax(0,1fr) 16rem;column-gap:2.5rem;max-width:calc(88rem + var(--gutter)*2)}
  .post-hero > .wrap,.related > .wrap{max-width:calc(88rem + var(--gutter)*2)}
  .toc .rail-card{display:none}
  .rail-right{display:block;position:sticky;top:6rem;max-height:calc(100vh - 7rem);overflow-y:auto;font-family:var(--font-display);scrollbar-width:thin}
  .rail-right .rail-card:first-child{margin-top:0}
  .rail-right .rail-card a{color:var(--orange-text)}
  .rail-right .rail-cta .btn{display:flex;width:100%;margin-top:.2rem;color:#fff}
  .rail-right .rail-terms li a{display:inline-block;padding:.2rem .6rem;border:1px solid var(--line);border-radius:999px;font-size:.82rem;color:var(--forest);text-decoration:none;line-height:1.4}
}
/* Larger reading text on wide screens; paragraph width follows the text size (about 90 characters a line) */
@media (min-width:1440px){
  .prose{font-size:1.25rem}
}
/* "From the author": Sundar's first-hand experience, set apart from the third-person guide text */
.prose .exp{margin:1.75rem 0;padding:1.1rem 1.25rem 1.15rem;border-left:4px solid var(--orange);border-radius:0 var(--r-md) var(--r-md) 0;background:var(--warm)}
.prose .exp p{margin:0}
.prose .exp p + p{margin-top:.6rem}
.prose .exp .exp-k{margin-bottom:.4rem;font:600 .74rem var(--font-display);letter-spacing:.08em;text-transform:uppercase;color:var(--orange-text)}
/* Mobile review fixes (2026-11-24): three-column table cards get a full-width title on phones (the
   desktop 22% first-column width was overriding the card layout); short values are centred on wide
   screens only, sentences stay left-aligned. */
.prose table.cmp td.c-short,.prose table.cmp thead th[data-short]{text-align:center}
@media (max-width:900px){
  .prose table.cmp.cmp-3 tbody th{width:auto}
  .prose table.cmp td.c-short{text-align:left}
}

/* Tables: every cell centred on wide screens (user, 2026-11-24). Phone cards (900px and below) stay label/value. */
@media (min-width:901px){
  .prose table.cmp thead th,.prose table.cmp tbody th,.prose table.cmp td,
  .prose table.data th,.prose table.data td,.prose table.data .num{text-align:center;vertical-align:middle}
}
/* the returns guide's number tables stay real tables on phones: centred there too */
.prose table.data th,.prose table.data td,.prose table.data .num{text-align:center;vertical-align:middle}

/* Tables, round 2 (user, 2026-11-24): darker grey borders on every cell so each cell's start and end is
   clear, and every piece of text centred, including the phone cards (label above value). */
:root{--tline:#B3AB9D}
.table-wrap{border-color:var(--tline)}
.prose table.cmp{border-color:var(--tline)}
.prose table.cmp thead th+th{border-left:1px solid rgba(255,255,255,.28)}
.prose table.cmp tbody th{border-top:1px solid var(--tline)}
.prose table.cmp td{border-top:1px solid var(--tline);border-left:1px solid var(--tline)}
.prose table.data th,.prose table.data td{border-bottom:1px solid var(--tline)}
.prose table.data th+th,.prose table.data th+td,.prose table.data td+td,.prose table.data td+th{border-left:1px solid var(--tline)}
.prose table.data tr:last-child th,.prose table.data tr:last-child td{border-bottom:0}
@media (max-width:900px){
  .prose table.cmp tbody tr{border-color:var(--tline)}
  .prose table.cmp tbody th{text-align:center;border-top:0}
  .prose table.cmp td{display:block;text-align:center;border-left:0;padding:.7rem 1rem}
  .prose table.cmp td::before{display:block;margin-bottom:.2rem}
  .prose table.cmp td.c-short{text-align:center}
}
.prose table.cmp thead th{text-align:center}
