/*
Theme Name: TIE Minimal
Theme URI: https://tie.fields.bellville.run/
Author: Hermes
Description: Minimal classic theme for the Tygerberg International Eisteddfod mirror, styled after the eisteddfod redesign: Cormorant Garamond headings, Inter body, cream/forest/gold palette.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tie-minimal
*/

/* ── TOKENS (mirrors the reference design system) ───────────────────────── */
:root {
	--white: #ffffff;
	--cream: #f9f8f3;
	--gold: #dbdba2;
	--gold-deep: #c4b85a;
	--sage: #6cad70;
	--emerald: #26714b;
	--forest: #11503a;
	--forest-deep: #0a3022;
	--ink: #1a1a18;
	--text: #2d2d28;
	--text-dim: #6b6b62;
	--border: rgba(38, 113, 75, 0.12);
	--surface-warm: #f4f2e8;

	--wrap: 1160px;
	--pad: 2rem;
	--nav-h: 64px;
	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
	--shadow-lift: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ── BASE ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	padding-top: var(--nav-h);
	background: var(--cream);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--serif);
	font-weight: 400;
	color: var(--forest);
	line-height: 1.2;
	margin: 0 0 1rem;
}

a { color: var(--emerald); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-deep); }

img, video, iframe { max-width: 100%; }
img { height: auto; }

p { margin: 0 0 1.2rem; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

blockquote {
	margin: 1.5rem 0;
	padding: 1.2rem 1.5rem;
	background: var(--surface-warm);
	border-left: 3px solid var(--gold-deep);
	font-style: italic;
	color: var(--text);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ── HEADER / NAV ───────────────────────────────────────────────────────── */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	height: var(--nav-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0 var(--pad);
	background: rgba(249, 248, 243, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	transition: background .3s ease, box-shadow .3s ease;
}

.site-header.is-scrolled {
	background: rgba(249, 248, 243, 0.97);
	box-shadow: 0 2px 18px rgba(10, 48, 34, 0.06);
}

.site-header .site-branding { display: flex; align-items: baseline; gap: .6rem; }

.site-title {
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--forest);
	text-decoration: none;
	white-space: nowrap;
}

.site-title .accent { color: var(--gold-deep); font-style: italic; }
.site-title:hover { color: var(--forest); }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: .4rem;
	cursor: pointer;
	color: var(--forest);
}

.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px 0;
	background: currentColor;
	transition: transform .3s ease, opacity .3s ease;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	position: relative;
	color: var(--text-dim);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -4px;
	height: 1px;
	background: var(--gold-deep);
	transform: scaleX(0);
	transition: transform .25s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--forest); }

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after { transform: scaleX(1); }

.site-nav .nav-cta > a {
	display: inline-block;
	background: var(--forest);
	color: var(--white);
	padding: .55rem 1.6rem;
	letter-spacing: .08em;
}

.site-nav .nav-cta > a::after { display: none; }
.site-nav .nav-cta > a:hover { background: var(--emerald); color: var(--white); }

/* ── PAGE HERO (interior pages) ─────────────────────────────────────────── */
.page-hero {
	position: relative;
	overflow: hidden;
	padding: 5rem 0 3rem;
	text-align: center;
	background: linear-gradient(175deg, var(--forest-deep), var(--forest));
}

.page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 60% 50% at 50% 80%, rgba(219, 219, 162, .1) 0%, transparent 60%);
}

.page-hero h1 {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0 var(--pad);
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	font-weight: 300;
	color: var(--white);
}

/* ── HERO BAND (front page: the slider row becomes the stage) ───────────── */
.hero-band,
.vc_row.tie-hero-band {
	position: relative;
	overflow: hidden;
	max-width: none !important;
	padding: 4rem 0 3.5rem !important;
	background: linear-gradient(175deg, var(--forest-deep) 0%, var(--forest) 40%, var(--emerald) 100%);
}

