/*
Theme Name: Peptide Research Journal
Theme URI: https://peptidesresearchjournal.com/
Author: Junayed - Devjoo
Author URI: https://easeare.com/
Description: An editorial journal for peptide literature summaries. Articles link to the underlying papers. Commercial catalogs are cited only when the listing itself is part of the story.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: peptides-research-journal
*/

:root {
	--ink: #142033;
	--ink-soft: #2c3b4e;
	--muted: #5d6b7c;
	--paper: #e7edf3;
	--card: #ffffff;
	--rule: #d3dce6;
	--rule-strong: #b7c3d1;
	--teal: #1a4f8b;
	--teal-deep: #0c1b2e;
	--oxblood: #8d6a2f;
	--highlight: #e8eef6;
	--navy: #0c1b2e;
	--brass: #c6a15b;
	--shadow: 0 16px 36px rgba(12, 27, 46, 0.08);
	--serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
	--sans: "Libre Franklin", "Segoe UI", sans-serif;
	--measure: 68ch;
	--site: 1280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); text-underline-offset: 0.16em; }
a:hover { color: var(--teal-deep); }

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	background: var(--ink);
	color: #fff;
	padding: 0.5rem 0.8rem;
	z-index: 20;
}
.skip-link:focus { top: 1rem; color: #fff; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.site-header {
	background: #fff;
	color: var(--ink);
	position: relative;
	z-index: 20;
}

