/* MGIT Alumni theme. Colours are taken from the MGIT seal and wordmark. */

:root {
	--navy: #23305e;        /* wordmark navy */
	--navy-deep: #141c3d;   /* hero and footer */
	--seal: #ffe11a;        /* seal yellow, used sparingly */
	--bronze: #8a5c16;      /* "Autonomous" gold, darkened for text contrast */
	--ink: #1b2033;
	--muted: #545b70;
	--line: #dde1ea;
	--mist: #f2f4f8;
	--white: #ffffff;

	--font-display: "Cinzel", "Trajan Pro", Georgia, serif;
	--font-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1200px;
	--gutter: 24px;
	--radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bronze); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; color: var(--navy); }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; }
.hero :focus-visible,
.join :focus-visible,
.site-footer :focus-visible { outline-color: var(--seal); }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

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

.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--navy-deep);
	color: var(--white);
	border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

.site-main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 15px; }

.btn--seal { background: var(--seal); color: var(--navy-deep); }
.btn--seal:hover { background: #fff07a; color: var(--navy-deep); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); color: var(--white); }

.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy-deep); }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 20;
	background: var(--white);
	border-top: 4px solid var(--seal);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"brand actions"
		"nav nav";
	align-items: center;
	column-gap: 24px;
}

.brand {
	grid-area: brand;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 84px;
	text-decoration: none;
}
.brand__logo { width: auto; height: 75px; }
.brand__portal {
	padding-left: 14px;
	border-left: 1px solid var(--line);
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--navy);
	white-space: nowrap;
}

/* Desktop: nav and actions sit directly in the header grid. */
.site-nav { display: contents; }

.primary-nav {
	grid-area: nav;
	border-top: 1px solid var(--line);
}
.primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
	margin: 0 0 0 -12px;
	padding: 0;
	list-style: none;
}
.primary-nav li { position: relative; }
.primary-nav a {
	display: block;
	padding: 14px 12px 12px;
	border-bottom: 3px solid transparent;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.primary-nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a { color: var(--navy); border-bottom-color: var(--bronze); }

.primary-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 12px 24px rgba(20, 28, 61, 0.12);
}
.primary-nav .sub-menu a { padding: 8px 16px; border-bottom: 0; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }

.header-actions {
	grid-area: actions;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 18px;
}
.header-actions__link {
	color: var(--navy);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.header-actions__link:hover { text-decoration: underline; }

.nav-toggle {
	display: none;
	width: 48px; height: 48px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px; height: 2px;
	margin: 0 auto;
	background: var(--navy);
	transition: transform 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile and tablet: menu button opens a panel. */
@media (max-width: 960px) {
	.site-header__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}
	.brand { min-height: 76px; }
	.nav-toggle { display: block; flex-shrink: 0; }

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 20px;
		padding: 8px var(--gutter) 24px;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 24px rgba(20, 28, 61, 0.08);
	}
	.site-nav.is-open { display: flex; }

	.primary-nav { border-top: 0; }
	.primary-nav .menu { flex-direction: column; gap: 0; margin: 0; }
	.primary-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
	.primary-nav a:hover { border-bottom-color: var(--line); }
	.primary-nav .current-menu-item > a,
	.primary-nav .current_page_item > a { border-bottom-color: var(--line); color: var(--bronze); }
	.primary-nav .sub-menu {
		display: block;
		position: static;
		padding: 0 0 0 16px;
		border: 0;
		box-shadow: none;
	}
	.primary-nav .sub-menu a { padding: 11px 0; border-bottom: 1px solid var(--line); }

	.header-actions { justify-self: auto; }
}

@media (max-width: 560px) {
	.brand { min-height: 68px; gap: 10px; }
	.brand__logo { height: 52px; }
	.brand__portal { font-size: 14px; padding-left: 10px; }
}

@media (max-width: 359px) {
	.brand__portal { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0 88px; }
.section--mist { background: var(--mist); }

.section__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 600;
	letter-spacing: 0.01em;
}
.section__lead { max-width: 62ch; color: var(--muted); font-size: 18px; margin-bottom: 40px; }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
}
.section__head .section__title { margin: 0; }
.section__more { font-weight: 700; white-space: nowrap; }

