/* =========================================================
   Astute Co — supplemental styles (rewritten)
   Restrained, editorial, premium. Warm neutrals, one accent,
   disciplined spacing. Tokens live in theme.json.
   ========================================================= */

:root {
	scroll-behavior: smooth;
	--r-sm: 12px;
	--r-md: 20px;
	--r-lg: 28px;
	--sh-soft: 0 1px 2px rgba(22,22,27,0.04), 0 10px 30px rgba(22,22,27,0.06);
	--sh-raised: 0 2px 6px rgba(22,22,27,0.05), 0 30px 60px rgba(22,22,27,0.12);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }

::selection { background: var(--wp--preset--color--hi-vis); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
.wp-element-button:focus-visible, .book-tab:focus-visible {
	outline: 2px solid var(--wp--preset--color--hi-vis);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Floating pill header (overlays the hero; transparent wrapper) ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; }
.site-header .has-global-padding { padding-top: 0.8rem; padding-bottom: 0.8rem; }

/* The first full-bleed section fills behind the header; pad its content to clear the pill.
   Skip .entry-content itself — padding there shows as a blank band above the hero cover;
   instead the clearance lands INSIDE its first child (the cover), whose image fills it. */
.wp-site-blocks main > :first-child:not(.entry-content),
.wp-site-blocks .entry-content > :first-child {
	padding-top: calc(var(--wp--preset--spacing--50) + 4.5rem) !important;
}
.nav-pill {
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	box-shadow: var(--sh-soft);
	padding: 0.6rem 0.6rem 0.6rem 1.4rem !important;
}
/* Logo: fix the height so it never enlarges the header bar */
.site-brand .wp-block-site-logo,
.site-brand .wp-block-site-logo a,
.site-brand .custom-logo { display: block; line-height: 0; }
.site-brand .custom-logo { height: 50px !important; width: auto !important; max-width: none; }
/* When an image logo is present, hide the text wordmark fallback */
.site-brand .wp-block-site-logo:has(img) + .brand-fallback { display: none; }

/* ---------- Navigation submenu (dropdown) ---------- */
.wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	box-shadow: var(--sh-raised);
	padding: 0.4rem;
	min-width: 232px;
	margin-top: 0.7rem;
}
/* Invisible hover bridge across the gap so the menu doesn't close on the way down */
.wp-block-navigation .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	top: -0.75rem;
	left: 0;
	right: 0;
	height: 0.75rem;
	background: transparent;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: 9px;
	padding: 0.55rem 0.8rem;
	font-size: 0.92rem;
	color: var(--wp--preset--color--steel);
	transition: background 0.15s ease, color 0.15s ease;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
	background: var(--wp--preset--color--concrete);
	color: var(--wp--preset--color--asphalt);
}
/* small rounded pointer gap so it reads as a floating menu */
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item { margin: 0; }

/* ---------- Mobile header + full-screen menu overlay (≤600px) ----------
   Driven by our own `astute-menu-open` class on <html> (assets/js/mobile-nav.js),
   independent of the core Navigation Interactivity state so nothing fights it. */
html.astute-menu-open, html.astute-menu-open body { overflow: hidden; }
/* backdrop-filter on .nav-pill makes it the containing block for position:fixed,
   which would trap the overlay inside the pill — drop it while the menu is open. */
html.astute-menu-open .nav-pill { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Hamburger / close icons — clear, tappable, on-brand */
.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--asphalt);
	padding: 8px;
}
.site-header .wp-block-navigation__responsive-container-open svg,
.site-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

