/* PMA19 design system — presentation only.
   No changes to Color Analyzer calculations, authoring handlers, security or admin controls.
   Loaded last and scoped to pages explicitly marked by the guarded patcher.
*/
body.pma19-unified{
 --pma19-navy:#083765;--pma19-deep:#05264b;--pma19-blue:#0b70bc;
 --pma19-cyan:#1594d6;--pma19-ink:#133a5c;--pma19-muted:#526d84;
 --pma19-line:#cddfee;--pma19-tint:#eef6fc;--pma19-card:#ffffff;
 --pma19-serif:Georgia,'Times New Roman',serif;
 --pma19-sans:'Segoe UI',Arial,Helvetica,sans-serif;
 --color-primary:#0a3968;--color-secondary:#52728e;--color-accent:#91d9fa;
 font-family:var(--pma19-sans);font-size:16px;color:var(--pma19-ink);
 background:linear-gradient(180deg,#eef6fc 0%,#f8fbfe 75%,#e9f3fa 100%);
 -webkit-font-smoothing:antialiased;
}
body.pma19-unified :is(button,input,textarea,select){font-family:var(--pma19-sans)}
body.pma19-unified :is(h1,h2,.section-heading h2,.page-heading h1,.reader-header h1,.kc-hero h1){
 font-family:var(--pma19-serif);font-weight:400;letter-spacing:-.028em;color:#092f57;
}
body.pma19-unified :is(p,li){line-height:1.72}
body.pma19-unified :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #1396db;outline-offset:3px}
/* Uniform public navigation, including the historical Color Analyzer header. */
body.pma19-unified .site-header{background:linear-gradient(112deg,#0a457a 0%,#083667 50%,#042449 100%)!important;
 color:#f8fcff;border-bottom:1px solid #ffffff22;box-shadow:0 7px 22px #052c4b26;}
body.pma19-unified .site-header .header-inner{min-height:76px;max-width:1580px;width:min(100% - 44px,1580px);gap:16px;margin:auto}
body.pma19-unified .site-header .wordmark{display:flex;flex-direction:column;gap:3px;color:#fff;text-decoration:none;min-width:185px}
body.pma19-unified .site-header .wordmark strong{font:750 clamp(20px,2vw,27px)/1.1 var(--pma19-sans);letter-spacing:-.035em;color:#fff}
body.pma19-unified .site-header .wordmark span{font-size:10.5px;line-height:1.35;color:#c5e4f9;letter-spacing:0}
body.pma19-unified .site-header .site-nav{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
body.pma19-unified .site-header .site-nav a{font:700 12px/1.25 var(--pma19-sans);color:#e9f4ff;
 min-height:37px;padding:10px 11px;border-radius:9px;border:1px solid transparent;
 letter-spacing:0;text-transform:none;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
body.pma19-unified .site-header .site-nav a:is(:hover,:focus-visible){background:#ffffff20;color:#fff}
body.pma19-unified .site-header .site-nav a:is(.active,[aria-current="page"]){background:linear-gradient(145deg,#1797dd,#0b5dae);color:white;border-color:#86c9f34d;box-shadow:0 5px 16px #021d3966}
body.pma19-unified .site-header .site-nav a.pma10-advisor-nav,
body.pma19-unified .site-header .site-nav a.pma06-advisor-link{background:#1382c7;color:#fff;border:1px solid #90d1f260}
body.pma19-unified .site-header .menu-toggle{background:#fff2;color:#fff;border:1px solid #b1e3ff5a;border-radius:10px}
/* Internal cards, images and section surfaces. Site content remains untouched. */
body.pma19-unified :is(.page-heading,.reader-header){background:transparent}
body.pma19-unified :is(.section-heading,.page-heading) .eyebrow{color:#1379bc;font-weight:750}
body.pma19-unified .hero{background:radial-gradient(circle at 76% 33%,#1b6794 0%,transparent 45%),linear-gradient(115deg,#073761,#082e5c);color:#fff}
body.pma19-unified .hero h1,body.pma19-unified .hero h2{color:#fff}
body.pma19-unified .hero .lead{color:#d8ebf8}
body.pma19-unified :is(.article-card,.book-card,.kc-card,.knowledge-card,.contact-form,.contact-aside,.modal-card,
 .about-card,.feature-card,.resource-card,.reader-card,.dashboard-card){background:#fff;border:1px solid #d6e6f1;border-radius:15px;
 box-shadow:0 10px 26px #0a47721a;overflow-wrap:anywhere}
body.pma19-unified :is(.kc-card,.article-card,.book-card,.knowledge-card){transition:box-shadow .17s ease,transform .17s ease}
body.pma19-unified :is(.kc-card,.article-card,.book-card,.knowledge-card):hover{box-shadow:0 16px 30px #0a47722b;transform:translateY(-2px)}
body.pma19-unified :is(.button,a.button,button.primary,.kc-hero-link){border-radius:9px;font-family:var(--pma19-sans);font-weight:700;letter-spacing:0}
body.pma19-unified :is(.button:not(.secondary),button.primary,.kc-hero-link){background:linear-gradient(125deg,#1798dc,#0b58a7);border:1px solid #0b72b4;color:#fff}
body.pma19-unified :is(.button.secondary,.text-link){color:#0d5f95}
body.pma19-unified :is(.section-heading h2,.story h2,.article-card h2,.book-card h2,.kc-section-head h2){color:#123b63}
body.pma19-unified :is(.kc-hero,.kc-ai-section){background:linear-gradient(112deg,#0a4375,#082a50);color:#fff}
body.pma19-unified .kc-card-art{background:linear-gradient(130deg,#0c5e9c,#08365e,#0b94d3);min-height:180px}
body.pma19-unified :is(.kc-card,.kc-chat-card,.kc-resource-card){border-radius:15px;border-color:#cddfee}
body.pma19-unified :is(.site-footer,.closing){background:linear-gradient(120deg,#083764,#041f3f);color:#f2faff}
body.pma19-unified :is(.site-footer a,.closing h2,.closing p){color:#f2faff}
/* Color Analyzer: align header scale & whitespace without touching calculation charts, canvases or SVG plots. */
body.pma19-ca #color-analyzer-app{width:min(calc(100% - 50px),1570px);max-width:1570px;margin:24px auto 72px}
body.pma19-ca #color-analyzer-app .ca-intro{border-radius:17px;border:1px solid #cfe4f4;
 background:linear-gradient(140deg,#ffffff 0%,#eff8ff 100%);box-shadow:0 12px 28px #103f681c;
 padding:clamp(22px,2.7vw,38px);gap:24px;margin-bottom:20px}
body.pma19-ca #color-analyzer-app .ca-intro h1{font:400 clamp(42px,4.2vw,62px)/1.09 var(--pma19-serif);color:#082f57}
body.pma19-ca #color-analyzer-app .ca-intro-lead{color:#456780;font-size:16px}
body.pma19-ca #color-analyzer-app :is(.ca-global-settings,.ca-panel){border:1px solid #cfe4f3;border-radius:16px;background:#fff;
 box-shadow:0 10px 26px #0a47721a;margin-block:15px}
body.pma19-ca #color-analyzer-app :is(.ca-panel h2,.ca-global-settings h2){font-family:var(--pma19-serif);color:#123e66}
body.pma19-ca #color-analyzer-app :is(button,.ca-form-actions button){border-radius:9px}
/* No global sizing, filters or transforms on CA charts, graphs, canvases or SVG. */
/* Admin's sidebar stays a distinct information architecture, but uses same palette & typography. */
body.pma19-admin{--navy:#083765;--ink:#133a5c;--muted:#526d84;--line:#cddfee;--paper:#eef6fc;--blue:#0b70bc;
 background:#eef6fc;font-family:var(--pma19-sans);color:#123a5c}
body.pma19-admin :is(h1,h2){font-family:var(--pma19-serif);font-weight:400;letter-spacing:-.025em}
body.pma19-admin .sidebar{background:linear-gradient(175deg,#083e6f,#062a52 68%,#031d3c)}
body.pma19-admin .sidebar .brand{color:#fff}
body.pma19-admin .topbar{background:#fff;border-bottom:1px solid #cddfee;box-shadow:0 4px 13px #04325f15}
body.pma19-admin :is(.panel,.stat,.notice,.table-wrap,.modal,.admin-card){border:1px solid #ccdfed;border-radius:15px;
 box-shadow:0 10px 25px #10436a12}
body.pma19-admin :is(button.primary,.primary){background:linear-gradient(130deg,#1294d5,#0b5fae);color:#fff;border-radius:9px}
body.pma19-admin :is(button,input,select,textarea){font-family:var(--pma19-sans)}
body.pma19-admin :is(a,button,input,select,textarea):focus-visible{outline:3px solid #108bd6;outline-offset:3px}
/* Material advisor — preserve distinctive schematic workflow and proportions. */
body.pma19-materials{font-family:var(--pma19-sans);background:#eef6fc;color:var(--pma19-ink)}
body.pma19-materials :is(h1,h2){font-family:var(--pma19-serif);font-weight:400}
body.pma19-materials .topbar{background:linear-gradient(109deg,#073965 0%,#083969 52%,#042549 100%)}
body.pma19-materials :is(.summary-card,.section-box,.data-panel,.sidebar,.evidence){border-color:#cddfee;border-radius:14px;
 box-shadow:0 10px 24px #0d527317}
body.pma19-materials :is(.btn.primary,.side-btn.primary){background:linear-gradient(135deg,#1599de,#0a58a7);border-radius:9px}
body.pma19-materials :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #0e8fd9;outline-offset:2px}
@media(max-width:900px){
 body.pma19-unified .site-header .header-inner{width:calc(100% - 28px)}
 body.pma19-unified .site-header .site-nav{gap:4px}
 body.pma19-unified .site-header .site-nav a{font-size:11px;padding-inline:8px}
 body.pma19-ca #color-analyzer-app{width:calc(100% - 26px)}
}
@media(max-width:640px){
 body.pma19-unified .site-header .header-inner{min-height:70px}
 body.pma19-unified .site-header .site-nav{background:#07365f;align-items:stretch}
 body.pma19-unified .site-header .site-nav a{font-size:13px;justify-content:flex-start;min-height:44px}
 body.pma19-unified .site-header .wordmark strong{font-size:21px}
 body.pma19-ca #color-analyzer-app .ca-intro{padding:17px}
 body.pma19-ca #color-analyzer-app{width:calc(100% - 20px)}
}
@media(prefers-reduced-motion:reduce){body.pma19-unified :is(.kc-card,.article-card,.book-card){transition:none;transform:none}}
