/* A189 / Build 5512: fix dark-on-dark hero text and compact real mobile layouts.
   Constrained to the default PumkinCraft skin; no global h1/h2 or card overrides. */
@layer velora-flat {
  /* A188 applied --ui-text to all light-theme headings including a dark hero.
     The color belongs to the local surface, not the global page theme. */
  html[data-theme] body.public-body.site-theme-pumkincraft .vhelp-hero :is(h1,h2) {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    background-image:none!important;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft .vhelp-hero .vhelp-hero-main p:not(.vhelp-eyebrow),
  html[data-theme] body.public-body.site-theme-pumkincraft .vhelp-hero .vhelp-hero-top {
    color:#e1e7ee!important;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft .vhelp-hero :is(.vhelp-backhome,.vhelp-hero-support) {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft .vhelp-hero :is(a,button,input):focus-visible {
    outline:3px solid #fff!important;
    outline-offset:3px!important;
    box-shadow:0 0 0 5px #111821!important;
  }
  /* Credit ranking hero is navy even when the site's page palette is light. */
  html[data-theme] body.public-body.site-theme-pumkincraft.page-rankings .rank-stage4-hero {
    background:linear-gradient(135deg,#1c293d,#101a2e)!important;
    border-color:#45536b!important;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft.page-rankings .rank-stage4-hero .rank-stage4-hero-copy :is(h1,h2) {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    background-image:none!important;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft.page-rankings .rank-stage4-hero .rank-stage4-hero-copy :is(p,small,span) {
    color:#e1e7ee!important;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft.page-rankings .rank-stage4-hero a {
    color:#fff!important;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft.page-rankings .rank-stage4-hero :is(a,button):focus-visible {
    outline:3px solid #fff!important;
    outline-offset:3px!important;
    box-shadow:0 0 0 5px #101a2e!important;
  }
  /* Avoid painting the light season pill dark; it is intentionally a nested card. */
  html[data-theme="dark"] body.public-body.site-theme-pumkincraft.page-rankings .rank-stage4-hero .rank-stage4-season {
    background:#26364f!important;
    border-color:#64748b!important;
    color:#fff!important;
  }
  html[data-theme="dark"] body.public-body.site-theme-pumkincraft.page-rankings .rank-stage4-hero .rank-stage4-season :is(small,span,strong) {
    color:#eef2f7!important;
  }
  /* Existing action remains functional; a jump link only appears if a catalog exists. */
  html[data-theme] body.public-body.site-theme-pumkincraft.page-store #store-catalog-a189 {
    scroll-margin-top:86px;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-mobile-jump {
    display:none;
  }
  @media(max-width:600px){
    /* On phones the floating Discord mascot covered the hero copy. The footer
       contains the same Discord destination; suppress only the floating duplicate. */
    html[data-theme] body.public-body.site-theme-pumkincraft .velora-discord-dock {display:none!important;}
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .pumpkin-minecraft-hero {
      min-height:0!important;
      height:auto!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .pumpkin-minecraft-hero .home-stage2-hero-copy {
      width:100%!important;
      padding:17px 16px 30px!important;
      background:linear-gradient(90deg,rgba(6,12,21,.88),rgba(6,12,21,.73))!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .pumpkin-minecraft-hero h1 {
      max-width:none!important;
      margin:7px 0 9px!important;
      font-size:clamp(27px,7.7vw,34px)!important;
      line-height:1.1!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .home-stage2-hero-copy>p {
      margin-bottom:9px!important;
      line-height:1.45!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .home-stage2-hero-actions {
      display:grid!important;
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      gap:7px!important;
      margin-top:12px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .home-stage2-hero-actions>* {
      min-height:46px!important;
      padding:9px 7px!important;
      font-size:12px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .home-stage2-server-ip {
      margin-top:8px!important;
      min-height:44px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .pumpkin-hero-characters {opacity:.32!important;pointer-events:none!important;}
    /* Reserve a clear zone above the fixed bottom navigation, including notch. */
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .home-stage8-shell {
      padding-bottom:calc(var(--mobile-dock-h,70px) + 34px + env(safe-area-inset-bottom))!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-mobile-jump {
      display:flex;
      justify-content:space-between;
      align-items:center;
      min-height:42px;
      padding:9px 13px;
      margin-block:7px!important;
      border:1px solid var(--ui-line,#d0d7e0);
      border-radius:11px;
      color:var(--ui-text,#172033);
      background:var(--ui-surface,#fff);
      font-weight:750;
      font-size:13px;
      text-decoration:none;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-mobile-jump:focus-visible {
      outline:3px solid var(--ui-accent,#f97316);
      outline-offset:2px;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-hero {
      min-height:0!important;
      padding:14px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-hero-copy {
      padding:0!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-hero-stats {
      display:none!important;
    }
    /* Server-selection cards were full-height posters, pushing the catalog down. */
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-server-rail {
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      gap:8px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-server-card {
      min-height:0!important;
      padding:9px!important;
      border-radius:13px!important;
      min-width:0!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-server-media {
      height:76px!important;
      min-height:0!important;
      overflow:hidden!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-server-copy {
      min-width:0!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-server-copy :is(b,em) {
      font-size:clamp(11px,3.2vw,13px)!important;
      overflow-wrap:anywhere;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-category-rail {
      display:grid!important;
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      gap:8px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-category {
      display:grid!important;
      grid-template-columns:minmax(0,1fr)!important;
      gap:7px!important;
      min-width:0!important;
      padding:10px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-category-media {
      width:100%!important;
      height:76px!important;
      min-height:0!important;
      aspect-ratio:auto!important;
      overflow:hidden!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-category-copy {min-width:0!important;}
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-category-copy b {
      overflow-wrap:anywhere;
      font-size:13px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-category-copy :is(small,em,strong) {
      font-size:10px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-section-head {
      padding:12px!important;
    }
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-section-head :is(h1,h2) {
      font-size:clamp(19px,5.7vw,24px)!important;
    }
  }
  @media(max-width:390px){
    html[data-theme] body.public-body.site-theme-pumkincraft.page-home .home-stage2-hero-actions {
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
  }
  @media(prefers-reduced-motion:reduce){
    html[data-theme] body.public-body.site-theme-pumkincraft.page-store .pc-store-mobile-jump {transition:none!important;}
  }
}
