/*
Theme Name: Sylvester Udemezue — Legal Scholarship
Theme URI: https://udemsyl.com
Author: Sylvester Udemezue
Author URI: https://udemsyl.com
Description: A personal academic and legal publications theme for Sylvester Udemezue — Legal Scholarship and Commentary. Separate, searchable sections for Journal Articles, Legal Commentaries and Lectures & Presentations, with subject, journal and year filters, automatic citations, Google Scholar tags, PDF hosting, permanent links and a built-in contact form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: udemsyl
Tags: blog, education, one-column, custom-menu, custom-logo, featured-images, translation-ready, accessibility-ready
*/

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
	--ink: #13233f;
	--ink-2: #1d3358;
	--accent: #8a1c2b;
	--accent-2: #a62a3b;
	--gold: #b08d57;
	--paper: #faf8f4;
	--paper-2: #f2eee6;
	--surface: #ffffff;
	--text: #1c2230;
	--muted: #5b6372;
	--line: #e3ddd1;
	--focus: #2f6fdb;

	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 10px;
	--shadow: 0 1px 2px rgba(19, 35, 63, .06), 0 6px 20px rgba(19, 35, 63, .06);
	--wrap: 1180px;
	--narrow: 780px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }

.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 !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 6px;
}

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.icon { flex: none; vertical-align: -3px; }

