/* A188 / Build 5511 — shared public heading rhythm + default theme card surfaces.
   No universal element selectors: marketing hero, custom themes and CMS/Jodit HTML
   retain their own typography and backgrounds. No change to theme localStorage. */
@layer velora-flat {
  /* Dark flat layer previously reduced H1 to 1.25rem and support H1/H2 to equal size. */
  html[data-theme] body.public-body.site-theme-pumkincraft {
    --v-public-h1:clamp(1.75rem,1.5rem + .75vw,2.125rem);
    --v-public-h2:clamp(1.25rem,1.15rem + .45vw,1.5rem);
    --v-public-h3:1.075rem;
    --v-public-card-line:color-mix(in srgb,var(--ui-line,#cbd5e1) 90%,var(--ui-text,#172033) 10%);
  }
  html[data-theme="dark"] body.public-body.site-theme-pumkincraft {
    --v-public-card-line:rgba(148,163,184,.19);
  }
  html[data-theme] body.public-body.site-theme-pumkincraft :is(
    .minecraft-page-head,.page-heading,.support-center-hero,.vhelp-hero,
    .news-journal-header,.account-hero,.pc-store-section-head
  ) h1 {
    font-size:var(--v-public-h1)!important;
    font-weight:720!important;
    line-height:1.2!important;
    letter-spacing:-.025em!important;
    overflow-wrap:break-word;
    word-break:normal;
    background-image:none!important;
    -webkit-text-fill-color:currentColor!important;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft :is(
    .section-head,.home-stage3-section-head,.home-stage4-section-head,.vhelp-section-heading,
    .account-page-head,.support-center-hero,.minecraft-page-head,.pc-store-section-head
  ) h2 {
    font-size:var(--v-public-h2)!important;
    font-weight:650!important;
    line-height:1.32!important;
    letter-spacing:-.016em!important;
    overflow-wrap:break-word;
    word-break:normal;
    background-image:none!important;
    -webkit-text-fill-color:currentColor!important;
  }
  html[data-theme] body.public-body.site-theme-pumkincraft :is(.card-head,.panel-head,.account-card,.support-history-card,.vh-help-category) h3 {
    font-size:var(--v-public-h3)!important;
    font-weight:630!important;
    line-height:1.4!important;
    overflow-wrap:break-word;
    word-break:normal;
  }
  /* Reconcile light-card backgrounds; keep all built-in images and product media. */
  html[data-theme="light"] body.public-body.site-theme-pumkincraft :is(
    .account-card,.support-create-card,.support-history-card,.support-thread-card,
    .news-card-v4651,.vote-card,.staff-card,.vh-help-category,.empty-state-card,
    .pc-product-card,.product-card-v2,.pc-store-server-card,
    .product-buy-card,.checkout-summary,.product-info
  ) {
    background-color:var(--ui-surface,var(--pumpkin-surface,#fff))!important;
    border-color:var(--v-public-card-line)!important;
    color:var(--ui-text,var(--text,#172033))!important;
  }
  html[data-theme="dark"] body.public-body.site-theme-pumkincraft :is(
    .account-card,.support-create-card,.support-history-card,.support-thread-card,
    .news-card-v4651,.vote-card,.staff-card,.vh-help-category,.empty-state-card,
    .pc-product-card,.product-card-v2,.pc-store-server-card,
    .product-buy-card,.checkout-summary,.product-info
  ) {
    background-color:var(--bg-card,#121215)!important;
    border-color:var(--v-public-card-line)!important;
    color:var(--text,#fff)!important;
  }
  /* A clearly inset informational panel should not disappear into its parent card. */
  html[data-theme="light"] body.public-body.site-theme-pumkincraft .account-card > .empty-state-card,
  html[data-theme="light"] body.public-body.site-theme-pumkincraft .support-history-card > .empty-state-card {
    background-color:var(--ui-surface-2,var(--ui-soft,#f1f5f9))!important;
  }
  html[data-theme="dark"] body.public-body.site-theme-pumkincraft .account-card > .empty-state-card,
  html[data-theme="dark"] body.public-body.site-theme-pumkincraft .support-history-card > .empty-state-card {
    background-color:var(--bg-inset,#0c0c0d)!important;
  }
  html[data-theme="light"] body.public-body.site-theme-pumkincraft :is(.minecraft-page-head,.page-heading,.section-head,.account-page-head,.vhelp-section-heading,.support-center-hero,.vhelp-hero,.pc-store-section-head) :is(h1,h2) {
    color:var(--ui-text,var(--text,#172033))!important;
  }
  html[data-theme="dark"] body.public-body.site-theme-pumkincraft :is(.minecraft-page-head,.page-heading,.section-head,.account-page-head,.vhelp-section-heading,.support-center-hero,.vhelp-hero,.pc-store-section-head) :is(h1,h2) {
    color:var(--text,#fff)!important;
  }
  /* Visual rhythm at compact widths, without horizontal overflow or new breakpoints. */
  @media(max-width:600px){
    html[data-theme] body.public-body.site-theme-pumkincraft {
      --v-public-h1:1.65rem;
      --v-public-h2:1.25rem;
    }
  }
}
