/*
Theme Name: CCS Crusaders
Theme URI: https://ccscrusaders.com
Author: Melanie Hansen
Description: Block theme for Columbia Christian School (Magnolia, AR), built to match CCS Website Wireframe v1. Official Crusader colors used the way the wireframe used its greys: Crusader Blue where the wireframe was dark, Armor Grey tints for light areas, Legacy Green for Give, and Banner Gold only as a small accent (hover and active states, thin rules, highlights), Charcoal Grey for text and the footer. Fonts: Crimson Pro (headings) and Lato (body). On activation it creates every page in the site map.
Version: 1.31.3
Requires at least: 6.8
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: ccs-crusaders
*/

/*
 * Color mapping from the wireframe (kept calm on purpose):
 *   wireframe #222 (dark bars, buttons, badges, footer) -> Crusader Blue
 *   wireframe #f2f2f2 (alternating sections)            -> Armor Grey 15%
 *   wireframe #e0e0e0 (photo spots)                     -> Armor Grey 30%
 *   wireframe #c8c8c8 (borders)                         -> Armor Grey 50%
 *   wireframe #d9d9d9 Give button in the header         -> Banner Gold (on white)
 *   Give section accent                                 -> Legacy Green / Legacy Green 30%
 * Nov 2026 decisions: Crusader Blue = main brand color (header, nav, buttons, links, headings,
 * footer accents); Banner Gold = small accents only (hover/active states, thin rules, icons,
 * highlights); Banner Gold 30% = soft backgrounds and callouts; Armor Grey = borders, dividers,
 * icons, disabled; Charcoal Grey = body text; Crusader Blue = footer background (Nov 13, 2026; was Deep Navy #001F5C from Nov 6); Light Grey = cards, table banding,
 * field borders; Legacy Green = Give only.
 *
 * Text style standards (brand guide p. 11, Nov 6 2026), set in theme.json:
 *   H1  Crimson Pro bold, sentence case, 40px   (xx-large)
 *   H2  Crimson Pro bold, ALL CAPS, 32px        (x-large)
 *   H3  Crimson Pro bold, sentence case, 28px   (heading-3)
 *   Body  Lato regular, 18px                    (medium)
 *   Captions and fine print  Lato regular, 13px
 * The theme uses H1 to H3 only. Do not add H4 to H6 styles.
 */

:root {
	--ccs-blue: var(--wp--preset--color--crusader-blue);
	--ccs-blue-dark: var(--wp--preset--color--crusader-blue-dark);
	--ccs-gold: var(--wp--preset--color--banner-gold);
	--ccs-green: var(--wp--preset--color--legacy-green);
	--ccs-green-30: var(--wp--preset--color--legacy-green-30);
	--ccs-grey: var(--wp--preset--color--armor-grey);
	--ccs-grey-15: var(--wp--preset--color--armor-grey-15);
	--ccs-grey-30: var(--wp--preset--color--armor-grey-30);
	--ccs-line: var(--wp--preset--color--armor-grey-50);
	--ccs-ink: var(--wp--preset--color--ink);
	--ccs-slate: var(--wp--preset--color--slate);
	--ccs-border: 1px solid var(--ccs-line);
	--ccs-row: 1px solid var(--ccs-grey-30);
}

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.ccs-flush > * + * { margin-block-start: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--ccs-blue);
	outline-offset: 2px;
}
.has-crusader-blue-background-color a:focus-visible,
.has-legacy-green-background-color a:focus-visible,
.has-ink-background-color a:focus-visible,
.ccs-footer a:focus-visible { outline-color: var(--wp--preset--color--white); }

h1, h2, h3 { margin-block-start: 0; }
.ccs-tight { margin-block: 0 !important; }
.ccs-tight + .ccs-tight { margin-top: 2px !important; }
.ccs-small { font-size: 0.875rem; }
.ccs-sub { font-size: 0.875rem; color: var(--ccs-slate); }
.ccs-part > .wp-block-heading + .ccs-sub { margin-block-start: 4px; }
.ccs-more { margin: 0; }
.ccs-more a { font-weight: 600; display: inline-block; padding: 10px 0; }
.ccs-measure { max-width: 760px; }
.ccs-lede { font-size: 1.125rem; max-width: 680px; }
.ccs-lede--lg { font-size: 1.1875rem; max-width: 620px; }
.ccs-h-md { font-size: 2rem !important; }
.ccs-h-sm { font-size: 2rem !important; }

/* Dark bands: text and links in white */
.has-crusader-blue-background-color, .has-legacy-green-background-color, .has-ink-background-color { color: var(--wp--preset--color--white); }
.has-crusader-blue-background-color :where(h1, h2, h3),
.has-legacy-green-background-color :where(h1, h2, h3),
.has-ink-background-color :where(h1, h2, h3) { color: var(--wp--preset--color--white); }
.has-crusader-blue-background-color a:where(:not(.wp-element-button)),
.has-legacy-green-background-color a:where(:not(.wp-element-button)),
.has-ink-background-color a:where(:not(.wp-element-button)) { color: inherit; }

/* Paragraphs that look like a heading without being one (Paragraph block → Styles).
   For big numbers and display text that should not count as a heading for search
   engines or screen readers. Sizes and case follow the H1 to H3 standards. */
p.is-style-ccs-h1, p.is-style-ccs-h2, p.is-style-ccs-h3 {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 700; line-height: 1.1; letter-spacing: 0;
	color: var(--ccs-blue);
	margin-block-start: 0;
}
p.is-style-ccs-h1 { font-size: var(--wp--preset--font-size--xx-large); }
p.is-style-ccs-h2 { font-size: var(--wp--preset--font-size--x-large); text-transform: uppercase; }
p.is-style-ccs-h3 { font-size: var(--wp--preset--font-size--heading-3); }
:is(.has-crusader-blue-background-color, .has-legacy-green-background-color, .has-ink-background-color) p:is(.is-style-ccs-h1, .is-style-ccs-h2, .is-style-ccs-h3) { color: var(--wp--preset--color--white); }

/* ---------- Sections (wireframe: 56px top/bottom, 1120px wide) ---------- */
.ccs-sec { padding-block: 56px; }
.ccs-sec--48 { padding-block: 48px; }
.ccs-sec--48top { padding-top: 48px; }
.ccs-sec--tiles { padding-top: 48px; padding-bottom: 24px; }
.ccs-sec > .alignwide > * + * { margin-block-start: 24px; }
.ccs-sec > .alignwide > .wp-block-heading + * { margin-block-start: 20px; }
.ccs-sec > .alignwide > .wp-block-heading + .ccs-sub { margin-block-start: 8px !important; }
.ccs-gap-40 { gap: 40px !important; }
.ccs-gap-12 { gap: 12px !important; }
.wp-block-column > * + * { margin-block-start: 14px; }

/* ---------- Header ---------- */
.ccs-announcement { font-size: 0.875rem; text-align: center; }
.ccs-announcement p { margin: 0; }
.ccs-announcement a { color: var(--wp--preset--color--white) !important; font-weight: 600; }
/* Scrolling announcement (assets/js/site.js): right to left, pauses on hover or focus, Pause / Play button */
.ccs-announcement .ccs-marquee-wrap { display: flex; align-items: center; gap: 12px; max-width: var(--wp--style--global--wide-size) !important; }
.ccs-announcement p.ccs-marquee { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-align: left; }
.ccs-marquee-track { display: inline-block; padding-left: 100%; animation: ccs-marquee 20s linear infinite; will-change: transform; }
.ccs-announcement p.ccs-marquee:hover .ccs-marquee-track,
.ccs-announcement p.ccs-marquee:focus-within .ccs-marquee-track { animation-play-state: paused; }
.ccs-marquee-wrap.is-paused p.ccs-marquee { white-space: normal; text-align: center; }
.ccs-marquee-wrap.is-paused .ccs-marquee-track { animation: none; padding-left: 0; }
@keyframes ccs-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.ccs-marquee-toggle {
	flex: 0 0 auto; font: inherit; font-size: 0.8125rem; font-weight: 600; line-height: 1;
	color: var(--wp--preset--color--white); background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.ccs-marquee-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.ccs-marquee-toggle:focus-visible { outline: 3px solid var(--wp--preset--color--white); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.ccs-marquee-track { animation: none; padding-left: 0; }
	.ccs-announcement p.ccs-marquee { white-space: normal; text-align: center; }
	.ccs-marquee-toggle { display: none; }
}

.ccs-quicklinks { font-size: 0.875rem; border-bottom: var(--ccs-border); }
.ccs-quicklinks .wp-block-navigation { gap: 4px 24px; }
.ccs-quicklinks .wp-block-navigation-item__content { padding: 12px 0; color: var(--ccs-ink); text-decoration: underline; text-underline-offset: 3px; }
.ccs-quicklinks .wp-block-navigation-item__content:hover { color: var(--ccs-blue); }

.ccs-masthead { border-bottom: 2px solid var(--ccs-blue); position: relative; z-index: 20; }
.ccs-brand { gap: 12px; }
/* Logo size is set in the editor (Logo block → Width). Up to v1.10.0 this rule forced 56px,
   which is why the logo could not be resized. */
.ccs-brand .wp-block-site-logo { flex-shrink: 0; max-width: 70vw; }
.ccs-brand .wp-block-site-logo img { height: auto; max-width: 100%; }
/* Until a logo is added, show the wireframe's LOGO box (only visible to you while building) */
.ccs-brand:not(:has(.wp-block-site-logo img))::before {
	content: "LOGO";
	width: 56px; height: 56px; flex: 0 0 56px;
	display: flex; align-items: center; justify-content: center;
	border: 1px dashed var(--ccs-grey); background: var(--ccs-grey-30);
	font-size: 11px; color: var(--ccs-slate);
}
.ccs-brand .wp-block-site-title { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.375rem; line-height: 1.2; margin: 0; }
.ccs-brand .wp-block-site-title a { text-decoration: none; color: var(--ccs-blue); }

.ccs-mainnav { font-weight: 600; font-size: 1rem; }
.ccs-mainnav a { text-decoration: none; color: var(--ccs-ink); }
.ccs-mainnav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { padding-block: 12px; }
.ccs-mainnav a:hover { color: var(--ccs-blue); }
.ccs-mainnav .wp-block-navigation__submenu-container {
	border: var(--ccs-border) !important;
	border-top: 2px solid var(--ccs-blue) !important;
	box-shadow: 0 8px 20px rgba(0, 38, 122, 0.10);
	padding: 6px 0 !important;
	min-width: 15rem !important;
	font-weight: 500;
}
.ccs-mainnav .wp-block-navigation__submenu-container a { padding: 8px 16px !important; }
.ccs-mainnav .wp-block-navigation__submenu-container a:hover { background: var(--ccs-grey-15); }
/* Give: the wireframe's light button, in Banner Gold (always on white) */
.ccs-mainnav .is-style-ccs-give > .wp-block-navigation-item__content {
	background: var(--ccs-gold);
	color: var(--wp--preset--color--black) !important;
	padding: 12px 22px !important;
	border-radius: 4px;
}
.ccs-mainnav .is-style-ccs-give > .wp-block-navigation-item__content:hover { background: #FFD933; }
.ccs-mainnav .is-style-ccs-give > .wp-block-navigation__submenu-icon { display: none; }

/* ---------- Footer ---------- */
/* The footer is Crusader Blue since v1.12.5. Deep Navy was removed from the palette; this keeps
   a footer that was saved in the Site Editor with the old color showing Crusader Blue. */
.has-crusader-navy-background-color { background-color: var(--ccs-blue) !important; }
.ccs-footer { font-size: 0.9375rem; line-height: 1.7; border-top: 4px solid var(--ccs-gold); position: relative; }
/* v1.12.4: a white line the same thickness sits just under the footer's gold rule. */
.ccs-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--wp--preset--color--white); }
/* v1.13.0: the seal is built into the theme (assets/images/ccs-seal.png; inc/extras.php).
   It is as tall as the text block beside it: from the top of "Columbia Christian School" to
   the bottom of the "How we reach you" link (assets/js/site.js measures this). 150 px until
   the script runs; 110 px when the columns stack on phones. */
.ccs-footer-cols { gap: 32px !important; }
.ccs-footer-seal .wp-block-image, .ccs-footer-seal figure { margin: 0; }
/* Seal column 18%, school name/address column 28% (were 16% / 30%), so the seal fits at the
   full text height. Set here too so a footer saved in the Site Editor gets the same widths. */
