/* DD Toggle Hotfix v1.0.6 - desktop header + light-mode legibility + compact search + sidebar fixes. */
@media (min-width: 1025px) {
  /* Compact theme-toggle pill (overrides 40px min-tap-target rules). */
  #masthead .dd-mode-toggle{position:static !important;left:auto !important;bottom:auto !important;right:auto !important;top:auto !important;transform:none !important;display:inline-flex !important;align-items:center;gap:2px;margin-left:10px;z-index:60;padding:3px !important;flex-shrink:0 !important;}
  #masthead .dd-mode-toggle button{font-size:12px !important;line-height:1.2 !important;font-weight:600 !important;padding:7px 11px !important;min-width:0 !important;min-height:0 !important;border:0 !important;border-radius:999px !important;background:transparent !important;color:#f5edd6 !important;white-space:nowrap !important;display:inline-flex !important;align-items:center !important;gap:6px !important;}
  #masthead .dd-mode-toggle button span{min-width:0 !important;min-height:0 !important;}
  #masthead .dd-mode-toggle button:hover{color:#d4af37 !important;}
  #masthead .dd-mode-toggle button[aria-pressed="true"]{background:#d4af37 !important;color:#0d0b26 !important;}
  /* Search button + toggle pill on the SAME row (kills the tall white band). */
  #masthead .search-toggle-open-container{display:flex !important;align-items:center !important;}
  /* v1.0.6 Change 2 - tighten the MAIN header row a notch further on desktop (mode-agnostic). */
  .site-header .site-main-header-wrap .site-header-row-container-inner{padding-top:12px !important;padding-bottom:12px !important;}
}
/* Light mode: logo text was an unreadable pale-gold gradient on white. */
html[data-dd-mode="light"] .site-branding .site-title{background:none !important;-webkit-text-fill-color:#1a2140 !important;color:#1a2140 !important;}
/* Light mode: gold line-art logo mark was nearly invisible on white - darken it. */
html[data-dd-mode="light"] .site-branding img.custom-logo{filter:brightness(0.25) contrast(1.5);}
/* Light mode: page sidebar wrappers kept the dark-navy background - ivory canvas instead. */
html[data-dd-mode="light"] .content-area-wrap,
html[data-dd-mode="light"] .site-content .content-container{background:#faf8f2 !important;background-color:#faf8f2 !important;}
/* Light mode: Similar Posts carousel slides were forced dark navy - white cards instead. */
html[data-dd-mode="light"] .entry-related-carousel .entry,
html[data-dd-mode="light"] .entry-related-carousel .post-thumbnail{background-color:#ffffff !important;}
/* Light mode: single-post hero full-bleed navy band is a box-shadow, not a background - remove it. */
html[data-dd-mode="light"] .single-post article.single-entry > .entry-content-wrap > .entry-header{box-shadow:none !important;}
/* v1.0.6 Change 1 - Light mode sidebar readability: gold #d4af37 on ivory #faf8f2 was ~2:1.
   Deep bronze #7a5c1e on #faf8f2 is ~5.9:1 (>=4.5:1). Dark mode untouched. */
html[data-dd-mode="light"] .primary-sidebar.widget-area .widget{color:#232a45 !important;}
html[data-dd-mode="light"] .primary-sidebar.widget-area .widget a{color:#7a5c1e !important;}
html[data-dd-mode="light"] .primary-sidebar.widget-area .widget a:hover,
html[data-dd-mode="light"] .primary-sidebar.widget-area .widget a:focus{color:#5f470f !important;}
html[data-dd-mode="light"] .primary-sidebar.widget-area .widget .widget-title,
html[data-dd-mode="light"] .primary-sidebar.widget-area .widget .wp-block-heading{color:#1a2140 !important;}
html[data-dd-mode="light"] .primary-sidebar.widget-area .wpp-views{color:#5b6172 !important;}
/* v1.0.6 - Recent Posts thumbnails: flexbox layout in ALL modes. Fixes titles wrapping
   underneath the floated image and oversized thumbnails blowing out the layout. */
.primary-sidebar .wp-block-latest-posts.wp-block-latest-posts__list{margin-top:0 !important;padding-top:0 !important;}
.primary-sidebar .wp-block-latest-posts.wp-block-latest-posts__list li{display:flex !important;align-items:flex-start !important;gap:12px !important;margin-bottom:14px !important;}
.primary-sidebar .wp-block-latest-posts__featured-image{flex:0 0 75px !important;float:none !important;margin:0 !important;}
.primary-sidebar .wp-block-latest-posts__featured-image img{width:75px !important;height:75px !important;max-width:75px !important;object-fit:cover !important;display:block !important;border-radius:8px;}
.primary-sidebar .wp-block-latest-posts__post-title{flex:1 1 auto !important;min-width:0 !important;}
/* v1.0.6 Change 3 - compact search panel (desktop). Injected by JS as a fixed element
   under the header, right-aligned to the search toggle. */
.dd-compact-search{position:fixed;z-index:99990;top:0;right:12px;width:min(400px,calc(100vw - 24px));padding:14px;border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,0.30);background:#141233;border:1px solid rgba(212,175,55,0.35);}
.dd-compact-search[hidden]{display:none !important;}
.dd-compact-search-form{display:flex;gap:10px;align-items:stretch;margin:0;}
.dd-compact-search-field{flex:1 1 auto;min-width:0;height:46px;padding:0 14px;font-size:16px;border-radius:10px;border:1px solid;background:rgba(255,255,255,0.07) !important;color:#f7f3e3 !important;border-color:rgba(212,175,55,0.55) !important;}
.dd-compact-search-field::placeholder{color:rgba(247,243,227,0.6) !important;opacity:1;}
.dd-compact-search-field:focus{outline:2px solid #d4af37;outline-offset:2px;}
.dd-compact-search-submit{flex:0 0 auto;width:48px;height:46px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid transparent;cursor:pointer;background:#d4af37 !important;border-color:#d4af37 !important;color:#1a1433 !important;}
.dd-compact-search-submit:hover,.dd-compact-search-submit:focus-visible{background:#e8c85a !important;border-color:#e8c85a !important;color:#1a1433 !important;}
.dd-compact-search-submit svg{width:20px;height:20px;display:block;}
html[data-dd-mode="light"] .dd-compact-search{background:#ffffff;border:1px solid #e7e0cf;}
html[data-dd-mode="light"] .dd-compact-search-field{background:#ffffff !important;color:#232a45 !important;border-color:#d8d0b8 !important;}
html[data-dd-mode="light"] .dd-compact-search-field::placeholder{color:#8b93ad !important;}
html[data-dd-mode="light"] .dd-compact-search-submit{background:#1c2340 !important;border-color:#1c2340 !important;color:#f7f1de !important;}
html[data-dd-mode="light"] .dd-compact-search-submit:hover,html[data-dd-mode="light"] .dd-compact-search-submit:focus-visible{background:#d4af37 !important;border-color:#d4af37 !important;color:#1c2340 !important;}
html[data-dd-mode="colorful"] .dd-compact-search{background:#1e1848;border:1px solid #4c3a8c;}
html[data-dd-mode="colorful"] .dd-compact-search-field{background:#1e1848 !important;color:#f4efff !important;border-color:#4c3a8c !important;}
html[data-dd-mode="colorful"] .dd-compact-search-field::placeholder{color:#9d92d8 !important;}
html[data-dd-mode="colorful"] .dd-compact-search-submit{background:linear-gradient(135deg,#2dd4bf 0%,#f472b6 100%) !important;border:0 !important;color:#141033 !important;}