.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.6em; font-size: 26px; }
.prose h3 { margin-top: 1.4em; font-size: 21px; }
.prose ul,
.prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--bronze);
	color: var(--muted);
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; display: block; overflow-x: auto; }
.prose th,
.prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--mist); }

.empty {
	padding: 32px;
	background: var(--white);
	border: 1px dashed #c3c9d6;
	border-radius: var(--radius);
	color: var(--muted);
}
.empty p { max-width: 60ch; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	background: var(--navy-deep);
	color: var(--white);
	overflow: hidden;
}
.hero__slides,
.hero__shade {
	position: absolute;
	inset: 0;
}
.hero__slide {
	position: absolute;
	inset: 0;
	background-color: var(--navy-deep);
	background-size: cover;
	background-position: center right;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 1.6s ease, transform 9s linear;
}
.hero__slide.is-active {
	opacity: 1;
	transform: scale(1);
}
.hero__shade {
	background: linear-gradient(100deg, rgba(20, 28, 61, 0.92) 0%, rgba(20, 28, 61, 0.78) 38%, rgba(20, 28, 61, 0.15) 75%, rgba(20, 28, 61, 0) 100%);
}

.hero__body,
.batches { position: relative; z-index: 1; }

/* One load moment: the hero copy settles in once. */
.hero__title,
.hero__text,
.hero__actions { animation: hero-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__text { animation-delay: 0.12s; }
.hero__actions { animation-delay: 0.24s; }

@keyframes hero-in {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

.hero__pause {
	position: absolute;
	right: var(--gutter);
	bottom: 24px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: rgba(20, 28, 61, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	cursor: pointer;
}
.hero__pause:hover { background: rgba(20, 28, 61, 0.85); }
.hero__pause-icon {
	display: block;
	width: 12px;
	height: 14px;
	margin: 0 auto;
	border-left: 4px solid var(--white);
	border-right: 4px solid var(--white);
}
.hero.is-paused .hero__pause-icon {
	width: 0;
	height: 0;
	margin-left: 17px;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 13px solid var(--white);
	border-right: 0;
}

.hero__body { padding-top: 112px; padding-bottom: 104px; }

.hero__title {
	max-width: 15ch;
	margin-bottom: 24px;
	font-family: var(--font-display);
	font-size: clamp(36px, 5.6vw, 68px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: 0.005em;
	color: var(--white);
}

.hero__text {
	max-width: 54ch;
	margin-bottom: 36px;
	color: #d6dbea;
	font-size: 19px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Batch-year strip: the alumni community, one graduating year at a time. */
.batches {
	background: rgba(0, 0, 0, 0.28);
	border-top: 1px solid rgba(255, 225, 26, 0.35);
}
.batches__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 76px;
}
.batches__label {
	flex-shrink: 0;
	margin: 0;
	color: var(--seal);
	font-size: 14px;
	font-weight: 700;
}
.batches__list {
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 22px 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
	-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
	mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.batches__list li {
	flex-shrink: 0;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 500;
	color: #b9c0d6;
}
.batches__list li:first-child { color: var(--white); }
.batches__founded { color: var(--seal) !important; padding-right: 48px; }
.batches__founded span { font-family: var(--font-body); font-size: 14px; font-weight: 600; margin-left: 4px; }

@media (max-width: 640px) {
	.hero__body { padding-top: 64px; padding-bottom: 56px; }
	.hero__text { font-size: 17px; }
	.batches__inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 16px; }
	.batches__list { width: 100%; padding-top: 8px; }
}

/* ---------- Welcome ---------- */
.welcome__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 64px;
	align-items: start;
}
.welcome__text { font-size: 18px; }
.welcome__text p:first-child {
	font-size: 22px;
	line-height: 1.5;
	color: var(--navy);
}

.facts { margin: 32px 0 0; }
.facts div {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }

@media (max-width: 860px) {
	.welcome__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- News ---------- */
.news__list { margin: 0; padding: 0; list-style: none; }
.news__item {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 24px;
	padding: 24px 0;
	border-top: 1px solid var(--line);
}
.news__item:last-child { border-bottom: 1px solid var(--line); }
.news__date { color: var(--bronze); font-size: 15px; font-weight: 700; padding-top: 3px; }
.news__title { margin-bottom: 6px; font-family: var(--font-body); font-size: 21px; font-weight: 700; }
.news__title a { color: var(--navy); text-decoration: none; }
.news__title a:hover { text-decoration: underline; }
.news__excerpt { margin: 0; color: var(--muted); max-width: 70ch; }

@media (max-width: 640px) {
	.news__item { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Moments ---------- */
.section--tight-top { padding-top: 0; }

.admin-note {
	margin: 0 0 20px;
	padding: 10px 14px;
	background: #fff8d1;
	border-left: 3px solid var(--bronze);
	font-size: 14px;
	color: var(--ink);
}

.moments__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 240px 240px;
	gap: 12px;
}
.moments__item {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy-deep);
}
.moments__item:first-child { grid-row: 1 / span 2; }
.moments__item:nth-child(4) { grid-column: 2 / span 2; }
.moments__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}
.moments__item:hover img { transform: scale(1.05); }
.moments__grid.is-temp img { object-position: 70% 50%; }
.moments__item figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 16px 12px;
	background: linear-gradient(transparent, rgba(11, 16, 42, 0.85));
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
}

@media (max-width: 760px) {
	.moments__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 220px 140px 140px;
	}
	.moments__item:first-child { grid-row: auto; grid-column: 1 / -1; }
	.moments__item:nth-child(4) { grid-column: 1 / -1; }
}

/* ---------- Coming to the portal ---------- */
.coming__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 56px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.coming__list li { padding: 20px 0; border-top: 1px solid var(--line); }
.coming__list h3 { margin-bottom: 4px; font-family: var(--font-body); font-size: 18px; font-weight: 700; }
.coming__list p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
	.coming__list { grid-template-columns: 1fr; }
}