@media (min-width: 782px) {
	.ccs-footer-cols > .wp-block-column.ccs-footer-seal { flex-basis: 18% !important; }
	.ccs-footer-cols > .wp-block-column.ccs-footer-seal + .wp-block-column { flex-basis: 28% !important; }
}
.ccs-footer-seal img {
	display: block; width: auto; height: 150px; max-width: 100%;
	object-fit: contain; object-position: left center;
}
@media (max-width: 781px) {
	.ccs-footer-seal img { height: 110px !important; margin-top: 0 !important; }
}
.ccs-footer h3 { font-size: 0.9375rem; font-weight: 700; color: var(--wp--preset--color--white) !important; margin: 0 0 10px; }
.ccs-footer .ccs-footer-name { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.ccs-footer p { margin-block: 0; }
.ccs-footer a { color: var(--wp--preset--color--white); }
.ccs-footer a:hover { text-decoration-thickness: 2px; }
.ccs-footer .wp-block-separator { border-color: rgba(255, 255, 255, 0.35); opacity: 1; margin-block: 32px 16px; }
.ccs-footer-bottom { font-size: 0.8125rem; }
.ccs-footer-bottom p { margin: 0; }

/* Plain link lists */
.ccs-plain-list { list-style: none; padding-left: 0; margin: 0; }
.ccs-plain-list li { margin: 0 0 10px; }

/* ---------- Page band (Crusader Blue band at the top of inner pages) ---------- */
.ccs-band { padding-block: 32px 40px; }
.ccs-band .alignwide > * + * { margin-block-start: 12px !important; }
.ccs-band .wp-block-breadcrumbs { font-size: 0.875rem; }
.ccs-band .wp-block-breadcrumbs a { color: var(--ccs-ink); }
.ccs-page-title { font-size: clamp(2rem, 4vw, 2.5rem) !important; margin: 0 !important; }

/* ---------- Hero ---------- */
.ccs-hero { padding-block: 96px !important; }
.ccs-give-hero { padding-block: 80px !important; }
.ccs-hero .wp-block-cover__inner-container { text-align: left; }
.ccs-hero .ccs-hero-copy > * + * { margin-block-start: 20px; }
.ccs-hero .ccs-hero-title { font-size: clamp(2rem, 4.5vw, 2.5rem); line-height: 1.1; max-width: 720px; margin: 0; }
.ccs-give-hero .ccs-hero-title { font-size: clamp(2rem, 4.5vw, 2.5rem); }
.ccs-hero .wp-block-cover__background { background-color: var(--ccs-grey-30); }
.ccs-hero { border-bottom: 1px dashed var(--ccs-grey); }
/* Once a photo or video is added: tint it blue (green on Give) and switch to white text */
.ccs-hero:has(.wp-block-cover__image-background, .wp-block-cover__video-background) { border-bottom: 0; }
.ccs-hero:has(.wp-block-cover__image-background, .wp-block-cover__video-background) .wp-block-cover__background { background-color: var(--ccs-blue-dark) !important; opacity: 0.6 !important; }
.ccs-give-hero:has(.wp-block-cover__image-background, .wp-block-cover__video-background) .wp-block-cover__background { background-color: #004D2D !important; }
.ccs-hero:has(.wp-block-cover__image-background, .wp-block-cover__video-background) :is(h1, p) { color: var(--wp--preset--color--white) !important; }
.ccs-hero:has(.wp-block-cover__image-background, .wp-block-cover__video-background) .wp-block-button:not([class*="is-style-"]) .wp-block-button__link { background: var(--wp--preset--color--white); border-color: var(--wp--preset--color--white); color: var(--ccs-blue); }
.ccs-hero:has(.wp-block-cover__image-background, .wp-block-cover__video-background) :is(.is-style-outline, .is-style-ccs-give-outline) .wp-block-button__link { background: transparent; border-color: var(--wp--preset--color--white); color: var(--wp--preset--color--white); }
.ccs-give-hero:has(.wp-block-cover__image-background, .wp-block-cover__video-background) .wp-block-button:not(.is-style-ccs-give-outline) .wp-block-button__link { color: var(--ccs-green); }

/* Wireframe-style label tag ("Hero: full-width campus photo ...") */
.ccs-tag {
	display: inline-block;
	font-size: 0.8125rem !important;
	color: var(--ccs-slate) !important;
	border: 1px dashed var(--ccs-grey);
	background: var(--wp--preset--color--white);
	padding: 4px 10px;
	margin: 0;
}

/* ---------- Photo spots ---------- */
.ccs-photo { border: 1px dashed var(--ccs-grey); border-radius: 2px; overflow: hidden; padding: 0 !important; }
.ccs-photo .wp-block-cover__background { background-color: var(--ccs-grey-30); }
.ccs-photo .wp-block-cover__inner-container { text-align: center; }
.ccs-photo-label { font-size: 0.8125rem; color: var(--ccs-slate); margin: 0; }
.ccs-photo--band { border-width: 0 0 1px; border-radius: 0; }
.ccs-photo--flush { border: 0; border-radius: 0; }
.ccs-avatar { width: 96px; min-width: 96px; flex-shrink: 0; }
.ccs-spot-photo { width: 140px; min-width: 140px; align-self: stretch; }
:is(.ccs-photo, .ccs-hero):has(.wp-block-cover__image-background, .wp-block-cover__video-background) :is(.ccs-photo-label, .ccs-tag) { display: none; }
.ccs-photo:has(.wp-block-cover__image-background, .wp-block-cover__video-background) { border: 0; }

/* ---------- Tiles (photo + bold title, no box) ---------- */
.ccs-tile > * + * { margin-block-start: 10px !important; }
.ccs-tile-title { font-weight: 700; font-size: 1.125rem; margin: 0; }
.ccs-tile-title a { text-decoration: none; color: var(--ccs-ink); }
.ccs-tile-title a:hover { color: var(--ccs-blue); text-decoration: underline; }
.ccs-person > * + * { margin-block-start: 6px !important; }

/* ---------- Cards (square corners, 1px border, 20px padding) ---------- */
.is-style-ccs-card {
	background: var(--wp--preset--color--white);
	border: var(--ccs-border);
	padding: 20px;
}
.is-style-ccs-card > * { margin-block: 0; }
.is-style-ccs-card > * + * { margin-block-start: 8px; }
.is-style-ccs-card h3 { color: var(--ccs-ink); margin: 0; }
.is-style-ccs-card .ccs-more a { padding-bottom: 0; }
.ccs-pad-24 { padding: 24px; }
.ccs-alerts { padding: 28px; }
.ccs-alerts > * + * { margin-block-start: 12px; }
.ccs-alerts .ccs-h-sm { color: var(--ccs-blue); }

.ccs-media-card { padding: 0; overflow: hidden; }
.ccs-media-card > * + * { margin-block-start: 0; }
.ccs-card-body { padding: 16px; }
.ccs-card-body > * + * { margin-block-start: 6px; }
.ccs-news-img { margin: 0 !important; }
.ccs-news-img img { height: 180px; width: 100%; object-fit: cover; }
.ccs-news-title { margin: 0; }
.ccs-news-title a { color: var(--ccs-ink); text-decoration: none; }
.ccs-media-card .wp-block-post-excerpt__more-link { font-weight: 600; display: inline-block; padding-top: 10px; }
.ccs-fund-title { padding: 16px; margin: 0; font-weight: 700; }
.ccs-fund-title a { color: var(--ccs-ink); text-decoration: none; }
.ccs-fund-title a:hover { color: var(--ccs-green); text-decoration: underline; }
.ccs-featured { border: 2px solid var(--ccs-green); }

.ccs-member { gap: 16px; align-items: center; }
.ccs-spotlight { padding: 0; gap: 0; align-items: stretch; flex-wrap: wrap; overflow: hidden; }
.ccs-spotlight .ccs-card-body { flex: 1 1 200px; }

/* Stats */
.ccs-stat { text-align: center; padding: 28px 16px; }
/* Stat numbers are paragraphs, not headings (a bare number is not a section title), styled
   like H1: Crimson Pro bold, all caps, 40px (Nov 6, 2026 meeting; Katie's note Nov 12). */
.ccs-stat-num { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--xx-large); font-weight: 700; line-height: 1.1; text-transform: uppercase; color: var(--ccs-blue); overflow-wrap: anywhere; }
.ccs-stat--sm { padding: 16px; }
.ccs-stat--sm .ccs-stat-num { font-size: 1.625rem; }

/* Events and date badges */
.ccs-event { gap: 16px !important; align-items: center; padding: 14px; margin-block: 0; }
.ccs-sec .ccs-event + .ccs-event { margin-block-start: 14px; }
.ccs-date {
	width: 64px; min-width: 64px; height: 64px;
	display: flex; align-items: center; justify-content: center;
	background: var(--ccs-blue);
	color: var(--wp--preset--color--white);
	font-size: 0.8125rem; font-weight: 600;
	margin: 0 !important;
}
.ccs-step-num {
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--ccs-blue);
	color: var(--wp--preset--color--white);
	font-weight: 700;
	margin: 0 !important;
}

/* ---------- Tables ---------- */
.wp-block-table { margin: 0; overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; background: var(--wp--preset--color--white); }
.wp-block-table td, .wp-block-table th { border: 0; text-align: left; overflow-wrap: normal; word-break: normal; }
.wp-block-table thead { border: 0; }
/* Data tables: blue header row (wireframe dark header) */
.ccs-data-table { border: var(--ccs-border); }
.ccs-data-table table { min-width: 520px; }
.ccs-data-table th { background: var(--ccs-blue); color: var(--wp--preset--color--white); font-weight: 600; padding: 14px 16px; }
.ccs-data-table td { padding: 14px 16px; border-top: var(--ccs-row); }
.ccs-data-table td:first-child { font-weight: 600; }
/* List boxes: label left, value right, light rules between rows */
.ccs-list-table { border: var(--ccs-border); background: var(--wp--preset--color--white); }
.ccs-list-table table { table-layout: auto; }
.ccs-list-table td { padding: 12px 16px; border-bottom: var(--ccs-row); }
.ccs-list-table tr:last-child td { border-bottom: 0; }
.ccs-list-table td:last-child:not(:first-child) { text-align: right; }
.ccs-list-head th { padding: 12px 16px; font-weight: 700; border-bottom: var(--ccs-row); background: var(--wp--preset--color--white); color: var(--ccs-ink); }

/* ---------- School / sport layouts ---------- */
.ccs-part > * { margin-block: 0; }
.ccs-part > * + * { margin-block-start: 12px; }
.ccs-with-sidebar .wp-block-column > .ccs-part + .ccs-part { margin-block-start: 40px; }
.ccs-handbook { padding: 18px; gap: 16px; align-items: center; }
.ccs-toc-box { border: var(--ccs-border); background: var(--wp--preset--color--white); }
.ccs-toc-title { background: var(--ccs-blue); color: var(--wp--preset--color--white); font-weight: 700; padding: 12px 16px; margin: 0; }
.ccs-toc { list-style: none; padding: 0; margin: 0 !important; }
.ccs-toc li { border-bottom: var(--ccs-row); margin: 0; }
.ccs-toc li:last-child { border-bottom: 0; }
.ccs-toc a { display: block; padding: 12px 16px; }
.ccs-aside > * + * { margin-block-start: 20px; }
[id] { scroll-margin-top: 16px; }
@media (min-width: 782px) {
	.ccs-sticky { position: sticky; top: 16px; }
}

/* Sport pills */
.ccs-pills { gap: 8px !important; }
.wp-block-button:is(.is-style-ccs-pill, .is-style-ccs-pill-current) .wp-block-button__link {
	border-radius: 22px;
	padding: 10px 14px;
	font-size: 0.9375rem;
	border-width: 1px;
}
.wp-block-button.is-style-ccs-pill .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--ccs-ink); border-color: var(--ccs-slate); font-weight: 400; }
.wp-block-button.is-style-ccs-pill .wp-block-button__link:hover { border-color: var(--ccs-blue); color: var(--ccs-blue); }
.wp-block-button.is-style-ccs-pill-current .wp-block-button__link { background: var(--ccs-blue); border-color: var(--ccs-blue); color: var(--wp--preset--color--white); }

/* ---------- Bands at the bottom of pages ---------- */
.ccs-cta-row { gap: 24px !important; align-items: center; }
.ccs-cta-row > .wp-block-heading { flex: 1 1 380px; margin: 0; }
.ccs-cta-copy { flex: 1 1 420px; }
.ccs-cta-copy > * { margin: 0; }
.ccs-cta-copy > * + * { margin-top: 8px; }
.ccs-give-band .wp-block-button__link { padding: 13px 32px; font-weight: 700; }

/* ---------- Buttons ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ccs-grey-15); }
.wp-block-button.is-style-ccs-gold .wp-block-button__link { background: var(--ccs-gold); border-color: var(--ccs-gold); color: var(--wp--preset--color--black); }
.wp-block-button.is-style-ccs-light .wp-block-button__link { background: var(--wp--preset--color--white); border-color: var(--wp--preset--color--white); color: var(--ccs-blue); font-weight: 700; }
.has-legacy-green-background-color .wp-block-button.is-style-ccs-light .wp-block-button__link { color: var(--ccs-green); }
.wp-block-button.is-style-ccs-light .wp-block-button__link:hover { background: var(--ccs-grey-15); }
.wp-block-button.is-style-ccs-outline-light .wp-block-button__link { background: transparent; border-color: var(--wp--preset--color--white); color: var(--wp--preset--color--white); font-weight: 700; }
.wp-block-button.is-style-ccs-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); }
.wp-block-button.is-style-ccs-give .wp-block-button__link { background: var(--ccs-green); border-color: var(--ccs-green); color: var(--wp--preset--color--white); padding-inline: 32px; font-weight: 700; }
.wp-block-button.is-style-ccs-give .wp-block-button__link:hover { background: #00613A; border-color: #00613A; }
.wp-block-button.is-style-ccs-give-outline .wp-block-button__link { background: var(--wp--preset--color--white); border-color: var(--ccs-green); color: var(--ccs-green); }

/* ---------- Give hub ---------- */
.ccs-give .wp-block-button:not([class*="is-style-"]) .wp-block-button__link { background: var(--ccs-green); border-color: var(--ccs-green); }