@media (max-width: 599px) {
	/* Tighter pill; hide the inline CTA so the bar is just logo + menu button */
	.site-header .nav-pill { padding: 0.45rem 0.6rem 0.45rem 1rem !important; }
	.site-header .wp-block-buttons { display: none !important; }
	.site-brand .custom-logo { height: 42px !important; }

	/* The overlay itself — a clean full-screen sheet */
	html.astute-menu-open .site-header .wp-block-navigation__responsive-container {
		position: fixed !important;
		top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
		width: 100% !important; max-width: none !important;
		height: 100vh !important; height: 100dvh !important;
		z-index: 99999 !important;
		display: block !important;
		background: var(--wp--preset--color--paper) !important;
		padding: 1.1rem 1.25rem 2rem !important;
		overflow-y: auto !important;
	}
	html.astute-menu-open .wp-block-navigation__responsive-close { width: 100% !important; max-width: none !important; }
	html.astute-menu-open .wp-block-navigation__responsive-dialog { margin: 0 !important; }

	/* Close button sits top-right */
	html.astute-menu-open .wp-block-navigation__responsive-container-close {
		position: absolute; top: 1rem; right: 1rem; margin: 0; z-index: 1;
	}

	/* Link list: large, stacked, divided */
	html.astute-menu-open .wp-block-navigation__responsive-container-content { width: 100%; margin-top: 3.25rem; }
	html.astute-menu-open .wp-block-navigation__container {
		flex-direction: column !important; align-items: stretch !important; gap: 0 !important; width: 100%;
	}
	html.astute-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		width: 100%; border-bottom: 1px solid var(--wp--preset--color--line);
	}
	html.astute-menu-open .wp-block-navigation-item__content {
		display: block; padding: 1rem 0; font-size: 1.45rem; font-weight: 600;
		letter-spacing: -0.01em; color: var(--wp--preset--color--asphalt);
	}

	/* Submenu (Services): the core Interactivity runtime owns the submenu's
	   open/close state and fights any CSS expansion, so on mobile we hide the
	   dropdown + its toggle and let the top-level "Services" link go straight to
	   the All Services page (which lists every service). Reliable and clean. */
	html.astute-menu-open .wp-block-navigation .wp-block-navigation__submenu-icon { display: none !important; }
	html.astute-menu-open .wp-block-navigation .has-child .wp-block-navigation__submenu-container { display: none !important; }

	html.astute-menu-open .wp-block-navigation__container > .wp-block-navigation-item:last-child { border-bottom: 0; }
}

/* ---------- Eyebrow ---------- */
.spec-eyebrow {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.78rem !important;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--hi-vis);
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
}
.spec-eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.55; }
.spec-eyebrow.is-light { color: rgba(255,255,255,0.65); }

/* ---------- Buttons (Apple-calm: darken on hover, no jump) ---------- */
.wp-element-button { box-shadow: none; transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.2s ease; }
.wp-element-button:hover { opacity: 0.92; }
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-element-button {
	background: transparent !important;
	border-width: 1px !important;
}
.is-style-outline .wp-element-button:hover { background: rgba(128,128,128,0.14) !important; }

/* ---------- Section headings rhythm ---------- */
.has-text-align-center .spec-eyebrow,
.spec-eyebrow.has-text-align-center { display: flex; justify-content: center; }

