/* ===============================================================
   SCHOOL OF PUBLIC SPEAKING  /  PROFESSIONAL EDITORIAL DESIGN
   Version 2026-11-16. Loaded after style.css and brand-light.css.
   Design: white surfaces, Zimbabwe SPS navy + maroon, clear editorial typography.
   Layout-only enhancements. No alteration of data, authentication, or APIs.
   =============================================================== */
:root {
  --sps-blue:#003366;
  --sps-blue-strong:#002950;
  --sps-red:#800000;
  --sps-red-strong:#990e16;
  --sps-text:#17283d;
  --sps-secondary:#52657b;
  --sps-hairline:#e1e8ef;
  --sps-cloud:#f5f8fb;
  --sps-card-shadow:0 14px 38px rgba(0,39,80,.055);
  --sps-card-shadow-hover:0 20px 44px rgba(0,39,80,.11);
  --sps-radius:17px;
}
html { background:#fff; color-scheme:light !important; scroll-padding-top:95px; }
body.sps-light-theme, #root, #root > div, #root main { background:#fff !important; color:var(--sps-text) !important; }
body.sps-light-theme {font-family:'Public Sans',Arial,sans-serif; font-size:16px; line-height:1.6; }
#root * { -webkit-tap-highlight-color:transparent; }
#root :where(p,li) { line-height:1.7; }
#root :where(h1,h2,h3,h4) {font-family:'Fraunces',Georgia,serif; font-optical-sizing:auto; letter-spacing:-.027em; color:var(--sps-blue);}
#root :where(button,a) {touch-action:manipulation;}
#root :where(a,button,input,textarea,select):focus-visible {outline:3px solid rgba(0,51,102,.5) !important; outline-offset:3px;}
#root :where(input,textarea,select) {font-family:inherit;}
#root :where(input,textarea,select):not([type="checkbox"]):not([type="radio"]) {background:#fff; border-color:#cad7e5; border-radius:11px;}
#root :where(input,textarea,select):focus {border-color:var(--sps-blue) !important; box-shadow:0 0 0 3px rgba(0,51,102,.085);}
#root :where(button,a) {transition-property:color,background-color,border-color,box-shadow,transform;transition-duration:.18s;}
/* Global navigation: visually grounded rather than a dashboard widget. */
#main-navigation-header {position:sticky; top:0; z-index:60 !important; background:#fff !important; box-shadow:0 2px 24px rgba(10,36,67,.045) !important; border-bottom:1px solid var(--sps-hairline) !important;}
#main-navigation-header >div {max-width:1350px !important; min-height:64px;}
#main-navigation-header nav {background:#f6f8fb !important; border:1px solid #e0e8f1 !important; border-radius:13px !important; padding:4px !important; box-shadow:none !important;}
#main-navigation-header button[id^="nav-tab-"] {font-family:'Public Sans',Arial,sans-serif; font-size:13px !important; font-weight:650; letter-spacing:0; border-radius:9px !important;}
#main-navigation-header button[id^="nav-tab-"][class*="bg-blue-"] {background:var(--sps-blue) !important;box-shadow:0 2px 8px rgba(0,51,102,.15) !important;}
#main-navigation-header #header-whatsapp-btn {background:var(--sps-red) !important; border-radius:9px !important; box-shadow:none !important;}
#main-navigation-header #header-portal-login-btn {border-radius:9px !important; background:#fff !important; border-color:#d0dce8 !important; font-weight:700;}
/* HERO: composed two-column feature, no giant empty first fold. */
#sps-home-snippets > section:first-child {
  min-height:auto !important;
  background:#fff !important;
  border-bottom:1px solid var(--sps-hairline) !important;
}
#sps-home-snippets > section:first-child > div:first-child {opacity:1 !important; background:transparent !important;}
#sps-home-snippets > section:first-child > div:first-child >div {background-image:none !important; background:transparent !important;}
#sps-home-snippets > section:first-child > div:nth-child(2) {z-index:2 !important;}
#sps-home-snippets > section:first-child > div:nth-child(2) >div {box-shadow:none !important;border:1px solid #dbe4ec !important;border-radius:9px !important; background:#f8fafc !important; padding:8px 14px !important;}
#sps-home-snippets > section:first-child > div:nth-child(2) span {letter-spacing:.035em;}
#sps-home-snippets > section:first-child > div:nth-child(3) {z-index:2;}
#sps-home-snippets > section:first-child h1 {font-size:clamp(2.55rem,5vw,4.75rem) !important; font-weight:600 !important; line-height:1.11 !important; color:var(--sps-blue) !important; text-shadow:none; letter-spacing:-.05em;}
#sps-home-snippets > section:first-child h1 .text-cutout-animated {color:var(--sps-red) !important;}
#sps-home-snippets > section:first-child h1 >span:nth-child(2) {transition:none !important; opacity:1 !important;transform:none !important;}
#sps-home-snippets > section:first-child [class*="animate-"] {animation:none !important;}
#sps-home-snippets > section:first-child > div:nth-child(3) >p {color:var(--sps-secondary) !important; font-size:clamp(1rem,1.2vw,1.13rem) !important; line-height:1.85 !important;}
#sps-home-snippets > section:first-child > div:nth-child(3) strong {color:var(--sps-blue) !important;}
#sps-home-snippets > section:first-child > div:nth-child(3) >div:first-child >div {background:#f1f5f9 !important; border-color:#d9e3ed !important; color:var(--sps-blue) !important; border-radius:7px !important;}
#sps-home-snippets > section:first-child > div:nth-child(3) >div:first-child svg {color:var(--sps-red) !important;}
#hero-whatsapp-desk-btn,#hero-explore-programs-btn,#hero-view-gallery-btn {min-height:49px; font-size:13px !important; font-weight:700 !important; border-radius:9px !important; box-shadow:none !important; transform:none !important;}
#hero-whatsapp-desk-btn {background:var(--sps-red) !important;}
#hero-whatsapp-desk-btn:hover {background:var(--sps-red-strong) !important;}
#hero-explore-programs-btn {background:var(--sps-blue) !important;}
#hero-explore-programs-btn:hover {background:var(--sps-blue-strong) !important;}
#hero-view-gallery-btn {background:#fff !important; border:1px solid #cad7e4 !important;color:var(--sps-blue) !important;}
#hero-view-gallery-btn:hover {background:#f3f7fb !important;}
/* Original hero metric strip: make it read like an elegant institutional factbar. */
#sps-home-snippets > section:first-child > div:last-child {z-index:2; background:#fff; border-top:1px solid #e3eaf0 !important; color:var(--sps-secondary) !important;}
#sps-home-snippets > section:first-child > div:last-child [class*="text-emerald-"] {color:var(--sps-blue) !important;}
#sps-home-snippets > section:first-child > div:last-child [class*="text-amber-"] {color:var(--sps-red) !important;}
/* Branded graphic built from actual on-site teaching principles, not stock photography. */
.sps-hero-editorial {position:relative; z-index:2; min-height:440px; overflow:hidden; border:1px solid #dbe5ef; border-radius:24px; background:linear-gradient(155deg,#f8fbfd 0%,#eff5fa 100%); box-shadow:0 22px 54px rgba(0,51,102,.09); padding:28px 30px 24px; display:flex; flex-direction:column; justify-content:space-between; isolation:isolate;}
.sps-hero-editorial::before {content:""; position:absolute; width:390px; height:390px; border:1px solid #d0dfea; border-radius:50%; top:-180px; right:-175px; z-index:-1;box-shadow:0 0 0 50px rgba(0,51,102,.025),0 0 0 100px rgba(0,51,102,.018);}
.sps-hero-editorial::after {content:""; position:absolute; width:240px;height:4px;right:-45px;bottom:115px;background:var(--sps-red);transform:rotate(-25deg);opacity:.7;z-index:-1;}
.sps-hero-editorial-top {display:flex;justify-content:space-between;gap:16px;align-items:center;}
.sps-edition-kicker,.sps-edition-number {font-family:'IBM Plex Mono',monospace;font-size:10px;letter-spacing:.13em;font-weight:600;}
.sps-edition-kicker {color:var(--sps-red);}
.sps-edition-number {color:#6b8195;}
.sps-editorial-center {margin:40px 0 38px;text-align:center;}
.sps-editorial-graphic {width:min(100%,360px);height:128px;margin:0 auto 24px;border-radius:17px 17px 17px 3px;background:var(--sps-blue);box-shadow:18px 17px 0 rgba(128,0,0,.1);transform:rotate(-3deg);display:flex;align-items:center;justify-content:center;position:relative;}
.sps-editorial-graphic::before {content:"“";position:absolute;font-family:Georgia,serif;font-size:120px;line-height:1;color:#c9d8e5;opacity:.23;left:16px;top:-19px;}
.sps-editorial-graphic span {display:block;font-family:'Fraunces',Georgia,serif;font-size:clamp(3rem,5vw,4.1rem);font-weight:600;letter-spacing:.04em;color:white;line-height:1;}
.sps-editorial-caption {font-family:'Fraunces',Georgia,serif !important; color:var(--sps-blue) !important;font-size:clamp(1.2rem,1.7vw,1.55rem);font-weight:600;line-height:1.3 !important;}
.sps-editorial-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #cbd9e6;padding-top:17px;gap:12px;}
.sps-editorial-steps >div {display:flex;flex-direction:column;gap:7px;}
.sps-editorial-steps span {color:var(--sps-red);font:600 12px 'IBM Plex Mono',monospace;}
.sps-editorial-steps strong {color:#254763;font:600 12px/1.5 'Public Sans',Arial,sans-serif;}
@media(min-width:1100px) {
 #sps-home-snippets > section:first-child {display:grid !important;grid-template-columns:minmax(0,1.04fr) minmax(350px,.96fr);grid-template-rows:auto auto auto;align-items:center;column-gap:clamp(30px,4vw,80px);row-gap:0;padding:26px max(38px,calc((100% - 1260px)/2)) 0;}
 #sps-home-snippets > section:first-child > div:first-child {grid-area:1/1/4/3;pointer-events:none;}
 #sps-home-snippets > section:first-child > div:nth-child(2) {grid-area:1/1/2/3;padding:0 !important;margin-bottom:8px;justify-content:flex-start !important;max-width:none !important;}
 #sps-home-snippets > section:first-child > div:nth-child(3) {grid-area:2/1/3/2;padding:36px 0 58px !important;width:100%;max-width:680px !important;text-align:left !important;align-items:flex-start !important;}
 #sps-home-snippets > section:first-child > div:nth-child(3) >div:first-child {justify-content:flex-start !important;}
 #sps-home-snippets > section:first-child h1 {text-align:left !important;align-items:flex-start !important;max-width:660px !important;min-height:0 !important;}
 #sps-home-snippets > section:first-child > div:nth-child(3) >p {text-align:left !important;max-width:600px !important;padding-left:0 !important;}
 #sps-home-snippets > section:first-child > div:nth-child(3) >div:last-child {justify-content:flex-start !important;max-width:none !important;}
 #sps-home-snippets > section:first-child .sps-hero-editorial {grid-area:2/2/3/3;min-width:0;}
 #sps-home-snippets > section:first-child > div:last-child {grid-area:3/1/4/3;padding:21px 0 25px !important;max-width:none !important;}
}
@media(min-width:700px) and (max-width:1099px) {
 #sps-home-snippets > section:first-child {padding-bottom:0;}
 #sps-home-snippets > section:first-child > div:nth-child(3) {padding:48px 24px 32px !important;}
 #sps-home-snippets > section:first-child h1 {min-height:0 !important;}
 .sps-hero-editorial {max-width:780px;min-height:300px;margin:8px auto 45px;}
 .sps-editorial-graphic {height:100px;}
 .sps-editorial-center {margin:20px 0;}
}
@media(max-width:699px) {
 #sps-home-snippets > section:first-child > div:nth-child(2) {padding:14px 16px 0 !important;}
 #sps-home-snippets > section:first-child > div:nth-child(3) {padding:30px 18px 32px !important;}
 #sps-home-snippets > section:first-child h1 {min-height:0 !important;max-width:520px;font-size:clamp(2.45rem,10vw,3.35rem) !important;}
 #sps-home-snippets > section:first-child > div:nth-child(3) >div:last-child {margin-top:27px !important;}
 #hero-whatsapp-desk-btn,#hero-explore-programs-btn,#hero-view-gallery-btn {min-height:48px;}
 .sps-hero-editorial {margin:0 16px 32px;min-height:0;padding:19px 20px 19px;border-radius:17px;box-shadow:none;}
 .sps-editorial-center {margin:14px 0 22px;}
 .sps-editorial-graphic {height:82px;max-width:220px;margin-bottom:17px;box-shadow:9px 9px 0 rgba(128,0,0,.09);}
 .sps-editorial-graphic span {font-size:2.6rem;}
 .sps-editorial-graphic::before {font-size:76px;top:-13px;}
 .sps-editorial-caption {font-size:1.15rem !important;}
 .sps-editorial-steps {gap:8px;}
 .sps-editorial-steps strong {font-size:10px;}
 #sps-home-snippets > section:first-child > div:last-child {padding:16px 15px !important;}
}
/* Content page rhythm and institutional section treatments. */
#sps-home-snippets {background:#fff !important;}
#sps-home-snippets > section:not(:first-child),
#sps-courses-section,#sps-about-section,#sps-gallery-section,#sps-articles-section {
  color:var(--sps-text);scroll-margin-top:88px;
}
#sps-home-snippets > section:not(:first-child) {padding-top:clamp(42px,5vw,88px);padding-bottom:clamp(42px,5vw,88px);}
#sps-home-snippets h2, #sps-courses-section h1, #sps-about-section h1,
#sps-gallery-section h1,#sps-articles-section h1 {color:var(--sps-blue) !important;font-weight:600;letter-spacing:-.04em;line-height:1.16;}
#root main :is(.shadow-begg-red,.shadow-begg-blue,.shadow-begg-sm) {box-shadow:var(--sps-card-shadow) !important;}
#root main [class*="border-[#0A1128]"] {border-color:var(--sps-hairline) !important;}
#root main [class*="border-[3px]"] {border-width:1px !important;}
#root main [class*="border-[4px]"] {border-width:1px !important;}
#root main :is(.rounded-3xl,.rounded-2xl) {border-radius:var(--sps-radius);}
#root main :is(.shadow-xl,.shadow-2xl) {box-shadow:var(--sps-card-shadow) !important;}
/* Information cards: consistent padding, size and affordance. */
#featured-courses :is(article,[class*="rounded-3xl"]),
#sps-courses-section :is(article,[class*="rounded-3xl"]),
#sps-articles-section :is(article,[class*="rounded-3xl"]) {border-color:var(--sps-hairline) !important;}
#featured-courses [class*="group"][class*="rounded"],
#sps-courses-section [class*="group"][class*="rounded"],
#sps-articles-section [class*="group"][class*="rounded"] {transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease;}
#featured-courses [class*="group"][class*="rounded"]:hover,
#sps-courses-section [class*="group"][class*="rounded"]:hover,
#sps-articles-section [class*="group"][class*="rounded"]:hover {box-shadow:var(--sps-card-shadow-hover) !important;border-color:#ccd9e6 !important;}
/* Readable course and editorial header treatment. */
#sps-courses-section >div:first-child,#sps-articles-section >div:first-child {max-width:920px;}
#sps-courses-section >div:first-child p,#sps-articles-section >div:first-child p {color:var(--sps-secondary);}
/* About: remove theatrical framing, retain founder portrait and useful biography. */
#sps-about-section >div:first-child {border:1px solid var(--sps-hairline) !important;border-radius:22px !important;background:#fff !important;padding:clamp(22px,4vw,55px) !important;box-shadow:var(--sps-card-shadow) !important;}
#sps-about-section >div:first-child img {border-radius:13px !important;}
#sps-about-section >div:first-child [class*="aspect-[4/5]"] {border:1px solid #e0e8f0 !important;box-shadow:0 10px 32px rgba(0,39,80,.1) !important;}
#sps-about-section >div:first-child h2 {color:var(--sps-blue) !important;}
/* Gallery: white header, softer containers, photo-first aspect ratios. */
#sps-gallery-section >div.relative.rounded-3xl {background:#f9fbfd !important;border:1px solid var(--sps-hairline) !important;border-radius:21px !important;box-shadow:none !important;}
#sps-gallery-section :is(img,video) {object-fit:cover;}
#sps-gallery-section button,#sps-articles-section button,#sps-courses-section button {font-family:'Public Sans',Arial,sans-serif;}
#sps-gallery-section [class*="bg-slate-950"] {background:#f2f6fa !important;}
#sps-gallery-section [class*="border-slate-800"] {border-color:var(--sps-hairline) !important;}
/* Footer: dependable simple links and generous whitespace. */
#root footer {background:#fff !important;color:var(--sps-text) !important;border-top:1px solid var(--sps-hairline) !important;margin-top:48px;}
#root footer h3,#root footer h4 {font-family:'Fraunces',Georgia,serif; color:var(--sps-blue) !important;}
#root footer [class*="opacity-10"] {opacity:.045 !important;pointer-events:none;}
#root footer a:hover {color:var(--sps-red) !important;}
/* Compact, accessible mobile navigation. No bottom navigation. */
#mobile-bottom-quick-bar {display:none !important;}
@media(max-width:1023px) {
 #main-navigation-header >div {min-height:59px;}
 #main-navigation-header #mobile-menu-toggle-btn {height:42px !important;width:44px !important;border-radius:10px !important;background:#fff !important;border:1px solid #d6e0eb !important;box-shadow:none !important;}
 #main-navigation-header #mobile-menu-toggle-btn[aria-expanded="true"] {background:var(--sps-blue) !important;color:#fff !important;border-color:var(--sps-blue) !important;}
 .sps-mobile-menu-panel {box-shadow:0 20px 50px rgba(0,31,62,.14);padding-top:10px;padding-bottom:max(19px,env(safe-area-inset-bottom));border-radius:0 0 15px 15px;}
 .sps-mobile-menu-link {min-height:49px;font-size:14px;}
 .sps-mobile-menu-contact {background:var(--sps-red);border-radius:10px;}
}
@media(max-width:640px) {
 #sps-courses-section,#sps-gallery-section,#sps-articles-section,#sps-about-section {padding:30px 16px 55px !important;}
 #sps-home-snippets >section:not(:first-child) {padding:46px 0 !important;}
 #root h2 {line-height:1.18;}
 .sps-campus-grid {gap:14px;}
 .sps-campus-card {border-radius:14px !important;box-shadow:none !important;}
 #root main :is(button,a) {max-width:100%;}
}
@media(prefers-reduced-motion:reduce) {
 #root *,#root *::before,#root *::after {animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important;}
}