/* ---------- Notes (wireframe annotation style) ---------- */
.is-style-ccs-slot {
	border: 1px dashed var(--ccs-grey);
	background: var(--ccs-grey-15);
	padding: 12px 16px;
	font-size: 0.875rem;
	color: var(--ccs-slate);
}
.is-style-ccs-slot p { margin: 0; }
.is-style-ccs-slot strong { color: var(--ccs-ink); font-weight: 600; }

/* ---------- Forms (built in) ---------- */
.ccs-form-card { padding: 24px; }
.ccs-form-card > p:empty { display: none; }
.ccs-form { display: flex; flex-direction: column; gap: 14px; }
.ccs-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.ccs-form .ccs-opt { font-weight: 400; color: var(--ccs-slate); font-size: 0.875rem; }
.ccs-form :is(input, select, textarea) {
	font: inherit; font-weight: 400;
	color: var(--ccs-ink);
	border: 2px solid var(--ccs-line);
	border-radius: 4px;
	background: var(--wp--preset--color--white);
}
.ccs-form :is(input, select) { height: 44px; padding: 0 12px; }
.ccs-form textarea { padding: 10px 12px; }
.ccs-form button {
	align-self: flex-start;
	font: inherit; font-weight: 600;
	background: var(--ccs-blue); color: var(--wp--preset--color--white);
	border: 2px solid var(--ccs-blue); border-radius: 4px;
	padding: 11px 24px; cursor: pointer;
}
.ccs-form button:hover { background: var(--ccs-blue-dark); }
.ccs-form .ccs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ccs-form-error { color: #A4161A; font-weight: 600; margin: 0; }
.ccs-form-done { padding: 16px; border-left: 4px solid var(--ccs-green); background: var(--ccs-green-30); }

/* ---------- FAQs ---------- */
.wp-block-details { border-bottom: var(--ccs-border); padding: 14px 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }

/* ---------- Posts ---------- */
.ccs-post-meta { font-size: 0.875rem; color: var(--ccs-slate); }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.ccs-sec { padding-block: 40px; }
	.ccs-hero { padding-block: 64px !important; }
	.ccs-quicklinks .wp-block-navigation { justify-content: center !important; gap: 0 16px; }
	.ccs-quicklinks .wp-block-navigation-item__content { padding: 8px 0; }
	.ccs-footer-bottom { flex-direction: column; align-items: flex-start !important; }
	.ccs-cta-row .wp-block-buttons { justify-content: flex-start; }
}

/* ---------- Pages made by older versions of this theme ----------
   Keeps their old color names readable until they are refreshed
   (Appearance → CCS Site Setup → Refresh unedited pages). */
.has-navy-background-color, .has-navy-dark-background-color { background-color: var(--ccs-ink) !important; color: var(--wp--preset--color--white) !important; }
.has-ivory-dark-background-color { background-color: var(--ccs-grey-15) !important; }
.has-give-green-background-color { background-color: var(--ccs-green) !important; color: var(--wp--preset--color--white); }
.has-banner-gold-background-color.ccs-announcement { background-color: var(--ccs-blue) !important; color: var(--wp--preset--color--white) !important; }
.has-ivory-color { color: var(--wp--preset--color--white) !important; }
.has-muted-color { color: var(--ccs-slate) !important; }
.has-line-background-color { background-color: var(--ccs-grey-30) !important; }
.has-navy-background-color :where(h1, h2, h3), .has-give-green-background-color :where(h1, h2, h3) { color: var(--wp--preset--color--white); }
.has-navy-background-color a:where(:not(.wp-element-button)), .has-give-green-background-color a:where(:not(.wp-element-button)) { color: inherit; }

/* =====================================================================
   Katie's markup notes (Oct 2026)
   ===================================================================*/

/* Text: Charcoal Grey body text; Crusader Blue headings and titles inside boxes */
.ccs-h-blue { color: var(--ccs-blue) !important; }
.ccs-h-ink { color: var(--ccs-blue) !important; }
.is-style-ccs-card h3 { color: var(--ccs-blue); }

/* Header: white quick-links bar, blue main menu, Give = yellow with blue text */
.ccs-quicklinks { background: var(--wp--preset--color--white); }
.ccs-mainnav a { color: var(--ccs-blue); }
.ccs-mainnav a:hover { color: var(--ccs-blue-dark); text-decoration: underline; text-decoration-color: var(--ccs-gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ccs-mainnav .current-menu-item > a, .ccs-mainnav .current-menu-ancestor > a { text-decoration: underline; text-decoration-color: var(--ccs-gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ccs-mainnav .wp-block-navigation__submenu-container a { color: var(--ccs-ink); }
.ccs-mainnav .is-style-ccs-give > .wp-block-navigation-item__content { color: var(--ccs-blue) !important; }
.ccs-mainnav .is-style-ccs-give > .wp-block-navigation-item__content:hover { text-decoration: none; }

/* Call-to-action buttons: Crusader Blue (white on dark bands). Banner Gold shows only as a thin accent on hover. */
.wp-block-button.is-style-ccs-gold .wp-block-button__link { background: var(--ccs-blue); border-color: var(--ccs-blue); color: var(--wp--preset--color--white); font-weight: 700; }
.wp-block-button.is-style-ccs-gold .wp-block-button__link:hover { background: var(--ccs-blue-dark); border-color: var(--ccs-blue-dark); box-shadow: inset 0 -4px 0 var(--ccs-gold); }
:is(.has-crusader-blue-background-color, .has-legacy-green-background-color, .has-ink-background-color, .ccs-hero--dark, .ccs-give-band, .ccs-band) .wp-block-button.is-style-ccs-gold .wp-block-button__link { background: var(--wp--preset--color--white); border-color: var(--wp--preset--color--white); color: var(--ccs-blue); }
:is(.has-crusader-blue-background-color, .has-legacy-green-background-color, .has-ink-background-color, .ccs-hero--dark, .ccs-give-band, .ccs-band) .wp-block-button.is-style-ccs-gold .wp-block-button__link:hover { background: var(--wp--preset--color--white); border-color: var(--wp--preset--color--white); color: var(--ccs-blue-dark); box-shadow: inset 0 -4px 0 var(--ccs-gold); }

/* Page bands are blue: white title, intro and breadcrumbs, with a thin Banner Gold rule underneath */
/* v1.11.0: a white line the same thickness sits between the blue band and the gold rule. */
.ccs-band { color: var(--wp--preset--color--white); border-bottom: 4px solid var(--ccs-gold); position: relative; }
.ccs-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--wp--preset--color--white); }
/* v1.11.0: the intro line under a page title may run the full width of the band (was capped at 680px). */
.ccs-band .ccs-lede { max-width: none; }
.ccs-band .ccs-page-title, .ccs-band h1 { color: var(--wp--preset--color--white) !important; }
.ccs-band .wp-block-breadcrumbs, .ccs-band .wp-block-breadcrumbs span { color: var(--wp--preset--color--white); }
.ccs-band .wp-block-breadcrumbs a { color: var(--wp--preset--color--white); text-decoration: underline; }
.ccs-band a:focus-visible { outline-color: var(--wp--preset--color--white); }
/* Sport pills on the blue band: white outline; current sport solid white with blue text */
.ccs-band .wp-block-button.is-style-ccs-pill .wp-block-button__link { background: transparent; border-color: var(--wp--preset--color--white); color: var(--wp--preset--color--white); }
.ccs-band .wp-block-button.is-style-ccs-pill .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.14); color: var(--wp--preset--color--white); }
.ccs-band .wp-block-button.is-style-ccs-pill-current .wp-block-button__link { background: var(--wp--preset--color--white); border-color: var(--wp--preset--color--white); color: var(--ccs-blue); font-weight: 700; cursor: default; }

/* Dark heroes (homepage blue, Give green-to-blue): white text */
.ccs-hero.ccs-hero--dark { border-bottom: 0; }
.ccs-hero.ccs-hero--dark .wp-block-cover__background { background-color: var(--ccs-blue); }
.ccs-hero.ccs-give-hero .wp-block-cover__background { background: linear-gradient(120deg, var(--ccs-green) 0%, var(--ccs-blue) 100%) !important; opacity: 1; }
.ccs-hero.ccs-hero--dark :is(h1, p:not(.ccs-tag)) { color: var(--wp--preset--color--white) !important; }
.ccs-motto { font-weight: 600; letter-spacing: 0.01em; }

/* Homepage stats: numbers float on blue, no boxes */
.ccs-stats .ccs-stat--float { text-align: center; padding: 8px 16px; }
.ccs-stats .ccs-stat-num { color: var(--wp--preset--color--white); }
.ccs-stat-label { margin: 4px 0 0; }
.ccs-stats .ccs-stat-label { color: var(--wp--preset--color--banner-gold-30); font-size: 1rem; }
/* School page stats: blue boxes, white number, light yellow label */
.ccs-stat--blue { background: var(--ccs-blue); text-align: center; padding: 16px; }
.ccs-stat--blue .ccs-stat-num { color: var(--wp--preset--color--white); }
.ccs-stat--blue .ccs-stat-label { color: var(--wp--preset--color--banner-gold-30); font-size: 0.875rem; }

/* Blue labels: dining days, post dates, names */
.ccs-menu td:first-child, .ccs-menu td:first-child strong { color: var(--ccs-blue); }
#follow-us .ccs-card-body > p:first-child,
.ccs-media-card .wp-block-post-date { color: var(--ccs-blue); }
.ccs-person > p:first-of-type, .ccs-person > p:first-of-type strong { color: var(--ccs-blue); }
.ccs-member p:first-child strong { color: var(--ccs-blue); }
.ccs-form label { color: var(--ccs-blue); }
.ccs-form-title { color: var(--ccs-blue) !important; }

/* Sport page: "Next game" stands out in light yellow */
.is-style-ccs-card.ccs-next-game { background: var(--wp--preset--color--banner-gold-30); }
/* Homepage: live Upcoming Events (two-line blue date square) */
.ccs-events-live > * + * { margin-block-start: 14px; }
.ccs-event-live { display: flex; flex-wrap: nowrap; }
.ccs-event-live .ccs-date { flex-direction: column; line-height: 1.1; text-align: center; }
.ccs-date-mon { font-size: 0.75rem; letter-spacing: 0.06em; }
.ccs-date-day { font-size: 1.375rem; font-weight: 700; }
.ccs-date--range .ccs-date-day { font-size: 0.9375rem; }
.ccs-date--range .ccs-date-mon { font-size: 0.6875rem; }
.ccs-event-text { min-width: 0; }
.ccs-event-text a { color: inherit; }
.ccs-events-empty { margin: 0; }
.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 !important; white-space: nowrap; word-wrap: normal !important; }

/* Sport page: live season schedule. Cancelled or postponed games are greyed. */
.ccs-schedule tr.ccs-game-off td { color: var(--ccs-slate); }
.ccs-schedule td:last-child { white-space: nowrap; }

/* PTA table matches the other tables (blue header) */
.ccs-pta-table table { min-width: 0; }
.ccs-pta-table td:last-child { text-align: right; }
.ccs-pta-table td:first-child { font-weight: 400; }

/* How we reach you (now on Community) */
.ccs-sec--alerts { padding-top: 0; }

/* Give hub: Legacy Green sub-brand accents */
.ccs-give .is-style-ccs-card h3, .ccs-give .ccs-member h3 { color: var(--ccs-green); }
.ccs-give .ccs-fund-title a { color: var(--ccs-green); }
.ccs-give #stories .ccs-card-body > p:first-child, .ccs-give #stories .ccs-card-body > p:first-child strong { color: var(--ccs-green); }
/* Give Now (v1.10.0): Stories of Impact stacked in the column left of the donation form,
   so the tall form has no empty white space beside it. */
.ccs-give-stories { margin-block-start: 28px !important; }
.ccs-give-stories > * { margin-block: 0; }
.ccs-give-stories > * + * { margin-block-start: 16px; }
.ccs-give-stories > h3 { color: var(--ccs-green); }
.ccs-give-stories .ccs-spot-photo { width: 130px; min-width: 130px; }
/* Story cards moved from the old Stories of Impact section (photo on top) sit side by side
   like the new cards: photo left, text right. */
