/* XAV global theme for every inner page.
   Loaded after the page styles so the homepage palette carries across the site:
   cool drafting paper, warm off-white surfaces, orange accents. Dark stays as
   the homepage dark theme. Only public marketing pages load this file. */

html[data-theme="light"]:not(.home-xav){
  --bg:#E7ECEE;
  --surface:#FBF8F3;
  --surface-2:#E1E9EC;
  --surface-wash:#DDE6E9;
  --ink:#171410;
  --muted:#5F574A;
  --muted-2:#5F574A;
  --line:#C9D4D8;
  --line2:#DCE4E6;
  --line-strong:#A5B4B9;
  --accent:#C94F2B;
  --accent-hover:#A83C1E;
  --accent-soft:#F4E4DD;
  --accent-bright:#A83C1E;
  --ok:#2C6B50;
  --ok-soft:#E3EFE8;
  --warn:#8A5A00;
  --warn-soft:#F7EEDC;
  --gold:#C94F2B;
  --teal:#8A5A0A;
  --violet:#5F574A;
  --coral:#C94F2B;
  --white:#FBF8F3;
}

html[data-theme="dark"]:not(.home-xav){
  --bg:#0B0B0A;
  --surface:#121211;
  --surface-2:#191917;
  --surface-wash:#0F0F0E;
  --ink:#F7F3EA;
  --muted:#B4AFA5;
  --muted-2:#948F86;
  --line:rgba(247,243,234,.14);
  --line2:rgba(247,243,234,.08);
  --line-strong:rgba(247,243,234,.26);
  --accent:#C94F2B;
  --accent-hover:#F08A67;
  --accent-soft:rgba(201,79,43,.14);
  --accent-bright:#FF9B7B;
  --accent-ink:#FFC0AC;
  --ok:#9BD8B8;
  --ok-soft:rgba(111,211,168,.12);
  --warn:#E8C37E;
  --warn-soft:rgba(240,198,124,.12);
  --gold:#C94F2B;
  --teal:#D3BE97;
  --violet:#B4AFA5;
  --coral:#E2683F;
  --white:#121211;
  --panel:#151514;
  --panel-2:#1C1C19;
}

html[data-theme="light"]:not(.home-xav) body{
  background-color:#F1EAE6;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E"),
    radial-gradient(58% 46% at 86% 0%, rgba(201,79,43,.06), transparent 62%),
    radial-gradient(46% 34% at 0% 12%, rgba(246,216,198,.62), transparent 68%),
    radial-gradient(58% 52% at 100% 40%, rgba(204,224,235,.55), transparent 66%),
    radial-gradient(50% 40% at 82% 100%, rgba(218,232,238,.45), transparent 70%),
    linear-gradient(118deg, #F5E8E1 0%, #F2EAE5 34%, #EAE8E6 62%, #E6EBED 100%);
  background-size:180px 180px, auto, auto, auto, auto, cover;
  background-repeat:repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment:fixed;
  background-blend-mode:soft-light, normal, normal, normal, normal, normal;
  color:var(--ink);
}

html[data-theme="dark"]:not(.home-xav) body{
  background-color:var(--bg);
  color:var(--ink);
}

html[data-theme="light"]:not(.home-xav) .xav-header{
  background:linear-gradient(180deg, rgba(231,236,238,.94), rgba(231,236,238,.78));
  border-bottom-color:rgba(23,20,15,.12);
  box-shadow:inset 0 1px 0 rgba(251,248,243,.95), inset 0 -1px 0 rgba(251,248,243,.45), 0 16px 36px -30px rgba(17,35,43,.45);
}
html[data-theme="dark"]:not(.home-xav) .xav-header{
  background:linear-gradient(180deg, rgba(11,11,10,.94), rgba(11,11,10,.78));
  border-bottom-color:rgba(247,243,234,.12);
  box-shadow:inset 0 1px 0 rgba(247,243,234,.05), inset 0 -1px 0 rgba(247,243,234,.03), 0 16px 36px -30px rgba(0,0,0,.6);
}

html[data-theme="light"]:not(.home-xav) .hero{
  background-image:radial-gradient(58% 60% at 84% 42%, rgba(201,79,43,.06), transparent 66%);
}

html[data-theme="light"]:not(.home-xav) .site-footer{
  background:#DCE5E8;
  border-top-color:var(--line);
}

html[data-theme="light"]:not(.home-xav) .dash-chrome{background:#DDE6E9}
html[data-theme="light"]:not(.home-xav) .dash-canvas{background:#E7ECEE}

/* No numbered section indexes on inner pages. */
html:not(.home-xav) main:not(.utility) > .sec:not(:has(.cta)) > .wrap::before,
html:not(.home-xav) main:not(.utility) > .sec-tight:not(:has(.cta)) > .wrap::before{
  content:none !important;
  display:none !important;
}
html:not(.home-xav) .svc-hero::before{content:none !important;display:none !important}
html:not(.home-xav) .svc-row{grid-template-columns:minmax(0,1fr) !important}
html:not(.home-xav) .svc-row::before{content:none !important;display:none !important}

/* Light paper should not keep the old peach/cream glows. */
html[data-theme="light"]:not(.home-xav) .svc-hero::after{
  background:radial-gradient(circle, rgba(201,79,43,.08), transparent 66%);
}

/* No italics anywhere on the site. */
em, i, cite, dfn, address, var, blockquote { font-style: normal; }
