/* Huron & Page brand layer (G.R.A.N.T., grant-brand, 2026-11-23, STAGING for huronandpage.com).
   ONE light theme in the Huron & Page palette, from the brand kit's integration/brand-tokens.css.
   Huron & Page is a publishing imprint operated by AppWT LLC.

   HOW IT IS SCOPED
   - Every rule below starts with the page scope  html:not(.awx-contrast) body:not(.ada-dark-mode)
     so the accessibility widget's high-contrast and dark modes still win untouched.
   - The widget rail (.awx-dock, .awx-panel, .awx-cookie) is never selected. It keeps its own
     --awx-* tokens and colours. Generic element rules exclude its descendants.
   - Page templates keep their own CSS. This file remaps their colour variables (--navy, --pearl,
     --gold on book pages; --ink, --c1, --c2, --mut on the homepage) and overrides only the
     hard-coded colours that were written for a dark page.
   CONTRAST (WCAG 2.2 AA, measured, ratios on Paper #FAF7F0 unless named):
     Ink 14.43  Ink-2 9.28  Teal 8.83  Muted text #56666A 5.60 (5.09 on Paper-2)
     Brass-text #7A5A22 5.92  Paper on Teal 8.83  Ink on Brass 6.53  Brass on Ink 6.53  Mist on Ink 10.02
     The kit's Muted #647276 is 4.66 on Paper but 4.23 on Paper-2, so body text uses #56666A.
     Brass #C7A36B is 2.21 on Paper: borders, rules and accents only, never text on a light ground.
   UNDO: remove the one <link> to this file (inc/header.php, index.html, {book}/preview/index.html). */

:root{
  --hp-ink:#17272A; --hp-ink-2:#33464A; --hp-teal:#234C51; --hp-teal-2:#1B3B3F;
  --hp-paper:#FAF7F0; --hp-paper-2:#F1ECE1; --hp-card:#FFFDF8;
  --hp-brass:#C7A36B; --hp-brass-2:#D9BC8C; --hp-brass-text:#7A5A22;
  --hp-muted:#647276; --hp-muted-text:#56666A; --hp-mist:#C9D2D1; --hp-link-band:#E6E1D6;
  --hp-line:rgba(35,76,81,.16); --hp-line-brass:rgba(199,163,107,.55); --hp-field:#7B898C;
  --hp-serif:Georgia,"Times New Roman",serif;
  --hp-sans:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}

/* ---------- 1. Page canvas + remap of the templates' own colour variables ---------- */
html:not(.awx-contrast) body:not(.ada-dark-mode){
  color-scheme:light;
  background:var(--hp-paper)!important; background-attachment:scroll!important; color:var(--hp-ink);
  /* book, category, about, pricing and facts templates */
  --navy:var(--hp-paper); --forest:var(--hp-paper-2); --charcoal:var(--hp-paper-2);
  --pearl:var(--hp-ink); --gold:var(--hp-teal); --gold2:var(--hp-teal-2); --slate:var(--hp-ink-2);
  --paper:var(--hp-paper-2);
  /* homepage, promo and cyber templates */
  --ink:var(--hp-paper); --c1:var(--hp-card); --c2:var(--hp-paper-2); --gold-2:var(--hp-teal-2);
  --mut:var(--hp-muted-text); --line:var(--hp-line);
  /* category and pricing templates */
  --muted:var(--hp-muted-text);
}
html:not(.awx-contrast) body:not(.ada-dark-mode) ::selection{background:var(--hp-brass-2);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) :focus-visible{outline-color:var(--hp-brass)}

