/*
Theme Name: Soft Bio Matter
Theme URI: https://www.fmf.uni-lj.si/
Author: Soft Bio Matter Group
Description: Website theme for the Soft Bio Matter Group (Department of Physics, Faculty of Mathematics and Physics, University of Ljubljana). Light layout with navy colours, rounded panels and pill navigation. Includes People, Publications, Research themes and Open positions content types, editable from the dashboard.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: softbio
Tags: one-column, custom-menu, custom-logo, featured-images, education
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0B1728;
	--ink-2: #16273D;
	--paper: #FAF9F6;
	--white: #FFFFFF;
	--accent: #3B6A8A;
	--light: #8FB8D0;
	--tint: #E6EEF4;
	--tint-ink: #1D3A52;
	--warm: #F3ECE2;
	--warm-ink: #5A3E1C;
	--green: #E7F0EA;
	--green-ink: #1F4A2F;
	--lilac: #EEE8F3;
	--lilac-ink: #432A57;
	--line: #E3E1DA;
	--text: #3A4452;
	--muted: #4A5563;
	--ph: #D9D9D9;
	--ph-ink: #5B6570;
	--on-dark: #D5DEE7;
	--on-dark-muted: #B7C4D1;
	--serif: 'DM Serif Display', Georgia, serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--r: 20px;
	--r-lg: 28px;
	--gutter: clamp(20px, 5vw, 64px);
	--max: 1280px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0; }
.site-main { flex: 1 0 auto; }
.container { width: 100%; 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; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--white); border-radius: 999px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 22px; }
.brand .custom-logo { max-height: 44px; width: auto; }
.site-title { font-family: var(--serif); font-size: 22px; line-height: 1.1; color: var(--ink); text-decoration: none; }
.brand-divider { width: 1px; height: 36px; background: var(--line); }
.brand-logo img { height: 44px; width: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.primary-nav a { display: block; padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.primary-nav a:hover { background: var(--tint); color: var(--tint-ink); }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_parent > a,
.primary-nav .current-menu-ancestor > a { background: var(--tint); color: var(--tint-ink); }
.primary-nav .nav-cta > a { margin-left: 10px; padding: 11px 22px; background: var(--ink); color: var(--white); }
.primary-nav .nav-cta > a:hover { background: var(--ink-2); color: var(--white); }
.primary-nav .nav-cta.current-menu-item > a,
.primary-nav .nav-cta.current_page_item > a { background: var(--ink); color: var(--white); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--light); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Buttons & small parts ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font-family: var(--sans); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-sm { height: 46px; padding: 0 22px; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--tint); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-tint { background: var(--tint); color: var(--tint-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 500; color: var(--accent); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--light); flex: none; }
.on-dark .eyebrow { color: var(--light); }
.link-arrow { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.link-accent { color: var(--accent); font-weight: 500; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--tint); color: var(--tint-ink); text-decoration: none; }
.tag-1 { background: var(--tint); color: var(--tint-ink); }
.tag-2 { background: var(--warm); color: var(--warm-ink); }
.tag-3 { background: var(--green); color: var(--green-ink); }
.tag-4 { background: var(--lilac); color: var(--lilac-ink); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.placeholder { background: var(--ph); color: var(--ph-ink); display: flex; align-items: flex-end; padding: 20px; font-size: 13px; }
.admin-hint { padding: 20px 24px; border: 1px dashed var(--light); border-radius: var(--r); background: var(--white); color: var(--muted); font-size: 14px; }

/* ---------- Page header (navy panel) ---------- */
.page-hero-wrap { padding-top: 8px; }
.page-hero { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: clamp(36px, 6vw, 64px); }
.page-hero-inner { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; color: var(--white); }
.page-hero h1 em, .home-hero h1 em { font-style: italic; color: var(--light); }
.page-hero .lead { font-size: 18px; font-weight: 300; line-height: 1.65; color: var(--on-dark); }
.page-hero .meta { color: var(--on-dark-muted); }
.page-hero .actions { margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0 96px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head-text { display: flex; flex-direction: column; gap: 12px; }
.section-title { font-size: clamp(32px, 4vw, 44px); }

/* ---------- Home hero ---------- */
.home-hero-wrap { padding: 8px 24px 0; max-width: calc(var(--max) + 48px); margin: 0 auto; width: 100%; }
.home-hero { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: 72px 40px 72px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 40px; align-items: center; }
.home-hero-text { display: flex; flex-direction: column; gap: 26px; max-width: 580px; }
.home-hero h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.08; color: var(--white); }
.home-hero .lead { font-size: 18px; font-weight: 300; line-height: 1.7; color: var(--on-dark); }
.home-hero .affiliation { font-size: 14px; color: var(--on-dark-muted); }
.hero-collage { position: relative; height: 560px; }
.hero-collage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { position: absolute; left: 36px; top: 70px; width: 330px; height: 420px; border-radius: var(--r-lg); overflow: hidden; background: var(--ph); color: var(--ph-ink); display: flex; align-items: flex-end; padding: 20px; font-size: 13px; }
.hero-photo img, .hero-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-circle { position: absolute; right: 10px; top: 20px; width: 200px; height: 200px; border-radius: 999px; border: 6px solid var(--ink); overflow: hidden; background: #C9DCE8; color: var(--tint-ink); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; }
.hero-card { position: absolute; right: 0; bottom: 60px; width: 230px; background: var(--white); color: var(--ink); border-radius: var(--r); padding: 20px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.hero-card:hover { color: var(--ink); transform: translateY(-2px); }
.hero-card .k { font-size: 13px; font-weight: 500; color: var(--accent); }
.hero-card .t { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.hero-card .l { font-size: 14px; font-weight: 500; }

/* ---------- Research cards (home) ---------- */
.study-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.study-card { display: flex; flex-direction: column; gap: 14px; min-height: 250px; padding: 28px; border-radius: var(--r); background: var(--tint); color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.study-card:hover { transform: translateY(-3px); color: var(--ink); }
.study-card .num { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; }
.study-card h3 { font-size: 24px; line-height: 1.2; }
.study-card p { font-size: 15px; color: var(--text); }
.study-card:nth-child(even) { background: var(--ink); color: var(--white); }
.study-card:nth-child(even):hover { color: var(--white); }
.study-card:nth-child(even) .num { color: var(--light); }
.study-card:nth-child(even) p { color: var(--on-dark); }

/* ---------- People feature (home) ---------- */
.people-feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.people-feature-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.people-feature-text p { font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--text); }
.avatar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.avatar { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.avatar-img { width: 128px; height: 128px; border-radius: 999px; overflow: hidden; background: var(--ph); }
.avatar:nth-child(even) .avatar-img { background: var(--tint); }
.avatar-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,23,40,.08); color: var(--ink); }
.card-media { height: 190px; background: var(--ph); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card-title { font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.card-excerpt { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: clamp(36px, 5vw, 56px) clamp(28px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; color: var(--white); }
.cta-band p { margin-top: 12px; font-size: 17px; font-weight: 300; color: var(--on-dark); max-width: 680px; }

/* ---------- News ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.pill { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 15px; text-decoration: none; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 500; }
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 48px; }
.featured-media { height: 400px; border-radius: var(--r); overflow: hidden; background: var(--ph); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { display: flex; flex-direction: column; gap: 18px; padding-right: 24px; }
.featured-body h2 { font-size: clamp(30px, 3.4vw, 40px); }
.featured-body h2 a { text-decoration: none; }
.featured-body p { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--text); }
.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-size: 15px; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Single / page content ---------- */
.article { padding: 56px 0 96px; }
.article-media { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 48px; }
.entry-content { font-size: 17px; line-height: 1.75; color: var(--text); }
.entry-narrow { max-width: 760px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--ink); margin-top: 1.6em; }
.entry-content h3 { font-size: 26px; color: var(--ink); margin-top: 1.4em; }
.entry-content h4 { font-size: 20px; color: var(--ink); }
.entry-content a { color: var(--accent); }
.entry-content img { border-radius: var(--r); }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--light); font-family: var(--serif); font-size: 22px; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content .wp-block-button__link { background: var(--ink); color: var(--white); border-radius: 999px; padding: 14px 28px; font-size: 15px; font-weight: 500; text-decoration: none; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.entry-content > .alignwide { max-width: none; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content td, .entry-content th { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.post-nav { margin-top: 64px; display: flex; justify-content: space-between; gap: 24px; }

/* ---------- Block patterns ---------- */
.sbm-statement { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px) !important; line-height: 1.3 !important; color: var(--ink) !important; max-width: 900px; }
.sbm-statement em { color: var(--accent); }
.wp-block-columns.sbm-cards { gap: 20px; margin-top: 40px; }
.sbm-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; height: 100%; }
.sbm-card h3 { margin: 0 0 10px; font-size: 26px; }
.sbm-card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.wp-block-columns.sbm-steps { gap: 20px; }
.sbm-step { background: var(--tint); border-radius: var(--r); padding: 32px; height: 100%; }
.sbm-step .sbm-step-num { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--ink); margin: 0 0 12px; }
.sbm-step h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.sbm-step p { font-size: 15px; line-height: 1.65; color: var(--text); }
.wp-block-column:nth-child(2) > .sbm-step { background: var(--ink); }
.wp-block-column:nth-child(2) > .sbm-step .sbm-step-num { color: var(--light); }
.wp-block-column:nth-child(2) > .sbm-step h3 { color: var(--white); }
.wp-block-column:nth-child(2) > .sbm-step p { color: var(--on-dark); }
.sbm-panel { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); }
.sbm-panel h2, .sbm-panel h3 { color: var(--white); margin-top: 0; }
.sbm-panel p { color: var(--on-dark); }
.sbm-logos { gap: 16px; }
.sbm-logo { background: var(--white); border-radius: 16px; min-height: 84px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; color: var(--ph-ink); padding: 12px; }
.sbm-logo img { max-height: 60px; width: auto; border-radius: 0; }
.sbm-media-ph { background: var(--ph); border-radius: var(--r-lg); min-height: 340px; display: flex; align-items: flex-end; padding: 20px; font-size: 13px; color: var(--ph-ink); }
.entry-content .sbm-section-label { font-size: 15px; font-weight: 500; color: var(--accent); margin-bottom: -0.6em; }
.entry-content .sbm-section-label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--light); margin-right: 10px; vertical-align: middle; }
.sbm-bullets { list-style: none; padding: 0 !important; }
.sbm-bullets li { position: relative; padding-left: 22px; margin: 10px 0; }
.sbm-bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }

/* ---------- Research themes ---------- */
.theme-list { display: flex; flex-direction: column; gap: 48px; }
.theme-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; scroll-margin-top: 24px; }
.theme-row:nth-child(even) .theme-media { order: 2; }
.theme-media { height: 340px; border-radius: var(--r-lg); overflow: hidden; background: var(--ph); }
.theme-media img { width: 100%; height: 100%; object-fit: cover; }
.theme-body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.theme-body h3 { font-size: clamp(28px, 3vw, 34px); line-height: 1.15; }
.theme-body .text { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--text); }
.theme-body .text > * + * { margin-top: .8em; }
.theme-body .keywords { font-size: 14px; color: var(--muted); }
.badge { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); }
.theme-row:nth-child(even) .badge { background: var(--ink); color: var(--white); }

/* ---------- Publications ---------- */
.filter-bar { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 200px 280px auto; gap: 16px; align-items: end; margin-bottom: 40px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select { height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 400 15px var(--sans); color: var(--ink); width: 100%; }
.year-group { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; margin-bottom: 40px; }
.year-label { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--accent); }
.pub-list { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.pub { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.pub-title { font-size: 24px; line-height: 1.25; }
.pub-authors { font-size: 15px; color: var(--text); }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--muted); }
.pub-meta a { color: var(--accent); font-weight: 500; text-decoration: none; }
.pub-meta a:hover { text-decoration: underline; }
.pub-meta .tag { margin-left: auto; }
.center { display: flex; justify-content: center; }