/* ---------- Give back ---------- */
.giveback__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.giveback__list li {
	padding-top: 16px;
	border-top: 3px solid var(--navy);
	transition: border-color 0.2s;
}
.giveback__list li:hover { border-top-color: var(--seal); }
.giveback__list h3 { margin-bottom: 6px; font-family: var(--font-body); font-size: 18px; font-weight: 700; }
.giveback__list p { margin: 0; color: var(--muted); font-size: 16px; }
.giveback__contact { margin: 40px 0 0; font-weight: 600; }

@media (max-width: 980px) {
	.giveback__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
	.giveback__list { grid-template-columns: 1fr; }
}

/* ---------- Join ---------- */
.join__panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding: 48px;
	background: var(--navy);
	color: #d6dbea;
	border-radius: 6px;
}
.join__panel p { margin: 0; max-width: 58ch; }
.join__title {
	margin-bottom: 12px;
	font-family: var(--font-display);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 600;
	color: var(--white);
}
.join__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; flex-shrink: 0; }
.join__note { color: var(--seal); font-weight: 700; }

@media (max-width: 860px) {
	.join__panel { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}

/* ---------- Inner pages ---------- */
.page-head {
	padding: 56px 0 40px;
	background: var(--mist);
	border-bottom: 1px solid var(--line);
}
.page-head__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 600;
}
.page-head__meta { margin: 0 0 8px; color: var(--bronze); font-weight: 700; font-size: 15px; }

.entry-image { margin: 0 0 32px; max-width: 900px; }
.entry-image img { border-radius: var(--radius); }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
	text-decoration: none;
	color: var(--navy);
}
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--navy-deep);
	color: #c4cbe0;
	border-top: 4px solid var(--seal);
	font-size: 15px;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.4fr;
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 56px;
}
.site-footer__about { display: flex; gap: 20px; align-items: flex-start; }
.site-footer__seal { width: 73px; height: auto; flex-shrink: 0; padding: 6px; background: var(--white); border-radius: var(--radius); }
.site-footer__name { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--white); }
.site-footer__sub { margin: 0 0 16px; color: var(--seal); font-weight: 600; }
.site-footer__address { font-style: normal; margin-bottom: 12px; }
.site-footer__contact { margin: 0; }