.ccs-give-stories .ccs-media-card { display: flex; align-items: stretch; }
.ccs-give-stories .ccs-media-card > .ccs-photo { flex: 0 0 130px; width: 130px; min-height: 130px !important; }
.ccs-give-stories .ccs-media-card > .ccs-card-body { flex: 1 1 0; min-width: 0; margin: 0; }
.ccs-give-stories .ccs-story { flex-wrap: nowrap; }
.ccs-give-stories .ccs-story .ccs-card-body { flex: 1 1 0; min-width: 0; }
/* Phones: heading, then the donation form, then the stories (so the form is not pushed down) */
@media (max-width: 781px) {
	.ccs-give-now-cols { gap: 20px !important; }
	.ccs-give-now-cols > .wp-block-column:first-child { display: contents; }
	.ccs-give-now-cols > .wp-block-column:first-child > * { flex: 0 0 100%; margin-block: 0; }
	.ccs-give-now-cols > .wp-block-column:last-child { order: 1; }
	.ccs-give-now-cols .ccs-give-stories { order: 2; margin-block-start: 12px !important; }
}
/* Give band on the homepage: green-to-blue gradient */
.ccs-give-band { background: linear-gradient(120deg, var(--ccs-green) 0%, var(--ccs-blue) 100%) !important; }
.ccs-give-band .ccs-cta-copy em { font-size: 1.0625rem; }
.ccs-hero .ccs-hero-copy > .ccs-tag + .ccs-hero-title { margin-top: 20px; }
/* Closing blue bands get a thin rule above the blue footer, as in the wireframe */
.ccs-cta.has-crusader-blue-background-color { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.ccs-tile-title a { color: var(--ccs-blue); }
.ccs-tile-title a:hover { color: var(--ccs-blue-dark); }

/* ---------- Faculty & Staff cards (tagged by school or department) ---------- */
.ccs-staff-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 24px; }
.ccs-staff-filter label { font-weight: 700; color: var(--ccs-ink); }
.ccs-staff-filter select { min-width: 260px; max-width: 100%; height: 44px; padding: 0 40px 0 14px; border: 2px solid var(--ccs-blue); border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--ccs-ink); font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ccs-staff-filter select:focus-visible { outline: 3px solid var(--ccs-blue); outline-offset: 2px; }
.ccs-staff-filter-go { height: 44px; padding: 0 18px; border: 2px solid var(--ccs-blue); border-radius: 8px; background: var(--ccs-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ccs-staff-filter-go[hidden] { display: none; }
@media (max-width: 480px) { .ccs-staff-filter select { flex: 1; min-width: 0; } }
.ccs-staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ccs-staff-card { margin: 0; }
.ccs-staff-card .ccs-headshot { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: var(--ccs-border); background: var(--ccs-grey-30); }
.ccs-staff-card .ccs-headshot--empty { display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--ccs-slate); border: 1px dashed var(--ccs-grey); }
.ccs-staff-card h3 { margin: 12px 0 0; color: var(--ccs-blue); }
.ccs-staff-card p { margin: 2px 0 0; font-size: 0.9375rem; overflow-wrap: anywhere; }
.ccs-staff-card .ccs-staff-title { color: var(--ccs-ink); }
.ccs-staff-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ccs-staff-tags li { font-size: 0.8125rem; padding: 2px 10px; border-radius: 999px; background: var(--ccs-grey-15); border: var(--ccs-border); }
.ccs-staff-empty { color: var(--ccs-slate); }

/* ---------- Our Pillars page ---------- */
.ccs-pillars-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.ccs-pillar-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }

/* ---------- 404 page: Crusader Run ---------- */
.ccs-run-intro { margin-top: 48px !important; }
.ccs-run-mount { margin-top: 16px !important; }

/* ---------- Give page edits (v1.13.0, Nov 13, 2026) ---------- */
/* Give Now button in the Give hero: Legacy Green text on the white button (was Crusader Blue). */
.ccs-give .ccs-hero .wp-block-button.is-style-ccs-gold .wp-block-button__link { color: var(--ccs-green); }
.ccs-give .ccs-hero .wp-block-button.is-style-ccs-gold .wp-block-button__link:hover { color: #00613A; }
/* "Questions about giving?" sits on a Legacy Green 30% band at the bottom of the page.
   The id rule also covers Give pages made before 1.13 (new pages get the color in the block). */
.ccs-give #giving-contact { background-color: var(--ccs-green-30); }

/* =====================================================================
   Nov 13, 2026 changes (v1.14.0)
   ===================================================================*/

/* Give: Choose Your Impact tiles open on click (assets/js/site.js), one at a time.
   Without JavaScript, and in the editor, the details are simply shown. */
#impact .is-layout-grid { align-items: start; }
.ccs-fund { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.ccs-fund-detail { padding: 0 16px 16px; margin: 0 !important; font-size: 0.9375rem; }
.ccs-fund-give { padding: 0 16px 16px; margin: 0 !important; font-weight: 700; font-size: 0.9375rem; }
.ccs-fund-give a { color: var(--ccs-green); }
.ccs-fund--js .ccs-fund-title a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; cursor: pointer; }
.ccs-fund--js .ccs-fund-title a::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--ccs-green); flex: 0 0 auto; }
.ccs-fund--js.is-open .ccs-fund-title a::after { content: "\2212"; }
.ccs-fund--js .ccs-fund-detail, .ccs-fund--js .ccs-fund-give { display: none; }
.ccs-fund--js.is-open .ccs-fund-detail, .ccs-fund--js.is-open .ccs-fund-give { display: block; animation: ccs-fund-open 0.2s ease; }
.ccs-fund--js.is-open { border-color: var(--ccs-green); box-shadow: 0 10px 24px rgba(0, 77, 45, 0.18); transform: translateY(-2px); }
.ccs-fund--js.is-open .ccs-fund-title { padding-bottom: 8px; }
@keyframes ccs-fund-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.ccs-fund, .ccs-fund--js.is-open { transition: none; transform: none; }
	.ccs-fund--js.is-open .ccs-fund-detail, .ccs-fund--js.is-open .ccs-fund-give { animation: none; }
}

/* About Us welcome letter and the athletic director note: headshot beside a text box. */
.ccs-intro-row { gap: 24px !important; align-items: stretch !important; }
.ccs-intro-row > .ccs-headshot-photo { flex: 0 0 240px; width: 240px; margin: 0; }
.ccs-page-athletics-sports .ccs-intro-row > .ccs-headshot-photo { flex-basis: 200px; width: 200px; }
.ccs-intro-row > .ccs-intro-box { flex: 1 1 0; min-width: 0; margin: 0 !important; }
.ccs-intro-box > * + * { margin-block-start: 12px; }
@media (max-width: 781px) {
	.ccs-intro-row { flex-wrap: wrap !important; }
	.ccs-intro-row > .ccs-headshot-photo { flex-basis: 160px !important; width: 160px !important; min-height: 160px !important; }
	.ccs-intro-row > .ccs-intro-box { flex-basis: 100%; }
}

