/*
Theme Name: Literacy Impact 2026
Theme URI: https://www.literacyimpact.com.au/
Author: YSL Marketing
Author URI: https://yslconsulting.com.au/
Description: Block theme for Literacy Impact™. Brand colours (navy, teal, cream), Playfair Display and Montserrat, editable homepage sections.
Version: 1.1.3
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: literacy-impact-2026
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
.screen-reader-text:focus { clip: auto; }

/* Eyebrow label: small uppercase Montserrat */
.li-eyebrow {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.75rem !important;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--deep-teal);
	margin-bottom: 0;
}
.has-navy-background-color .li-eyebrow { color: var(--wp--preset--color--light-teal); }

/* Italic Playfair eyebrow used in the hero */
.li-quote-eyebrow {
	font-family: var(--wp--preset--font-family--playfair);
	font-style: italic;
	color: var(--wp--preset--color--light-teal);
}

/* Teal emphasis inside headings */
h1 em, h2 em, .li-display em { font-style: italic; color: var(--wp--preset--color--deep-teal); }
.has-navy-background-color h1 em, .has-navy-background-color h2 em, .has-navy-background-color .li-display em { color: var(--wp--preset--color--light-teal); }

/* ---------- Top bar ---------- */
.li-topbar { font-size: 0.8125rem; text-align: center; }
.li-topbar a { color: var(--wp--preset--color--light-teal); font-weight: 600; text-underline-offset: 3px; }
.li-topbar p { margin: 0; }

/* ---------- Header ---------- */
.li-header .wp-block-site-title a,
.li-brand a { font-family: var(--wp--preset--font-family--montserrat); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--wp--preset--color--navy); }
.li-header .wp-block-navigation { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.li-header .wp-block-navigation a { text-decoration: none; }
.li-header .wp-block-navigation .current-menu-item > a,
.li-header .wp-block-navigation a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--wp--preset--color--teal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.li-header .li-nav-cta a { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--cream) !important; padding: 0.85rem 1.2rem; border-radius: 2px; }
.li-header .li-nav-cta a:hover { background: var(--wp--preset--color--deep-teal); }
@media (max-width: 1100px) { .li-header .li-nav-cta a { padding: 0.85rem 1.2rem; display: inline-block; } }

/* ---------- Buttons ---------- */
.is-style-li-outline-light .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--cream) !important; border: 1.5px solid rgba(246,243,236,0.55); }
.is-style-li-outline-light .wp-block-button__link:hover { border-color: var(--wp--preset--color--cream); }
.is-style-li-outline .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--navy) !important; border: 1.5px solid var(--wp--preset--color--navy); }
.is-style-li-outline .wp-block-button__link:hover { background: var(--wp--preset--color--navy) !important; color: var(--wp--preset--color--cream) !important; }
.is-style-li-light .wp-block-button__link { background: var(--wp--preset--color--cream) !important; color: var(--wp--preset--color--navy) !important; }
.li-textlink { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.li-textlink a { color: inherit; text-underline-offset: 5px; }

/* ---------- Hero ---------- */
.li-hero { position: relative; overflow: hidden; }
.li-hero .wp-block-cover__image-background { object-position: 30% 30%; }
.li-hero-proof { font-size: 0.875rem; color: #C9CDE0; border-top: 1px solid rgba(246,243,236,0.2); padding-top: 1.25rem; }

/* ---------- Trusted strip ---------- */
.li-trusted .li-logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.25rem; align-items: center; }
.li-trusted .li-logo-row p { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--wp--preset--color--ink); letter-spacing: 0.02em; }
.li-trusted .li-logo-row figure { margin: 0; }
.li-trusted .li-logo-row img { max-height: 44px; width: auto; }

/* ---------- Lists with rules ---------- */
.li-rule-list > * { margin: 0 !important; padding: 1.1rem 0; border-top: 1px solid #E4DFD3; }
.li-rule-list > *:last-child { border-bottom: 1px solid #E4DFD3; }
.li-tick-list { list-style: none; padding-left: 0; }
.li-tick-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.6rem; }
.li-tick-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.05rem; height: 1.05rem; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3 9.5L7 13.5L15 4.5' stroke='%232C6E78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.has-navy-background-color .li-tick-list li::before { filter: brightness(2.2); }

/* ---------- Cards ---------- */
.li-card { background: var(--wp--preset--color--white); border-radius: 2px; }
.li-card-top { border-top: 3px solid var(--wp--preset--color--teal); }
.li-stat { font-family: var(--wp--preset--font-family--playfair); color: var(--wp--preset--color--deep-teal); line-height: 1; margin: 0; }
.has-navy-background-color .li-stat { color: var(--wp--preset--color--light-teal); }
.li-source { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--deep-teal); font-weight: 600; }
.li-step-number { font-family: var(--wp--preset--font-family--playfair); font-size: 2.5rem; line-height: 1; color: var(--wp--preset--color--teal); margin: 0; }

