/* Shared preferences; loaded after the existing article styles. */
:root{--pref-bg:#fff;--pref-fg:#291b39;--pref-muted:#645574;--pref-line:#d9cee5;--pref-active:#47216e;--pref-hover:#f1eaf8;color-scheme:light}
html[data-theme="dark"]{--pref-bg:#140d20;--pref-fg:#f3edf9;--pref-muted:#c7b9d6;--pref-line:#49335f;--pref-active:#dec8fc;--pref-hover:#30203f;color-scheme:dark}
html[data-theme="light"]{color-scheme:light}
.site-preferences{display:inline-flex;flex-shrink:0;background:transparent;color:var(--pref-fg);border:0;font:1rem/1.4 Alata,system-ui,sans-serif;position:relative;margin:0;padding:0}
.site-preferences-inner{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;margin:0;padding:0;width:auto}
.site-theme-options,.site-language-options{display:flex;align-items:center;gap:1px;margin:0;padding:2px;border:1px solid var(--pref-line);border-radius:7px;background:var(--pref-bg)}
.site-preferences .pref-control{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:5px 6px;border:0;border-radius:4px;background:transparent;color:var(--pref-muted);font:inherit;font-size:.875rem;line-height:1.4;text-decoration:none;cursor:pointer;white-space:nowrap}
.site-preferences .pref-control svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}
.site-preferences .pref-control:hover{background:var(--pref-hover);color:var(--pref-fg)}
.site-preferences .pref-control[aria-pressed="true"],.site-preferences .pref-control[aria-current="page"]{background:var(--pref-active);color:var(--pref-bg)}
.site-preferences .pref-control:focus-visible{outline:3px solid #f58848;outline-offset:3px}
/* The compact controls share the menu row and its existing purple surface. */
[data-site-layout="brand"] .site-header .site-preferences,.knowledge-page .site-header .site-preferences,[data-site-layout="case-study"] header .site-preferences,[data-site-layout="english-hub"] header .site-preferences{--pref-bg:#24103f;--pref-fg:#fff;--pref-muted:#d7c9e8;--pref-line:#62417d;--pref-active:#e9dcfb;--pref-hover:#422961}
.site-header .header-inner{width:min(1440px,calc(100% - 40px));max-width:1440px;gap:12px}
.site-header .desktop-nav{gap:12px;letter-spacing:.015em}
.site-header .header-contact,.site-header .menu-toggle{flex-shrink:0}
@media(min-width:1261px) and (max-width:1340px){.site-header .header-inner{width:calc(100% - 24px);gap:10px}.site-header .desktop-nav{gap:10px}}
[data-site-layout="news-report"] .topbar .actions{flex-wrap:wrap;align-items:center}
[data-site-layout="bravo"] .topbar .site-preferences{align-self:center}
@media(max-width:740px){
  .site-header .header-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;width:calc(100% - 32px);padding-block:10px;min-height:104px}
  .site-header .header-inner>.brand{grid-column:1/-1;grid-row:1;justify-self:start}
  .site-header .header-inner>.brand .brand-mark{flex-shrink:0}
  .site-header .header-inner>.brand .brand-type{min-width:0;white-space:normal;overflow-wrap:anywhere}
  .site-header .header-inner>.header-contact{grid-column:1;grid-row:2;margin-left:0;width:40px;height:40px;justify-content:center}
  .site-header .header-inner>.header-contact>span{display:none}
  .site-header .header-inner>.site-preferences{grid-column:2;grid-row:2;justify-self:end}
  .site-header .header-inner>.menu-toggle{grid-column:3;grid-row:2}
  [data-site-layout="ironchain"] .site-header{flex-wrap:wrap;gap:8px}
  [data-site-layout="ironchain"] .site-header>.identity{flex-basis:100%}
  [data-site-layout="case-study"] .site-strip{flex-direction:row;flex-wrap:wrap;align-items:center}
  html{scroll-padding-top:124px}
  .knowledge-page .knowledge-article section{scroll-margin-top:124px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

html[data-theme="dark"] [data-site-layout="brand"]{--text:#f2ebf8;--muted:#c3b4d0;--line:#44324f;--paper:#20162b;--white:#21162c;background:#120c1b;color:var(--text)}
html[data-theme="dark"] [data-site-layout="brand"] :is(.service-card,.policy-note,.piz-sidebar-card,.piz-case,.piz-fact,.piz2026-evidence>div,.ticket1355-card){background:#21162c;border-color:#44324f}
html[data-theme="dark"] [data-site-layout="brand"] :is(.cases-section,.news-section){background:#120c1b}
html[data-theme="dark"] [data-site-layout="brand"] :is(.process,.faq-section,.piz-ending,.piz2026-summary,.piz2026-update,.encrypt-case-facts){background:#20162b;border-color:#44324f}
html[data-theme="dark"] [data-site-layout="brand"] :is(.section h2,.service-card h3,.faq-item summary,.faq-answer strong,.process-steps h3,.response-item h3,.piz-section h2,.piz-section strong,.piz-case h3,.piz-steps h3,.piz-fact p,.piz-ending h2,.piz2026-section h2,.piz2026-section h3,.piz2026-article strong,.piz2026-summary h2,.piz2026-sources h2,.ticket1355-article h2,.ticket1355-article h3,.encrypt-case-facts dd,.encrypt-checklist strong){color:#f2ebf8}
html[data-theme="dark"] [data-site-layout="brand"] :is(.card-top>.icon,.policy-note>.icon,.light-eyebrow,.piz-section>p:not(.piz-section-label),.piz-section-intro,.piz-case p,.piz-steps p,.piz-faq details p,.piz-ending p:not(.piz-section-label),.piz2026-article p,.piz2026-article li,.piz2026-toc li a,.piz2026-toc-note,.piz2026-related-grid a,.piz-sidebar-card a,.encrypt-checklist li){color:#c3b4d0}
html[data-theme="dark"] [data-site-layout="brand"] :is(.source-link,.news-source,.piz-external a,.piz2026-article a:not(.button),.piz2026-toc-contact,.piz-section-label,.piz-ticket,.piz-steps li>span,.piz-fact span,.piz-sidebar-card>span,.piz2026-section .section-number,.piz2026-big-number>strong,.ticket1355-big-number,.piz-ending-actions>a:nth-child(2),.encrypt-inline-link){color:#d1abff}
html[data-theme="dark"] [data-site-layout="brand"] :is(.piz-faq summary,.piz2026-toc-note strong){color:#f2ebf8}
html[data-theme="dark"] [data-site-layout="brand"] :is(.faq-item,.process-steps li,.service-tags,.news-item){border-color:#493550}
html[data-theme="dark"] [data-site-layout="brand"] :is(.service-tags>span,.step-number,.piz-status,.piz2026-article code,.piz-page code){background:#30203f;color:#dec8fc;border-color:#654578}
html[data-theme="dark"] [data-site-layout="brand"] :is(.response-caution,.piz2026-note,.ticket1355-callout,.ticket1355-quote,.encrypt-policy){background:#35251c;color:#f4d1b4!important;border-color:#715339}
html[data-theme="dark"] [data-site-layout="brand"] .response-caution p{color:#f4d1b4}
html[data-theme="dark"] [data-site-layout="brand"] .ticket1355-risk{background:#352031}
html[data-theme="dark"] [data-site-layout="brand"] .piz2026-article :is(caption,tbody th){background:#30203f;color:#e5d4f5}
html[data-theme="dark"] [data-site-layout="brand"] :is(.piz2026-update a,.piz2026-toc>p,.piz2026-related-grid a span,.piz-inline-image figcaption,.ticket1355-article figcaption,.encrypt-case-facts dt){color:#c8addf}
html[data-theme="dark"] [data-site-layout="brand"] .encrypt-scope-note{color:#c3b4d0!important}
html[data-theme="dark"] [data-site-layout="brand"] .blog-listing h1{color:#f2ebf8}
html[data-theme="dark"] [data-site-layout="brand"] :is(.blog-breadcrumb,.piz2026-sources li span){color:#c3b4d0}
html[data-theme="dark"] [data-site-layout="brand"] .blog-breadcrumb a{color:#d1abff}
html[data-theme="dark"] [data-site-layout="brand"] .faq-item summary:hover strong{color:#dec8fc}

html[data-theme="dark"] .knowledge-page{--k-ink:#eef2f9;--k-muted:#bdc7d8;--k-line:#37455d;--k-red:#ff879b;--k-orange:#ffc091;--k-green:#94ddbd;background:#101722;color:var(--k-ink)}
html[data-theme="dark"] .knowledge-page :is(.knowledge-hero,.knowledge-toc,.technical-figure,.table-wrap,.principles,.related-incident,.readiness-checklist li,.knowledge-article blockquote,.article-share-trigger){background:#192335;color:var(--k-ink)}
html[data-theme="dark"] .knowledge-page .breadcrumbs a{color:#d1b1ff}
html[data-theme="dark"] .knowledge-page .knowledge-toc a:hover{background:#342638}
html[data-theme="dark"] .knowledge-page :is(table caption,table tbody th,.editorial-note){background:#243047;color:var(--k-muted)}
html[data-theme="dark"] .knowledge-page table tbody th{color:var(--k-ink)}
html[data-theme="dark"] .knowledge-page table tbody tr:nth-child(even) td{background:#1d293e}
html[data-theme="dark"] .knowledge-page .knowledge-article code{background:#362638;color:#ffb0bf}

html[data-theme="dark"] [data-site-layout="case-study"]{--bg:#120c1b;--paper:#21162c;--ink:#f2ebf8;--muted:#c3b4d0;--line:#44324f;--navy:#dec8fc;--blue:#d1abff;--purple:#d1abff;--green:#94ddbd;--soft-red:#342033;--soft-blue:#28223f;--soft-purple:#30203f;--soft-orange:#35251c;--soft-green:#18352b;background:#120c1b;color:#f2ebf8}
html[data-theme="dark"] [data-site-layout="case-study"] :is(article,aside,.figure,.source-box,.source,.sharebar,.media-card figcaption,.check,.phase,.kpi div,.kpis div,.leadcard,.steps div,.vi-summary){background:#21162c;color:#f2ebf8;border-color:#44324f}
html[data-theme="dark"] [data-site-layout="case-study"] :is(h2,h3,aside h3,.kpis strong,.callout b,.check b,.steps b){color:#dec8fc}
html[data-theme="dark"] [data-site-layout="case-study"] :is(aside a,.refs li,.media-card figcaption,.label,.small,footer,.seo-note){color:#c3b4d0}
html[data-theme="dark"] [data-site-layout="case-study"] :is(th,code,.badge,.seo-tags a,.seo-tags span,.tags span,.sharebtn){background:#30203f;color:#dec8fc;border-color:#59436a}
html[data-theme="dark"] [data-site-layout="case-study"] .callout.purple{background:#30203f}
html[data-theme="dark"] [data-site-layout="case-study"] .callout.red{background:#342033}
html[data-theme="dark"] [data-site-layout="case-study"] .callout.green{background:#18352b}
html[data-theme="dark"] [data-site-layout="case-study"] .phase .tag{background:#6d28d9;color:#fff}
html[data-theme="dark"] [data-site-layout="case-study"] .recovery h2{color:#fff}

html[data-theme="dark"] [data-site-layout="english-hub"]{background:#120c1b;color:#f2ebf8}
html[data-theme="dark"] [data-site-layout="english-hub"] .card{background:#21162c;border-color:#44324f}
html[data-theme="dark"] [data-site-layout="english-hub"] :is(h1,h2,a){color:#d1abff}
html[data-theme="dark"] [data-site-layout="english-hub"] header a{color:#fff}
html[data-theme="dark"] [data-site-layout="english-hub"] .service a{color:#e9d5ff}
html[data-theme="dark"] [data-site-layout="news-report"]{--bg:#120c1b;--card:#21162c;--ink:#f2ebf8;--muted:#c3b4d0;--line:#44324f;--brand:#d1abff;--danger:#ff879b;background:#120c1b;color:var(--ink)}
html[data-theme="dark"] [data-site-layout="news-report"] :is(.topbar,.hero-media,.media,.caption,.step,.btn){background:#21162c;color:var(--ink)}
html[data-theme="dark"] [data-site-layout="news-report"] .lead{color:#c3b4d0}
html[data-theme="dark"] [data-site-layout="news-report"] .step .n{background:#30203f}
html[data-theme="dark"] [data-site-layout="news-report"] .btn.primary{background:#6d28d9;color:#fff}
html[data-theme="dark"] .article-share-dialog{background:#21162c;color:#f2ebf8;border-color:#59436a}
html[data-theme="dark"] .article-share-dialog :is(p,label,.article-share-close){color:#c3b4d0}
html[data-theme="dark"] .article-share-dialog :is(input,.article-share-copy){background:#30203f;color:#f2ebf8;border-color:#654578}
html[data-theme="light"] .article-share-dialog{background:#fff;color:#291b39;border-color:#d9cee5}
html[data-theme="light"] .article-share-dialog :is(p,label){color:#645574}
html[data-theme="light"] .article-share-dialog :is(input,.article-share-close){background:#f1eaf8;color:#291b39;border-color:#d9cee5}
@media print{.site-preferences{display:none}html[data-theme] body{color-scheme:light;background:#fff!important;color:#111!important}}