.hero-band::before,
.vc_row.tie-hero-band::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 80% 50% at 20% 80%, rgba(219, 219, 162, .15) 0%, transparent 60%),
		radial-gradient(ellipse 60% 40% at 70% 20%, rgba(108, 173, 112, .2) 0%, transparent 50%);
}

.hero-band::after,
.vc_row.tie-hero-band::after {
	content: '';
	position: absolute;
	width: 520px;
	height: 520px;
	top: -60px;
	right: -140px;
	pointer-events: none;
	background: radial-gradient(circle, rgba(219, 219, 162, .22) 0%, rgba(219, 219, 162, 0) 68%);
}

.hero-band .vc_column-inner,
.vc_row.tie-hero-band .vc_column-inner { padding: 0 !important; }

.hero-band .wpb_wrapper,
.vc_row.tie-hero-band .wpb_wrapper {
	position: relative;
	z-index: 2;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--pad);
}

.vc_row.tie-hero-band .metaslider {
	border: 1px solid rgba(219, 219, 162, .28);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	background: var(--forest-deep);
}

.metaslider .flexslider { margin: 0; border: 0; background: transparent; }
.metaslider .flexslider .slides > li { display: none; margin: 0; }

.metaslider .flexslider .slides img {
	display: block;
	width: 100%;
	max-height: min(56vh, 560px);
	object-fit: cover;
}

.metaslider .flex-control-nav {
	position: static !important;
	display: flex;
	justify-content: center;
	gap: .45rem;
	padding: .9rem 0 .2rem;
	margin: 0 !important;
	background: rgba(10, 48, 34, .55);
}

.metaslider .flex-control-nav li,
.metaslider ul.flex-control-paging li { float: none !important; margin: 0 !important; list-style: none; }

.metaslider .flexslider,
.metaslider .flexslider .slides,
.metaslider .flexslider .slides > li { width: 100% !important; }

.metaslider .flex-control-nav a,
.metaslider ul.flex-control-paging a {
	display: block !important;
	width: 8px !important;
	height: 8px !important;
	padding: 0 !important;
	overflow: hidden;
	text-indent: -9999px !important;
	background: rgba(255, 255, 255, .45) !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	transition: background .25s ease, transform .25s ease;
}

.metaslider .flex-control-nav a:hover,
.metaslider ul.flex-control-paging a:hover { background: rgba(255, 255, 255, .7) !important; }

.metaslider .flex-control-nav a.flex-active,
.metaslider ul.flex-control-paging a.flex-active {
	background: var(--gold) !important;
	transform: scale(1.25);
}

/* slider chrome: gold dots under a framed slide.
 * ml-slider renders its own arrow markup and then loads its theme CSS after the
 * theme stylesheet, so the arrows can't be positioned reliably — the reference
 * design has no arrows either, so they are hidden and the dots carry the slider. */
.metaslider .flex-direction-nav { display: none !important; }


/* ── CONTENT LAYOUT (Visual Composer rows) ─────────────────────────────── */
.entry-content { padding-bottom: 1rem; }

/* Visual Composer wraps the rows: .entry-content > .wpb-content-wrapper > .vc_row */
.vc_row {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--pad);
	background: transparent;
}

.wpb-content-wrapper > .vc_row + .vc_row { margin-top: 3.5rem; }

/* full-bleed rows: hero band, or anything holding the slider */
.wpb-content-wrapper > .vc_row.tie-full-bleed,
.wpb-content-wrapper > .vc_row:has(.metaslider) { max-width: none; padding: 0; }

.vc_row .vc_column-inner { padding: 0 !important; }

.vc_empty_space { height: 3.5rem !important; }

/* ── TYPOGRAPHY BLOCKS ──────────────────────────────────────────────────── */
.wpb_heading,
h2.wpb_heading,
.wpb_text_column .wpb_wrapper > h2 {
	max-width: 760px;
	margin: 0 auto 1.2rem;
	font-size: clamp(1.7rem, 3.2vw, 2.6rem);
	font-weight: 300;
	color: var(--forest);
	text-align: center;
}

