/* Styles theme.json can't express. Brand values stay in theme.json as tokens. */

:root {
	--ssc-utility-height: 2.25rem;
	--ssc-radius: var(--wp--custom--radius--card);
	--ssc-radius-sm: var(--wp--custom--radius--control);

	/* The guidelines' hairline (#d9d9d9) is the brand Grey at 27% on white. The
	   panel fill is the same Grey at 10% (#f1f1f1), so boxes stay in the palette. */
	--ssc-hairline-grey: color-mix(in srgb, var(--wp--preset--color--grey) 27%, var(--wp--preset--color--white));
	--ssc-panel-grey: color-mix(in srgb, var(--wp--preset--color--grey) 10%, var(--wp--preset--color--white));
	--ssc-shadow: 0 0.75rem 2rem rgb(2 33 105 / 0.12);

	/* One shared margin, so every full-width section lines up with the logo. */
	--ssc-gutter: max(var(--wp--preset--spacing--30), calc((100% - 80rem) / 2));

	/* Surface colours for a white section. Each band colour resets them below,
	   so every pairing keeps WCAG AA contrast without per-component overrides. */
	--ssc-heading: var(--wp--preset--color--navy);
	--ssc-accent: var(--wp--preset--color--gold);
	/* Gold is the accent for small brand marks on light surfaces only: labels,
	   Flame marks, path dots and quote marks. Lines stay the grey hairline. */
	--ssc-mark: var(--wp--preset--color--gold);
	--ssc-figure: var(--wp--preset--color--navy);
	--ssc-rule: var(--ssc-hairline-grey);
	--ssc-panel: var(--ssc-panel-grey);
	--ssc-panel-border: transparent;
	--ssc-panel-text: var(--wp--preset--color--navy);
	--ssc-panel-accent: var(--wp--preset--color--navy);
	--ssc-panel-figure: var(--wp--preset--color--navy);

	/* On dark bands, panels and tiles are outlines rather than a second dark fill. */
	--ssc-outline-on-dark: rgb(255 255 255 / 0.22);
}

/* Grey text fails contrast on Baby Blue, so the band's text turns Navy. */
.has-baby-blue-background-color {
	--ssc-accent: var(--wp--preset--color--navy);
	--ssc-rule: var(--wp--preset--color--white);
	--ssc-panel: var(--wp--preset--color--white);
	--ssc-panel-text: var(--wp--preset--color--grey);
	--ssc-panel-accent: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
}

/* On the dark colours, Aqua carries the emphasis, as in the brand templates.
   Muted Navy is kept to the editor palette; the theme itself doesn't use it. */
.has-navy-background-color,
.has-muted-navy-background-color {
	--ssc-heading: var(--wp--preset--color--white);
	--ssc-accent: var(--wp--preset--color--aqua);
	--ssc-mark: var(--wp--preset--color--aqua);
	--ssc-figure: var(--wp--preset--color--aqua);
	--ssc-rule: rgb(255 255 255 / 0.22);
	--ssc-panel: transparent;
	--ssc-panel-border: var(--ssc-outline-on-dark);
	--ssc-panel-text: var(--wp--preset--color--white);
	--ssc-panel-accent: var(--wp--preset--color--aqua);
	--ssc-panel-figure: var(--wp--preset--color--aqua);
}

/* Foundations
   ------------------------------------------------------------------ */

/* Keeps focused elements clear of the sticky header (WCAG 2.2 Focus Not Obscured). */
html {
	scroll-padding-top: 7rem;
}

/* Raleway's default numerals are old-style, so a 0 reads as an "o". Full-height
   figures everywhere keep dates, fees and figures reading as numbers. */
body {
	font-variant-numeric: lining-nums;
}

/* Text links keep their colour on hover; the underline thickens instead. */
a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:where(:not(.wp-element-button)):hover {
	text-decoration-thickness: 2px;
}

/* Smooth scrolling, only for visitors who haven't asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {

	html {
		scroll-behavior: smooth;
	}
}

/* currentColor keeps the focus ring visible on both light and navy sections. */
:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* Filled buttons and cards: currentColor would be their own text colour, which can
   match the band behind the ring. The section's heading colour always contrasts
   with the band (WCAG 2.4.7 and 1.4.11). */
.wp-element-button:focus-visible,
.ssc-subpages a:focus-visible,
.ssc-linklist a:focus-visible {
	outline-color: var(--ssc-heading);
}

.ssc-masthead :focus-visible {
	outline-color: var(--wp--preset--color--white);
}

/* Interactive targets meet the 24px minimum (WCAG 2.2 Target Size). */
.wp-element-button,
.wp-block-button__link,
.wp-block-navigation-item__content {
	min-height: 1.5rem;
	min-width: 1.5rem;
}

.ssc-utility a,
.ssc-footer a,
.ssc-breadcrumbs a {
	display: inline-block;
	line-height: 1.5rem;
	min-height: 1.5rem;
}

/* Full-width sections sit edge to edge, with no gap from the block layout. */
.wp-site-blocks > *,
main .entry-content,
main .entry-content > .alignfull,
main > .alignfull {
	margin-block: 0;
}

.ssc-section {
	padding-block: var(--wp--preset--spacing--60);
}

/* Dark sections: headings and links follow the section's text colour. */
.has-navy-background-color :is(h1, h2, h3, h4),
.has-muted-navy-background-color :is(h1, h2, h3, h4),
.has-navy-background-color a:not(.wp-element-button),
.has-muted-navy-background-color a:not(.wp-element-button) {
	color: inherit;
}

/* Key words are picked out in colour and weight, never in a second typeface (Quote Messaging template).
   Weight keeps the emphasis on Baby Blue, where the accent is the text's own Navy. */
:is(h1, h2, h3, .ssc-big, .ssc-motto, .ssc-statement, .ssc-mission) strong {
	color: var(--ssc-accent);
	font-weight: 600;
}

:is(.ssc-hero__panel h1, .ssc-motto, .ssc-cta h2) strong {
	font-weight: inherit;
}

/* Buttons. The main action is solid Navy on light sections and solid Aqua on dark ones. */
.ssc-masthead .wp-element-button,
.has-navy-background-color .wp-element-button,
.has-muted-navy-background-color .wp-element-button {
	color: var(--wp--preset--color--white);
}