.utility-bar {
	border-bottom: 0;
	background: var(--navy);
}
.utility-inner {
	max-width: var(--site);
	margin: 0 auto;
	padding: 0.45rem 1.25rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
}
.utility-kicker {
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #c9d4e0;
	font-weight: 600;
}
.utility-links {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.utility-links a {
	color: #f2f6fa;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
}
.utility-links a:hover,
.utility-links a[aria-current="page"] { color: #fff; }

.masthead {
	max-width: var(--site);
	margin: 0 auto;
	padding: 0.95rem 1.25rem 0.85rem;
	display: flex;
	justify-content: space-between;
	gap: 1.25rem;
	align-items: center;
}

.mark {
	font-family: var(--serif);
	font-weight: 680;
	letter-spacing: -0.03em;
	color: var(--teal);
	text-decoration: none;
	line-height: 0.95;
}
.custom-logo-link { display: flex; align-items: center; line-height: 0; }
.custom-logo { display: block; max-height: 56px; width: auto; }
.mark--logo { display: flex; align-items: center; line-height: 0; }
.mark--logo img { display: block; height: 52px; width: auto; }
.mark strong {
	display: block;
	font-size: clamp(1.7rem, 3vw, 2.45rem);
	font-weight: 680;
}

.mast-tools {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.search-form { display: flex; }
.search-form input[type="search"] {
	border: 1px solid var(--rule-strong);
	background: var(--paper);
	color: var(--ink);
	border-radius: 999px 0 0 999px;
	padding: 0.45rem 0.9rem;
	width: 11rem;
	font: inherit;
	font-size: 0.92rem;
}
.search-form button {
	border: 1px solid var(--teal);
	background: var(--teal);
	color: #fff;
	border-radius: 0 999px 999px 0;
	padding: 0.45rem 0.85rem;
	font: inherit;
	font-size: 0.92rem;
	cursor: pointer;
}

.search-form--mast input[type="search"] {
	background: #fff;
	border-color: var(--rule-strong);
	color: var(--ink);
}
.search-form--mast button {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
	font-weight: 700;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.55rem;
	height: 2.55rem;
	border: 1px solid var(--rule-strong);
	background: #fff;
	color: var(--ink);
	border-radius: 12px;
	padding: 0;
	cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
	display: block;
	width: 1.05rem;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.primary-nav.is-open .nav-toggle-icon { background: transparent; }
.primary-nav.is-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.primary-nav.is-open .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }
body.nav-open { overflow: hidden; }

.primary-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	border: 0;
	background: #f7f8fa;
	box-shadow: 0 1px 0 rgba(20, 32, 51, 0.08);
}
.admin-bar .primary-nav { top: 32px; }
.primary-list {
	max-width: var(--site);
	margin: 0 auto;
	padding: 0 1.25rem;
	list-style: none;
	display: flex;
	gap: 0.25rem;
	align-items: stretch;
}
.primary-list > li { position: static; }
.mega-toggle,
.nav-direct {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--ink);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 0.8rem 0.95rem;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	border-bottom: 2px solid transparent;
}
.mega-toggle::after {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	margin-left: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}
.mega-toggle:hover,
.nav-direct:hover,
.mega.is-open .mega-toggle,
.nav-direct[aria-current="page"] {
	color: var(--teal);
	border-bottom-color: var(--teal);
}

.mega-panel {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	background: #fff;
	color: var(--ink);
	border-top: 3px solid var(--teal);
	box-shadow: 0 22px 40px rgba(12, 27, 46, 0.16);
	padding: 1.25rem 0 1.4rem;
}
.mega.is-open .mega-panel,
.mega:focus-within .mega-panel {
	display: block;
}
.mega-intro,
.mega-grid,
.mega-panel--pages {
	max-width: var(--site);
	margin: 0 auto;
	padding: 0 1.25rem;
}
.mega-intro { margin-bottom: 0.85rem; }
.mega-intro p:last-child { margin: 0; color: var(--ink-soft); }
.mega-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.55rem;
}
.mega-link {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--rule);
	border-radius: 10px;
	padding: 0.75rem 0.8rem;
	background: #f7f9fb;
}
.mega-link strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.mega-link span { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.mega-link:hover { border-color: var(--teal); background: #fff; color: var(--teal); }
.mega-panel--pages {
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	padding: 1.6rem 1.25rem 1.5rem;
}
.mega.is-open .mega-panel--pages,
.mega:focus-within .mega-panel--pages { display: grid; }
.mega-col ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.mega-col li { margin: 0.35rem 0; }
.mega-col a { color: var(--ink); font-weight: 650; text-decoration: none; }
.mega-col a:hover { color: var(--teal); }
.mega-aside { color: var(--muted); font-size: 0.9rem; max-width: 42ch; }

.wrap {
	max-width: var(--site);
	margin: 0 auto;
	padding: 1.75rem 1.25rem 3.5rem;
}

.kicker {
	margin: 0 0 0.4rem;
	color: var(--oxblood);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.lead {
	display: grid;
	grid-template-columns: 1.4fr 0.8fr;
	gap: 1.5rem;
	margin-bottom: 2.2rem;
	align-items: stretch;
}

.lead-slider {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: #102033;
	border: 1px solid var(--rule);
	border-radius: 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
	position: relative;
}
.lead-track {
	display: grid;
	flex: 1;
	grid-template-rows: 1fr;
	min-height: 0;
}
.lead-main {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0;
	min-height: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease;
}
.lead-photo {
	position: absolute;
	inset: 0;
	display: block;
	background: #d5deea;
	overflow: hidden;
}
.lead-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.42) 46%, rgba(8, 16, 28, 0.12) 100%);
}
.lead-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-copy {
	position: relative;
	z-index: 1;
	padding: 2.6rem 1.45rem 3.5rem;
	color: #fff;
}
.lead-copy .kicker { color: #f0d7a2; }
.lead-copy h1,
.lead-copy h2,
.lead-copy h1 a,
.lead-copy h2 a,
.lead-copy .dek,
.lead-copy .meta { color: #fff; }
.lead-copy h1 a:hover,
.lead-copy h2 a:hover { color: #fff; }
.lead-copy .meta span + span::before { color: rgba(255, 255, 255, 0.55); }
.lead-main.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.lead-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	padding: 0.15rem 1rem 0.85rem;
}
.lead-dots { display: flex; gap: 0.4rem; align-items: center; }
.lead-dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}
.lead-dot[aria-selected="true"] {
	width: 1.35rem;
	background: #fff;
}
.lead-arrow {
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	position: relative;
}
.lead-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.4rem;
	height: 0.4rem;
	border-right: 1.5px solid var(--ink);
	border-bottom: 1.5px solid var(--ink);
}
.lead-prev::before { transform: translate(-30%, -50%) rotate(135deg); }
.lead-next::before { transform: translate(-70%, -50%) rotate(-45deg); }
.lead-arrow:hover { border-color: var(--teal); }
.lead-arrow:hover::before { border-color: var(--teal); }

