/**
 * Village Hall Groups — Public CSS v1.4.0
 * Palette: Escomb Village Hall (escombvillagehall.org.uk)
 */

:root {
    --vhg-plum:     #4f0738;
    --vhg-plum-h:   #6b0a4a;
    --vhg-crimson:  #a63348;
    --vhg-gold:     #bf9341;
    --vhg-gold-l:   #f5edda;
    --vhg-charcoal: #2c3338;
    --vhg-body:     #333333;
    --vhg-heading:  #54595f;
    --vhg-light:    #f0f0f1;
    --vhg-white:    #ffffff;
    --vhg-border:   #e0e0e1;
    --vhg-muted:    #6b6b6b;
    --vhg-font:     'Oxygen', system-ui, sans-serif;
    --vhg-radius:   3px;
}

.vhg-pub-wrap { font-family: var(--vhg-font); color: var(--vhg-body); }

/* ── Alerts ──────────────────────────────────────────── */
.vhg-alert { padding: .85rem 1.1rem; border-radius: var(--vhg-radius); margin-bottom: 1.25rem; font-size: .88rem; font-weight: 500; }
.vhg-alert--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.vhg-alert--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.vhg-alert--info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Buttons ─────────────────────────────────────────── */
.vhg-btn { display: inline-flex; align-items: center; gap: 5px; padding: .6rem 1.25rem; border-radius: var(--vhg-radius); font-size: .85rem; font-weight: 700; font-family: var(--vhg-font); cursor: pointer; text-decoration: none; border: 2px solid transparent; letter-spacing: .02em; transition: background .15s, border-color .15s; }
.vhg-btn--plum  { background: var(--vhg-plum)!important; color: var(--vhg-white)!important; border-color: var(--vhg-plum)!important; }
.vhg-btn--plum:hover { background: var(--vhg-plum-h)!important; border-color: var(--vhg-plum-h)!important; }
.vhg-btn--ghost { background: transparent!important; color: var(--vhg-heading)!important; border-color: var(--vhg-border)!important; }
.vhg-btn--ghost:hover { background: var(--vhg-light)!important; }
.vhg-btn--outline-white { background: rgba(255,255,255,.1)!important; color: #fff!important; border-color: rgba(255,255,255,.45)!important; }
.vhg-btn--outline-white:hover { background: rgba(255,255,255,.2)!important; }
.vhg-btn--full { width: 100%; justify-content: center; }
.vhg-btn--sm   { padding: .45rem .9rem!important; font-size: .78rem; }

/* ── Panels ──────────────────────────────────────────── */
.vhg-pub-panel { background: var(--vhg-white); border: 1px solid var(--vhg-border); border-radius: var(--vhg-radius); overflow: hidden; }
.vhg-pub-panel--plum-top    { border-top: 3px solid var(--vhg-plum); }
.vhg-pub-panel--gold-top    { border-top: 3px solid var(--vhg-gold); }
.vhg-pub-panel--crimson-top { border-top: 3px solid var(--vhg-crimson); }
.vhg-pub-panel__header { padding: .85rem 1.25rem; border-bottom: 1px solid var(--vhg-border); }
.vhg-pub-panel__header h2, .vhg-pub-panel__header h3 { margin: 0; font-size: .95rem; font-weight: 700; font-family: var(--vhg-font); color: var(--vhg-heading); }
.vhg-pub-panel__header--dark    { background: var(--vhg-plum); }
.vhg-pub-panel__header--dark h3 { color: #fff; }
.vhg-pub-panel__header--gold    { background: var(--vhg-gold); }
.vhg-pub-panel__header--gold h3 { color: #fff; }
.vhg-pub-panel__header--charcoal    { background: var(--vhg-charcoal); }
.vhg-pub-panel__header--charcoal h3 { color: #fff; }
.vhg-pub-panel__body { padding: 1.25rem; }

/* ── Forms ───────────────────────────────────────────── */
.vhg-field { display: flex; flex-direction: column; gap: .35rem; }
.vhg-field label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--vhg-muted); }
.vhg-field input, .vhg-field textarea, .vhg-field select { border: 1.5px solid var(--vhg-border)!important; border-radius: var(--vhg-radius)!important; padding: .55rem .8rem!important; font-size: .88rem; font-family: var(--vhg-font); color: var(--vhg-body); background: #fff!important; width: 100%; box-sizing: border-box; outline: none; transition: border-color .2s; }
.vhg-field input:focus, .vhg-field textarea:focus { border-color: var(--vhg-plum)!important; box-shadow: 0 0 0 3px rgba(79,7,56,.08); }
.vhg-field textarea { resize: vertical; min-height: 90px; }
.vhg-form-row { display: flex; flex-direction: column; gap: .75rem; }
.vhg-form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.25rem; }
@media(max-width:600px){ .vhg-form-row--2 { grid-template-columns: 1fr; } }
.vhg-form-note { font-size: .72rem; color: var(--vhg-muted); margin: .25rem 0 0; }
.vhg-optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .72rem; }
.vhg-radio-group { display: flex; flex-direction: column; gap: .5rem; margin-top: .25rem; }
.vhg-radio-label { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--vhg-body); }
.vhg-checkbox-group { display: flex; flex-direction: column; gap: .75rem; }
.vhg-checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; cursor: pointer; color: var(--vhg-body); }
.vhg-checkbox-label input { margin-top: 2px; flex-shrink: 0; }
.vhg-link { color: var(--vhg-plum); font-weight: 700; font-size: .82rem; text-decoration: none; }
.vhg-link:hover { text-decoration: underline; }

