/*
Theme Name: Southeast Asia Studies Montréal
Theme URI: https://southeastasiastudiesmontreal.ca/
Author: Southeast Asia Studies Montréal
Description: A clean, grid-based theme for the Southeast Asia Studies network in Montréal. Includes Events (with slideshow, speaker, panel and program sections) and People (cards and full bio pages), a homepage you edit from Appearance → Customize, and one-click starter content.
Version: 2.1.8
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sea-montreal
*/

/* ---------- Design tokens (change colours here or in Customize → Colours) ---------- */
:root {
	--accent: #C8102E;
	--ink: #111111;
	--ink-2: #3D3A33;
	--ink-3: #4A4740;
	--ground: #FFFFFF;
	--panel: #F3F2EE;
	--rule: #D6D4CE;
	--bar: #A9A69E;
	--bar-2: #B9B6AE;
	--tile-1: #D9D5CA;
	--tile-2: #E4DED2;
	--tile-3: #CFD3C9;
	--tile-4: #DDD6CC;
	--font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;
	--max: 1240px;
	--gutter: 32px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: #5A574F; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--ink); color: #fff; padding: 10px 16px; margin: 0;
}
.mono { font-family: var(--font-mono); font-size: 12px; }
.eyebrow {
	font-family: var(--font-mono); font-size: 12px; font-weight: 500;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.more-link { font-weight: 700; font-size: 15px; }
.condensed { font-stretch: 75%; }

/* ---------- Utility bar ---------- */
.utility { background: var(--panel); border-bottom: 1px solid var(--rule); }
.utility .wrap {
	min-height: 40px; display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: 8px 24px;
	font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}
.utility-links { display: flex; gap: 20px; align-items: center; }
.utility a { color: var(--ink-3); text-decoration: none; }
.utility a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header .wrap {
	padding-top: 28px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 48px;
}
.wordmark {
	flex: 0 0 auto; text-decoration: none; color: var(--ink);
	font-stretch: 80%; font-weight: 800; font-size: 24px; line-height: 1;
	letter-spacing: 0.01em; text-transform: uppercase;
}
.wordmark:hover { color: var(--ink); }
.wordmark img { max-height: 56px; width: auto; }
.primary-nav { flex: 1 1 520px; }
.primary-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px;
}
.primary-nav li { margin: 0; }
.primary-nav a {
	display: flex; align-items: center; gap: 10px; min-height: 28px;
	text-decoration: none; color: var(--ink);
	font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}
.primary-nav a::before {
	content: ""; width: 18px; height: 6px; background: var(--bar); flex: 0 0 auto;
}
.primary-nav .current-menu-item > a::before,
.primary-nav .current-menu-ancestor > a::before,
.primary-nav .current_page_item > a::before,
.primary-nav .current-page-ancestor > a::before { background: var(--accent); }
.primary-nav .sub-menu { display: none; }

