/* One layout for every public page (Dec 5 2026, Ife: "layout consistency across all pages").
   The Worker adds this file last in <head> on every page except /linkedin, /linktree and the
   private pages, so it wins over each page's own styles. Values were matched to Contact and Teams.
   Phone first, then 768px and up. */
:root {
  --ly-bar: 60px; --ly-side: 24px; --ly-gap: 56px; --ly-logo: 18px; --ly-back: 13px;
  --ly-h1: 39px; --ly-h2: 30px; --ly-sub-w: calc(100vw - 48px);
}
@media (min-width: 768px) {
  :root { --ly-bar: 68px; --ly-side: 40px; --ly-gap: 80px; --ly-logo: 22px; --ly-back: 13.5px; --ly-h1: clamp(39px, 6vw, 67px); --ly-h2: 40px; --ly-sub-w: 640px; }
}

/* ---------- Top bar: logo left, "Back to ifeshoola.com" right ---------- */
.bw-nav, .ab-nav, .cs-nav, .tm-nav, .ifn-nav, .pc-nav, .ifp nav, nav:has(> .nav-container), .sqs-header, .sp-nav {
  padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important;
}
.sqs-header { padding-top: env(safe-area-inset-top, 0px) !important; }
.bw-nav .bw-wrap, .ab-nav .ab-bar, .cs-nav .cs-bar, .tm-nav .tm-bar, .ifn-nav .ifn-bar, .pc-nav .pc-bar,
.ifp nav .wrap, nav > .nav-container, .sqs-header .sqs-layout, .sp-nav .bar {
  height: var(--ly-bar) !important; min-height: 0 !important; max-width: none !important; width: 100% !important;
  margin: 0 !important; padding: 0 var(--ly-side) !important; box-sizing: border-box !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important;
}
.bw-logo, .ab-logo, .cs-logo, .tm-logo, .ifn-logo, .pc-logo, .ifp nav .logo, nav .brand-logo, .sqs-header .sqs-brand, .sp-nav .logo {
  font-family: 'Fraunces', Georgia, serif !important; font-size: var(--ly-logo) !important; font-weight: 500 !important;
  line-height: 1 !important; letter-spacing: -0.01em !important;
}
.bw-back, .ab-home, .cs-back-home, .tm-home, .ifn-home, .pc-back, .ifp nav .back, nav .back-link, .ss-back-home, .sp-nav .home {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; font-size: var(--ly-back) !important;
  font-weight: 500 !important; line-height: 1 !important;
}