.ssc-masthead .wp-element-button:hover,
.has-navy-background-color .wp-element-button:hover,
.has-muted-navy-background-color .wp-element-button:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-accent .wp-block-button__link {
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* On light bands the main action inverts on hover: Navy outline on white. */
.wp-block-button.is-style-accent .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.ssc-masthead .is-style-accent .wp-block-button__link,
.has-navy-background-color .is-style-accent .wp-block-button__link,
.has-muted-navy-background-color .is-style-accent .wp-block-button__link {
	background: var(--wp--preset--color--aqua);
	border-color: var(--wp--preset--color--aqua);
	color: var(--wp--preset--color--navy);
}

/* Text link: a quieter "read more" beside a main action. The arrow slides on hover. */
.wp-block-button.is-style-link .wp-block-button__link,
.wp-block-button.is-style-link .wp-block-button__link:hover {
	background: transparent;
	border-color: transparent;
	color: var(--ssc-heading);
	padding-inline: 0.25rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}

.wp-block-button.is-style-link .wp-block-button__link:hover {
	text-decoration-thickness: 2px;
}

.wp-block-button.is-style-link .wp-block-button__link::after {
	color: var(--ssc-accent);
	content: "\2192";
	content: "\2192" / "";
	display: inline-block;
	margin-inline-start: 0.5rem;
	text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {

	.wp-block-button.is-style-link .wp-block-button__link::after {
		transition: transform 0.2s ease;
	}

	.wp-block-button.is-style-link .wp-block-button__link:hover::after {
		transform: translateX(0.25rem);
	}
}

/* On dark, the outline buttons fill white on hover, so the main action stays Aqua
   and lifts instead: the two never look the same. */
.ssc-masthead .is-style-accent .wp-block-button__link:hover,
.has-navy-background-color .is-style-accent .wp-block-button__link:hover,
.has-muted-navy-background-color .is-style-accent .wp-block-button__link:hover {
	background: var(--wp--preset--color--aqua);
	border-color: var(--wp--preset--color--white);
	box-shadow: 0 0.5rem 1.25rem rgb(0 0 0 / 0.25);
	color: var(--wp--preset--color--navy);
}

/* Links to systems outside the site (enrolments, portals, the uniform shop, forms,
   the bus map) carry a small arrow. They open in the same tab. */
:is(main, .ssc-footer, .ssc-utility, .ssc-masthead__actions) :is(a[href*="enrol.stspyridon.nsw.edu.au"], a[href*="sentral.school"], a[href*="portal.stspyridon.nsw.edu.au"], a[href*="stspyridoncareers.com"], a[href*="sscuniform.com.au"], a[href*="forms.office.com"], a[href*="forms.microsoft"], a[href*="forms.cloud.microsoft"], a[href*="rollcall.com.au"]):not(:is(.ssc-subpages, .ssc-linklist) a)::after {
	background: currentColor;
	content: "";
	display: inline-block;
	height: 0.7em;
	margin-inline-start: 0.35em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7h-1.6V3.7L2.1 11 1 9.9l7.3-7.3H4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7h-1.6V3.7L2.1 11 1 9.9l7.3-7.3H4z'/%3E%3C/svg%3E") center / contain no-repeat;
	vertical-align: 0.05em;
	width: 0.7em;
}

/* PDF links say so, so nobody is surprised by a download. */
:is(main, .ssc-footer) a[href$=".pdf" i]::after {
	border: 1px solid currentColor;
	border-radius: 0.25rem;
	content: "PDF";
	display: inline-block;
	font-size: 0.6875em;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	margin-inline-start: 0.5em;
	padding: 0 0.35em;
	vertical-align: 0.1em;
}

.ssc-eyebrow {
	color: var(--ssc-accent);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* A statement beside a hairline bar, as the guidelines set their pull quotes. */
.ssc-statement {
	border-inline-start: 2px solid var(--ssc-rule);
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--heading-4);
	line-height: 1.45;
	max-width: 52rem;
	padding-inline-start: var(--wp--preset--spacing--30);
}

/* WordPress centres children of a constrained layout, so pin this to its heading. */
.ssc-experience .ssc-statement {
	margin-inline: 0 !important;
}

/* Images and video that fill their frame, whatever shape the source is. */
.ssc-hero__media img,
.ssc-hero__media video,
.ssc-split__media img,
.ssc-card__media img,
.ssc-band__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* Graphic elements
   ------------------------------------------------------------------ */

/* The Flame is the default element; the Branch is the alternative. Both are masks,
   so any palette colour can fill them. Torch and Wreath are kept for awards. */
.ssc-hero__panel::before,
.ssc-identity::before,
.ssc-cta::before,
.ssc-page-hero::before,
.ssc-band--crest::before {
	background: var(--wp--preset--color--white);
	content: "";
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	opacity: var(--wp--custom--graphic--on-dark);
	pointer-events: none;
	position: absolute;
}

/* The Flame, "a symbol of hope and knowledge", is on every page header. The Branch
   is kept for the call-to-action band and the faith and heritage pages. */
.ssc-hero__panel::before,
.ssc-identity::before,
.ssc-page-hero::before {
	-webkit-mask-image: url("../images/flame.svg");
	mask-image: url("../images/flame.svg");
}

.ssc-cta::before {
	-webkit-mask-image: url("../images/branch.svg");
	mask-image: url("../images/branch.svg");
	opacity: var(--wp--custom--graphic--on-dark-strong);
}

.ssc-band--crest::before {
	-webkit-mask-image: url("../images/crest.svg");
	mask-image: url("../images/crest.svg");
}

/* On white and Baby Blue the crest is a faint Navy watermark, as on the guideline pages. */
.ssc-band--crest:not(.has-navy-background-color, .has-muted-navy-background-color)::before {
	background: var(--wp--preset--color--navy);
	opacity: var(--wp--custom--graphic--on-light);
}

/* Header
   ------------------------------------------------------------------ */

/* The portal bar scrolls away and the masthead stays. */
header.wp-block-template-part {
	position: sticky;
	top: calc(-1 * var(--ssc-utility-height));
	z-index: 100;
}

/* One Navy header: the portal bar is set apart from the masthead by a hairline, not a second colour. */
.ssc-utility {
	background: var(--wp--preset--color--navy);
	border-block-end: 1px solid rgb(255 255 255 / 0.12);
	box-sizing: border-box;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	height: var(--ssc-utility-height);
}

/* Apply Now sits apart from the portals, which are for current families. */
.ssc-utility__inner {
	align-items: center;
	display: flex;
	gap: var(--wp--preset--spacing--30);
	height: 100%;
	justify-content: space-between;
	padding-inline: var(--ssc-gutter);
}

.ssc-utility .ssc-utility__apply {
	color: var(--wp--preset--color--aqua);
	font-weight: 600;
}

.ssc-utility ul {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssc-utility a {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.ssc-utility a:hover {
	text-decoration: underline;
}

.ssc-masthead {
	align-items: center;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	display: flex;
	gap: var(--wp--preset--spacing--30);
	justify-content: space-between;
	margin-block-start: 0;
	padding: 0.75rem var(--ssc-gutter);
}

/* The Horizontal Logo, white on Navy. Its file holds the clear space, so nothing sits inside it. */
.ssc-brand {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.ssc-brand img {
	display: block;
	height: 3.25rem;
	width: auto;
}

/* Montserrat runs wide, so the menu is set a size down and never wraps inside an item. */
.ssc-masthead .wp-block-navigation {
	flex: 1;
	font-size: 0.875rem;
	font-weight: 500;
	gap: 1.125rem;
}

.ssc-masthead .wp-block-navigation__container {
	gap: 1.125rem;
}

.ssc-masthead .wp-block-navigation-item__content {
	white-space: nowrap;
}

.ssc-masthead .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--aqua);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.4em;
}

/* Desktop dropdowns only. The open mobile menu lists submenus inline instead. */
.ssc-masthead .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: var(--ssc-radius-sm);
	box-shadow: 0 1rem 2rem rgb(2 33 105 / 0.18);
	min-width: 17rem !important;
	overflow: hidden;
	padding-block: 0.5rem;
}

.ssc-masthead .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1.25rem !important;
}

/* The open mobile menu: Navy like the hero, with the Flame behind it at about 8%.
   The Flame is the white SVG under a Navy veil, so it stays put while the menu
   scrolls. The desktop dropdowns keep their own colours. */
.ssc-masthead .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--navy) !important;
	background-image: linear-gradient(rgb(2 33 105 / 0.92), rgb(2 33 105 / 0.92)), url("../images/flame.svg");
	background-position: 0 0, right -5rem bottom -4rem;
	background-repeat: no-repeat;
	background-size: auto, min(26rem, 80vw) auto;
	color: var(--wp--preset--color--white) !important;
	padding: 1.125rem var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	text-align: start;
}

/* The crest heads the menu, where the header's crest sat. */
.ssc-masthead .is-menu-open .wp-block-navigation__responsive-dialog::before {
	background: url("../images/crest.svg") left center / contain no-repeat;
	content: "";
	display: block;
	height: 2.625rem;
	width: 2.25rem;
}

.ssc-masthead .is-menu-open .wp-block-navigation__responsive-container-close {
	align-items: center;
	border-radius: var(--ssc-radius-sm);
	color: var(--wp--preset--color--white);
	display: flex;
	height: 2.75rem;
	justify-content: center;
	right: -0.5rem;
	top: -0.0625rem;
	width: 2.75rem;
}

.ssc-masthead .is-menu-open .wp-block-navigation__responsive-container-close:hover {
	background: rgb(255 255 255 / 0.12);
}

.ssc-masthead .is-menu-open .wp-block-navigation__responsive-container-close svg {
	fill: currentColor;
	height: 1.75rem;
	width: 1.75rem;
}

.ssc-masthead .is-menu-open .wp-block-navigation__responsive-container-content {
	max-width: 36rem;
	padding-top: var(--wp--preset--spacing--30) !important;
	width: 100%;
}

/* The desktop menu is right-justified, and WordPress carries that into the overlay. */
.ssc-masthead .is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container, .wp-block-navigation-item, .wp-block-navigation__submenu-container) {
	align-items: stretch !important;
}

.ssc-masthead .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
}

/* Each section is a large Raleway row over a hairline, with an Aqua chevron that
   turns as the section opens. Single pages carry an Aqua arrow instead. */
.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(.ssc-nav-action) {
	border-block-end: 1px solid rgb(255 255 255 / 0.22);
	width: 100%;
}

.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	align-items: center;
	color: var(--wp--preset--color--white);
	display: flex;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
	gap: 1rem;
	justify-content: space-between;
	padding-block: 1.125rem;
	text-align: start;
	text-decoration: none;
	width: 100%;
}

.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-submenu > .wp-block-navigation-submenu__toggle::after {
	border: solid var(--wp--preset--color--aqua);
	border-width: 0 2px 2px 0;
	content: "";
	flex-shrink: 0;
	height: 0.5rem;
	margin-inline-end: 0.375rem;
	transform: translateY(-0.2rem) rotate(45deg);
	width: 0.5rem;
}

.ssc-masthead .is-menu-open .wp-block-navigation-submenu.is-section-open > .wp-block-navigation-submenu__toggle::after {
	transform: translateY(0.15rem) rotate(-135deg);
}

.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-link:not(.ssc-nav-action) > .wp-block-navigation-item__content::after {
	color: var(--wp--preset--color--aqua);
	content: "\2192";
	content: "\2192" / "";
	font-family: var(--wp--preset--font-family--body);
}

/* Closed sections are hidden from sight and from the keyboard. Without the script
   the overlay can't open, so nothing is ever hidden for good. */
.ssc-js .ssc-masthead .is-menu-open .wp-block-navigation-submenu:not(.is-section-open) > .wp-block-navigation__submenu-container {
	display: none !important;
}

.ssc-masthead .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	color: inherit !important;
	gap: 0;
	padding: 0 0 1rem !important;
}

.ssc-masthead .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-inline-start: 2px solid rgb(255 255 255 / 0.22);
	color: var(--wp--preset--color--white);
	display: block;
	font-size: 1rem;
	padding: 0.625rem 0 0.625rem 1rem;
	white-space: normal;
}

.ssc-masthead .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.ssc-masthead .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	border-inline-start-color: var(--wp--preset--color--aqua);
	color: var(--wp--preset--color--aqua);
	text-decoration: none;
}

.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--aqua);
	text-decoration: none;
}

.ssc-masthead .is-menu-open :focus-visible {
	outline-color: var(--wp--preset--color--aqua);
}