.card,
.panel {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.lead-main h1,
.lead-main h2,
.archive-head h1,
.page-head h1,
.entry-title {
	font-family: var(--serif);
	font-weight: 650;
	letter-spacing: -0.03em;
	line-height: 1.12;
	margin: 0 0 0.7rem;
}
.lead-main h1,
.lead-main h2 { font-size: clamp(1.65rem, 2.4vw, 2.25rem); }
.lead-main h1 a,
.lead-main h2 a,
.card h2 a,
.card h3 a { color: inherit; text-decoration: none; }
.card h2 a:hover,
.card h3 a:hover { color: var(--teal); }
.lead-main .lead-copy h1 a,
.lead-main .lead-copy h2 a { color: #fff; text-decoration: none; }
.lead-main .lead-copy h1 a:hover,
.lead-main .lead-copy h2 a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.12em; }

.dek,
.excerpt {
	color: var(--ink-soft);
	font-size: 1.12rem;
	margin: 0 0 1rem;
}
.meta {
	color: var(--muted);
	font-size: 0.88rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.8rem;
}
.meta span + span::before {
	content: "·";
	margin-right: 0.8rem;
	color: var(--rule-strong);
}

.issue-rail {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: var(--navy);
	color: #e8eef6;
	border-radius: 16px;
	padding: 1.15rem 1.15rem 0.35rem;
	box-shadow: var(--shadow);
}
.issue-rail-label {
	margin: 0 0 0.35rem;
	color: var(--brass);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.issue-rail ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.issue-rail li + li { border-top: 1px solid rgba(232, 238, 246, 0.14); }
.issue-rail a {
	display: grid;
	grid-template-columns: 3.6rem minmax(0, 1fr);
	column-gap: 0.75rem;
	row-gap: 0.15rem;
	padding: 0.9rem 0.1rem;
	color: #fff;
	text-decoration: none;
}
.issue-rail time {
	grid-row: 1 / span 2;
	padding-top: 0.15rem;
	color: var(--brass);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.issue-rail a span {
	color: #b7c6da;
	font-size: 0.78rem;
	font-weight: 600;
}
.issue-rail a strong {
	font-family: var(--serif);
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.3;
}
.issue-rail a:hover strong { text-decoration: underline; text-underline-offset: 0.12em; }

.section-block { margin-top: 2.4rem; }
.section-block header,
.archive-head,
.page-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	margin-bottom: 0.9rem;
	border-bottom: 1px solid var(--rule-strong);
	padding-bottom: 0.45rem;
}
.section-dek {
	margin: 0.2rem 0 0;
	max-width: 62ch;
	color: var(--muted);
	font-size: 0.95rem;
}
.section-block h2,
.archive-head h1,
.page-head h1 {
	font-family: var(--serif);
	font-size: 1.7rem;
	margin: 0;
	font-weight: 650;
}
.section-block header a { font-weight: 650; font-size: 0.92rem; }

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.9rem;
}
.card { padding: 1.05rem 1.1rem 1rem; display: flex; flex-direction: column; }
.card h3 {
	font-family: var(--serif);
	font-size: 1.22rem;
	line-height: 1.25;
	margin: 0 0 0.45rem;
	font-weight: 650;
}
.card .excerpt { font-size: 0.98rem; flex: 1; }
.card .meta { margin-top: 0.6rem; }

.section-media,
.section-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.9rem;
}
.media-card {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}
.media-photo { display: block; aspect-ratio: 16 / 10; background: #d5deea; }
.media-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-body { padding: 0.85rem 0.95rem 0.95rem; }
.media-card .kicker {
	margin-bottom: 0.3rem;
	font-size: 0.68rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	text-transform: none;
}
.media-card h3 {
	font-family: var(--serif);
	font-size: 1.02rem;
	line-height: 1.35;
	margin: 0 0 0.35rem;
	font-weight: 650;
}
.media-card h3 a { color: inherit; text-decoration: none; }
.media-card h3 a:hover { color: var(--teal); }
.media-card .excerpt {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.45;
	color: var(--ink-soft);
}
.media-card .meta { margin-top: 0.55rem; }

.section-rows { display: flex; flex-direction: column; }
.row-item {
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr) auto;
	gap: 1rem 1.4rem;
	align-items: baseline;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--rule);
}
.row-item h3 {
	font-family: var(--serif);
	font-size: 1.18rem;
	line-height: 1.25;
	margin: 0 0 0.3rem;
	font-weight: 650;
	color: var(--ink);
}
.row-item h3 a { color: var(--ink); text-decoration: none; }
.row-item h3 a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.12em; }
.row-item .excerpt { margin: 0; font-size: 0.98rem; color: #3e4e60; }
.row-item .kicker { margin: 0; color: #8a5a22; }
.row-item .meta { color: #243044; font-weight: 600; }

.section-briefs {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 0.75rem;
}
.brief-item {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 14px;
	overflow: hidden;
	padding: 0.95rem 1.1rem;
}
.brief-item:first-child {
	grid-column: 1;
	grid-row: 1 / span var(--brief-side, 3);
	display: flex;
	flex-direction: column;
	padding: 0;
}
.brief-item:not(:first-child) { grid-column: 2; }
.brief-item:not(:first-child) .brief-photo { display: none; }
.brief-photo { display: block; aspect-ratio: 16 / 9; background: #d5deea; }
.brief-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brief-item:first-child > div { padding: 0.95rem 1.1rem 1.1rem; }
.brief-item h3 {
	font-family: var(--serif);
	font-size: 1.15rem;
	line-height: 1.25;
	margin: 0 0 0.35rem;
	font-weight: 650;
}
.brief-item h3 a { color: inherit; text-decoration: none; }
.brief-item h3 a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.12em; }
.brief-item .kicker { margin-bottom: 0.25rem; }

.section-notes {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--rule);
	border-left: 3px solid var(--teal);
	border-radius: 14px;
	padding: 0.35rem 1.1rem 0.15rem;
}
.note-item {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--rule);
}
.note-item:first-child { padding-top: 0.15rem; }
.note-item h3 {
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.25;
	margin: 0 0 0.3rem;
	font-weight: 650;
}
.note-item h3 a { color: var(--ink); text-decoration: none; }
.note-item h3 a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.note-item .excerpt { margin: 0; font-size: 0.98rem; color: #3e4e60; }
.note-item .kicker { margin-bottom: 0.2rem; }

.section-feature { display: flex; flex-direction: column; gap: 0.85rem; }
.feature-item {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 0;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.feature-photo { display: block; min-height: 150px; background: #d5deea; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-item > div { padding: 1rem 1.15rem; }
.feature-item h3 {
	font-family: var(--serif);
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 0.4rem;
	font-weight: 650;
}
.feature-item h3 a { color: inherit; text-decoration: none; }
.feature-item h3 a:hover { color: var(--teal); }
.feature-item .excerpt { margin-bottom: 0.55rem; }

.index-list {
	list-style: none;
	margin: 0;
	padding: 0.15rem 1.1rem;
	counter-reset: prj;
	background: #e7eef6;
	border-radius: 14px;
}
.index-list li {
	counter-increment: prj;
	border-bottom: 1px solid var(--rule);
}
.index-list a {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
	padding: 0.9rem 0;
	color: inherit;
	text-decoration: none;
	font-family: var(--serif);
	font-size: 1.12rem;
	font-weight: 650;
	color: var(--ink);
}
.index-list a::before {
	content: counter(prj, decimal-leading-zero);
	color: var(--teal);
	font-family: var(--sans);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-right: 0.9rem;
}
.index-list a span {
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 500;
	color: #5c6b7c;
	white-space: nowrap;
}
.index-list a strong { flex: 1; color: var(--ink); }
.index-list a:hover strong { color: var(--ink); text-decoration: underline; text-underline-offset: 0.12em; }

.home-note {
	margin-top: 2.2rem;
	padding: 1.1rem 1.2rem;
	background: #f6f1e8;
	border-radius: 14px;
	border: 1px solid #e4d9c8;
	box-shadow: none;
}
.home-note p { margin: 0.35rem 0 0; }
.home-note p:first-child { margin-top: 0; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 1.6rem;
	align-items: start;
}

.entry {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 16px;
	padding: 1.7rem 1.8rem 2rem;
	box-shadow: var(--shadow);
	overflow: hidden;
}
.entry-photo { margin: -1.7rem -1.8rem 1.2rem; }
.entry-photo img {
	width: 100%;
	height: 22rem;
	object-fit: cover;
	display: block;
}
.entry-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.entry-dek { font-size: 1.2rem; color: var(--ink-soft); margin-top: 0; }

.prose { max-width: var(--measure); }
.prose h2 {
	font-family: var(--serif);
	font-size: 1.45rem;
	margin: 1.6rem 0 0.45rem;
	font-weight: 650;
}
.prose p { margin: 0 0 0.95rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.25rem 0; }

.source-box,
.supply-note,
.disclaimer-box {
	border-radius: 12px;
	padding: 0.95rem 1rem;
	margin: 1.1rem 0 1.3rem;
}
.source-box {
	background: #f3f7f7;
	border: 1px solid #c9dbdc;
}
.source-box h2,
.supply-note h2,
.disclaimer-box h2 {
	font-family: var(--sans);
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 0.45rem;
}
.source-box ul { list-style: none; margin: 0; padding: 0; }
.source-box li { margin: 0.25rem 0; }
.supply-note {
	background: #f8f4ee;
	border: 1px dashed var(--rule-strong);
}
.supply-note p { margin: 0 0 0.6rem; }
.disclaimer-box {
	background: transparent;
	border: 0;
	padding: 0.2rem 0 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.sidebar { display: flex; flex-direction: column; gap: 0.8rem; position: sticky; top: 5.5rem; }
.suggested { margin-top: 2.2rem; }
.suggested header { margin-bottom: 0.85rem; }
.suggested h2 {
	font-family: var(--serif);
	font-size: 1.7rem;
	margin: 0;
	font-weight: 650;
}
.panel { padding: 1.05rem 1.1rem 1.1rem; }
.panel h2 {
	font-family: var(--serif);
	font-size: 1.08rem;
	margin: 0 0 0.7rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--rule);
	font-weight: 650;
}
.panel p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.92rem;
	line-height: 1.5;
}
.panel p + .search-form,
.panel .search-form { margin-top: 0.8rem; }
.panel ol,
.panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.panel li {
	margin: 0;
	border-bottom: 1px solid var(--rule);
}
.panel li:last-child { border-bottom: 0; }
.panel li a {
	display: block;
	padding: 0.55rem 0;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.35;
	color: var(--ink);
}
.panel ol { counter-reset: panel; }
.panel ol li { counter-increment: panel; }
.panel ol li a::before {
	content: counter(panel, decimal-leading-zero);
	display: inline-block;
	min-width: 1.6rem;
	margin-right: 0.35rem;
	color: var(--teal);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.panel li a:hover { color: var(--teal); }

.archive-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
}
.archive-item {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 14px;
	overflow: hidden;
}
.archive-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0.85rem 0.95rem 0.9rem;
}
.archive-photo {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #d5deea;
}
.archive-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.archive-item .kicker {
	margin-bottom: 0.28rem;
	font-size: 0.68rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	text-transform: none;
}
.archive-item h2 {
	font-family: var(--serif);
	font-size: 1.02rem;
	margin: 0 0 0.3rem;
	line-height: 1.35;
	hyphens: manual;
}
.archive-item h2 a { color: inherit; text-decoration: none; }
.archive-item h2 a:hover { color: var(--teal); }
.archive-item .excerpt {
	margin: 0 0 0.7rem;
	font-size: 0.86rem;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.archive-photo .study-pill {
	position: absolute;
	left: 0.55rem;
	bottom: 0.55rem;
	z-index: 1;
	max-width: calc(100% - 1.1rem);
	white-space: normal;
	line-height: 1.25;
	background: rgba(255, 255, 255, 0.94);
}
.archive-meta {
	margin-top: auto;
	padding-top: 0.7rem;
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0;
	color: #5c6b7c;
	font-size: 0.8rem;
}
.archive-meta span + span::before { content: none; margin: 0; }
.archive-meta span:not(.archive-mol)::after {
	content: "·";
	margin: 0 0.45rem;
	color: var(--rule-strong);
}
.archive-meta .archive-mol {
	margin-left: auto;
	color: var(--ink);
	font-weight: 650;
}

.search-list { display: flex; flex-direction: column; gap: 0.75rem; }
.search-item {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 14px;
	padding: 1.05rem 1.2rem 1rem;
}
.search-item h2 {
	font-family: var(--serif);
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 0.35rem;
	font-weight: 650;
}
.search-item h2 a { color: inherit; text-decoration: none; }
.search-item h2 a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.search-item .excerpt { margin: 0 0 0.55rem; font-size: 1rem; }
.search-empty { margin: 0.5rem 0 0; }
.archive-kicker-row {
	display: flex;
	justify-content: space-between;
	gap: 0.8rem;
	align-items: center;
}
.study-pill {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--navy);
	background: #e7eef6;
	border-radius: 999px;
	padding: 0.2rem 0.55rem;
	white-space: nowrap;
}
.panel .search-form { margin-top: 0.7rem; }
.panel .search-form input[type="search"] { width: 100%; min-width: 0; }

.pagination { margin-top: 1.4rem; display: flex; gap: 0.8rem; }
.archive-pager {
	margin-top: 1.35rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rule);
}
.archive-pager ul.page-numbers {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
}
.archive-pager li { margin: 0; }
.archive-pager a.page-numbers,
.archive-pager span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.35rem;
	height: 2.35rem;
	padding: 0 0.55rem;
	border-radius: 8px;
	background: transparent;
	border: 1px solid transparent;
	text-decoration: none;
	font-weight: 650;
	color: var(--ink);
}
.archive-pager a.page-numbers:hover {
	border-color: var(--rule-strong);
	background: #fff;
	color: var(--ink);
}
.archive-pager span.current {
	background: var(--teal);
	border-color: var(--teal);
	color: #fff;
}
.archive-pager a.prev,
.archive-pager a.next,
.archive-pager span.prev,
.archive-pager span.next {
	min-width: auto;
	padding: 0 0.7rem;
	color: var(--teal);
}
.archive-pager a.prev:hover,
.archive-pager a.next:hover {
	background: transparent;
	border-color: transparent;
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}
.archive-pager .is-disabled { color: var(--muted); }