.wpb_text_column .wpb_wrapper > h2::after,
.wpb_gallery_heading::after,
.wpb_video_heading::after {
	content: '§';
	display: block;
	margin-top: .5rem;
	color: var(--gold-deep);
	font-family: var(--serif);
	font-size: 1.1rem;
	letter-spacing: .3em;
}

.wpb_text_column .wpb_wrapper > h3 { font-size: 1.3rem; color: var(--emerald); text-align: center; }

.wpb_text_column .wpb_wrapper > p {
	max-width: 760px;
	margin: 0 auto 1.2rem;
	color: var(--text-dim);
}

/* ── DISCIPLINE / GALLERY GRID ─────────────────────────────────────────── */
.wpb_gallery > .wpb_wrapper { max-width: var(--wrap); margin: 0 auto; }

.tie-disc-grid,
.wpb_gallery_slidesgrid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1px !important;
	background: var(--border);
	border: 1px solid var(--border);
	margin-top: 2.5rem;
}

.tie-disc-grid > *,
.wpb_gallery_slidesgrid > * {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}

.tie-disc,
.wpb_gallery_slidesgrid > a,
.wpb_gallery_slidesgrid > img {
	position: relative;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: .7rem;
	padding: 1.8rem 1rem 1.6rem;
	background: var(--white);
	text-decoration: none;
	text-align: center;
	transition: transform .35s ease, background .35s ease;
}

.tie-disc:hover,
.wpb_gallery_slidesgrid > a:hover { transform: translateY(-3px); background: var(--surface-warm); }

.tie-disc-num {
	font-family: var(--serif);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .1em;
	color: var(--sage);
}

.tie-disc img,
.wpb_gallery_slidesgrid img {
	width: 104px;
	height: 104px;
	object-fit: cover;
	border-radius: 50%;
	background: var(--surface-warm);
	transition: transform .35s ease;
}

.tie-disc:hover img { transform: scale(1.05); }

.tie-disc-label {
	margin: 0;
	font-family: var(--sans);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--forest);
}

/* ── POST GRID (Visual Composer grid: news cards) ──────────────────────── */
.vc_grid-container-wrapper { margin-top: 3.5rem; }

/* VC nests: .vc_grid-container > .vc_grid.vc_row > .vc_pageable-slide-wrapper > .vc_grid-item.
 * Flatten it so the items are the grid's children. */
.vc_grid-container {
	display: block !important;
	max-width: calc(var(--wrap) - 2 * var(--pad));
	margin-left: auto;
	margin-right: auto;
}

