/* Bharat Pet Expo — readable editable text palette. Loaded AFTER festival.css.
   Adjust colours in Admin -> Text Colours & Contrast.
   All values are safe CSS custom properties from hex-only admin inputs. */
:root{
 --bpe-light-heading:#173e39;--bpe-light-body:#40584e;--bpe-light-muted:#6b6b60;
 --bpe-dark-heading:#fff5de;--bpe-dark-body:#ece3d0;--bpe-dark-muted:#d0bd99;
 --bpe-accent:#996f32;--bpe-dark-accent:#e5c084;--bpe-nav-text:#21463e;
 --bpe-footer-text:#39564f;--bpe-card-heading:#173e39;--bpe-card-body:#52655a;
 --bpe-button-gold-text:#15382f;--bpe-button-dark-text:#fff3da;
 --bpe-bg-light:#f9f4eb;--bpe-bg-dark:#0b303a;--bpe-bg-card:#fffdf8;
 --bpe-bg-gold-button:#d5ab6c;--bpe-bg-dark-button:#13443d;
}
/* Contrast-safe light surfaces */
body:not(.admin-body){background:var(--bpe-bg-light);color:var(--bpe-light-body)}
body:not(.admin-body) :is(.section-pad,.wash,.home-links,.site-footer,.stats-strip,.sponsor-catalogue-header,.sponsor-card,.collection-tile,.speaker-info,.attraction-copy,.schedule-item,.archive-story,.custom-tile-copy,.contact-panel,.faq-item,.value-grid,.ticket-grid,.vendor-grid,.empty-state,.section-heading):is(section,div,article,footer){color:var(--bpe-light-body)}
body:not(.admin-body) :is(.section-pad,.wash,.home-links,.stats-strip,.sponsor-card,.collection-tile,.speaker-info,.attraction-copy,.schedule-item,.archive-story,.custom-tile-copy,.contact-panel,.faq-item,.value-grid,.empty-state,.section-heading) :is(h1,h2,h3,h4,h5,strong:not(.btn *)){color:var(--bpe-light-heading)!important}
body:not(.admin-body) :is(.section-pad,.wash,.home-links,.stats-strip,.sponsor-card,.speaker-info,.attraction-copy,.schedule-item,.archive-story,.custom-tile-copy,.contact-panel,.faq-item,.value-grid,.empty-state,.section-heading) :is(p,li,blockquote){color:var(--bpe-light-body)!important}
body:not(.admin-body) :is(.section-pad,.wash,.home-links,.stats-strip,.speaker-info,.attraction-copy,.archive-story,.contact-panel,.faq-item,.section-heading) :is(small,time,figcaption){color:var(--bpe-light-muted)}
body:not(.admin-body) :is(.section-pad,.wash,.home-links) :is(.eyebrow,.section-heading .eyebrow){color:var(--bpe-accent)!important}
/* Dark image overlays, teal sections, banners and hero titles always use their own palette */
body:not(.admin-body) :is(.home-hero,.inner-hero,.cta-band,.festival-schedule-teaser,.vendor-process,.sponsors-empty,.custom-banner,.custom-cta,.featured-experience-card,.festival-navigation) :is(h1,h2,h3,h4,strong){color:var(--bpe-dark-heading)!important}
body:not(.admin-body) :is(.home-hero,.inner-hero,.cta-band,.festival-schedule-teaser,.vendor-process,.sponsors-empty,.custom-banner,.custom-cta,.featured-experience-card,.festival-navigation) :is(p,li,blockquote){color:var(--bpe-dark-body)!important}
body:not(.admin-body) :is(.home-hero,.inner-hero,.cta-band,.festival-schedule-teaser,.vendor-process,.sponsors-empty,.custom-banner,.custom-cta,.featured-experience-card,.festival-navigation) :is(small,.eyebrow,.featured-experience-copy small){color:var(--bpe-dark-accent)!important}
body:not(.admin-body) :is(.home-hero,.inner-hero,.cta-band,.festival-schedule-teaser,.vendor-process,.sponsors-empty,.custom-banner,.custom-cta,.featured-experience-card,.festival-navigation) :is(.hero-meta,.hero-countdown-values,.featured-experience-copy){color:var(--bpe-dark-body)!important}
body:not(.admin-body) .home-hero{background-color:var(--bpe-bg-dark)}
body:not(.admin-body) .inner-hero{background-color:var(--bpe-bg-dark)}
body:not(.admin-body) .featured-experience-card{background-color:var(--bpe-bg-dark)}
/* Header/footer and cards use their own contrast pair rather than inheriting from an unrelated dark parent */
body:not(.admin-body) .desktop-nav a{color:var(--bpe-nav-text)!important}
body:not(.admin-body) .desktop-nav a:hover,body:not(.admin-body) .desktop-nav a.active{color:var(--bpe-light-heading)!important}
body:not(.admin-body) .mobile-nav a{color:var(--bpe-dark-heading)!important}
body:not(.admin-body) .site-footer,body:not(.admin-body) .site-footer :is(p,span,small,a,li){color:var(--bpe-footer-text)!important}
body:not(.admin-body) .site-footer :is(h2,h3,strong){color:var(--bpe-light-heading)!important}
body:not(.admin-body) :is(.speaker-card,.attraction-card,.sponsor-card,.custom-tile,.schedule-item,.home-link-grid>a){background:var(--bpe-bg-card)}
body:not(.admin-body) :is(.speaker-card,.attraction-card,.sponsor-card,.custom-tile,.home-link-grid>a) :is(h2,h3,strong:not(.btn *)){color:var(--bpe-card-heading)!important}
body:not(.admin-body) :is(.speaker-card,.attraction-card,.sponsor-card,.custom-tile,.home-link-grid>a) :is(p,li){color:var(--bpe-card-body)!important}
/* Buttons intentionally keep an explicit foreground colour when nested in a dark/white section */
body:not(.admin-body) :is(.btn-gold,.header-tickets,.btn-unavailable){background:var(--bpe-bg-gold-button);color:var(--bpe-button-gold-text)!important;border-color:var(--bpe-bg-gold-button)}
body:not(.admin-body) :is(.btn-gold,.header-tickets,.btn-unavailable) *{color:var(--bpe-button-gold-text)!important}
body:not(.admin-body) :is(.btn-dark,.gold-small){background:var(--bpe-bg-dark-button);color:var(--bpe-button-dark-text)!important}
body:not(.admin-body) .btn-white-outline{color:var(--bpe-dark-heading)!important}
body:not(.admin-body) .btn-outline{color:var(--bpe-light-heading)!important}
/* Gold-accent text, preserving high contrast over each type of background */
body:not(.admin-body) :is(.section-heading,.section-pad,.home-links) h2 em{color:var(--bpe-accent)!important}
body:not(.admin-body) :is(.home-hero,.inner-hero,.cta-band,.festival-schedule-teaser,.custom-banner,.custom-cta) h2 em,
body:not(.admin-body) :is(.home-hero,.inner-hero,.cta-band,.festival-schedule-teaser,.custom-banner,.custom-cta) h1 em{color:var(--bpe-dark-accent)!important}
/* Every Page Builder module can override the global text colours independently */
body:not(.admin-body) .custom-module :is(h1,h2,h3,h4){color:var(--bpe-module-heading,var(--bpe-light-heading))!important}
body:not(.admin-body) .custom-module :is(p,li,blockquote){color:var(--bpe-module-body,var(--bpe-light-body))!important}
body:not(.admin-body) :is(.custom-banner,.custom-cta) :is(h1,h2,h3,h4){color:var(--bpe-module-heading,var(--bpe-dark-heading))!important}
body:not(.admin-body) :is(.custom-banner,.custom-cta) :is(p,li){color:var(--bpe-module-body,var(--bpe-dark-body))!important}
/* Page-specific overrides are installed by theme.js for the current HTML page */
/* Contrast visibility for all-day activity badges and programme times */
body:not(.admin-body) .activity-day-pill{color:#443622!important;background:#ecdbb9}
body:not(.admin-body) .activity-filter.active{color:#fff4de!important;background:#16423b}
body:not(.admin-body) .public-influencer-tabs button.selected{color:#fff4de!important}
/* Colour studio preview is part of the admin, not the public site */
.colour-palette-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.colour-palette-group{border:1px solid #dbcba9;background:#fffdf8;padding:19px;border-radius:10px}
.colour-palette-group h4{margin:0 0 12px;color:#16413c;font:500 20px Georgia,serif}
.colour-palette-row{display:grid;grid-template-columns:1fr 62px 102px;align-items:center;gap:10px;margin:11px 0;color:#334c43;font-size:12px}
.colour-palette-row input[type=color]{height:38px;width:62px;border:1px solid #ceb58c;background:transparent;padding:2px;cursor:pointer;border-radius:6px}
.colour-palette-row input[type=text]{height:38px;width:102px;padding:6px 8px;font:600 11px monospace;color:#29443e;border:1px solid #cdbb9e;border-radius:5px}
.colour-demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}
.colour-demo-card{padding:22px;border:1px solid #d0b891;border-radius:10px;min-height:150px}
.colour-demo-card h3{font:500 25px/1.2 Georgia,serif;margin:9px 0}
.colour-demo-card p{font-size:13px;line-height:1.7;margin:5px 0}
.colour-contrast-status{font-size:12px;line-height:1.6;color:#295148;background:#f5f0e3;border:1px solid #d9c9a6;border-radius:7px;padding:12px;margin-top:12px}
.colour-contrast-status .warn{color:#a44034;font-weight:800}
.colour-contrast-status .pass{color:#276748;font-weight:800}
.colour-reset{background:#f5e8cd;color:#174139;border:1px solid #c5a368;padding:10px 14px;border-radius:7px;cursor:pointer;font-size:12px;font-weight:800}
@media(max-width:750px){.colour-palette-layout,.colour-demo-grid{grid-template-columns:1fr}.colour-palette-row{grid-template-columns:1fr 50px 97px}.colour-palette-row input[type=color]{width:50px}}

/* Editable neutral backgrounds stay consistent with light-text colour controls. */
body:not(.admin-body) .section-pad{background:var(--bpe-bg-light)}
body:not(.admin-body) .section-pad.wash,body:not(.admin-body) .wash{background:color-mix(in srgb,var(--bpe-bg-light),#ddc9a8 14%)}
body:not(.admin-body) .home-links{background:color-mix(in srgb,var(--bpe-bg-light),#d7bc8f 20%)}
body:not(.admin-body) .site-footer{background:var(--bpe-bg-light)}
body:not(.admin-body) .stats-strip{background:linear-gradient(180deg,var(--bpe-bg-light),color-mix(in srgb,var(--bpe-bg-light),#c6b391 13%))}
body:not(.admin-body) :is(.cta-band,.festival-schedule-teaser,.custom-cta,.vendor-process,.sponsors-empty){background:linear-gradient(135deg,var(--bpe-bg-dark),color-mix(in srgb,var(--bpe-bg-dark),#1c5446 19%))}
body:not(.admin-body) .btn-light{color:var(--bpe-button-gold-text)!important}

/* Accessibility repair (Nov 2026): nested light-section styles used to override
   dark panels, causing unreadable vendor headings and sponsor CTA headings. */
body:not(.admin-body) .vendor-process,
body:not(.admin-body) .sponsors-empty{color:var(--bpe-dark-body,#ece3d0)!important;}
body:not(.admin-body) .vendor-process :is(h2,h3,h4,strong,.process-step strong,.process-step b),
body:not(.admin-body) .sponsors-empty :is(h2,h3,h4,strong){
 color:var(--bpe-dark-heading,#fff5de)!important;
}
body:not(.admin-body) .vendor-process :is(p,li,span:not(.eyebrow)),
body:not(.admin-body) .sponsors-empty :is(p,li){
 color:var(--bpe-dark-body,#ece3d0)!important;
}
body:not(.admin-body) .vendor-process :is(small,.eyebrow),
body:not(.admin-body) .sponsors-empty :is(small,.eyebrow){
 color:var(--bpe-dark-accent,#e5c084)!important;
}
body:not(.admin-body) .archive-ceremony .ceremony-editorial .ceremony-manifesto{
 color:var(--bpe-quote-text,#fff5de)!important;
 background:#103d3d!important;
}
body:not(.admin-body) .archive-ceremony .archive-story :is(h2,h3),
body:not(.admin-body) .ceremony-editorial .ceremony-signoff{
 color:var(--bpe-light-heading,#173e39)!important;
}
body:not(.admin-body) .archive-ceremony .ceremony-editorial > p:not(.ceremony-manifesto):not(.ceremony-signoff),
body:not(.admin-body) .archive-ceremony .archive-story p{
 color:var(--bpe-light-body,#40584e)!important;
}
body:not(.admin-body) .sponsors-empty .btn,
body:not(.admin-body) .vendor-process .btn{color:var(--bpe-button-gold-text,#15382f)!important;}
body:not(.admin-body) .sponsors-empty .btn *,
body:not(.admin-body) .vendor-process .btn *{color:inherit!important;}
/* A custom section in a dark background must not inherit a light text override. */
body:not(.admin-body) :is(.custom-cta,.custom-banner) :is(h1,h2,h3,h4){color:var(--bpe-module-heading,var(--bpe-dark-heading))!important}
body:not(.admin-body) :is(.custom-cta,.custom-banner) :is(p,li){color:var(--bpe-module-body,var(--bpe-dark-body))!important}

/* Sponsorship enquiry block: reliable contrast even when older page palettes have overrides. */
body:not(.admin-body) .sponsorship-enquiry{background:linear-gradient(125deg,#092f39,#154c43);padding:78px 0;position:relative;overflow:hidden;border-top:1px solid #ac8a54;border-bottom:1px solid #ac8a54;}
body:not(.admin-body) .sponsorship-enquiry::before{content:"";position:absolute;width:380px;height:380px;right:-130px;top:-205px;border:1px solid #cdaa6957;border-radius:50%;pointer-events:none;}
body:not(.admin-body) .sponsorship-enquiry-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:45px;align-items:center;position:relative;z-index:1;}
body:not(.admin-body) .sponsorship-overline{display:block;text-transform:uppercase;letter-spacing:.18em;color:#edc785!important;font-size:10px;font-weight:800;margin-bottom:18px;}
body:not(.admin-body) .sponsorship-enquiry-copy h2{font-size:clamp(37px,4.6vw,60px);line-height:1.08;color:#fff6e6!important;margin:0 0 22px;}
body:not(.admin-body) .sponsorship-enquiry-copy p{color:#e6e8de!important;font-size:14px;line-height:1.85;max-width:620px;}
body:not(.admin-body) .sponsorship-benefits{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:29px;}
body:not(.admin-body) .sponsorship-benefits span{font-size:11px;letter-spacing:.025em;color:#f1cf92!important;}
body:not(.admin-body) .sponsorship-enquiry-card{background:#fffaf0;border:1px solid #dcc398;border-radius:15px;padding:30px;box-shadow:0 22px 50px #001d2133;}
body:not(.admin-body) .sponsorship-enquiry-card .sponsorship-overline{color:#94703b!important;}
body:not(.admin-body) .sponsorship-enquiry-card h3{color:#173d37!important;font-size:clamp(25px,3vw,34px);line-height:1.2;margin:0 0 13px;}
body:not(.admin-body) .sponsorship-enquiry-card p{color:#45594d!important;font-size:13px;line-height:1.8;margin-bottom:22px;}
body:not(.admin-body) .sponsorship-enquiry-card .btn{width:100%;text-align:center;justify-content:center;white-space:normal;padding:15px 18px;}
body:not(.admin-body) .sponsorship-enquiry-card small{display:block;font-size:10px;line-height:1.6;margin-top:12px;text-align:center;color:#685d4b!important;}
@media(max-width:800px){body:not(.admin-body) .sponsorship-enquiry-grid{grid-template-columns:1fr;gap:22px}body:not(.admin-body) .sponsorship-enquiry{padding:48px 0}body:not(.admin-body) .sponsorship-enquiry-card{padding:24px}}
