/*
Theme Name: SHU.AE History
Theme URI: https://shu.ae/
Author: Mr. Shumate (SHU.AE)
Author URI: https://shu.ae/
Description: A bold, cinematic Full Site Editing block theme for a high-school history teacher's classroom command center. Scarlet "history storyboard" hero sections, royal-blue course identity, and gold accents on a cream background. Native Gutenberg blocks, patterns and templates — no page builder required. Pairs with the SHU.AE Core companion plugin.
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.1
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shu-ae-history
Tags: block-theme, full-site-editing, education, one-column, custom-colors, custom-menu, block-patterns, accessibility-ready, translation-ready
*/

/* =========================================================
   Design tokens (mirrored in theme.json)
   ========================================================= */
:root {
	--shu-cream: #F7F1E7;
	--shu-paper: #FFF9EF;
	--shu-navy: #073477;
	--shu-blue: #0A4596;
	--shu-scarlet: #A70812;
	--shu-deep-red: #75070C;
	--shu-gold: #F2B632;
	--shu-soft-gold: #F8D77A;
	--shu-rose: #F7D9D3;
	--shu-ink: #241B1B;
	--shu-muted: #6E625A;
	--shu-success: #2F7D4A;
	--shu-warning: #C48200;
	--shu-white: #FFFFFF;

	--shu-radius: 14px;
	--shu-radius-lg: 20px;
	--shu-radius-sm: 10px;
	--shu-shadow: 0 10px 30px rgba(36, 27, 27, 0.10);
	--shu-shadow-sm: 0 4px 14px rgba(36, 27, 27, 0.08);
	--shu-maxw: 1280px;

	/* Reusable texture layers */
	--shu-halftone: radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.7px);
	--shu-halftone-dark: radial-gradient(rgba(0, 0, 0, 0.10) 1.5px, transparent 1.7px);
}

/* =========================================================
   Base
   ========================================================= */
body {
	background: var(--shu-cream);
	color: var(--shu-ink);
	font-size: 17px;
}
@media (max-width: 600px) { body { font-size: 16px; } }

a { color: var(--shu-scarlet); }
a:hover, a:focus { text-decoration: underline; }

strong, b { font-weight: 700; }

/* Visible keyboard focus everywhere */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--shu-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Skip link */
.skip-link.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--shu-navy);
	color: #fff;
	padding: 12px 18px;
	border-radius: 0 0 8px 0;
	font-weight: 700;
}
.skip-link.screen-reader-text:focus {
	left: 0;
	outline: 3px solid var(--shu-gold);
}
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* Display headings use condensed font, uppercase in heroes only */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title {
	font-family: var(--wp--preset--font-family--display, Oswald), "Arial Narrow", sans-serif;
	line-height: 1.05;
	color: var(--shu-navy);
}
p, li { line-height: 1.62; }

/* =========================================================
   Layout helpers
   ========================================================= */
.shu-inner { max-width: var(--shu-maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.shu-section { padding-block: clamp(1.5rem, 4vw, 2.75rem); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

/* Section header: red bar + gold rule */
.shu-secthead { display: flex; align-items: center; gap: 14px; margin: 0 0 1rem; }
.shu-secthead .shu-secthead__label {
	background: var(--shu-scarlet); color: #fff; font-family: var(--wp--preset--font-family--display, Oswald);
	text-transform: uppercase; letter-spacing: .03em; padding: 8px 18px; border-radius: 8px; font-size: 1.25rem;
}
.shu-secthead::after { content: ""; flex: 1; height: 3px; background: var(--shu-gold); border-radius: 3px; }

/* =========================================================
   Header + primary navigation
   ========================================================= */
.shu-header { background: var(--shu-cream); border-bottom: 1px solid rgba(7,52,119,0.08); }
.shu-header__inner {
	max-width: var(--shu-maxw); margin-inline: auto; padding: 14px clamp(1rem, 4vw, 2.5rem);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Wordmark */
.shu-wordmark { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; }
.shu-wordmark__word { font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 700; font-size: 2.1rem; letter-spacing: .01em; color: var(--shu-navy); position: relative; }
.shu-wordmark__word .dot, .shu-wordmark__word .ae { color: var(--shu-scarlet); }
.shu-wordmark__word .mat { font-size: .5rem; color: var(--shu-muted); position: relative; top: -0.7em; letter-spacing: .05em; }
.shu-wordmark__rule { height: 3px; background: linear-gradient(90deg, var(--shu-navy) 60%, var(--shu-scarlet) 60%); border-radius: 3px; margin: 3px 0 4px; }
.shu-wordmark__tag { font-family: var(--wp--preset--font-family--display, Oswald); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--shu-muted); }

/* Navigation block inside header */
.shu-header .wp-block-navigation { font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 500; }
.shu-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--shu-navy); text-decoration: none; padding: 6px 2px; font-size: 1.12rem; letter-spacing: .01em;
}
.shu-header .wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.shu-header .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content[aria-current] {
	color: var(--shu-scarlet); box-shadow: inset 0 -3px 0 var(--shu-scarlet);
}
.shu-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--shu-scarlet); }