.vc_grid-container .vc_grid.vc_row {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Visual Composer's masonry lays these out with absolute positioning that fights
 * any grid we impose. Present them as a single column of cards instead — the same
 * shape as the reference design's event/link card list. */
.vc_grid-container .vc_pageable-slide-wrapper {
	display: block !important;
	direction: ltr !important;
}

.vc_grid-container .vc_pageable-slide-wrapper > *:not(.vc_grid-item) { display: none !important; }

.vc_grid-item + .vc_grid-item { margin-top: 1.5rem !important; }

.vc_grid-item { align-self: start !important; }

.vc_grid-item {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

/* Visual Composer runs its own grid animation and re-inserts its items, which
 * would leave scroll-reveal elements hidden for good. Never hide them. */
.vc_grid-container .reveal,
.vc_grid-item.reveal { opacity: 1 !important; transform: none !important; }

.vc_grid-item-mini {
	display: flex !important;
	flex-direction: row;
	align-items: stretch;
	height: auto !important;
	min-height: 0 !important;
	border: 1px solid var(--border);
	background: var(--white) !important;
	overflow: hidden;
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

/* image left, copy right — the shape of the reference design's event cards */
.vc_gitem-animated-block { flex: 0 0 300px; }

.vc_gitem-zone-a {
	display: block !important;
	overflow: hidden;
	height: 100% !important;
	min-height: 230px;
}

.vc_gitem-zone-a .vc_gitem-zone-img {
	position: static !important;
	display: block;
	width: 100%;
	height: 100% !important;
	min-height: 230px;
	object-fit: cover;
	left: auto !important;
	top: auto !important;
}

@media (max-width: 760px) {
	.vc_grid-item-mini { flex-direction: column; }
	.vc_gitem-animated-block { flex: 0 0 auto; }
	.vc_gitem-zone-a,
	.vc_gitem-zone-a .vc_gitem-zone-img { height: 220px !important; min-height: 220px; }
}

.vc_grid-item-mini:hover {
	border-color: var(--gold-deep);
	box-shadow: var(--shadow-card);
	transform: translateY(-2px);
}

/* the featured image: let it be a normal block image, not a background, and keep
 * the zone's overlay link on the image only */
.vc_gitem-animated-block,
.vc_gitem-zone-a { position: relative !important; }

.vc_gitem-zone-a {
	display: block !important;
	overflow: hidden;
	height: 240px;
}

.vc_gitem-zone-a .vc_gitem-zone-img {
	position: static !important;
	display: block;
	width: 100%;
	height: 240px !important;
	object-fit: cover;
	left: auto !important;
	top: auto !important;
}

.vc_gitem-zone-a .vc_gitem-link.vc-zone-link {
	position: absolute !important;
	inset: 0 !important;
	z-index: 2;
}

.vc_gitem-zone-c,
.vc_gitem-zone-mini,
.vc_gitem_row,
.vc_gitem-col {
	position: static !important;
	display: block !important;
	width: auto !important;
	float: none !important;
}

.vc_gitem-zone-c { padding: 1.4rem 1.6rem 1.6rem; background: transparent !important; }

/* VC's custom classes paint a grey panel behind the card copy */
.vc_grid-item .vc_gitem-zone-c,
.vc_grid-item .vc_gitem-zone-mini,
.vc_grid-item .vc_gitem_row,
.vc_grid-item [class*="vc_custom_"] { background: transparent !important; }

.vc_grid-item h4 {
	margin: .2rem 0 .5rem;
	font-family: var(--serif) !important;
	font-size: 1.3rem !important;
	font-weight: 600 !important;
	color: var(--forest) !important;
	white-space: normal !important;
}

.vc_grid-item p {
	margin-bottom: .9rem;
	color: var(--text-dim);
	font-size: .85rem;
	line-height: 1.7;
}

/* the card's own "Read more" button renders as a gold link, not a pink pill */
.vc_grid-item .vc_btn3,
.vc_grid-item .vc_gitem-link {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	color: var(--gold-deep) !important;
	font-size: .72rem !important;
	font-weight: 600 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
}

.vc_grid-item .vc_btn3::after,
.vc_grid-item .vc_gitem-link::after { content: ' →'; }
.vc_grid-item .vc_btn3:hover { color: var(--forest) !important; }

.vc_grid-load-more { text-align: center; margin-top: 2rem; }

/* ── BUTTONS (VC button shortcodes restyled) ───────────────────────────── */
.vc_btn3-container { margin: 1.2rem 0; }

.vc_btn3 {
	display: inline-block;
	border: 0;
	border-radius: 0 !important;
	font-family: var(--sans) !important;
	font-weight: 600 !important;
	letter-spacing: .12em !important;
	text-transform: uppercase;
	text-align: center;
	transition: all .25s ease;
}

.vc_btn3.vc_btn3-size-lg { min-width: 11rem; }

.vc_btn3.vc_btn3-size-lg {
	display: inline-block;
	min-width: 11rem;
	padding: .9rem 2.2rem !important;
	font-size: .78rem !important;
}

.vc_btn3.vc_btn3-size-lg .vc_btn3-icon { font-size: .85rem !important; margin-right: .5rem; }

.vc_btn3.vc_btn3-color-primary,
.vc_btn3.vc_btn3-color-primary.vc_btn3-style-modern {
	background: var(--forest) !important;
	color: var(--white) !important;
}

.vc_btn3.vc_btn3-color-primary:hover {
	background: var(--emerald) !important;
	color: var(--white) !important;
}

.vc_btn3.vc_btn3-color-danger,
.vc_btn3.vc_btn3-color-danger.vc_btn3-style-modern {
	background: transparent !important;
	color: var(--forest) !important;
	box-shadow: inset 0 0 0 1px var(--forest);
}

.vc_btn3.vc_btn3-color-danger:hover {
	background: var(--forest) !important;
	color: var(--white) !important;
}

.page-hero .vc_btn3-color-danger,
.tie-hero-band .vc_btn3-color-danger {
	color: var(--white) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

/* ── VIDEO ──────────────────────────────────────────────────────────────── */
.wpb_video_widget { margin-top: 3rem; }
.wpb_video_widget > .wpb_wrapper { max-width: 900px; margin: 0 auto; }

.wpb_video_widget .wpb_video_wrapper,
.wpb_video_widget iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	display: block;
	box-shadow: var(--shadow-card);
}

.wpb_raw_code video {
	display: block;
	margin: 1.5rem auto;
	width: min(420px, 100%);
	height: auto;
	background: var(--forest-deep);
}

/* ── FORMS ──────────────────────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="number"], input[type="password"], input[type="search"], select, textarea {
	width: 100%;
	max-width: 100%;
	padding: .7rem 1rem;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 0;
	font-family: var(--sans);
	font-size: .9rem;
	color: var(--text);
	transition: border-color .25s ease, box-shadow .25s ease;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--gold-deep);
	box-shadow: 0 0 0 3px rgba(196, 184, 90, .18);
}

label {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.frm_button_submit, input[type="submit"], button[type="submit"] {
	display: inline-block;
	padding: .85rem 2rem;
	background: var(--forest);
	color: var(--white);
	border: 0;
	border-radius: 0;
	font-family: var(--sans);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .25s ease;
}

.frm_button_submit:hover, input[type="submit"]:hover { background: var(--emerald); }
.frm_forms .frm_form_field { margin-bottom: 1rem; }

/* ── CONTENT PAGES / POSTS ─────────────────────────────────────────────── */
.site-content { padding: 0 0 4rem; background: var(--white); }
.site-content > .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.content-page .entry-content,
.single-post .entry-content {
	max-width: 820px;
	margin: 0 auto;
	padding: 3.5rem var(--pad) 1rem;
}

.content-page .entry-content > p,
.single-post .entry-content > p,
.content-page .entry-content > ul,
.single-post .entry-content > ul,
.content-page .entry-content > ol,
.single-post .entry-content > ol {
	color: var(--text-dim);
	font-size: .95rem;
	line-height: 1.9;
}

.content-page .entry-content h2,
.single-post .entry-content h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.content-page .entry-content h3,
.single-post .entry-content h3 { margin-top: 2rem; font-size: 1.3rem; color: var(--emerald); }

.post-meta,
.entry-meta {
	color: var(--text-dim);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}

.archive-header {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 3rem var(--pad) 1rem;
	text-align: center;
}

.post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--pad) 4rem;
}

.post-card {
	background: var(--white);
	border: 1px solid var(--border);
	padding: 1.8rem 2rem;
	transition: border-color .3s ease, box-shadow .3s ease;
}

.post-card:hover { border-color: var(--gold-deep); box-shadow: var(--shadow-card); }
.post-card h2 { font-size: 1.25rem; margin-bottom: .5rem; }

/* ── CTA BAND (404 etc.) ──────────────────────────────────────────────── */
.cta-band {
	position: relative;
	overflow: hidden;
	padding: 6rem 0;
	text-align: center;
	background: linear-gradient(175deg, var(--forest-deep), var(--forest));
}

.cta-band::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(219, 219, 162, .1) 0%, transparent 60%);
}