/* Generic text written as light-on-dark, inside page content only, never inside the rail */
html:not(.awx-contrast) body:not(.ada-dark-mode) main p:where(:not(.awx-cookie *):not(.awx-dock *):not(.awx-panel *)){color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) main h2:where(:not(.awx-cookie *):not(.awx-dock *):not(.awx-panel *)),
html:not(.awx-contrast) body:not(.ada-dark-mode) .drawer h2, html:not(.awx-contrast) body:not(.ada-dark-mode) .modal h2{background:none!important;color:var(--hp-ink)!important;-webkit-text-fill-color:currentColor}
html:not(.awx-contrast) body:not(.ada-dark-mode) hr, html:not(.awx-contrast) body:not(.ada-dark-mode) .rule, html:not(.awx-contrast) body:not(.ada-dark-mode) .sec-rule{background:var(--hp-brass)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .count, html:not(.awx-contrast) body:not(.ada-dark-mode) .titles, html:not(.awx-contrast) body:not(.ada-dark-mode) .sec-count{color:var(--hp-teal)!important}

/* ---------- 2. Inline styles written for the dark theme (attribute selectors need !important) ---------- */
html:not(.awx-contrast) body:not(.ada-dark-mode) main [style*="color:#FAFAFA" i]:where(:not(.awx-cookie *)){color:var(--hp-ink)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) main [style*="color:#C9C3B8" i]:where(:not(.awx-cookie *)){color:var(--hp-ink-2)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) main [style*="color:#C4A052" i]:where(:not(.awx-cookie *)){color:var(--hp-teal)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) main [style*="color:#A3B5CC" i]:where(:not(.awx-cookie *)),
html:not(.awx-contrast) body:not(.ada-dark-mode) main [style*="color:#8A8377" i]:where(:not(.awx-cookie *)){color:var(--hp-muted-text)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-promo-strip[style]{background:var(--hp-paper-2)!important;color:var(--hp-ink-2)!important;border-bottom-color:var(--hp-line-brass)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-promo-strip[style] a{color:var(--hp-teal)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-sample-cta a[style]{background:var(--hp-teal)!important;color:var(--hp-paper)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .order-form input[style]{background:var(--hp-card)!important;color:var(--hp-ink)!important;border-color:var(--hp-field)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .order-form[style]{background:var(--hp-card)!important;border-color:var(--hp-line-brass)!important}

/* ---------- 3. Shared header (inc/header.php) and promo strip ---------- */
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-bar{background:var(--hp-paper);border-bottom:1px solid var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-brand{color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-brand img.hp-logo, html:not(.awx-contrast) body:not(.ada-dark-mode) .brand img.hp-logo{width:auto;height:52px;border-radius:0;flex:0 0 auto}
@media (max-width:760px){ html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-brand img.hp-logo, html:not(.awx-contrast) body:not(.ada-dark-mode) .brand img.hp-logo{height:42px} }
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-nav a{color:var(--hp-ink);opacity:1}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-nav a:hover, html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-nav a[aria-current="page"]{color:var(--hp-teal);text-decoration:underline;text-underline-offset:4px}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-srch input{background:var(--hp-card);border-color:var(--hp-field);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-srch input::placeholder{color:var(--hp-muted-text);opacity:1}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-srch input:focus{border-color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-promo{background:var(--hp-paper-2);border-bottom:1px solid var(--hp-line-brass);color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-promo a{color:var(--hp-teal)}

/* ---------- 4. Shared footer (inc/footer.php) and template footers: an Ink band ---------- */
html:not(.awx-contrast) body:not(.ada-dark-mode) footer, html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-foot{background:var(--hp-ink);color:var(--hp-mist);border-top:3px solid var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) footer a, html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-foot a{color:var(--hp-link-band)}
html:not(.awx-contrast) body:not(.ada-dark-mode) footer a:hover, html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-foot a:hover{color:var(--hp-brass-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-foot .awl-fg>div b{color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-foot .awl-copy, html:not(.awx-contrast) body:not(.ada-dark-mode) footer p{color:var(--hp-mist)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-foot .awl-copy{border-top-color:rgba(199,163,107,.25)}
html:not(.awx-contrast) body:not(.ada-dark-mode) footer .f-g{border-bottom-color:rgba(199,163,107,.25)}
html:not(.awx-contrast) body:not(.ada-dark-mode) footer .f-g b{color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hp-imprint{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:4px;margin:0 0 22px;padding:0 0 18px;
  border-bottom:1px solid rgba(199,163,107,.25);font-family:var(--hp-serif);font-size:1.05rem;color:var(--hp-paper)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hp-imprint img{width:34px;height:34px;flex:0 0 auto;border-radius:7px}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hp-imprint b{font-weight:400;color:var(--hp-paper);white-space:nowrap}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hp-imprint span{color:var(--hp-mist);font-family:var(--hp-sans);font-size:.92rem}

/* ---------- 5. Homepage (index.html) ---------- */
html:not(.awx-contrast) body:not(.ada-dark-mode) .bar{background:rgba(250,247,240,.97);border-bottom:1px solid var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bar nav a{color:var(--hp-ink);opacity:1}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bar nav a:hover, html:not(.awx-contrast) body:not(.ada-dark-mode) .bar nav a[aria-current="page"]{color:var(--hp-teal);text-decoration:underline;text-underline-offset:4px}
html:not(.awx-contrast) body:not(.ada-dark-mode) .srch input{background:var(--hp-card);border-color:var(--hp-field);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .srch input::placeholder{color:var(--hp-muted-text);opacity:1}
html:not(.awx-contrast) body:not(.ada-dark-mode) .srch:before{border-color:var(--hp-muted-text)}
/* hero: an Ink band over the shelf photograph, as in the kit preview */
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero{background-color:var(--hp-ink);color:var(--hp-paper);border-bottom-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero:after{background:linear-gradient(90deg,rgba(23,39,42,.97) 0%,rgba(23,39,42,.94) 30%,
  rgba(23,39,42,.62) 42%,rgba(23,39,42,.10) 56%,rgba(23,39,42,0) 72%,rgba(23,39,42,.55) 100%)}
@media (max-width:960px){
  html:not(.awx-contrast) body:not(.ada-dark-mode) .hero:after{background:linear-gradient(180deg,rgba(23,39,42,.88),rgba(23,39,42,.80) 50%,rgba(23,39,42,.95))}
}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero h1{color:var(--hp-paper)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .eyebrow, html:not(.awx-contrast) body:not(.ada-dark-mode) .hero h1 em, html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .stat b{color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero p{color:#E4E0D6}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .stat span{color:var(--hp-mist)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .stats{border-top-color:rgba(199,163,107,.35)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .btn{background:var(--hp-brass);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .btn:hover{background:var(--hp-brass-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .btn-o{background:transparent;color:var(--hp-brass);border-color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .btn-o:hover{background:var(--hp-brass);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .eyebrow{color:var(--hp-brass-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .tile:after{background:linear-gradient(180deg,rgba(23,39,42,.10),rgba(23,39,42,.88) 68%)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .tile{background-color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .tile-c span{color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .tile-c h3, html:not(.awx-contrast) body:not(.ada-dark-mode) .tile-c .tile-h{color:#fff}
html:not(.awx-contrast) body:not(.ada-dark-mode) .band{color:var(--hp-paper);background-color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .band:after{background:linear-gradient(90deg,rgba(23,39,42,.95),rgba(23,39,42,.62) 55%,rgba(23,39,42,.9))}
html:not(.awx-contrast) body:not(.ada-dark-mode) main .band p:not(.awx-cookie *){color:#E4E0D6}
html:not(.awx-contrast) body:not(.ada-dark-mode) main .band h2{color:var(--hp-paper)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .browse{background:rgba(250,247,240,.97);border-bottom-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .browse-count{color:var(--hp-muted-text)}
@media (min-width:641px){ html:not(.awx-contrast) body:not(.ada-dark-mode) .browse-count{color:var(--hp-muted-text)} }
html:not(.awx-contrast) body:not(.ada-dark-mode) .chip{background:var(--hp-card);border-color:rgba(35,76,81,.35);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .chip:hover{border-color:var(--hp-teal);color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .chip[aria-pressed="true"]{background:var(--hp-teal);border-color:var(--hp-teal);color:var(--hp-paper)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .chip .n{opacity:1;color:var(--hp-muted-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .chip[aria-pressed="true"] .n{color:var(--hp-paper)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .sortwrap{color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .sortwrap select{background:var(--hp-card);border-color:var(--hp-field);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .sortwrap select:focus-visible, html:not(.awx-contrast) body:not(.ada-dark-mode) .chip:focus-visible{outline-color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .shelf-head{border-bottom-color:var(--hp-line-brass)}
/* book cards */
html:not(.awx-contrast) body:not(.ada-dark-mode) .bk{background:var(--hp-card);border-color:var(--hp-line)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bk:hover{border-color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-c{color:var(--hp-teal)!important;border-color:var(--hp-line)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-by, html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-ch, html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-p2, html:not(.awx-contrast) body:not(.ada-dark-mode) .price-line-two .pl-lab{color:var(--hp-muted-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-go{background:var(--hp-teal)!important;color:var(--hp-paper)!important;box-shadow:none!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-go:hover{background:var(--hp-teal-2)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .btn-gold, html:not(.awx-contrast) body:not(.ada-dark-mode) .dr-co, html:not(.awx-contrast) body:not(.ada-dark-mode) .toast{background:var(--hp-teal);color:var(--hp-paper)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .btn-gold:hover{background:var(--hp-teal-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .btn-gold.added{background:#2e7d46;color:#fff}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-look{background:var(--hp-brass);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-look:hover{background:var(--hp-brass-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-quick{background:rgba(23,39,42,.88);color:var(--hp-paper);border-color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .pages, html:not(.awx-contrast) body:not(.ada-dark-mode) .chapters{background:rgba(23,39,42,.84)!important;color:var(--hp-paper);border-color:rgba(199,163,107,.6)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .b-free{color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .price-line-two .pl-opt{background:var(--hp-card);border-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .price-line-two .pl-opt:hover{border-color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .price-line-two .pl-amt, html:not(.awx-contrast) body:not(.ada-dark-mode) .bk-p{color:var(--hp-teal)}
/* featured, ladder, plain, promo, FAQ, author */
html:not(.awx-contrast) body:not(.ada-dark-mode) .feat{background:var(--hp-card);border-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) main .feat p:not(.awx-cookie *), html:not(.awx-contrast) body:not(.ada-dark-mode) main .plain p:not(.awx-cookie *), html:not(.awx-contrast) body:not(.ada-dark-mode) main .faq p:not(.awx-cookie *),
html:not(.awx-contrast) body:not(.ada-dark-mode) main .promo-c p:not(.awx-cookie *), html:not(.awx-contrast) body:not(.ada-dark-mode) .lad-row span{color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .promo{background:var(--hp-paper-2);border-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .promo-strip:after{background:linear-gradient(180deg,rgba(241,236,225,0),var(--hp-paper-2) 88%)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .author{background:var(--hp-paper-2);border-top-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .au-kicker, html:not(.awx-contrast) body:not(.ada-dark-mode) .au-role{color:var(--hp-brass-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) main .au-copy p:not(.awx-cookie *){color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .au-cert{color:var(--hp-muted-text)!important}
/* homepage footer */
html:not(.awx-contrast) body:not(.ada-dark-mode) footer .f-g a{color:var(--hp-link-band)}
/* cart pill, drawer, quick view */
html:not(.awx-contrast) body:not(.ada-dark-mode) .cart-btn{background:var(--hp-ink);color:var(--hp-paper);border-color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .cart-n{background:var(--hp-brass);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .drawer{background:var(--hp-card);color:var(--hp-ink);border-left-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .dr-promo input{background:var(--hp-card);border-color:var(--hp-field);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .dr-promo input::placeholder{color:var(--hp-muted-text);opacity:1}
html:not(.awx-contrast) body:not(.ada-dark-mode) .dr-code-msg.ok{color:#2E6B3F}
html:not(.awx-contrast) body:not(.ada-dark-mode) .dr-code-msg.bad{color:#9B2C2C}
html:not(.awx-contrast) body:not(.ada-dark-mode) .dr-note, html:not(.awx-contrast) body:not(.ada-dark-mode) .dr-empty, html:not(.awx-contrast) body:not(.ada-dark-mode) .dr-item .di-e, html:not(.awx-contrast) body:not(.ada-dark-mode) .dr-item .di-rm{color:var(--hp-muted-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .modal{background:rgba(23,39,42,.72)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .modal-in{background:var(--hp-card);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .modal-x{background:var(--hp-card);color:var(--hp-ink);border-color:var(--hp-field)}
/* promotion pop-up: an Ink card, no purple */
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-ov{background:rgba(23,39,42,.72)}
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-box{background:var(--hp-ink);border-top:3px solid var(--hp-brass);color:var(--hp-paper)}
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-box h2{background:none;color:var(--hp-paper)!important;-webkit-text-fill-color:currentColor}
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-box p{color:#E4E0D6}
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-box input[type=email]{background:#0F1E21;border-color:rgba(199,163,107,.6);color:var(--hp-paper)}
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-box input[type=email]:focus{outline-color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-go{background:var(--hp-brass);color:var(--hp-ink);box-shadow:none}
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-x{color:var(--hp-mist)}
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-x:hover, html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-x:focus{color:var(--hp-paper)}
html:not(.awx-contrast) body:not(.ada-dark-mode) #awp-fine{color:#AEB9B9}

/* ---------- 6. Book template ({book}/index.php) ---------- */
html:not(.awx-contrast) body:not(.ada-dark-mode) header.bar{background:rgba(250,247,240,.97);border-bottom-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-crumb{background:var(--hp-paper-2);border-bottom-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-crumb .crumb-wrap{color:var(--hp-muted-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-crumb a{color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-crumb [aria-current="page"]{color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .eyebrow{color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .book-hero .lead, html:not(.awx-contrast) body:not(.ada-dark-mode) .book-hero .price-line{color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .book-hero .free-with, html:not(.awx-contrast) body:not(.ada-dark-mode) .book-hero .price-line .strike, html:not(.awx-contrast) body:not(.ada-dark-mode) .reader-meta-top .credits,
html:not(.awx-contrast) body:not(.ada-dark-mode) .preorder-form .small, html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-edition .d{color:var(--hp-muted-text)}
/* text over cover artwork stays light on its dark overlay */
html:not(.awx-contrast) body:not(.ada-dark-mode) .title-overlay h2, html:not(.awx-contrast) body:not(.ada-dark-mode) .title-overlay h3, html:not(.awx-contrast) body:not(.ada-dark-mode) .title-overlay .cover-h{color:var(--hp-paper)!important}
html:not(.awx-contrast) body:not(.ada-dark-mode) .title-overlay .sub, html:not(.awx-contrast) body:not(.ada-dark-mode) .cover-image .badge-pages, html:not(.awx-contrast) body:not(.ada-dark-mode) .book-card .cover .badge-pages{color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .title-overlay{background:linear-gradient(0deg,rgba(23,39,42,.97) 0%,rgba(23,39,42,.85) 50%,rgba(23,39,42,0) 100%)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .badge-pages{background:rgba(23,39,42,.84)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .credit-block, html:not(.awx-contrast) body:not(.ada-dark-mode) .toc, html:not(.awx-contrast) body:not(.ada-dark-mode) .sample-chapter, html:not(.awx-contrast) body:not(.ada-dark-mode) .book-card{background:var(--hp-card);border-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .credit-block .credit-row, html:not(.awx-contrast) body:not(.ada-dark-mode) .toc ol, html:not(.awx-contrast) body:not(.ada-dark-mode) .preorder-form label, html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-edition legend{color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .preorder-form{background:var(--hp-card);border-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .preorder-form input[type=text], html:not(.awx-contrast) body:not(.ada-dark-mode) .preorder-form input[type=email]{background:var(--hp-card);border-color:var(--hp-field);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-edition{border-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-edition label{background:var(--hp-card);border-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-edition label:hover{border-color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-edition .t{color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-edition .p{color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .appwt-edition input{accent-color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .section.alt{background:var(--hp-paper-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero{background-image:none}
html:not(.awx-contrast) body:not(.ada-dark-mode) .tag{background:rgba(35,76,81,.10);color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .book-card .body .desc{color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .book-hero .cover-image{box-shadow:0 18px 44px rgba(23,39,42,.28)}

/* currency picker inside the buy form (assets/widgets/appwt-currency.js), not part of the rail */
html:not(.awx-contrast) body:not(.ada-dark-mode) .awx-cur{color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awx-cur label, html:not(.awx-contrast) body:not(.ada-dark-mode) .awx-cur-note{color:var(--hp-muted-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .awx-cur select{background:var(--hp-card);color:var(--hp-ink);border-color:var(--hp-field)}

/* ---------- 7. Free preview template ({book}/preview/index.html) ---------- */
html:not(.awx-contrast) body:not(.ada-dark-mode) .bar .cta .btn, html:not(.awx-contrast) body:not(.ada-dark-mode) .end .btn{background:var(--hp-teal);color:var(--hp-paper)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bar .cta .btn:hover, html:not(.awx-contrast) body:not(.ada-dark-mode) .end .btn:hover{background:var(--hp-teal-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .bar .cta .btn-o{background:transparent;color:var(--hp-teal);border-color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .head{border-bottom-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .head p{color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .kick{color:var(--hp-brass-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .stage{background:var(--hp-paper-2);border-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .sl img{box-shadow:0 10px 30px rgba(23,39,42,.22)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .nav button{background:var(--hp-card);border-color:var(--hp-field);color:var(--hp-ink)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .nav button:hover{border-color:var(--hp-teal);color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .nav .pos{color:var(--hp-muted-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .end{background:var(--hp-card);border-color:var(--hp-line-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .end p{color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .end .price{color:var(--hp-teal)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .rail::-webkit-scrollbar-thumb{background:rgba(35,76,81,.35)}

/* ---------- 7b. Other templates that load the shared header (category, facts, pricing, promo,
   free guides, cyber manual). Light-on-dark literals in their own CSS, mapped to the light set. ---------- */
html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-cat-head p, html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-card .sub, html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-note, html:not(.awx-contrast) body:not(.ada-dark-mode) p.lead, html:not(.awx-contrast) body:not(.ada-dark-mode) ul.notdo .why, html:not(.awx-contrast) body:not(.ada-dark-mode) .note,
html:not(.awx-contrast) body:not(.ada-dark-mode) .lede, html:not(.awx-contrast) body:not(.ada-dark-mode) .whatis li, html:not(.awx-contrast) body:not(.ada-dark-mode) .two li, html:not(.awx-contrast) body:not(.ada-dark-mode) .pw p, html:not(.awx-contrast) body:not(.ada-dark-mode) table.tiers td, html:not(.awx-contrast) body:not(.ada-dark-mode) .warn, html:not(.awx-contrast) body:not(.ada-dark-mode) .promo-form label,
html:not(.awx-contrast) body:not(.ada-dark-mode) .card label, html:not(.awx-contrast) body:not(.ada-dark-mode) form label{color:var(--hp-ink-2)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .crumb .sep, html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-crumb .sep{opacity:1;color:var(--hp-muted-text)}
html:not(.awx-contrast) body:not(.ada-dark-mode) main table th, html:not(.awx-contrast) body:not(.ada-dark-mode) main table td, html:not(.awx-contrast) body:not(.ada-dark-mode) ul.notdo li, html:not(.awx-contrast) body:not(.ada-dark-mode) table.tiers th, html:not(.awx-contrast) body:not(.ada-dark-mode) table.tiers td{border-color:var(--hp-line)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .book-card .price.free-tag, html:not(.awx-contrast) body:not(.ada-dark-mode) .book-hero .price-line.free{color:#2E6B3F}
html:not(.awx-contrast) body:not(.ada-dark-mode) footer .accent, html:not(.awx-contrast) body:not(.ada-dark-mode) .awl-foot .accent{color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .hero .accent{color:var(--hp-brass)}
html:not(.awx-contrast) body:not(.ada-dark-mode) .note{background:var(--hp-card)}

/* Headings use the kit's editorial serif where a template asked for a serif */
html:not(.awx-contrast) body:not(.ada-dark-mode) .hp-serif{font-family:var(--hp-serif)}

/* ---------- 8. Accessibility modes: this theme stands aside, so the header is dark again.
   Show the kit's dark-background logo there (it ships with the hidden attribute). ---------- */
html.awx-contrast img.hp-logo-light, body.ada-dark-mode img.hp-logo-light{display:none!important}
html.awx-contrast img.hp-logo-dark, body.ada-dark-mode img.hp-logo-dark{display:inline-block!important;width:auto;height:44px;border-radius:0}

/* ---------- 9. The 10%-off offer (#awp-ov) opens as a bar across the top, never over the shelf.
   B.L.A.K.E. for C.L.I.N.T., 2026-11-23, key clint-huron-buypath-1123. Tony 2026-09-19: a first-time
   visitor must always be able to buy. Measured before on /: the full-screen modal opened at 55% scroll
   and covered 31 of 87 Add to cart at 390 and 24 at 1440. As a top bar the rest of the page stays
   pressable. z-index 115 sits over the header (80) and under the quick view (120), the cart drawer (130)
   and the toast (140), so their Add to cart and checkout are never under it. The widget rail, chat bubble
   and consent card sit at the side or bottom and never meet it. Copy, form, triggers and the 45-day
   "remembers a no" are unchanged. "html body" outranks each page's own inline popup CSS, so this one
   block serves every page that loads this file. UNDO: take this section out. ---------- */
html body #awp-ov{top:0;right:0;bottom:auto;left:0;z-index:115;align-items:flex-start;padding:0;-webkit-backdrop-filter:none;backdrop-filter:none}
html body #awp-box{max-width:none;width:100%;max-height:45vh;overflow-y:auto;border-radius:0;border-left:0;border-right:0;border-bottom:0;box-shadow:0 10px 30px rgba(0,0,0,.45);padding:calc(.8rem + env(safe-area-inset-top,0px)) max(3rem,calc((100% - 760px)/2)) .8rem max(1rem,calc((100% - 760px)/2))}
html body #awp-box h2{font-size:1.1rem;margin:0 0 .25rem}
html body #awp-box p{font-size:.85rem;line-height:1.4;margin:0 0 .5rem}
html body #awp-f{display:flex;flex-wrap:wrap;gap:.5rem}
html body #awp-box input[type=email]{flex:1 1 9rem;width:auto;min-width:0;padding:.6rem .8rem}
html body #awp-go{flex:0 0 auto;width:auto;margin-top:0;padding:.6rem 1.1rem}
html body #awp-box #awp-msg{margin-top:.35rem;min-height:0}
html body #awp-box #awp-fine{margin:.35rem 0 0;font-size:.72rem;line-height:1.35}
html body #awp-x{top:.35rem;right:max(.5rem,calc((100% - 760px)/2 - 2.75rem))}

/* ---------- 10. Cart drawer footer keeps clear of the chat bubble.
   B.L.A.K.E. for C.L.I.N.T., 2026-11-23, key clint-huron-buypath-1123. Measured before: with the drawer open the
   chat bubble (right-anchored, 18-70px from the right edge at every width) sat on Checkout's right edge at 390 and
   1440. The dodge script stands still while the drawer is open, so the footer keeps an 82px right gutter instead.
   Nothing is hidden or moved. UNDO: take this section out. ---------- */
html body #cartDrawer .dr-foot{padding-right:82px}