/* ------------------------------------------------------------------ */
/* Buttons & links                                                     */
/* ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: 8px;
	font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
	border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #e9e3d8; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); color: var(--ink); }

.text-link {
	display: inline-flex; align-items: center; gap: 6px;
	font: 600 14px/1.3 var(--sans); color: var(--accent); text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link.muted { color: var(--muted); }

.eyebrow {
	font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent); margin: 0 0 10px;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 248, 244, .94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark {
	display: grid; place-items: center; width: 42px; height: 42px; flex: none;
	background: var(--ink); color: #fff; border-radius: 50%;
	font: 600 15px/1 var(--serif); letter-spacing: .04em;
	box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px var(--gold);
}
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 17px/1.15 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.brand-tag { font: 500 12.5px/1.3 var(--sans); color: var(--muted); letter-spacing: .02em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .menu li { position: relative; }
.brand { flex: none; }
.brand-name, .brand-tag { white-space: nowrap; }
.site-nav .menu a {
	white-space: nowrap;
	display: block; padding: 8px 10px; border-radius: 6px;
	font: 500 14.5px/1.3 var(--sans); color: var(--text); text-decoration: none;
}
.site-nav .menu a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_item > a { color: var(--accent); }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); display: none; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }

.nav-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 0 4px 0 12px; }
.nav-search input { border: 0; background: transparent; font: 14px var(--sans); width: 110px; padding: 8px 0; outline: none; }
.nav-search button { border: 0; background: transparent; color: var(--muted); padding: 8px; cursor: pointer; display: grid; place-items: center; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
	display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1420px) and (min-width: 1181px) {
	.nav-search input { width: 70px; }
	.site-nav .menu a { padding: 8px 7px; font-size: 14px; }
}
@media (max-width: 1180px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 12px;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 12px var(--gutter) 20px; box-shadow: 0 12px 24px rgba(19,35,63,.08);
	}
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding-left: 12px; background: transparent; }
	.nav-search { padding: 2px 4px 2px 14px; }
	.nav-search input { width: 100%; font-size: 16px; }
}
@media (max-width: 420px) {
	.brand-name { font-size: 15px; letter-spacing: .05em; }
	.brand-tag { font-size: 11.5px; }
	.brand-mark { width: 38px; height: 38px; font-size: 13px; }
}

/* ------------------------------------------------------------------ */
/* Home hero                                                           */
/* ------------------------------------------------------------------ */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-name { font-size: clamp(38px, 5.6vw, 64px); letter-spacing: -.01em; margin-bottom: 6px; }
.hero-tag { font: italic 400 clamp(19px, 2.2vw, 24px)/1.35 var(--serif); color: var(--accent); margin-bottom: 20px; }
.hero-intro { font: 400 clamp(17px, 1.6vw, 19px)/1.65 var(--serif); color: #33394a; max-width: 58ch; margin-bottom: 30px; }

.hero-choices { display: grid; gap: 14px; max-width: 600px; }
.choice {
	display: flex; align-items: center; gap: 16px;
	padding: 18px 20px; border-radius: 12px; text-decoration: none;
	background: #fff; border: 1px solid var(--line); color: var(--ink);
	box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.choice:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.choice-articles { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice-articles:hover { color: #fff; background: var(--ink-2); }
.choice-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: rgba(176,141,87,.18); color: var(--gold); flex: none; }
.choice-commentary .choice-icon { background: rgba(138,28,43,.09); color: var(--accent); }
.choice-icon .icon { width: 22px; height: 22px; }
.choice-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-title { font: 600 19px/1.25 var(--serif); }
.choice-sub { font: 400 14px/1.4 var(--sans); opacity: .78; }
.choice-arrow { margin-left: auto; opacity: .7; }

.hero-photo { margin: 0; position: relative; align-self: end; }
.hero-photo::before {
	content: ""; position: absolute; inset: 18px -18px -18px 18px;
	border: 2px solid var(--gold); border-radius: 14px; z-index: 0;
}
.hero-photo img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 20%; border-radius: 14px; box-shadow: 0 20px 50px rgba(19,35,63,.18); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid var(--line); }
.stats > div { padding: 22px 8px 26px; text-align: center; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { font: 500 13px/1.3 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; order: 2; }
.stats dd { margin: 0 0 4px; font: 600 clamp(28px, 3.4vw, 38px)/1 var(--serif); color: var(--ink); }
.stats > div { display: flex; flex-direction: column-reverse; }

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-photo { order: -1; max-width: 300px; margin: 0 auto 8px; }
	.hero-photo::before { inset: 12px -12px -12px 12px; }
	.hero-text { text-align: left; }
}
@media (max-width: 520px) {
	.stats dt { font-size: 11px; letter-spacing: .04em; }
	.choice { padding: 16px; gap: 12px; }
	.choice-title { font-size: 17px; }
	.choice-icon { width: 40px; height: 40px; }
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-list { padding-top: 32px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-size: clamp(28px, 3.4vw, 38px); margin: 0; }
.section-title.small { font-size: 22px; margin-bottom: 16px; }

.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.5); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.pub-card {
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px 22px 18px; position: relative; transition: border-color .15s, box-shadow .15s;
}
.pub-card:hover { border-color: #cfc6b5; box-shadow: var(--shadow); }
.pub-card.type-journal_article { border-top: 3px solid var(--ink); }
.pub-card.type-commentary { border-top: 3px solid var(--accent); }
.pub-card.type-lecture { border-top: 3px solid var(--gold); }

.pub-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.pub-type { font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pub-sub { font: 500 12px/1 var(--sans); color: var(--muted); padding: 4px 8px; background: var(--paper-2); border-radius: 999px; text-decoration: none; }
a.pub-sub:hover { color: var(--ink); background: #e9e3d8; }
.pub-title { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.pub-title a { color: var(--ink); text-decoration: none; }
.pub-title a:hover { color: var(--accent); }
.pub-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.pub-meta { font: 400 13.5px/1.5 var(--sans); color: var(--muted); margin: 0 0 12px; }
.pub-meta .m-journal { font-style: italic; color: #3d4556; }
.pub-meta .sep, .byline .sep { margin: 0 7px; color: #b5ad9e; }
.pub-summary { font: 400 15.5px/1.6 var(--serif); color: #3a4050; margin: 0 0 14px; flex: 1; }
.pub-actions { display: flex; gap: 16px; margin: 0; position: relative; z-index: 2; }

/* Archive list layout: one column, roomier */
.pub-list { display: grid; gap: 16px; }
.pub-list .pub-card { padding: 24px 26px 20px; border-top-width: 1px; border-left: 4px solid var(--ink); }
.pub-list .pub-card.type-commentary { border-left-color: var(--accent); }
.pub-list .pub-card.type-lecture { border-left-color: var(--gold); }
.pub-list .pub-card.type-page, .pub-list .pub-card.type-post { border-left-color: var(--line); }
.pub-list .pub-title { font-size: clamp(19px, 2vw, 22px); }
.pub-list .pub-summary { max-width: 75ch; }
@media (max-width: 520px) { .pub-list .pub-card { padding: 20px 18px 16px; } }

/* Home: latest commentary */
.latest-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.lead-commentary { padding-right: 36px; border-right: 1px solid var(--line); }
.lead-title { font-size: clamp(24px, 3vw, 32px); }
.lead-title a { color: var(--ink); text-decoration: none; }
.lead-title a:hover { color: var(--accent); }
.lead-summary { font: 400 18px/1.65 var(--serif); color: #343a4a; }
.side-list { display: flex; flex-direction: column; }
.side-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.side-item:first-child { padding-top: 0; }
.side-item h3 { font-size: 18px; margin: 0 0 6px; }
.side-item h3 a { color: var(--ink); text-decoration: none; }
.side-item h3 a:hover { color: var(--accent); }
.side-item .pub-meta { margin: 0; }
@media (max-width: 860px) {
	.latest-grid { grid-template-columns: 1fr; gap: 28px; }
	.lead-commentary { padding-right: 0; border-right: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
	background: #fff; border: 1px solid var(--line); color: var(--ink);
	font: 500 14px/1.2 var(--sans); text-decoration: none;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip span { color: var(--muted); font-size: 12px; }

/* CTA band */
.cta-band { background: var(--ink); color: #dfe4ee; padding: clamp(40px, 6vw, 64px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* ------------------------------------------------------------------ */
/* Archive heading + filter bar                                        */
/* ------------------------------------------------------------------ */
.page-hero { padding: clamp(36px, 6vw, 64px) 0 clamp(28px, 4vw, 40px); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 10px; }
.page-intro { font: 400 clamp(17px, 1.6vw, 19px)/1.6 var(--serif); color: #3a4050; max-width: 68ch; margin-bottom: 24px; }
.page-intro p:last-child { margin: 0; }

.filter-bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px;
	box-shadow: var(--shadow);
}
.filter-search { flex: 1 1 300px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted); min-width: 0; }
.filter-search input { flex: 1; min-width: 0; border: 0; outline: none; font: 16px/1.4 var(--sans); padding: 10px 0; background: transparent; color: var(--text); }
.filter-select select {
	appearance: none; -webkit-appearance: none;
	font: 500 15px/1.2 var(--sans); color: var(--ink);
	min-height: 44px; padding: 10px 36px 10px 14px; border: 1px solid var(--line); border-radius: 8px;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2313233f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
	max-width: 260px; cursor: pointer;
}
.filter-reset { font: 500 14px var(--sans); color: var(--muted); padding: 0 6px; }
@media (max-width: 640px) {
	.filter-bar { padding: 8px; }
	.filter-search { flex-basis: 100%; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
	.filter-select { flex: 1 1 140px; }
	.filter-select select { width: 100%; max-width: none; }
	.filter-bar .btn { flex: 1 1 100%; }
}
.result-count { font: 500 14px var(--sans); color: var(--muted); margin-bottom: 16px; }

.pagination { margin-top: 36px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; justify-content: center; }
.pagination a, .pagination span {
	display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none;
	font: 500 15px var(--sans); color: var(--ink);
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Single publication                                                  */
/* ------------------------------------------------------------------ */
.pub-header { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.crumbs { font: 500 13px var(--sans); color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.pub-h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.18; margin-bottom: 14px; }
.pub-source { font: 400 18px/1.5 var(--serif); color: #3a4050; margin-bottom: 4px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font: 400 14.5px/1.5 var(--sans); color: var(--muted); margin: 0; }
.byline strong { color: var(--ink); font-weight: 600; }
.byline .sep { margin: 0 8px; }
.pub-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
@media (max-width: 520px) { .pub-buttons .btn { flex: 1 1 100%; } }

.pub-body { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(40px, 6vw, 72px); }

.details {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0;
	margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
}
.details > div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.details dt { font: 600 11.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.details dd { margin: 0; font: 500 15.5px/1.4 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.details.compact { grid-template-columns: 1fr; margin-bottom: 12px; }
.details.compact > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: baseline; }
@media (max-width: 520px) { .details.compact > div { grid-template-columns: 1fr; gap: 2px; } }

.abstract { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 24px; }
.abstract h2, .citation h2, .pdf-viewer h2, .source-box h2 { font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.abstract p { font: 400 18px/1.7 var(--serif); color: #262c3a; }
.abstract p:last-child { margin: 0; }

.keywords { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 28px; }
.kw-label { font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.keywords .chip { font-size: 13.5px; padding: 6px 12px; }

.citation { background: var(--ink); color: #e6eaf2; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 32px; }
.citation h2 { color: var(--gold); }
.citation-text { font: 400 17.5px/1.6 var(--serif); color: #fff; margin-bottom: 10px; }
.cite-link { font: 400 13.5px/1.5 var(--sans); margin: 0; color: #b9c2d3; overflow-wrap: anywhere; }
.cite-link a { color: #fff; }

.pdf-viewer { margin-bottom: 32px; }
.pdf-viewer object { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pdf-mobile { display: none; }
@media (max-width: 760px) {
	.pdf-viewer object { display: none; }
	.pdf-mobile { display: block; }
}

.source-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 10px; margin: 36px 0 28px; }
.source-box .details { border: 0; border-radius: 0; }
.source-box .details > div { border-right: 0; padding: 10px 0; }
.source-box .details > div:last-child { border-bottom: 0; }

.media-embed { margin-bottom: 28px; }
.media-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 32px 0; font: 500 14px var(--sans); }
.share-label { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); margin-right: 4px; }
.share a { color: var(--ink); text-decoration: none; }
.share a:hover { color: var(--accent); text-decoration: underline; }

.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adj { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); font: 600 16px/1.35 var(--serif); }
.adj span { display: block; font: 600 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.adj:hover { border-color: var(--ink); color: var(--ink); }
.adj-next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .adjacent { grid-template-columns: 1fr; } .adj-next { grid-column: auto; text-align: left; } }

/* ------------------------------------------------------------------ */
/* Reading typography                                                   */
/* ------------------------------------------------------------------ */
.prose { font: 400 clamp(17.5px, 1.25vw + 12px, 19.5px)/1.75 var(--serif); color: #222836; }
.prose > * { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.5em; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.25em; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.05em; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote, .prose .wp-block-quote {
	margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--gold);
	font-style: italic; color: #3a4050;
}
.prose blockquote cite { display: block; font: normal 500 14px var(--sans); color: var(--muted); margin-top: .6em; }
.prose a { word-break: break-word; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font: 400 14px/1.5 var(--sans); color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font: 15px/1.5 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em auto; width: 40%; }
.prose sup { line-height: 0; }
.prose .footnotes, .prose .wp-block-footnotes { font-size: .82em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1em; }
.prose img { border-radius: 6px; }
.alignwide { margin-left: calc(-1 * min(8vw, 120px)); margin-right: calc(-1 * min(8vw, 120px)); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 900px) { .alignwide { margin-left: 0; margin-right: 0; } }

/* ------------------------------------------------------------------ */
/* About + Contact                                                     */
/* ------------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 20%; border-radius: 14px; box-shadow: 0 16px 40px rgba(19,35,63,.16); }
.about-role { font: 500 16px/1.5 var(--sans); color: var(--ink); margin-bottom: 14px; }
.about-grid .chips { margin-bottom: 8px; }
.about-content h2 { padding-top: .4em; border-top: 1px solid var(--line); }
.about-content h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
@media (max-width: 760px) {
	.about-grid { grid-template-columns: 1fr; }
	.about-photo { max-width: 260px; }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-reasons { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.contact-reasons li { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font: 400 15px/1.5 var(--sans); color: var(--muted); }
.contact-reasons strong { display: block; color: var(--ink); font: 600 17px/1.3 var(--serif); margin-bottom: 2px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.form-card h2 { font-size: 24px; }
.contact-form label { display: block; font: 600 14px/1.3 var(--sans); color: var(--ink); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; font: 16px/1.5 var(--sans); color: var(--text);
	padding: 11px 13px; border: 1px solid #d5cdbd; border-radius: 8px; background: var(--paper);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; background: #fff; }
.contact-form p { margin: 0 0 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font: 15px/1.5 var(--sans); }
.notice-ok { background: #e8f4ec; border: 1px solid #b6dcc2; color: #1d5130; }
.notice-err { background: #fbecee; border: 1px solid #efc2c8; color: #7a1a27; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer { background: #0e1a30; color: #aeb7c8; padding: 56px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-name { font: 700 19px/1.2 var(--serif); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.footer-tag { font: italic 400 16px var(--serif); color: var(--gold); margin-bottom: 12px; }
.footer-role { margin: 0; }
.footer-h { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a, .site-footer .widget a { color: #d3d9e4; text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 28px; font-size: 13px; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* WordPress core alignment classes */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.2em .8em 0; }
.alignright { float: right; margin: .3em 0 .8em 1.2em; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--muted); }
.sticky, .bypostauthor { }

@media print {
	.site-header, .site-footer, .share, .adjacent, .pub-buttons, .filter-bar, .cta-band { display: none !important; }
	body { background: #fff; }
	.citation { background: none; color: #000; border: 1px solid #000; }
	.citation-text, .cite-link, .cite-link a { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Name alias, professional titles line, profile placeholder */
.alias { font-weight: 400; font-style: italic; color: var(--muted); font-size: .62em; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.footer-name .alias { color: #aeb7c8; font-size: .8em; }
.hero-roles { font: 500 clamp(14px, 1.3vw, 15.5px)/1.65 var(--sans); color: var(--ink); letter-spacing: .01em; max-width: 60ch; margin: 4px 0 14px; padding-left: 12px; border-left: 3px solid var(--gold); }
.about-role { max-width: 60ch; line-height: 1.6; }
.footer-role { font-size: 14px; line-height: 1.6; max-width: 46ch; }
.profile-placeholder { padding: 18px 20px; border: 1px dashed var(--gold); border-radius: 8px; background: #fffaf0; color: var(--muted); font-style: italic; }
