/* dd-theme.css: three dark shades (header/hero, middle band, footer) on a warm light page.
   Load AFTER dd-extras.css on every page. */

/* 1. Light palette: every page colour comes from these variables */
:root{
  --bg:#FAF9F6;--card:#FFFFFF;--ink:#1a1812;--mute:#5c5648;--line:#E5E1D8;
  --teal:#8F6A16;--blue:#8F6A16;--on:#FFFFFF;--gold:#8F6A16;
  --s1:#FBF6EA;--s2:#F5EFE0;
  --or-bg:#FBF6EA;--or-ink:#8F6A16;--or-line:#E8D5A7;
  --accent:#8F6A16;--panel:#FFFFFF;--warn:#8A4A0B;
  --bg-raised:#FFFFFF;--bg-card:#FFFFFF;--cream:#1a1812;--gold-bright:#8F6A16;--line-strong:rgba(143,106,22,.45);
  color-scheme:light}
html{background:#FAF9F6}
body{background:var(--bg);color:var(--ink);overflow-x:clip}

/* 2. Dark header strip (full width, no markup change) */
html .bar{position:relative;isolation:isolate}
html .bar::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);background:radial-gradient(700px 160px at 50% 0%,rgba(227,181,61,.08),transparent 70%),linear-gradient(180deg,#0d0c09,#0a0907)}
html .hero-dark .bar::before{display:none}
html .bar .logo{color:#f5f1e8}
html .bar .logo .bn small{color:#a9a395}
html .bar nav>a,html .bar .nav-dd summary{color:#b9b3a4}
html .bar nav>a:hover,html .bar nav>a[aria-current],html .bar .nav-dd summary:hover,html .bar .nav-dd[open] summary,html .bar .nav-dd.cur summary{color:#e3b53d}
html .bar nav>a.nav-tool{background:rgba(227,181,61,.14);color:#f3c95c;border:1px solid rgba(227,181,61,.45)}
html .bar nav>a.nav-tool:hover{background:#e3b53d;color:#1a1405}
html .bar .lang-switch summary{background:#2a261d;border-color:#3a3326;color:#f5f1e8}
html .bar .lang-switch summary:hover{background:#3a3326;border-color:#e3b53d}
html .bar a:focus-visible,html .bar button:focus-visible,html .bar summary:focus-visible{outline:3px solid #e3b53d;outline-offset:3px}
@media(max-width:640px){
  html .bar nav>a{background:#25221b;border-color:#3a3326;color:#e8e2d3}
  html .bar nav>a[aria-current]{border-color:#e3b53d;color:#e3b53d}
}

/* 3. Page hero: darkest shade, serif title like the home hero (full width, no markup change) */
html main h1,html main header.hero h1{font-family:"Playfair Display",Georgia,serif;letter-spacing:0}
html main>.wrap:first-child:has(.page-head,.about-hero),html main>header.hero,html main>article>header.hero{position:relative;isolation:isolate;padding-bottom:48px}
html main>header.hero,html main>article>header.hero{padding-top:44px}
html main>.wrap:first-child:has(.page-head,.about-hero)::before,html main>header.hero::before,html main>article>header.hero::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);background:radial-gradient(760px 300px at 50% 0%,rgba(227,181,61,.08),transparent 70%),linear-gradient(180deg,#0d0c09,#0a0907)}
html main .page-head *,html main .about-hero *,html main>header.hero *,html main>article>header.hero *{color:#b3ad9f}
html main .page-head h1,html main .about-hero h1,html main>header.hero h1,html main>article>header.hero h1{color:#f5f1e8}
html main .page-head .eyebrow,html main .about-hero .eyebrow,html main>header.hero .eyebrow,html main>article>header.hero .eyebrow{color:#e3b53d}
html main .page-head a,html main .about-hero a,html main>header.hero a,html main>article>header.hero a{color:#e3b53d}
html main>header.hero .note,html main>article>header.hero .note{background:rgba(255,255,255,.06);border-color:#3a3326}
html main>header.hero .note b,html main>header.hero .pq{color:#f5f1e8}
html main .btn.outline{background:#2a261d;border:1px solid #3a3326;color:#f5f1e8}
html main .btn.outline:hover{border-color:#e3b53d}

/* 4. Dark band (lighter shade): add class="dark-band" to any section */
.dark-band{background:#292520;box-shadow:0 0 0 100vmax #292520;clip-path:inset(0 -100vmax);color:#b8b2a3;padding:56px 0 52px;margin-top:64px}
.dark-band h2,.dark-band h3,.dark-band b,.dark-band .step-title,.dark-band .dsteps li b{color:#f5f1e8}
.dark-band p,.dark-band li,.dark-band .step-desc{color:#b8b2a3}
.dark-band .step,.dark-band .dsteps li{background:#332f28;border-color:#4d4635}
.dark-band .point-list li{border-bottom-color:#4d4635}
.dark-band .ic,.dark-band .step-num,.dark-band .dsteps li::before{background:#e3b53d;color:#1a1405}
.dark-band a,.dark-band .sec p a,.dark-band .point-list a{color:#e3b53d!important}
.dark-band>h2{border-inline-start-color:#e3b53d}
.dark-band a:focus-visible{outline-color:#e3b53d}

/* 5. Footer: lighter black, gold hairline, readable social logos */
footer{background:radial-gradient(800px 240px at 50% 0%,rgba(227,181,61,.05),transparent 70%),linear-gradient(180deg,#14120d,#0a0907);color:#b8b2a3;border-top:1px solid rgba(227,181,61,.38)}
footer a{color:#e8e2d3}footer a:hover{color:#e3b53d}
footer .fbrand b,footer h4{color:#f5f1e8!important}
footer .xp a{background:#38332a;border-color:#4d4635}footer .xp a:hover{border-color:#e3b53d}
footer .footer-social a{background:#F1ECDF;border-color:#F1ECDF;color:#1a1812}
footer .footer-social a:hover{background:#fff;color:#1a1812;box-shadow:0 0 0 2px #e3b53d}
footer .legal{border-top-color:#4d4635}footer .legal button{color:#e8e2d3}
footer a:focus-visible,footer button:focus-visible{outline-color:#e3b53d}

/* 6. Middle dark band: .dark-band, and the existing .cta call-to-action box */
.cta,.fbx,.human,.cover{background:#292520;border:1px solid #3a3326;color:#b8b2a3}
.cta h2,.cta h3,.fbx b,.human b,.cta b{color:#f5f1e8}
.cta p,.fbx span,.human p{color:#b8b2a3}
.cta a:not(.btn){color:#e3b53d}
.cta .btn.ol,.human .ol{border-color:#6b6455;color:#f5f1e8}
.cta .btn.gd,.cta .btn.primary{background:#e3b53d;color:#1a1405}
.stp .n,.sbtn,.pt th{color:#1a1405}
.tool-box{background:#FBF6EA;border-color:#E8D5A7}
.tool-box p{color:var(--ink)}
.tool-box .tool-tag{background:#F5EFE0;color:#8F6A16}
.rs.approved{background:#E3F4E8;color:#14532d}
.rs.rejected,.fs.error{background:#FDECEC;color:#8A1C1C}
.res b.warn{background:#FFF0E0;color:#8A4A0B}

/* 7. Newsletter, order form, quotes (from dd-extras.css): gold on light */
html .dd-signup{background:#FBF6EA;border-color:#E8D5A7;box-shadow:0 6px 20px rgba(143,106,22,.12)}
html .dd-order,html .dd-quote,html .dd-next{background:#fff;border-color:var(--line)}
html .dd-quote,html .dd-next{border-left-color:#8F6A16}
html .dd-order{border-color:#E8D5A7;box-shadow:0 6px 20px rgba(143,106,22,.10)}
html .dd-signup p,html .dd-su-consent,html .dd-o-lead,html .dd-o-opt,html .dd-o-note,html .dd-next p,html .dd-quote figcaption span{color:var(--mute)}
html .dd-su-row input[type=email],html .dd-o-field input,html .dd-o-field select,html .dd-o-field textarea{background:#fff;color:var(--ink);border-color:var(--line)}
html .dd-su-row input[type=email]:focus,html .dd-o-field input:focus,html .dd-o-field select:focus,html .dd-o-field textarea:focus{border-color:#8F6A16;box-shadow:0 0 0 3px rgba(143,106,22,.25)}
html .dd-su-btn,html .dd-next-btns .pri{background:#8F6A16;color:#fff}
html .dd-next-btns .sec{background:#fff;color:#8F6A16;border-color:#8F6A16}
html .dd-su-consent input{accent-color:#8F6A16}
html .dd-su-status.ok{background:#fff;color:#14532d}
html .dd-signup button:focus-visible,html .dd-signup a:focus-visible{outline-color:#1a1812}
html .dd-consent{background:#fff;color:#1a1812;border-color:var(--line);box-shadow:0 14px 40px rgba(26,24,18,.18)}
html .dd-consent a{color:#8F6A16}
html .dd-consent .dd-ok{background:#8F6A16;color:#fff}
html .dd-consent .dd-no{background:transparent;color:#1a1812;border:1.5px solid var(--line)}
html.wd .dd-signup{background:#FBF6EA;border-color:#E8D5A7}
html.wd .dd-order,html.wd .dd-quote,html.wd .dd-next{background:#fff;border-color:var(--line)}
html.wd .dd-quote,html.wd .dd-next{border-left-color:#8F6A16}
html.wd .dd-su-btn,html.wd .dd-next-btns .pri,html.wd .dd-consent .dd-ok{background:#8F6A16;color:#fff}
html.wd .dd-next-btns .sec{color:#8F6A16;border-color:#8F6A16}
html.wd .dd-consent{background:#fff;color:#1a1812}
html.wd .dd-consent a{color:#8F6A16}
html.wd .lang-switch summary{background:#2a261d;border-color:#3a3326;color:#f5f1e8}
html.wd .lang-menu{background:#fff}
html.wd .lang-menu a{color:#1a1812}
html.wd .logo .bn small{color:#a9a395}
.logo .bn small{color:#a9a395}

/* 8. Language pages keep their flag accent (darkened for the light background) */
html[data-flag="sa"]{--teal:#0a7a45;--blue:#0a7a45;--gold:#0a7a45;--s1:#E6F4EC;--s2:#DDEFE5}
html[data-flag="cn"]{--teal:#C2301D;--blue:#C2301D;--gold:#C2301D;--s1:#FDEBE7;--s2:#FBE0DA}
html[data-flag="es"]{--teal:#A8281F;--blue:#A8281F;--gold:#A8281F;--s1:#FDF1D8;--s2:#FAE8C0}

/* 9. Tables and small fixes */
.tbl table{background:var(--card);color:var(--ink)}
.tbl thead th{background:var(--s1);color:var(--ink)}
.tbl th,.tbl td{border-color:var(--line)}
.tbl tbody th{background:var(--bg);color:var(--ink)}
.tbl tbody tr:nth-child(even) td{background:var(--s1)}
.pt tr:nth-child(even) td{background:var(--s1)}
.pt.tl tr:nth-child(even) td{background:var(--s2)}

/* footer text stays readable on the dark footer */
footer p,footer li,footer .legal,footer .fbrand p,footer small{color:#b8b2a3}
footer .fbrand b[style]{color:#f5f1e8!important}

/* translated home pages (no .hero-dark wrapper): dark title strip under the header */
html main>.intro{background:#0d0c09;box-shadow:0 0 0 100vmax #0d0c09;clip-path:inset(0 -100vmax);margin-top:0;padding:44px 0 44px;max-width:none}
html main>.intro h1{color:#f5f1e8;font-family:"Playfair Display",Georgia,serif}
html main>.intro p{color:#b3ad9f;max-width:40em}
html main>.intro a{color:#e3b53d}
/* due-diligence band on the home pages without inline styles */
#checks{background:#292520;box-shadow:0 0 0 100vmax #292520;clip-path:inset(0 -100vmax);color:#b8b2a3;padding:56px 0 52px;margin-top:64px}
#checks h2,#checks h3,#checks b{color:#f5f1e8}
#checks .sub,#checks .four p,#checks p{color:#b8b2a3}
#checks .four div{border-left-color:#e3b53d}
#checks a{color:#e3b53d!important}
/* quote under a hero title */
html main>header.hero .pq,html main>article>header.hero .pq{background:rgba(255,255,255,.06);color:#f5f1e8;border-color:#e3b53d}

/* header stays above the hero strip so the Blog dropdown is visible and clickable */
html .bar{z-index:60}
html main>.wrap:first-child:has(.page-head,.about-hero),html main>header.hero,html main>article>header.hero{z-index:1}