/* Faculty & Staff: Administration five across. */
.ccs-staff--cols-5 .ccs-staff-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .ccs-staff--cols-5 .ccs-staff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ccs-staff--cols-5 .ccs-staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Early Childhood Education Center: no Curriculum or Student Conduct (also on an edited page). */
.ccs-page-academics-early-childhood :is(#curriculum, #conduct),
.ccs-page-academics-early-childhood .ccs-toc li:has(> a[href="#curriculum"], > a[href="#conduct"]) { display: none !important; }

/* Hidden for phase 1 / removed: boxes on landing pages that link to these pages. */
:is(.is-style-ccs-card, .ccs-tile):has(a[href*="/academics/virtual-tour/"], a[href*="/academics/student-resources/"], a[href*="/academics/support-services/"], a[href*="/about-us/welcome/"]) { display: none !important; }

/* Community: Dining and the alumni spotlight are hidden for now (School Store is back since v1.27.0). */
.ccs-page-community #dining,
.ccs-page-community .ccs-tile:has(a[href="#dining"]),
.ccs-page-community #alumni .ccs-spotlight { display: none !important; }
@media (min-width: 782px) {
	.ccs-page-community .ccs-sec--tiles .is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
/* PTF: more room between the intro text and the meetings table. */
.ccs-ptf-table, #ptf .ccs-pta-table { margin-block-start: 32px !important; }

/* =====================================================================
   v1.15.0 (Nov 16, 2026)
   ===================================================================*/
/* About Us: "What to expect" banner (light until a photo is added, then tinted blue with white text). */
.ccs-hero--banner { padding-block: 64px !important; }
.ccs-hero--banner .ccs-hero-copy > * + * { margin-block-start: 14px; }
.ccs-hero--banner .ccs-hero-title { font-size: var(--wp--preset--font-size--x-large); }
/* About Us: heading and paragraph above the boxes on the light yellow band. */
/* About Us "What to expect" band (v1.16.0) */
.ccs-expect-band .alignwide > * { max-width: 760px; margin-block: 0; }
.ccs-expect-band .alignwide > * + * { margin-block-start: 8px !important; }
.ccs-expect-band + .ccs-about-tiles { margin-block-start: 0; }

/* =====================================================================
   v1.19.0 (Nov 16, 2026): Facebook feed (inc/facebook-feed.php)
   ===================================================================*/
/* Follow Us: live posts from the school's Facebook Page, in the wireframe's photo-card style. */
.ccs-fb-feed { margin-block-start: 1.25rem; }
.ccs-fb-grid {
	display: grid;
	gap: 1rem;
	/* Up to --ccs-fb-cols across; cards never get narrower than 16rem, so they stack on phones. */
	grid-template-columns: repeat(auto-fill, minmax(max(min(16rem, 100%), calc((100% - (var(--ccs-fb-cols, 3) - 1) * 1rem) / var(--ccs-fb-cols, 3))), 1fr));
}
.ccs-fb-post { display: flex; flex-direction: column; margin: 0; }
.ccs-fb-photo { display: block; line-height: 0; background: var(--ccs-grey-30); }
.ccs-fb-photo img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: 50% 30%; }
.ccs-fb-post .ccs-card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.ccs-fb-date { color: var(--ccs-blue); }
.ccs-fb-text { overflow-wrap: anywhere; }
.ccs-fb-link { margin-top: auto !important; padding-top: 10px; font-weight: 600; }
.ccs-fb-more { margin-block-start: 6px; }
.ccs-fb-feed--empty > * { margin-block: 0; }
.ccs-fb-feed--empty > * + * { margin-block-start: 8px; }

/* =====================================================================
   v1.20.0 (Nov 16, 2026): Community News & Events, option C (inc/news.php)
   ===================================================================*/
.ccs-ne-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }
@media (max-width: 900px) { .ccs-ne-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.ccs-ne-grid > * { margin: 0 !important; }
.ccs-ne-col > * { margin-block: 0; }
.ccs-ne-col > * + * { margin-block-start: 14px; }
.ccs-ne-head { align-items: baseline !important; gap: 16px; padding-bottom: 10px; border-bottom: 4px solid var(--ccs-blue); }
.ccs-ne-head--news { border-bottom-color: var(--ccs-gold); }
.ccs-ne-head .ccs-ne-title { margin: 0; color: var(--ccs-blue); }
.ccs-ne-link { margin: 0; font-size: 0.9375rem; font-weight: 700; }
.ccs-ne-link a { display: inline-block; padding: 8px 0; }

/* From Facebook: scrolling timeline */
.ccs-fbt { height: 690px; overflow-y: auto; padding-right: 6px; scrollbar-color: var(--ccs-grey) transparent; }
.ccs-fbt:focus-visible { outline: 3px solid var(--ccs-blue); outline-offset: 2px; }
@media (max-width: 781px) { .ccs-fbt { height: 520px; } }
.ccs-fbt-list { list-style: none; margin: 0; padding: 0; }
.ccs-fbt-item { margin: 0; border-bottom: 1px solid var(--ccs-grey-30); }
.ccs-fbt-item[hidden] { display: none; }
.ccs-fbt-link { display: flex; gap: 16px; padding: 14px 0; text-decoration: none; color: inherit; }
.ccs-fbt-link:hover .ccs-fbt-text { color: var(--ccs-ink); }
.ccs-fbt-thumb { box-sizing: border-box; flex: 0 0 112px; height: 84px; background: var(--ccs-grey-30); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ccs-fbt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccs-fbt-thumb--text { background: var(--ccs-grey-15); border: var(--ccs-border); font-family: var(--wp--preset--font-family--serif); font-weight: 700; color: var(--ccs-blue); font-size: 1rem; }
.ccs-fbt-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ccs-fbt-date { font-size: 0.8125rem; font-weight: 700; color: var(--ccs-blue); }
.ccs-fbt-text { font-size: 1rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
@media (max-width: 480px) { .ccs-fbt-thumb { flex-basis: 84px; height: 70px; } }
.ccs-fbt-foot { padding: 18px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ccs-fbt-more { font: inherit; font-weight: 700; font-size: 1rem; color: var(--ccs-blue); background: var(--wp--preset--color--white); border: 2px solid var(--ccs-blue); border-radius: 999px; padding: 10px 28px; min-height: 44px; cursor: pointer; }
.ccs-fbt-more:hover { background: var(--ccs-grey-15); }
.ccs-fbt-more[hidden], .ccs-fbt-end[hidden] { display: none; }
.ccs-fbt-older { font-weight: 700; display: inline-block; padding: 10px 0; }
.ccs-fbt-count { font-size: 0.8125rem; }

/* School News: featured story (butter yellow) and the next two */
.ccs-news > * + * { margin-block-start: 20px; }
.ccs-news-feature { border: var(--ccs-border); display: flex; flex-direction: column; }
.ccs-news-feature-photo { display: block; line-height: 0; }
.ccs-news-feature-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.ccs-news-feature-body { background: var(--wp--preset--color--banner-gold-30); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.ccs-news-feature-body > * { margin: 0; }
.ccs-news-tag { align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--white); background: var(--ccs-blue); padding: 4px 10px; border-radius: 999px; }
.ccs-news-feature-title { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.625rem !important; line-height: 1.15; }
.ccs-news-feature-title a, .ccs-news-card-title a { color: var(--ccs-blue); text-decoration: none; }
.ccs-news-feature-title a:hover, .ccs-news-card-title a:hover { text-decoration: underline; }
.ccs-news-feature-text { font-size: 1rem; }
.ccs-news-more { align-self: flex-start; font-weight: 700; font-size: 0.9375rem; padding: 6px 0; }
.ccs-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 480px) { .ccs-news-grid { grid-template-columns: minmax(0, 1fr); } }
.ccs-news-card { border: var(--ccs-border); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ccs-news-card > * { margin: 0; }
.ccs-news-date { font-size: 0.8125rem; font-weight: 700; color: var(--ccs-blue); }
.ccs-news-card-title { font-family: var(--wp--preset--font-family--sans); font-size: 1.0625rem !important; line-height: 1.35; font-weight: 700; }
.ccs-news-card-title a { color: var(--ccs-ink); }
.ccs-news-card-text { font-size: 0.9375rem; }
.ccs-news--empty > * { margin: 0; }

/* =====================================================================
   v1.20.1 (Nov 16, 2026): no film over photos.
   A cover block that holds a photo or video never shows its overlay, whatever its
   "Overlay opacity" says (WordPress sets 50% when a photo is added to a grey photo
   spot, and banners used to add a 60% blue tint). Applies to every photo already on
   the site. The grey placeholder and the colored banners without a photo are unchanged.
   ===================================================================*/
.wp-block-cover:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background) > .wp-block-cover__background {
	opacity: 0 !important;
}
/* White banner text over a photo with no film: a soft shadow keeps it readable. */
.ccs-hero:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background) :is(h1, h2, p) {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* =====================================================================
   v1.20.2 (Nov 17, 2026): Give form (WP Charitable + Recurring Donations).
   The wireframe asks for green on the selected frequency. Charitable's own
   One Time / Monthly tabs are small with orange text, so they become two
   Legacy Green pill buttons. Amount tiles sit three across (custom amount on
   its own row), radios stay keyboard-reachable with a visible focus ring, and
   form fields never run past the card on phones.
   ===================================================================== */
.charitable-donation-form .recurring-donation.recurring-donation-options { border-bottom: 0; gap: 10px; margin: 6px 0 14px !important; }
.charitable-donation-form .recurring-donation.recurring-donation-options .recurring-donation-option { flex: 1 1 0; position: relative; }
.charitable-donation-form .recurring-donation.recurring-donation-options .recurring-donation-option > label {
	border: 2px solid var(--ccs-green); border-radius: 999px; background: #fff; color: var(--ccs-green);
	font-weight: 700; font-size: 16px; line-height: 1.25; padding: 0.65em 1.25em; margin: 0;
	transition: background-color 0.15s, color 0.15s;
}
.charitable-donation-form .recurring-donation.recurring-donation-options .recurring-donation-option:not(.selected) > label:hover { background: var(--ccs-green-30); }
.charitable-donation-form .recurring-donation.recurring-donation-options .recurring-donation-option.selected > label { background: var(--ccs-green); border-color: var(--ccs-green); color: #fff; margin-bottom: 0; }
/* Charitable hides the radios with display:none, which also takes them out of the
   keyboard order. Keep them invisible but focusable. */
.js .charitable-donation-form .recurring-donation-option input[type="radio"],
.js .charitable-donation-form .donation-amount input[type="radio"] { display: block !important; position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.charitable-donation-form .recurring-donation-option:has(input:focus-visible) > label,
.charitable-donation-form .donation-amount:has(input:focus-visible) { outline: 3px solid var(--ccs-blue); outline-offset: 2px; }
/* Amount tiles: three across on both tabs, custom amount on its own row */
.charitable-donation-form .donation-amounts.has-suggested-amounts.donation-amounts-count-3,
.charitable-donation-form .recurring-donation-amounts.donation-amounts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.charitable-donation-form .donation-amounts.has-suggested-amounts.donation-amounts-count-3 .donation-amount,
.charitable-donation-form .recurring-donation-amounts.donation-amounts .donation-amount { margin: 0; }
.charitable-donation-form .recurring-donation-amounts.donation-amounts .custom-donation-amount { grid-column: 1 / -1; }
.charitable-donation-form ul.donation-amounts li.suggested-donation-amount > label { justify-content: center; align-items: center; text-align: center; white-space: nowrap; }
/* Fields never wider than the form card */
.charitable-donation-form .charitable-form-field input:not([type="radio"]):not([type="checkbox"]),
.charitable-donation-form .charitable-form-field select,
.charitable-donation-form .charitable-form-field textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 600px) {
	.charitable-donation-form ul.donation-amounts li.suggested-donation-amount > label { padding: 0.7em 0.25em; font-size: 15px; flex-direction: column; }
	.charitable-donation-form .recurring-donation-amounts .recurring-details { display: block; font-size: 13px; font-weight: 400; }
	.charitable-donation-form .recurring-donation.recurring-donation-options .recurring-donation-option > label { padding: 0.6em 0.5em; }
}

/* v1.20.3 (Nov 17, 2026): "Give to this fund" sets the form's Designation
   (assets/js/site.js); the dropdown glows Legacy Green for a moment so donors
   see what was picked. */
@keyframes ccs-just-set { 0%, 60% { box-shadow: 0 0 0 4px var(--ccs-green-30); border-color: var(--ccs-green); } 100% { box-shadow: 0 0 0 0 transparent; } }
.charitable-donation-form select.ccs-just-set { animation: ccs-just-set 2.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .charitable-donation-form select.ccs-just-set { animation: none; box-shadow: 0 0 0 4px var(--ccs-green-30); } }

/* v1.20.4 (Nov 17, 2026): the form's "Give now" button. Its Legacy Green fill is set in
   Charitable (Form Options → Visual Style → Donate Button colour). Charitable writes its own
   darker hover with !important on the form's ID, so this rule uses :is(#…) to outrank it.
   Hover and keyboard focus: Legacy Green 30% with green text (white on the light green
   would be too faint), and a green outline so the button keeps its shape. */
.charitable-visual-donation-form:is([id], #ccs-give-form) .charitable-donate-button-submit { border: 2px solid var(--ccs-green); transition: background-color 0.15s, color 0.15s; }
.charitable-visual-donation-form:is([id], #ccs-give-form) .charitable-donate-button-submit:hover,
.charitable-visual-donation-form:is([id], #ccs-give-form) .charitable-donate-button-submit:focus-visible { background-color: var(--ccs-green-30) !important; color: var(--ccs-green) !important; border-color: var(--ccs-green); }

/* v1.21.0 (Nov 17, 2026): Contact cards from Faculty & Staff "Contact for" topics (inc/contacts.php). */
.ccs-contact { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.ccs-contact--1 { grid-template-columns: minmax(0, 1fr); }
.ccs-contact-card { display: flex; gap: 16px; align-items: center; }
.ccs-contact-img { width: 96px; height: 96px; min-width: 96px; object-fit: cover; border-radius: 2px; display: flex; align-items: center; justify-content: center; }
.ccs-contact-img--empty { background: var(--wp--preset--color--armor-grey-30, #e0e4e7); color: var(--ccs-blue); font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.5rem; }
.ccs-contact-body > * { margin: 0; }
.ccs-contact-body > * + * { margin-top: 2px; }
.ccs-contact-heading { margin-bottom: 6px !important; }
.ccs-contact-name strong { color: var(--ccs-blue); }
.ccs-give .ccs-contact-name strong { color: var(--ccs-green); }
.ccs-contact-reach { overflow-wrap: anywhere; }
.ccs-contact-note { grid-column: 1 / -1; font-size: 0.875rem; background: var(--wp--preset--color--banner-gold-30, #FFF5CC); padding: 8px 12px; margin: 0; }
@media (max-width: 480px) { .ccs-contact-img { width: 72px; height: 72px; min-width: 72px; } }
/* On the Give page, contact cards keep the light green the giving box had (v1.22.2: wherever the box sits). */
.ccs-give .ccs-contact-card { background: var(--ccs-green-30); padding: 24px; }
/* v1.22.0: compact contact lines in side boxes (Coaching staff, Sponsor, PTF officers). */
.ccs-contact-line { margin: 0; overflow-wrap: anywhere; }
.ccs-contact-line + .ccs-contact-line { margin-top: 12px !important; }
.ccs-contact-line strong { color: var(--ccs-blue); }
.ccs-contact-box > * { margin-block: 0; }
.ccs-contact-box > * + * { margin-block-start: 8px; }

/* =====================================================================
   v1.22.3 (Nov 18, 2026): embedded maps and videos stay inside their column
   ===================================================================*/
/* Google Maps, YouTube and similar embed codes come with a fixed width (often 600px),
   which spilled out of narrow columns (the Contact page map ran under the form).
   Every iframe, video or embed on the site is now never wider than the box it sits in.
   :where() keeps these rules weak, so WordPress's own responsive Embed blocks win. */
.wp-site-blocks :where(iframe, video, embed, object) { max-width: 100%; box-sizing: border-box; }
.wp-site-blocks :where(iframe) { display: block; }
/* Pasted video embeds (YouTube, Vimeo) also keep their 16:9 shape as they shrink. */
.wp-site-blocks :where(iframe[src*="youtube.com"], iframe[src*="youtube-nocookie.com"], iframe[src*="player.vimeo.com"]):not(.wp-has-aspect-ratio iframe) { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* =====================================================================
   v1.22.4 (Nov 18, 2026): Faculty & Staff initials when there is no headshot
   ===================================================================*/
/* First and last initials in the H1 style (Crimson Pro bold, 40px, Crusader Blue) on the
   light grey square, until a Featured image is added on the person's edit screen. Not a real
   H1 tag: the page keeps one H1 (its title), and screen readers skip it (the name is the H3). */
.ccs-staff-card .ccs-headshot--initials {
	border: var(--ccs-border);
	background: var(--ccs-grey-30);
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--ccs-blue);
}

/* ==========================================================================
   Give form: custom amount, when chosen (v1.23.0, Nov 19, 2026)
   Legacy Green 30% with a Legacy Green border and dark green label, instead of
   Charitable's orange highlight. The dark green (#00613A) passes contrast on
   the light green; plain Legacy Green text would not.
   ========================================================================== */
.charitable-donation-form .donation-amounts .donation-amount.custom-donation-amount.selected {
	background-color: var(--ccs-green-30) !important;
	border-color: var(--ccs-green) !important;
}
.charitable-donation-form .donation-amounts .donation-amount.custom-donation-amount.selected label,
.charitable-donation-form .donation-amounts .donation-amount.custom-donation-amount.selected .description { color: #00613A !important; }
.charitable-donation-form .donation-amounts .donation-amount.custom-donation-amount.selected .custom-donation-input { border-color: var(--ccs-green) !important; }

/* ==========================================================================
   Calendar page (v1.23.0, Nov 19, 2026): inc/calendar.php
   Desktop: small month + "Coming up" (option B), Month grid on request (A).
   Phones (under 782 px): the list by week with filter buttons (option C).
   ========================================================================== */
.simcal-powered { display: none !important; }

.ccs-cal { --cal-line: #C8C8C8; --cal-soft: var(--ccs-grey-15, #EEF0F2); --cal-off: var(--wp--preset--color--banner-gold-30, #FFF5CC); --cal-off-line: #E6C84A; --cal-game: #E6ECF7; color: var(--ccs-slate, #54585A); display: flex; flex-direction: column; gap: 24px; }
.ccs-cal p { margin: 0; }
.ccs-cal [hidden] { display: none !important; }
/* The page's text column is 760 px; the calendar uses the wide width (1120 px), centred on it. */
@media (min-width: 782px) {
	.ccs-cal.alignwide { --cal-w: min(1120px, calc(100vw - 64px)); width: var(--cal-w); max-width: none !important; margin-left: calc((100% - var(--cal-w)) / 2) !important; margin-right: 0 !important; }
}
.ccs-cal-icon { display: block; }

/* Header */
.ccs-cal-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.ccs-cal-nav { display: flex; align-items: center; gap: 12px; }
.ccs-cal-title { margin: 0 !important; min-width: 9.5em; text-align: center; }
.ccs-cal-arrow { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 2px solid var(--ccs-blue); color: var(--ccs-blue); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ccs-cal-arrow:hover { background: var(--ccs-blue); color: #fff; }
.ccs-cal-arrow.is-disabled { border-color: var(--cal-line); color: var(--cal-line); }
.ccs-cal-today { height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--cal-line); display: flex; align-items: center; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ccs-slate, #54585A); }
.ccs-cal-today:hover { border-color: var(--ccs-blue); color: var(--ccs-blue); }
.ccs-cal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ccs-cal-views { display: flex; border: 2px solid var(--ccs-blue); border-radius: 22px; overflow: hidden; }
.ccs-cal-views a { height: 40px; padding: 0 18px; display: flex; align-items: center; font-weight: 700; font-size: 15px; color: var(--ccs-blue); text-decoration: none; }
.ccs-cal-views a[aria-current] { background: var(--ccs-blue); color: #fff; }
.ccs-cal-add { position: relative; }
.ccs-cal-add summary { list-style: none; height: 44px; padding: 0 18px; border-radius: 22px; background: var(--ccs-blue); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ccs-cal-add summary::-webkit-details-marker { display: none; }
.ccs-cal-add summary:hover { background: var(--ccs-blue-dark, #002577); }
.ccs-cal-add-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 300px; background: #fff; border: 1px solid var(--cal-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); padding: 8px; display: flex; flex-direction: column; }
.ccs-cal-add-menu a { padding: 12px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.ccs-cal-add-menu a:hover { background: var(--cal-soft); }
.ccs-cal-add-menu p { padding: 6px 12px 8px; font-size: 14px; }

/* Legend */
.ccs-cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.ccs-cal-key { display: inline-flex; align-items: center; gap: 7px; }
.ccs-cal-key::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ccs-blue); }
.ccs-cal-key--school::before { background: var(--ccs-grey, #98A4AE); }
.ccs-cal-key--off::before { width: 12px; height: 12px; border-radius: 3px; background: var(--cal-off); border: 1px solid var(--cal-off-line); }

/* Option B: small month beside the list */
.ccs-cal-split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; align-items: start; }
.ccs-cal-mini { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.ccs-cal-mini-card { border: 1px solid var(--cal-line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.ccs-cal-mini-table { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; margin: -4px; width: calc(100% + 8px); }
.ccs-cal-mini-table th { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-align: center; padding: 2px 0; border: 0; background: none; }
.ccs-cal-mini-table abbr { text-decoration: none; }
.ccs-cal-mini-table td { padding: 0; border: 0; height: 48px; border-radius: 10px; text-align: center; }
.ccs-cal-mini-table td.is-off { background: var(--cal-off); }
.ccs-cal-mini-table td.is-today { background: var(--ccs-blue); }
.ccs-cal-mini-table td > a,
.ccs-cal-mini-cell { height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; color: #2E3133; text-decoration: none; font-weight: 700; }
.ccs-cal-mini-table td > a:hover { background: var(--cal-soft); }
.ccs-cal-mini-table td.is-today > a,
.ccs-cal-mini-table td.is-today .ccs-cal-mini-cell { color: #fff; }
.ccs-cal-mini-table td.is-today > a:hover { background: var(--ccs-blue-dark, #002577); }
.ccs-cal-mini-table td.is-past:not(.is-today) > a,
.ccs-cal-mini-table td.is-past:not(.is-today) .ccs-cal-mini-cell { color: #6E777E; font-weight: 400; }
.ccs-cal-mini-dots { display: flex; gap: 3px; height: 6px; }
.ccs-cal-mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ccs-blue); }
.ccs-cal-mini-dot--school { background: var(--ccs-grey, #98A4AE); }
.ccs-cal-mini-table td.is-today .ccs-cal-mini-dot { background: var(--ccs-gold, #FFCD00); }
.ccs-cal-legend { padding-top: 12px; border-top: 1px solid var(--cal-soft); }
.ccs-cal-mini-more { text-align: center; font-weight: 700; font-size: 15px; }

/* The list (B on desktop, C on phones) */
.ccs-cal-list { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ccs-cal-list-title { margin: 0 !important; }
.ccs-cal-list-title::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 8px; background: var(--ccs-gold, #FFCD00); }
.ccs-cal-earlier { background: none; border: 0; padding: 0; color: var(--ccs-blue); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ccs-cal-week { display: flex; flex-direction: column; gap: 10px; }
.ccs-cal-week-head { display: flex; align-items: center; gap: 14px; margin-top: 8px !important; font-size: 14px; }
.ccs-cal-week-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ccs-blue); }
.ccs-cal-week-line { flex: 1; height: 1px; background: var(--cal-line); }
.ccs-cal-days, .ccs-cal-evs { list-style: none; margin: 0; padding: 0; }
.ccs-cal-days { display: flex; flex-direction: column; gap: 10px; }
.ccs-cal-day { display: flex; gap: 18px; padding: 16px 18px; border: 1px solid #E1E4E7; border-radius: 12px; background: #fff; scroll-margin-top: 24px; }
.ccs-cal-day.is-today { border-color: var(--ccs-blue); background: #F3F6FB; }
.ccs-cal-day.is-off { background: var(--cal-off); border-color: #F3DF8A; }
.ccs-cal-day.is-past { opacity: 0.6; }
.ccs-cal-day:target { box-shadow: 0 0 0 3px var(--ccs-gold, #FFCD00); }
.ccs-cal-badge { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 10px; background: var(--ccs-blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ccs-cal-badge-dow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.ccs-cal-badge-day { font-family: var(--wp--preset--font-family--heading, "Crimson Pro", Georgia, serif); font-size: 28px; font-weight: 700; line-height: 1; }
.ccs-cal-day-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.ccs-cal-today-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ccs-blue); background: var(--cal-off); padding: 3px 8px; border-radius: 4px; }
.ccs-cal-evs { display: flex; flex-direction: column; gap: 12px; }
.ccs-cal-ev { display: flex; align-items: flex-start; gap: 12px; }
.ccs-cal-dot { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 8px; border-radius: 50%; background: var(--ccs-blue); }
.ccs-cal-ev--school .ccs-cal-dot { background: var(--ccs-grey, #98A4AE); }
.ccs-cal-ev--off .ccs-cal-dot { background: var(--cal-off-line); }
.ccs-cal-ev-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ccs-cal-ev-title { font-size: 18px; font-weight: 700; color: #2E3133; line-height: 1.35; }
.ccs-cal-ev-title a { color: inherit; text-decoration: none; }
.ccs-cal-ev-title a:hover { color: var(--ccs-blue); text-decoration: underline; }
.ccs-cal-ev-meta { font-size: 15px; line-height: 1.4; }
.ccs-cal-ev.is-cancelled .ccs-cal-ev-title { text-decoration: line-through; color: #6E777E; }
.ccs-cal-pill { display: none; flex: 0 0 auto; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 14px; background: var(--cal-game); color: var(--ccs-blue); white-space: nowrap; }
.ccs-cal-ev--school .ccs-cal-pill { background: var(--cal-soft); color: #3F4345; }
.ccs-cal-ev--off .ccs-cal-pill { background: var(--cal-off); color: var(--ccs-slate, #54585A); border: 1px solid var(--cal-off-line); }
.ccs-cal-empty { padding: 24px; border: 1px dashed var(--cal-line); border-radius: 12px; text-align: center; }
.ccs-cal-staff { color: #6E777E; }

/* Filters (phones only) */
.ccs-cal-filters { display: none; flex-wrap: wrap; gap: 8px; }
.ccs-cal-filters button { height: 44px; padding: 0 16px; border-radius: 22px; border: 2px solid var(--ccs-blue); background: #fff; color: var(--ccs-blue); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.ccs-cal-filters button[aria-pressed="true"] { background: var(--ccs-blue); color: #fff; }
.ccs-cal[data-filter="game"] .ccs-cal-ev:not([data-kind="game"]),
.ccs-cal[data-filter="school"] .ccs-cal-ev:not([data-kind="school"]),
.ccs-cal[data-filter="off"] .ccs-cal-ev:not([data-kind="off"]) { display: none; }

/* Option A: month grid */
.ccs-cal-grid-wrap { display: flex; flex-direction: column; gap: 14px; }
.ccs-cal-grid { width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid var(--cal-line); margin: 0 !important; }
.ccs-cal-grid th { background: var(--cal-soft); padding: 12px; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--cal-line); color: var(--ccs-slate, #54585A); }
.ccs-cal-grid abbr { text-decoration: none; }
.ccs-cal-grid td { vertical-align: top; height: 130px; padding: 8px; border: 1px solid var(--cal-line); background: #fff; }
.ccs-cal-grid td.is-out { background: #F6F7F8; }
.ccs-cal-grid td.is-off { background: var(--cal-off); }
.ccs-cal-num { display: flex; align-items: center; height: 30px; font-weight: 700; color: var(--ccs-blue); }
.ccs-cal-grid td.is-today .ccs-cal-num { width: 30px; justify-content: center; border-radius: 50%; background: var(--ccs-blue); color: #fff; }
.ccs-cal-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.ccs-cal-chip { font-size: 12.5px; line-height: 1.3; padding: 5px 7px; border-radius: 6px; background: var(--cal-game); color: var(--ccs-blue); }
.ccs-cal-chip strong, .ccs-cal-chip span { display: block; }
.ccs-cal-chip a { color: inherit; text-decoration: none; }
.ccs-cal-chip a:hover { text-decoration: underline; }
.ccs-cal-chip--school { background: var(--cal-soft); color: #3F4345; }
.ccs-cal-chip--off { background: transparent; color: var(--ccs-slate, #54585A); padding-inline: 0; }
.ccs-cal-chip.is-cancelled strong { text-decoration: line-through; }
.ccs-cal--month .ccs-cal-list { display: none; }

/* Phones and small tablets: option C */
@media (max-width: 781px) {
	.ccs-cal-views, .ccs-cal-mini, .ccs-cal-grid-wrap { display: none !important; }
	.ccs-cal--month .ccs-cal-list { display: flex; }
	.ccs-cal-split { display: block; }
	.ccs-cal-filters { display: flex; }
	.ccs-cal-top { flex-direction: column; align-items: stretch; }
	.ccs-cal-nav { justify-content: space-between; }
	.ccs-cal-title { min-width: 0; flex: 1; font-size: 1.75rem !important; }
	.ccs-cal-today { order: 5; }
	.ccs-cal-add summary { justify-content: center; }
	.ccs-cal-add-menu { left: 0; right: 0; width: auto; }
	.ccs-cal-day { gap: 14px; padding: 14px; }
	.ccs-cal-badge { width: 52px; height: 52px; flex-basis: 52px; }
	.ccs-cal-badge-day { font-size: 24px; }
	.ccs-cal-ev { flex-wrap: wrap; }
	.ccs-cal-dot { display: none; }
	.ccs-cal-ev-title { font-size: 17px; }
	.ccs-cal-pill { display: inline-block; }
}
@media (max-width: 420px) {
	.ccs-cal-ev-text { flex-basis: 100%; }
}

/* ==========================================================================
   Sports & Clubs tiles (v1.25.0): inc/activities.php, block ccs/activity-tiles
   Same look as the hand-built tiles: three across, two on tablets, one on phones.
   ========================================================================== */
.ccs-auto-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--style--block-gap, 24px); margin-block: 0; }
@media (max-width: 900px) { .ccs-auto-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ccs-auto-tiles { grid-template-columns: minmax(0, 1fr); } }
.ccs-auto-tiles .ccs-tile { margin: 0; }
.ccs-auto-tiles .wp-block-cover { margin: 0; padding: 0; overflow: hidden; }
.ccs-auto-tiles .wp-block-cover .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ccs-auto-tiles-staff { margin-top: 12px !important; color: #6E777E; }

/* ---------------------------------------------------------------------
 * Curriculum tiles (v1.26.0): Dashboard → Curriculum, shown in each school
 * page's Curriculum & Course Offerings section. Click a title to open its
 * details and optional photo or video; only one is open at a time.
 * ------------------------------------------------------------------- */
.ccs-cur { display: grid; gap: 12px; margin-block-start: 20px; container-type: inline-size; }
.ccs-cur-tile {
	background: var(--wp--preset--color--white); border: var(--ccs-border); border-left: 4px solid var(--ccs-grey-30);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ccs-cur-title { margin: 0; font-size: var(--wp--preset--font-size--heading-3); line-height: 1.15; }
.ccs-cur-title > .ccs-cur-name { display: block; padding: 16px 20px 0; }
.ccs-cur-toggle {
	all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 16px 20px 0; cursor: pointer; color: var(--ccs-blue); font: inherit;
}
.ccs-cur-toggle:focus-visible { outline: 3px solid var(--ccs-blue); outline-offset: 2px; }
.ccs-cur-name { color: var(--ccs-blue); }
.ccs-cur-sign { display: none; }
.ccs-cur-line { margin: 4px 0 0 !important; padding: 0 20px 16px; font-size: 1rem; color: var(--ccs-slate, #54585A); }
.ccs-cur-more-inner { padding: 0; }
.ccs-cur-body { display: grid; gap: 16px; margin: 0 20px 20px; padding-top: 16px; border-top: var(--ccs-row); }
.ccs-cur-details > * { margin: 0; }
.ccs-cur-details > * + * { margin-top: 10px; }
.ccs-cur-details ul { padding-left: 1.25em; }
.ccs-cur-details li + li { margin-top: 4px; }
/* Section headings and subject labels inside a tile (v1.28.1, Katie's note). */
.ccs-cur-details > h3.ccs-cur-h { font-size: var(--wp--preset--font-size--heading-3); line-height: 1.15; color: var(--ccs-blue); }
.ccs-cur-details > * + h3.ccs-cur-h { margin-top: 22px; }
.ccs-cur-details > .ccs-cur-sub { margin-top: 14px; }
.ccs-cur-details > .ccs-cur-sub + ul { margin-top: 4px; }
.ccs-cur-details > h3.ccs-cur-h + * { margin-top: 6px; }
@media (max-width: 781px) { .ccs-cur-details > h3.ccs-cur-h { font-size: 1.375rem; } }
/* Photos and videos: one set shape, never tiny, never taller than about 280 px. */
.ccs-cur-media { margin: 0; width: 100%; max-width: 520px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ccs-grey-15); }
.ccs-cur-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccs-cur-media video, .ccs-cur-media iframe { display: block; width: 100% !important; height: 100% !important; border: 0; background: #000; object-fit: contain; }
.ccs-cur-media--video { background: #000; }
/* Wide spots (the tiles used outside the narrow school-page column): photo beside the text. */
@container (min-width: 640px) {
	.ccs-cur-tile--media .ccs-cur-body { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); align-items: start; }
	.ccs-cur-media { aspect-ratio: 4 / 3; }
	.ccs-cur-media--video { aspect-ratio: 16 / 9; }
}
/* With JavaScript: closed until clicked, with a smooth open. */
.ccs-cur--js .ccs-cur-sign {
	display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
	border: 2px solid var(--ccs-blue); position: relative; transition: background-color 0.2s ease;
}
.ccs-cur--js .ccs-cur-sign::before, .ccs-cur--js .ccs-cur-sign::after {
	content: ""; position: absolute; width: 12px; height: 2px; background: var(--ccs-blue); transition: transform 0.2s ease, background-color 0.2s ease;
}
.ccs-cur--js .ccs-cur-sign::after { transform: rotate(90deg); }
.ccs-cur--js .ccs-cur-tile--opens:hover { border-color: var(--ccs-blue); border-left-color: var(--ccs-blue); }
.ccs-cur--js .ccs-cur-toggle:hover .ccs-cur-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.ccs-cur--js .ccs-cur-more { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.25s ease, visibility 0s linear 0.25s; }
.ccs-cur--js .ccs-cur-more-inner { min-height: 0; overflow: hidden; }
.ccs-cur--js .is-open .ccs-cur-more { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.25s ease, visibility 0s; }
.ccs-cur--js .ccs-cur-tile.is-open { border-color: var(--ccs-blue); border-left-color: var(--ccs-blue); box-shadow: 0 10px 24px rgba(0, 31, 92, 0.14); transform: translateY(-2px); }
.ccs-cur--js .is-open .ccs-cur-sign { background: var(--ccs-blue); }
.ccs-cur--js .is-open .ccs-cur-sign::before, .ccs-cur--js .is-open .ccs-cur-sign::after { background: #fff; }
.ccs-cur--js .is-open .ccs-cur-sign::after { transform: rotate(0deg); }
@media (max-width: 781px) {
	.ccs-cur-title { font-size: 1.375rem; }
	.ccs-cur-toggle, .ccs-cur-title > .ccs-cur-name { padding: 14px 16px 0; }
	.ccs-cur-line { padding: 0 16px 14px; }
	.ccs-cur-body { margin: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.ccs-cur-tile, .ccs-cur--js .ccs-cur-more, .ccs-cur--js .ccs-cur-sign::after { transition: none !important; }
	.ccs-cur--js .ccs-cur-tile.is-open { transform: none; }
}
.ccs-cur-staff { margin-top: 12px !important; color: #6E777E; }

/* =====================================================================
   v1.27.1 (Nov 20, 2026): School Store look (inc/shop.php, assets/js/shop.js)
   Crusader Blue leads; Banner Gold only as the thin rule under photos and the
   pop-up header; Banner Gold 30% only for the soft "What happens next" box.
   ===================================================================*/
.ccs-shop, .ccs-shop-dialog, .ccs-shop-preview, .ccs-shop-mini { --shop-line: var(--ccs-grey-30); --shop-field: var(--wp--preset--color--armor-grey); }
.ccs-shop { display: flex; flex-direction: column; gap: 36px; }
.ccs-shop-ico { flex: 0 0 auto; }
.ccs-staff-note { color: #6E777E; font-size: 0.875rem; margin: 0; }
.ccs-req { color: #A4161A; }

/* How it works */
.ccs-shop-steps { list-style: none; margin: 0; padding: 22px 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; background: var(--ccs-grey-15); border-radius: 12px; }
.ccs-shop-steps li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.ccs-shop-step-num { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--ccs-blue); color: #fff; display: grid; place-items: center; font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.ccs-shop-step-text { display: flex; flex-direction: column; gap: 2px; }
.ccs-shop-step-text strong { color: var(--ccs-blue); font-size: 1.0625rem; }
.ccs-shop-step-text span { color: var(--ccs-slate); font-size: 0.9375rem; line-height: 1.45; }
@media (max-width: 781px) { .ccs-shop-steps { grid-template-columns: 1fr; gap: 16px; padding: 18px; } }

/* Item cards */
.ccs-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 344px)); gap: 32px; }
.ccs-shop-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--shop-line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 25, 80, 0.06); transition: box-shadow 0.2s ease, transform 0.2s ease; scroll-margin-top: 24px; }
.ccs-shop-item--available:hover { box-shadow: 0 12px 28px rgba(0, 30, 90, 0.13); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .ccs-shop-item { transition: none; } .ccs-shop-item--available:hover { transform: none; } }
.ccs-shop-photo { position: relative; aspect-ratio: 1 / 1; background: var(--ccs-grey-15); border-bottom: 4px solid var(--ccs-gold); overflow: hidden; }
.ccs-shop-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ccs-shop-nophoto { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.ccs-shop-nophoto img { width: 38%; height: auto; opacity: 0.2; filter: grayscale(1); }
.ccs-shop-nophoto span { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ccs-slate); }
.ccs-shop-badge { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--ccs-blue); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 25, 80, 0.18); }
/* SOLD OUT / ORDERS CLOSED: a see-through Charcoal layer with the words over the photo. */
.ccs-shop-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(84, 88, 90, 0.62); }
.ccs-shop-overlay span { font-family: var(--wp--preset--font-family--serif); font-weight: 700; text-transform: uppercase; font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: 0.06em; color: #fff; border-top: 3px solid #fff; border-bottom: 3px solid #fff; padding: 6px 14px; line-height: 1.1; text-align: center; }
.ccs-shop-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.ccs-shop-body > * { margin: 0 !important; }
.ccs-shop-title { color: var(--ccs-blue); font-size: var(--wp--preset--font-size--heading-3); line-height: 1.15; }
.ccs-shop-price { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.875rem; line-height: 1; color: var(--ccs-blue); }
.ccs-shop-details { color: var(--ccs-ink); font-size: 1rem; }
.ccs-shop-details > * { margin: 0 0 8px; }
.ccs-shop-details > :last-child { margin-bottom: 0; }
.ccs-shop-facts { list-style: none; padding: 14px 0 0 !important; border-top: 1px solid var(--shop-line); display: flex; flex-direction: column; gap: 8px; }
.ccs-shop-facts li { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 0.9375rem; color: var(--ccs-ink); }
.ccs-shop-facts .ccs-shop-ico { color: var(--ccs-blue); }
.ccs-shop-order-btn { margin-top: auto !important; width: 100%; font: inherit; font-weight: 700; font-size: 1.0625rem; color: #fff; background: var(--ccs-blue); border: 0; border-radius: 6px; padding: 14px 20px; cursor: pointer; transition: background 0.15s ease; }
.ccs-shop-order-btn:hover { background: var(--ccs-blue-dark); }
.ccs-shop-body > .ccs-shop-order-btn { margin-top: auto !important; }
.ccs-shop-closed-note { margin-top: auto !important; background: var(--ccs-grey-15); color: var(--ccs-slate); text-align: center; border-radius: 6px; padding: 12px; font-weight: 600; }
.ccs-shop-empty { padding: 40px 24px; text-align: center; background: var(--ccs-grey-15); border-radius: 12px; }

/* Order form: in a pop-up when JavaScript runs, inline otherwise. */
html.ccs-shop-locked { overflow: hidden; }
.ccs-shop-form-wrap { border: 1px solid var(--shop-line); border-radius: 12px; overflow: hidden; background: #fff; }
.ccs-shop-form-wrap[hidden] { display: none; }
.ccs-shop-dialog { padding: 0; border: 0; border-radius: 14px; width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(0, 20, 60, 0.35); color: var(--ccs-ink); }
.ccs-shop-dialog::backdrop { background: rgba(0, 20, 60, 0.55); }
.ccs-shop-dialog .ccs-shop-form-wrap { border: 0; border-radius: 0; display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.ccs-shop-sheet-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--ccs-blue); color: #fff; border-bottom: 4px solid var(--ccs-gold); }
.ccs-shop-sheet-head > * { margin: 0; }
.ccs-shop-sheet-thumb { flex: 0 0 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #fff; }
.ccs-shop-sheet-thumb .ccs-shop-img { width: 64px; height: 64px; }
.ccs-shop-sheet-thumb .ccs-shop-nophoto span { display: none; }
.ccs-shop-sheet-thumb .ccs-shop-nophoto img { width: 70%; }
.ccs-shop-sheet-what { min-width: 0; }
.ccs-shop-sheet-what p { margin: 0; color: #fff; }
.ccs-shop-sheet-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.ccs-shop-sheet-title { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.ccs-shop-sheet-price { font-size: 0.9375rem; opacity: 0.9; }
.ccs-shop-close { margin-left: auto !important; flex: 0 0 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ccs-shop-close:hover { background: rgba(255, 255, 255, 0.26); }
.ccs-shop-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ccs-shop-form { display: flex; flex-direction: column; min-height: 0; flex: 1; margin: 0; }
.ccs-shop-form-body { padding: 24px 26px 8px; overflow-y: auto; flex: 1; }
.ccs-shop-step { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.ccs-shop-step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 1.0625rem; color: var(--ccs-ink); }
.ccs-shop-step-n { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ccs-blue); color: var(--ccs-blue); display: grid; place-items: center; font-size: 0.8125rem; font-weight: 700; line-height: 1; }
.ccs-shop-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ccs-shop-field--wide { grid-column: 1 / -1; }
.ccs-shop-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ccs-shop-field > span { font-weight: 600; font-size: 0.9375rem; color: var(--ccs-ink); }
.ccs-shop-field .ccs-opt { font-weight: 400; color: var(--ccs-slate); font-size: 0.8125rem; }
.ccs-shop-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select) { font: inherit; font-size: 1rem; color: var(--ccs-ink); height: 46px; padding: 0 12px; width: 100%; box-sizing: border-box; border: 1.5px solid var(--shop-field); border-radius: 6px; background: #fff; }
.ccs-shop-form :is(input, select):focus { border-color: var(--ccs-blue); box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.18); outline: none; }
.ccs-shop-form :is(input, select):focus-visible { outline: none; }
.ccs-shop-student { margin-top: 14px; }
.ccs-shop-qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ccs-shop-stepper { display: inline-flex; border: 1.5px solid var(--shop-field); border-radius: 6px; overflow: hidden; }
.ccs-shop-stepper button { width: 46px; height: 46px; border: 0; background: var(--ccs-grey-15); color: var(--ccs-blue); font-size: 1.375rem; font-weight: 700; cursor: pointer; line-height: 1; }
.ccs-shop-stepper button:hover { background: var(--ccs-grey-30); }
.ccs-shop-stepper button:focus-visible { outline: 3px solid var(--ccs-blue); outline-offset: -3px; }
.ccs-shop-form .ccs-shop-stepper .ccs-shop-qty { width: 64px; border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.ccs-shop-form .ccs-shop-stepper .ccs-shop-qty:focus { box-shadow: inset 0 0 0 2px var(--ccs-blue); }
.ccs-shop-qty::-webkit-outer-spin-button, .ccs-shop-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ccs-shop-qty-note, .ccs-shop-hint { margin: 0; color: var(--ccs-slate); font-size: 0.875rem; }
.ccs-shop-hint { margin-top: 8px; }
.ccs-shop-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ccs-shop-choice { position: relative; display: block; margin: 0; cursor: pointer; }
.ccs-shop-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ccs-shop-choice-box { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 14px 16px 14px 48px; border: 2px solid var(--shop-line); border-radius: 10px; background: #fff; position: relative; transition: border-color 0.15s ease, background 0.15s ease; }
.ccs-shop-choice-box::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--shop-field); background: #fff; box-sizing: border-box; }
.ccs-shop-choice-box strong { color: var(--ccs-ink); font-size: 1rem; }
.ccs-shop-choice-box span { color: var(--ccs-slate); font-size: 0.875rem; line-height: 1.4; }
.ccs-shop-choice:hover .ccs-shop-choice-box { border-color: var(--shop-field); }
.ccs-shop-choice input:checked + .ccs-shop-choice-box { border-color: var(--ccs-blue); background: var(--ccs-grey-15); }
.ccs-shop-choice input:checked + .ccs-shop-choice-box::before { border-color: var(--ccs-blue); background: var(--ccs-blue); box-shadow: inset 0 0 0 4px #fff; }
.ccs-shop-choice input:checked + .ccs-shop-choice-box strong { color: var(--ccs-blue); }
.ccs-shop-choice input:focus-visible + .ccs-shop-choice-box { outline: 3px solid var(--ccs-blue); outline-offset: 2px; }
.ccs-shop-agree { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 16px; background: var(--ccs-grey-15); border-radius: 10px; cursor: pointer; font-size: 1rem; color: var(--ccs-ink); }
.ccs-shop-agree input { width: 22px; height: 22px; min-width: 22px; margin: 1px 0 0; accent-color: var(--ccs-blue); }
.ccs-shop-error { margin: 0 0 20px; padding: 12px 14px; background: #FDECEC; border-left: 4px solid #A4161A; border-radius: 6px; color: #8A1F1F; font-weight: 600; }
.ccs-shop-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; border-top: 1px solid var(--shop-line); background: #fff; }
.ccs-shop-total { margin: 0; display: flex; align-items: baseline; gap: 10px; color: var(--ccs-slate); }
.ccs-shop-total strong { font-family: var(--wp--preset--font-family--serif); font-size: 1.875rem; color: var(--ccs-blue); line-height: 1; }
.ccs-shop-submit { font: inherit; font-weight: 700; font-size: 1.0625rem; color: #fff; background: var(--ccs-blue); border: 0; border-radius: 6px; padding: 14px 28px; cursor: pointer; }
.ccs-shop-submit:hover { background: var(--ccs-blue-dark); }
.ccs-shop-submit[disabled] { opacity: 0.7; cursor: wait; }
.ccs-shop-form .ccs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ccs-shop-item > .ccs-shop-body > .ccs-shop-form-wrap { margin-top: 8px !important; }
@media (max-width: 600px) {
	.ccs-shop-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
	.ccs-shop-dialog .ccs-shop-form-wrap { max-height: 100dvh; height: 100dvh; }
	.ccs-shop-fields, .ccs-shop-choices { grid-template-columns: 1fr; }
	.ccs-shop-form-body { padding: 20px 18px 8px; }
	.ccs-shop-sheet-foot { padding: 12px 18px; }
	.ccs-shop-sheet-head { padding: 14px 16px; }
	.ccs-shop-sheet-title { font-size: 1.25rem; }
}

/* Order receipt at the top of the store after ordering */
.ccs-shop-receipt { background: #fff; border: 1px solid var(--shop-line); border-top: 6px solid var(--ccs-blue); border-radius: 12px; padding: 24px 28px; box-shadow: 0 6px 20px rgba(0, 25, 80, 0.08); scroll-margin-top: 24px; }
.ccs-shop-receipt:focus { outline: none; }
.ccs-shop-receipt-head { display: flex; gap: 16px; align-items: center; }
.ccs-shop-receipt-head p { margin: 0; }
.ccs-shop-receipt-ico { flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--ccs-blue); color: #fff; display: grid; place-items: center; }
.ccs-shop-receipt-ico .ccs-shop-ico { width: 26px; height: 26px; stroke-width: 2.6; }
.ccs-shop-receipt-title { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: var(--wp--preset--font-size--heading-3); line-height: 1.15; color: var(--ccs-blue); }
.ccs-shop-receipt-sub { color: var(--ccs-slate); }
.ccs-shop-receipt-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 22px 0; padding: 18px 0; border-top: 1px solid var(--shop-line); border-bottom: 1px solid var(--shop-line); }
.ccs-shop-receipt-list div { margin: 0; }
.ccs-shop-receipt-list dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ccs-slate); }
.ccs-shop-receipt-list dd { margin: 4px 0 0; color: var(--ccs-ink); }
.ccs-shop-receipt-next { margin: 0; padding: 14px 16px; background: var(--wp--preset--color--banner-gold-30); border-radius: 8px; color: var(--ccs-ink); }

/* Community page: School Store band (v1.27.2) */
.ccs-shop-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.ccs-shop-band-text > * { margin: 0; }
.ccs-shop-band-text > * + * { margin-top: 16px; }
.ccs-shop-band-lede { font-size: 1.125rem; color: var(--ccs-ink); max-width: 34em; }
.ccs-shop-band-facts { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.ccs-shop-band-facts li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--ccs-ink); font-size: 1rem; }
.ccs-shop-band-facts .ccs-shop-ico { color: var(--ccs-blue); margin-top: 2px; }
.ccs-shop-band-text .wp-block-buttons { margin-top: 24px !important; }
.ccs-shop-band-more { margin: 14px 0 0; text-align: right; font-weight: 600; }
@media (max-width: 900px) { .ccs-shop-band { grid-template-columns: 1fr; gap: 28px; } }
.ccs-shop-mini { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ccs-shop-mini--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ccs-shop-mini--n1 { grid-template-columns: 1fr; }
@media (max-width: 600px) { .ccs-shop-mini { grid-template-columns: 1fr; } }
.ccs-shop-mini-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--ccs-grey-30); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 25, 80, 0.06); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.ccs-shop-mini-card:hover { box-shadow: 0 12px 28px rgba(0, 30, 90, 0.14); transform: translateY(-2px); }
.ccs-shop-mini-card:focus-visible { outline: 3px solid var(--ccs-blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ccs-shop-mini-card { transition: none; } .ccs-shop-mini-card:hover { transform: none; } }
.ccs-shop-mini-card .ccs-shop-photo { aspect-ratio: 1 / 1; }
.ccs-shop-mini-card .ccs-shop-overlay span { font-size: 1.5rem; }
.ccs-shop-mini-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.ccs-shop-mini-title { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.25rem; color: var(--ccs-blue); line-height: 1.2; }
.ccs-shop-mini-price { font-family: var(--wp--preset--font-family--serif); font-weight: 700; font-size: 1.375rem; color: var(--ccs-blue); line-height: 1.2; }
.ccs-shop-mini-meta { font-size: 0.875rem; color: var(--ccs-slate); }
.ccs-shop-mini-cta { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--ccs-blue); font-size: 0.9375rem; }
.ccs-shop-mini-card:hover .ccs-shop-mini-cta { text-decoration: underline; }
.ccs-shop-mini-card--soldout .ccs-shop-mini-cta, .ccs-shop-mini-card--closed .ccs-shop-mini-cta { color: var(--ccs-slate); }
/* One item: a wide card, photo left. */
@media (min-width: 601px) {
	.ccs-shop-mini--n1 .ccs-shop-mini-card { flex-direction: row; }
	.ccs-shop-mini--n1 .ccs-shop-photo { flex: 0 0 46%; border-bottom: 0; border-right: 4px solid var(--ccs-gold); }
	.ccs-shop-mini--n1 .ccs-shop-mini-body { justify-content: center; padding: 28px; gap: 8px; }
	.ccs-shop-mini--n1 .ccs-shop-mini-title { font-size: var(--wp--preset--font-size--heading-3); }
	.ccs-shop-mini--n1 .ccs-shop-mini-price { font-size: 1.875rem; }
	.ccs-shop-mini--n1 .ccs-shop-mini-meta { font-size: 1rem; }
	.ccs-shop-mini--n1 .ccs-shop-mini-cta { margin-top: 12px; display: inline-block; align-self: flex-start; background: var(--ccs-blue); color: #fff; padding: 10px 18px; border-radius: 6px; }
	.ccs-shop-mini--n1 .ccs-shop-mini-card:hover .ccs-shop-mini-cta { text-decoration: none; background: var(--ccs-blue-dark); }
}
/* Phones: compact cards, photo left (v1.27.2). */
@media (max-width: 600px) {
	.ccs-shop-mini-card { flex-direction: row; }
	.ccs-shop-mini-card .ccs-shop-photo { flex: 0 0 38%; aspect-ratio: 1 / 1; border-bottom: 0; border-right: 4px solid var(--ccs-gold); }
	.ccs-shop-mini-card .ccs-shop-overlay span { font-size: 1rem; padding: 4px 8px; border-width: 2px; }
	.ccs-shop-mini-card .ccs-shop-nophoto span { display: none; }
	.ccs-shop-mini-body { padding: 12px 14px; justify-content: center; }
	.ccs-shop-mini-title { font-size: 1.0625rem; }
	.ccs-shop-mini-price { font-size: 1.125rem; }
	.ccs-shop-mini-cta { padding-top: 6px; }
}

/* ==========================================================================
   v1.29.0 (Nov 30, 2026): Board of Directors and PTF lists, clickable bios
   Cards with a bio: the portrait and name open a pop-up (inc/people.php).
   ========================================================================== */
.ccs-staff-card--bio .ccs-staff-open { position: relative; display: block; overflow: hidden; }
.ccs-staff-card--bio .ccs-staff-open .ccs-headshot { transition: transform .25s ease; }
.ccs-staff-open-cue { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: rgba(0, 51, 160, .9); border-top: 3px solid var(--ccs-gold); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; transform: translateY(100%); transition: transform .2s ease; }
.ccs-staff-card--bio:hover .ccs-staff-open-cue, .ccs-staff-card--bio:focus-within .ccs-staff-open-cue { transform: translateY(0); }
.ccs-staff-card--bio:hover .ccs-staff-open .ccs-headshot { transform: scale(1.03); }
.ccs-staff-card h3 a.ccs-bio-link { color: inherit; text-decoration: none; }
.ccs-staff-card h3 a.ccs-bio-link:hover, .ccs-staff-card h3 a.ccs-bio-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ccs-staff-card h3 a.ccs-bio-link::after { content: "\00a0\203A"; color: var(--ccs-blue); }
@media (hover: none) { .ccs-staff-open-cue { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ccs-staff-open-cue, .ccs-staff-card--bio .ccs-staff-open .ccs-headshot { transition: none; } }

/* The pop-up. Without JavaScript it opens with :target; with it, .is-open. */
.ccs-bio { display: none; position: fixed; inset: 0; z-index: 100000; padding: 32px 16px; overflow-y: auto; background: rgba(0, 20, 64, .6); }
html:not(.ccs-bio-js) .ccs-bio:target, .ccs-bio.is-open { display: flex; align-items: flex-start; justify-content: center; }
.ccs-bio-box { position: relative; width: 100%; max-width: 760px; margin: auto; background: #fff; border-top: 6px solid var(--ccs-blue); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.ccs-bio-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ccs-blue); font-size: 2rem; line-height: 1; text-decoration: none; }
.ccs-bio-close:hover, .ccs-bio-close:focus-visible { background: var(--ccs-grey-15); outline: 3px solid var(--ccs-blue); outline-offset: 0; }
.ccs-bio-head { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: end; padding: 36px 36px 24px; border-bottom: 4px solid var(--ccs-gold); background: var(--ccs-grey-15); }
.ccs-bio-pic .ccs-bio-photo, .ccs-bio-pic .ccs-headshot { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.ccs-bio-who p { margin: 0; }
.ccs-bio-kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ccs-slate); }
.ccs-bio-name { margin-top: 4px !important; font-family: var(--wp--preset--font-family--crimson-pro, "Crimson Pro", serif); font-weight: 700; font-size: var(--wp--preset--font-size--xx-large); line-height: 1.1; color: var(--ccs-blue); }
.ccs-bio-role { margin-top: 6px !important; font-weight: 700; color: var(--ccs-ink); }
.ccs-bio-job { color: var(--ccs-ink); }
.ccs-bio-email { margin-top: 6px !important; overflow-wrap: anywhere; }
.ccs-bio-body { padding: 8px 36px 36px; }
.ccs-bio-body h3 { margin: 28px 0 8px; color: var(--ccs-blue); }
.ccs-bio-body > p:first-child { margin-top: 24px; font-size: 1.125em; }
.ccs-bio-body p { margin: 0 0 12px; }
.ccs-bio-body:empty { display: none; }
html.ccs-bio-lock { overflow: hidden; }
@media (max-width: 600px) {
	.ccs-bio { padding: 0; }
	.ccs-bio-box { min-height: 100%; border-top-width: 4px; box-shadow: none; }
	.ccs-bio-head { grid-template-columns: 1fr; gap: 16px; padding: 56px 20px 20px; }
	.ccs-bio-pic { max-width: 180px; }
	.ccs-bio-body { padding: 4px 20px 32px; }
}
/* PTF officers box: names with a bio open it too. */
.ccs-contact-line a.ccs-bio-link { color: inherit; }

/* v1.31.0: document cards (School Info → Documents; [ccs_doc], [ccs_docs]) */
.ccs-doc-list { display: grid; gap: 12px; }
.ccs-doc-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--wp--preset--color--light-grey, #C8C8C8); border-left: 4px solid var(--ccs-blue); max-width: 760px; }
.ccs-doc-icon { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--ccs-grey-15); color: var(--ccs-blue); }
.ccs-doc-text { flex: 1; min-width: 0; }
.ccs-doc-text p { margin: 0; }
.ccs-doc-title { font-family: var(--wp--preset--font-family--crimson-pro, "Crimson Pro", serif); font-weight: 700; font-size: 1.375rem; line-height: 1.2; color: var(--ccs-blue); }
.ccs-doc-meta { margin-top: 2px !important; font-size: .875rem; color: var(--ccs-slate); }
.ccs-doc-actions { flex: none; display: flex; gap: 8px; }
.ccs-doc-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--ccs-blue); border-radius: 4px; color: var(--ccs-blue); font-weight: 700; font-size: 1rem; text-decoration: none; }
.ccs-doc-btn:hover, .ccs-doc-btn:focus-visible { background: var(--ccs-grey-15); }
.ccs-doc-btn--solid { background: var(--ccs-blue); color: #fff; }
.ccs-doc-btn--solid:hover, .ccs-doc-btn--solid:focus-visible { background: #00267a; color: #fff; }
@media (max-width: 600px) { .ccs-doc-card { flex-wrap: wrap; } .ccs-doc-actions { width: 100%; } .ccs-doc-btn { flex: 1; justify-content: center; } }
