:root{
  color-scheme:dark;
  --bg:#0b1220;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --border:rgba(148,163,184,.25);
  --card:#0f172a;
  --link:#c7d2fe;
  --link-hover:#ffffff;
}

/* Base */
html,
body{
  background:var(--bg)!important;
  color:var(--text)!important;
  color-scheme:dark!important;
  min-height:100%;
  margin:0;
}

body{
  font-size:1rem;
  line-height:1.5;
  padding-top:100px!important;
}


/* Header */
.main-header-container{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  min-height:80px;
  z-index:9999;
  background:#0b1220;
  border-bottom:1px solid rgba(148,163,184,.25);
}

.hdr-row{
  min-height:80px;
  display:flex;
  align-items:center;
}

.header-brand{
  display:flex!important;
  align-items:center!important;
  gap:.5rem!important;
  text-decoration:none!important;
}

.header-brand img{
  width:32px!important;
  height:32px!important;
  display:block!important;
}

.header-logo-text{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:4px!important;
  font-weight:800!important;
  letter-spacing:-0.02em!important;
  background:none!important;
  -webkit-background-clip:initial!important;
  background-clip:initial!important;
  color:inherit!important;
  -webkit-text-fill-color:initial!important;
}

.logo-dry{
  color:#F8FAFC!important;
  -webkit-text-fill-color:#F8FAFC!important;
}

.logo-phone{
  color:#7C6CFF!important;
  -webkit-text-fill-color:#7C6CFF!important;
}
/* Desktop Menu */
.show-md{
  flex:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
}

.hide-md{
  display:none!important;
}

.primary-menu{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:1.25rem!important;
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}

.primary-menu li{
  margin:0!important;
  padding:0!important;
}

.primary-menu li a{
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
  color:#d7dcf0!important;
  font-weight:600!important;
  font-size:.95rem!important;
  padding:.4rem .6rem!important;
  border-radius:10px!important;
  text-decoration:none!important;
}

.primary-menu li a:hover,
.primary-menu .current-menu-item>a,
.primary-menu .current_page_item>a,
.primary-menu a[aria-current="page"]{
  color:#ffffff!important;
  background:#6d5dfc!important;
}

/* Mobile Header */
#mobile-menu{
  position:absolute!important;
  top:70px!important;
  left:0!important;
  width:100%!important;
  z-index:9998!important;
  background:#0f172a!important;
  border-bottom:1px solid var(--border)!important;
}

#mobile-menu[hidden]{
  display:none!important;
}

#mobile-menu[data-open="true"]{
  display:block!important;
}

#mobile-menu .menu{
  display:flex!important;
  flex-direction:column!important;
  gap:.5rem!important;
  list-style:none!important;
  margin:0!important;
  padding:.75rem 0!important;
}

#mobile-menu .menu a{
  display:block!important;
  color:#f1f5f9!important;
  padding:.65rem 1rem!important;
  border-radius:.5rem!important;
  text-decoration:none!important;
}

#mobile-menu .menu a:hover,
#mobile-menu .menu .current-menu-item>a,
#mobile-menu .menu .current_page_item>a,
#mobile-menu .menu a[aria-current="page"]{
  background:#6d5dfc!important;
  color:#ffffff!important;
}

@media(max-width:767px){
  body{
    padding-top:64px!important;
  }

  .main-header-container{
    height:64px!important;
  }

  .hdr-row{
    height:64px!important;
  }

  .show-md{
    display:none!important;
  }

  .hide-md{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
  }

  #mobile-menu{
    top:64px!important;
  }

  #mobile-menu-button{
    position:relative;
    z-index:70;
  }

  #mobile-menu-button .h-6,
  #mobile-menu-button .w-6{
    width:1.5rem;
    height:1.5rem;
  }

  #mobile-menu-button.is-open #close-icon{
    color:#f87171;
    transform:rotate(90deg);
  }

  #mobile-menu-button.is-open #hamburger-icon{
    transform:rotate(90deg);
    opacity:0;
  }
}

/* Main Layout */
#main-content,
.site-main,
#site-content,
.site-content,
.wp-site-blocks{
  background:var(--bg)!important;
  color:var(--text)!important;
  max-width:none!important;
  margin:0!important;
}

.entry-content{
  max-width:900px;
  margin:0 auto;
  padding:0 16px;
  width:100%;
  box-sizing:border-box;
}