.site-footer {
	border-top: 1px solid var(--rule);
	background: var(--teal-deep);
	color: #e7eeef;
}
.site-footer a { color: #b7d4f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
	max-width: var(--site);
	margin: 0 auto;
	padding: 1.6rem 1.25rem 1.8rem;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 1.4rem;
}
.footer-logo-link { display: inline-block; line-height: 0; margin-bottom: 0.75rem; }
.footer-logo-link:hover { text-decoration: none; }
.footer-logo { display: block; height: 46px; width: auto; }
.home-faq {
	margin-top: 2.8rem;
	padding: 1.35rem 1.45rem 1.25rem;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: 16px;
	box-shadow: var(--shadow);
}
.home-faq > .kicker { margin-bottom: 0.85rem; }
.faq-item {
	padding: 1rem 0 1.05rem;
	border-top: 1px solid var(--rule);
}
.faq-item:first-child { border-top: 0; padding-top: 0; }
.home-faq h2 {
	font-family: var(--serif);
	font-size: 1.32rem;
	line-height: 1.25;
	margin: 0 0 0.4rem;
	font-weight: 650;
}
.home-faq .faq-item p { margin: 0; max-width: 72ch; color: var(--ink-soft); }
.home-faq ul {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.4rem;
	max-width: 72ch;
}
.home-faq li {
	margin: 0;
	padding: 0.55rem 0.75rem 0.55rem 0.85rem;
	background: var(--highlight);
	border-radius: 8px;
	color: var(--ink-soft);
	border-left: 3px solid var(--teal);
}
.home-defs-label { margin: 1.15rem 0 0.7rem; }
.home-defs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.75rem;
	margin: 0;
}
.home-defs div {
	background: var(--paper);
	border-radius: 12px;
	padding: 0.95rem 1rem 1.05rem;
}
.home-defs dt {
	font-family: var(--serif);
	font-size: 1.08rem;
	font-weight: 650;
	margin-bottom: 0.3rem;
}
.home-defs dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.site-footer h2 {
	font-family: var(--serif);
	font-size: 1.15rem;
	margin: 0 0 0.4rem;
	color: #fff;
}
.site-footer p, .site-footer li { font-size: 0.95rem; color: #d5e2e4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.25rem 0; }
.legal {
	max-width: var(--site);
	margin: 0 auto;
	padding: 0 1.25rem 0.35rem;
	color: #b7c9cb;
	font-size: 0.85rem;
}
.site-footer .theme-credit {
	max-width: var(--site);
	margin: 0 auto;
	padding: 0 1.25rem 1.3rem;
	color: #8ea4ab;
	font-size: 0.8rem;
}

@media (min-width: 901px) {
	.mega:hover .mega-panel { display: block; }
	.mega:hover .mega-panel--pages { display: grid; }
}

@media (max-width: 900px) {
	.utility-inner { flex-direction: column; align-items: flex-start; }
	.masthead { align-items: center; }
	.lead, .layout, .card-grid, .section-media, .section-cards, .footer-grid, .mega-grid, .home-defs { grid-template-columns: 1fr; }
	.row-item, .feature-item { grid-template-columns: 1fr; }
	.section-briefs { grid-template-columns: 1fr; }
	.archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.brief-item:first-child { grid-row: auto; grid-column: auto; }
	.brief-item:not(:first-child) { grid-column: auto; }
	.feature-photo { aspect-ratio: 16 / 9; }
	.sidebar { position: static; }
	.masthead,
	.mast-tools,
	.search-form { min-width: 0; }
	.section-block header { flex-wrap: wrap; align-items: flex-start; }
	.section-block header > div { min-width: 0; flex: 1 1 16rem; }
	.section-block header a { white-space: nowrap; }
	.archive-kicker-row { flex-wrap: wrap; align-items: flex-start; }
	.index-list a { flex-wrap: wrap; }
	.index-list a span { white-space: normal; }
	.nav-toggle { display: inline-flex; margin: 0.75rem 1rem 0.15rem; }
	.primary-list { display: none; flex-direction: column; padding-bottom: 0.6rem; }
	.primary-nav.is-open {
		position: fixed;
		inset: 0;
		z-index: 80;
		display: flex;
		flex-direction: column;
		background: #f4f7fb;
		overflow: hidden;
	}
	.admin-bar .primary-nav.is-open { top: 32px; }
	.primary-nav.is-open .primary-list {
		display: flex;
		flex: 1;
		overflow: auto;
		max-width: none;
		margin: 0;
		padding: 0.15rem 1rem 2rem;
		gap: 0;
	}
	.primary-nav.is-open .mega-toggle,
	.primary-nav.is-open .nav-direct {
		width: 100%;
		justify-content: space-between;
		padding: 0.95rem 0;
		font-size: 1.05rem;
		text-align: left;
	}
	.primary-nav.is-open .mega.is-open .mega-panel {
		margin: 0.15rem 0 0.55rem;
		padding: 1rem 1rem 1.05rem;
		border: 1px solid var(--rule);
		border-radius: 12px;
		background: #fff;
		box-shadow: none;
	}
	.primary-nav.is-open .mega-intro,
	.primary-nav.is-open .mega-grid {
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}
	.primary-nav.is-open .mega-intro { margin-bottom: 0.85rem; padding-top: 0; }
	.primary-nav.is-open .mega-intro .kicker,
	.primary-nav.is-open .mega-col .kicker { margin: 0 0 0.45rem; }
	.primary-nav.is-open .mega-col + .mega-col { margin-top: 0.95rem; }
	.primary-nav.is-open .mega-aside { margin: 0.75rem 0 0; max-width: none; }
	.mega-panel,
	.mega.is-open .mega-panel,
	.mega:focus-within .mega-panel,
	.mega:hover .mega-panel {
		position: static;
		display: none;
		box-shadow: none;
		border-top: 0;
		padding: 0 0 0.4rem;
		background: #fff;
		color: var(--ink);
	}
	.mega.is-open .mega-panel { display: block; }
	.mega.is-open .mega-panel--pages,
	.mega:hover .mega-panel--pages { display: block; }
	.mega-intro p:last-child,
	.mega-link span,
	.mega-aside,
	.mega-col a { color: var(--muted); }
	.mega-col a { color: var(--ink); }
	.mega-link { background: #f7f9fb; border-color: var(--rule); }
	.mega:hover .mega-panel { display: none; }
	.mega.is-open .mega-panel { display: block; }
}

@media (max-width: 782px) {
	.admin-bar .primary-nav,
	.admin-bar .primary-nav.is-open { top: 46px; }
}

@media (max-width: 640px) {
	body { font-size: 0.97rem; }
	.utility-inner { padding: 0.4rem 0.8rem; gap: 0.35rem; }
	.utility-kicker { font-size: 0.64rem; letter-spacing: 0.08em; }
	.utility-links { flex-wrap: wrap; gap: 0.4rem 0.7rem; }
	.utility-links a { font-size: 0.75rem; }
	.masthead { padding: 0.6rem 0.8rem 0.5rem; gap: 0.6rem; }
	.mark--logo img,
	.custom-logo { height: 36px; max-height: 36px; max-width: 8.6rem; }
	.mast-tools { flex: 1 1 auto; }
	.search-form--mast { flex: 1; width: 100%; }
	.search-form--mast input[type="search"] {
		width: 1px;
		flex: 1;
		min-width: 0;
		padding: 0.35rem 0.65rem;
		font-size: 0.85rem;
	}
	.search-form--mast button,
	.search-form button { padding: 0.35rem 0.65rem; font-size: 0.85rem; }
	.nav-toggle { margin: 0.45rem 0.75rem; }
	.primary-nav.is-open .nav-toggle { margin: 0.7rem 1rem 0.15rem; }
	.wrap { padding: 0.95rem 0.75rem 1.9rem; }
	.kicker { font-size: 0.66rem; letter-spacing: 0.07em; }
	.lead { margin-bottom: 1.25rem; }
	.lead-copy { padding: 1.15rem 0.8rem 2.55rem; }
	.lead-controls { padding: 0.1rem 0.7rem 0.65rem; }
	.lead-main h1,
	.lead-main h2 { font-size: 1.28rem; margin-bottom: 0.35rem; }
	.dek,
	.excerpt { font-size: 0.92rem; margin-bottom: 0.65rem; }
	.meta { font-size: 0.78rem; gap: 0.25rem 0.55rem; }
	.side-item { padding: 0.75rem 0.8rem; }
	.side-item h2 { font-size: 1rem; }
	.section-block { margin-top: 1.45rem; }
	.section-block h2,
	.archive-head h1,
	.page-head h1,
	.entry-title { font-size: 1.38rem; }
	.section-dek { font-size: 0.86rem; }
	.section-block header a { font-size: 0.84rem; }
	.brief-item { padding: 0.7rem 0.75rem; }
	.brief-item:first-child > div { padding: 0.7rem 0.75rem 0.85rem; }
	.brief-item h3,
	.row-item h3,
	.note-item h3,
	.feature-item h3,
	.card h3,
	.archive-item h2,
	.search-item h2 { font-size: 1.02rem; }
	.media-card h3 { font-size: 0.96rem; }
	.media-body,
	.archive-body { padding: 0.65rem 0.7rem 0.75rem; }
	.card { padding: 0.8rem 0.8rem 0.75rem; }
	.card .excerpt,
	.row-item .excerpt,
	.note-item .excerpt,
	.search-item .excerpt { font-size: 0.88rem; }
	.row-item { gap: 0.3rem 0.5rem; padding: 0.7rem 0; }
	.feature-item > div { padding: 0.75rem 0.8rem; }
	.section-notes { padding: 0.2rem 0.75rem 0.05rem; }
	.index-list { padding: 0.05rem 0.7rem; }
	.index-list a { font-size: 0.98rem; gap: 0.15rem 0.55rem; padding: 0.65rem 0; }
	.home-note { margin-top: 1.25rem; padding: 0.75rem 0.8rem; }
	.home-faq { margin-top: 1.45rem; padding: 0.9rem 0.8rem 0.8rem; }
	.home-faq h2 { font-size: 1.08rem; }
	.faq-item { padding: 0.75rem 0 0.8rem; }
	.home-defs div { padding: 0.7rem 0.75rem 0.8rem; }
	.home-defs dt { font-size: 0.98rem; }
	.home-defs dd { font-size: 0.86rem; }
	.entry { padding: 0.9rem 0.8rem 1.05rem; }
	.entry-photo { margin: -0.9rem -0.8rem 0.75rem; }
	.entry-photo img { height: 11rem; }
	.entry-dek { font-size: 0.98rem; }
	.prose h2 { font-size: 1.18rem; margin-top: 1.2rem; }
	.source-box,
	.supply-note { padding: 0.7rem 0.75rem; }
	.source-box a,
	.prose a,
	.entry a { overflow-wrap: anywhere; }
	.archive-list { grid-template-columns: 1fr; }
	.search-item { padding: 0.75rem 0.75rem 0.7rem; }
	.entry .search-form,
	.panel .search-form { width: 100%; }
	.entry .search-form input[type="search"] {
		width: 1px;
		flex: 1;
		min-width: 0;
	}
	.footer-grid { padding: 1.05rem 0.75rem 1rem; gap: 0.9rem; }
	.footer-logo { height: 34px; }
	.site-footer h2 { font-size: 1.02rem; }
	.site-footer p,
	.site-footer li { font-size: 0.88rem; }
	.legal { padding: 0 0.75rem 0.25rem; font-size: 0.78rem; }
	.site-footer .theme-credit { padding: 0 0.75rem 1rem; font-size: 0.75rem; }
	.suggested { margin-top: 1.4rem; }
	.panel { padding: 0.85rem 0.85rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
	.lead-main { transition: none; }
}
