/* ============================================================
   GHT GLOBAL DESIGN — typography and content components
   Scope: public content; do not override WordPress admin, nav or plugin UI
   ============================================================ */
body {
    font-family: var(--ghtgd-font);
}

body .entry-content, body .page-content, body .ght-home-content, body .wp-block-post-content, body .site-main > article {
    font-family: var(--ghtgd-font);
    color: var(--ghtgd-text);
    font-size: var(--ghtgd-body-size);
    line-height: 1.75;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) :is(h1,h2,h3,h4,h5,h6) {
    color: var(--ghtgd-heading);
    font-family: var(--ghtgd-font);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.035em;
    margin: 1.2em 0 .55em;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) h1 {
    font-size: clamp(2.35rem, calc(4.5vw * var(--ghtgd-scale)), 4.25rem);
    letter-spacing: -.055em;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) h2 {
    font-size: clamp(1.9rem, calc(3.2vw * var(--ghtgd-scale)), 3rem);
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) h3 {
    font-size: clamp(1.45rem, calc(2.25vw * var(--ghtgd-scale)), 2rem);
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) h4 {
    font-size: 1.25rem;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) :is(p,ul,ol) {
    margin-bottom: 1.15em;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) :is(ul,ol) {
    padding-left: 1.4em;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) li {
    margin-bottom: .3em;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) a:not(.wp-block-button__link):not(.button):not(.btn) {
    color: var(--ghtgd-primary);
    text-underline-offset: 3px;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) a:not(.wp-block-button__link):not(.button):not(.btn):hover {
    text-decoration-thickness: 2px;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) :is(.wp-block-button__link, a.button, button.button, input[type="submit"]):not(.is-style-outline .wp-block-button__link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .85em 1.65em;
    background: var(--ghtgd-primary);
    color: var(--ghtgd-button-text);
    border: 1px solid transparent;
    border-radius: var(--ghtgd-radius);
    font: 700 .96rem/1.35 var(--ghtgd-font);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(20, 110, 170, .12);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    cursor: pointer;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) :is(.wp-block-button__link, a.button, button.button, input[type="submit"]):hover {
    filter: brightness(.94);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 110, 170, .17);
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) .is-style-outline .wp-block-button__link {
    border: 1px solid #cbdfea;
    border-radius: var(--ghtgd-radius);
    background: #fff;
    color: var(--ghtgd-heading);
    padding: .85em 1.65em;
    text-decoration: none;
    font-weight: 700;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) :is(blockquote,.wp-block-quote) {
    margin: 1.5em 0;
    padding: 1.25em 1.5em;
    background: var(--ghtgd-pale);
    border-left: 4px solid var(--ghtgd-primary);
    border-radius: 0 16px 16px 0;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) :is(input[type="text"],input[type="email"],input[type="tel"],input[type="url"],select,textarea):not([class*="stripe"]):not([class*="Stripe"]) {
    max-width: 100%;
    border: 1px solid #cbdfea;
    border-radius: 12px;
    padding: .75em 1em;
    font: inherit;
    background: #f7fbff;
    color: var(--ghtgd-heading);
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) :is(input,select,textarea):focus-visible {
    outline: 2px solid var(--ghtgd-primary);
    outline-offset: 2px;
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) .wp-block-group.is-style-ght-card {
    padding: clamp(22px, 3vw, 40px);
    background: #fff;
    border: 1px solid #e3edf5;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
}

:where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) .wp-block-group.is-style-ght-blue {
    padding: clamp(22px, 3vw, 40px);
    background: var(--ghtgd-pale);
    border: 1px solid #d6e9f8;
    border-radius: 24px;
}

@media (max-width: 768px) {
    body .entry-content, body .page-content, body .ght-home-content, body .wp-block-post-content {
        font-size: clamp(16px, var(--ghtgd-body-size), 18px);
    }

    body:not(.home):not(.front-page) .site-main {
        margin-left: 14px;
        margin-right: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.entry-content,.page-content,.ght-home-content,.wp-block-post-content) .wp-block-button__link {
        transition: none;
    }
}

/* ============================================================
   GHT GLOBAL DESIGN — standard interior pages
   The theme uses .site-main directly without .entry-content.
   Exclude custom donation/contact interfaces and the homepage.
   ============================================================ */
body:not(.home) .site-main:not(:has(.ght-donation-form)):not(:has(.ght-contact-form)) {
    font-family: var(--ghtgd-font);
    color: var(--ghtgd-text);
    font-size: var(--ghtgd-body-size);
    line-height: 1.75;
}

body:not(.home) .site-main:not(:has(.ght-donation-form)):not(:has(.ght-contact-form)) :is(h1,h2,h3,h4,h5,h6) {
    color: var(--ghtgd-heading);
    font-family: var(--ghtgd-font);
    font-weight: 750;
    line-height: 1.18;
    letter-spacing: -.035em;
    margin: 1.2em 0 .55em;
}

body:not(.home) .site-main :is(h1) {
    font-size: clamp(2.35rem, calc(4.5vw * var(--ghtgd-scale)), 4.25rem);
}

body:not(.home) .site-main :is(h2) {
    font-size: clamp(1.9rem, calc(3.2vw * var(--ghtgd-scale)), 3rem);
}