/* Quote */
.li-quote { margin: 0; padding-left: 2rem; border-left: 6px solid var(--wp--preset--color--teal); }
.li-quote p { font-family: var(--wp--preset--font-family--playfair); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.3; }
.li-quote cite, .li-quote .wp-block-quote__citation { font-style: normal; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #5A607F; }

/* Bar chart (Crib Point) */
.li-bars { display: grid; gap: 0.6rem; }
.li-bar { display: grid; grid-template-columns: 9.5rem 1fr 3rem; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.li-bar span.track { height: 12px; background: #EEEAE0; border-radius: 2px; position: relative; overflow: hidden; }
.li-bar span.fill { position: absolute; inset: 0 auto 0 0; background: #9FB9BD; border-radius: 2px; }
.li-bar.is-hero span.fill { background: var(--wp--preset--color--deep-teal); }
.li-bar.is-hero { font-weight: 600; }
.li-bar b { font-weight: 600; text-align: right; }

/* ---------- Accordion (FAQ and Blueprint on mobile) ---------- */
.wp-block-details { border-top: 1px solid #D8D2C2; padding: 1.15rem 0; margin: 0 !important; }
.li-faq .wp-block-details:last-child { border-bottom: 1px solid #D8D2C2; }
.wp-block-details summary { font-family: var(--wp--preset--font-family--playfair); font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.3; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--montserrat); color: var(--wp--preset--color--deep-teal); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details > *:not(summary) { margin-top: 0.85rem; color: var(--wp--preset--color--ink); }

/* Term cards */
.li-terms { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; }
@media (max-width: 1000px) { .li-terms { grid-template-columns: repeat(5, minmax(15rem, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; } .li-terms > * { scroll-snap-align: start; } }

/* ---------- Footer ---------- */
.li-footer a { color: var(--wp--preset--color--mist); text-decoration: none; }
.li-footer a:hover { color: var(--wp--preset--color--white); text-decoration: underline; }
.li-footer .li-eyebrow { color: var(--wp--preset--color--light-teal); }
.li-footer .gform_wrapper input[type=email] { background: transparent; border: 1px solid rgba(246,243,236,0.35); color: var(--wp--preset--color--cream); padding: 0.85rem 1rem; border-radius: 2px; }
.li-footer .gform_wrapper .gform_button { background: var(--wp--preset--color--teal) !important; color: var(--wp--preset--color--navy) !important; border: 0; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.95rem 1.5rem; border-radius: 2px; }
.li-footer-legal { border-top: 1px solid rgba(246,243,236,0.18); font-size: 0.8125rem; color: #B9BDD6; }

/* ---------- Mobile only rules (Julie approved the condensed mobile homepage) ---------- */
@media (max-width: 781px) {
	.li-hide-mobile { display: none !important; }
	.li-faq .wp-block-details:nth-of-type(n+5) { display: none; }
	.li-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.li-hero .wp-block-button__link { width: 100%; }
	.li-quote { padding-left: 1.25rem; border-left-width: 4px; }
	.li-bar { grid-template-columns: 7rem 1fr 2.5rem; }
}
@media (min-width: 782px) { .li-show-mobile { display: none !important; } }

/* Homepage sections sit flush against each other */
.wp-block-post-content > .alignfull { margin-top: 0 !important; margin-bottom: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Placeholders (content to come) ---------- */
.li-placeholder { border: 1px dashed #9AA0BC !important; background: #FFFFFF; }
/* Health Check page has no top bar (visitors are already here) */
.page-id-2313 .li-topbar { display: none; }

/* ===== Page: about ===== */
/* About page extras. .li-page-about sits on the first section; later sections are reached with the sibling combinator. */

/* Hero */
.li-page-about .li-hero-lead { margin-top: 0.5rem; padding-top: 1.875rem; border-top: 1px solid #D8D2C2; max-width: 40rem; }
.li-page-about .li-offset-img img { object-position: center 25%; border-radius: 2px; }
@media (min-width: 782px) {
	.li-page-about .li-offset-img { margin-right: 28px; margin-bottom: 28px; }
	.li-page-about .li-offset-img img { box-shadow: 28px 28px 0 var(--wp--preset--color--light-teal); }
}

/* Why I do this work */
.li-page-about ~ * .li-why-lead { font-size: clamp(1.5rem, 2.6vw, 2.25rem) !important; }
.li-page-about ~ * .li-card-dark { background: rgba(246, 243, 236, 0.06); }

/* I understand the reality */
.li-page-about ~ * .li-doable em { font-family: var(--wp--preset--font-family--playfair); font-style: italic; font-size: 1.3em; color: var(--wp--preset--color--deep-teal); }
.li-page-about ~ * .li-workshop-img img { object-position: 40% center; border-radius: 2px; }

/* I still walk into classrooms */
.li-page-about ~ * .li-teach-video { margin: 0; }
.li-page-about ~ * .li-teach-video video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--wp--preset--color--navy); border-radius: 2px; }

/* Career */
.li-page-about ~ * .li-conference-img img { object-position: 30% 30%; border-radius: 2px; }
.li-page-about ~ * .li-career-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.li-page-about ~ * .li-career-grid > * { margin: 0 !important; }
.li-page-about ~ * .li-career-grid .li-step-number,
.li-page-about ~ * .li-founding-head .li-step-number { font-size: 1.375rem; }
.li-page-about ~ * .li-career-rows .wp-block-details { padding: 1rem 1.125rem; border-top: 0; border-bottom: 1px solid #EEEAE0; }
.li-page-about ~ * .li-career-rows .wp-block-details:last-child { border-bottom: 0; }
.li-page-about ~ * .li-career-rows summary { font-size: 1.1875rem; }
.li-page-about ~ * .li-founding-head { gap: 0.5rem 1.25rem; align-items: baseline; }
.li-page-about ~ * .li-founding-head > * { margin: 0; }
.li-page-about ~ * .li-founding-head h3 { font-size: clamp(1.4375rem, 2.4vw, 2.125rem) !important; }
.li-page-about ~ * .li-founding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.li-page-about ~ * .li-founding-grid > * { margin: 0 !important; }
.li-page-about ~ * .li-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.625rem; padding: 1.75rem 1.625rem; background: rgba(246, 243, 236, 0.07); border-radius: 2px; }
.li-page-about ~ * .li-tile > * { margin: 0 !important; }
.li-page-about ~ * .li-tile .li-stat { font-size: clamp(2.125rem, 3.6vw, 3.25rem) !important; }

/* Qualifications */
.li-page-about ~ * .li-qual-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.li-page-about ~ * .li-qual-grid > * { margin: 0 !important; }
.li-page-about ~ * .li-qual-rows > * { margin: 0 !important; }
.li-page-about ~ * .li-qual-rows .li-qual-row { padding: 1rem 1.125rem; border-bottom: 1px solid #EEEAE0; font-size: 1.0625rem; }
.li-page-about ~ * .li-qual-rows .wp-block-details { border-top: 0; padding: 0; }
.li-page-about ~ * .li-qual-rows .wp-block-details > .li-qual-row { margin-top: 0; }
.li-page-about ~ * .li-qual-rows .wp-block-details > .li-qual-row:last-child { border-bottom: 0; }
.li-page-about ~ * .li-qual-rows summary { padding: 1rem 1.125rem; font-family: var(--wp--preset--font-family--montserrat); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; align-items: center; }
.li-page-about ~ * .li-qual-rows .wp-block-details[open] summary { border-bottom: 1px solid #EEEAE0; }
.li-page-about ~ * .li-srsd .li-quote { border-left: 1px solid rgba(246, 243, 236, 0.2); padding-left: 3rem; }
.li-page-about ~ * .li-srsd .li-quote p { font-style: italic; font-size: clamp(1.3125rem, 2.4vw, 2rem); }
.li-page-about ~ * .li-srsd .li-quote cite { color: var(--wp--preset--color--light-teal); }

/* The book */
.li-page-about ~ * .li-book-cover img { mix-blend-mode: multiply; border-radius: 2px; width: 100%; }
.li-page-about ~ * .li-book-lead em { font-family: var(--wp--preset--font-family--playfair); font-size: 1.15em; color: var(--wp--preset--color--navy); }
.li-page-about ~ * .li-reviews > * { margin: 0 !important; }
.li-page-about ~ * .li-review { margin: 0; padding: 1.375rem 0; border-top: 1px solid #D3C9B2; }
.li-page-about ~ * .li-review:last-child { border-bottom: 1px solid #D3C9B2; }
.li-page-about ~ * .li-review p { font-family: var(--wp--preset--font-family--playfair); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.38; margin: 0; }
.li-page-about ~ * .li-review cite { display: block; margin-top: 0.625rem; font-style: normal; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #5A607F; }

/* FAQ: open cards on desktop, white rows on mobile */
@media (min-width: 782px) {
	.li-page-about ~ * .li-faq-cards .wp-block-details { background: var(--wp--preset--color--white); padding: 1.75rem 2rem; border: 0; border-radius: 2px; margin: 0 0 1rem !important; }
	.li-page-about ~ * .li-faq-cards .wp-block-details:last-child { border-bottom: 0; }
}

/* Mobile */
@media (max-width: 781px) {
	.li-page-about .li-about-hero-cols { flex-direction: column-reverse; }
	.li-page-about ~ * .li-why-cards .li-card-dark { border-top: 0; border-left: 3px solid var(--wp--preset--color--teal); padding: 1.25rem !important; }
	.li-page-about ~ * .li-why-cards .li-card-dark p { font-size: 1.1875rem !important; }
	.li-page-about ~ * .li-teach-cols { flex-direction: column; flex-wrap: nowrap !important; gap: 1.125rem; }
	.li-page-about ~ * .li-teach-cols .li-teach-text { display: contents; }
	.li-page-about ~ * .li-teach-cols .li-teach-text > *,
	.li-page-about ~ * .li-teach-cols > .wp-block-column { margin: 0 !important; }
	.li-page-about ~ * .li-teach-cols .li-teach-heading { order: -1; }
	.li-page-about ~ * .li-teach-video video { aspect-ratio: 3 / 4; }
	.li-page-about ~ * .li-founding { padding: 1.5rem 1.125rem !important; }
	.li-page-about ~ * .li-founding-head { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
	.li-page-about ~ * .li-founding-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
	.li-page-about ~ * .li-founding-grid > :nth-child(3),
	.li-page-about ~ * .li-founding-grid > :nth-child(6) { grid-column: 1 / -1; }
	.li-page-about ~ * .li-tile { padding: 1rem 0.875rem; }
	.li-page-about ~ * .li-tile p:not(.li-stat) { font-size: 0.8125rem !important; }
	.li-page-about ~ * .li-srsd { padding: 1.625rem 1.375rem !important; }
	.li-page-about ~ * .li-srsd .li-quote { border-left: 0; padding-left: 0; }
	.li-page-about ~ * .li-book-buttons .wp-block-button { width: 100%; }
	.li-page-about ~ * .li-book-buttons .wp-block-button__link { width: 100%; }
	.li-page-about ~ * .li-faq-cards { background: var(--wp--preset--color--white); border-radius: 2px; }
	.li-page-about ~ * .li-faq-cards .wp-block-details { padding: 1rem 1.125rem; border-top: 0; border-bottom: 1px solid #EEEAE0; }
	.li-page-about ~ * .li-faq-cards .wp-block-details:last-child { border-bottom: 0; }
	.li-page-about ~ * .wp-block-buttons:has(> .wp-block-button > a[href*="#apply"]) .wp-block-button,
	.li-page-about ~ * .wp-block-buttons:has(> .wp-block-button > a[href*="#apply"]) .wp-block-button__link { width: 100%; }
}

/* ===== Page: contact ===== */
/* Contact page extras. .li-page-contact sits on the first section; later sections are reached with the sibling combinator. */

/* Hero */
.li-page-contact .li-pill { align-self: flex-start; display: inline-block; padding: 0.45rem 0.75rem; background: rgba(159, 211, 218, 0.16); border-radius: 2px; }
.li-page-contact .li-contact-portrait img { object-position: center 25%; border-radius: 2px; }

/* Booking placeholder (GoHighLevel calendar not set up yet) */
.li-page-contact ~ * .li-placeholder { border: 1px dashed #9AA0BC; }
.li-page-contact ~ * .li-placeholder p { margin: 0; }
.li-page-contact ~ * .li-start-card .wp-block-button,
.li-page-contact ~ * .li-start-card .wp-block-button__link { width: 100%; text-align: center; }

/* Contact details card */
.li-page-contact ~ * .li-details-card > * { margin-block-start: 0.75rem; }
.li-page-contact ~ * .li-details-card .li-eyebrow { margin-block-start: 1.25rem; }
.li-page-contact ~ * .li-details-card .li-eyebrow + .li-details-email { margin-block-start: 0.375rem; }
.li-page-contact ~ * .li-details-email a { color: var(--wp--preset--color--cream); }

/* FAQ: open cards on desktop, plain rows on mobile (style.css defaults) */
@media (min-width: 782px) {
	.li-page-contact ~ * .li-details-card { margin-top: 4.125rem; }
	.li-page-contact ~ * .li-faq-cards .wp-block-details { background: var(--wp--preset--color--white); padding: 1.75rem 2rem; border: 0; border-radius: 2px; margin: 0 0 1rem !important; }
	.li-page-contact ~ * .li-faq-cards .wp-block-details:last-child { border-bottom: 0; }
}

@media (max-width: 781px) {
	.li-page-contact ~ * .li-enquiry-card { background: transparent; padding: 0 !important; }
	.li-page-contact ~ * .li-details-card { padding: 1.375rem !important; }
}

/* ===== Page: ways ===== */
/* Ways to Work With Us. Every selector is prefixed with .li-page-ways (class on the first section).
   ".li-page-ways ~ *" reaches the later sections, which are siblings of the first one. */

/* Chips (pill labels) */
.li-page-ways .li-chip,
.li-page-ways ~ * .li-chip { display: inline-block; width: fit-content; padding: 0.45rem 0.75rem; border-radius: 2px; background: var(--wp--preset--color--mist); color: var(--wp--preset--color--deep-teal); letter-spacing: 0.16em; }
.li-page-ways ~ * .has-navy-background-color .li-chip,
.li-page-ways ~ .has-navy-background-color .li-chip { background: rgba(159,211,218,0.16); color: var(--wp--preset--color--light-teal); }
.li-page-ways ~ * .has-light-teal-background-color .li-chip { background: var(--wp--preset--color--white); color: var(--wp--preset--color--navy); }
.li-page-ways ~ * .has-mist-background-color .li-chip { background: var(--wp--preset--color--white); }

/* Hairline rules */
.li-page-ways .li-rule-top,
.li-page-ways ~ * .li-rule-top { border-top: 1px solid #D8D2C2; padding-top: 1.25rem; }
.li-page-ways ~ * .li-card .li-rule-top { border-top-color: #E4DFD3; }
.li-page-ways ~ * .li-rule-top-light { border-top: 1px solid rgba(246,243,236,0.18); padding-top: 1.5rem; }
.li-page-ways ~ * .li-rule-top-light strong { color: var(--wp--preset--color--cream); font-weight: 600; }
.li-page-ways ~ * .li-card strong { color: var(--wp--preset--color--navy); font-weight: 600; }

/* Centred heading with short teal rule */
.li-page-ways ~ * .li-center-rule::after { content: ""; display: block; width: 64px; height: 2px; margin: 1.5rem auto 0; background: var(--wp--preset--color--teal); }

/* Split section with full height image */
.li-page-ways ~ * .li-fill-image { margin: 0; height: 100%; }
.li-page-ways ~ * .li-fill-image img { display: block; width: 100%; height: 100%; min-height: 820px; object-fit: cover; object-position: 50% center; }

/* Full width stacked buttons */
.li-page-ways ~ * .li-full-buttons { align-items: stretch !important; }
.li-page-ways ~ * .li-full-buttons .wp-block-button,
.li-page-ways ~ * .li-full-buttons .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }

.li-page-ways .li-hero-image img { object-position: 20% center; border-radius: 2px; }

/* Mobile compare table */
.li-page-ways ~ * .li-compare { width: 100%; border-collapse: collapse; font-size: 0.8125rem; line-height: 1.35; }
.li-page-ways ~ * .li-compare th,
.li-page-ways ~ * .li-compare td { padding: 0.5rem 0.25rem; border-bottom: 1px solid #EEEAE0; text-align: center; vertical-align: middle; }
.li-page-ways ~ * .li-compare thead th { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 0; padding: 0.75rem 0.25rem 0.6rem; }
.li-page-ways ~ * .li-compare thead th:first-child { text-align: left; vertical-align: bottom; font-size: 0.6875rem; letter-spacing: 0.12em; color: #5A607F; padding-left: 0; }
.li-page-ways ~ * .li-compare tbody th { text-align: left; font-weight: 400; padding: 0.5rem 0.5rem 0.5rem 0; min-height: 48px; }
.li-page-ways ~ * .li-compare .is-sig { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--cream); width: 86px; border-bottom-color: rgba(246,243,236,0.14); }
.li-page-ways ~ * .li-compare td:not(.is-sig), .li-page-ways ~ * .li-compare thead th:not(:first-child):not(.is-sig) { width: 60px; }
.li-page-ways ~ * .li-compare thead .is-sig { border-radius: 2px 2px 0 0; }
.li-page-ways ~ * .li-compare .li-yes { display: inline-block; width: 18px; height: 18px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3 9.5L7 13.5L15 4.5' stroke='%232C6E78' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.li-page-ways ~ * .li-compare .is-sig .li-yes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3 9.5L7 13.5L15 4.5' stroke='%239FD3DA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.li-page-ways ~ * .li-compare .li-no { display: inline-block; width: 12px; height: 2px; background: #C9C2B1; vertical-align: middle; }
.li-page-ways ~ * .li-compare .is-investment th { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #5A607F; border-bottom: 0; }
.li-page-ways ~ * .li-compare .is-investment td { border-bottom: 0; font-size: 0.75rem; }
.li-page-ways ~ * .li-compare .is-investment td.is-sig { font-size: 0.6875rem; border-radius: 0 0 2px 2px; }
.li-page-ways ~ * .li-compare .is-investment b { display: block; font-weight: 600; }
.li-page-ways ~ * .li-compare .is-investment span { display: block; font-size: 0.625rem; }
.li-page-ways ~ * .li-pathway-card { margin-top: 0.75rem; }

/* Mobile */
@media (max-width: 781px) {
	.li-page-ways .li-reverse-mobile { flex-direction: column-reverse; }
	.li-page-ways .li-hero-image img { aspect-ratio: 4/3 !important; }
	.li-page-ways ~ * .li-full-buttons-mobile { flex-direction: column; align-items: stretch; }
	.li-page-ways ~ * .li-full-buttons-mobile .wp-block-button,
	.li-page-ways ~ * .li-full-buttons-mobile .wp-block-button__link { width: 100%; text-align: center; }
}

/* ===== Page: ble ===== */
/* Building Literacy Excellence. Every selector is prefixed with .li-page-ble (class on the first section).
   ".li-page-ble ~ *" reaches the later sections, which are siblings of the first one. */

/* Chip label */
.li-page-ble .li-chip { display: inline-block; width: fit-content; padding: 0.45rem 0.75rem; border-radius: 2px; background: rgba(159,211,218,0.16); color: var(--wp--preset--color--light-teal); letter-spacing: 0.16em; }

/* Hero split with full height image */
.li-page-ble .li-fill-image { margin: 0; height: 100%; }
.li-page-ble .li-fill-image img { display: block; width: 100%; height: 100%; min-height: 720px; object-fit: cover; object-position: 50% center; }
.li-page-ble .li-split-text .li-display { margin-top: 0.5rem; }

/* Hairline rules */
.li-page-ble .li-rule-top-light,
.li-page-ble ~ * .li-rule-top-light { border-top: 1px solid rgba(246,243,236,0.2); padding-top: 1.6rem; }
.li-page-ble ~ * .li-rule-top { border-top: 1px solid #D8D2C2; padding-top: 1.1rem; }
.li-page-ble ~ * .li-rule-mist { border-top-color: #C7DEE1; }

/* Implementation Pathway graphic */
.li-page-ble ~ * .li-pathway { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--cream); border-radius: 2px; padding: 2.25rem 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.li-page-ble ~ * .li-pathway p { margin: 0; }
.li-page-ble ~ * .li-pathway-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wp--preset--color--light-teal); }
.li-page-ble ~ * .li-pathway-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 0.625rem; }
.li-page-ble ~ * .li-pathway-steps li { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.125rem 0.875rem; background: rgba(246,243,236,0.07); border-top: 3px solid var(--wp--preset--color--teal); border-radius: 2px; font-family: var(--wp--preset--font-family--playfair); }
.li-page-ble ~ * .li-pathway-steps .num { font-size: 1.125rem; color: var(--wp--preset--color--light-teal); }
.li-page-ble ~ * .li-pathway-steps .name { font-size: 1.375rem; line-height: 1.2; }
.li-page-ble ~ * .li-pathway-note { font-size: 0.875rem; color: #E4E1D8; }

/* Outcome cards on navy */
.li-page-ble ~ * .li-card-dark { background: rgba(246,243,236,0.07); }

/* Outcomes as tap to open on navy (mobile) */
.li-page-ble ~ * .li-outcomes .wp-block-details { border-top-color: rgba(246,243,236,0.18); }
.li-page-ble ~ * .li-outcomes .wp-block-details:last-child { border-bottom: 1px solid rgba(246,243,236,0.18); }
.li-page-ble ~ * .li-outcomes .wp-block-details summary { color: var(--wp--preset--color--cream); }
.li-page-ble ~ * .li-outcomes .wp-block-details summary::after { color: var(--wp--preset--color--teal); }
.li-page-ble ~ * .li-outcomes .wp-block-details > *:not(summary) { color: #E4E1D8; }

/* Support list: two columns with rules */
.li-page-ble ~ * .li-support-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 2rem; margin: 0; }
.li-page-ble ~ * .li-support-list li { margin: 0; padding-top: 1.1rem; padding-bottom: 1.1rem; border-top: 1px solid #E4DFD3; }
.li-page-ble ~ * .li-support-list li::before { top: calc(1.1rem + 0.35em); }
.li-page-ble ~ * .li-support-list li:nth-last-child(-n+2) { border-bottom: 1px solid #E4DFD3; }

/* FAQ: all questions shown on mobile */
.li-page-ble ~ * .li-faq-all .wp-block-details:last-child { border-bottom: 1px solid #D8D2C2; }

/* Mobile */
@media (max-width: 781px) {
	.li-page-ble .li-reverse-mobile { flex-direction: column-reverse; }
	.li-page-ble .li-fill-image img { min-height: 0; height: 240px; }
	.li-page-ble .li-split-text { padding: 2rem 1.25rem 2.75rem !important; }
	.li-page-ble .li-full-buttons-mobile,
	.li-page-ble ~ * .li-full-buttons-mobile { flex-direction: column; align-items: stretch; }
	.li-page-ble .li-full-buttons-mobile .wp-block-button,
	.li-page-ble .li-full-buttons-mobile .wp-block-button__link,
	.li-page-ble ~ * .li-full-buttons-mobile .wp-block-button,
	.li-page-ble ~ * .li-full-buttons-mobile .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
	.li-page-ble .li-center-mobile { text-align: center; }
	.li-page-ble ~ * .li-pathway { padding: 1.5rem 1.25rem; gap: 0; }
	.li-page-ble ~ * .li-pathway-label { padding-bottom: 0.875rem; }
	.li-page-ble ~ * .li-pathway-steps { grid-template-columns: 1fr; gap: 0; }
	.li-page-ble ~ * .li-pathway-steps li { flex-direction: row; align-items: center; gap: 0.875rem; padding: 0.625rem 0; background: none; border-top: 1px solid rgba(246,243,236,0.14); border-radius: 0; }
	.li-page-ble ~ * .li-pathway-steps .num { width: 1.75rem; font-size: 1rem; }
	.li-page-ble ~ * .li-pathway-steps .name { font-size: 1.25rem; }
	.li-page-ble ~ * .li-pathway-note { padding-top: 0.75rem; font-size: 0.8125rem; }
	.li-page-ble ~ * .li-support-list { grid-template-columns: 1fr; }
	.li-page-ble ~ * .li-support-list li:nth-last-child(2) { border-bottom: 0; }
	.li-page-ble ~ * .li-support-list li:last-child { border-bottom: 1px solid #E4DFD3; }
	.li-page-ble ~ * .li-apply-steps .li-card { display: flex; gap: 0.875rem; align-items: flex-start; }
	.li-page-ble ~ * .li-apply-steps .li-card > * { margin: 0; }
	.li-page-ble ~ * .li-apply-steps .li-step-number { font-size: 1.625rem; }
}

/* ===== Page: audit ===== */
/* Audit & Strategy Day page. The page class sits on the first section (hero);
   later sections are reached as its siblings via .li-page-audit ~ * */

/* ---------- Split hero (text left, image flush right) ---------- */
.li-page-audit.li-split-hero > .wp-block-columns { margin: 0; gap: 0; }
.li-page-audit.li-split-hero > .wp-block-columns > .wp-block-column { margin: 0; }
.li-page-audit .li-split-hero-text { max-width: 760px; }
.li-page-audit .li-split-hero-text > * { margin-top: 0; margin-bottom: 0; }
.li-page-audit .li-split-hero-text > * + * { margin-top: 1.6rem; }
.li-page-audit .li-split-hero-img { margin: 0; height: 100%; }
.li-page-audit .li-split-hero-img img { display: block; width: 100%; height: 100%; min-height: 760px; object-fit: cover; object-position: 45% center; }
.li-page-audit .li-pill { display: inline-block; padding: 7px 12px; background: rgba(159, 211, 218, 0.16); border-radius: 2px; color: var(--wp--preset--color--light-teal); font-size: 0.8125rem !important; letter-spacing: 0.16em; }
.li-page-audit .li-hero-h1 { font-style: italic; line-height: 1.3; }
.li-page-audit .li-hero-actions { gap: 1.5rem; align-items: center; }
.li-page-audit .li-hero-actions .li-textlink { margin: 0; }

/* ---------- Four questions: cards on desktop, list on mobile ---------- */
.li-page-audit ~ * .li-questions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.li-page-audit ~ * .li-questions li { display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--cream); border-top: 3px solid var(--wp--preset--color--teal); border-radius: 2px; }
.li-page-audit ~ * .li-q-num { font-family: var(--wp--preset--font-family--playfair); font-size: 1.25rem; color: var(--wp--preset--color--light-teal); }
.li-page-audit ~ * .li-q-text { font-family: var(--wp--preset--font-family--playfair); font-size: 1.625rem; line-height: 1.2; }

/* ---------- Ruled tick list ---------- */
.li-page-audit ~ * .li-ruled-ticks { border-bottom: 1px solid #C7DEE1; font-size: 1.125rem; line-height: 1.5; }
.li-page-audit ~ * .li-ruled-ticks li { margin: 0; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid #C7DEE1; }
.li-page-audit ~ * .li-ruled-ticks li::before { top: calc(18px + 0.2em); }

/* ---------- Placeholder card (sample roadmap) ---------- */
.li-page-audit ~ * .li-placeholder { box-sizing: border-box; min-height: 460px; padding: 36px; background: var(--wp--preset--color--white); border: 2px dashed #9FC6CC; border-radius: 2px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center; }
.li-page-audit ~ * .li-placeholder > * { margin: 0 !important; }

/* ---------- Stacked full width buttons (navy CTA) ---------- */
.li-page-audit ~ * .li-stack-buttons { flex-direction: column; align-items: stretch; gap: 1rem; }
.li-page-audit ~ * .li-stack-buttons .wp-block-button,
.li-page-audit ~ * .li-stack-buttons .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.li-page-audit.li-split-hero > .wp-block-columns { flex-direction: column-reverse; }
	.li-page-audit .li-split-hero-img img { min-height: 0; height: 240px; object-position: 55% 40%; }
	.li-page-audit .li-split-hero-text { padding: 2rem 1.25rem 2.75rem !important; }
	.li-page-audit .li-split-hero-text > * + * { margin-top: 1.125rem; }
	.li-page-audit .li-pill { font-size: 0.6875rem !important; padding: 6px 10px; }
	.li-page-audit .li-hero-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
	.li-page-audit .li-hero-actions .wp-block-buttons,
	.li-page-audit .li-hero-actions .wp-block-button,
	.li-page-audit .li-hero-actions .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
	.li-page-audit .li-hero-actions .li-textlink { text-align: center; }

	.li-page-audit ~ * .li-questions { grid-template-columns: 1fr; gap: 0; padding: 20px 20px 10px; background: var(--wp--preset--color--navy); border-radius: 2px; }
	.li-page-audit ~ * .li-questions li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; background: none; border-top: 1px solid rgba(246, 243, 236, 0.14); border-radius: 0; }
	.li-page-audit ~ * .li-q-num { width: 28px; flex-shrink: 0; font-size: 1rem; }
	.li-page-audit ~ * .li-q-text { font-size: 1.25rem; line-height: 1.25; }

	.li-page-audit ~ * .li-ruled-ticks { font-size: 0.9375rem; }
	.li-page-audit ~ * .li-ruled-ticks li { padding-top: 13px; padding-bottom: 13px; }
	.li-page-audit ~ * .li-ruled-ticks li::before { top: calc(13px + 0.2em); }

	.li-page-audit ~ * .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
	.li-page-audit ~ * .wp-block-buttons > .wp-block-button { width: 100%; }
}

/* ===== Page: learn ===== */
/* Learn page. The page class sits on the first section (hero);
   later sections are reached as its siblings via .li-page-learn ~ * */

/* ---------- Split hero (text left, image flush right) ---------- */
.li-page-learn.li-split-hero > .wp-block-columns { margin: 0; gap: 0; }
.li-page-learn.li-split-hero > .wp-block-columns > .wp-block-column { margin: 0; }
.li-page-learn .li-split-hero-text { max-width: 760px; }
.li-page-learn .li-split-hero-text > * { margin-top: 0; margin-bottom: 0; }
.li-page-learn .li-split-hero-text > * + * { margin-top: 1.6rem; }
.li-page-learn .li-split-hero-img { margin: 0; height: 100%; }
.li-page-learn .li-split-hero-img img { display: block; width: 100%; height: 100%; min-height: 620px; object-fit: cover; object-position: 30% center; }
.li-page-learn .li-pill { display: inline-block; padding: 7px 12px; background: rgba(159, 211, 218, 0.16); border-radius: 2px; color: var(--wp--preset--color--light-teal); font-size: 0.8125rem !important; letter-spacing: 0.16em; }
.li-page-learn .li-hero-h1 { font-style: italic; line-height: 1.3; }
.li-page-learn .li-hero-lead { padding-top: 1.625rem; border-top: 1px solid rgba(246, 243, 236, 0.2); max-width: 620px; }

/* ---------- Plain quotes (italic Playfair, no rule) ---------- */
.li-page-learn ~ * .li-quote-plain { padding-left: 0; border-left: 0; }
.li-page-learn ~ * .li-quote-plain p { font-style: italic; font-size: 1.375rem; line-height: 1.4; }
.li-page-learn ~ * .li-quote-plain cite { color: var(--wp--preset--color--deep-teal); font-size: 0.75rem; letter-spacing: 0.1em; }
.li-page-learn ~ * .has-navy-background-color .li-quote-plain p { font-size: 1.5rem; color: var(--wp--preset--color--cream); }
.li-page-learn ~ * .has-cream-background-color .li-quote-plain p { font-size: 1.25rem; }

/* ---------- Ten module list (01 to 10) ---------- */
.li-page-learn ~ * .li-module-list { list-style: none; margin: 0; padding: 0; counter-reset: li-mod; border-bottom: 1px solid #E4DFD3; }
.li-page-learn ~ * .li-module-list li { counter-increment: li-mod; display: flex; gap: 14px; align-items: baseline; margin: 0; padding: 12px 0; border-top: 1px solid #E4DFD3; font-size: 1rem; line-height: 1.45; color: var(--wp--preset--color--navy); }
.li-page-learn ~ * .li-module-list li::before { content: counter(li-mod, decimal-leading-zero); width: 26px; flex-shrink: 0; font-family: var(--wp--preset--font-family--playfair); color: var(--wp--preset--color--deep-teal); }
.li-page-learn ~ * .li-gateway-card .li-eyebrow { padding-top: 0.5rem; }
.li-page-learn ~ * .li-gateway-card .wp-block-details summary { font-size: 1.125rem; }
.li-page-learn ~ * .li-gateway-card .li-module-list { border-bottom: 0; }

/* ---------- Placeholder cards (course screenshots) ---------- */
.li-page-learn ~ * .li-placeholder { box-sizing: border-box; min-height: 260px; padding: 28px; background: var(--wp--preset--color--white); border: 2px dashed #9FC6CC; border-radius: 2px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; }
.li-page-learn ~ * .li-placeholder-short { min-height: 200px; }
.li-page-learn ~ * .li-placeholder > * { margin: 0 !important; }

/* ---------- Ruled tick list ---------- */
.li-page-learn ~ * .li-ruled-ticks { border-bottom: 1px solid #C7DEE1; font-size: 1.125rem; line-height: 1.5; }
.li-page-learn ~ * .li-ruled-ticks li { margin: 0; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid #C7DEE1; }
.li-page-learn ~ * .li-ruled-ticks li::before { top: calc(18px + 0.2em); }

/* ---------- Buttons ---------- */
.li-page-learn ~ * .li-btn-white .wp-block-button__link { background: var(--wp--preset--color--white) !important; color: var(--wp--preset--color--navy) !important; }
.li-page-learn ~ * .li-btn-white .wp-block-button__link:hover { background: var(--wp--preset--color--navy) !important; color: var(--wp--preset--color--cream) !important; }
.li-page-learn ~ * .li-stack-buttons { flex-direction: column; align-items: stretch; gap: 1rem; }
.li-page-learn ~ * .li-stack-buttons .wp-block-button,
.li-page-learn ~ * .li-stack-buttons .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.li-page-learn.li-split-hero > .wp-block-columns { flex-direction: column-reverse; }
	.li-page-learn .li-split-hero-img img { min-height: 0; height: 220px; }
	.li-page-learn .li-split-hero-text { padding: 2rem 1.25rem 2.75rem !important; }
	.li-page-learn .li-split-hero-text > * + * { margin-top: 1.125rem; }
	.li-page-learn .li-pill { font-size: 0.6875rem !important; padding: 6px 10px; }
	.li-page-learn .li-hero-h1 { font-size: 1.1875rem !important; }
	.li-page-learn .li-hero-lead { padding-top: 1.125rem; }

	.li-page-learn ~ * .li-quote-plain p { font-size: 1.1875rem; }
	.li-page-learn ~ * .has-cream-background-color .li-quote-plain p { font-size: 1.0625rem; }
	.li-page-learn ~ * .has-navy-background-color .li-quote-plain p { font-size: 1.1875rem; }

	.li-page-learn ~ * .li-ruled-ticks { font-size: 0.9375rem; }
	.li-page-learn ~ * .li-ruled-ticks li { padding-top: 13px; padding-bottom: 13px; }
	.li-page-learn ~ * .li-ruled-ticks li::before { top: calc(13px + 0.2em); }

	.li-page-learn ~ * .li-modules-mobile .wp-block-details summary { font-size: 1.0625rem; }

	.li-page-learn ~ * .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.li-page-learn ~ * .wp-block-buttons > .wp-block-button,
	.li-page-learn ~ * .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
}

/* ===== Page: impact ===== */
/* Impact page extras. Every section of the page carries .li-page-impact. */

/* ---------- Hero: navy split, image bleeds to the right edge ---------- */
.li-page-impact.li-split-hero .li-split { gap: 0; margin: 0; }
.li-page-impact .li-split-media { position: relative; min-height: 680px; }
.li-page-impact .li-split-media .li-fill { position: absolute; inset: 0; margin: 0; }
.li-page-impact .li-split-media .li-fill img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.li-page-impact .li-split-text { padding-left: clamp(1.25rem, 5vw, 5rem) !important; }
.li-page-impact .li-pill { align-self: flex-start; display: inline-block; padding: 7px 12px; background: rgba(159, 211, 218, 0.16); border-radius: 2px; letter-spacing: 0.16em; }
.li-page-impact .li-hero-intro { padding-top: 1.6rem; border-top: 1px solid rgba(246, 243, 236, 0.2); max-width: 40rem; line-height: 1.6; }

/* ---------- Results: Crib Point before/after chart ---------- */
.li-page-impact .li-prepost { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: var(--wp--preset--color--navy); color: var(--wp--preset--color--cream); border-radius: 2px; }
.li-page-impact .li-prepost p { margin: 0; }
.li-page-impact .li-prepost-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--light-teal); }
.li-page-impact .li-prepost-bars { display: flex; align-items: flex-end; gap: 28px; height: 260px; padding-top: 10px; }
.li-page-impact .li-prepost-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; height: 100%; }
.li-page-impact .li-prepost-value { font-family: var(--wp--preset--font-family--playfair); font-size: 3.25rem; line-height: 1; }
.li-page-impact .li-prepost-col.is-after .li-prepost-value { color: var(--wp--preset--color--light-teal); }
.li-page-impact .li-prepost-bar { display: block; width: 100%; min-height: 8px; background: rgba(246, 243, 236, 0.28); border-radius: 2px 2px 0 0; }
.li-page-impact .li-prepost-col.is-after .li-prepost-bar { background: var(--wp--preset--color--teal); }
.li-page-impact .li-prepost-caption { font-size: 0.8125rem; color: #E4E1D8; }
.li-page-impact .li-prepost-note { font-size: 0.875rem; line-height: 1.5; color: #E4E1D8; }

/* Result cards: three across */
.li-page-impact .li-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.li-page-impact .li-results > * { margin: 0 !important; }
.li-page-impact .li-card-label { font-family: var(--wp--preset--font-family--montserrat); font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5; color: var(--wp--preset--color--navy); margin: 0; }
.li-page-impact .li-results .li-card > p { margin-top: 0.625rem; }

/* Mobile "See all results" bar */
.li-page-impact .li-more { background: var(--wp--preset--color--white); border: 0 !important; padding: 1rem 1.125rem; border-radius: 2px; }
.li-page-impact .li-more > summary { font-family: var(--wp--preset--font-family--montserrat); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; align-items: center; }
.li-page-impact .li-more > summary::after { color: var(--wp--preset--color--teal); }
.li-page-impact .li-results-mobile > .li-card-label { margin-top: 1.25rem; }
.li-page-impact .li-results-mobile > .li-card-label:first-child { margin-top: 0.25rem; }
.li-page-impact .li-results-mobile > p { margin-top: 0.35rem; }

/* ---------- Monterey spotlight ---------- */
.li-page-impact .li-arrow-stat { display: flex; align-items: flex-start; gap: 32px; padding-top: 10px; }
.li-page-impact .li-arrow-stat-value { display: block; font-family: var(--wp--preset--font-family--playfair); font-size: 3.75rem; line-height: 1; }
.li-page-impact .li-arrow-stat-value.is-after { color: var(--wp--preset--color--light-teal); }
.li-page-impact .li-arrow-stat-caption { display: block; padding-top: 6px; font-size: 0.8125rem; color: #E4E1D8; }
.li-page-impact .li-arrow-stat-arrow { font-family: var(--wp--preset--font-family--playfair); font-size: 3rem; line-height: 1.2; color: var(--wp--preset--color--teal); }
.li-page-impact .li-quote-card { background: rgba(246, 243, 236, 0.07); border-radius: 2px; }

/* Quotes on this page: italic Playfair, no rule (cards carry them) */
.li-page-impact .li-quote-card .li-quote,
.li-page-impact .li-quote-navy .li-quote,
.li-page-impact .li-quote-light .li-quote { border-left: 0; padding-left: 0; }
.li-page-impact .li-quote-card .li-quote p,
.li-page-impact .li-quote-navy .li-quote p,
.li-page-impact .li-quote-light .li-quote p { font-style: italic; line-height: 1.4; }
.li-page-impact .li-quote-card .li-quote p { font-size: clamp(1.4375rem, 2.2vw, 1.875rem); color: var(--wp--preset--color--cream); }
.li-page-impact .li-quote-navy .li-quote p { font-size: clamp(1.125rem, 1.9vw, 1.625rem); color: var(--wp--preset--color--cream); }
.li-page-impact .li-quote-light .li-quote p { font-size: 1.1875rem; color: var(--wp--preset--color--navy); }
.li-page-impact .li-quote-card .li-quote cite,
.li-page-impact .li-quote-navy .li-quote cite { color: var(--wp--preset--color--light-teal); font-size: 0.75rem; letter-spacing: 0.1em; line-height: 1.5; }
.li-page-impact .li-quote-light .li-quote cite { color: var(--wp--preset--color--deep-teal); font-size: 0.75rem; letter-spacing: 0.1em; line-height: 1.5; }
.li-page-impact .li-quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.li-page-impact .li-quote-grid > * { margin: 0 !important; }

/* ---------- Concern table ---------- */
.li-page-impact .li-concern table { width: 100%; border-collapse: collapse; border-bottom: 1px solid #E4DFD3; }
.li-page-impact .li-concern th,
.li-page-impact .li-concern td { text-align: left; vertical-align: top; padding: 22px 32px 22px 0; border-top: 1px solid #E4DFD3; }
.li-page-impact .li-concern thead th { border-top: 0; padding-top: 0; padding-bottom: 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--deep-teal); }
.li-page-impact .li-concern thead th:nth-child(1) { width: 24%; }
.li-page-impact .li-concern thead th:nth-child(2) { width: 46%; }
.li-page-impact .li-concern tbody th { font-family: var(--wp--preset--font-family--playfair); font-weight: 400; font-size: 1.3125rem; line-height: 1.25; color: var(--wp--preset--color--navy); }
.li-page-impact .li-concern tbody td { font-size: 1rem; line-height: 1.55; color: var(--wp--preset--color--navy); }
.li-page-impact .li-concern tbody td:last-child { font-size: 0.875rem; line-height: 1.5; color: #5A607F; padding-right: 0; }

/* ---------- Schools and systems ---------- */
.li-page-impact .li-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.li-page-impact .li-tiles li { padding: 18px 22px; background: var(--wp--preset--color--white); border-radius: 2px; font-size: 1rem; line-height: 1.45; }
.li-page-impact .li-logo-tile { width: 210px; height: 92px; box-sizing: border-box; padding: 0 30px; display: flex; align-items: center; justify-content: center; background: var(--wp--preset--color--white); border-radius: 2px; }
.li-page-impact .li-logo-tile img { width: 100%; object-fit: contain; }
.li-page-impact .li-cta-row { gap: 1.5rem; }
.li-page-impact .li-cta-row > * { margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.li-page-impact .li-split { flex-direction: column; }
	.li-page-impact .li-split-media { order: -1; min-height: 220px; height: 220px; flex-basis: auto !important; }
	.li-page-impact .li-split-media .li-fill img { object-position: 50% 35%; }
	.li-page-impact .li-split-text { flex-basis: auto !important; padding: 2rem 1.25rem 2.75rem !important; }
	.li-page-impact .li-prepost { padding: 22px; }
	.li-page-impact .li-prepost-bars { height: 180px; }
	.li-page-impact .li-prepost-value { font-size: 2.375rem; }
	.li-page-impact .li-quote-navy { padding: 22px 20px !important; }
	.li-page-impact .li-logo-tile { width: 170px; height: 76px; }
	.li-page-impact .li-logo-tile img { height: 42px !important; }
	.li-page-impact .li-cta-row { flex-direction: column; align-items: stretch; gap: 0.875rem; }
	.li-page-impact .li-cta-row .wp-block-button,
	.li-page-impact .li-cta-row .wp-block-button__link { width: 100%; }
	.li-page-impact .li-cta-row .li-textlink { text-align: center; }
}

/* ===== Page: resources ===== */
/* Resources page extras. Every section of the page carries .li-page-resources. */

/* ---------- Hero ---------- */
.li-page-resources .li-pill { align-self: flex-start; display: inline-block; padding: 7px 12px; background: rgba(159, 211, 218, 0.16); border-radius: 2px; letter-spacing: 0.16em; }
.li-page-resources .li-hero-aside { padding-left: 2rem; border-left: 1px solid rgba(246, 243, 236, 0.25); line-height: 1.6; }

/* ---------- Placeholders ---------- */
.li-page-resources .li-placeholder { display: flex; align-items: center; justify-content: center; min-height: 140px; box-sizing: border-box; padding: 20px; background: rgba(255, 255, 255, 0.6); border: 2px dashed #9FC6CC; color: #5A607F; }
.li-page-resources .li-placeholder p { margin: 0; }
.li-page-resources .li-ph-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.li-page-resources .li-ph-grid > * { margin: 0 !important; }

/* ---------- Downloadable resource cards ---------- */
.li-page-resources .li-res-grid { display: grid; gap: 16px; }
.li-page-resources .li-res-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.li-page-resources .li-res-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.li-page-resources .li-res { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; min-height: 112px; box-sizing: border-box; padding: 24px; border-top: 3px solid var(--wp--preset--color--teal); border-radius: 2px; text-decoration: none; font-family: var(--wp--preset--font-family--playfair); font-size: 1.25rem; line-height: 1.3; color: var(--wp--preset--color--navy); }
.li-page-resources .li-res svg { flex-shrink: 0; }
.li-page-resources .li-res:hover span { text-decoration: underline; text-underline-offset: 4px; }
.li-page-resources .is-white .li-res { background: var(--wp--preset--color--white); }
.li-page-resources .is-cream .li-res { background: var(--wp--preset--color--cream); }

/* ---------- Popular guides (navy) ---------- */
.li-page-resources .li-guide { background: rgba(246, 243, 236, 0.07); border-top: 3px solid var(--wp--preset--color--teal); border-radius: 2px; }
.li-page-resources .li-guide p { margin: 0; }
.li-page-resources .li-guide-title a { color: inherit; text-decoration: none; }
.li-page-resources .li-guide-title a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Courses, book, WRISE ---------- */
.li-page-resources .li-books > * + * { margin-top: 1.25rem; }
.li-page-resources .li-books h2 { font-size: clamp(1.625rem, 2.4vw, 2.125rem); line-height: 1.15; }
.li-page-resources .li-books .wp-block-image { margin: 0; }
.li-page-resources .li-books .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 2px; }

/* ---------- Start card and full width buttons ---------- */
.li-page-resources .li-btn-full .wp-block-button { width: 100%; }
.li-page-resources .li-btn-full .wp-block-button__link { width: 100%; text-align: center; }
.li-page-resources .li-start .li-placeholder { min-height: 120px; background: transparent; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.li-page-resources .li-hero-aside { padding-left: 0; padding-top: 1.125rem; border-left: 0; border-top: 1px solid rgba(246, 243, 236, 0.2); }
	.li-page-resources .li-placeholder { min-height: 90px; padding: 16px; }

	/* Resource cards become a ruled list */
	.li-page-resources .li-res-grid { display: flex; flex-direction: column; gap: 0; border-bottom: 1px solid #D8D2C2; }
	.li-page-resources .li-res { min-height: 0; padding: 14px 0; align-items: center; background: transparent !important; border-top: 1px solid #D8D2C2; border-radius: 0; font-size: 1.0625rem; }
	.li-page-resources .li-res svg { width: 20px; height: 20px; }
	.li-page-resources .li-res-grid + .li-more { margin-top: 0 !important; }
	.li-page-resources .li-more { border-top: 0; border-bottom: 1px solid #D8D2C2; padding: 16px 0; }
	.li-page-resources .li-more > summary { font-family: var(--wp--preset--font-family--montserrat); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; align-items: center; }
	.li-page-resources .li-more > summary::after { color: var(--wp--preset--color--teal); }
	.li-page-resources .li-more .li-res-grid { border-bottom: 0; }
	.li-page-resources .wp-block-group > .li-res-grid:has(+ .li-more) { border-bottom: 0; }

	/* Popular guides become ruled rows */
	.li-page-resources .li-guides { gap: 0 !important; }
	.li-page-resources .li-guide { background: transparent; border-top: 1px solid rgba(246, 243, 236, 0.18); border-radius: 0; padding: 14px 0 !important; }
	.li-page-resources .li-guide-title { font-size: 1.125rem !important; }
	.li-page-resources .li-btn-stack-mobile { flex-direction: column; align-items: stretch; }
	.li-page-resources .li-btn-stack-mobile .wp-block-button,
	.li-page-resources .li-btn-stack-mobile .wp-block-button__link { width: 100%; text-align: center; }

	/* WRISE first, heading above its image */
	.li-page-resources .li-books { display: flex; flex-direction: column; gap: 14px; }
	.li-page-resources .li-books > * + * { margin-top: 0; }
	.li-page-resources .li-books > .li-wrise { order: -1; }
	.li-page-resources .li-books-row { gap: 14px; }
	.li-page-resources .li-books .li-card { padding: 22px 20px !important; }
	.li-page-resources .li-wrise .wp-block-columns { flex-direction: column; gap: 12px; }
	.li-page-resources .li-wrise .li-wrise-text { display: contents; }
	.li-page-resources .li-wrise .li-wrise-text > h2 { order: -2; margin: 0; }
	.li-page-resources .li-wrise .li-wrise-media { order: -1; flex-basis: auto !important; }
	.li-page-resources .li-wrise .li-wrise-text > * { margin: 0; }
	.li-page-resources .li-wrise .wp-block-buttons .wp-block-button,
	.li-page-resources .li-wrise .wp-block-button__link { width: 100%; text-align: center; }

	/* Health Check prompt sits on mist, full width */
	.li-page-resources.li-start { background-color: var(--wp--preset--color--mist) !important; }
	.li-page-resources .li-start-card { padding: 0 !important; }
}

/* ===== Page: events ===== */
/* Events page. Loaded in addition to style.css. Every top level section carries .li-page-events. */

/* Hero */
.li-page-events .li-ev-pill { display: inline-block; padding: 0.45rem 0.75rem; background: rgba(159,211,218,0.16); border-radius: 2px; font-size: 0.8125rem !important; letter-spacing: 0.16em; }
.li-page-events .li-ev-intro { margin: 0; padding-left: 2rem; border-left: 1px solid rgba(246,243,236,0.25); line-height: 1.6; }

/* Upcoming events jump links */
.li-page-events .li-ev-jump { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.125rem; }
.li-page-events .li-ev-jump a { display: flex; flex-direction: column; gap: 0.625rem; padding: 1.5rem; background: rgba(246,243,236,0.07); border-top: 3px solid var(--wp--preset--color--teal); border-radius: 2px; text-decoration: none; color: var(--wp--preset--color--cream); }
.li-page-events .li-ev-jump a:hover { background: rgba(246,243,236,0.12); }
.li-page-events .li-ev-jump-date { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--light-teal); }
.li-page-events .li-ev-jump-title { font-family: var(--wp--preset--font-family--playfair); font-size: 1.3125rem; line-height: 1.3; }
.li-page-events .li-ev-jump-meta { font-size: 0.875rem; color: #E4E1D8; }

/* Sub headings and h4 titles */
.li-page-events .li-ev-subhead { margin-top: 2.5rem; letter-spacing: 0.16em; }
.li-page-events h4 { font-family: var(--wp--preset--font-family--playfair); font-weight: 400; font-size: 1.4375rem; line-height: 1.25; margin: 0; }
.li-page-events .li-rule-list > .wp-block-group > * + * { margin-top: 0.625rem; }

/* Event details card on navy */
.li-page-events .li-ev-details > * { border-top-color: rgba(246,243,236,0.18); padding: 0.75rem 0; }
.li-page-events .li-ev-details > *:last-child { border-bottom-color: rgba(246,243,236,0.18); }
.li-page-events .li-ev-details p { margin: 0; }
.li-page-events .li-ev-details p:not(.li-eyebrow) { margin-top: 0.25rem; font-size: 1rem; line-height: 1.45; }
.li-page-events .li-ev-details .li-eyebrow { font-size: 0.6875rem !important; letter-spacing: 0.14em; }
.li-page-events .li-ev-full .wp-block-button { width: 100%; }
.li-page-events .li-ev-full .wp-block-button__link { width: 100%; }

/* Testimonials */
.li-page-events .li-ev-quote { margin: 0; padding: 0; border: 0; }
.li-page-events .li-ev-quote p { font-family: var(--wp--preset--font-family--playfair); font-style: italic; font-size: 1.3125rem; line-height: 1.45; margin: 0; }
.li-page-events .li-ev-quote cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--light-teal); }
.li-page-events .li-ev-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; align-items: start; }
.li-page-events .li-ev-grid4 > * { margin: 0 !important; }
.li-page-events .li-ev-quote-small { padding: 1.375rem 1.5rem; background: var(--wp--preset--color--cream); border-radius: 2px; }
.li-page-events .li-ev-quote-small p { font-size: 1.0625rem; color: var(--wp--preset--color--navy); }

/* Assessment Decision Making Tree card */
.li-page-events .li-ev-tree { flex-wrap: nowrap; align-items: center; gap: 2rem; }
.li-page-events .li-ev-tree-text { flex: 1 1 0; min-width: 0; }
.li-page-events .li-ev-tree-text > * { margin-top: 0; }

/* Keynote image framing */
.li-page-events .li-ev-keynote-img img { object-position: 30% center; }

/* Stacked CTA buttons on navy */
.li-page-events .li-ev-stack { align-items: stretch; }
.li-page-events .li-ev-stack .wp-block-button__link { width: 100%; text-align: center; }

/* Info session tap row sits on mist */
.li-page-events .li-ev-faq-mist .wp-block-details { border-top-color: #B9D6DA; }
.li-page-events .li-ev-faq-mist .wp-block-details:last-child { border-bottom-color: #B9D6DA; }

@media (max-width: 1000px) {
	.li-page-events .li-ev-grid4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 781px) {
	.li-page-events .li-ev-intro { padding-left: 0; border-left: 0; }
	.li-page-events .li-ev-jump { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid rgba(246,243,236,0.18); }
	.li-page-events .li-ev-jump a { gap: 0.375rem; padding: 0.875rem 0; background: transparent; border-top: 1px solid rgba(246,243,236,0.18); border-radius: 0; }
	.li-page-events .li-ev-jump-date { font-size: 0.6875rem; }
	.li-page-events .li-ev-jump-title { font-size: 1.125rem; }
	.li-page-events .li-ev-jump-meta { display: none; }
	.li-page-events .li-ev-tree { padding: 1.25rem !important; }
	.li-page-events .li-ev-tree h2 { font-size: 1.3125rem !important; }
	.li-page-events .li-ev-inperson { background: transparent; border-top: 0; padding: 0 !important; }
	.li-page-events .li-ev-inperson h2,
	.li-page-events .wp-block-column h2[style] { font-size: 1.625rem !important; }
	.li-page-events .li-ev-full-mobile .wp-block-button,
	.li-page-events .li-ev-full-mobile .wp-block-button__link { width: 100%; }
	.li-page-events .wp-block-details h4 { font-size: 1.125rem; margin-top: 1rem; }
}

/* ===== Page: healthcheck ===== */
/* Literacy Excellence Health Check page. Loaded in addition to style.css. */

/* Hero facts: ruled column on desktop, 2 x 2 grid on mobile */
.li-page-healthcheck .li-hc-facts { border-bottom: 1px solid rgba(246,243,236,0.2); }
.li-page-healthcheck .li-hc-facts > .wp-block-group { margin: 0 !important; padding: 1.375rem 0; border-top: 1px solid rgba(246,243,236,0.2); }
.li-page-healthcheck .li-hc-facts p { margin: 0; }
.li-page-healthcheck .li-hc-num { font-family: var(--wp--preset--font-family--playfair); font-size: 3.25rem; line-height: 1; color: var(--wp--preset--color--cream); }
.li-page-healthcheck .li-hc-label { margin-top: 0.25rem !important; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--light-teal); }

/* The app iframe sits full width in the section */
.li-page-healthcheck #lihc-frame { display: block; }

@media (max-width: 781px) {
	.li-page-healthcheck .li-hc-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 1.25rem; }
	.li-page-healthcheck .li-hc-facts > .wp-block-group { padding: 0.875rem 0; }
	.li-page-healthcheck .li-hc-num { font-size: 2.125rem; }
	.li-page-healthcheck .li-hc-label { font-size: 0.6875rem; }
	.li-page-healthcheck .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.li-page-healthcheck .wp-block-button__link { width: 100%; }
}

/* ---------- Gravity Forms (newsletter in footer, enquiry on Contact) ---------- */
.gform_wrapper.gravity-theme .gform_fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.gform_wrapper.gravity-theme .gfield { grid-column: 1 / -1; margin: 0 !important; padding: 0 !important; }
.gform_wrapper.gravity-theme .gfield--width-half { grid-column: span 1; }
.gform_wrapper.gravity-theme .gfield_label, .gform_wrapper.gravity-theme legend.gfield_label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.4rem; padding: 0; }
.gform_wrapper.gravity-theme .ginput_complex { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin: 0 !important; }
.gform_wrapper.gravity-theme .ginput_complex > span { width: auto !important; padding: 0 !important; margin: 0 !important; flex: none !important; }
.gform_wrapper.gravity-theme .ginput_complex label { display: none; }
.gform_wrapper.gravity-theme input[type=text], .gform_wrapper.gravity-theme input[type=email], .gform_wrapper.gravity-theme input[type=tel], .gform_wrapper.gravity-theme textarea { width: 100% !important; box-sizing: border-box; font-family: var(--wp--preset--font-family--montserrat); font-size: 1rem; padding: 0.85rem 1rem !important; border: 1px solid #C9C3B3; border-radius: 2px; background: #FFFFFF; color: var(--wp--preset--color--navy); margin: 0; }
.gform_wrapper.gravity-theme textarea { min-height: 9rem; height: 9rem; }
.gform_wrapper.gravity-theme .gform_footer { margin: 1rem 0 0 !important; padding: 0 !important; }
.gform_wrapper.gravity-theme .gform_footer input[type=submit], .gform_wrapper.gravity-theme .gform_button { font-family: var(--wp--preset--font-family--montserrat); background: var(--wp--preset--color--navy) !important; color: var(--wp--preset--color--cream) !important; border: 0; border-radius: 2px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 1rem 1.75rem !important; cursor: pointer; }
.gform_wrapper.gravity-theme .gfield_required { color: var(--wp--preset--color--deep-teal); }
.gform_wrapper .gform_validation_container, .gform_wrapper .gform_hidden { display: none !important; }
/* footer variant on navy */
.li-footer .gform_wrapper.gravity-theme input[type=text], .li-footer .gform_wrapper.gravity-theme input[type=email] { background: transparent; border: 1px solid rgba(246,243,236,0.35); color: var(--wp--preset--color--cream); }
.li-footer .gform_wrapper.gravity-theme input::placeholder { color: rgba(246,243,236,0.6); }
.li-footer .gform_wrapper.gravity-theme .gform_footer input[type=submit], .li-footer .gform_wrapper.gravity-theme .gform_button { background: var(--wp--preset--color--teal) !important; color: var(--wp--preset--color--navy) !important; }
@media (max-width: 781px) { .gform_wrapper.gravity-theme .gfield--width-half { grid-column: 1 / -1; } }
/* mobile layout fixes for split heroes */
@media (max-width: 781px) {
	.wp-block-column { box-sizing: border-box; }
	.li-page-impact.li-split-hero .li-split { margin: 0 !important; padding: 0 !important; }
}
@media (max-width: 781px) { .li-page-impact.li-split-hero { padding-left: 0 !important; padding-right: 0 !important; } }
