/* =========================================================
   KAUST Academy — site-wide styles (Design A "Pathways")
   Ported from design-a-pathways/styles.css: tokens, base, type helpers,
   buttons, badges, header (utility bar, masthead, mega menu, mobile drawer,
   search panel, announcement bar) and footer.

   Left/right are logical (inline-start/end) throughout, so Arabic pages
   mirror on their own; the few things that cannot be logical (gradients,
   arrows, transforms) have a [dir="rtl"] rule next to them.
   Section styles: sections.css. Pages not yet rebuilt: legacy.css.
   ========================================================= */

:root {
	/* Design A token names, fed by theme.json so editors' colours match. */
	--navy: var(--wp--preset--color--primary);
	--navy-900: var(--wp--preset--color--navy-900);
	--navy-700: var(--wp--preset--color--navy-700);
	--blue: var(--wp--preset--color--secondary);
	--blue-50: var(--wp--preset--color--surface-2);
	--orange: var(--wp--preset--color--accent-2);
	--orange-600: #E07F10;
	--orange-50: var(--wp--preset--color--orange-50);
	--orange-ink: var(--wp--preset--color--orange-ink);
	--yellow: var(--wp--preset--color--accent);
	--lime: var(--wp--preset--color--lime);
	--teal: var(--wp--preset--color--teal-light);
	--teal-700: var(--wp--preset--color--teal);
	--teal-50: var(--wp--preset--color--teal-50);
	--stone: var(--wp--preset--color--stone);

	--ink: var(--wp--preset--color--contrast);
	--text: var(--wp--preset--color--text);
	--muted: var(--wp--preset--color--muted);
	--line: var(--wp--preset--color--border);
	--line-2: var(--wp--preset--color--border-2);
	--surface: var(--wp--preset--color--surface);
	--white: #fff;

	--radius-sm: var(--wp--custom--radius--sm);
	--radius: var(--wp--custom--radius--md);
	--radius-lg: var(--wp--custom--radius--lg);
	--shadow-sm: 0 1px 2px rgba(0, 38, 76, .06), 0 1px 3px rgba(0, 38, 76, .06);
	--shadow: var(--wp--preset--shadow--card);
	--shadow-lg: var(--wp--preset--shadow--raised);

	--container: 1240px;
	--gutter: 24px;
	--masthead-h: 80px;
	--font: var(--wp--preset--font-family--body);
	--font-ar: var(--wp--preset--font-family--arabic);
	--chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300264C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
@media (max-width: 640px) {
	:root { --gutter: 16px; --masthead-h: 68px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: calc(var(--masthead-h) + 24px); }
body {
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
}
img { height: auto; max-width: 100%; }
h1, h2, h3, h4, h5, h6, p { margin-block: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { border-radius: 4px; outline: 3px solid var(--orange); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--navy); }
.sr-only { block-size: 1px; border: 0; clip: rect(0 0 0 0); inline-size: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; white-space: nowrap; }

/* WordPress's own skip link, in the design's look. */
.skip-link.screen-reader-text:focus {
	background: var(--navy);
	border-radius: 6px;
	box-shadow: none;
	clip-path: none;
	color: #fff;
	font-weight: 800;
	inset-block-start: 12px;
	inset-inline-start: 16px;
	padding: 10px 16px;
	text-decoration: none;
	z-index: 200;
}

.container { margin-inline: auto; max-inline-size: calc(var(--container) + 2 * var(--gutter)); padding-inline: var(--gutter); width: 100%; }
.ic { block-size: 20px; flex: none; inline-size: 20px; }
[dir="rtl"] .ic-dir { transform: scaleX(-1); }

/* The template parts' wrapper boxes step aside: the masthead sticks to the
   page, and stacked parts get no gaps. */
.wp-site-blocks > * { margin-block-start: 0; }
.site-header { display: contents; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Arabic: IBM Plex Sans Arabic, roomier lines, no letter-spacing. */
:lang(ar) body,
body.lang-ar { line-height: 1.75; }
:lang(ar) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
.lang, [lang="ar"] { font-family: var(--font-ar); }
.lang { font-size: 14px; font-weight: 600; }

/* ---------- Type helpers ---------- */
.eyebrow {
	align-items: center;
	color: var(--blue);
	display: inline-flex;
	font-size: 13px;
	font-weight: 800;
	gap: 10px;
	letter-spacing: .09em;
	margin-block-end: 14px;
	text-transform: uppercase;
}
.eyebrow::before { background: var(--orange); block-size: 3px; border-radius: 2px; content: ""; inline-size: 24px; }
.eyebrow.on-dark { color: var(--yellow); }
.h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.02em; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.6; }
.link-arrow,
p.link-arrow > a { align-items: center; color: var(--navy); display: inline-flex; font-weight: 800; gap: 6px; white-space: nowrap; }
p.link-arrow { display: block; }
.link-arrow .ic { block-size: 18px; inline-size: 18px; transition: transform .2s; }
.link-arrow:hover, p.link-arrow > a:hover { color: var(--blue); text-decoration: none; }
.link-arrow:hover .ic, p.link-arrow > a:hover .ic { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .ic, [dir="rtl"] p.link-arrow > a:hover .ic { transform: scaleX(-1) translateX(3px); }
:lang(ar) :is(.eyebrow, .hero-kicker, .persona-k, .pcard-stage, .stair-n, .event-type, .mega-col-title, .footer-col h2, .fe-k, .partner-pre, .date-block .m, .fact-k) { font-size: 14px; letter-spacing: 0; }

/* ---------- Buttons ----------
   .btn is the design's button (used in PHP-rendered markup); the Button
   block gets the same look from theme.json plus the styles below.
   Block styles: default = orange, Navy, Outline, Light (on dark). */
.btn,
.wp-element-button {
	align-items: center;
	border: 1.5px solid transparent;
	border-radius: var(--radius-sm);
	display: inline-flex;
	font-size: 15px;
	font-weight: 800;
	gap: 8px;
	justify-content: center;
	line-height: 1;
	min-block-size: 46px;
	padding: 0 20px;
	text-decoration: none;
	transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
	white-space: nowrap;
}
.wp-block-button__link { padding-block: 0; }
.btn:hover, .wp-element-button:hover { text-decoration: none; }
.btn .ic, .wp-element-button .ic { block-size: 18px; inline-size: 18px; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-600); color: var(--navy); }
.btn-navy,
.wp-block-button.is-style-navy > .wp-block-button__link { background: var(--navy); color: #fff; }
.btn-navy:hover,
.wp-block-button.is-style-navy > .wp-block-button__link:hover { background: var(--navy-700); color: #fff; }
.btn-outline,
.wp-block-button.is-style-outline > .wp-block-button__link { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.btn-light,
.wp-block-button.is-style-light > .wp-block-button__link { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-light:hover,
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--navy); }
/* Older content: "Gold" buttons now use the primary orange. */
.wp-block-button.is-style-accent > .wp-block-button__link { background: var(--orange); color: var(--navy); }
.btn-lg:not(.wp-block-button), .wp-block-button.btn-lg > .wp-block-button__link { font-size: 16px; min-block-size: 54px; padding-inline: 26px; }
.btn-sm:not(.wp-block-button), .wp-block-button.btn-sm > .wp-block-button__link { font-size: 14px; min-block-size: 38px; padding-inline: 14px; }
.btn-block { inline-size: 100%; }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 800; padding: 4px 0; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Status badges, tags, chips ---------- */
.status {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 12.5px;
	font-weight: 800;
	gap: 7px;
	line-height: 1.3;
	padding: 5px 11px;
	white-space: nowrap;
}
.status::before { background: currentColor; block-size: 7px; border-radius: 50%; content: ""; inline-size: 7px; }
.status-open { background: var(--teal-50); color: var(--teal-700); }
.status-soon { background: var(--orange-50); color: var(--orange-ink); }
.status-closed { background: #EEF1F5; color: var(--muted); }
.tag {
	align-items: center;
	background: var(--surface);
	border-radius: 6px;
	color: var(--text);
	display: inline-flex;
	font-size: 13.5px;
	font-weight: 700;
	gap: 6px;
	padding: 5px 10px;
}
.tag .ic { block-size: 16px; color: var(--muted); inline-size: 16px; }
.chip {
	align-items: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--navy);
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	padding: 6px 12px;
}
.chip:hover { border-color: var(--navy); text-decoration: none; }

/* =========================================================
   Header: utility bar + masthead + mega menu
   ========================================================= */
.utility { background: var(--navy-900); color: rgba(255, 255, 255, .84); font-size: 13.5px; }
.utility .container { align-items: center; block-size: 42px; display: flex; gap: 24px; justify-content: space-between; }
.utility a, .utility button { align-items: center; background: none; border: 0; color: inherit; display: inline-flex; font-weight: 600; gap: 7px; padding: 0; }
.utility a:hover, .utility button:hover { color: #fff; text-decoration: none; }
.utility .ic { block-size: 16px; inline-size: 16px; opacity: .85; }
.utility-left { align-items: center; display: flex; gap: 22px; }
.utility-left .label { color: rgba(255, 255, 255, .62); font-weight: 700; }
.utility-right { align-items: center; display: flex; gap: 24px; margin-inline-start: auto; }

.masthead { background: #fff; border-block-end: 1px solid var(--line); inset-block-start: 0; position: sticky; transition: box-shadow .2s; z-index: 60; }
.admin-bar .masthead { inset-block-start: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .masthead { inset-block-start: 0; } }
.masthead.is-scrolled { box-shadow: 0 6px 18px rgba(0, 38, 76, .08); }
.masthead-inner { align-items: center; block-size: var(--masthead-h); display: flex; gap: 20px; }
.brand { align-items: center; display: flex; flex: none; }
.brand img { block-size: 64px; inline-size: auto; margin-inline-start: -4px; }
.brand-name { color: var(--navy); font-size: 20px; font-weight: 900; }
.primary-nav { align-items: center; block-size: 100%; display: flex; flex: 1; justify-content: center; }
.drawer-head, .drawer-extra { display: none; }
.nav-list { align-items: stretch; block-size: 100%; display: flex; list-style: none; margin: 0; padding: 0; }
.nav-item { align-items: stretch; display: flex; }
.nav-item.has-drop:not(.has-mega) { position: relative; }
.nav-link {
	align-items: center;
	background: none;
	border: 0;
	color: var(--ink);
	display: flex;
	font-size: 15.5px;
	font-weight: 700;
	gap: 4px;
	padding: 0 13px;
	position: relative;
	white-space: nowrap;
}
.nav-link::after {
	background: var(--orange);
	block-size: 3px;
	border-radius: 3px 3px 0 0;
	content: "";
	inset-block-end: -1px;
	inset-inline: 13px;
	position: absolute;
	transform: scaleX(0);
	transition: transform .2s;
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--blue); text-decoration: none; }
.nav-item.open > .nav-link::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link .ic { block-size: 16px; inline-size: 16px; transition: transform .2s; }
.nav-item.open > .nav-link .ic { transform: rotate(180deg); }
.masthead-actions { align-items: center; display: flex; flex: none; gap: 10px; margin-inline-start: auto; }
.icon-btn {
	background: #fff;
	block-size: 46px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--navy);
	display: inline-grid;
	inline-size: 46px;
	padding: 0;
	place-items: center;
}
.icon-btn:hover { border-color: var(--navy); }
.menu-toggle { display: none; }
/* Language switch in the masthead (desktop; the mobile drawer has its own). */
.lang-mast { align-items: center; block-size: 46px; color: var(--navy); display: inline-flex; font-weight: 700; padding-inline: 8px; }
.lang-mast:hover { color: var(--blue); text-decoration: none; }

/* Dropdown panels */
.mega, .drop {
	background: #fff;
	inset-block-start: 100%;
	opacity: 0;
	position: absolute;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	visibility: hidden;
	z-index: 5;
}
.mega { border-block-start: 1px solid var(--line); box-shadow: 0 30px 50px -18px rgba(0, 38, 76, .22); inset-inline: 0; }
.drop {
	border: 1px solid var(--line);
	border-block-start: 3px solid var(--orange);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-lg);
	inset-inline-start: 0;
	min-inline-size: 270px;
	padding: 10px;
}
.drop ul, .mega ul { list-style: none; margin: 0; padding: 0; }
.nav-item.open > .mega, .nav-item.open > .drop { opacity: 1; transform: none; visibility: visible; }
@media (min-width: 1121px) and (hover: hover) {
	.nav-item.has-drop:hover > .mega, .nav-item.has-drop:hover > .drop { opacity: 1; transform: none; visibility: visible; }
	.nav-item.has-drop:hover > .nav-link::after { transform: scaleX(1); }
	.nav-item.has-drop:hover > .nav-link { color: var(--blue); }
}
.drop a { border-radius: 6px; color: var(--ink); display: block; font-size: 15px; font-weight: 600; padding: 9px 12px; }
.drop a:hover, .drop a[aria-current="page"] { background: var(--surface); color: var(--blue); text-decoration: none; }

.mega-inner { display: grid; gap: 36px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)) minmax(0, 1.35fr); padding-block: 32px 36px; }
.mega-col-title {
	align-items: center;
	border-block-end: 1px solid var(--line-2);
	color: var(--muted);
	display: flex;
	font-size: 12.5px;
	font-weight: 800;
	gap: 8px;
	letter-spacing: .08em;
	margin-block-end: 12px;
	padding-block-end: 12px;
	text-transform: uppercase;
}
.mega-col-title .ic { block-size: 18px; color: var(--blue); inline-size: 18px; }
.mega-col-title + ul { margin-block-end: 18px; }
.mega-col a { color: var(--ink); display: block; font-size: 15px; font-weight: 600; line-height: 1.35; padding: 6px 0; }
.mega-col a:hover { color: var(--blue); }
.mega-col a .ic-ext { block-size: 13px; color: var(--muted); inline-size: 13px; margin-inline-start: 4px; vertical-align: -1px; }
.mega-col a.all { align-items: center; color: var(--blue); display: inline-flex; font-weight: 800; gap: 4px; margin-block-start: 6px; }
.mega-col a.all .ic { block-size: 16px; inline-size: 16px; }
.mega-promo {
	background: var(--navy);
	border-radius: var(--radius);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
	isolation: isolate;
	overflow: hidden;
	padding: 24px;
	position: relative;
}
.mega-promo img { block-size: 100%; inline-size: 100%; inset: 0; object-fit: cover; opacity: .45; position: absolute; z-index: -2; }
.mega-promo::before { background: linear-gradient(180deg, rgba(0, 38, 76, .35), rgba(0, 26, 54, .95) 70%); content: ""; inset: 0; position: absolute; z-index: -1; }
.mega-promo .status { align-self: flex-start; }
.mega-promo .mega-promo-title { color: #fff; font-size: 19px; font-weight: 800; line-height: 1.25; margin-block-start: auto; }
.mega-promo p { color: rgba(255, 255, 255, .85); font-size: 14px; }
.mega-promo .btn { align-self: flex-start; margin-block-start: 6px; }

/* Search panel */
.search-panel {
	background: #fff;
	border-block-start: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
	display: none;
	inset-block-start: 100%;
	inset-inline: 0;
	padding-block: 24px;
	position: absolute;
}
.search-panel.open { display: block; }
.search-panel form { align-items: center; display: flex; gap: 10px; }
.search-panel input { block-size: 54px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); flex: 1; font-size: 18px; min-inline-size: 0; padding: 0 18px; }
.search-panel input:focus { border-color: var(--navy); outline: none; }
.search-suggest { align-items: center; display: flex; flex-wrap: wrap; font-size: 14px; gap: 8px; margin-block-start: 14px; }
.search-suggest span { color: var(--muted); font-weight: 700; }

.nav-scrim { background: rgba(0, 20, 40, .5); inset: 0; opacity: 0; position: fixed; transition: opacity .2s, visibility .2s; visibility: hidden; z-index: 70; }

/* Announcement bar */
.notice { background: var(--orange-50); border-block-end: 1px solid #F6DDBF; color: var(--ink); font-size: 14.5px; }
.notice .container { align-items: center; display: flex; gap: 12px; min-block-size: 48px; padding-block: 10px; }
.notice .pulse { background: var(--teal); block-size: 9px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(7, 166, 170, .18); flex: none; inline-size: 9px; }
.notice strong { font-weight: 800; }
.notice a { align-items: center; color: var(--navy); display: inline-flex; font-weight: 800; gap: 4px; margin-inline-start: auto; white-space: nowrap; }
.notice a .ic { block-size: 16px; inline-size: 16px; }

/* ---------- Mobile navigation ---------- */
@media (max-width: 1120px) {
	.menu-toggle { display: inline-grid; }
	.lang-mast { display: none; }
	.utility-left { display: none; }
	.primary-nav {
		align-items: stretch;
		background: #fff;
		block-size: 100dvh;
		box-shadow: var(--shadow-lg);
		flex-direction: column;
		inline-size: min(420px, 100%);
		inset-block: 0;
		inset-inline-end: 0;
		justify-content: flex-start;
		overflow-y: auto;
		position: fixed;
		transform: translateX(100%);
		transition: transform .28s ease, visibility .28s;
		visibility: hidden;
		z-index: 80;
	}
	[dir="rtl"] .primary-nav { transform: translateX(-100%); }
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.nav-open .nav-scrim { opacity: 1; visibility: visible; }
	.drawer-head { align-items: center; border-block-end: 1px solid var(--line); display: flex; justify-content: space-between; padding: 14px 20px; }
	.drawer-head img { block-size: 46px; inline-size: auto; }
	.nav-list { block-size: auto; flex-direction: column; }
	.nav-item { flex-direction: column; }
	.nav-link { block-size: 58px; border-block-end: 1px solid var(--line-2); font-size: 17px; justify-content: space-between; padding: 0 24px; }
	.nav-link::after { display: none; }
	.mega, .drop {
		background: var(--surface);
		border: 0;
		border-radius: 0;
		box-shadow: none;
		display: none;
		min-inline-size: 0;
		opacity: 1;
		padding: 0;
		position: static;
		transform: none;
		visibility: visible;
	}
	.nav-item.open > .mega, .nav-item.open > .drop { display: block; }
	.mega .mega-inner { gap: 0; grid-template-columns: 1fr; padding: 8px 24px 20px; }
	.mega-col-title { border-block-end: 0; margin-block: 12px 4px; padding-block-end: 0; }
	.mega-col-title + ul { margin-block-end: 6px; }
	.mega-promo { display: none; }
	.drop { padding: 8px 12px 14px; }
	.drawer-extra { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 32px; }
	.drawer-extra a { align-items: center; color: var(--ink); display: flex; font-weight: 700; gap: 10px; padding: 10px 0; }
	.drawer-extra .btn { color: var(--navy); justify-content: center; margin-block-start: 12px; }
	.search-panel form { flex-wrap: wrap; }
}
@media (max-width: 640px) {
	.utility { display: none; }
	.brand img { block-size: 50px; }
	.masthead-actions .apply-cta { display: none; }
	.notice .container { flex-wrap: wrap; gap: 4px 10px; }
	.notice .pulse { display: none; }
	.notice a { margin-inline-start: 0; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-main { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); padding-block: 56px; }
.footer-brand img { block-size: 84px; inline-size: auto; margin-inline-start: -6px; }
.footer-brand p { line-height: 1.6; margin-block-start: 18px; max-inline-size: 320px; }
.socials { display: flex; gap: 10px; margin-block-start: 22px; }
.socials a { block-size: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; display: grid; inline-size: 40px; place-items: center; }
.socials a:hover { background: #fff; border-color: #fff; color: var(--navy); }
.socials svg { block-size: 18px; inline-size: 18px; }
.footer-col h2 { color: #fff; font-size: 13px; letter-spacing: .1em; margin-block-end: 14px; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: block; padding: 5px 0; overflow-wrap: anywhere; }
.footer-bottom { align-items: center; border-block-start: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; font-size: 14px; gap: 12px 24px; justify-content: space-between; padding-block: 24px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom .kaust { align-items: center; display: inline-flex; gap: 8px; }
@media (max-width: 1000px) {
	.footer-main { gap: 32px; grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

/* Quote with the speaker's portrait (ka_b_quote_person): the quote text on
   top, then the round photo beside the name. The blockquote's children join
   this grid, so a card look goes on .quote-person (see programs.css, about.css). */
.quote-person { align-items: center; column-gap: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.quote-person > .wp-block-quote { display: contents; }
.quote-person > .wp-block-quote > :not(cite) { grid-column: 1 / -1; order: 1; }
.quote-person > .wp-block-quote > p:last-of-type { margin-block-end: 22px; }
.quote-person > .quote-person__photo { margin: 0; order: 2; }
.quote-person > .wp-block-quote > cite { margin: 0; order: 3; }
.quote-person__photo img { aspect-ratio: 1; block-size: 64px; border-radius: 50%; display: block; inline-size: 64px; object-fit: cover; object-position: 50% 18%; }
.quote-person.is-small { column-gap: 10px; }
.quote-person.is-small > .wp-block-quote > p:last-of-type { margin-block-end: 10px; }
.quote-person.is-small .quote-person__photo img { block-size: 40px; inline-size: 40px; }

/* Reveal on scroll. site.js adds .js to <html> when it runs, so without
   JavaScript (or if the script fails) everything simply stays visible.
   Use .reveal only below the fold (never in the hero or the first panel). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