.cta-band h2 {
	position: relative;
	z-index: 1;
	color: var(--white);
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 300;
}

.cta-band p {
	position: relative;
	z-index: 1;
	max-width: 520px;
	margin: 0 auto 2rem;
	color: rgba(255, 255, 255, .65);
}

.btn-gold {
	position: relative;
	z-index: 1;
	display: inline-block;
	padding: 1rem 2.8rem;
	background: var(--gold);
	color: var(--forest-deep);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	transition: all .25s ease;
}

.btn-gold:hover {
	background: var(--white);
	color: var(--forest-deep);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lift);
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
	background: var(--forest-deep);
	border-top: 1px solid rgba(219, 219, 162, .12);
	color: rgba(255, 255, 255, .45);
	padding: 3rem var(--pad);
}

.site-footer > .wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	flex-wrap: wrap;
}

.site-footer,
.site-footer a { font-size: .73rem; font-weight: 500; letter-spacing: .05em; }
.site-footer a { color: rgba(255, 255, 255, .45); }
.site-footer a:hover { color: var(--gold); }
.site-footer .f-brand { color: var(--gold); font-weight: 600; letter-spacing: .08em; }

.site-footer ul {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ── LOGIN PAGE (wp-login.php) ─────────────────────────────────────────── */
body.login {
	padding-top: 0;
	background: var(--cream);
	font-family: var(--sans);
}

body.login div#login h1 a {
	width: auto;
	height: auto;
	padding-bottom: .4rem;
	background-image: none;
	text-indent: 0;
	font-family: var(--serif);
	font-size: 1.8rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--forest);
}