.site-footer__heading {
	margin-bottom: 14px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 700;
	color: var(--white);
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #c4cbe0; }

.site-footer__visit { grid-column: -2 / -1; grid-row: 1; }
.visitors { display: flex; gap: 20px; margin: 0 0 24px; }
.visitors div { min-width: 64px; }
.visitors dt { font-size: 13px; color: #9aa3c0; }
.visitors dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--seal); }
.footer-map { border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.15); background: #26305a; }
.footer-map iframe { display: block; width: 100%; }
.footer-map__link { display: inline-block; margin-top: 8px; font-size: 14px; }

.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social-links__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--white);
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.site-footer a.social-links__btn:hover,
.site-footer a.social-links__btn:focus-visible { background: var(--seal); color: var(--navy-deep); text-decoration: none; transform: translateY(-2px); }
.social-links__btn:hover svg path[fill^="var"] { fill: var(--seal); }
.site-footer a.social-links__btn--whatsapp:hover,
.site-footer a.social-links__btn--whatsapp:focus-visible { background: #25d366; color: #0b2e17; }

.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 14px;
}
.site-footer__bar p { margin: 0; }
.site-footer__credit { color: #9aa3c0; }
.site-footer__credit a { color: var(--seal); font-weight: 600; }

@media (max-width: 1080px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr 1.4fr; }
	.site-footer__about { grid-column: 1 / -1; }
	.site-footer__visit { grid-column: auto; grid-row: auto; }
}
@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about, .site-footer__visit { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Scroll to top ---------- */
.to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 900;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--seal);
	border-radius: 50%;
	background: var(--navy-deep);
	color: var(--seal);
	box-shadow: 0 6px 18px rgba(20, 28, 61, 0.3);
	cursor: pointer;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.2s, transform 0.2s, background 0.15s, color 0.15s;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top[hidden] { display: none; }
.to-top:hover,
.to-top:focus-visible { background: var(--seal); color: var(--navy-deep); }
.to-top:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (max-width: 560px) {
	.to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}
@media print { .to-top { display: none !important; } }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
	.hero__slide { transform: none; }
}

/* ---------- Single entries with sidebar ---------- */
.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	align-items: start;
}
.single-layout__main .prose { max-width: none; }
.single-layout__main .entry-image { max-width: none; }
.single-layout__side {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.side-block {
	padding: 20px 22px;
	background: var(--mist);
	border: 1px solid var(--line);
	border-top: 3px solid var(--navy);
	border-radius: var(--radius);
}
.side-block__title {
	margin: 0 0 12px;
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 700;
	color: var(--navy);
}
.side-block__list { margin: 0; padding: 0; list-style: none; }
.side-block__list li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}
.side-block__list li:first-child { border-top: 0; padding-top: 0; }
.side-block__list a { color: var(--ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.side-block__list a:hover { color: var(--navy); text-decoration: underline; }
.side-block__list span { font-size: 14px; color: var(--muted); }
.side-block__more { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 700; }
.side-block--cta { background: var(--navy); border-color: var(--navy); border-top-color: var(--seal); color: #d6dbea; }
.side-block--cta .side-block__title { color: var(--white); }
.side-block--cta p { margin: 0 0 14px; font-size: 15px; }

@media (max-width: 960px) {
	.single-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Homepage rhythm: sections alternate white and mist automatically ---------- */
.home-flow > .section { background: var(--white); }
.home-flow > .section:nth-child(even) { background: var(--mist); }
.home-flow > .section:nth-child(even) .empty { background: var(--white); }
.home-flow > .section:nth-child(odd) .empty { background: var(--mist); }

/* ---------- FAQ and other pages: expandable questions ---------- */
.prose details,
.entry-content details {
	margin: 0 0 12px;
	border: 1px solid #d9dde8;
	border-radius: var(--radius);
	background: var(--white);
}
.prose details summary,
.entry-content details summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 700;
	color: var(--navy);
	list-style-position: inside;
}
.prose details[open] summary,
.entry-content details[open] summary { border-bottom: 1px solid #e6e9f0; }
.prose details > p,
.entry-content details > p { margin: 12px 18px 16px; }