/* Text */
h1,h2,h3,h4,h5,h6,
.entry-title,
.wp-block-post-title,
.page-title{
  color:#ffffff!important;
  font-weight:800!important;
}

p,
li,
summary,
.entry-content,
.content-prose{
  color:var(--muted)!important;
}

a{
  color:var(--link)!important;
}

a:hover{
  color:var(--link-hover)!important;
}

/* Single Posts */
.entry-title,
.wp-block-post-title,
.wp-block-post-title a{
  font-size:1.75rem!important;
  line-height:1.18!important;
  margin:0 0 14px!important;
}

.entry-content h1{
  font-size:2rem;
  line-height:1.2;
  margin:26px 0 14px;
}

.entry-content h2{
  font-size:1.5rem;
  line-height:1.25;
  margin:24px 0 12px;
}

.entry-content h3{
  font-size:1.2rem;
  line-height:1.3;
  margin:18px 0 8px;
}

.entry-content p{
  margin:0 0 14px;
  line-height:1.65;
}

.entry-content ul,
.entry-content ol{
  margin:0 0 16px;
  padding-left:1.25rem;
}

.entry-content ul{list-style:disc;}
.entry-content ol{list-style:decimal;}
.entry-content li{margin:6px 0;}

/* Cards / Tailwind Dark Overrides */
.bg-white,
.bg-slate-50,
.bg-slate-100,
.bg-slate-200,
.bg-slate-700,
.bg-slate-800,
.bg-slate-900,
.bg-slate-950,
.bg-black,
.bg-slate-900\/40,
.bg-slate-900\/50,
.bg-slate-900\/60,
.bg-slate-900\/70,
.bg-slate-800\/40,
.bg-slate-800\/50,
.bg-slate-800\/60,
.bg-slate-800\/70,
.rounded-xl,
.rounded-2xl,
.dps-card,
.blog-card,
.post-card,
.author-box,
.related-guides,
.comparison-card{
  background:var(--card)!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}

.text-white,
.text-slate-50,
.text-slate-100,
.text-slate-200{
  color:#ffffff!important;
}

.text-slate-300,
.text-slate-400,
.text-slate-500,
.text-slate-200\/80,
.text-white\/80,
.text-slate-300\/90{
  color:var(--muted)!important;
}

.border-slate-700,
.border-slate-800,
.border-slate-900,
.border-slate-700\/40,
.border-slate-700\/50,
.border-slate-700\/60,
.border-slate-700\/70,
.border-slate-800\/40,
.border-slate-800\/50,
.border-slate-800\/60,
.border-slate-800\/70,
.border-slate-900\/40,
.border-slate-900\/50,
.border-slate-900\/60,
.border-slate-900\/70{
  border-color:var(--border)!important;
}

/* Forms / Buttons */
button,
input[type="submit"],
a.btn-primary,
.btn-primary,
.button,
.wp-block-button__link,
.amazon-btn{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  text-decoration:none!important;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea{
  background:var(--card)!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}

/* Blog Archive */
.blog-page{
  padding:64px 16px 80px!important;
  background:var(--bg)!important;
  color:var(--text)!important;
}

.blog-page .post-card{
  background:var(--card)!important;
  color:var(--text)!important;
  border:1px solid var(--border)!important;
}

.blog-page .entry-title{
  color:#ffffff!important;
}

.blog-page .entry-desc{
  color:var(--muted)!important;
}

/* About / FAQ */
.about-page,
.faq-page{
  padding:64px 16px 80px!important;
  background:var(--bg)!important;
  color:var(--text)!important;
}

details summary{
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  list-style:none;
}

details summary::-webkit-details-marker{
  display:none;
}

details summary::after{
  content:"⌄";
  font-size:.8rem;
  opacity:.7;
  transition:.2s;
}

details[open] summary::after{
  transform:rotate(180deg);
}

.about-page h1,
.about-page h2,
.about-page h3,
.faq-page h1,
.faq-page h2,
.faq-page h3,
.faq-page strong{
  color:#ffffff!important;
}

.about-page p,
.about-page li,
.faq-page p,
.faq-page li,
.faq-page summary{
  color:var(--muted)!important;
}

.about-page .rounded-2xl,
.about-page .rounded-xl,
.faq-page details,
.faq-page .rounded-2xl,
.faq-page .rounded-xl{
  background:var(--card)!important;
  border-color:var(--border)!important;
}

/* Related Guides */
.related-guides{
  margin-top:40px;
  padding:24px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--card)!important;
}