/* =========================================================
   Buttons
   ========================================================= */
.wp-block-button__link, .shu-btn {
	display: inline-flex; align-items: center; gap: .5rem; font-family: var(--wp--preset--font-family--display, Oswald);
	font-weight: 600; border-radius: var(--shu-radius-sm); padding: .8rem 1.4rem; text-decoration: none; border: 2px solid transparent;
	min-height: 44px; font-size: 1.05rem;
}
.wp-block-button.is-style-outline .wp-block-button__link, .shu-btn--outline {
	background: #fff; color: var(--shu-navy); border-color: #fff;
}
.shu-btn--blue { background: var(--shu-blue); color: #fff; }
.shu-btn--gold { background: var(--shu-gold); color: var(--shu-ink); }
.shu-btn--red { background: var(--shu-scarlet); color: #fff; }
.shu-btn:hover, .wp-block-button__link:hover { filter: brightness(1.05); text-decoration: none; }

/* =========================================================
   Scarlet cinematic hero + history storyboard
   ========================================================= */
.shu-hero {
	background:
		var(--shu-halftone) 0 0 / 15px 15px,
		radial-gradient(120% 140% at 15% 0%, rgba(255,255,255,0.10), transparent 45%),
		linear-gradient(135deg, var(--shu-scarlet), var(--shu-deep-red));
	color: #fff; position: relative; overflow: hidden;
}
.shu-hero__grid {
	display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
	max-width: var(--shu-maxw); margin-inline: auto; padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem);
}
.shu-hero h1, .shu-hero h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.shu-hero__lede { color: var(--shu-gold); font-family: var(--wp--preset--font-family--display, Oswald); font-size: 1.4rem; line-height: 1.2; }
.shu-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.25rem; }