body:not(.home) .site-main :is(h3) {
    font-size: clamp(1.45rem, calc(2.25vw * var(--ghtgd-scale)), 2rem);
}

body:not(.home) .site-main :is(h4) {
    font-size: 1.25rem;
}

body:not(.home) .site-main :is(p,ul,ol) {
    margin-bottom: 1.15em;
}

body:not(.home) .site-main :is(ul,ol) {
    padding-left: 1.4em;
}

body:not(.home) .site-main li {
    margin-bottom: .3em;
}

body:not(.home) .site-main a:not(.button):not(.btn):not(.wp-block-button__link) {
    color: var(--ghtgd-primary);
    text-underline-offset: 3px;
}

body:not(.home) .site-main :is(.wp-block-button__link,a.button,button.button):not(.is-style-outline .wp-block-button__link) {
    background: var(--ghtgd-primary);
    color: var(--ghtgd-button-text);
    border-radius: var(--ghtgd-radius);
    font-weight: 700;
    text-decoration: none;
}

/* ============================================================
   V1.0.2 — stronger selectors for actual WordPress page content
   Earlier :where() rules had zero specificity and lost to theme.
   ============================================================ */
body.page:not(.home) .site-main :is(h1,h2,h3,h4,h5,h6),
body.page:not(.home) .entry-content :is(h1,h2,h3,h4,h5,h6),
body.page:not(.home) .page-content :is(h1,h2,h3,h4,h5,h6),
body.page:not(.home) .wp-block-post-content :is(h1,h2,h3,h4,h5,h6) {
    color: var(--ghtgd-heading) !important;
    font-family: var(--ghtgd-font) !important;
    font-weight: 750 !important;
    line-height: 1.18 !important;
    letter-spacing: -.035em !important;
}

body.page:not(.home) :is(.site-main,.entry-content,.page-content,.wp-block-post-content) h1 {
    font-size: clamp(2.35rem, calc(4.5vw * var(--ghtgd-scale)), 4.25rem) !important;
}

body.page:not(.home) :is(.site-main,.entry-content,.page-content,.wp-block-post-content) h2 {
    font-size: clamp(1.9rem, calc(3.2vw * var(--ghtgd-scale)), 3rem) !important;
}

body.page:not(.home) :is(.site-main,.entry-content,.page-content,.wp-block-post-content) h3 {
    font-size: clamp(1.45rem, calc(2.25vw * var(--ghtgd-scale)), 2rem) !important;
}

body.page:not(.home) :is(.site-main,.entry-content,.page-content,.wp-block-post-content) :is(p,li) {
    font-family: var(--ghtgd-font);
    font-size: var(--ghtgd-body-size);
    line-height: 1.8;
    color: var(--ghtgd-text);
}

/* ============================================================ */
/* V1.0.3 - GHT THEME ACTUAL CONTENT WRAPPER (.ght-page-content) */
/* Keep hero, menus, footer, and specialised plugin interfaces intact. */
/* ============================================================ */
body .ght-page-content {
    font-family: var(--ghtgd-font);
    color: var(--ghtgd-text);
    font-size: var(--ghtgd-body-size);
    line-height: 1.8;
}

/*body .ght-page-content :is(h1,h2,h3,h4,h5,h6):not(.ght-hero-title) {*/
body .ght-page-content :is(h1,h2,h3,h4,h5,h6):not(.ght-hero-title):not(.ght-donation-page *):not(.ghtma-wrap *):not(.ghtmod-wrap *)
{
    color: var(--ghtgd-heading);
    font-family: var(--ghtgd-font);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.035em;
    margin: 1.2em 0 .55em;
}

body .ght-page-content h1 {
    font-size: clamp(2.35rem, calc(4.5vw * var(--ghtgd-scale)), 4.25rem);
}

body .ght-page-content h2 {
    font-size: clamp(1.9rem, calc(3.2vw * var(--ghtgd-scale)), 3rem);
}

body .ght-page-content h3 {
    font-size: clamp(1.45rem, calc(2.25vw * var(--ghtgd-scale)), 2rem);
}

body .ght-page-content h4 {
    font-size: 1.25rem;
}

/*body .ght-page-content :is(p,li) {*/
body .ght-page-content :is(p,li):not(.ght-donation-page *):not(.ghtma-wrap *):not(.ghtmod-wrap *)
{
    font-family: var(--ghtgd-font);
    color: var(--ghtgd-text);
    font-size: var(--ghtgd-body-size);
    line-height: 1.8;
}

body .ght-page-content p {
    margin-bottom: 1.15em;
}

body .ght-page-content :is(ul,ol) {
    margin: 0 0 1.15em;
    padding-left: 1.5em;
}

body .ght-page-content li {
    margin-bottom: .35em;
}

body .ght-page-content a:not(.btn):not(.button):not(.wp-block-button__link) {
    color: var(--ghtgd-primary);
    text-underline-offset: 3px;
}

body .ght-page-content :is(.wp-block-button__link,a.button,button.button) {
    border-radius: var(--ghtgd-radius);
    background: var(--ghtgd-primary);
    color: var(--ghtgd-button-text);
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 768px) {
    body .ght-page-content, body .ght-page-content :is(p,li) {
        font-size: clamp(16px, var(--ghtgd-body-size), 18px);
    }
}