/* The rows ease up one after another as the menu opens. */
@media (prefers-reduced-motion: no-preference) {

	.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		animation: ssc-menu-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) { animation-delay: 0.04s; }
	.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) { animation-delay: 0.08s; }
	.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { animation-delay: 0.12s; }
	.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) { animation-delay: 0.16s; }
	.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(6) { animation-delay: 0.2s; }
	.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(n+7) { animation-delay: 0.24s; }

	.ssc-masthead .is-menu-open .wp-block-navigation-submenu__toggle::after {
		transition: transform 0.25s ease;
	}
}

@keyframes ssc-menu-in {

	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.ssc-masthead__actions {
	flex-shrink: 0;
	flex-wrap: nowrap;
	gap: 0.5rem;
	margin-block: 0;
}

.ssc-masthead__actions .wp-block-button__link {
	letter-spacing: 0.04em;
	padding: 0.625rem 1rem;
	white-space: nowrap;
}

/* Apply Now joins the tour button where the full menu folds away (below 83rem);
   above that it sits in the portal bar, beside the menu's room. */
.ssc-masthead .ssc-masthead__apply {
	display: none;
}

/* Once the page scrolls, the masthead lifts off the page and the logo eases
   smaller. The bar keeps its height, so nothing below it shifts. */
.ssc-masthead {
	transition: box-shadow 0.3s ease;
}

.ssc-brand img {
	transform-origin: left center;
	transition: scale 0.3s ease;
}

header.is-condensed .ssc-masthead {
	box-shadow: 0 0.5rem 1.5rem rgb(2 33 105 / 0.25);
}

header.is-condensed .ssc-brand img {
	scale: 0.86;
}

/* The menu's own Book a College Tour and Apply Now items appear only in the open
   mobile menu, at the top, as buttons. */
.ssc-masthead .wp-block-navigation__responsive-container:not(.is-menu-open) .ssc-nav-action {
	display: none;
}

.ssc-masthead .is-menu-open .wp-block-navigation__container > .ssc-nav-action {
	padding-block: 0.25rem;
}

/* The two main actions, as on the hero: Book a College Tour in solid Aqua,
   Apply Now outlined in white. */
.ssc-masthead .is-menu-open .wp-block-navigation__container > .ssc-nav-action > .wp-block-navigation-item__content {
	border: 1.5px solid var(--wp--preset--color--white);
	border-radius: var(--ssc-radius-sm);
	box-sizing: border-box;
	color: var(--wp--preset--color--white);
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 0.9375rem 1.25rem;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	width: 100%;
}

.ssc-masthead .is-menu-open .wp-block-navigation__container > .ssc-nav-action--main > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--aqua);
	border-color: var(--wp--preset--color--aqua);
	color: var(--wp--preset--color--navy);
}

.ssc-masthead .is-menu-open .wp-block-navigation__container > .ssc-nav-action:not(.ssc-nav-action--main) > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

.ssc-masthead .is-menu-open .wp-block-navigation__container > .ssc-nav-action + .wp-block-navigation-submenu {
	border-block-start: 1px solid rgb(255 255 255 / 0.22);
	margin-block-start: var(--wp--preset--spacing--30);
}

/* With room, the two actions sit side by side. */
@media (min-width: 30rem) {

	.ssc-masthead .is-menu-open .wp-block-navigation__container {
		display: grid !important;
		gap: 0 0.75rem !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ssc-masthead .is-menu-open .wp-block-navigation__container > :not(.ssc-nav-action) {
		grid-column: 1 / -1;
	}
}

/* Hero
   ------------------------------------------------------------------ */

.ssc-hero {
	container-type: inline-size;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: clamp(34rem, 78vh, 44rem);
}

/* The panel is only part of the width, so measure the gutter against the hero itself. */
.ssc-hero__panel {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	justify-content: center;
	overflow: hidden;
	padding-block: var(--wp--preset--spacing--50) calc(var(--wp--preset--spacing--50) + 3rem);
	padding-inline: max(var(--wp--preset--spacing--30), calc((100cqw - 80rem) / 2)) var(--wp--preset--spacing--40);
	position: relative;
}

.ssc-hero__panel > * {
	margin-block: 0;
	position: relative;
}

/* Bold headline, as in the Motto Messaging templates. While the headline is the
   motto, it is set in Montserrat (see .ssc-motto-en). */
.ssc-hero__panel h1 {
	font-size: clamp(2.5rem, 1rem + 3.4vw, 4.5rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.06;
}

/* The guidelines set the English motto, "Forever Excelling", in Montserrat wherever
   it appears, even inside a Raleway heading or key sentence. */
.ssc-motto-en {
	font-family: var(--wp--preset--font-family--body);
}

.ssc-hero__panel h1 .ssc-motto-en {
	letter-spacing: -0.025em;
}

/* The Flame fills the panel and runs off its edges, as in the brand templates. */
.ssc-hero__panel::before {
	aspect-ratio: 0.788;
	height: 128%;
	right: -16%;
	top: -6%;
}

.ssc-hero__panel .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--20);
}

.ssc-hero__media {
	margin: 0;
	min-height: 18rem;
	position: relative;
}

.ssc-hero__media img,
.ssc-hero__media video {
	inset: 0;
	position: absolute;
}

/* A hero video is decorative, so it plays muted with no player controls, only this
   pause button (WCAG 2.2.2), which site.js adds. Navy glass in a White ring, so it
   reads over light and dark frames alike. */
.ssc-video-toggle {
	align-items: center;
	backdrop-filter: blur(6px);
	background: rgb(2 33 105 / 0.6);
	border: 1.5px solid rgb(255 255 255 / 0.75);
	border-radius: 50%;
	bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	display: flex;
	height: 2.75rem;
	justify-content: center;
	padding: 0;
	position: absolute;
	right: var(--wp--preset--spacing--30);
	transition: background-color 0.2s ease;
	width: 2.75rem;
	z-index: 1;
}

.ssc-video-toggle:hover {
	background: var(--wp--preset--color--navy);
}

/* White ring with a Navy edge, visible on any frame of the video. */
.ssc-video-toggle:focus-visible {
	box-shadow: 0 0 0 6px var(--wp--preset--color--navy);
	outline: 3px solid var(--wp--preset--color--white);
	outline-offset: 0;
}

.ssc-video-toggle svg {
	fill: currentColor;
	height: 0.875rem;
	width: 0.875rem;
}

/* Stat cards
   ------------------------------------------------------------------ */

.ssc-stats-band {
	padding-inline: var(--ssc-gutter);
	position: relative;
	z-index: 1;
}

.ssc-stats {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: -3.5rem 0 0;
}

.ssc-stat {
	background: var(--wp--preset--color--white);
	border-radius: var(--ssc-radius);
	box-shadow: var(--ssc-shadow);
	margin-block: 0;
	padding: var(--wp--preset--spacing--30);
}

.ssc-stat:nth-child(even) {
	transform: translateY(1.5rem);
}

.ssc-stat > * {
	margin-block: 0;
}

.ssc-stat__value {
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-2);
	line-height: 1.1;
}

.ssc-stat__label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.1em;
}

/* Alternating image and text
   ------------------------------------------------------------------ */

.ssc-split {
	align-items: center;
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	margin: 0;
	padding: var(--wp--preset--spacing--60) var(--ssc-gutter);
}

.ssc-split--reverse {
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.ssc-split--reverse .ssc-split__media {
	order: 2;
}

.ssc-split__media {
	aspect-ratio: 16 / 10;
	border-radius: var(--ssc-radius);
	margin: 0;
	overflow: hidden;
}

.ssc-split__text {
	margin-block: 0;
}

.ssc-split__text > :first-child {
	margin-block-start: 0;
}

/* Photo cards
   ------------------------------------------------------------------ */

.ssc-cards {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-block-start: var(--wp--preset--spacing--40);
}

.ssc-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--ssc-radius);
	color: var(--wp--preset--color--grey);
	margin-block: 0;
	overflow: hidden;
	position: relative;
}

.ssc-card__media {
	aspect-ratio: 4 / 3;
	margin: 0;
}

.ssc-card__title {
	background: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--heading-4);
	margin-block: 0;
	padding: 0.75rem 1.125rem;
}

.ssc-card__title a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

/* The whole card is the link target, not just the words. */
.ssc-card__title a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.ssc-card__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--aqua);
	text-decoration-thickness: 2px;
}

.ssc-card__text {
	font-size: 1rem;
	margin-block: 0;
	padding: 1rem 1.125rem 1.25rem;
}

/* Quotes
   ------------------------------------------------------------------ */