/* ---------- Cards ---------- */
.lift-card {
	height: 100%;
	padding: 0 !important;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: var(--r-md) !important;
	box-shadow: var(--sh-soft);
	overflow: hidden;
	transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.lift-card:hover { transform: translateY(-5px); box-shadow: var(--sh-raised); border-color: rgba(20,21,26,0.14) !important; }
.svc-card { position: relative; }

/* ---------- Media ---------- */
.media-frame { overflow: hidden; position: relative; border-radius: var(--r-sm); }
.media-frame .wp-block-image, .media-frame figure { margin: 0; width: 100%; height: 100%; display: block; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.lift-card .media-frame { border-radius: 0; }
.media-frame:hover img { transform: scale(1.05); }

/* ---------- Full-width sections sit flush (rhythm comes from each
   section's own padding; the background-colour change is the separator) ---------- */
.wp-site-blocks > *,
.wp-site-blocks main > *,
.wp-site-blocks .entry-content > * { margin-block-start: 0; margin-block-end: 0; }

/* ---------- Logo strip ---------- */
.logo-strip img { filter: grayscale(1); opacity: 0.45; transition: filter 0.3s ease, opacity 0.3s ease; }
.logo-strip img:hover { filter: grayscale(0); opacity: 0.95; }

/* ---------- Datum / inline label ---------- */
.datum { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; font-weight: 500; color: var(--wp--preset--color--steel); }
.datum::after { content: ""; height: 1px; background: var(--wp--preset--color--line); flex: 1; }
.datum .tick { width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--hi-vis); display: inline-block; flex: none; }
.datum.is-light { color: rgba(255,255,255,0.6); }
.datum.is-light::after { background: rgba(255,255,255,0.16); }

/* Repurpose old utilities to clean equivalents */
.hazard-band { min-height: 1px; background: var(--wp--preset--color--line); }
.blueprint::before { display: none !important; }

/* ---------- Stats ---------- */
.stat-num { font-family: var(--wp--preset--font-family--display) !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: -0.04em !important; color: var(--wp--preset--color--asphalt) !important; font-size: clamp(2.4rem, 4.5vw, 3.25rem) !important; margin: 0 !important; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-cell { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: var(--r-md); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--sh-soft); }
.stat-cell .lbl { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--wp--preset--color--steel); }
.stat-cell--dark { background: var(--wp--preset--color--hi-vis); border-color: var(--wp--preset--color--hi-vis); }
.stat-cell--dark .stat-num { color: #fff !important; }
.stat-cell--dark .lbl { color: rgba(255,255,255,0.6); }
@media (max-width: 781px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Service card spec line ---------- */
.svc-spec { font-size: 0.82rem; color: var(--wp--preset--color--steel); border-top: 1px solid var(--wp--preset--color--line); padding-top: 0.8rem; margin-top: 0.3rem; }

/* =========================================================
   HERO — clean, single strong image
   ========================================================= */
.hero-wash { position: relative; background: transparent; overflow: hidden; }
.hero-wash::before {
	content: "";
	position: absolute; top: -30%; right: -10%;
	width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
	background: radial-gradient(circle, rgba(73,72,239,0.10), transparent 62%);
	pointer-events: none;
}
.hero-wash > * { position: relative; }

.hero-display { font-size: clamp(2.6rem, 5.6vw, 4.5rem) !important; line-height: 1.02 !important; letter-spacing: -0.04em !important; font-weight: 600 !important; }
.hero-display em,
.wp-block-heading em { font-style: normal; color: var(--wp--preset--color--violet); }

.hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-raised); aspect-ratio: 5 / 6; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stat {
	position: absolute; left: 18px; bottom: 18px;
	display: flex; align-items: center; gap: 0.85rem;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(20,21,26,0.06);
	border-radius: 14px;
	padding: 0.8rem 1rem;
	box-shadow: var(--sh-soft);
}
.hero-stat .n { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; color: var(--wp--preset--color--asphalt); line-height: 1; }
.hero-stat .l { font-size: 0.82rem; color: var(--wp--preset--color--steel); max-width: 9rem; line-height: 1.3; }

/* Hero mini-credentials row */
.hero-creds { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.hero-creds span { font-size: 0.9rem; color: var(--wp--preset--color--steel); display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-creds span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--wp--preset--color--hi-vis); }

/* =========================================================
   PROJECT GALLERY
   ========================================================= */
.proj-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; }
.proj-item { position: relative; border-radius: var(--r-md); overflow: hidden; }
.proj-item.wide { grid-column: span 2; }
.proj-item.tall { grid-row: span 2; }
.proj-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.proj-item:hover img { transform: scale(1.05); }
.proj-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,13,18,0.72) 100%); opacity: 0.85; transition: opacity 0.3s ease; }
.proj-item .cap { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 1; color: #fff; font-weight: 500; font-size: 0.95rem; letter-spacing: -0.01em; }
@media (max-width: 781px) { .proj-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .proj-item.wide, .proj-item.tall { grid-column: auto; grid-row: auto; } }

/* Service-page project gallery — captioned photo grid (real site work) */
.svc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-shot { display: flex; flex-direction: column; gap: 0.85rem; }
.svc-shot__img { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--wp--preset--color--concrete); }
.svc-shot__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.svc-shot:hover .svc-shot__img img { transform: scale(1.04); }
.svc-shot__cap { display: flex; flex-direction: column; gap: 0.3rem; }
.svc-shot__t { font-weight: 600; font-size: 1.02rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--wp--preset--color--asphalt); }
.svc-shot__m { font-family: var(--wp--preset--font-family--mono), monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--steel); }
@media (max-width: 900px) { .svc-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-gallery { grid-template-columns: 1fr; } }

/* =========================================================
   SCROLL REVEAL (progressive enhancement)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); will-change: opacity, transform; }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal.reveal-2 { transition-delay: 0.08s; }
.reveal.reveal-3 { transition-delay: 0.16s; }
.reveal.reveal-4 { transition-delay: 0.24s; }

/* =========================================================
   PUBLISHING SUB-BRAND (navy + gold, editorial)
   ========================================================= */
