/* PlayDash Homepage Sync v1.5 — isolated to a home page containing [playdash_hero].
   No default GeneratePress global overrides and no dependency on GP Premium. */
body.pdh-home-sync {
  --pdh-home-max:1320px;
  --pdh-bg:#050e0b;
  --pdh-surface:#0b1a14;
  --pdh-surface-2:#10241a;
  --pdh-line:#244631;
  --pdh-lime:#a2ff12;
  --pdh-white:#eff9ef;
  --pdh-copy:#c8d8cb;
  background: radial-gradient(ellipse 1000px 400px at 50% 110px, #102b18 0%, #07150e 55%, transparent 90%),#050e0b!important;
  color:var(--pdh-white)!important;
  overflow-x:clip;
}
/* Ensure the Gutenberg post wrapper does not constrain contained Hero to a tiny column.
   Only the actual front page carrying the shortcode receives these structural resets. */
body.pdh-home-sync #page {
  width:100%!important; max-width:none!important; margin:0 auto!important;
  padding:0!important; background:transparent!important;
}
body.pdh-home-sync #content,
body.pdh-home-sync #primary,
body.pdh-home-sync #main,
body.pdh-home-sync #main > article.page,
body.pdh-home-sync #main > article.page > .inside-article,
body.pdh-home-sync #main > article.page > .inside-article > .entry-content {
  width:100%!important; max-width:none!important; margin:0!important;
  padding:0!important; border:0!important; box-shadow:none!important; background:transparent!important;
}
body.pdh-home-sync #main > article.page > .inside-article > .entry-header { display:none!important; }
/* Bounded hero; no full bleed unless explicitly chosen in the new layout select. */
body.pdh-home-sync #main .entry-content > .pdh-hero--contained,
body.pdh-home-sync .pdh-hero--contained {
  position:relative!important; left:auto!important;
  box-sizing:border-box!important;
  width:calc(100% - 40px)!important;
  max-width:var(--pdh-home-max)!important;
  margin:26px auto 0!important;
  border:1px solid #2c5234!important;
  border-radius:22px!important;
  overflow:hidden!important;
  box-shadow:0 0 0 1px rgba(158,255,18,.035),0 30px 65px rgba(0,0,0,.33)!important;
}
body.pdh-home-sync #main .entry-content > .pdh-hero--bleed { margin-top:0!important; }
/* Match header width and material to Hero. */
body.pdh-home-sync #masthead.site-header {
  background:linear-gradient(180deg,#08150f 0%,#07130e 100%)!important;
  border-bottom:1px solid #1e3b29!important;
  box-shadow:0 10px 40px rgba(0,0,0,.14)!important;
}
body.pdh-home-sync #masthead .inside-header {
  box-sizing:border-box!important; width:100%!important; max-width:var(--pdh-home-max)!important;
  min-height:76px; margin:0 auto!important; padding:12px 20px!important;
}
body.pdh-home-sync #masthead .pd-header-brand + .site-branding { display:none!important; }
body.pdh-home-sync #masthead .pd-header-label { color:var(--pdh-lime)!important; }
body.pdh-home-sync #masthead #site-navigation,
body.pdh-home-sync #masthead #site-navigation .inside-navigation,
body.pdh-home-sync #masthead #site-navigation .main-nav {background:transparent!important;}
body.pdh-home-sync #site-navigation .main-nav a { color:var(--pdh-white)!important; }
body.pdh-home-sync #site-navigation .main-nav a:hover,
body.pdh-home-sync #site-navigation .main-nav li.current-menu-item>a { color:var(--pdh-lime)!important; background:#122918!important; }
body.pdh-home-sync #masthead :is(.menu-toggle,.menu-toggle .gp-icon) {color:var(--pdh-lime)!important;}
/* Content below hero: a single coherent editorial shell. No auto-generated site sections. */
body.pdh-home-sync #main .entry-content > .playdash-home-content,
body.pdh-home-sync #main .entry-content > :not(.pdh-hero):not(.pdh-hero__after-anchor):not(.playdash-home-content) {
  box-sizing:border-box!important;
  width:calc(100% - 40px)!important;
  max-width:var(--pdh-home-max)!important;
  margin-left:auto!important; margin-right:auto!important;
}
body.pdh-home-sync #main .entry-content > .playdash-home-content {
  margin-top:22px!important; margin-bottom:46px!important;
  padding:clamp(30px,4vw,58px) clamp(22px,5vw,72px) 46px!important;
  border:1px solid #1e392a!important; border-radius:19px!important;
  background:linear-gradient(180deg,#0c1d15 0%,#081610 100%)!important;
  box-shadow:0 16px 42px rgba(0,0,0,.13)!important;
}
body.pdh-home-sync #main .entry-content > .playdash-home-content > section {
  padding:0 0 29px!important; margin:0 0 31px!important;
  border-bottom:1px solid #22402d!important;
}
body.pdh-home-sync #main .entry-content > .playdash-home-content > section:last-child {border-bottom:0!important; margin-bottom:0!important; padding-bottom:0!important;}
body.pdh-home-sync #main .entry-content :is(p,li,dd,dt) {color:var(--pdh-copy)!important;}
body.pdh-home-sync #main .entry-content :is(h2,h3,h4,h5,h6) {color:var(--pdh-white)!important; letter-spacing:-.02em;}
body.pdh-home-sync #main .entry-content h2 {font-family:system-ui,-apple-system,'Segoe UI',sans-serif!important; font-size:clamp(24px,2.6vw,34px)!important;}
body.pdh-home-sync #main .entry-content h3 {font-size:clamp(19px,2vw,24px)!important;}
body.pdh-home-sync #main .entry-content a:not(.pdh-cinematic__hotspot):not(.pdh-cinematic__mobile-button):not(.pdh-hero__button):not(.wp-block-button__link) {
  color:var(--pdh-lime)!important; text-underline-offset:3px;
}
body.pdh-home-sync #main .entry-content > .playdash-home-content section > h2:first-child {border-left:3px solid var(--pdh-lime)!important; padding-left:16px!important;}
body.pdh-home-sync #about-playdash {background:linear-gradient(110deg,#14291d,#0d2016)!important; border:1px solid #284934!important; border-radius:12px!important; padding:24px 28px!important;}
body.pdh-home-sync #main .entry-content blockquote {background:#10271a!important; border-color:var(--pdh-lime)!important; color:var(--pdh-copy)!important;}
body.pdh-home-sync #main .entry-content :is(table,.wp-block-table table) th {background:#173a25!important; color:#eff9ef!important;}
body.pdh-home-sync #main .entry-content :is(table,.wp-block-table table) td {color:#d4e5d6!important; border-color:#284934!important;}
body.pdh-home-sync #main .entry-content :is(.wp-block-button__link,button:not(.menu-toggle),input[type=submit]) {
  background:var(--pdh-lime)!important; color:#071109!important; border-radius:999px!important;
}
/* Keep content images inside the themed column. */
body.pdh-home-sync #main .entry-content :is(img,video,iframe) {max-width:100%;}
body.pdh-home-sync #main .entry-content .wp-block-table {max-width:100%; overflow-x:auto;}
/* Footer sync, using actual PlayDash child theme markup. */
body.pdh-home-sync .pd-footer-main {
  background:linear-gradient(180deg,#081911,#040d09)!important;
  color:#d3e3d7!important;
  border-top:1px solid #264b2e!important;
}
body.pdh-home-sync .pd-footer-main .pd-footer-shell {box-sizing:border-box; max-width:var(--pdh-home-max)!important; margin:0 auto!important;}
body.pdh-home-sync .pd-footer-main :is(h2,h3,strong) {color:#f8fff4!important;}
body.pdh-home-sync .pd-footer-main a {color:#d9eddb!important;}
body.pdh-home-sync .pd-footer-main a:hover {color:var(--pdh-lime)!important;}
body.pdh-home-sync :is(.site-footer,.site-info) {background:#030a07!important; color:#bdccbf!important;}
@media (max-width:768px) {
  body.pdh-home-sync #masthead .inside-header {min-height:63px; padding:9px 15px!important;}
  body.pdh-home-sync #main .entry-content > .pdh-hero--contained,
  body.pdh-home-sync .pdh-hero--contained {width:calc(100% - 24px)!important; margin-top:14px!important; border-radius:16px!important;}
  body.pdh-home-sync #main .entry-content > .playdash-home-content,
  body.pdh-home-sync #main .entry-content > :not(.pdh-hero):not(.pdh-hero__after-anchor):not(.playdash-home-content) {width:calc(100% - 24px)!important;}
  body.pdh-home-sync #main .entry-content > .playdash-home-content {margin-top:14px!important; margin-bottom:24px!important; padding:26px 23px 32px!important; border-radius:15px!important;}
  body.pdh-home-sync #about-playdash {padding:21px!important;}
}
@media (max-width:390px) {
  body.pdh-home-sync #masthead .inside-header {padding:9px 12px!important;}
  body.pdh-home-sync #main .entry-content > .pdh-hero--contained,
  body.pdh-home-sync .pdh-hero--contained {width:calc(100% - 18px)!important; border-radius:12px!important;}
  body.pdh-home-sync #main .entry-content > .playdash-home-content {width:calc(100% - 18px)!important; padding:21px 17px 27px!important;}
  body.pdh-home-sync #about-playdash {padding:16px!important;}
}
@media (prefers-reduced-motion:reduce) {body.pdh-home-sync * {scroll-behavior:auto!important;}}

/* v1.5.2 — real GeneratePress mobile header visibility & usable menu.
   Scoped to the homepage; the shortcode does NOT duplicate the site's <header>.
   Works with the actual .inside-header / .pd-header-brand / menu-control markup. */
@media (max-width:1024px) {
  body.pdh-home-sync #masthead.site-header {
    display:block!important;
    visibility:visible!important;
    position:relative!important;
    z-index:80!important;
    height:auto!important;
    opacity:1!important;
  }
  body.pdh-home-sync #masthead > .inside-header {
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    min-height:64px!important;
    height:auto!important;
    overflow:visible!important;
    padding:10px clamp(12px,3.2vw,22px)!important;
  }
  body.pdh-home-sync #masthead .pd-header-brand {
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    position:relative!important;
    flex:0 1 auto!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-width:0!important;
    max-width:calc(100% - 60px)!important;
    gap:8px!important;
    margin:0!important;
    order:0!important;
  }
  body.pdh-home-sync #masthead .pd-header-logo {
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    align-items:center!important;
    max-width:100%!important;
    min-width:0!important;
    line-height:1!important;
    overflow:visible!important;
  }
  body.pdh-home-sync #masthead .pd-header-logo img {
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    width:clamp(120px,31vw,172px)!important;
    max-width:100%!important;
    height:auto!important;
    object-fit:contain!important;
  }
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper {
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    order:1!important;
    position:relative!important;
    z-index:83!important;
    float:none!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    height:auto!important;
    min-width:44px!important;
    margin:0 0 0 auto!important;
    padding:0!important;
    background:transparent!important;
  }
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle {
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    align-items:center!important;
    justify-content:center!important;
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    margin:0!important;
    padding:10px!important;
    border:1px solid #385e40!important;
    border-radius:12px!important;
    color:#a2ff12!important;
    background:linear-gradient(180deg,#112719,#08180f)!important;
    box-shadow:0 0 0 1px rgba(162,255,18,.04)!important;
    cursor:pointer!important;
  }
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle:hover,
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle:focus-visible {
    background:#173b25!important;
    border-color:#a2ff12!important;
    outline:2px solid #a2ff12!important;
    outline-offset:2px!important;
  }
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle .gp-icon {
    display:inline-flex!important;
    width:23px!important;
    height:23px!important;
    align-items:center!important;
    justify-content:center!important;
    color:inherit!important;
  }
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle svg {
    display:block!important;
    width:22px!important;
    height:22px!important;
    fill:currentColor!important;
    max-width:none!important;
  }
  /* The child theme can hide #site-navigation when pd-no-primary-menu is set.
     Expose ONLY its expanded state, never the long WP fallback menu by default. */
  body.pdh-home-sync #masthead #site-navigation {
    display:none!important;
    visibility:hidden!important;
    flex:0 0 100%!important;
    order:5!important;
    float:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    background:#0b2014!important;
    border:1px solid #2d5538!important;
    border-radius:12px!important;
    overflow:visible!important;
  }
  body.pdh-home-sync #masthead #site-navigation.toggled,
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper:has(.menu-toggle[aria-expanded="true"]) ~ #site-navigation {
    display:block!important;
    visibility:visible!important;
  }
  body.pdh-home-sync #masthead #site-navigation .inside-navigation,
  body.pdh-home-sync #masthead #site-navigation .main-nav {
    display:block!important;
    visibility:visible!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
  }
  body.pdh-home-sync #masthead #site-navigation .menu-toggle {display:none!important;}
  body.pdh-home-sync #masthead #site-navigation .main-nav ul {
    display:block!important;
    width:100%!important;
    max-height:70vh!important;
    overflow-y:auto!important;
    list-style:none!important;
    margin:0!important;
    padding:6px!important;
  }
  body.pdh-home-sync #masthead #site-navigation .main-nav li {
    display:block!important;
    float:none!important;
    width:100%!important;
    margin:0!important;
  }
  body.pdh-home-sync #masthead #site-navigation .main-nav li>a {
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:44px!important;
    padding:12px 14px!important;
    line-height:1.5!important;
    font-size:14px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    color:#ebf9e8!important;
    background:transparent!important;
    text-decoration:none!important;
  }
  body.pdh-home-sync #masthead #site-navigation .main-nav li>a:hover,
  body.pdh-home-sync #masthead #site-navigation .main-nav li>a:focus-visible {
    color:#a2ff12!important;
    background:#173321!important;
  }
}
@media (max-width:600px) {
  body.pdh-home-sync #masthead .pd-header-label {display:none!important;}
  body.pdh-home-sync #masthead > .inside-header {min-height:60px!important;}
}
@media (max-width:320px) {
  body.pdh-home-sync #masthead .pd-header-logo img {width:120px!important;}
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle {
    width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
  }
}
/* Ensure the native two-state GeneratePress icon is not rendered as bars + X
   simultaneously when a child theme's icon rules are absent or overridden. */
@media (max-width:1024px) {
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle .gp-icon svg:nth-child(2) {display:none!important;}
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] .gp-icon svg:first-child {display:none!important;}
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] .gp-icon svg:nth-child(2) {display:block!important;}
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle .mobile-menu {display:none!important;}
  body.pdh-home-sync #masthead .mobile-menu-control-wrapper .menu-toggle .screen-reader-text {
    position:absolute!important; width:1px!important; height:1px!important;
    margin:-1px!important; padding:0!important; border:0!important;
    clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
    overflow:hidden!important;white-space:nowrap!important;
  }
}
body.pdh-home-sync .skip-link.screen-reader-text:not(:focus) {
  position:absolute!important;left:-10000px!important;
  width:1px!important;height:1px!important;overflow:hidden!important;
  clip-path:inset(50%)!important;
}
