/* =========================================================================
   Good Hope Lutheran Church — bespoke theme
   Palette extracted from the live goodhopelutheran.org (Neve customizer):
     clay #6d3f37 · olive #6d7b37 · cream #eeeccf/#eceadd · indigo #323b73
     text #2c2c2c · taupe overlay #867a6a · white logo
   Type: Aboreto (display headings) + Jost (body/UI)
   Loaded AFTER framework app.css (unlayered ⇒ always wins; no !important needed)
   ========================================================================= */

:root {
    /* Override framework tokens so fallback sections use our palette */
    --color-primary:   #6d3f37;   /* clay */
    --color-accent:    #6d7b37;   /* olive */
    --color-secondary: #323b73;   /* indigo */
    --color-dark:      #2c2c2c;
    --color-dark-grey: #323b73;

    /* Good Hope tokens */
    --gh-clay:       #6d3f37;
    --gh-clay-dark:  #532e28;
    --gh-olive:      #6d7b37;
    --gh-olive-dark: #555f2b;
    --gh-cream:      #eeeccf;
    --gh-cream-2:    #f6f4e4;
    --gh-indigo:     #323b73;
    --gh-indigo-dark:#272e5b;
    --gh-lavender:   #78799d;   /* header bar (matches old Neve nv-light-bg) */
    --gh-taupe:      #867a6a;
    --gh-text:       #2c2c2c;
    --gh-muted:      #6b6b6b;
    --gh-white:      #ffffff;

    --font-heading: 'Aboreto', 'Times New Roman', serif;
    --font-body: 'Jost', system-ui, -apple-system, sans-serif;

    --gh-radius: 12px;
    --gh-shadow: 0 6px 24px rgba(44, 44, 44, 0.10);
    --gh-maxw: 1180px;
    --gh-header-h: 78px;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
    font-family: var(--font-body);
    color: var(--gh-text);
    background: var(--gh-cream);
    margin: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .gh-display {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: var(--gh-clay);
}
a { color: var(--gh-clay); }
a:hover { color: var(--gh-clay-dark); }

.gh-container { max-width: var(--gh-maxw); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.gh-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
    padding: 11px 24px; border-radius: 40px;
    text-decoration: none; cursor: pointer; border: 2px solid transparent;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.gh-btn:hover { transform: translateY(-1px); }
.gh-btn-primary { background: var(--gh-clay); color: #fff; }
.gh-btn-primary:hover { background: var(--gh-clay-dark); color: #fff; }
.gh-btn-secondary { background: transparent; color: var(--gh-clay); border-color: var(--gh-clay); }
.gh-btn-secondary:hover { background: var(--gh-clay); color: #fff; }
.gh-btn-olive { background: var(--gh-olive); color: #fff; }
.gh-btn-olive:hover { background: var(--gh-olive-dark); color: #fff; }
.gh-btn-donate { background: var(--gh-olive); color: #fff; border-color: var(--gh-olive); }
.gh-btn-donate:hover { background: #fff; color: var(--gh-olive-dark); border-color: #fff; }
.gh-btn-light { background: #fff; color: var(--gh-clay); }
.gh-btn-light:hover { background: var(--gh-cream-2); color: var(--gh-clay-dark); }

/* ── Flash notice (past-event redirect, etc.) ─────────────────────────── */
.gh-flash-notice { background: var(--gh-olive); color: #fff; font-size: 0.95rem; }
.gh-flash-notice .gh-container { padding: 12px 24px; text-align: center; }

/* ── Notification bar ─────────────────────────────────────────────────── */
.gh-notification-bar { background: var(--gh-indigo-dark); color: #fff; font-size: 0.88rem; }
.gh-notification-bar p { margin: 0; padding: 9px 0; text-align: center; }
.gh-notification-bar a { color: #fff; text-decoration: underline; }
.gh-badge { background: var(--gh-olive); color: #fff; padding: 2px 9px; border-radius: 20px; font-size: 0.74rem; font-weight: 600; }

/* ── Header (clay bar, white logo) ────────────────────────────────────── */
.gh-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--gh-lavender);
    box-shadow: 0 2px 10px rgba(50, 59, 115, 0.18);
}
.gh-header-content {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; min-height: var(--gh-header-h);
}
.gh-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.gh-logo-img { height: 64px; width: auto; display: block; }
.gh-logo-text { font-family: var(--font-heading); color: #fff; font-size: 1.25rem; letter-spacing: 0.04em; }

/* Desktop nav */
.gh-nav { margin-left: auto; }
.gh-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gh-nav-item { position: relative; }
.gh-nav-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: #fff; text-decoration: none;
    padding: 8px 13px; border-radius: 6px;
    transition: color .15s ease, background .15s ease;
}
.gh-nav-link:hover, .gh-nav-item:hover > .gh-nav-link,
.gh-nav-item:focus-within > .gh-nav-link { color: #fff; background: rgba(255,255,255,0.10); }
.gh-caret { transition: transform .2s ease; opacity: 0.85; }
.gh-nav-item:hover .gh-caret, .gh-nav-item:focus-within .gh-caret { transform: rotate(180deg); }

/* Dropdowns */
.gh-dropdown {
    position: absolute; top: calc(100% + 2px); left: 0;
    min-width: 234px; background: #fff; border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.18);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1001; border-top: 3px solid var(--gh-olive);
}
.gh-nav-item:hover > .gh-dropdown, .gh-nav-item:focus-within > .gh-dropdown,
.gh-nav-item.is-open > .gh-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.gh-dropdown ul { list-style: none; margin: 0; padding: 0; }
.gh-dropdown--wide ul { columns: 2; column-gap: 8px; min-width: 420px; }
.gh-dropdown--wide { min-width: 440px; }
.gh-dropdown a {
    display: block; padding: 9px 14px; border-radius: 7px;
    font-size: 0.9rem; font-weight: 500; color: var(--gh-text); text-decoration: none;
    break-inside: avoid;
}
.gh-dropdown a:hover { background: var(--gh-cream); color: var(--gh-clay); }

.gh-header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Hamburger (hidden on desktop) */
.gh-hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
}
.gh-hamburger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }

/* ── Mobile drawer ────────────────────────────────────────────────────── */
.gh-mobile-drawer {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(44,44,44,0.5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.gh-mobile-drawer.is-open { opacity: 1; visibility: visible; }
.gh-mobile-drawer-panel {
    position: absolute; top: 0; right: 0; height: 100%; width: min(86%, 360px);
    background: var(--gh-lavender); color: #fff; padding: 64px 26px 32px;
    overflow-y: auto; transform: translateX(100%); transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}
.gh-mobile-drawer.is-open .gh-mobile-drawer-panel { transform: translateX(0); }
.gh-mobile-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.gh-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.gh-mobile-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.14); position: relative; }
.gh-mobile-nav a { display: block; color: #fff; text-decoration: none; padding: 14px 0; font-size: 1.05rem; font-family: var(--font-heading); letter-spacing: 0.02em; }
.gh-mobile-sub-toggle { position: absolute; top: 8px; right: 0; background: none; border: 0; color: #fff; font-size: 1.6rem; width: 40px; height: 40px; cursor: pointer; }
.gh-mobile-subnav { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding-left: 14px; }
.gh-mobile-subnav.is-open { max-height: 600px; }
.gh-mobile-subnav a { font-family: var(--font-body); font-size: 0.95rem; opacity: 0.9; padding: 9px 0; }
.gh-mobile-cta { background: var(--gh-olive); border-radius: 30px; text-align: center; margin-top: 18px; font-family: var(--font-body) !important; }

/* ── Sections: generic spacing ────────────────────────────────────────── */
.gh-section { padding: 76px 0; }
.gh-section-tight { padding: 48px 0; }
.gh-eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 600; color: var(--gh-olive); }
.gh-section-title { font-size: clamp(1.9rem, 3.5vw, 2.9rem); margin: 8px 0 0; }
.gh-lead { font-size: 1.05rem; color: var(--gh-muted); max-width: 60ch; }

/* ── Hero banner (plain, constrained — matches old goodhopelutheran.org) ── */
.gh-hero-banner { position: relative; width: 100%; overflow: hidden; }
.gh-hero-banner-img {
    width: 100%; height: clamp(260px, 40vw, 500px);
    background-size: cover; background-position: center;
    background-color: var(--gh-indigo);
}
/* Optional text overlay (only if the section provides headline/buttons) */
.gh-hero-banner.has-text .gh-hero-banner-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(50,59,115,0.30), rgba(50,59,115,0.45)); }
.gh-hero-banner-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.gh-hero-banner-text h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 16px; text-shadow: 0 2px 20px rgba(0,0,0,0.35); }
.gh-hero-banner-text p { font-size: clamp(1rem, 2vw, 1.3rem); margin: 0 0 26px; max-width: 50ch; }
.gh-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Parish info block (navy: name / address / worship times) ──────────── */
.gh-parish-info { background: var(--gh-indigo); color: #fff; padding: 56px 0; text-align: center; }
.gh-parish-name { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0; }
.gh-parish-address { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin: 10px 0 22px; }
.gh-parish-times { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gh-parish-times li { font-size: 1.1rem; color: #fff; }
.gh-parish-times li::before { content: '✦'; color: var(--gh-olive); margin-right: 10px; font-size: 0.8em; vertical-align: 1px; }

/* ── Welcome split (copy + photo, cream) ──────────────────────────────── */
.gh-welcome { background: var(--gh-cream); }
.gh-welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.gh-welcome-copy h2 { margin: 6px 0 18px; }
.gh-welcome-text { font-size: 1.05rem; line-height: 1.8; color: var(--gh-text); }
.gh-welcome-text p { margin: 0 0 16px; }
.gh-welcome-media img { width: 100%; height: auto; border-radius: var(--gh-radius); box-shadow: var(--gh-shadow); display: block; }

/* ── Service / worship times ──────────────────────────────────────────── */
.gh-times { background: var(--gh-cream-2); }
.gh-times-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 38px; }
.gh-time-card {
    background: #fff; border-radius: var(--gh-radius); padding: 30px 26px; text-align: center;
    box-shadow: var(--gh-shadow); border-top: 4px solid var(--gh-olive);
}
.gh-time-card .gh-time-day { font-family: var(--font-heading); font-size: 1.3rem; color: var(--gh-clay); }
.gh-time-card .gh-time-time { font-size: 1.7rem; font-weight: 600; color: var(--gh-indigo); margin: 6px 0; }
.gh-time-card .gh-time-label { color: var(--gh-muted); font-size: 0.92rem; }

/* ── Upcoming events strip (homepage) ─────────────────────────────────── */
.gh-events-strip { background: var(--gh-cream); }
.gh-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 38px; }
.gh-event-card {
    display: flex; flex-direction: column; background: #fff; border-radius: var(--gh-radius);
    overflow: hidden; box-shadow: var(--gh-shadow); text-decoration: none; color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}
.gh-event-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(44,44,44,0.16); }
.gh-event-media { height: 170px; background: linear-gradient(135deg, var(--gh-clay), var(--gh-indigo)); background-size: cover; background-position: center; position: relative; }
.gh-event-date-chip {
    position: absolute; bottom: 12px; left: 12px; background: #fff; border-radius: 9px;
    padding: 6px 12px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.gh-event-date-chip .d { font-size: 1.3rem; font-weight: 700; line-height: 1; color: var(--gh-clay); font-family: var(--font-heading); }
.gh-event-date-chip .m { font-size: 0.68rem; text-transform: uppercase; font-weight: 700; letter-spacing: .06em; color: var(--gh-muted); }
.gh-event-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gh-event-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--gh-olive); }
.gh-event-title { font-family: var(--font-heading); font-size: 1.2rem; margin: 0; color: var(--gh-clay); }
.gh-event-meta { font-size: 0.86rem; color: var(--gh-muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.gh-badge-pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.gh-badge-inperson { background: rgba(109,63,55,0.12); color: var(--gh-clay); }
.gh-badge-virtual { background: rgba(109,123,55,0.15); color: var(--gh-olive-dark); }
.gh-badge-rsvp { background: var(--gh-olive); color: #fff; }

/* ── Events listing page ──────────────────────────────────────────────── */
.gh-events-page { max-width: var(--gh-maxw); margin: 0 auto; padding: 56px 24px 90px; }
.gh-events-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.gh-events-toggle { display: inline-flex; border: 1px solid var(--gh-clay); border-radius: 30px; overflow: hidden; }
.gh-events-toggle a { padding: 8px 18px; font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--gh-clay); }
.gh-events-toggle a.is-active { background: var(--gh-clay); color: #fff; }
.gh-cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 36px; }
.gh-cat-chip { padding: 7px 16px; border-radius: 30px; font-size: 0.84rem; font-weight: 600; text-decoration: none; background: #fff; color: var(--gh-clay); border: 1px solid #e3ddc9; }
.gh-cat-chip:hover { border-color: var(--gh-clay); }
.gh-cat-chip.is-active { background: var(--gh-clay); color: #fff; border-color: var(--gh-clay); }
.gh-event-row {
    display: grid; grid-template-columns: 220px 1fr; gap: 24px; background: #fff;
    border-radius: var(--gh-radius); overflow: hidden; box-shadow: var(--gh-shadow);
    text-decoration: none; color: inherit; margin-bottom: 22px; transition: transform .18s ease;
}
.gh-event-row:hover { transform: translateY(-3px); }
.gh-event-row .gh-event-media { height: 100%; min-height: 168px; }
.gh-event-row .gh-event-body { padding: 24px 24px 24px 0; }
.gh-empty { text-align: center; padding: 60px 0; color: var(--gh-muted); }

/* ── Event detail ─────────────────────────────────────────────────────── */
.gh-event-detail { max-width: 880px; margin: 0 auto; padding: 48px 24px 90px; }
.gh-event-hero { border-radius: var(--gh-radius); overflow: hidden; margin-bottom: 30px; }
.gh-event-hero img { width: 100%; display: block; max-height: 420px; object-fit: cover; }
.gh-event-detail h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 14px; }
.gh-meta-list { display: flex; flex-direction: column; gap: 12px; background: var(--gh-cream-2); border-radius: var(--gh-radius); padding: 22px 24px; margin: 24px 0; }
.gh-meta-list div { display: flex; gap: 12px; align-items: flex-start; }
.gh-meta-list .ic { color: var(--gh-olive); flex-shrink: 0; margin-top: 2px; }
.gh-event-desc { line-height: 1.8; font-size: 1.02rem; }
.gh-rsvp { background: #fff; border: 1px solid #e3ddc9; border-radius: var(--gh-radius); padding: 30px; margin-top: 30px; }
.gh-rsvp h2 { color: var(--gh-clay); margin-top: 0; }
.gh-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gh-form-grid .full { grid-column: 1 / -1; }
.gh-rsvp label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gh-text); margin-bottom: 5px; }
.gh-rsvp input, .gh-rsvp textarea {
    width: 100%; padding: 11px 14px; border: 1px solid #d8d2bd; border-radius: 8px;
    font-family: var(--font-body); font-size: 0.95rem; background: #fff; box-sizing: border-box;
}
.gh-rsvp input:focus, .gh-rsvp textarea:focus { outline: none; border-color: var(--gh-olive); box-shadow: 0 0 0 3px rgba(109,123,55,0.15); }
.gh-alert { padding: 13px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 0.92rem; }
.gh-alert-success { background: #e7f0d8; color: #3f5117; border: 1px solid #c2d49a; }
.gh-alert-error { background: #f6e3df; color: #7a342a; border: 1px solid #e0b4ab; }

/* ── Calendar (month grid) ────────────────────────────────────────────── */
.gh-cal-page { max-width: var(--gh-maxw); margin: 0 auto; padding: 48px 24px 90px; }
.gh-cal-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.gh-cal-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.gh-cal-nav { display: flex; align-items: center; gap: 8px; }
.gh-cal-nav a { padding: 9px 15px; border: 1px solid #d8d2bd; border-radius: 8px; text-decoration: none; color: var(--gh-clay); font-weight: 600; font-size: 0.86rem; background: #fff; }
.gh-cal-nav a:hover { border-color: var(--gh-clay); }
.gh-cal-nav a.gh-cal-list { background: var(--gh-clay); color: #fff; border-color: var(--gh-clay); }
.gh-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: #e3ddc9; border: 1px solid #e3ddc9; border-radius: var(--gh-radius); overflow: hidden; }
.gh-cal-dow { background: var(--gh-indigo); color: #fff; padding: 11px 8px; text-align: center; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.gh-cal-cell { background: #fff; min-height: 116px; padding: 7px; }
.gh-cal-cell.out { background: #faf8ef; }
.gh-cal-cell.today { box-shadow: inset 0 0 0 2px var(--gh-olive); }
.gh-cal-daynum { font-size: 0.82rem; font-weight: 700; color: var(--gh-text); margin-bottom: 5px; }
.gh-cal-cell.out .gh-cal-daynum { color: #c2bca8; }
.gh-cal-event { display: block; font-size: 0.72rem; line-height: 1.25; padding: 3px 7px; margin-bottom: 3px; border-radius: 5px; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--gh-clay); }
.gh-cal-event.virtual { background: var(--gh-olive); }
.gh-cal-agenda { margin-top: 42px; }
.gh-cal-agenda h2 { font-size: 1.3rem; }

/* ── Footer (indigo) ──────────────────────────────────────────────────── */
.gh-footer { background: var(--gh-indigo); color: rgba(255,255,255,0.85); padding: 64px 0 28px; }
.gh-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.gh-footer h3 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 18px; }
.gh-footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.gh-footer-name { font-family: var(--font-heading); font-size: 1.4rem; color: #fff; display: block; margin-bottom: 12px; }
.gh-footer-tagline { font-size: 0.95rem; max-width: 32ch; }
.gh-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gh-footer-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.93rem; }
.gh-footer-links a:hover { color: #fff; }
.gh-footer-give p { font-size: 0.93rem; margin: 0 0 16px; }
.gh-social { display: flex; gap: 12px; margin-top: 18px; }
.gh-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); color: #fff; transition: background .15s ease; }
.gh-social a:hover { background: var(--gh-olive); }
.gh-footer-bottom { border-top: 1px solid rgba(255,255,255,0.16); margin-top: 44px; padding-top: 22px; text-align: center; font-size: 0.84rem; color: rgba(255,255,255,0.6); }

/* ── Framework section fallback overrides (warm-on-cream) ─────────────── */
/* Sections we don't override structurally still need to read in-palette. */
section.intro, section.cta-banner, section.rich-content, section.callouts,
section.contact-form, section.blog-feed, section.map, .section { background-color: transparent; }
.callout-card, .service-card, .blog-card, .project-card { border-radius: var(--gh-radius); }
.cta-banner, .cta_banner { background: var(--gh-indigo); color: #fff; }
.btn-primary, .button-primary { background: var(--gh-clay); border-color: var(--gh-clay); color: #fff; }
.btn-primary:hover { background: var(--gh-clay-dark); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .gh-nav { display: none; }
    .gh-hamburger { display: inline-flex; }
    .gh-btn-donate { padding: 9px 18px; }
    .gh-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .gh-event-row { grid-template-columns: 1fr; }
    .gh-event-row .gh-event-media { min-height: 180px; }
    .gh-welcome-grid { grid-template-columns: 1fr; gap: 32px; }
    .gh-welcome-media { order: -1; }
}
@media (max-width: 640px) {
    .gh-header-actions .gh-btn-donate { display: none; }
    .gh-footer-grid { grid-template-columns: 1fr; }
    .gh-form-grid { grid-template-columns: 1fr; }
    .gh-section { padding: 54px 0; }
    .gh-cal-cell { min-height: 78px; }
    .gh-cal-event { font-size: 0; padding: 5px; } /* dots on tiny screens */
    .gh-cal-event::before { content: ''; display: block; }
    .gh-logo-img { height: 46px; }
}

/* ── Resources Mendol (library, category pages, callouts) ─────────────── */
.gh-resources-page { background: var(--gh-cream); padding: 48px 0 80px; min-height: 50vh; }
.gh-resources-head { text-align: center; margin-bottom: 30px; }
.gh-resources-head .gh-section-title { margin-top: 6px; }
.gh-resources-head .gh-lead { margin: 12px auto 0; }
.gh-cat-emoji { font-size: 0.85em; }
.gh-resource-crumb { font-size: 0.85rem; color: var(--gh-muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.gh-resource-crumb a { color: var(--gh-muted); text-decoration: none; }
.gh-resource-crumb a:hover { color: var(--gh-clay); }
.gh-resource-crumb strong { color: var(--gh-clay); }
.gh-resources-subhead { font-family: var(--font-heading); color: var(--gh-clay); font-size: 1.3rem; margin: 30px 0 16px; }

/* Category cards (library landing) */
.gh-resource-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 36px; }
.gh-resource-cat { display: flex; flex-direction: column; gap: 6px; padding: 24px 20px; background: #fff; border: 1px solid #e3ddc9; border-radius: var(--gh-radius); text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; box-shadow: var(--gh-shadow); }
.gh-resource-cat:hover { transform: translateY(-3px); border-color: var(--gh-clay); }
.gh-resource-cat-icon { font-size: 2rem; line-height: 1; }
.gh-resource-cat-label { font-family: var(--font-heading); font-size: 1.05rem; color: var(--gh-clay); }
.gh-resource-cat-lock { font-size: 0.75rem; color: var(--gh-olive-dark); font-weight: 600; }

/* Resource item rows */
.gh-resource-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid #e3ddc9; border-radius: var(--gh-radius); margin-bottom: 14px; box-shadow: var(--gh-shadow); }
.gh-resource-icon { font-size: 1.9rem; line-height: 1; flex-shrink: 0; }
.gh-resource-icon img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.gh-resource-body { flex: 1; min-width: 0; }
.gh-resource-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--gh-clay); text-decoration: none; }
.gh-resource-title:hover { color: var(--gh-clay-dark); }
.gh-resource-date { color: var(--gh-muted); font-size: 0.85rem; margin-left: 8px; }
.gh-resource-desc { margin: 6px 0 0; color: var(--gh-muted); font-size: 0.92rem; }
.gh-resource-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.gh-resource-dl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: var(--gh-clay); color: #fff; border-radius: 30px; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.gh-resource-dl:hover { background: var(--gh-clay-dark); color: #fff; }
.gh-resource-dl .sz { opacity: 0.75; font-weight: 400; }
.gh-resource-zip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--gh-clay); color: var(--gh-clay); border-radius: 30px; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.gh-resource-zip:hover { background: var(--gh-clay); color: #fff; }

/* Featured / most-recent box */
.gh-resource-featured { border: 2px solid var(--gh-olive); border-radius: var(--gh-radius); padding: 18px; margin-bottom: 24px; background: var(--gh-cream-2); }
.gh-resource-featured-tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gh-olive-dark); font-weight: 700; margin-bottom: 10px; }
.gh-resource-featured .gh-resource-item { margin-bottom: 0; border-color: transparent; box-shadow: none; }

/* Search */
.gh-resource-search { display: flex; gap: 10px; margin-bottom: 28px; }
.gh-resource-search input { flex: 1; padding: 11px 16px; border: 1px solid #d8d2bd; border-radius: 30px; font-family: var(--font-body); font-size: 0.95rem; }
.gh-resource-search input:focus { outline: none; border-color: var(--gh-olive); box-shadow: 0 0 0 3px rgba(109,123,55,0.15); }
.gh-resource-pagination { margin-top: 22px; }

/* Embedded callout block (resources_callout) */
.gh-resource-callout { background: var(--gh-cream-2); text-align: center; }
.gh-resource-callout-icon { font-size: 2.6rem; margin: 6px 0; }
.gh-resource-callout-title { font-size: 1.2rem; font-weight: 600; color: var(--gh-clay); margin: 4px 0; }
.gh-resource-callout-date { color: var(--gh-muted); margin: 0 0 18px; }
.gh-resource-callout-all { margin-top: 16px; }
.gh-resource-callout-all a, .gh-resource-viewall a { color: var(--gh-olive-dark); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.gh-resource-viewall { margin: 0 0 16px; }

/* === Resources dropdown — nested subcategories (added by resources-nav-dropdown) === */
.gh-dropdown--resources { min-width: 280px; }
.gh-dropdown .gh-dd-cat > a { font-weight: 600; }
.gh-dropdown .gh-dd-sub { list-style: none; margin: 0 0 4px; padding: 0; }
.gh-dropdown .gh-dd-sub a { padding-left: 2.1em; font-size: .85rem; opacity: .82; }
.gh-mobile-subnav .gh-mobile-subsub { padding-left: 1.6em; font-size: .92em; opacity: .85; }

/* ── Footer login / auth row (footer-login bundle) ────────────────────── */
.gh-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; text-align: left; }
.gh-footer-copy { margin: 0; }
.gh-footer-auth { display: inline-flex; align-items: center; gap: 18px; }
.gh-footer-auth-greeting { color: rgba(255,255,255,0.55); }
.gh-footer-auth-link { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.84rem; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; line-height: 1.4; }
.gh-footer-auth-link:hover { color: #fff; text-decoration: underline; }
.gh-footer-login { font-weight: 600; }
.gh-footer-logout-form { display: inline; margin: 0; }
@media (max-width: 640px) {
    .gh-footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
}