.related-guides h2{
  margin:0 0 16px;
  font-size:1.4rem;
  color:#ffffff!important;
}

.guide-grid{
  display:grid;
  gap:12px;
}

@media(min-width:768px){
  .guide-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

.guide-card{
  display:block;
  padding:16px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card)!important;
  color:var(--text)!important;
  text-decoration:none!important;
  font-weight:700;
}

/* Author Box */
.author-box{
  margin:40px 0 28px;
  padding:22px 24px;
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--card)!important;
}

.author-box h3{
  margin:0 0 10px;
  font-size:1.2rem;
  font-weight:800;
  color:#ffffff!important;
}

.author-box p{
  margin:0;
  color:var(--muted)!important;
  line-height:1.7;
}

/* Footer */
.site-footer,
#site-footer{
  background:#0b1220!important;
  color:var(--text)!important;
  width:100%;
  box-sizing:border-box;
}

.site-footer .border-t{
  border-color:var(--border)!important;
}

.site-footer .brand-title,
.site-footer .footer-heading,
.site-footer .footer-link,
.site-footer .footer-social-link{
  color:var(--text)!important;
}

.site-footer .footer-text,
.site-footer .footer-msg{
  color:var(--muted)!important;
}

.footer-input{
  background:var(--card)!important;
  color:var(--text)!important;
  border:1px solid var(--border)!important;
}

.footer-btn{
  background:#4f46e5!important;
  color:#fff!important;
}

/* Mobile Typography */
@media(max-width:768px){

  /* Single post title */
   .entry-title,
  .wp-block-post-title,
  .wp-block-post-title a{
    font-size:1.35rem!important;
    line-height:1.2 !important;
    letter-spacing:-0.01em;
  }

  /* Blog cards */
  body.blog .blog-card h2,
  body.blog .blog-card h3,
  body.archive .blog-card h2,
  body.archive .blog-card h3,
  .blog-page .post-card h2{
    font-size:1.55rem!important;
    line-height:1.18!important;
  }

  .entry-meta{
    font-size:.82rem!important;
    line-height:1.35!important;
  }
}

  .blog-card p,
  .blog-page .entry-desc{
    font-size:.95rem!important;
    line-height:1.5!important;
  }
}

  .entry-content h1{font-size:1.6rem;}
  .entry-content h2{font-size:1.3rem;}
  .entry-content h3{font-size:1.1rem;}

.about-page,
.faq-page,
.blog-page{
  padding-top:90px!important;
}
}

/* FINAL HEADER FIX */

.main-header-container{
  position:fixed!important;
  top:0!important;
  left:0!important;
  width:100%!important;
  min-height:80px!important;
  z-index:99999!important;
}

.hdr-row{
  min-height:80px!important;
}


.blog-page,
.about-page,
.faq-page{
  padding-top:40px!important;
}

@media(max-width:768px){

  .main-header-container{
    min-height:64px!important;
  }

  .hdr-row{
    min-height:64px!important;
  }

  body{
    padding-top:80px!important;
  }

  .blog-page,
  .about-page,
  .faq-page{
    padding-top:24px!important;
  }
}


.site-logo-img{
  display:block!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
}

@media(max-width:768px){
  .site-logo-img{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
  }
}

@media (max-width:768px){

  .header-logo img,
  .custom-logo,
  .custom-logo-link img,
  .site-logo img{
    display:block !important;
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    object-fit:contain !important;
  }

  .header-logo{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
  }
}

@media(max-width:768px){

  .entry-meta{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:4px !important;
    align-items:center;
  }
}

.footer-brand-text{
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  font-weight:800;
  letter-spacing:-0.02em;
}

.footer-brand-dry{
  color:#ffffff;
}

.footer-brand-phone{
  color:#7c5cff;
}

/* Header brand size */
.header-logo-text{
  font-size:16px !important;
  font-weight:800 !important;
  letter-spacing:-0.02em;
}

.site-logo-img{
  width:34px !important;
  height:34px !important;
}

/* Mobile header brand */
@media (max-width:768px){
  .header-logo-text{
    font-size:19px !important;
  }

  .site-logo-img{
    width:40px !important;
    height:40px !important;
  }
}

/* Footer brand size - keep strong but not oversized */
.footer-brand-text,
.brand-title{
  font-size:20px !important;
  font-weight:800 !important;
  letter-spacing:-0.02em;
}

@media (max-width:768px){
  .footer-brand-text,
  .brand-title{
    font-size:20px !important;
  }
}