.ssc-quotes {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ssc-quote {
	margin-block: 0;
}

/* Large opening mark, as in the Image Focus quote template. */
.ssc-quote::before {
	color: var(--ssc-accent);
	content: "\201C";
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4.5rem;
	font-weight: 700;
	line-height: 0.8;
}

.ssc-quote .wp-block-quote {
	border: 0;
	margin: 0;
	padding: 0;
}

.ssc-quote .wp-block-quote p {
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.45;
}

.ssc-quote cite {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
	margin-block-start: var(--wp--preset--spacing--20);
}

/* News
   ------------------------------------------------------------------ */

.ssc-news {
	margin-block-start: var(--wp--preset--spacing--40);
}

.ssc-news .wp-block-post-template {
	gap: var(--wp--preset--spacing--30);
}

.ssc-news .wp-block-post-featured-image {
	border-radius: var(--ssc-radius);
	margin-block-end: 1rem;
	overflow: hidden;
}

.ssc-news .wp-block-post-featured-image img {
	object-position: top;
}

.ssc-news .wp-block-post-date {
	font-size: var(--wp--preset--font-size--small);
	margin-block: 0;
}

.ssc-news .wp-block-post-title {
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
	margin-block: 0.25rem 0.5rem;
}

.ssc-news .wp-block-post-title a {
	text-decoration: none;
}

.ssc-news .wp-block-post-title a:hover {
	text-decoration: underline;
}

.ssc-news .wp-block-post-excerpt {
	font-size: 1rem;
	margin-block: 0;
}

/* Identity feature
   ------------------------------------------------------------------ */

/* The Motto with Flame template: bold Raleway on Navy, the Flame behind it. */
.ssc-identity {
	overflow: hidden;
	position: relative;
	text-align: center;
}

.ssc-identity > * {
	position: relative;
}

.ssc-identity::before {
	aspect-ratio: 0.788;
	height: 150%;
	right: max(-6rem, calc((100% - 80rem) / 2));
	top: -25%;
}

.ssc-identity .wp-block-buttons {
	justify-content: center;
}

.ssc-motto {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.5rem, 1.25rem + 6vw, 6rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.05;
	margin-block: 0 var(--wp--preset--spacing--30);
}

/* Call to action band
   ------------------------------------------------------------------ */

.ssc-cta {
	overflow: hidden;
	position: relative;
	text-align: center;
}

.ssc-cta > * {
	position: relative;
}

/* The Brand with Branch banner: the Branch at the right edge, cropped. */
.ssc-cta::before {
	aspect-ratio: 0.4932;
	height: 135%;
	right: max(1rem, calc((100% - 80rem) / 2));
	top: -18%;
}

.ssc-cta h2 {
	font-weight: 700;
}

.ssc-cta .wp-block-buttons {
	justify-content: center;
	margin-block-start: var(--wp--preset--spacing--30);
}

/* Inner pages
   ------------------------------------------------------------------ */

/* The page hero: Navy, the Flame running off the right edge, a breadcrumb trail
   and a bold Raleway title. Its foot leaves room for the page image, which
   overlaps it. */
:root {
	--ssc-page-overlap: clamp(4rem, 2rem + 7vw, 9rem);
}

.ssc-page-hero {
	overflow: hidden;
	padding: var(--wp--preset--spacing--50) var(--ssc-gutter) calc(var(--wp--preset--spacing--50) + var(--ssc-page-overlap));
	position: relative;
}

.ssc-page-hero > * {
	margin-block: 0;
	position: relative;
}

/* Large and cropped at the top, as the Flame fills the homepage hero; the page
   image covers its foot. */
.ssc-page-hero::before {
	aspect-ratio: 0.788;
	height: 160%;
	right: max(-4rem, calc((100% - 80rem) / 2 - 2rem));
	top: -22%;
}

.ssc-page-hero .wp-block-post-title {
	color: var(--wp--preset--color--white);
	font-size: clamp(2.5rem, 1.4rem + 3.6vw, 5rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.05;
	margin-block-start: var(--wp--preset--spacing--30);
	max-width: 18em;
	text-wrap: balance;
}

/* A page without an image closes the hero at its normal depth. */
.ssc-page-hero:has(+ .ssc-page-media:not(:has(img))) {
	padding-block-end: var(--wp--preset--spacing--50);
}

.ssc-page-media:not(:has(img)) {
	display: none;
}

.ssc-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	gap: 0.25rem 0.625rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssc-breadcrumbs li {
	align-items: center;
	display: flex;
	gap: 0.625rem;
}

.ssc-breadcrumbs li + li::before {
	color: var(--wp--preset--color--aqua);
	content: "/";
	content: "/" / "";
}

.ssc-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.ssc-breadcrumbs a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--aqua);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.ssc-breadcrumbs [aria-current] {
	color: var(--wp--preset--color--aqua);
}

/* The page image: a wide, rounded frame lifted over the hero's foot. Until the
   College supplies photography, every page shows a crest placeholder here. */
/* Scoped to main, so it outranks the rule that zeroes full-width margins. */
main > .ssc-page-media {
	margin-block: calc(-1 * var(--ssc-page-overlap)) 0;
	padding-inline: var(--ssc-gutter);
	position: relative;
	z-index: 1;
}

.ssc-page-media .wp-block-post-featured-image {
	border-radius: var(--ssc-radius);
	box-shadow: 0 2rem 4rem rgb(2 33 105 / 0.22);
	margin: 0;
	overflow: hidden;
}

.ssc-page-media .wp-block-post-featured-image img {
	aspect-ratio: 21 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* The first section breathes after the image instead of butting against it. */
.ssc-page-media ~ .entry-content > .ssc-band:first-child:not(.has-background) {
	padding-block-start: var(--wp--preset--spacing--50);
}

.ssc-page-media ~ .entry-content > .ssc-band.has-background:first-child {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* "On this page": a slim rail at the right edge on wide screens. Each line is a
   section; the one being read grows and turns Navy, and its name appears on
   hover or keyboard focus. Narrower screens leave it out. */
.ssc-rail {
	display: none;
}

.ssc-rail ol {
	backdrop-filter: blur(8px);
	background: rgb(255 255 255 / 0.94);
	border-radius: 999px;
	box-shadow: var(--ssc-shadow);
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	list-style: none;
	margin: 0;
	padding: 0.75rem 0.5rem;
}

.ssc-rail a {
	align-items: center;
	color: var(--wp--preset--color--navy);
	display: flex;
	height: 1.5rem;
	justify-content: center;
	position: relative;
	text-decoration: none;
	width: 1.75rem;
}

.ssc-rail a::after {
	background: var(--wp--preset--color--grey);
	border-radius: 2px;
	content: "";
	height: 2px;
	transition: background 0.25s ease, height 0.25s ease, width 0.25s ease;
	width: 0.75rem;
}

.ssc-rail a:hover::after,
.ssc-rail a[aria-current]::after {
	background: var(--wp--preset--color--navy);
	height: 3px;
	width: 1.375rem;
}

/* The white edge keeps the label distinct when it sits over a Navy band. */
.ssc-rail__label {
	background: var(--wp--preset--color--navy);
	border-radius: var(--ssc-radius-sm);
	box-shadow: 0 0 0 1.5px var(--wp--preset--color--white), var(--ssc-shadow);
	color: var(--wp--preset--color--white);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	opacity: 0;
	padding: 0.375rem 0.75rem;
	pointer-events: none;
	position: absolute;
	right: 100%;
	transition: opacity 0.2s ease, translate 0.2s ease;
	translate: 0.375rem 0;
	white-space: nowrap;
}

/* The label touches its line and takes the pointer while shown, so it stays open
   when the pointer moves onto it (WCAG 1.4.13). */
.ssc-rail a:hover .ssc-rail__label,
.ssc-rail a:focus-visible .ssc-rail__label {
	opacity: 1;
	pointer-events: auto;
	translate: none;
}

/* From 90rem the page margin is wide enough that the rail never covers content. */
@media (min-width: 90rem) {

	.ssc-rail {
		display: block;
		position: fixed;
		right: 1.25rem;
		top: 50%;
		transition: opacity 0.3s ease, visibility 0.3s;
		translate: 0 -50%;
		z-index: 90;
	}

	/* With the script running, the rail waits until the reader is past the hero. */
	.ssc-js .ssc-rail:not(.is-shown) {
		opacity: 0;
		visibility: hidden;
	}
}

/* Bands: each section of a long page is its own full-width block of colour. */
.ssc-band {
	margin-block: 0;
	padding: var(--wp--preset--spacing--60) var(--ssc-gutter);
	position: relative;
}

/* White sections in a row read as one run of page, as on the guideline pages: the
   gap between them is one band's padding, not two, and each heading's hairline
   marks where the next section starts. */
.ssc-band:not(.has-background) + .ssc-band:not(.has-background) {
	padding-block-start: 0;
}

.ssc-band > :first-child {
	margin-block-start: 0;
}

.ssc-band > :last-child {
	margin-block-end: 0;
}

/* Heading over a full-width hairline, the layout of every guideline page. */
.ssc-band h2 {
	border-block-end: 1.5px solid var(--ssc-rule);
	margin-block: 0 var(--wp--preset--spacing--30);
	max-width: 56rem;
	padding-block-end: 1rem;
	scroll-margin-block-start: 7rem;
}

.ssc-band--center h2 {
	border-block-end: 0;
	padding-block-end: 0;
}

.ssc-band h3 {
	font-size: var(--wp--preset--font-size--heading-4);
	margin-block: 0 0.75rem;
}

.ssc-band.has-navy-background-color h3,
.ssc-band.has-muted-navy-background-color h3 {
	color: var(--wp--preset--color--aqua);
}

.ssc-band__grid {
	align-items: start;
	display: grid;
	gap: var(--wp--preset--spacing--50);
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.ssc-band__grid--even {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ssc-band__grid--middle {
	align-items: center;
}

.ssc-band__grid--flip > :first-child {
	order: 2;
}

.ssc-band__grid > * {
	margin-block: 0;
}

/* The heading stays in view while the text beside it scrolls. */
.ssc-band__side {
	align-self: start;
	position: sticky;
	top: 7.5rem;
}

.ssc-band__media {
	aspect-ratio: 1;
	border-radius: var(--ssc-radius);
	margin: 0;
	overflow: hidden;
}

.ssc-band__text > :first-child {
	margin-block-start: 0;
}

.ssc-band__text > :last-child {
	margin-block-end: 0;
}

/* Feature rows: an image beside a band's opening text, alternating sides down
   the page, so no page reads as one wall of words. The longest text gets a
   portrait frame that matches its height. */
.ssc-band__grid--feature {
	gap: var(--wp--preset--spacing--50) clamp(2.5rem, 1rem + 5vw, 6rem);
}

.ssc-band__media--tall {
	aspect-ratio: 4 / 5;
}

.ssc-band__grid--feature .ssc-band__media {
	box-shadow: 0 1.5rem 3rem rgb(2 33 105 / 0.16);
}

/* A White crest placeholder gets the guidelines' hairline round its frame, so on a
   White section it still reads as an image. On Navy it needs none. */
.is-placeholder-light {
	position: relative;
}

.is-placeholder-light::after {
	border: 1.5px solid var(--ssc-hairline-grey);
	border-radius: inherit;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.has-navy-background-color .is-placeholder-light::after {
	content: none;
}

.ssc-band > .ssc-band__grid--feature + *,
.ssc-band > .ssc-band__strip + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Image strips: a wide frame between a heading and the content it introduces. */
.wp-block-image.ssc-band__strip {
	border-radius: var(--ssc-radius);
	box-shadow: 0 1.5rem 3rem rgb(2 33 105 / 0.14);
	margin-block: var(--wp--preset--spacing--40) 0;
	overflow: hidden;
}

.ssc-band > .ssc-band__strip:first-child {
	margin-block-start: 0;
}

.ssc-band__strip img {
	aspect-ratio: 3 / 1;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.ssc-band--center {
	text-align: center;
}

.ssc-band--center > * {
	margin-inline: auto;
	max-width: 56rem;
}

.ssc-band--crest {
	overflow: hidden;
}

.ssc-band--crest::before {
	aspect-ratio: 0.8662;
	bottom: -16%;
	right: -3%;
	width: min(30rem, 60%);
}

.ssc-band--crest > * {
	position: relative;
}

/* Navy sections carry a graphic element behind their message, as every Quote
   Messaging template does. The Flame by default, cropped off the edge and
   alternating sides down the page, mirrored on the left (the guidelines allow
   "any orientation"). The Branch on the faith and heritage pages. Sections with
   the crest watermark keep it. */
.entry-content > .ssc-band.has-navy-background-color:not(.ssc-band--crest) {
	overflow: clip;
}

.entry-content > .ssc-band.has-navy-background-color:not(.ssc-band--crest)::before {
	aspect-ratio: 0.788;
	background: var(--wp--preset--color--white);
	content: "";
	/* Anchored to the top, behind the message, where images and tiles below can't hide it. */
	height: clamp(24rem, 115%, 52rem);
	top: -10%;
	-webkit-mask: url("../images/flame.svg") center / contain no-repeat;
	mask: url("../images/flame.svg") center / contain no-repeat;
	opacity: var(--wp--custom--graphic--on-dark);
	pointer-events: none;
	position: absolute;
	right: -6%;
}

.entry-content > .ssc-band.has-navy-background-color:not(.ssc-band--crest):nth-child(even of .has-navy-background-color)::before {
	left: -6%;
	right: auto;
	scale: -1 1;
}

.entry-content > .ssc-band.has-navy-background-color:not(.ssc-band--crest) > * {
	position: relative;
}

.ssc-band__intro {
	max-width: 52rem;
}

.ssc-band h3.ssc-band__subhead {
	margin-block-start: var(--wp--preset--spacing--40);
}

.ssc-panels.ssc-panels--stack {
	grid-template-columns: minmax(0, 1fr);
	margin-block-start: 0;
}

/* Text treatments that break long copy into pieces without changing the words. */
.ssc-big {
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--heading-3);
	line-height: 1.25;
	margin-block: 0 var(--wp--preset--spacing--30);
}

/* On Navy, the key sentence reads as brand messaging: heavier, with tighter
   leading. It stays in Montserrat, the guidelines' body font, because these are
   full sentences. Raleway is kept for headings and short labels. */
.has-navy-background-color .ssc-big {
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.16;
}

.has-navy-background-color .ssc-big strong {
	font-weight: 700;
}

.ssc-mission {
	border-inline-start: 2px solid var(--ssc-rule);
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--heading-3);
	line-height: 1.25;
	margin-block: 1rem 0;
	padding-inline-start: 1.5rem;
}

/* Zoomed views of the crest, for pages that discuss its parts. */
.ssc-crest-detail {
	aspect-ratio: 1;
	background: var(--wp--preset--color--navy) no-repeat;
	border-radius: var(--ssc-radius);
	margin-block: 0;
}

.has-navy-background-color .ssc-crest-detail {
	background-color: transparent;
	box-shadow: inset 0 0 0 1.5px var(--ssc-outline-on-dark);
}

/* The crest is vector, so the cross stays sharp enlarged. This centres the cross, with the motto ribbon below. */
.ssc-crest-detail--cross {
	background-image: url("../images/crest.svg");
	background-position: 50% -5%;
	background-size: 300%;
}

.ssc-crest-detail--flame {
	background-image: url("../images/flame.svg");
	background-position: center;
	background-size: auto 62%;
}

.ssc-crest-detail--crest {
	background-image: url("../images/crest.svg");
	background-position: center;
	background-size: auto 78%;
}

.ssc-chunks {
	display: grid;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-block: var(--wp--preset--spacing--30) 0;
}

.ssc-chunks--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ssc-chunks > p {
	border-top: 1.5px solid var(--ssc-rule);
	margin: 0;
	padding-block-start: 1rem;
}

/* Panels: rounded tiles like the guideline swatches. Each takes its surface colours from the band. */
.ssc-panels > p,
.ssc-callout,
.ssc-principles li,
.ssc-org,
.ssc-actions li,
.ssc-tiles li {
	--ssc-accent: var(--ssc-panel-accent);
	--ssc-figure: var(--ssc-panel-figure);
	background: var(--ssc-panel);
	border-radius: var(--ssc-radius);
	box-shadow: inset 0 0 0 1.5px var(--ssc-panel-border);
	color: var(--ssc-panel-text);
}

.ssc-panels {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-block: var(--wp--preset--spacing--40) 0;
}

.ssc-panels--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ssc-panels > p {
	margin: 0;
	padding: var(--wp--preset--spacing--30);
}

.ssc-verse {
	list-style: none;
	margin-block: var(--wp--preset--spacing--20) 0;
	padding: 0;
}

.ssc-verse li {
	border-inline-start: 2px solid var(--ssc-rule);
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.35;
	margin: 0;
	padding: 0.5rem 0 0.5rem 1.25rem;
}

.ssc-callout {
	color: var(--ssc-heading);
	margin-block: var(--wp--preset--spacing--30) 0;
	padding: var(--wp--preset--spacing--30);
}

.ssc-band h2.ssc-h-small {
	font-size: var(--wp--preset--font-size--heading-3);
	margin-block-end: 0.75rem;
}

/* The hymn's supplied line breaks hold on desktops and laptops: its size follows
   the width of its column, down to a readable floor where phones wrap instead. */
*:has(> .ssc-hymn) {
	container-type: inline-size;
}

.ssc-hymn {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(0.875rem, 3.6cqi, 1.125rem);
	line-height: 1.6;
	margin-block-end: 0;
}

.ssc-band__closing {
	margin-block: var(--wp--preset--spacing--40) 0;
}

.ssc-band__spaced {
	margin-block-start: var(--wp--preset--spacing--30);
}

.ssc-panels.ssc-panels--tight {
	margin-block-start: 0.75rem;
}

/* Numbered principles. The numbers come from the list itself, so they stay in sync. */
.ssc-principles {
	counter-reset: ssc-principle;
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin-block: var(--wp--preset--spacing--40) 0;
	padding: 0;
}

.ssc-principles li {
	counter-increment: ssc-principle;
	margin: 0;
	padding: var(--wp--preset--spacing--30);
}

.ssc-principles li::before {
	color: var(--ssc-figure);
	content: counter(ssc-principle);
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-2);
	font-weight: 700;
	line-height: 1;
	margin-block-end: 0.75rem;
}

/* Organisation cards, for pages listing many similar items. */
.ssc-orgs {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ssc-org {
	margin-block: 0;
	padding: var(--wp--preset--spacing--30);
}

.ssc-org h3 {
	line-height: 1.2;
	margin-block-end: 0.875rem;
}

.ssc-org p {
	font-size: 1rem;
	margin-block: 0 0.625rem;
}

.ssc-org p:last-child {
	margin-block-end: 0;
}

.ssc-abbr {
	color: var(--ssc-accent);
	white-space: nowrap;
}

.ssc-org--wide {
	grid-column: 1 / -1;
}

.ssc-org h4 {
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.1em;
	margin-block: 0 0.25rem;
	text-transform: uppercase;
}

.ssc-chunks--plain {
	margin-block-start: 0;
}

/* Price and hours lists, where the figure is what people scan for. */
.ssc-fees {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssc-fees li {
	border-bottom: 1.5px solid var(--ssc-rule);
	font-size: 1rem;
	line-height: 1.4;
	margin: 0;
	padding-block: 0.625rem;
}

.ssc-fees li:last-child {
	border-bottom: 0;
}

.ssc-fees strong {
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
}

.ssc-panels--contact > p {
	align-content: center;
	overflow-wrap: anywhere;
}

/* Phone and email links are thumb-sized. */
.ssc-panels--contact a {
	align-items: center;
	display: inline-flex;
	min-height: 2.75rem;
}

.ssc-panels--contact strong {
	color: var(--ssc-accent);
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.12em;
	margin-block-end: 0.25rem;
	text-transform: uppercase;
}

/* Questions and answers, built on the core Details block so they need no JavaScript.
   The panel stays white even on a dark band, so it carries the white-surface colours. */
.wp-block-details.ssc-faq {
	--ssc-heading: var(--wp--preset--color--navy);
	--ssc-accent: var(--wp--preset--color--gold);
	--ssc-mark: var(--wp--preset--color--gold);
	--ssc-figure: var(--wp--preset--color--navy);
	--ssc-rule: var(--ssc-hairline-grey);
	background: var(--wp--preset--color--white);
	border: 1.5px solid var(--ssc-hairline-grey);
	border-radius: var(--ssc-radius);
	color: var(--wp--preset--color--grey);
	margin-block: 0 0.75rem;
}

.has-baby-blue-background-color .wp-block-details.ssc-faq,
.has-navy-background-color .wp-block-details.ssc-faq,
.has-muted-navy-background-color .wp-block-details.ssc-faq {
	border-color: transparent;
}

.wp-block-details.ssc-faq:last-child {
	margin-block-end: 0;
}

.ssc-faq > summary {
	align-items: center;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
	display: flex;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
	gap: var(--wp--preset--spacing--20);
	justify-content: space-between;
	line-height: 1.25;
	list-style: none;
	padding: var(--wp--preset--spacing--30);
}

.ssc-faq > summary::-webkit-details-marker {
	display: none;
}

.ssc-faq > summary::after {
	color: var(--wp--preset--color--navy);
	content: "+";
	flex-shrink: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.75rem;
	font-weight: 500;
	line-height: 1;
}

.ssc-faq[open] > summary::after {
	content: "\2013";
}

.ssc-faq > :not(summary) {
	margin-inline: var(--wp--preset--spacing--30);
}

.ssc-faq[open] {
	padding-block-end: var(--wp--preset--spacing--30);
}

.ssc-faq h3 {
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.1em;
	margin-block: 0 0.75rem;
	text-transform: uppercase;
}

.ssc-faq .ssc-chunks p,
.ssc-faq .ssc-checks li {
	font-size: 1rem;
}

.ssc-faq .ssc-chunks > .wp-block-group {
	border-top: 1.5px solid var(--ssc-rule);
	margin-block: 0;
	padding-block-start: 1rem;
}

.ssc-faq .ssc-chunks p {
	margin-block: 0 0.75rem;
}

/* Checklists, each item marked with a small Flame. */
.ssc-checks {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssc-checks li {
	line-height: 1.45;
	margin: 0 0 0.5rem;
	padding-inline-start: 1.25rem;
	position: relative;
}

.ssc-checks li::before {
	background: var(--ssc-mark);
	content: "";
	height: 0.75rem;
	left: 0;
	-webkit-mask: url("../images/flame.svg") center / contain no-repeat;
	mask: url("../images/flame.svg") center / contain no-repeat;
	position: absolute;
	top: 0.375rem;
	width: 0.625rem;
}

.ssc-band--center .wp-block-buttons {
	justify-content: center;
	margin-block-start: var(--wp--preset--spacing--30);
}

.ssc-checks--two {
	column-gap: var(--wp--preset--spacing--40);
	columns: 2;
}

.ssc-checks--two li {
	break-inside: avoid;
}

/* Next-step cards. The title sits on its own line, so the dash after it is hidden. */
.ssc-actions {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin-block: var(--wp--preset--spacing--20) 0;
	padding: 0;
}

.ssc-actions--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ssc-actions li {
	font-size: 1rem;
	line-height: 1.5;
	margin: 0;
	overflow-wrap: anywhere;
	padding: var(--wp--preset--spacing--30);
}

.ssc-actions a {
	color: inherit;
}

.ssc-actions li > a:first-child,
.ssc-actions li > strong:first-child {
	color: var(--ssc-heading);
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
	line-height: 1.2;
	margin-block-end: 0.5rem;
}

.ssc-actions li > a:first-child {
	text-decoration: none;
}

.ssc-actions li > a:first-child:hover {
	text-decoration: underline;
}

.ssc-dash {
	display: none;
}

.ssc-band h3.ssc-actions-title {
	font-size: var(--wp--preset--font-size--heading-3);
}

.ssc-orgs--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ssc-org p.ssc-org__lead {
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--heading-4);
	line-height: 1.25;
	margin-block-end: 1rem;
}

.ssc-org .ssc-checks li {
	font-size: 1rem;
}

/* One figure made large in a card or tile. It sits on its own line, so the dash before it is hidden. */
.ssc-bignums .ssc-dash {
	display: none;
}

.ssc-bignums strong {
	color: var(--ssc-figure);
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-1);
	font-weight: 700;
	line-height: 1.1;
	margin-block: 0.25rem;
}

/* Publication covers. The ratio is A4, so a real front page fits without cropping. */
.ssc-covers {
	display: grid;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 17rem));
	justify-content: center;
	margin-block: var(--wp--preset--spacing--40) 0;
}

.ssc-band > .ssc-covers:first-child {
	margin-block-start: 0;
}

.ssc-covers--feature {
	grid-template-columns: minmax(0, 22rem);
	margin-block: 0;
}

.ssc-covers .wp-block-image {
	margin: 0;
}

/* Covers keep square corners: they are printed documents, not interface tiles. */
.ssc-covers img {
	aspect-ratio: 1 / 1.414;
	box-shadow: 0 1.25rem 2.5rem rgb(2 33 105 / 0.24);
	display: block;
	height: auto;
	object-fit: cover;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	width: 100%;
}

.ssc-covers a:hover img,
.ssc-covers a:focus-visible img {
	box-shadow: 0 1.75rem 3.25rem rgb(2 33 105 / 0.34);
	transform: translateY(-0.375rem);
}

.ssc-covers .wp-element-caption {
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
	line-height: 1.25;
	margin-block: 1.25rem 0;
	text-align: center;
}

/* Table with a heading row. The last column holds the price. */
.ssc-table {
	margin-block: var(--wp--preset--spacing--30) 0;
}

.ssc-table table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

.ssc-table.wp-block-table thead {
	background: var(--wp--preset--color--navy);
	border: 0;
}

.ssc-table.wp-block-table th {
	border: 0;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.1em;
	padding: 1rem 1.5rem;
	text-align: left;
	text-transform: uppercase;
}

.ssc-table.wp-block-table th:first-child {
	border-start-start-radius: var(--ssc-radius-sm);
}

.ssc-table.wp-block-table th:last-child {
	border-start-end-radius: var(--ssc-radius-sm);
}

.ssc-table.wp-block-table td {
	border: 0;
	border-bottom: 1.5px solid var(--ssc-rule);
	line-height: 1.4;
	padding: 1.25rem 1.5rem;
	vertical-align: middle;
}

.ssc-table th:last-child,
.ssc-table td:last-child {
	text-align: right;
}

.ssc-table td:last-child {
	color: var(--ssc-figure);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-3);
	white-space: nowrap;
}

.ssc-table strong {
	color: var(--ssc-heading);
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
	margin-block-end: 0.25rem;
}

.ssc-table strong + br {
	display: none;
}

/* Outside services, such as a map. */
.ssc-embed {
	border: 1.5px solid var(--ssc-rule);
	border-radius: var(--ssc-radius);
	margin-block: var(--wp--preset--spacing--30) 0;
	overflow: hidden;
}

.ssc-embed iframe {
	background: var(--wp--preset--color--white);
	border: 0;
	display: block;
	height: min(56rem, 85vh);
	width: 100%;
}

/* On a phone the map leaves room above and below, so scrolling the page never gets stuck in it. */
@media (max-width: 36rem) {

	.ssc-embed iframe {
		height: 60vh;
	}
}

.ssc-figure {
	align-items: center;
	background: var(--wp--preset--color--navy);
	border-radius: var(--ssc-radius);
	color: var(--wp--preset--color--white);
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	margin-block: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--40);
}

.has-navy-background-color .ssc-figure {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--ssc-outline-on-dark);
}