.search-form { flex: 0 1 220px; display: flex; min-width: 180px; }
.search-form input[type="search"] {
	flex: 1 1 auto; min-width: 0; height: 36px; border: 1px solid #8A877F; border-radius: 0;
	padding: 0 12px; font-family: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.search-form button { display: none; }

/* ---------- Big title row ---------- */
.title-row {
	display: flex; align-items: center; gap: 18px;
	font-stretch: 75%; font-weight: 800; font-size: 54px; line-height: 1;
	text-transform: uppercase; letter-spacing: 0.005em; flex-wrap: wrap; row-gap: 8px;
}
.title-row > span:not(.bar) { white-space: nowrap; }
.title-row .bar { flex: 1 1 40px; height: 10px; background: var(--bar-2); }
.title-row .accent { color: var(--accent); }
.home-title { padding-top: 36px; padding-bottom: 20px; }

.page-head { padding-top: 48px; }
.page-head .rule { height: 2px; background: var(--ink); }
.page-head h1 {
	padding: 20px 0 16px; font-stretch: 75%; font-weight: 800; font-size: 54px;
	line-height: 1; text-transform: uppercase;
}
.page-head { padding-bottom: 24px; }
.page-head .lede { margin: 0 0 16px; max-width: 680px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Mosaic ---------- */
.mosaic {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: 160px 160px 240px; gap: 8px;
}
.tile { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; background: var(--tile-1); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .tile-label {
	position: relative; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
	background: #fff; padding: 4px 8px;
}
.tile-1 { grid-column: span 7; grid-row: span 2; }
.tile-intro {
	grid-column: span 5; grid-row: span 2; background: var(--accent); color: #fff;
	padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.tile-intro .eyebrow { color: #fff; }
.tile-intro p { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 500; }
.tile-intro a { color: #fff; font-weight: 700; font-size: 15px; }
.tile-2, .tile-3, .tile-4 { grid-column: span 4; background: var(--tile-2); }
.tile.small-2 { grid-column: span 6; }
.tile.small-1 { grid-column: span 12; }
.tile-2 img { object-position: 55% 30%; }

/* ---------- Section heads ---------- */
.section { padding-top: 64px; }
.section-bar { height: 8px; background: var(--ink); }
.section-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
	gap: 12px; padding: 16px 0 24px;
}
.section-head h2 { font-size: 28px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }

/* ---------- Event cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.event-card {
	border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.event-top { display: flex; align-items: center; gap: 16px; }
.date-block {
	width: 76px; height: 76px; background: var(--ink); color: #fff; flex: 0 0 auto;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.date-block .day { font-size: 32px; font-weight: 800; font-stretch: 75%; line-height: 1; }
.date-block .month { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.event-type {
	font-family: var(--font-mono); font-size: 12px; font-weight: 500;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.event-card h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.event-speaker { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.event-meta { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.event-card .more-link { margin-top: auto; }
.empty-note { color: var(--ink-2); padding: 24px; border: 1px dashed var(--rule); }

/* ---------- Three columns ---------- */
.columns { padding-top: 72px; padding-bottom: 80px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.col h2 { padding: 14px 0 8px; font-size: 22px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
.col ul { list-style: none; margin: 0; padding: 0; }
.col-item {
	display: flex; flex-direction: column; gap: 4px; padding: 14px 0;
	border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.col-item .label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.col-item .text { font-size: 16px; line-height: 1.35; font-weight: 500; }
.col-item .source { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.col-item:hover .text { text-decoration: underline; }
.col .more-link { display: inline-block; margin-top: 14px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--ink); color: #fff; }
.newsletter .wrap {
	padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap;
	justify-content: space-between; align-items: flex-end; gap: 32px;
}
.newsletter-copy { flex: 1 1 420px; max-width: 560px; }
.newsletter h2 { margin-bottom: 12px; font-size: 32px; font-weight: 800; font-stretch: 80%; text-transform: uppercase; }
.newsletter p { margin: 0; font-size: 17px; color: var(--rule); }
.newsletter form { flex: 1 1 380px; max-width: 480px; display: flex; flex-direction: column; gap: 8px; }
.newsletter label {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
	text-transform: uppercase; color: var(--rule);
}
.newsletter .row { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input[type="email"] {
	flex: 1 1 220px; height: 48px; border: 1px solid #8A877F; border-radius: 0; padding: 0 14px;
	font-family: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 48px; padding: 0 24px; border: 0; border-radius: 0; background: var(--accent); color: #fff;
	font-family: inherit; font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
	text-transform: uppercase; cursor: pointer; text-decoration: none;
}
.btn:hover { color: #fff; filter: brightness(0.92); }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); }
.footer-grid {
	padding-top: 56px; padding-bottom: 32px; display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 15px; line-height: 1.5;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-wordmark { font-stretch: 80%; font-weight: 800; font-size: 20px; line-height: 1; text-transform: uppercase; margin-bottom: 4px; }
.footer-address { color: var(--ink-2); white-space: pre-line; }
.footer-ack { margin: 0; color: var(--ink-2); font-size: 14px; }
.footer-bottom {
	padding-top: 16px; padding-bottom: 32px;
	background: linear-gradient(var(--rule), var(--rule)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
	font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}


/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { height: auto; min-height: 48px; font-size: 14px; letter-spacing: 0.06em; padding: 0 22px; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--panel); filter: none; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; }

/* ---------- Events page ---------- */
.flag-label { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.flag-label .flag { width: 12px; height: 12px; background: var(--accent); flex: 0 0 auto; }
.flag-label h2, .flag-label h3 {
	font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.1em;
	text-transform: uppercase; color: var(--accent); line-height: 1.4;
}
.feat { border-top: 8px solid var(--ink); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); background: var(--panel); }
.feat-img { position: relative; min-height: 360px; background: #2B2A1E; overflow: hidden; }
.feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.feat-body { padding: 36px 44px 40px; display: flex; flex-direction: column; gap: 24px; }
.date-block.big { width: 92px; height: 92px; }
.date-block.big .day { font-size: 40px; }
.date-block.big .month { font-size: 12px; }
.feat-who { display: flex; flex-direction: column; gap: 10px; }
.feat-who h3 { font-size: 34px; font-weight: 800; font-stretch: 85%; line-height: 1.12; }
.feat-who h3 a { text-decoration: none; }
.feat-who h3 a:hover { text-decoration: underline; }
.feat-who p { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--ink-2); }
.feat-facts { margin: 0; border-top: 2px solid var(--ink); }
.feat-facts div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.feat-facts dt { flex: 0 0 84px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.feat-facts dd { margin: 0; font-size: 15px; line-height: 1.4; }
.feat-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.soon { padding-top: 56px; }
.sub-head { padding-bottom: 20px; font-size: 22px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
.past { padding-top: 88px; }
.past-card { display: flex; flex-direction: column; border: 1px solid var(--rule); }
.past-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 55% 35%; }
.past-card-img.placeholder { background: var(--tile-1); display: flex; align-items: flex-end; padding: 10px; }
.tile-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); background: #fff; padding: 3px 6px; }
.past-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.past-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.past-card-meta .event-type { font-size: 12px; letter-spacing: 0.06em; }
.past-card h3 { font-size: 19px; line-height: 1.25; font-weight: 700; }
.past-card .event-speaker { font-size: 14px; }
.past-card .more-link { margin-top: auto; padding-top: 6px; font-size: 14px; }
.archive { padding: 56px 0 96px; }
.archive-year { padding-bottom: 48px; }
.archive-year h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 22px; font-weight: 800; font-stretch: 85%; }
.archive-row {
	display: grid; grid-template-columns: 110px 140px minmax(0, 1fr) 150px; gap: 28px; align-items: start;
	padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink);
}
.ar-date, .ar-type { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-3); padding-top: 2px; }
.ar-type { letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.ar-main { display: flex; flex-direction: column; gap: 4px; max-width: 620px; }
.ar-title { font-size: 17px; font-weight: 700; line-height: 1.35; padding-bottom: 6px; }
.ar-speaker { font-size: 15px; font-weight: 600; }
.ar-aff { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.ar-link { font-size: 14px; font-weight: 700; line-height: 1.6; text-decoration: underline; text-align: right; }
.archive-row:hover .ar-title { text-decoration: underline; }

/* ---------- People ---------- */
.people-layout { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.people-filter { flex: 1 1 200px; max-width: 240px; }
.people-filter .eyebrow { display: block; color: var(--accent); padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.filter-btn {
	display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px;
	border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.filter-btn:hover span:first-child { text-decoration: underline; }
.filter-btn .count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.filter-btn[aria-current="true"] { color: var(--accent); font-weight: 700; }
.people-main { flex: 999 1 560px; min-width: 0; }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.person-card { display: flex; flex-direction: column; border: 1px solid var(--rule); background: #fff; }
.person-card[hidden] { display: none; }
.portrait {
	position: relative; display: flex; align-items: flex-end; width: 100%; aspect-ratio: 1 / 1;
	background: var(--tile-1); padding: 10px; overflow: hidden;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .tile-label { position: relative; }
.person-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; flex: 1 1 auto; }
.role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 500; padding-bottom: 2px; }
.person-card h3 { font-size: 18px; font-weight: 800; font-stretch: 85%; line-height: 1.2; margin-bottom: 2px; }
.person-card .position { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 500; }
.person-card .institution { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.bio-btn {
	align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	padding: 0 14px; border: 1.5px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
	text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.person-card-body .position + .bio-btn, .person-card-body .institution + .bio-btn { margin-top: auto; }
.person-card-body > :last-child { margin-top: auto; }
.bio-btn [aria-hidden] { color: var(--accent); font-size: 15px; }
.bio-btn:hover { background: var(--panel); color: var(--ink); }
.people-main > .back-link { margin: -8px 0 12px; }
.profile { border-top: 2px solid var(--ink); padding-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.profile-side { display: flex; flex-direction: column; gap: 20px; }
.profile-photo { background: var(--panel); }
.profile-facts { margin: 0; border-top: 2px solid var(--ink); }
.profile-facts div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.profile-facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.profile-facts dd { margin: 3px 0 0; font-size: 14px; line-height: 1.45; font-weight: 500; }
.profile-main { display: flex; flex-direction: column; gap: 18px; }
.profile-name { display: flex; flex-direction: column; gap: 6px; }
.profile-name h2 { font-size: 40px; font-weight: 800; font-stretch: 85%; line-height: 1.05; }
.profile-title { font-style: italic; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.accent-rule { width: 56px; height: 4px; background: var(--accent); }
.profile-bio { font-size: 16px; line-height: 1.6; }
.profile-bio p { margin: 0 0 18px; }
.profile-bio > :last-child { margin-bottom: 0; }
.profile-list { display: flex; flex-direction: column; margin-top: 6px; }
.profile-list .eyebrow { padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.profile-list-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.pl-title { font-size: 15px; font-style: italic; font-weight: 500; line-height: 1.4; flex: 1 1 320px; }
.pl-note { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.profile-links a { color: var(--accent); font-weight: 700; }

/* ---------- Single event page ---------- */
.event-head { padding-top: 40px; }
.event-head .rule { height: 2px; background: var(--ink); margin-top: 8px; }
.event-flags {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 20px;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.event-flags a { color: var(--ink-3); }
.event-flags .flag-text { color: var(--accent); font-weight: 500; }
.event-head h1 { padding: 14px 0 36px; max-width: 1000px; font-stretch: 80%; font-weight: 800; font-size: 50px; line-height: 1.05; }
.event-head .btn-row { margin: -16px 0 36px; }
.event-body { padding-bottom: 96px; }

/* ---------- Generic content (pages, posts) ---------- */
.content-layout { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.content-main { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.content-side { flex: 1 1 240px; max-width: 320px; }
.entry-content { font-size: 17px; line-height: 1.65; }
.entry-content h2 { font-size: 26px; margin: 1.6em 0 0.5em; font-weight: 800; font-stretch: 85%; }
.entry-content h3 { font-size: 20px; margin: 1.4em 0 0.4em; }
.entry-content img { margin: 1.5em 0; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--accent); font-size: 20px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.facts-list { border-top: 8px solid var(--ink); }
.facts-list div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts-list dt { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.facts-list dd { margin: 2px 0 0; font-weight: 500; }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 8px solid var(--ink); }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list a { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; text-decoration: none; }
.post-list .text { font-size: 20px; font-weight: 700; }
.post-list .excerpt { color: var(--ink-2); font-size: 15px; }
.post-list a:hover .text { text-decoration: underline; }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); text-decoration: none; padding: 0 10px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- "SEA" block sections (event pages) ----------
   These style the ready-made patterns from the block editor. */
.sea-blocks { font-size: 16px; line-height: 1.6; }
/* Classic themes wrap group contents in an extra div; let the grids see the real children. */
.wp-block-group[class*="sea-"] > .wp-block-group__inner-container { display: contents; }
.sea-blocks > * + * { margin-top: 0; }
.sea-blocks p { margin: 0; }
.sea-blocks img { margin: 0; }
.sea-blocks a { color: inherit; }
.sea-blocks .wp-block-heading { margin: 0; }
.sea-blocks ul.wp-block-list { list-style: none; margin: 0; padding: 0; }

.sea-eyebrow, .sea-label {
	font-family: var(--font-mono); font-size: 11px !important; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
}
.sea-eyebrow { color: var(--accent); font-weight: 500; }
.sea-label { color: var(--ink-3); }

/* Slideshow (Gallery block, "Slideshow" style) */
.slideshow { margin-bottom: 64px; }
.ss-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.ss-img { position: absolute !important; inset: 0; width: 100%; height: 100% !important; object-fit: contain; }
.ss-prev, .ss-next {
	position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 0;
	background: #fff; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ss-prev { left: 16px; }
.ss-next { right: 16px; }
.ss-count { position: absolute; right: 16px; bottom: 16px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; padding: 6px 10px; }
.ss-credit { margin: 0 !important; padding-top: 10px; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.ss-thumbs { display: flex; gap: 8px; padding-top: 14px; overflow-x: auto; }
.ss-thumbs button { flex: 0 0 132px; height: 88px; padding: 0; border: 3px solid transparent; border-radius: 0; background: var(--tile-1); cursor: pointer; opacity: 0.6; overflow: hidden; }
.ss-thumbs button[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.ss-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-gallery.is-style-slideshow { margin-bottom: 64px; }

/* Wide banner image */
.wp-block-image.is-style-banner { margin: 0 0 40px; }
.wp-block-image.is-style-banner img { width: 100%; aspect-ratio: 1240 / 460; object-fit: cover; object-position: 50% 58%; }
.wp-block-image.is-style-banner figcaption { margin-top: 8px; font-size: 11px; }

/* When / Where / Contact */
.sea-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 8px solid var(--ink); }
.sea-facts:has(> .sea-fact:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sea-fact { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.sea-fact .sea-label { padding-bottom: 6px; }
.sea-fact p { font-size: 15px; line-height: 1.5; }
.sea-fact a[href^="mailto"] { color: var(--accent); font-weight: 600; }
.sea-fact a { text-decoration: none; }
.sea-facts + * { margin-top: 48px !important; }

/* About + press */
.sea-about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; border-top: 8px solid var(--ink); padding-top: 20px; margin-bottom: 64px; }
.sea-about > h2 { font-size: 22px !important; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
.sea-about-body { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.sea-about-body > p:not([class]) { font-size: 17px; line-height: 1.65; }
.sea-press-title {
	margin-top: 28px !important; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
	font-family: var(--font-mono); font-size: 12px !important; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
	position: relative;
}
.sea-press-title::before { content: ""; position: absolute; left: 0; top: -32px; width: 56px; height: 4px; background: var(--accent); }
.sea-about-body .sea-press-title { margin-top: 20px !important; }
.sea-press-title + .sea-press { margin-top: -16px; }
.sea-press { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.sea-press .sea-src { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 500; }
.sea-press a { display: inline-block; margin: 4px 0; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); text-decoration: none; }
.sea-press a::after { content: " ↗"; font-weight: 400; }
.sea-press a:hover { text-decoration: underline; }

/* Section and group titles */
.sea-section-title { border-top: 8px solid var(--ink); padding-top: 20px; font-size: 22px !important; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
.sea-group-title { margin-top: 28px !important; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 18px !important; font-weight: 800; }
.sea-section-title:not(:first-child) { margin-top: 0; }

/* Speaker cards */
.sea-cards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 24px; margin-bottom: 20px; }
.sea-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--rule); background: #fff; padding-bottom: 24px; }
.sea-card > * { padding-left: 22px; padding-right: 22px; }
.sea-card > .wp-block-image, .sea-card > .sea-photo-placeholder { padding: 0; margin: 0 0 14px !important; }
.sea-card > .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; background: var(--panel); }
.sea-photo-placeholder { aspect-ratio: 4 / 3; background: var(--tile-1); display: flex; align-items: flex-end; padding: 10px !important; font-family: var(--font-mono); font-size: 11px !important; color: var(--ink-2); }
.sea-card h4 { font-size: 21px; font-weight: 800; font-stretch: 85%; line-height: 1.2; margin-bottom: 2px; }
.sea-card p:not([class]) { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.sea-card h4 a { text-decoration: underline; }

/* Panels */
.sea-panels { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 20px; margin-bottom: 20px; }
.sea-panel { display: flex; flex-direction: column; border: 1px solid var(--rule); border-top: 4px solid var(--accent); padding: 20px 22px 22px; background: #fff; }
.sea-panel h4 { font-size: 22px; font-weight: 800; font-stretch: 85%; line-height: 1.15; margin: 6px 0 18px; }
.sea-panel .sea-chair { padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 18px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.sea-panel .sea-label { padding-bottom: 4px; }
.sea-chair strong, .sea-people-list strong { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.sea-people-list li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.sea-panel .sea-people-list strong { font-size: 15px; font-weight: 600; }

/* Program */
.sea-day { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 40px 0 12px; border-bottom: 8px solid var(--ink); }
.sea-day h2 { font-size: 30px !important; font-weight: 800; font-stretch: 80%; text-transform: uppercase; }
.sea-day-date { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.sea-session { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.sea-time { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; font-weight: 500; }
.sea-session-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sea-session-body h3 { font-size: 21px; font-weight: 800; font-stretch: 85%; line-height: 1.2; max-width: 760px; }
.sea-session-body .sea-eyebrow { letter-spacing: 0.1em; }
.sea-note { font-size: 14px; color: var(--ink-3); }
.sea-breakdown { max-width: 640px; border-top: 1px solid var(--rule) !important; margin-top: 4px !important; }
.sea-breakdown li { display: flex; gap: 20px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.45; }
.sea-breakdown li > span:first-child { flex: 0 0 120px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding-top: 1px; }
.sea-chair-line { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.sea-chair-line > span:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding-right: 8px; }
.sea-chair-line strong { color: var(--ink); }
.sea-session .sea-people-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 900px; margin-top: 4px !important; }
.sea-session .sea-people-list li { border-bottom: 0; border-top: 1px solid var(--rule); padding: 10px 0; }
.sea-session .sea-people-list strong { font-size: 15px; }
.sea-people-list a { text-decoration: none; }
.sea-tbc { display: inline-block; margin-left: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; padding: 2px 6px; border: 1px solid #8A877F; color: var(--ink-3); font-weight: 400; vertical-align: 2px; }
.sea-break { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 32px; padding: 12px 0; border-bottom: 1px solid var(--rule); background: var(--panel); }
.sea-break .sea-time { padding-left: 12px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.sea-break p:last-child { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* Coming soon */
.soon-card .date-block .day { font-size: 24px; }
.soon-card { background: var(--panel); }
.soon-wrap { padding-bottom: 112px; }
.soon-panel { border-top: 8px solid var(--ink); background: var(--panel); padding: 48px 48px 52px; display: flex; flex-direction: column; gap: 18px; }
.soon-panel .flag-label { padding-bottom: 0; }
.flag-text { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.soon-panel h2 { max-width: 760px; font-size: 40px; font-weight: 800; font-stretch: 85%; line-height: 1.1; }
.soon-panel p { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.soon-panel .accent-rule { margin-top: 6px; }
.soon-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; padding-top: 10px; max-width: 900px; }
.soon-links a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 2px solid var(--ink); text-decoration: none; }
.soon-links .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.soon-links .text { font-size: 16px; font-weight: 700; }

/* Contact page */
.contact-layout { padding-bottom: 112px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 32px; }
.contact-details { margin: 0; border-top: 8px solid var(--ink); }
.contact-details > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-details dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 6px; }
.contact-details dd { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.contact-details a { color: var(--accent); font-weight: 700; text-decoration: none; }
.contact-details a.person { color: var(--ink); }
.contact-details a:hover { text-decoration: underline; }
.contact-nl { background: var(--ink); color: #fff; padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.contact-nl .eyebrow { color: var(--rule); }
.contact-nl p { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.contact-nl .btn { align-self: flex-start; margin-top: 6px; height: auto; min-height: 44px; font-size: 14px; letter-spacing: 0.06em; padding: 0 20px; }
.contact-form { border-top: 8px solid var(--ink); background: var(--panel); padding: 28px 36px 36px; display: flex; flex-direction: column; gap: 20px; }
.contact-form h2 { font-size: 26px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
.contact-form .intro { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.contact-form .frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label > span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.contact-form input, .contact-form select, .contact-form textarea { box-sizing: border-box; border: 1px solid #8A877F; border-radius: 0; font-family: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.contact-form input, .contact-form select { height: 48px; padding: 0 14px; }
.contact-form textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.contact-form .send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.contact-form .send .mono { color: var(--ink-3); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 14px 16px; font-size: 15px; border-left: 4px solid var(--accent); background: #fff; }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ---------- Phone layout ---------- */
@media (max-width: 760px) {
	:root { --gutter: 16px; }
	.primary-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.title-row, .page-head h1 { font-size: 30px; }
	.title-row .bar { display: none; }
	.title-row { gap: 4px 10px; }
	.title-row > span:not(.bar) { white-space: normal; }
	.mosaic { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: minmax(240px, auto); }
	.mosaic > * { grid-column: auto; grid-row: auto; }
	.grid-2, .grid-3, .footer-grid, .feat, .profile, .sea-facts, .sea-about, .sea-cards, .sea-panels { grid-template-columns: minmax(0, 1fr); }
	.feat-body { padding: 24px 20px 28px; }
	.feat-who h3 { font-size: 28px; }
	.archive-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.ar-link { text-align: left; }
	.people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.people-filter { max-width: none; }
	.profile { padding-top: 24px; gap: 28px; }
	.profile-name h2 { font-size: 26px; }
	.event-head h1 { font-size: 32px; }
	.sea-about { gap: 20px; }
	.sea-session, .sea-break { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.sea-session .sea-people-list { grid-template-columns: minmax(0, 1fr); }
	.tile.small-2, .tile.small-1 { grid-column: auto; }
	.contact-layout, .contact-form .frow, .soon-links { grid-template-columns: minmax(0, 1fr); }
	.contact-layout { gap: 32px; }
	.soon { padding: 28px 20px; }
	.soon-panel h2 { font-size: 30px; }
}
