/* DDQX Appearance 0.3.11: True Light Mode.
 * Client-resolution scope: applies to explicit Light and System-resolved Light.
 * Dark Mode and educational engines are not modified. The Connected Backgrounds
 * source has an approved companion Light palette in Connected Backgrounds 0.9.3.
 */
html.ddqx-appearance[data-ddqx-theme="light"] {
  --da-canvas:#EAF4F3;
  --da-canvas-depth:#D5E9EA;
  --da-canvas-glow:rgba(69,135,149,.12);
  --da-gold-trace:rgba(156,126,29,.11);
  --da-canvas-text:#104A56;
  --da-canvas-muted:#135967;
  --da-canvas-link:#16697A;
  --da-canvas-focus:#104A56;
  --da-text:#104A56;
  --da-muted:#135967;
  --da-link:#16697A;
  --da-focus:#104A56;
  --da-surface:#E9F1F2;
  --da-raised:#F3F8F8;
  --da-button:#104A56;
  --da-button-text:#fff;
  color-scheme:light;
}

/* Pale, variegated, minimally graphic canvas: no pale text on pale wallpaper. */
html.ddqx-appearance[data-ddqx-theme="light"] body {
  background-color:#EAF4F3 !important;
  background-image:linear-gradient(160deg,#EAF4F3,#D5E9EA 52%,#EAF4F3) !important;
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] .wp-site-blocks {
  background-color:#EAF4F3 !important;
  background-image:
    linear-gradient(128deg,transparent 0 81%,rgba(156,126,29,.10) 81.04% 81.10%,transparent 81.15%),
    radial-gradient(ellipse at 0% 13%,rgba(69,135,149,.12),transparent 63%),
    radial-gradient(ellipse at 100% 73%,rgba(69,135,149,.10),transparent 59%),
    linear-gradient(160deg,#EAF4F3,#D5E9EA 52%,#EAF4F3) !important;
  background-size:100% 1100px,100% 1500px,100% 1800px,100% 2400px !important;
  background-repeat:repeat-y !important;
}
/* When the network plugin is active, it owns the single global field.
 * Appearance's fallback field remains for sites without that plugin. */
html.ddqx-appearance[data-ddqx-theme="light"] body.ddqx-ccb-enabled.ddqx-ccb-shell-outer > .wp-site-blocks {
  background-color:#EAF4F3 !important;
  background-image:var(--ddqx-ccb-field) !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-attachment:scroll !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] main {
  --da-text:#104A56;
  --da-muted:#135967;
  --da-link:#16697A;
  --da-focus:#104A56;
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] main .wp-block-post-title,
html.ddqx-appearance[data-ddqx-theme="light"] main > .ddqx-article-meta {
  color:#104A56 !important;
}

/* True Light extends to chrome. Deep teal survives as an accessible CTA color. */
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-site-header {
  --da-text:#104A56;
  --da-muted:#135967;
  --da-link:#16697A;
  --da-focus:#104A56;
  background:linear-gradient(112deg,#EAF4F3,#D5E9EA 52%,#E1EFF0) !important;
  color:#104A56 !important;
  box-shadow:inset 0 -1px 0 rgba(16,74,86,.26) !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-site-header :is(nav a,.wp-block-navigation__responsive-container-open,.ddqx-appearance-control label) {
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-site-header .wp-block-navigation__responsive-container.is-menu-open {
  --da-text:#104A56;
  --da-link:#16697A;
  --da-focus:#104A56;
  background:#EAF4F3 !important;
  color:#104A56 !important;
}
/* The original transparent banner is the light-surface asset; the teal-to-cream
 * SVG recolor filter is retained only in Dark Mode. No logo pixels are edited. */
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-header-brand .custom-logo {
  filter:none !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-banner-continuation {
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-site-header .ddqx-appearance-control select {
  color:#104A56;
  background:#F3F8F8;
  border-color:#458795;
  border-bottom-color:#9C7E1D;
  color-scheme:light;
}
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-site-header .ddqx-appearance-control select:focus-visible {
  outline:3px solid #104A56 !important;
}

/* Hero, Journey, final CTA band and footer stop being dark-theme islands. */
html.ddqx-appearance[data-ddqx-theme="light"] main :is(.ddqx-hero,.ddqx-ref-final),
html.ddqx-appearance[data-ddqx-theme="light"] #ddqx-white-coat-journey,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 .ddqx-home-v3 > .ddqx-section:last-child,
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-site-footer,
html.ddqx-appearance[data-ddqx-theme="light"] .wp-site-blocks > footer {
  --da-text:#104A56;
  --da-muted:#135967;
  --da-link:#16697A;
  --da-focus:#104A56;
  --da-button:#104A56;
  --da-button-text:#fff;
  background-color:#D5E9EA !important;
  background-image:
    linear-gradient(128deg,transparent 0 85%,rgba(156,126,29,.13) 85.04% 85.12%,transparent 85.17%),
    radial-gradient(ellipse at 100% 0%,rgba(69,135,149,.10),transparent 64%),
    linear-gradient(118deg,#EAF4F3,#D5E9EA 52%,#E1EFF0) !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  box-shadow:inset 0 1px 0 rgba(16,74,86,.19),inset 0 -1px 0 rgba(16,74,86,.19) !important;
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] main .ddqx-hero .ddqx-method-flow {
  --da-text:#104A56;
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-site-footer :is(h2,h3,p,li,small),
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-site-footer a:not(.wp-block-button__link) {
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] .ddqx-site-footer a:not(.wp-block-button__link) {
  text-decoration:underline;
  text-underline-offset:.14em;
}
html.ddqx-appearance[data-ddqx-theme="light"] main :is(.ddqx-hero,.ddqx-ref-final) .wp-block-button__link {
  background:#104A56 !important;
  color:#fff !important;
  border-bottom-color:#E3C565 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] main .ddqx-ref-final .ddqx-cta {
  --da-text:#104A56;
  --da-muted:#135967;
  --da-link:#16697A;
  --da-focus:#104A56;
  background:#E9F1F2 !important;
  color:#104A56 !important;
}
/* Separate product-owner hero used by the Medical School Explorer. */
html.ddqx-appearance[data-ddqx-theme="light"] .mse-hero {
  --da-text:#104A56;
  --da-muted:#135967;
  --da-link:#16697A;
  --da-focus:#104A56;
  background:#D5E9EA !important;
  color:#104A56 !important;
}

/* Discovery Navigation 0.2.1 owns this standalone Free Tools directory.
 * In Light Mode, its original dark hero becomes a pale, readable content panel.
 * Jump links remain deliberate teal actions, not unstyled inline links. */
html.ddqx-appearance[data-ddqx-theme="light"] main .ddqx-free-tools-index .ddqx-free-tools-hero {
  --da-text:#104A56;--da-muted:#135967;--da-link:#16697A;--da-focus:#104A56;
  background:linear-gradient(125deg,#EAF4F3,#D5E9EA) !important;
  color:#104A56 !important;
  border:1px solid #B9D0D3;
}
html.ddqx-appearance[data-ddqx-theme="light"] main .ddqx-free-tools-hero :is(h1,h2,p,.ddqx-free-tools-eyebrow,.ddqx-free-tools-lead) {
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] main .ddqx-free-tools-hero .ddqx-free-tools-jumps a {
  color:#fff !important;
  background:#104A56 !important;
  border-color:#104A56;
}
html.ddqx-appearance[data-ddqx-theme="light"] main .ddqx-free-tools-hero .ddqx-free-tools-jumps a:hover,
html.ddqx-appearance[data-ddqx-theme="light"] main .ddqx-free-tools-hero .ddqx-free-tools-jumps a:focus-visible {
  background:#16697A !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] main .ddqx-free-tools-hero .ddqx-free-tools-quick a {
  color:#16697A !important;
  text-decoration:underline;
}
/* Preserve print and forced-colors user agents: no decorative gradients. */
@media print {
  html.ddqx-appearance[data-ddqx-theme="light"] :is(body,.wp-site-blocks,.ddqx-site-header,.ddqx-site-footer),
  html.ddqx-appearance[data-ddqx-theme="light"] main :is(.ddqx-hero,.ddqx-ref-final) {
    background:#fff !important;
    box-shadow:none !important;
    color:#000 !important;
  }
}
@media (forced-colors:active) {
  html.ddqx-appearance[data-ddqx-theme="light"] :is(.wp-site-blocks,.ddqx-site-header,.ddqx-site-footer),
  html.ddqx-appearance[data-ddqx-theme="light"] main :is(.ddqx-hero,.ddqx-ref-final) {
    background-image:none !important;
  }
}

/* DDQX Appearance 0.3.11.1 — production corrective patch, 2026-11-13.
 * Issue: Homepage architecture/teaching blocks are direct HTML sections, not
 * .ddqx-section blocks, and therefore were inheriting pale on-dark semantic
 * roles after the canvas changed to the True Light palette. Give those light
 * sections explicit ink/link ownership without touching interactive widgets.
 * Scope: page #49 and resolved Light only (System=Light included).
 */
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 > .ddqx-arch-section,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-learning-demo,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-demo-copy {
  --da-text:#104A56;
  --da-muted:#135967;
  --da-link:#16697A;
  --da-focus:#104A56;
  color:#104A56 !important;
}
/* Only ordinary copy is recolored. Do not paint the text of buttons, input
 * options, quiz feedback, or authored demonstration content. */
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-arch-section > :is(h2,p),
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-demo-copy > :is(h3,p),
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-closing-options > :is(h2,p),
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-closing-testimonials > :is(h3,p) {
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-demo-copy > .ddqx-demo-eyebrow,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-arch-section > .ddqx-arch-note {
  color:#135967 !important;
}
/* Homepage architectural section calls to action remain teal and underlined
 * on the pale canvas. This excludes the dark button-style links. */
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-arch-section > p a:not(.wp-block-button__link),
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-demo-copy > p a:not(.wp-block-button__link),
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-closing-options > p a:not(.wp-block-button__link),
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-closing-testimonials > p a:not(.wp-block-button__link) {
  color:#16697A !important;
  text-decoration:underline;
  text-underline-offset:.14em;
}
/* Button colors remain separate semantic roles; protect them from page-level
 * link selectors while keeping the approved five-pixel bottom gold accent. */
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-arch-section .wp-block-button__link,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-demo-copy .wp-block-button__link {
  color:#fff !important;
  background:#104A56 !important;
  border-bottom-color:#E3C565 !important;
}
/* Homepage HTML also carries named section IDs. ID-scoped rules have enough
 * specificity to beat legacy ID-based pale-copy declarations, including
 * styles injected after the Appearance stylesheet. */
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 :is(#ddqx-home-free-tools,#ddqx-home-teaching,#ddqx-home-recurring,#ddqx-home-expert-support,#ddqx-home-next-step) > :is(h2,p),
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 #ddqx-home-teaching .ddqx-demo-copy > :is(h3,p) {
  color:#104A56 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 #ddqx-home-teaching .ddqx-demo-copy > .ddqx-demo-eyebrow {
  color:#135967 !important;
}
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 #ddqx-home-free-tools > p a:not(.wp-block-button__link),
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 #ddqx-home-teaching .ddqx-demo-copy > p a:not(.wp-block-button__link),
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 #ddqx-home-recurring > p a:not(.wp-block-button__link) {
  color:#16697A !important;
}


/* DDQX Appearance 0.3.11.2 — Light Mode founder-section contrast repair.
 * The physician educator block is a native Gutenberg group, not an
 * .ddqx-arch-section, and can retain pale presentation text on the new
 * light wallpaper. Only Homepage #49 in resolved Light Mode is affected.
 */
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3 .ddqx-founder-copy,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3 .ddqx-founder-subscribe,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3 .ddqx-arch-newsletter {
  --da-text:#104A56;
  --da-muted:#135967;
  --da-link:#16697A;
  --da-focus:#104A56;
  color:#104A56 !important;
}
/* Opaque parent groups and legacy ID-scoped headings may impose white
 * !important text; assign semantic ink to just the actual visible copy. */
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3 > h2,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3 .ddqx-founder-copy > p,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3 .ddqx-founder-subscribe > p,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3 .ddqx-arch-newsletter > summary,
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3 .ddqx-arch-newsletter > p {
  color:#104A56 !important;
}
/* Teal links on the pale field; exclude the dark CTA button. */
html.ddqx-appearance[data-ddqx-theme="light"] body.page-id-49 main .ddqx-home-v3 .ddqx-founder-review3 .ddqx-arch-newsletter a:not(.wp-block-button__link) {
  color:#16697A !important;
  text-decoration:underline;
  text-underline-offset:.14em;
}