.ssc-figure p {
	margin: 0;
}

.ssc-figure .ssc-figure__value {
	color: var(--wp--preset--color--aqua);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-2);
	font-weight: 700;
	line-height: 1.05;
}

.ssc-tiles {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin-block: var(--wp--preset--spacing--30);
	padding: 0;
}

.ssc-tiles--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ssc-tiles li {
	font-size: 1rem;
	line-height: 1.4;
	margin: 0;
	padding: 1rem 1.125rem;
}

.ssc-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	padding: 0;
}

.ssc-pills li {
	border: 1.5px solid var(--ssc-rule);
	border-radius: var(--ssc-radius-sm);
	color: var(--ssc-heading);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	margin: 0;
	padding: 0.5rem 1rem;
}

/* Sentences that end in a list. The opening words lead in, and the items become
   chips, tiles, key words or a path. Commas and the joining "and" stay in the
   markup inside .ssc-sep, so the words never change, only how they are shown. */
.ssc-sep {
	display: none;
}

.ssc-lead-in {
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--heading-4);
	line-height: 1.35;
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--20);
	max-width: 64rem;
}

.ssc-lead-in--flush {
	margin-block: 0;
}

/* Inside a column or an accordion answer, where the full gap is too much. */
.ssc-lead-in--tight {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* A row of split sentences under a feature row needs the same air as a lead-in. */
.ssc-band .ssc-band__spaced-lg {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Boxes never touch. Anything boxed that follows an image row or a wide strip
   keeps a clear gap, whatever spacing its own layout sets. */
.ssc-band .ssc-band__grid + :is(.ssc-panels, .ssc-orgs, .ssc-tiles, .ssc-actions, .ssc-principles, .ssc-cards, .ssc-callout, .wp-block-details, .ssc-figure, .ssc-table, .ssc-embed, .ssc-covers, .ssc-linklist, .ssc-subpages) {
	margin-block-start: var(--wp--preset--spacing--40);
}

.ssc-band .ssc-band__strip + :is(.ssc-panels, .ssc-orgs, .ssc-tiles, .ssc-actions, .ssc-principles, .ssc-cards, .ssc-callout, .wp-block-details, .ssc-figure, .ssc-table, .ssc-embed, .ssc-covers, .ssc-linklist, .ssc-subpages) {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* The rest of a sentence after its list. */
.ssc-lead-in--after {
	margin-block-start: var(--wp--preset--spacing--30);
}

.ssc-lead-in + .ssc-pills {
	margin-block-start: 0;
}

/* Tiles marked with the Flame, for short items such as subjects or activities.
   The columns fit the number of items. Two classes, so this beats the general
   tile rules further down. */
.ssc-tiles.ssc-tiles--marks {
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	margin-block: 0;
}

.ssc-tiles--marks li {
	display: flex;
	flex-direction: column;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 600;
	gap: var(--wp--preset--spacing--30);
	justify-content: space-between;
	line-height: 1.25;
	min-height: 9rem;
	padding: 1.25rem 1.25rem 1.375rem;
}

.ssc-tiles--marks li::before {
	background: var(--ssc-mark);
	content: "";
	flex: none;
	height: 1.75rem;
	-webkit-mask: url("../images/flame.svg") center / contain no-repeat;
	mask: url("../images/flame.svg") center / contain no-repeat;
	width: 1.375rem;
}

/* Key words run across one line, with a small Flame between them. Each Flame sits
   before its word, and the list is clipped at its left edge, so when the words
   wrap on a narrow screen no line starts or ends with a stray Flame. */
.ssc-keywords {
	--ssc-keyword-gap: 1.25em;
	clip-path: inset(-0.5em -0.5em -0.5em var(--ssc-keyword-gap));
	color: var(--ssc-heading);
	display: flex;
	flex-wrap: wrap;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	list-style: none;
	margin: 0 0 0 calc(-1 * var(--ssc-keyword-gap));
	padding: 0;
	row-gap: 0.2em;
}

.ssc-keywords li {
	margin: 0;
	padding-inline-start: var(--ssc-keyword-gap);
	position: relative;
}

.ssc-keywords li::before {
	background: var(--ssc-mark);
	content: "";
	height: 0.5em;
	left: calc((var(--ssc-keyword-gap) - 0.4em) / 2);
	-webkit-mask: url("../images/flame.svg") center / contain no-repeat;
	mask: url("../images/flame.svg") center / contain no-repeat;
	position: absolute;
	top: 0.35em;
	width: 0.4em;
}

/* A path for items that follow one another, such as the stages of schooling. */
.ssc-path {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	list-style: none;
	margin: var(--wp--preset--spacing--20) 0 0;
	padding: 0;
}

.ssc-path li {
	border-top: 2px solid var(--ssc-rule);
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	padding: 1.5rem var(--wp--preset--spacing--30) 0 0;
	position: relative;
}

.ssc-path li::before {
	background: var(--ssc-mark);
	border-radius: 50%;
	content: "";
	height: 0.875rem;
	left: 0;
	position: absolute;
	top: calc(-0.4375rem - 1px);
	width: 0.875rem;
}

/* An arrowhead closes the path. */
.ssc-path li:last-child::after {
	border: solid var(--ssc-rule);
	border-width: 2px 2px 0 0;
	content: "";
	height: 0.625rem;
	position: absolute;
	right: 1px;
	top: calc(-0.3125rem - 2px);
	transform: rotate(45deg);
	width: 0.625rem;
}

/* A closing statement, set larger than the hairline-bar statement it extends. */
.ssc-statement--large {
	font-size: var(--wp--preset--font-size--heading-3);
	line-height: 1.3;
	margin-block: var(--wp--preset--spacing--50) 0;
}

.ssc-statement .ssc-motto-en {
	font-weight: 700;
}

/* A pull quote from a first-person message: smaller and in italic, under a large
   opening mark in the accent colour. The mark is decoration, so it isn't read out. */
.ssc-statement.ssc-statement--quote {
	border-inline-start: 0;
	font-size: var(--wp--preset--font-size--lead);
	font-style: italic;
	line-height: 1.55;
	max-width: 46rem;
	padding-inline-start: 0;
}

.ssc-statement--quote::before {
	color: var(--ssc-mark);
	content: "\201C";
	content: "\201C" / "";
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4.5rem;
	font-style: normal;
	font-weight: 700;
	height: 2.25rem;
	line-height: 1;
}

/* A date or figure that leads its sentence, with the words before it set small. */
.ssc-figure__lead {
	color: var(--wp--preset--color--white);
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.14em;
	margin-block-end: 0.5rem;
	text-transform: uppercase;
}

@media (max-width: 36rem) {

	.ssc-tiles.ssc-tiles--marks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ssc-tiles--marks li {
		min-height: 7.5rem;
	}

	/* The path turns to run down the page. */
	.ssc-path {
		grid-auto-flow: row;
	}

	.ssc-path li {
		border-inline-start: 2px solid var(--ssc-rule);
		border-top: 0;
		padding: 0 0 1.5rem 1.5rem;
	}

	.ssc-path li::before {
		left: calc(-0.4375rem - 1px);
		top: 0.3rem;
	}

	.ssc-path li:last-child::after {
		bottom: 2px;
		left: calc(-0.3125rem - 2px);
		right: auto;
		top: auto;
		transform: rotate(135deg);
	}
}

.ssc-subpages,
.ssc-linklist {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssc-subpages li,
.ssc-linklist li {
	margin: 0;
}

.ssc-subpages a,
.ssc-linklist a,
.ssc-linklist__plain {
	align-items: center;
	background: var(--wp--preset--color--navy);
	border-radius: var(--ssc-radius);
	box-sizing: border-box;
	color: var(--wp--preset--color--white);
	display: flex;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 600;
	gap: 1rem;
	height: 100%;
	justify-content: space-between;
	line-height: 1.2;
	padding: 1.375rem 1.5rem;
	text-decoration: none;
	transition: background 0.25s ease, box-shadow 0.25s ease, translate 0.25s ease;
}

/* An item in a card list that isn't a link is an outline, so it never looks clickable. */
.ssc-linklist__plain {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--ssc-rule);
	color: inherit;
	font-weight: 500;
}

/* An Aqua arrow marks each card as a way onward, and slides on hover. */
.ssc-subpages a::after,
.ssc-linklist a::after {
	color: var(--wp--preset--color--aqua);
	content: "\2192";
	content: "\2192" / "";
	flex-shrink: 0;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	transition: translate 0.25s ease;
}

/* On a Navy band the cards become outlines, so they don't need a second dark colour. */
.has-navy-background-color :is(.ssc-subpages a, .ssc-linklist a, .ssc-linklist__plain) {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--ssc-outline-on-dark);
}

/* A card that leaves the site points up and out. */
:is(.ssc-subpages, .ssc-linklist) a:is([href*="enrol.stspyridon.nsw.edu.au"], [href*="sentral.school"], [href*="portal.stspyridon.nsw.edu.au"], [href*="stspyridoncareers.com"], [href*="sscuniform.com.au"], [href*="forms.office.com"], [href*="forms.microsoft"], [href*="forms.cloud.microsoft"], [href*="rollcall.com.au"])::after {
	content: "\2197";
	content: "\2197" / "";
}

/* Hover and keyboard focus both lift the card and draw an Aqua edge. */
.ssc-subpages a:hover,
.ssc-linklist a:hover,
.ssc-subpages a:focus-visible,
.ssc-linklist a:focus-visible {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--aqua), 0 1rem 2rem rgb(2 33 105 / 0.22);
	translate: 0 -3px;
}

.ssc-subpages a:hover::after,
.ssc-linklist a:hover::after,
.ssc-subpages a:focus-visible::after,
.ssc-linklist a:focus-visible::after {
	translate: 0.375rem 0;
}

/* Next steps: the band that closes every inner page. Where-next cards first,
   then the three enrolment actions. */
.ssc-next .ssc-subpages + .ssc-next__actions {
	margin-block-start: var(--wp--preset--spacing--40);
}

.ssc-next__actions {
	gap: 0.75rem;
}

/* The page hero's main action, under the title. */
.ssc-page-hero .ssc-page-hero__actions {
	margin-block-start: var(--wp--preset--spacing--30);
}

/* "Page not found" and other short heroes have no page image to make room for. */
.ssc-page-hero.ssc-page-hero--short {
	padding-block-end: var(--wp--preset--spacing--50);
}

.ssc-search {
	margin-block: var(--wp--preset--spacing--30);
	max-width: 36rem;
}

.ssc-recovery {
	margin-block-start: var(--wp--preset--spacing--40);
}

.ssc-signature {
	border-top: 1.5px solid var(--ssc-rule);
	display: inline-block;
	margin-block-start: var(--wp--preset--spacing--30);
	padding-block-start: 1rem;
}

.ssc-signature p {
	margin-block: 0;
}

.ssc-signature .ssc-signature__name {
	color: var(--ssc-heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 600;
}

/* Footer
   ------------------------------------------------------------------ */

/* Navy, set off by a hairline from any Navy band above it. */
.ssc-footer {
	background: var(--wp--preset--color--navy);
	border-block-start: 1px solid rgb(255 255 255 / 0.14);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	padding: var(--wp--preset--spacing--50) var(--ssc-gutter) var(--wp--preset--spacing--30);
}

.ssc-footer__inner {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	/* The Senior Campus column is a little wider, so its email address fits on one line. */
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
}

/* The Horizontal Logo with Motto, white on Navy. */
.ssc-footer__brand img {
	display: block;
	height: auto;
	max-width: 100%;
	width: 17rem;
}

.ssc-footer h2 {
	color: var(--wp--preset--color--aqua);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.14em;
	margin-block: 0 0.75rem;
	text-transform: uppercase;
}

.ssc-footer address {
	font-style: normal;
}

.ssc-footer p {
	margin-block: 0 0.5rem;
}

.ssc-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssc-footer li {
	margin-block-end: 0.375rem;
}

.ssc-footer a {
	color: inherit;
	overflow-wrap: anywhere;
}

/* Social channels: White icons in hairline circles that fill Aqua on hover, under
   the logo in the footer and at the foot of the open mobile menu. Never in the
   desktop menu bar, which keeps to the College's own pages and tasks. */
.ssc-footer .ssc-social {
	margin-block-start: var(--wp--preset--spacing--30);
}

.ssc-footer .ssc-social ul,
.ssc-masthead .is-menu-open .ssc-nav-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssc-footer .ssc-social li,
.ssc-masthead .ssc-nav-social .wp-social-link {
	background: none;
	color: var(--wp--preset--color--white);
	margin: 0;
	padding: 0;
}

.ssc-footer .ssc-social a,
.ssc-masthead .ssc-nav-social .wp-social-link a {
	align-items: center;
	border: 1.5px solid rgb(255 255 255 / 0.45);
	border-radius: 50%;
	box-sizing: border-box;
	color: var(--wp--preset--color--white);
	display: flex;
	height: 2.75rem;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	width: 2.75rem;
}

.ssc-footer .ssc-social a:hover,
.ssc-masthead .ssc-nav-social .wp-social-link a:hover {
	background: var(--wp--preset--color--aqua);
	border-color: var(--wp--preset--color--aqua);
	color: var(--wp--preset--color--navy);
}

.ssc-footer .ssc-social svg,
.ssc-masthead .ssc-nav-social .wp-social-link svg {
	fill: currentColor;
	height: 1.25rem;
	width: 1.25rem;
}

.ssc-masthead .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item:has(> .ssc-nav-social) {
	display: none;
}

.ssc-masthead .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:has(> .ssc-nav-social) {
	border-block-end: 0;
	padding-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
}

.ssc-footer__legal {
	border-top: 1px solid rgb(255 255 255 / 0.22);
	margin-block-start: var(--wp--preset--spacing--40);
	padding-block-start: var(--wp--preset--spacing--20);
}

/* Motion
   ------------------------------------------------------------------ */

/* Every movement on the site lives here, behind one check: visitors who have
   asked their device for reduced motion get a still, fully readable page.
   Screen only, so a printed page never carries a section still waiting to fade in. */
@media screen and (prefers-reduced-motion: no-preference) {

	/* Heroes rise into place as the page opens. */
	.ssc-page-hero > *,
	.ssc-hero__panel > * {
		animation: ssc-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.ssc-page-hero > :nth-child(2),
	.ssc-hero__panel > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.ssc-hero__panel > :nth-child(3) {
		animation-delay: 0.16s;
	}

	/* The lead image only slides: it is never transparent, so the browser counts
	   it as painted at once (Largest Contentful Paint). */
	.ssc-page-media .wp-block-post-featured-image,
	.ssc-hero__media {
		animation: ssc-lift 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	@keyframes ssc-rise {

		from {
			opacity: 0;
			translate: 0 1.5rem;
		}
	}

	@keyframes ssc-lift {

		from {
			translate: 0 1.5rem;
		}
	}

	/* Sections below the fold ease up as they arrive (assets/js/site.js marks them). */
	.ssc-motion .ssc-reveal {
		opacity: 0;
		transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--ssc-delay, 0ms), translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--ssc-delay, 0ms);
		translate: 0 2rem;
	}

	.ssc-motion .ssc-reveal.is-revealed {
		opacity: 1;
		translate: none;
	}

	/* The Flame and Branch drift slowly as the page scrolls, where the browser supports it. */
	@supports (animation-timeline: scroll()) {

		.ssc-hero__panel::before,
		.ssc-page-hero::before {
			animation: ssc-drift linear both;
			animation-range: 0 70vh;
			animation-timeline: scroll(root);
		}

		@keyframes ssc-drift {

			to {
				translate: 0 14%;
			}
		}
	}

	/* Photo cards lift, and their image settles closer. */
	.ssc-card {
		transition: box-shadow 0.3s ease, translate 0.3s ease;
	}

	.ssc-card:hover {
		box-shadow: 0 1.25rem 2.5rem rgb(2 33 105 / 0.18);
		translate: 0 -4px;
	}

	.ssc-card__media img {
		transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.ssc-card:hover .ssc-card__media img {
		scale: 1.04;
	}

	.wp-element-button {
		transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	}
}

/* Responsive
   ------------------------------------------------------------------ */

/* The full menu, logo and tour button need 83rem, so show the menu button below it. */
@media (max-width: 83rem) {

	.ssc-masthead .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	.ssc-masthead .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.ssc-masthead .wp-block-navigation {
		flex: 0 0 auto;
		order: 3;
	}

	.ssc-masthead__actions {
		margin-inline-start: auto;
	}

	.ssc-masthead .ssc-masthead__apply {
		display: block;
	}
}

/* While a page image is still a crest placeholder, it stays short on wide screens,
   so the page's content starts nearer the top. */
@media (min-width: 62rem) {

	.ssc-page-media .wp-block-post-featured-image.is-placeholder img {
		aspect-ratio: 3 / 1;
	}
}

@media (max-width: 62rem) {

	/* On a phone or tablet, a feature row's text comes before its image. The images
	   are decorative, so reading order is the same either way. */
	.ssc-band__grid.ssc-band__grid--feature > .ssc-band__media {
		order: 2;
	}

	.ssc-band__grid,
	.ssc-band__grid--even,
	.ssc-orgs,
	.ssc-actions,
	.ssc-chunks--three,
	.ssc-panels,
	.ssc-figure {
		grid-template-columns: minmax(0, 1fr);
	}

	.ssc-band__grid--flip > :first-child {
		order: 0;
	}

	.ssc-band__side {
		position: static;
	}

	.ssc-band__media {
		aspect-ratio: 16 / 10;
	}

	.ssc-principles,
	.ssc-tiles,
	.ssc-tiles--three,
	.ssc-linklist,
	.ssc-subpages {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 56rem) {

	.ssc-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.ssc-hero__panel {
		padding-inline: var(--wp--preset--spacing--30);
	}

	.ssc-hero__panel::before {
		height: 115%;
		right: -30%;
	}

	.ssc-stat:nth-child(even) {
		transform: none;
	}

	.ssc-split,
	.ssc-split--reverse,
	.ssc-quotes {
		grid-template-columns: minmax(0, 1fr);
	}

	.ssc-split--reverse .ssc-split__media {
		order: 0;
	}

	.ssc-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ssc-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ssc-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 36rem) {

	/* The crest stands in for the horizontal logo, so Book a College Tour stays in
	   the header on a phone. Apply Now is the first item in the open menu. */
	.ssc-masthead .ssc-masthead__apply,
	.ssc-utility .ssc-utility__optional {
		display: none;
	}

	.ssc-masthead {
		gap: 0.75rem;
	}

	.ssc-masthead__actions .wp-block-button__link {
		font-size: 0.8125rem;
		padding: 0.625rem 0.875rem;
	}

	/* Taller crops, so page images and strips still read on a phone. */
	.ssc-page-media .wp-block-post-featured-image img,
	.ssc-band__strip img {
		aspect-ratio: 16 / 9;
	}

	.ssc-brand img {
		height: 2.625rem;
	}

	/* Scrolls inside the bar on the narrowest phones, rather than widening the page. */
	.ssc-utility__inner {
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ssc-utility ul {
		font-size: clamp(0.75rem, 3.2vw, 0.8125rem);
		gap: 0.625rem;
		white-space: nowrap;
	}

	.ssc-stats {
		gap: 0.5rem;
	}

	.ssc-stat {
		padding: 1rem 0.75rem;
	}

	.ssc-stat__label {
		font-size: 0.75rem;
		letter-spacing: 0.04em;
	}

	.ssc-covers {
		column-gap: 1rem;
		grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	}

	.ssc-covers .wp-block-image {
		justify-self: center;
		max-width: 13rem;
		width: 100%;
	}

	.ssc-covers .wp-element-caption {
		font-size: 1rem;
	}

	.ssc-covers--feature {
		grid-template-columns: minmax(0, 18rem);
	}

	.ssc-covers--feature .wp-block-image {
		max-width: none;
	}

	.ssc-table th,
	.ssc-table td {
		padding-inline: 0.75rem;
	}

	.ssc-checks--two {
		columns: 1;
	}

	.ssc-cards,
	.ssc-chunks,
	.ssc-principles,
	.ssc-linklist,
	.ssc-subpages,
	.ssc-tiles,
	.ssc-tiles--three,
	.ssc-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	::before,
	::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