/* ---------- Hero title and subtitle ---------- */
.bw-contact-hero, .ifp .hero, .hero-band .hero, .sp .hero, .ifn-hero, .cs section.hero, .tm .top, .pc-hero { padding-top: var(--ly-gap) !important; }
.hero-section { padding-top: calc(var(--ly-bar) + var(--ly-gap)) !important; }
.bw-contact-hero h1, .ifp .hero h1, .hero-band .hero-title, .hero-section h1, .sp .hero h1, .ifn-hero h1, .cs section.hero h1, .tm .top h1, .pc-hero h1 {
  font-family: 'Fraunces', Georgia, serif !important; font-weight: 400 !important; font-size: var(--ly-h1) !important;
  line-height: 1 !important; letter-spacing: -0.01em !important; margin-top: 0 !important; margin-bottom: 20px !important;
}
.bw-contact-hero h1 ~ p:not([class]), .ifp .hero h1 ~ p, .hero-band .hero-subtext, .hero-section .ss-hero-lead, .sp .hero h1 ~ p,
.ifn-hero h1 ~ p, .cs section.hero h1 ~ p, .tm .top h1 ~ p, .pc-hero h1 ~ p {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; font-size: 16px !important; font-weight: 500 !important;
  line-height: 1.65 !important; letter-spacing: 0.15px !important; margin-top: 0 !important;
  width: min(640px, var(--ly-sub-w)) !important; max-width: none !important;
  margin-left: calc(50% - min(320px, var(--ly-sub-w) / 2)) !important; margin-right: 0 !important; text-wrap: wrap !important;
}
/* subtitle colour: softer white on plain black, full white over a photo or video */
.bw-contact-hero h1 ~ p:not([class]), .ifp .hero h1 ~ p, .sp .hero h1 ~ p, .ifn-hero h1 ~ p, .cs section.hero h1 ~ p { color: rgba(255,255,255,.82) !important; }
.hero-band .hero-subtext, .hero-section .ss-hero-lead, .ifn-hero:has(video) h1 ~ p, .bw-photo-hero h1 ~ p:not([class]), .pc-hero h1 ~ p { color: #fff !important; }

/* ---------- Section headings ---------- */
h2:not(.tm *):not(.blog-item-content-wrapper *):not(.entry-content *):not(.ifn-consent *):not(footer *):not(.ly-foot *) {
  font-size: var(--ly-h2) !important; line-height: 1.15 !important;
}

/* ---------- Buttons ---------- */
.bw-btn:not(.bw-nav *), .btn, .ifn-btn, .pc-btn, .ss-btn, .btn-primary, .btn-secondary, .philosophy-link,
.sqs-system-button, .formkit-submit {
  min-height: 51px !important; padding: 0 26px !important; box-sizing: border-box !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; font-size: 15px !important; font-weight: 600 !important;
  line-height: 1.2 !important; letter-spacing: 0 !important; border-radius: 6px !important; text-transform: none !important;
}

/* ---------- Footer (the Worker swaps every page's own footer for this one) ---------- */
.ly-foot { background: #0E0E0E; color: rgba(255,255,255,.7); font: 500 14px/1.5 'Plus Jakarta Sans', system-ui, sans-serif; border-top: 1px solid rgba(255,255,255,.08); }
.ly-foot .ly-in { padding: 32px var(--ly-side); display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.ly-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ly-foot a { color: #fff; text-decoration: none; }
.ly-foot a:hover { color: rgba(255,255,255,.7); }
@media (max-width: 767px) { .ly-foot .ly-in { flex-direction: column; align-items: flex-start; } }

/* Pages whose top bar is fixed push their content down by the bar's height */
.cs, .sp, .tm, .pc, .ab { padding-top: var(--ly-bar) !important; }

/* Teams sits inside a Squarespace code block that is narrower than the screen: let the bar run edge to edge */
nav:has(> .nav-container) { width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: 0 !important; }
@media (min-width: 768px) {
  .sqs-code-container:has(> nav > .nav-container) { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: none !important; }
  nav:has(> .nav-container) { width: 100% !important; margin-left: 0 !important; }
}

/* Form buttons keep their text in an inner span */
.sqs-system-button *, .formkit-submit * { font-size: 15px !important; font-weight: 600 !important; font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; }

/* ---------- Older Squarespace-built pages (forms, payment pages, blog posts) ---------- */
body:has(#site-title) #header .header-announcement-bar-wrapper { padding: 0 var(--ly-side) !important; background: #0E0E0E !important; }
body:has(#site-title) #header .header-inner { height: var(--ly-bar) !important; min-height: var(--ly-bar) !important; padding-top: 0 !important; padding-bottom: 0 !important; align-items: center !important; }
body:has(#site-title) #header .header-display-desktop, body:has(#site-title) #header .header-display-mobile { min-height: var(--ly-bar) !important; }
body:has(#site-title) #header #site-title { font-size: 0 !important; }
body:has(#site-title) #header #site-title::after { content: "Ife Shoola" !important; font: 500 var(--ly-logo)/1 'Fraunces', Georgia, serif !important; letter-spacing: -0.01em !important; color: #fff !important; }
body:has(#site-title) #header .header-nav-item:first-child a { font-size: 0 !important; padding: 0 !important; background: none !important; }
body:has(#site-title) #header .header-nav-item:first-child a::before { content: none !important; }
body:has(#site-title) #header .header-nav-item:first-child a::after { content: "\2190\00a0 Back to ifeshoola.com" !important; font: 500 var(--ly-back)/1 'Plus Jakarta Sans', system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: rgba(255,255,255,.8) !important; white-space: nowrap; }
/* their page title matches the other pages' titles */
body:has(#site-title):not(.view-item) #sections > section:first-child :is(h1, h2):first-of-type {
  font-family: 'Fraunces', Georgia, serif !important; font-weight: 400 !important; font-size: var(--ly-h1) !important; line-height: 1 !important; letter-spacing: -0.01em !important;
}

/* Form Send buttons: the form pages set their own button font with an id selector, so match it with a stronger one */
html body #page .page-section form button.sqs-system-button[type="submit"] {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0 !important;
}

/* Older Squarespace pages: logo centred in the bar, back link 24/40px from the edge like every other page */
body:has(#site-title) #header #site-title { display: flex !important; align-items: center !important; height: var(--ly-bar) !important; }
body:has(#site-title) #header #site-title::after { display: block !important; }
body:has(#site-title) #header .header-nav-item { margin-right: 0 !important; margin-left: 0 !important; }
body:has(#site-title) #header .header-nav-item:not(:first-child) { display: none !important; }
/* their page title: the first heading in the first section */
body:has(#site-title):not(.view-item) :is(#sections, .region, #page) > section:first-of-type .sqs-html-content > :is(h1, h2):first-child {
  font-family: 'Fraunces', Georgia, serif !important; font-weight: 400 !important; font-size: var(--ly-h1) !important; line-height: 1 !important; letter-spacing: -0.01em !important;
}

/* Plain text heroes (Contact, Notes, Speaking, Private Coaching, Client Stories, Before our session):
   the same space below the text as above the title, so pages with the same amount of text have the same hero height.
   Heroes with a photo or video (Teams, Events, Teams form, Follow-up, Premium Circle) keep their own height. */
.bw-contact-hero:not(.bw-photo-hero):not(.bw-follow-hero), .ifp .hero, .sp .hero, .ifn-hero, .cs section.hero { padding-bottom: var(--ly-gap) !important; }

/* Hero buttons on sub pages size to their text (Private Coaching's was full width on phones) */
.ifp .hero .btn { width: auto !important; }
.hero-band .hero-ctas { align-items: center !important; justify-content: center !important; }
.hero-band .hero-ctas a { width: auto !important; }