body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: 0;
	box-shadow: var(--shadow-card);
}

body.login label { color: var(--text-dim); font-size: .72rem; letter-spacing: .1em; }

body.login .button-primary,
body.login #wp-submit {
	width: 100%;
	height: auto;
	padding: .8rem 1.4rem;
	background: var(--forest);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	text-shadow: none;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	transition: background .25s ease;
}

body.login .button-primary:hover,
body.login #wp-submit:hover { background: var(--emerald); }

body.login #nav a,
body.login #backtoblog a { color: var(--text-dim); font-size: .75rem; }
body.login #nav a:hover,
body.login #backtoblog a:hover { color: var(--emerald); }

/* ── FRONT PAGE BANDS ─────────────────────────────────────────────────────
 * The front page's rows are Visual Composer rows: give the section holding the
 * discipline grid a white band so the page alternates cream / white / dark the
 * way the reference does.
 */
.front-page .site-main,
.front-page .entry-content { background: transparent; }

.front-page .site-content { background: var(--cream); }

.front-page .entry-content > .vc_row:not(.tie-hero-band),
.front-page .wpb-content-wrapper > .vc_row:not(.tie-hero-band) {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

/* a Visual Composer row with no content at all is dead space (the source page has a
 * couple of them); assets/theme.js marks it and it is removed */
.tie-empty-row { display: none !important; }

.front-page .vc_row:has(.wpb_gallery) {
	max-width: none;
	background: var(--white);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

/* The front page's content sits in Visual Composer columns sized for the old theme.
 * Present it as one readable column: every column full width, in page order. */
.front-page .entry-content .vc_column_container {
	float: none !important;
	width: 100% !important;
	left: auto !important;
	right: auto !important;
}

/* The syllabus/registration row holds the discipline gallery: give it the white band
 * and container padding. (.tie-band-white / .tie-stack-columns come from theme.js;
 * :has() is kept as an extra for browsers that support it.) */
.front-page .vc_row:has(.wpb_gallery),
.front-page .tie-band-white {
	max-width: none;
	background: var(--white);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.front-page .vc_row:has(.wpb_gallery) .vc_column_container,
.front-page .tie-stack-columns .vc_column_container {
	float: none !important;
	width: 100% !important;
	left: auto !important;
	right: auto !important;
}

.front-page .vc_row:has(.wpb_gallery) .wpb_gallery > .wpb_wrapper,
.front-page .vc_row:has(.wpb_gallery) .wpb_video_widget > .wpb_wrapper,
.front-page .vc_row:has(.wpb_gallery) .wpb_text_column > .wpb_wrapper,
.front-page .vc_row:has(.wpb_gallery) .vc_grid-container-wrapper,
.front-page .tie-stack-columns .wpb_gallery > .wpb_wrapper,
.front-page .tie-stack-columns .wpb_video_widget > .wpb_wrapper,
.front-page .tie-stack-columns .wpb_text_column > .wpb_wrapper,
.front-page .tie-stack-columns .vc_grid-container-wrapper {
	max-width: var(--wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--pad);
	padding-right: var(--pad);
}

.front-page .tie-stack-columns .vc_grid-container-wrapper { padding-left: 0; padding-right: 0; }

.front-page .vc_row:has(.wpb_gallery) .vc_grid-container,
.front-page .tie-stack-columns .vc_grid-container {
	max-width: calc(var(--wrap) - 2 * var(--pad));
	margin-left: auto;
	margin-right: auto;
}

/* ── REVEAL ON SCROLL ──────────────────────────────────────────────────── */
.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.tie-disc-grid,
	.wpb_gallery_slidesgrid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 900px) {
	.vc_grid-container { grid-template-columns: 1fr; }
	.post-list { grid-template-columns: 1fr; }

	.nav-toggle { display: block; order: 3; }

	.site-nav {
		position: fixed;
		top: var(--nav-h);
		left: 0; right: 0;
		display: none;
		max-height: calc(100vh - var(--nav-h));
		padding: 1rem 1.5rem 1.5rem;
		overflow-y: auto;
		background: rgba(249, 248, 243, .99);
		border-bottom: 1px solid var(--border);
		box-shadow: 0 18px 40px rgba(10, 48, 34, .08);
	}

	.site-header.nav-open .site-nav { display: block; }

	.site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }

	.site-nav a {
		display: block;
		padding: .7rem .2rem;
		border-bottom: 1px solid var(--border);
	}

	.site-nav .nav-cta > a { margin-top: .8rem; border-bottom: 0; text-align: center; }
}

@media (max-width: 640px) {
	:root { --pad: 1.25rem; }

	.hero-band,
	.vc_row.tie-hero-band { padding: 2.5rem 0 3rem !important; }

	.tie-disc-grid,
	.wpb_gallery_slidesgrid { grid-template-columns: repeat(2, 1fr) !important; }

	.tie-disc,
	.wpb_gallery_slidesgrid > a { padding: 1.3rem .6rem 1.2rem; }

	.tie-disc img,
	.wpb_gallery_slidesgrid img { width: 84px; height: 84px; }

	.page-hero { padding: 3.5rem 0 2.25rem; }

	.vc_empty_space { height: 2rem !important; }

	.vc_btn3.vc_btn3-size-lg { width: 100%; }

	.site-footer > .wrap { flex-direction: column; text-align: center; }
	.site-footer ul { justify-content: center; }

	.entry-content > .vc_row + .vc_row { margin-top: 2.5rem; }
}

/* ── DYNAMIC NAV (wp_nav_menu) ───────────────────────────────────────────────
 * The header prints the menu assigned to the theme's "Primary" location, so these
 * rules style whatever WordPress outputs: the item classes below are the ones
 * wp_nav_menu adds (current-menu-item, menu-item-has-children, …).
 */
.site-nav .nav-menu {
	display: flex;
	align-items: center;
	gap: 1.6rem;
}

.site-nav .menu-item { position: relative; margin: 0; }

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a { color: var(--forest); }

.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after { transform: scaleX(1); }

/* second level: a cream dropdown panel */
.site-nav .sub-menu {
	position: absolute;
	top: calc(100% + .9rem);
	left: -.9rem;
	z-index: 110;
	display: block;
	min-width: 13rem;
	margin: 0;
	padding: .5rem .2rem;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.site-nav .menu-item:hover > .sub-menu,
.site-nav .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.site-nav .sub-menu a { display: block; padding: .45rem .9rem; }
.site-nav .sub-menu a::after { display: none; }

@media (max-width: 900px) {
	.site-nav .sub-menu {
		position: static;
		min-width: 0;
		margin: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav .sub-menu a { padding-left: 1.2rem; }
}