.pub-scope, .pub-scope p, .pub-scope li { font-family: var(--wp--preset--font-family--pub-body); }
.pub-scope h1, .pub-scope h2, .pub-scope h3, .pub-scope h4 { font-family: var(--wp--preset--font-family--pub-display) !important; letter-spacing: -0.01em; }

/* Publishing page: main-site colours (cream + green) everywhere EXCEPT the
   navy "pub-dark" contact block, which keeps the brief's navy + gold. */
.pub-dark .spec-eyebrow { color: var(--wp--preset--color--pub-gold); }
.pub-dark .spec-eyebrow.is-light { color: rgba(255, 255, 255, 0.72); }
.pub-dark .wp-block-heading em { color: var(--wp--preset--color--pub-gold); }


.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.book-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-soft); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.book-card:hover { transform: translateY(-5px); box-shadow: var(--sh-raised); }
.book-card.is-hidden { display: none; }
.book-link { display: block; color: inherit; text-decoration: none; }
.book-link:hover { text-decoration: none; }
.book-cover { aspect-ratio: 210 / 297; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; padding: 1.5rem 1.4rem; position: relative; color: #fff; overflow: hidden; }
.book-cover::after { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,0.2); border-radius: 3px; pointer-events: none; }
.book-cover .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: rgba(0,0,0,0.25); }
.book-cover .bc-top { font-family: var(--wp--preset--font-family--pub-body); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.78); position: relative; z-index: 1; }
.book-cover .bc-title { font-family: var(--wp--preset--font-family--pub-display); font-size: 1.4rem; font-weight: 700; line-height: 1.12; margin-top: auto; position: relative; z-index: 1; }
.book-cover .bc-bottom { font-family: var(--wp--preset--font-family--pub-body); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.68); margin-top: 0.6rem; position: relative; z-index: 1; }
.book-cover .cover-type-badge { position: absolute; bottom: 12px; right: 12px; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 3px 9px; font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; z-index: 1; }
.book-cover--photo { aspect-ratio: 210 / 297; padding: 0; }
.book-cover--photo::after { display: none; }

