/*
 * DPD Classic Blue Glass v1.2.1 — ICE BLUE LIGHT VARIANT
 * All selectors are namespaced to this child theme's body or its own switch.
 * No menu selectors or plugin styles are changed. Existing artwork is never filtered.
 * Dark (no html data attribute / mode=dark) remains byte-for-byte the v1.1 skin.
 */

/* The selector is on <html> so WordPress Live Preview works before and after
   AJAX-loaded Gutenberg content. A saved light choice is seeded in wp_head. */
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) {
  --dpd-bg:#d9efff; --dpd-base:#d0eafe; --dpd-mid:#b6ddf5;
  --dpd-text:#143b5a; --dpd-muted:#345b77; --dpd-white:#f9fdff;
  --dpd-cyan:#126996; --dpd-bright:#176eae; --dpd-highlight:#0b5481;
  --dpd-outline:rgba(51,121,163,.25);
  --dpd-panel:rgba(245,251,255,.76); --dpd-panel-solid:#edf8ff;
  --dpd-shadow:0 24px 58px rgba(32,94,136,.16),0 4px 15px rgba(28,99,140,.10);
  color:var(--dpd-text);
  background:
     radial-gradient(ellipse 61vw 43vw at 81% 7%,rgba(248,254,255,.93),transparent 82%),
     radial-gradient(ellipse 59vw 43vw at 6% 34%,rgba(118,199,245,.47),transparent 81%),
     radial-gradient(ellipse 55vw 35vw at 82% 78%,rgba(135,191,230,.42),transparent 77%),
     linear-gradient(155deg,#effaff 1%,#cfeafd 55%,#dfF4ff 100%);
  background-attachment:fixed;
}

/* Keep the polished, layered glass, but translate the material into ice and milk glass. */
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) :is(
  .dpd-cbg-glass,
  .entry-content,
  .ct-comments,
  .ct-posts-block > article,
  .entries > article,
  .ct-related-posts,
  .ct-sidebar > div,
  .ct-share-box
) {
  background:linear-gradient(137deg,rgba(255,255,255,.68) 0%,rgba(231,247,255,.31) 54%,rgba(187,224,244,.24) 100%),var(--dpd-panel);
  border-color:rgba(63,129,169,.25);
  border-top-color:rgba(255,255,255,.96);
  box-shadow:var(--dpd-shadow),inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(73,131,171,.10);
}
/* Keep previously approved full-bleed retro pages completely out of the generic glass treatment. */
/* Independently authored pages are excluded from the Ice Blue appearance: no forced transparent backgrounds. */
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-prose.dpd-cbg-glass::before {
  background:linear-gradient(180deg,rgba(33,140,193,.8),rgba(52,158,204,.26) 55%,transparent 100%);
  box-shadow:0 0 20px rgba(31,148,195,.12);
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-prose.dpd-cbg-glass::after {
  background:linear-gradient(90deg,transparent,rgba(255,255,255,1) 55%,transparent);opacity:.90;
}

/* Editorial headings and chapter labels: midnight ink, not washed-out light cyan. */
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) :is(.dpd-cbg-hero-label h1,.dpd-cbg-section-intro h2,.dpd-cbg-prose h1,.dpd-cbg-prose h2,.dpd-cbg-prose h3,.dpd-cbg-prose h4) {
  color:#103a5c!important;text-shadow:none;
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-hero-label h1 span {color:#0876b0!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-prose :is(h2,h3)::after {
  background:linear-gradient(90deg,#258fc4,rgba(79,165,215,.48),transparent);box-shadow:none;
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg :is(.dpd-cbg-section-head,.dpd-cbg-eyebrow,.dpd-cbg-discover-number) {
  color:#125d87!important;
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-section-head::before {
  border-color:#2f91bf;box-shadow:0 0 9px rgba(44,143,198,.16);
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-line {
  background:linear-gradient(90deg,rgba(35,130,191,.03),rgba(33,122,179,.55));
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-prose .wp-block-heading,
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-prose :is(h1,h2,h3,h4) {color:#123c5d!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-prose :is(p,ul,ol,li,blockquote,figcaption,em) {color:#274d68!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-prose :is(strong,b) {color:#0b3452!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-opening > p:first-of-type,
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-prose p[style*="font-size:36px"] {color:#0b618f!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-opening > p:nth-of-type(2),
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-prose p[style*="font-size:29px"] {color:#2a526e!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-prose :is(.has-text-color,.has-palette-color-2-color,.has-palette-color-3-color,.has-palette-color-5-color) {color:#274d68!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-prose :is(blockquote,.wp-block-quote) {
  border-left-color:#2594c9;background:rgba(72,163,213,.10);color:#244f6e;
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-prose li::marker {color:#207eae}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-prose a:not(.wp-block-button__link) {
  color:#075e93;text-decoration-color:rgba(22,126,185,.55);
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-prose a:not(.wp-block-button__link):hover {color:#003f64}

/* Intro, cards and tiny editorial hierarchy. The original art itself is unchanged. */
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-hero-label > p:not(.dpd-cbg-eyebrow) {color:#2a5473!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-section-intro p {color:#3b617c}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-discover-card {color:#153f62!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-discover-card strong,
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-pillar-caption strong {color:#143b5d!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-discover-description,
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-pillar-caption span {color:#345b78!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) :is(.dpd-cbg-discover-arrow,.dpd-cbg-pillar-caption b) {color:#197eaf}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-discover-card:hover {border-color:#63add0}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-hero-image {
  border-color:rgba(255,255,255,.87);box-shadow:0 29px 66px rgba(25,91,135,.25);
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-banner-link {
  background:#d5f0ff;border-color:rgba(255,255,255,.9);box-shadow:0 19px 48px rgba(40,116,159,.20);
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-banner-link:hover {box-shadow:0 26px 57px rgba(35,110,154,.25)}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-pillar-art {background:linear-gradient(155deg,#d8f1ff,#b7dbf2)}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-pillar:hover {border-color:#6eb7da;box-shadow:0 24px 53px rgba(31,102,147,.17)}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-media-missing {color:#315e7c;border-color:rgba(34,122,173,.35)}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-home-footer {
  border-top-color:rgba(43,125,170,.31);color:#416a86;
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg-home-footer a {color:#145e8e}

/* Pressable blue enamel works in both versions without trying to color the top menu. */
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg :is(.dpd-cbg-button,.dpd-cbg-prose .wp-block-button__link) {
  background:linear-gradient(160deg,#1b80bd,#075384);
  border-color:rgba(8,98,154,.36);color:#fff!important;
  box-shadow:inset 0 1px rgba(238,249,255,.5),0 8px 22px rgba(27,96,145,.22);
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) .dpd-cbg .dpd-cbg-button-quiet {
  background:rgba(232,248,255,.73);color:#145a87!important;
  border-color:rgba(38,132,178,.40);
}

/* Interior Gutenberg content, archives, sidebars, pagination, inputs and footer. */
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home):not(.dpd-classic-glass-artwork-protected) :is(.entry-title,.page-title,.hero-section h1,.ct-page-title) {color:#153d5c!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home):not(.dpd-classic-glass-artwork-protected) .entry-content {color:#254f6c!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home):not(.dpd-classic-glass-artwork-protected) .entry-content :is(h1,h2,h3,h4) {color:#143b59!important;text-shadow:none!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home):not(.dpd-classic-glass-artwork-protected) .entry-content :is(p,ul,ol,li,blockquote,figcaption,strong,em) {color:#274e68!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home):not(.dpd-classic-glass-artwork-protected) .entry-content h2::after {background:linear-gradient(90deg,#2489b8,rgba(52,154,205,0))}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home):not(.dpd-classic-glass-artwork-protected) .entry-content a:not(.wp-block-button__link):not(.wp-block-file__button) {color:#065f97;text-decoration-color:#5c9dbf}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home):not(.dpd-classic-glass-artwork-protected) :is(.entry-meta,.entry-summary,.ct-breadcrumbs,.ct-posts-block,.entry-card) {color:#376180!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home):not(.dpd-classic-glass-artwork-protected) :is(.entries > article,.ct-posts-block > article) :is(h2,h3,a) {color:#164d73!important}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home) :is(.ct-sidebar,.ct-comments,.ct-related-posts) {color:#285374}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home) .ct-pagination a {color:#0d6093;border-color:#8cbedb}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home) .ct-pagination a:hover {background:rgba(133,207,245,.25)}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home):not(.dpd-classic-glass-artwork-protected) .entry-content :is(.wp-block-button__link,button[type=submit],input[type=submit]),
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) #main :is(.wp-block-file__button,.search-submit,button[type=submit],input[type=submit]) {
  background:linear-gradient(160deg,#1f83bb,#075884);border-color:#65a6cb;color:#fff;
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) #main :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
  color:#173951;background:rgba(251,254,255,.96);border-color:#81b6d0;
}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home) .entry-content :is(td,th) {border-color:rgba(72,129,165,.33)}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home) .entry-content th {background:rgba(106,187,234,.14)}
html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected):not(.home) :is(.ct-footer,.site-footer) {
  background:#d9effb;color:#335d7a;border-top-color:rgba(64,133,166,.24);
}

/* UI chooser is built by this theme in wp_footer, NOT part of the top navigation.
   Both variants use the same compact 2-button control. */
.dpd-cbg-mode-switch {
  position:fixed;left:clamp(10px,2vw,26px);bottom:clamp(10px,2vw,26px);
  z-index:9500;display:flex;align-items:center;gap:4px;
  padding:6px;border-radius:999px;
  background:rgba(10,39,72,.92);color:#c9edff;
  border:1px solid rgba(188,230,255,.48);
  box-shadow:0 12px 37px rgba(0,15,36,.36),inset 0 1px rgba(255,255,255,.19);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  font-family:'Segoe UI',system-ui,sans-serif;font-size:12px;
}
.dpd-cbg-mode-title {padding:0 10px 0 11px;letter-spacing:.13em;font-size:9px;font-weight:850;white-space:nowrap}
.dpd-cbg-mode-switch button {
  min-height:38px;min-width:64px;padding:9px 13px;
  border:1px solid transparent;border-radius:999px;background:transparent;
  font:800 12px/1.1 'Segoe UI',system-ui,sans-serif;letter-spacing:.015em;
  color:#e0f4ff;cursor:pointer;transition:background .16s ease,box-shadow .16s ease,color .16s ease;
}
.dpd-cbg-mode-switch button:hover {background:rgba(168,214,253,.19)}
.dpd-cbg-mode-switch button[aria-pressed="true"] {
  color:#fff;background:linear-gradient(155deg,#176da7,#084879);
  box-shadow:inset 0 1px rgba(255,255,255,.3),0 3px 12px rgba(0,17,44,.18);
  border-color:rgba(172,230,255,.38);
}
.dpd-cbg-mode-switch button:focus-visible {outline:3px solid #70cfff;outline-offset:2px}
html[data-dpd-glass-mode="light"] .dpd-cbg-mode-switch {
  background:rgba(244,252,255,.94);color:#285c7d;border-color:rgba(72,154,191,.42);
  box-shadow:0 14px 31px rgba(30,108,151,.18),inset 0 1px #fff;
}
html[data-dpd-glass-mode="light"] .dpd-cbg-mode-switch button {color:#245e83}
html[data-dpd-glass-mode="light"] .dpd-cbg-mode-switch button:hover {background:rgba(114,186,226,.16)}
html[data-dpd-glass-mode="light"] .dpd-cbg-mode-switch button[aria-pressed="true"] {color:#fff;background:linear-gradient(160deg,#2790c8,#12608d);border-color:rgba(16,109,162,.42)}
@media(max-width:540px){
 .dpd-cbg-mode-title {display:none}
 .dpd-cbg-mode-switch {padding:4px;bottom:10px;left:10px;max-width:calc(100vw - 20px)}
 .dpd-cbg-mode-switch button {min-height:38px;min-width:62px;padding:8px 11px}
}
@media(prefers-reduced-transparency:reduce){
 html[data-dpd-glass-mode="light"] body.dpd-classic-glass-active:not(.dpd-classic-glass-artwork-protected) :is(.dpd-cbg-glass,.entry-content,.entries > article,.ct-sidebar > div) {
  background:#edf9ff;backdrop-filter:none;-webkit-backdrop-filter:none;
 }
 .dpd-cbg-mode-switch {backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){
 .dpd-cbg-mode-switch button {transition:none!important}
}