/* ---------- People ---------- */
.people-section + .people-section { margin-top: 80px; }
.people-section h2 { font-size: 36px; margin-bottom: 28px; }
.pi-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 56px; align-items: center; }
.pi-photo { height: 440px; border-radius: var(--r); overflow: hidden; background: var(--ph); }
.pi-photo img { width: 100%; height: 100%; object-fit: cover; }
.pi-body { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding-right: 32px; }
.pi-body h2 { font-size: clamp(36px, 4vw, 48px); line-height: 1.05; margin: 0; }
.pi-body .role { font-size: 16px; color: var(--muted); }
.pi-body .bio { font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--text); }
.pi-body .bio > * + * { margin-top: .8em; }
.pi-label { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--white); }
.person-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 22px; display: flex; flex-direction: column; gap: 8px; }
.person-photo { height: 230px; border-radius: 14px; overflow: hidden; background: var(--ph); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-size: 22px; margin: 10px 4px 0; }
.person-topic { margin: 0 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.person-quote { margin: 2px 4px 0; font-size: 14px; font-style: italic; color: var(--accent); }
.person-links { margin: 4px 4px 0; display: flex; gap: 14px; font-size: 14px; font-weight: 500; }
.person-links a { color: var(--accent); text-decoration: none; }
.alumni { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.alumni-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.alumni-row strong { font-weight: 600; }
.alumni-row .now { color: var(--muted); text-align: right; }

/* ---------- Positions ---------- */
.position-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.position-card h3 { font-size: 28px; line-height: 1.2; }
.position-card .desc { font-size: 15px; line-height: 1.7; color: var(--muted); }
.position-card .btn { margin-top: auto; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--green-ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #2F7A4A; }
.status.is-rolling { color: var(--tint-ink); }
.status.is-rolling::before { background: var(--light); }
.facts { display: flex; gap: 24px; font-size: 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.note { margin-top: 24px; font-size: 15px; color: var(--muted); }
.contact-panel { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.contact-panel h2 { font-size: 40px; color: var(--white); }
.contact-panel p { color: var(--on-dark); font-size: 16px; line-height: 1.75; margin-top: 16px; }
.contact-panel a:not(.btn) { color: var(--light); font-weight: 500; }
.contact-panel .btn { margin-top: 20px; }
.contact-media { height: 320px; border-radius: var(--r); overflow: hidden; background: var(--ph); color: var(--ph-ink); display: flex; align-items: flex-end; padding: 20px; font-size: 13px; position: relative; }
.contact-media img, .contact-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; background: var(--ink); color: #E6EDF3; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--white); }
.footer-col p { color: var(--on-dark-muted); line-height: 1.65; }
.footer-label { font-weight: 600; color: var(--light); }
.site-footer a { color: #E6EDF3; text-decoration: none; }
.site-footer a:hover { color: var(--light); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #9FB0C0; }

/* ---------- 404 / search ---------- */
.empty-state { text-align: left; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font: 400 15px var(--sans); min-width: 260px; }
.search-form button { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: 500 15px var(--sans); cursor: pointer; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.sticky, .bypostauthor, .gallery-caption { }

/* ---------- Page rhythm inside block content ---------- */
.entry-content > :first-child { margin-top: 0; }
.entry-content > .sbm-section-label { margin-top: 88px; }
.entry-content > .sbm-section-label:first-child { margin-top: 0; }
.entry-content > .sbm-section-label + h2 { margin-top: 18px; }
.entry-content > .wp-block-group.sbm-panel,
.entry-content > .wp-block-columns.sbm-life,
.entry-content > .contact-panel,
.entry-content > .cta-band,
.entry-content > .people-section { margin-top: 88px; }
.entry-content > .people-section:first-child { margin-top: 0; }
.entry-content > .theme-list { margin-top: 40px; }
.entry-content > .alignwide:has(> .cta-band) { margin-top: 88px; }
.entry-content .on-dark h2, .entry-content .on-dark h3, .entry-content .sbm-panel h2, .entry-content .sbm-panel h3 { color: var(--white); margin-top: 0; }
.entry-content .on-dark a:not(.btn) { color: var(--light); }
.entry-content :is(.theme-list, .year-group, .people-section, .pi-card, .person-card, .position-card, .contact-panel, .cta-band, .sbm-card, .sbm-step, .sbm-panel, .filter-bar) :is(h2, h3, h4) { margin-top: 0; }
.entry-content .sbm-panel .sbm-logo { color: var(--ph-ink); }
.entry-content > p:not([class]), .entry-content > ul:not([class]), .entry-content > ol { max-width: 820px; }
.wp-block-columns.sbm-life { gap: 56px; align-items: center; }
.sbm-life .sbm-section-label { margin: 0 0 12px; }
.sbm-life h2 { margin-top: 0; }
.entry-content .sbm-cards, .entry-content .sbm-steps { margin-top: 40px; }
.entry-content .sbm-panel .sbm-logos { margin-top: 24px; }

/* ---------- Single ---------- */
.single-media { margin: 0 0 48px; border-radius: var(--r-lg); overflow: hidden; max-height: 560px; }
.single-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.single-portrait { float: right; width: 280px; margin: 0 0 24px 40px; border-radius: var(--r-lg); overflow: hidden; }
.post-nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
.post-nav a:hover { color: var(--accent); }
.comment-list { list-style: none; padding: 0; }
.comment-respond textarea, .comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"] { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; font: 400 15px var(--sans); background: var(--white); }
.comment-respond .submit { height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font: 500 15px var(--sans); cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.home-hero { grid-template-columns: 1fr; padding: 56px 40px; }
	.hero-collage { height: 480px; max-width: 540px; }
	.study-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.filter-bar { grid-template-columns: 1fr 1fr; }
	.filter-bar .field-search { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 84px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: 0 16px 40px rgba(11,23,40,.12); }
	.site-header.nav-open .primary-nav { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.primary-nav .nav-cta > a { margin: 6px 0 0; text-align: center; }
	.brand-divider, .brand-logo { display: none; }
	.people-feature, .featured, .theme-row, .pi-card, .contact-panel { grid-template-columns: 1fr; gap: 32px; }
	.theme-row:nth-child(even) .theme-media { order: 0; }
	.pi-body { padding-right: 0; }
	.pi-photo { height: 380px; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.year-group { grid-template-columns: 1fr; gap: 16px; }
	.wp-block-columns.sbm-life { gap: 32px; }
	.single-portrait { float: none; width: 100%; max-width: 360px; margin: 0 0 32px; }
	.alumni { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cta-band { flex-direction: column; align-items: flex-start; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.featured-body { padding: 0 8px 8px; }
}
@media (max-width: 600px) {
	.home-hero-wrap { padding: 8px 12px 0; }
	.home-hero { padding: 40px 24px; }
	.hero-collage { height: auto; display: flex; flex-direction: column; gap: 16px; }
	.hero-collage svg, .hero-circle { display: none; }
	.hero-photo { position: relative; left: auto; top: auto; width: 100%; height: 300px; }
	.hero-card { position: relative; right: auto; bottom: auto; width: 100%; }
	.study-grid, .grid-3, .grid-4, .filter-bar, .footer-grid { grid-template-columns: 1fr; }
	.avatar-img { width: 88px; height: 88px; }
	.section { padding: 64px 0; }
	.featured-media { height: 260px; }
	.pub-meta .tag { margin-left: 0; }
	.contact-panel { padding: 28px; }
}