/* Storyboard: 4 era panels connected by gold nodes */
.shu-storyboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.shu-storyboard__panel {
	container-type: inline-size;
	position: relative; border-radius: var(--shu-radius); border: 2px solid rgba(255,255,255,0.35);
	background: rgba(0,0,0,0.18); min-height: 300px; padding: 14px; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-start;
}
.shu-storyboard__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; z-index: 0; }
.shu-storyboard__year { position: relative; z-index: 1; font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 700; white-space: nowrap; font-size: min(2.5rem, 44cqi); color: var(--shu-soft-gold); text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.shu-storyboard__label { position: relative; z-index: 1; margin-top: auto; color: #fff; font-weight: 700; }
/* Gold connector nodes between panels */
.shu-storyboard__panel:not(:last-child)::after {
	content: ""; position: absolute; right: -14px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%);
	background: var(--shu-gold); border-radius: 50%; z-index: 2; box-shadow: 0 0 0 4px rgba(242,182,50,.3);
}

/* =========================================================
   Course + utility cards (homepage row)
   ========================================================= */
.shu-cards-row { display: grid; grid-template-columns: repeat(3, 1fr) auto repeat(3, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 1100px) { .shu-cards-row { grid-template-columns: repeat(3, 1fr); } .shu-cards-row .shu-divider { display: none; } }
.shu-divider { width: 2px; background: rgba(7,52,119,.18); border-radius: 2px; }

.shu-course-card {
	border-radius: var(--shu-radius); padding: 1.4rem 1.5rem; color: #fff; display: flex; align-items: center; gap: 14px;
	font-family: var(--wp--preset--font-family--display, Oswald); font-size: 1.5rem; font-weight: 600; text-decoration: none;
	box-shadow: var(--shu-shadow-sm); min-height: 118px; position: relative;
}
.shu-course-card .shu-icon { width: 46px; height: 46px; flex: none; color: var(--shu-gold); }
.shu-course-card--navy { background: linear-gradient(160deg, var(--shu-blue), var(--shu-navy)); }
.shu-course-card--scarlet { background: linear-gradient(160deg, var(--shu-scarlet), var(--shu-deep-red)); }
.shu-course-card span.u { box-shadow: inset 0 -3px 0 var(--shu-gold); }
.shu-course-card:hover { transform: translateY(-2px); text-decoration: none; }

.shu-util-card {
	border-radius: var(--shu-radius); padding: 1.2rem; background: var(--shu-rose); text-align: center; text-decoration: none;
	display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--shu-scarlet); box-shadow: var(--shu-shadow-sm);
	background-image: var(--shu-halftone-dark); background-size: 12px 12px; background-blend-mode: multiply;
}
.shu-util-card .shu-iconcircle { background: var(--shu-scarlet); color: #fff; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; }
.shu-util-card__label { font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 600; font-size: 1.15rem; color: var(--shu-scarlet); }
.shu-util-card__label::after { content: ""; display: block; width: 40px; height: 3px; background: var(--shu-gold); margin: 4px auto 0; border-radius: 3px; }

/* =========================================================
   Starburst band
   ========================================================= */
.shu-band {
	background: linear-gradient(135deg, var(--shu-scarlet), var(--shu-deep-red));
	color: var(--shu-gold); text-align: center; padding: 1.1rem 1rem; border-radius: var(--shu-radius);
	font-family: var(--wp--preset--font-family--display, Oswald); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700;
	display: flex; align-items: center; justify-content: center; gap: 20px;
	background-image: var(--shu-halftone); background-size: 16px 16px;
}
.shu-band .shu-star { width: 34px; height: 34px; flex: none; color: var(--shu-gold); }
.shu-band .shu-rule { flex: 1; max-width: 120px; height: 3px; background: var(--shu-gold); border-radius: 3px; }

/* =========================================================
   Generic panels / cards
   ========================================================= */
.shu-panel { background: var(--shu-paper); border-radius: var(--shu-radius); padding: 1.25rem 1.4rem; box-shadow: var(--shu-shadow-sm); }
.shu-panel--navy { background: linear-gradient(160deg, var(--shu-blue), var(--shu-navy)); color: #fff; }
.shu-panel--scarlet { background: linear-gradient(160deg, var(--shu-scarlet), var(--shu-deep-red)); color: #fff; background-image: var(--shu-halftone); background-size: 15px 15px; }
.shu-panel--gold { background: linear-gradient(160deg, var(--shu-soft-gold), var(--shu-gold)); color: var(--shu-ink); }
.shu-panel--navy :is(h1,h2,h3,h4), .shu-panel--scarlet :is(h1,h2,h3,h4) { color: #fff; }
.shu-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shu-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shu-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Info stat cards (class hub top row) */
.shu-statcard { background: var(--shu-paper); border-radius: var(--shu-radius); padding: 1rem 1.1rem; display: flex; gap: 12px; align-items: center; box-shadow: var(--shu-shadow-sm); }
.shu-statcard .shu-iconcircle { width: 48px; height: 48px; }
.shu-statcard--navy .shu-iconcircle { background: var(--shu-navy); color: #fff; }
.shu-statcard--scarlet .shu-iconcircle { background: var(--shu-scarlet); color: #fff; }
.shu-statcard__k { font-family: var(--wp--preset--font-family--display, Oswald); color: var(--shu-navy); font-weight: 600; display: block; }
.shu-statcard__v { font-family: var(--wp--preset--font-family--display, Oswald); font-size: 1.3rem; font-weight: 700; color: var(--shu-scarlet); line-height: 1.1; }

/* Iconcircle base */
.shu-iconcircle { display: grid; place-items: center; border-radius: 50%; }
.shu-icon, .shu-iconcircle svg { width: 24px; height: 24px; }

/* =========================================================
   Course progress timeline
   ========================================================= */
.shu-timeline { display: flex; align-items: flex-start; justify-content: space-between; position: relative; padding-top: 10px; }
.shu-timeline::before { content: ""; position: absolute; top: 18px; left: 5%; right: 5%; height: 3px; background: var(--shu-gold); }
.shu-timeline__node { position: relative; text-align: center; flex: 1; }
.shu-timeline__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--shu-navy); margin: 0 auto 8px; position: relative; z-index: 1; }
.shu-timeline__node.is-current .shu-timeline__dot { background: var(--shu-scarlet); box-shadow: 0 0 0 5px rgba(167,8,18,.18); }
.shu-timeline__label { font-size: .82rem; color: var(--shu-muted); }
.shu-timeline__node.is-current .shu-timeline__label { color: var(--shu-scarlet); font-weight: 700; }

/* Week list */
.shu-weeklist { list-style: none; margin: 0; padding: 0; }
.shu-weeklist li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed rgba(110,98,90,.3); }
.shu-weeklist .shu-day { background: var(--shu-navy); color: #fff; font-family: var(--wp--preset--font-family--display, Oswald); font-size: .8rem; padding: 3px 8px; border-radius: 6px; flex: none; width: 44px; text-align: center; }

/* Due-next list (scarlet panel) */
.shu-duelist { list-style: none; margin: 0; padding: 0; }
.shu-duelist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.shu-duelist .shu-date { background: #fff; color: var(--shu-scarlet); font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 700; padding: 2px 10px; border-radius: 6px; flex: none; }

/* =========================================================
   Today's Work
   ========================================================= */
.shu-chiprow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.shu-chip {
	font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 500; border: 2px solid var(--shu-blue);
	color: var(--shu-blue); background: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; min-height: 40px; text-decoration: none;
}
.shu-chip[aria-pressed="true"], .shu-chip.is-active { background: var(--shu-blue); color: #fff; }
.shu-chiprow--scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }

.shu-plan { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.shu-plan li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.shu-plan li::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--shu-gold); color: var(--shu-gold); display: grid; place-items: center; font-family: var(--wp--preset--font-family--display, Oswald); flex: none; }
.shu-plan .shu-plan__action { margin-left: auto; }

/* Status pills */
.shu-pill { font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 600; font-size: .82rem; padding: 4px 12px; border-radius: 999px; border: 2px solid; white-space: nowrap; }
.shu-pill--not { color: var(--shu-scarlet); border-color: var(--shu-scarlet); background: #fff; }
.shu-pill--progress { color: var(--shu-warning); border-color: var(--shu-warning); background: #fff; }
.shu-pill--done { color: var(--shu-success); border-color: var(--shu-success); background: #fff; }
.shu-tag { font-family: var(--wp--preset--font-family--display, Oswald); font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 6px; color: #fff; }
.shu-tag--navy { background: var(--shu-navy); } .shu-tag--scarlet { background: var(--shu-scarlet); }

.shu-linklist { list-style: none; margin: 0; padding: 0; }
.shu-linklist li a { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 14px; background: rgba(255,255,255,.08); border-radius: var(--shu-radius-sm); margin-bottom: 8px; color: #fff; text-decoration: none; font-family: var(--wp--preset--font-family--display, Oswald); }
.shu-linklist li a:hover { background: rgba(255,255,255,.16); }

/* Legend */
.shu-legend { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; color: #fff; }
.shu-legend .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* =========================================================
   Calendar
   ========================================================= */
.shu-cal { width: 100%; border-collapse: collapse; background: var(--shu-paper); border-radius: var(--shu-radius); overflow: hidden; }
.shu-cal th { background: var(--shu-scarlet); color: #fff; font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 500; padding: 10px 8px; text-align: left; font-size: .9rem; }
.shu-cal td { border: 1px solid rgba(110,98,90,.18); vertical-align: top; height: 92px; padding: 6px; width: 14.28%; }
.shu-cal td.is-out { color: var(--shu-muted); background: rgba(0,0,0,.02); }
.shu-cal td.is-today { outline: 2px solid var(--shu-scarlet); outline-offset: -2px; }
.shu-cal__date { font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 600; }
.shu-cal__ev { display: block; font-size: .74rem; padding: 2px 6px; border-radius: 5px; margin-top: 4px; background: rgba(10,69,150,.12); color: var(--shu-navy); }
.shu-cal__ev--assign { background: rgba(242,182,50,.22); color: var(--shu-warning); }
.shu-cal__ev--assess { background: rgba(167,8,18,.14); color: var(--shu-scarlet); }

/* =========================================================
   Resources
   ========================================================= */
.shu-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid rgba(7,52,119,.2); border-radius: 999px; padding: 6px 16px; }
.shu-search input { border: 0; outline: 0; flex: 1; font-size: 1rem; background: transparent; min-height: 38px; }
.shu-rescard { background: var(--shu-paper); border-radius: var(--shu-radius); padding: 1rem; display: flex; gap: 12px; box-shadow: var(--shu-shadow-sm); }
.shu-rescard .shu-iconcircle { width: 44px; height: 44px; background: var(--shu-scarlet); color: #fff; flex: none; }
.shu-rescard h3 { color: var(--shu-navy); margin: 0 0 4px; font-size: 1.15rem; }
.shu-rescard__meta { font-family: var(--wp--preset--font-family--display, Oswald); color: var(--shu-blue); font-size: .82rem; letter-spacing: .02em; }
.shu-rescard__action { color: var(--shu-scarlet); font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 600; text-decoration: none; }

/* =========================================================
   Posts archive + cards
   ========================================================= */
.shu-postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.shu-postcard { background: var(--shu-paper); border-radius: var(--shu-radius); overflow: hidden; box-shadow: var(--shu-shadow-sm); display: flex; flex-direction: column; }
.shu-postcard .shu-postcard__media { aspect-ratio: 16/10; background: linear-gradient(160deg, var(--shu-scarlet), var(--shu-deep-red)); }
.shu-postcard .shu-postcard__media img { width: 100%; height: 100%; object-fit: cover; }
.shu-postcard__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.shu-postcard__cat { align-self: flex-start; background: var(--shu-navy); color: #fff; font-family: var(--wp--preset--font-family--display, Oswald); font-size: .74rem; padding: 3px 10px; border-radius: 6px; }
.shu-postcard h3 { margin: 2px 0; font-size: 1.15rem; color: var(--shu-navy); }
.shu-readmore { color: var(--shu-scarlet); font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 600; text-decoration: none; margin-top: auto; }

/* =========================================================
   Single post
   ========================================================= */
.shu-article-hero { background: linear-gradient(135deg, var(--shu-scarlet), var(--shu-deep-red)); color: #fff; background-image: var(--shu-halftone); background-size: 15px 15px; }
.shu-article-hero .shu-inner { padding-block: clamp(1.75rem, 4vw, 3rem); }
.shu-article-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.shu-article-hero .shu-badge { display: inline-block; border: 2px solid var(--shu-gold); color: var(--shu-gold); font-family: var(--wp--preset--font-family--display, Oswald); letter-spacing: .1em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; font-size: .8rem; }
.shu-article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.shu-prose { font-size: 1.08rem; }
.shu-prose h2 { color: var(--shu-scarlet); margin-top: 1.6rem; }
.shu-prose blockquote, .wp-block-quote { border-left: 4px solid var(--shu-gold); background: rgba(242,182,50,.08); padding: 12px 18px; font-style: italic; color: var(--shu-deep-red); border-radius: 0 8px 8px 0; }
.shu-callout { display: flex; gap: 14px; align-items: flex-start; background: rgba(242,182,50,.12); border: 1px solid rgba(242,182,50,.5); border-radius: var(--shu-radius); padding: 14px 16px; }
.shu-callout .shu-iconcircle { background: var(--shu-scarlet); color: #fff; width: 40px; height: 40px; flex: none; }
.shu-sidebar { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.wp-block-table.is-style-shu td, .shu-compare td { border: 1px solid rgba(110,98,90,.25); padding: 8px 12px; }
.shu-compare th { background: var(--shu-scarlet); color: #fff; padding: 8px 12px; text-align: left; }

/* =========================================================
   FAQ / accordion (details)
   ========================================================= */
.shu-faq details { background: var(--shu-paper); border-radius: var(--shu-radius-sm); margin-bottom: 8px; box-shadow: var(--shu-shadow-sm); }
.shu-faq summary { cursor: pointer; padding: 12px 16px; font-family: var(--wp--preset--font-family--display, Oswald); font-weight: 600; color: var(--shu-navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.shu-faq summary::after { content: "\203A"; transform: rotate(90deg); transition: transform .2s; font-size: 1.4rem; }
.shu-faq details[open] summary::after { transform: rotate(270deg); }
.shu-faq details > *:not(summary) { padding: 0 16px 14px; }

/* Icon cards (standard page) */
.shu-iconcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shu-iconcard { background: var(--shu-paper); border-radius: var(--shu-radius); padding: 1.4rem; text-align: center; box-shadow: var(--shu-shadow-sm); }
.shu-iconcard .shu-iconcircle { background: var(--shu-scarlet); color: #fff; width: 60px; height: 60px; margin: 0 auto 10px; }
.shu-iconcard h3 { color: var(--shu-scarlet); }

/* Stats row */
.shu-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shu-stats .shu-stat { display: flex; gap: 12px; align-items: center; }
.shu-stats .shu-stat__num { font-family: var(--wp--preset--font-family--display, Oswald); font-size: 2.4rem; font-weight: 700; color: var(--shu-scarlet); }

/* =========================================================
   Footer
   ========================================================= */
.shu-footer { background: #241B1B; color: #fff; background-image: var(--shu-halftone); background-size: 16px 16px; }
.shu-footer a { color: #fff; text-decoration: none; }
.shu-footer a:hover { text-decoration: underline; color: var(--shu-gold); }
.shu-footer__inner { max-width: var(--shu-maxw); margin-inline: auto; padding: 2rem clamp(1rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.shu-footer .wp-block-navigation { font-family: var(--wp--preset--font-family--display, Oswald); }
.shu-footer .wp-block-navigation a { color: var(--shu-gold); }
.shu-footer__legal { width: 100%; text-align: center; font-size: .82rem; color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; }
.shu-footer .shu-wordmark__word { color: #fff; }
.shu-footer .shu-wordmark__word .dot, .shu-footer .shu-wordmark__word .ae { color: var(--shu-gold); }
.shu-footer .shu-wordmark__tag { color: rgba(255,255,255,.8); }

/* =========================================================
   Mobile sticky bottom nav
   ========================================================= */
.shu-bottomnav { display: none; }
@media (max-width: 782px) {
	.shu-bottomnav {
		display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
		background: var(--shu-deep-red); border-top: 2px solid var(--shu-gold); padding: 6px 4px env(safe-area-inset-bottom);
	}
	.shu-bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-decoration: none; font-family: var(--wp--preset--font-family--display, Oswald); font-size: .72rem; padding: 6px 2px; min-height: 44px; justify-content: center; }
	.shu-bottomnav a[aria-current] { color: var(--shu-gold); }
	.shu-bottomnav svg { width: 22px; height: 22px; }
	body { padding-bottom: 64px; }
}

/* =========================================================
   Responsive collapses
   ========================================================= */
@media (max-width: 1000px) {
	.shu-hero__grid { grid-template-columns: 1fr; }
	.shu-article-layout { grid-template-columns: 1fr; }
	.shu-sidebar { position: static; }
	.shu-grid-3, .shu-grid-4, .shu-iconcards, .shu-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.shu-storyboard { grid-template-columns: 1fr 1fr; }
	.shu-storyboard__panel:not(:last-child)::after { display: none; }
	.shu-grid-2, .shu-grid-3, .shu-grid-4, .shu-iconcards, .shu-stats, .shu-cards-row { grid-template-columns: 1fr; }
	.shu-cal { display: block; overflow-x: auto; }
	.shu-secthead .shu-secthead__label { font-size: 1rem; }
}

/* =========================================================
   Glue: block-markup specifics
   ========================================================= */
.shu-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shu-header__inner { display: flex; }
.shu-header__nav-wrap { margin-left: auto; }
.shu-hero__text > * { color: #fff; }
.shu-hero__text .shu-hero__lede { color: var(--shu-gold); }
.shu-storyboard__panel > p { margin: 0; }
.shu-course-card p { margin: 0; }
.shu-course-card a, .shu-course-card a:hover { color: #fff; text-decoration: none; }
.shu-util-card a, .shu-util-card a:hover { color: var(--shu-scarlet); text-decoration: none; }
.shu-util-card__label { margin: 0; }
.shu-rescard__body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shu-rescard__meta .wp-block-post-terms { display: inline; margin-right: 10px; }
.shu-panel--scarlet a, .shu-panel--navy a { color: #fff; }
.shu-panel--scarlet .wp-block-post-title a, .shu-panel--navy .wp-block-post-title a { color: #fff; }
.shu-duerow { align-items: center; gap: 8px; }
.shu-duerow .wp-block-post-title { flex: 1; margin: 0; min-width: 40%; }
.shu-duerow .wp-block-post-title a { color: #fff; text-decoration: none; }
.shu-dlrow .wp-block-post-title { margin: 0; }
.shu-statrow { margin-top: 0.5rem; }
.shu-statcard__k, .shu-statcard__v { display: block; }
.shu-statcard a { color: inherit; text-decoration: underline; }
.shu-unitres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.shu-unitres a { text-decoration: none; }
.shu-band .wp-block-buttons { margin: 0; }
.shu-postfilter { margin-bottom: 1rem; gap: 12px; }
.shu-secthead .wp-block-navigation, .shu-secthead { margin-bottom: 1rem; }
.shu-page-title { margin-bottom: 1rem; }
.shu-class-meta p { margin: 0; font-family: var(--wp--preset--font-family--display, Oswald); }
.wp-block-post-terms a { text-decoration: none; }

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.shu-course-card:hover { transform: none; }
}
