/* =====================================================================
   Design pass, 17th of November 2026
   Loaded last on every page so these rules settle earlier conflicts.
   Each block names the page or component it fixes.
   ===================================================================== */

/* 1. Small labels on dark bands read in paper, not red.
   Red stays as a fill (buttons, closed-room badge) and as the small dot mark.
   Red italic words in headings are untouched. */
:is(.block-dark,.block-founding,.contact-3col-dark,.tier-anchor-lead,.dossier,.e2-lead,.page-header-dark,#page-conclusions .cta) :is(.card-num,.who-tag,.cf-link,.e2-day-t,.e2f-k,.e2x-k,.e2m-num,.e2-n,.di-num,.dossier-eyebrow,.dossier-contents-label,.aw-row-label,.aw-row-cta,.cta-eyebrow,.amb-theme,.simple-kicker,.wmf-when,.faq-toggle,.cd-tg-i,.cc-tg-i){color:var(--paper)!important}
:is(.block-dark,.block-founding,.contact-3col-dark,.tier-anchor-lead,.dossier,.e2-lead) :is(.card-num,.who-tag)::before{color:var(--red-soft,#f04e3a)}
.block-dark .e2x-meta a,.block-dark .e2x-rail a{color:var(--paper)!important}
.simple-year.block-dark .simple-detail summary::after,.block-dark .simple-detail summary::after{color:var(--paper)!important}
body #programme.block-dark .programme-round-header,
body #programme.block-dark .round-btn,
body #programme.block-dark .programme-card-meta .pc-cluster,
body #programme.block-dark .programme-card-q::before,
body #programme.block-dark .pc-att-sign{color:var(--paper)!important}
body #programme.block-dark .programme-round-header .pr-closed{color:var(--paper)!important;border-color:var(--paper)!important}
body .contact-3col-dark div[style*="--red"],
body .contact-3col-dark~.rv div[style*="--red"],
body .block-dark div[style*="color:var(--red)"]{color:var(--paper)!important}
/* Essay headers: chip as paper text on a red fill, as on the guides */
.page-header-dark .ins-chip:not([style*="background"]),.essay-chip-row .ins-chip{color:var(--paper)!important;background:var(--red)!important;border-color:var(--red)!important}
.essay-note span[style*="--red-soft"]{color:var(--paper)!important}

/* 2. Quotes are never italic */
.featured-quote-text{font-style:normal}
.guide-body blockquote,.tdr-zurich-guide .guide-body blockquote{font-style:normal!important}

/* 3. Secondary links under a lead CTA get breathing room and a real gap */
.access-lead-block .access-cta + p,
.access-lead-block .access-lead > p:has(> .cf-link:first-child){display:flex;flex-wrap:wrap;gap:6px 28px;margin:22px 0 0}
.access-lead-block .access-cta{display:flex;flex-wrap:wrap;gap:12px}

/* 4. Home */
.simple-year-grid + p{margin-top:32px;max-width:62ch}
@media(max-width:720px){
  .simple-voice .fq-nav{position:static;display:flex;justify-content:space-between;align-items:center;padding:0;margin-top:24px}
  .simple-voice .fq-dots{margin-left:0}
  .simple-voice .featured-quote.fq-slider{padding-bottom:28px}
}

/* 5. About: the brief band keeps the 96px rhythm */
.block.order-brief{padding:0!important}
.order-brief .brief-col{padding:96px 0}
@media(max-width:600px){.order-brief .brief-col{padding:56px 0}}

/* 6. Edition I */
#programme .programme-card{position:relative}
#programme .programme-card-meta{padding-right:118px;min-height:44px;align-content:flex-start}
#programme .programme-card .pc-closed{position:absolute;top:22px;right:18px;margin:0}
@media(max-width:760px){
  #programme .programme-round-header{letter-spacing:.14em}
  #programme .programme-round-header .pr-time{white-space:nowrap}
  #programme .round-btn{white-space:nowrap}
}

/* 7. Edition II */
#take-part .grid-3>.card{display:flex;flex-direction:column}
#take-part .grid-3>.card .aw-actions{margin-top:auto!important;padding-top:18px}
#floor-positions .card{border:1px solid rgba(250,250,250,.22)}
#page-edition-ii .proof-note{font-family:'Inter Tight',sans-serif;font-size:15px;letter-spacing:0;text-transform:none;line-height:1.6;max-width:700px}
@media(max-width:760px){
  #page-edition-ii .arc-summary .section-eyebrow,#page-edition-ii .arc-summary .arc-eyebrow{padding-right:44px}
  #page-edition-ii .arc-summary h2{text-wrap:balance}
}

/* 8. Before Capital Flows: phone disclaimer on the 14px gutter */
@media(max-width:600px){#page-conclusions .report-disclaimer .wrap{padding:0 14px}}

/* 9. The Record */
.ins-grid-pair .ins-card>.ins-chip{align-self:flex-start}
.ins-chip-row{display:inline-flex;align-items:stretch;gap:8px}
.ins-chip-row .ins-rec{display:inline-flex;align-items:center;font-size:10px;padding:7px 11px}

/* 10. Partnership */
@media(min-width:961px){
  .cc-spec--solo .cc-tg-col{grid-row:2!important}
  .cc-spec--solo .cc-col-foot{grid-row:3!important}
  .cc-spec--solo .cc-hook,.cc-spec--solo .cc-gain{max-width:60ch!important}
  .cc-spec--solo .cc-col-foot .btn{width:100%!important;justify-content:center}
}
@media(max-width:760px){
  .hero-band:has(.image-band-text){aspect-ratio:auto;display:flex;flex-direction:column;justify-content:flex-end;min-height:0}
  .hero-band:has(.image-band-text)::before{content:"";display:block;position:static!important;inset:auto;width:100%;aspect-ratio:16/9;background:none}
  .hero-band .image-band-text{position:static!important;border-left:0;border-right:0;width:100%;max-width:none}
}

/* 11. Partnership enquiry */
.fx-a-intro .fx-k{font-size:10px;line-height:1.5;margin:0 0 14px}
.fx-a .fx-sec:has(+ .fx-send){border-bottom:1px solid var(--ink)}

/* 12. Access: public institutions note even top and bottom on phone */
@media(max-width:760px){.access-inst{padding-bottom:12px}}

/* 13. Legal pages: phone tap targets in the contents list */
@media(max-width:900px){:is(#page-terms,#page-privacy) .terms-toc a{padding:12px 0}}

/* 14. AI Information: questions sit with their answers */
.guide-body p:has(> strong:only-child){margin:1.6em 0 .4em}

/* 15. Why page: the take-part toggle and CTA match the site */
.guide-body details>summary,.guide-cta details>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.guide-body details>summary::-webkit-details-marker,.guide-cta details>summary::-webkit-details-marker{display:none}
.guide-body details>summary::after,.guide-cta details>summary::after{content:'+';font-size:20px;color:var(--red)}
.guide-body details[open]>summary::after,.guide-cta details[open]>summary::after{content:'\00d7'}
.guide-cta-btn{min-height:44px;display:inline-flex;align-items:center;font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase}

/* 16. Guides */
.guide-body .guide-lead{font-weight:400}
.guide-body .guide-feature h3{margin-top:0}
.guide-disclosure:has(+ .guide-cta){border-top:0}
.guide-link-grid>a:only-child{grid-column:1/-1}
@media(max-width:560px){
  .guide-body .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .guide-body .table-wrap table{min-width:540px}
}

/* 17. Language switch in guide headers (English/Deutsch) sits on the header text edge,
   in paper mono, with the current language marked by weight */
.guide-essay-header .guide-language{font-family:'JetBrains Mono',monospace;font-size:11px;line-height:1.6;letter-spacing:.12em;text-transform:uppercase;color:var(--paper);margin:22px 0 0;padding:0 var(--hero-pad-x)}
.guide-essay-header .guide-language a{color:var(--paper);text-decoration:underline;text-decoration-color:rgba(250,250,250,.45);text-underline-offset:4px}
.guide-essay-header .guide-language a[aria-current]{text-decoration:none;font-weight:700}
.guide-essay-header .guide-language + .guide-meta{margin-top:10px}
.guide-essay-header .ins-chip{display:inline-block;padding:5px 9px;line-height:1.3}

/* 18. The Record: Before Capital Flows card. The report cover shows whole.
   From iPad landscape up, cover and text sit side by side so the card stays one screen tall. */
@media(min-width:960px){
  .ins-card.ins-lead{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);column-gap:44px;align-items:center;padding:0 40px 0 0}
  .ins-card.ins-lead>.thumb{grid-column:1;grid-row:1 / span 6;margin:0;align-self:stretch;display:flex;background:#0a0a0a}
  .ins-card.ins-lead>.thumb img{width:100%;height:100%;aspect-ratio:2200/1238;object-fit:contain;object-position:center}
  .ins-card.ins-lead>:not(.thumb){grid-column:2}
  .ins-card.ins-lead>.ins-chip{justify-self:start}
  .ins-card.ins-lead>:nth-child(2){margin-top:36px}
  .ins-card.ins-lead>:last-child{margin-bottom:32px}
  .ins-card.ins-lead h3{font-size:clamp(26px,2.6vw,34px)}
}

/* 19. Typesetting.
   Headings break into even lines, paragraphs avoid one-word last lines,
   reading measure is capped near 68 characters, and heading leading is tight. */
html{font-kerning:normal;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
h1,h2,h3,h4,.section-title,.guide-deck,.page-deck,.essay-title{text-wrap:balance}
p,li,dd,blockquote,figcaption{text-wrap:pretty}
em{font-optical-sizing:auto}
.essay-prose h2,.guide-body h2,.terms-section h2{line-height:1.25}
.logo-wall-title{line-height:1.02}
.amb-role,.ea-dir{font-size:10px}
.access-intro,.about-text,.page-deck,.order-proof,.e2-proof,.fx-a-lede,.study-close,.guide-deck{max-width:68ch}
.fx-guard,.fx-fine,.cd-legal{max-width:76ch}
.stat-num,.bcf-stat-n,.stat-cell strong,.bcf-stat strong{font-variant-numeric:lining-nums tabular-nums}

/* 20. Images carry width and height attributes so the page does not jump while loading.
   Zero-specificity rule keeps their proportions wherever no other height is set. */
:where(img[width][height]){height:auto}

/* 21. Guide and reference pages: the hero text sits on the same centred column as the article below it */
.guide-essay-header>.container>*{box-sizing:border-box;width:100%;max-width:736px!important;margin-left:auto!important;margin-right:auto!important;padding-left:28px!important;padding-right:28px!important}
.guide-essay-header>.container>h1{max-width:736px!important}
@media(max-width:760px){.guide-essay-header>.container>*{padding-left:var(--hero-pad-x,14px)!important;padding-right:var(--hero-pad-x,14px)!important}}

/* 22. Record cards with no date keep the arrow on the right */
.ins-meta .arr:only-child{margin-left:auto}

/* 23. Home: independence note under "How the work moved forward", set like the organisations strip */
.simple-indep{margin:22px 0 0;padding:0;border:0;font-family:'JetBrains Mono',monospace;font-size:11px;line-height:1.7;letter-spacing:.1em;text-transform:uppercase;max-width:none!important;color:var(--paper)}
.simple-indep-k{font-weight:700;margin-right:12px}
@media(max-width:720px){.simple-indep-k{display:block;margin:0 0 4px}}

/* 24. About: the founders section sits centred in the page on desktop, heading on the grid's left edge */
@media(min-width:901px){
  #page-about .team-grid-fix{margin-left:auto!important;margin-right:auto!important}
  #page-about .container:has(>.team-grid-fix)>:is(.section-eyebrow,.section-title){max-width:920px;margin-left:auto;margin-right:auto}
}