/* Teaser: clean covers only (no info rows / card chrome), used on the homepage */
.teaser-books .book-info { display: none; }
.teaser-books .book-card { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.teaser-books .book-cover { border-radius: 12px; box-shadow: var(--sh-soft); }
.teaser-books .book-grid { gap: 16px; }
.teaser-books .book-card:hover { transform: translateY(-4px); }
.book-cover--photo .book-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-info { padding: 15px 16px 18px; }
.book-info .book-name { font-family: var(--wp--preset--font-family--pub-display); font-size: 0.95rem; font-weight: 600; color: #10162A; line-height: 1.3; margin: 0 0 4px; }
.book-info .book-meta { font-size: 0.75rem; color: #999; margin: 0; }
.book-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.book-type { display: inline-block; font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.type-learner { background: rgba(73,72,239,0.1); color: var(--wp--preset--color--hi-vis); }
.type-teacher { background: rgba(239,77,72,0.12); color: #c43a35; }
.type-workbook { background: rgba(20,21,26,0.07); color: var(--wp--preset--color--steel); }
.book-guide { display: inline-block; font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(200,151,58,0.16); color: #9a6f1e; }
.book-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem; }
.book-tab { background: #fff; border: 1px solid rgba(20,21,26,0.12); color: #555; padding: 8px 18px; border-radius: 999px; font-family: var(--wp--preset--font-family--pub-body); font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; }
.book-tab:hover, .book-tab.is-active { background: #10162A; color: #fff; border-color: #10162A; }

/* =========================================================
   CONTACT / SETTINGS COMPONENTS
   ========================================================= */
.astute-icon { display: inline-block; vertical-align: middle; }
.astute-cards { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.astute-card { display: flex; align-items: center; gap: 1rem; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: var(--r-md); padding: 1.1rem 1.25rem; }
.astute-card .ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(73,72,239,0.09); color: var(--wp--preset--color--hi-vis); }
.astute-card .bd { display: flex; flex-direction: column; gap: 3px; }
.astute-card .lbl { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--ink-muted); }
.astute-card .val { font-size: 1.02rem; color: var(--wp--preset--color--asphalt); }
.astute-card .val a { color: var(--wp--preset--color--asphalt); }
.astute-card .val a:hover { color: var(--wp--preset--color--hi-vis); }
.astute-cards--pub .astute-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.astute-cards--pub .astute-card .ic { background: rgba(200,151,58,0.15); color: #c8973a; }
.astute-cards--pub .astute-card .lbl { color: rgba(200,151,58,0.85); }
.astute-cards--pub .astute-card .val, .astute-cards--pub .astute-card .val a { color: #fff; }
.pub-tag { display: inline-block; background: rgba(200,151,58,0.15); border: 1px solid rgba(200,151,58,0.35); color: #d8b878; font-size: 0.78rem; padding: 0.35rem 0.9rem; border-radius: 999px; }
.cbe-badge { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.5rem; padding: 0.6rem 1rem; border: 1px solid rgba(200,151,58,0.3); background: rgba(200,151,58,0.08); border-radius: 999px; font-size: 0.82rem; color: #d8b878; }
.cbe-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c8973a; }

.astute-inline-contact p:empty { display: none; }
.site-footer li a { color: rgba(255,255,255,0.72); }
.site-footer li a:hover { color: #fff; }
.astute-inline-contact p { margin: 0 0 0.5rem; font-size: 0.95rem; line-height: 1.85; color: rgba(255,255,255,0.7); }
.astute-inline-contact a { color: rgba(255,255,255,0.9); }
.astute-inline-contact a:hover { color: #fff; }

.astute-social { display: flex; gap: 0.55rem; margin-top: 1.25rem; flex-wrap: wrap; }
.astute-social-link { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.8); transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease; }
.astute-social-link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--asphalt); transform: translateY(-2px); }

.astute-map { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--wp--preset--color--line); }

.astute-form { display: grid; gap: 0.35rem; margin-top: 1.25rem; }
.astute-form label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--wp--preset--color--ink-muted); margin-top: 0.75rem; }
.astute-form { box-sizing: border-box; max-width: 100%; }
.astute-form input, .astute-form textarea {
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--body); font-size: 1rem; color: var(--wp--preset--color--asphalt);
	background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 12px;
	padding: 0.8rem 0.95rem; width: 100%; max-width: 100%; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.astute-form textarea { resize: vertical; }
.astute-form input::placeholder, .astute-form textarea::placeholder { color: var(--wp--preset--color--ink-muted); }
.astute-form input:focus, .astute-form textarea:focus { outline: none; border-color: var(--wp--preset--color--hi-vis); box-shadow: 0 0 0 3px rgba(73,72,239,0.16); }
.astute-form button { justify-self: start; margin-top: 1.1rem; background: var(--wp--preset--color--asphalt); color: #fff; font-family: var(--wp--preset--font-family--body); font-size: 0.95rem; font-weight: 500; border: 0; border-radius: 999px; padding: 0.9rem 1.7rem; cursor: pointer; transition: transform 0.18s ease, background 0.2s ease; }
.astute-form button:hover { background: var(--wp--preset--color--asphalt-soft); transform: translateY(-1px); }
.astute-form .form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--wp--preset--color--ink-muted); }
.astute-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.astute-form-success, .astute-form-error { padding: 0.9rem 1.15rem; border-radius: 12px; font-size: 0.95rem; margin-bottom: 1rem; }
.astute-form-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.astute-form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ---------- Book detail modal ---------- */
.book-modal[hidden] { display: none; }
.book-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; transition: opacity 0.2s ease; }
.book-modal.is-open { opacity: 1; }
.book-modal__backdrop { position: absolute; inset: 0; background: rgba(11,13,18,0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.book-modal__dialog { position: relative; z-index: 1; background: var(--wp--preset--color--white); border-radius: 24px; max-width: 860px; width: 100%; max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 0.82fr 1fr; box-shadow: var(--sh-raised); transform: translateY(14px) scale(0.985); transition: transform 0.25s cubic-bezier(0.22,1,0.36,1); }
.book-modal.is-open .book-modal__dialog { transform: none; }
.book-modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--wp--preset--color--line); background: rgba(255,255,255,0.9); color: var(--wp--preset--color--asphalt); display: grid; place-items: center; cursor: pointer; }
.book-modal__media { background: var(--wp--preset--color--concrete); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.85rem; align-items: center; justify-content: center; }
.bm-faces, .bm-face { width: 100%; }
.bm-face img { width: 100%; aspect-ratio: 210 / 297; object-fit: contain; border-radius: 8px; box-shadow: var(--sh-soft); background: #fff; display: block; }
.bm-face .book-cover { width: 100%; margin: 0 auto; }
.bm-noface { aspect-ratio: 210 / 297; display: grid; place-items: center; text-align: center; color: var(--wp--preset--color--ink-muted); background: #fff; border: 1px dashed var(--wp--preset--color--line); border-radius: 8px; font-size: 0.85rem; padding: 1rem; }
.bm-toggle { display: flex; gap: 6px; }
.bm-toggle button { border: 1px solid var(--wp--preset--color--line); background: #fff; border-radius: 999px; padding: 4px 16px; font-size: 0.8rem; cursor: pointer; color: var(--wp--preset--color--steel); }
.bm-toggle button.is-active { background: var(--wp--preset--color--asphalt); color: #fff; border-color: var(--wp--preset--color--asphalt); }
.book-modal__info { padding: 2.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
.book-modal__info .bm-eyebrow { margin-bottom: 0.25rem; }
.bm-title { font-family: var(--wp--preset--font-family--display); font-size: 1.85rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin: 0; }
.bm-tags { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--wp--preset--color--steel); }
.bm-price { font-family: var(--wp--preset--font-family--display); font-size: 1.45rem; font-weight: 700; color: var(--wp--preset--color--asphalt); margin: 0.4rem 0 0.2rem; }
.bm-desc { font-size: 0.98rem; line-height: 1.65; color: var(--wp--preset--color--steel); }
.bm-actions { display: flex; gap: 0.6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.bm-actions a { text-decoration: none; }
.bm-email { background: transparent !important; border: 1px solid var(--wp--preset--color--line) !important; color: var(--wp--preset--color--asphalt) !important; }
@media (max-width: 660px) {
	.book-modal__dialog { grid-template-columns: 1fr; }
	.book-modal__media { padding: 1.25rem; }
	.book-modal__media .bm-face img, .book-modal__media .book-cover { max-width: 240px; margin: 0 auto; }
	.book-modal__info { padding: 1.6rem; }
}

/* ===== Publishing page: navy + gold scheme (overrides the site blue/red) ===== */
.page-template-page-publishing .spec-eyebrow { color: var(--wp--preset--color--pub-gold) !important; }
.page-template-page-publishing .spec-eyebrow.is-light { color: rgba(255,255,255,0.72) !important; }
.page-template-page-publishing .wp-block-heading em { color: var(--wp--preset--color--pub-gold) !important; }
.page-template-page-publishing .datum .tick { background: var(--wp--preset--color--pub-gold) !important; }
.page-template-page-publishing .hero-wash::before { background: radial-gradient(circle, rgba(200,151,58,0.12), transparent 62%); }
.page-template-page-publishing .wp-element-button:not(.has-background) { background-color: var(--wp--preset--color--pub-gold); color: var(--wp--preset--color--pub-navy); }
.page-template-page-publishing .is-style-outline .wp-element-button:not(.has-text-color) { color: var(--wp--preset--color--pub-navy) !important; border-color: rgba(16,22,42,0.28) !important; }
.page-template-page-publishing :focus-visible { outline-color: var(--wp--preset--color--pub-gold) !important; }
.page-template-page-publishing .type-learner { background: rgba(16,22,42,0.08); color: var(--wp--preset--color--pub-navy); }
.page-template-page-publishing .type-teacher { background: rgba(200,151,58,0.16); color: #9a7320; }
.page-template-page-publishing .type-workbook { background: rgba(200,151,58,0.1); color: #b08428; }
.page-template-page-publishing .bm-price { color: var(--wp--preset--color--pub-gold); }
.page-template-page-publishing .bm-toggle button.is-active { background: var(--wp--preset--color--pub-navy); border-color: var(--wp--preset--color--pub-navy); }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
	:root { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
	.js .reveal { opacity: 1 !important; transform: none !important; }
	.lift-card:hover, .book-card:hover, .wp-element-button:hover, .proj-item:hover img, .media-frame:hover img { transform: none; }
}

@media (max-width: 600px) {
	.book-grid { grid-template-columns: repeat(2, 1fr); }
}