/* ── Badges ──────────────────────────────────────────── */
.vhg-dir-card__type { display: inline-block; font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: var(--vhg-radius); background: #e8eaf0; color: var(--vhg-heading); letter-spacing: .04em; text-transform: uppercase; }
.vhg-member-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: var(--vhg-radius); }
.vhg-member-badge--yes_always  { background: #d4edda; color: #155724; }
.vhg-member-badge--yes_enquire { background: var(--vhg-gold-l); color: #8a6a2a; }
.vhg-member-badge--full        { background: var(--vhg-light); color: var(--vhg-muted); }

/* ── DIRECTORY ───────────────────────────────────────── */
.vhg-dir-hero { background: linear-gradient(135deg, var(--vhg-plum) 0%, #2e0421 100%); padding: 52px 32px 44px; text-align: center; color: #fff; border-bottom: 4px solid var(--vhg-gold); }
.vhg-dir-hero__eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--vhg-gold); margin: 0 0 10px; }
.vhg-dir-hero__title { font-family: var(--vhg-font); font-size: 2.2rem; font-weight: 700; color: #fff; margin: 0 0 12px; letter-spacing: -.3px; }
.vhg-dir-hero__sub { font-size: .95rem; color: rgba(255,255,255,.8); max-width: 480px; margin: 0 auto; line-height: 1.6; }
.vhg-dir-body { background: var(--vhg-light); padding: 36px 24px; max-width: 980px; margin: 0 auto; }
.vhg-dir-count { font-size: .92rem; font-weight: 700; color: var(--vhg-heading); margin: 0 0 22px; }
.vhg-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 20px; margin-bottom: 32px; }
.vhg-dir-card { background: var(--vhg-white); border: 1px solid var(--vhg-border); border-radius: var(--vhg-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; border-top: 3px solid var(--vhg-plum); }
.vhg-dir-card:hover { box-shadow: 0 8px 24px rgba(79,7,56,.14); transform: translateY(-2px); }
.vhg-dir-card__image-link { display: block; position: relative; text-decoration: none; }
.vhg-dir-card__img { width: 100%; height: 130px; object-fit: cover; display: block; }
.vhg-dir-card__img-placeholder { height: 130px; background: var(--vhg-gold-l); display: flex; align-items: center; justify-content: center; }
.vhg-dir-card__img-placeholder span { font-size: 3rem; font-weight: 800; color: var(--vhg-gold); font-family: var(--vhg-font); }
.vhg-dir-card__member-badge { position: absolute; bottom: 8px; left: 10px; }
.vhg-dir-card__body { padding: 16px 18px 20px; }
.vhg-dir-card__name { font-family: var(--vhg-font); font-size: .98rem; font-weight: 700; color: var(--vhg-plum); margin: 8px 0 7px; line-height: 1.3; }
.vhg-dir-card__name a { color: inherit; text-decoration: none; }
.vhg-dir-card__desc { font-size: .82rem; color: var(--vhg-body); line-height: 1.6; margin: 0 0 10px; }
.vhg-dir-card__meeting { font-size: .74rem; color: var(--vhg-muted); margin: 0 0 14px; line-height: 1.4; }
.vhg-dir-footer-note { padding: 16px 20px; background: var(--vhg-white); border: 1px solid var(--vhg-border); border-left: 4px solid var(--vhg-gold); border-radius: var(--vhg-radius); font-size: .85rem; color: var(--vhg-body); }
.vhg-dir-footer-note a { color: var(--vhg-plum); font-weight: 700; }
.vhg-empty { padding: 2rem; text-align: center; color: var(--vhg-muted); }

/* ── PROFILE ─────────────────────────────────────────── */
.vhg-profile-hero { background: linear-gradient(135deg, var(--vhg-plum) 0%, #2e0421 100%); padding: 36px 24px 32px; border-bottom: 4px solid var(--vhg-gold); }
.vhg-profile-hero__inner { max-width: 940px; margin: 0 auto; }
.vhg-profile-hero__identity { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.vhg-profile-hero__avatar { width: 76px; height: 76px; border-radius: var(--vhg-radius); background: var(--vhg-gold-l); border: 3px solid var(--vhg-gold); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; overflow: hidden; }
.vhg-profile-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.vhg-profile-hero__avatar span { font-size: 2.2rem; font-weight: 800; color: var(--vhg-gold); font-family: var(--vhg-font); }
.vhg-profile-hero__badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.vhg-profile-hero__title { font-family: var(--vhg-font); font-size: 1.8rem; font-weight: 700; color: #fff; margin: 0; letter-spacing: -.2px; }
.vhg-profile-body { max-width: 940px; margin: 0 auto; padding: 30px 24px; display: grid; grid-template-columns: 1fr 280px; gap: 22px; align-items: start; }
@media(max-width:720px){ .vhg-profile-body { grid-template-columns: 1fr; } }
.vhg-profile-main > * + * { margin-top: 20px; }
.vhg-profile-desc { font-size: .9rem; line-height: 1.75; color: var(--vhg-body); margin: 0; }
.vhg-profile-meeting { display: flex; align-items: flex-start; gap: 14px; }
.vhg-profile-meeting__icon { width: 36px; height: 36px; border-radius: var(--vhg-radius); background: var(--vhg-gold-l); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.vhg-profile-meeting__time { font-size: .9rem; font-weight: 700; color: var(--vhg-body); margin: 0 0 4px; }
.vhg-profile-meeting__location { font-size: .8rem; color: var(--vhg-muted); margin: 0; }
.vhg-profile-sidebar > * + * { margin-top: 16px; }
.vhg-sidebar-details { display: flex; flex-direction: column; gap: 0; }
.vhg-sidebar-detail { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--vhg-border); }
.vhg-sidebar-detail:last-child { border-bottom: none; padding-bottom: 0; }
.vhg-sidebar-detail__icon { font-size: .9rem; margin-top: 1px; flex-shrink: 0; }
.vhg-sidebar-detail__label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vhg-muted); margin: 0 0 2px; }
.vhg-sidebar-detail__value { font-size: .83rem; color: var(--vhg-body); margin: 0; word-break: break-word; }
.vhg-sidebar-membership-note { font-size: .8rem; color: var(--vhg-muted); margin: 10px 0 12px; line-height: 1.55; }
.vhg-sidebar-address { font-size: .82rem; color: var(--vhg-body); line-height: 1.7; margin: 0 0 10px; }
.vhg-contact-form__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ── MEMBER EDIT ─────────────────────────────────────── */
.vhg-edit-wrap { max-width: 800px; margin: 0 auto; padding: 0 0 3rem; }
.vhg-edit-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.vhg-edit-title { font-family: var(--vhg-font); font-size: 1.4rem; font-weight: 700; color: var(--vhg-plum); margin: 0 0 3px; }
.vhg-edit-sub { font-size: .88rem; color: var(--vhg-muted); margin: 0; }
.vhg-edit-header__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vhg-edit-form > * + * { }
.vhg-edit-img-preview { display: flex; gap: 16px; align-items: flex-start; margin-bottom: .75rem; }
.vhg-edit-img-thumb { width: 160px; height: 90px; object-fit: cover; border-radius: var(--vhg-radius); border: 1px solid var(--vhg-border); }
.vhg-edit-img-actions { display: flex; flex-direction: column; gap: 8px; }
.vhg-edit-img-upload { border: 2px dashed var(--vhg-border); border-radius: var(--vhg-radius); padding: 28px 20px; text-align: center; cursor: pointer; margin-bottom: .75rem; }
.vhg-edit-img-upload__icon { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.vhg-edit-img-upload p { margin: 4px 0 0; font-size: .85rem; color: var(--vhg-muted); }
.vhg-edit-save-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 1rem 0; border-top: 1px solid var(--vhg-border); margin-top: 1.25rem; }
