/*
Theme Name: The Death Reports
Theme URI: https://thedeathreports.com
Description: A minimal, fast, accessible newsroom theme for The Death Reports. Requires the Death Reports Engine plugin to function.
Author: The Death Reports
Author URI: https://thedeathreports.com
Version: 0.1.2
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-death-reports
Tags: news, blog, custom-colors, dark-mode, accessibility-ready, translation-ready
*/

/* ---------------------------------------------------------------------------
   Design tokens (light is default; dark overrides via [data-theme="dark"]).
   --------------------------------------------------------------------------- */
:root {
	--drep-bg: #ffffff;
	--drep-surface: #f6f7f8;
	--drep-border: #e2e4e7;
	--drep-text: #14181c;
	--drep-muted: #5b6671;
	--drep-accent: #b91c1c;
	--drep-accent-text: #ffffff;
	--drep-link: #0a66c2;
	--drep-max: 1180px;
	--drep-radius: 10px;
	--drep-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--drep-serif: Georgia, "Times New Roman", serif;
}

[data-theme="dark"] {
	--drep-bg: #14181c;
	--drep-surface: #1e242b;
	--drep-border: #2c343d;
	--drep-text: #e7eaed;
	--drep-muted: #9aa6b2;
	--drep-accent: #ef4444;
	--drep-link: #6cb6ff;
}

/* ---------------------------------------------------------------------------
   Base.
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--drep-bg);
	color: var(--drep-text);
	font-family: var(--drep-font);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--drep-link); }
img { max-width: 100%; height: auto; }

.drep-container {
	max-width: var(--drep-max);
	margin: 0 auto;
	padding: 0 20px;
}

.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 {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--drep-accent);
	color: var(--drep-accent-text);
	padding: 10px 16px;
	z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------------------
   Reading progress bar.
   --------------------------------------------------------------------------- */
.drep-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px; width: 0;
	background: var(--drep-accent);
	z-index: 1001;
	transition: width .1s linear;
}

/* ---------------------------------------------------------------------------
   Header.
   --------------------------------------------------------------------------- */
.drep-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--drep-bg);
	border-bottom: 1px solid var(--drep-border);
}
.drep-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 64px;
	position: relative;
}

.drep-menu-toggle {
	display: none;
	margin-left: auto;
	background: var(--drep-surface);
	border: 1px solid var(--drep-border);
	color: var(--drep-text);
	width: 38px;
	height: 38px;
	border-radius: 8px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.drep-brand {
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -.02em;
	text-decoration: none;
	color: var(--drep-text);
}
.drep-brand span { color: var(--drep-accent); }
.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.custom-logo {
	height: 48px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
	display: block;
}
@media (max-width: 600px) {
	.custom-logo { height: 38px; }
}
.drep-nav { margin-left: auto; }
.drep-nav ul {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0; padding: 0;
}
.drep-nav a { text-decoration: none; color: var(--drep-text); font-weight: 600; font-size: 15px; }
.drep-nav a:hover { color: var(--drep-accent); }

.drep-theme-toggle {
	background: var(--drep-surface);
	border: 1px solid var(--drep-border);
	color: var(--drep-text);
	border-radius: 999px;
	width: 38px; height: 38px;
	cursor: pointer;
	font-size: 16px;
}


/* ---------------------------------------------------------------------------
   Layout.
   --------------------------------------------------------------------------- */
.drep-main { padding: 32px 0 64px; }

/* Breadcrumbs (visually hidden; BreadcrumbList schema still output for SEO) */
.drep-crumbs { display: none; }
.drep-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--drep-muted); }
.drep-crumbs li { display: flex; align-items: center; gap: 6px; }
.drep-crumbs li + li::before { content: "›"; color: var(--drep-border); }
.drep-crumbs a { color: var(--drep-muted); text-decoration: none; }
.drep-crumbs a:hover { color: var(--drep-accent); }
.drep-crumbs [aria-current="page"] { color: var(--drep-text); font-weight: 600; }
.drep-section { margin-bottom: 48px; }
.drep-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--drep-muted);
	border-bottom: 2px solid var(--drep-border);
	padding-bottom: 8px;
	margin: 0 0 20px;
}
.drep-section__title.is-breaking { color: var(--drep-accent); border-color: var(--drep-accent); }

.drep-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* Fixed three-across row (collapses on small screens). */
.drep-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
	.drep-grid--3 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Cards.
   --------------------------------------------------------------------------- */
.drep-card {
	background: var(--drep-bg);
	border: 1px solid var(--drep-border);
	border-radius: var(--drep-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.drep-card__media { aspect-ratio: 16/9; background: var(--drep-surface); overflow: hidden; }
.drep-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Image placeholder (uniform cards when no photo). */
.drep-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient( circle at 30% 25%, rgba(255,255,255,0.06), transparent 60% ),
		linear-gradient( 135deg, var(--drep-accent), #6b1111 );
	color: #fff;
	font-weight: 800;
	font-size: 2.4rem;
	line-height: 1;
	letter-spacing: 0.02em;
	user-select: none;
}
.drep-lead__media .drep-ph { font-size: 4.5rem; }
.drep-headline__media .drep-ph { font-size: 1.4rem; }
.drep-side-people .drep-ph { font-size: 1.1rem; border-radius: 50%; }
.drep-figure .drep-ph { aspect-ratio: 16 / 9; border-radius: var(--drep-radius); font-size: 5rem; }

/* Category-tinted placeholders. */
.drep-ph--music    { background: linear-gradient( 135deg, #7e22ce, #3b0764 ); }
.drep-ph--sport    { background: linear-gradient( 135deg, #15803d, #052e16 ); }
.drep-ph--politics { background: linear-gradient( 135deg, #475569, #1e293b ); }
.drep-ph--film-tv  { background: linear-gradient( 135deg, #0a66c2, #082f49 ); }
.drep-ph--business { background: linear-gradient( 135deg, #0f766e, #042f2e ); }
.drep-ph--royalty  { background: linear-gradient( 135deg, #b45309, #422006 ); }
.drep-ph--celebrity{ background: linear-gradient( 135deg, #be185d, #500724 ); }
.drep-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.drep-card__title { margin: 0; font-size: 18px; line-height: 1.3; }
.drep-card__title a { color: var(--drep-text); text-decoration: none; }
.drep-card__title a:hover { color: var(--drep-accent); }
.drep-card__meta { font-size: 13px; color: var(--drep-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.drep-card__excerpt { font-size: 14px; color: var(--drep-muted); margin: 0; }

.drep-badge--breaking {
	background: var(--drep-accent);
	color: var(--drep-accent-text);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 2px 8px;
	border-radius: 4px;
}

/* ---------------------------------------------------------------------------
   Single.
   --------------------------------------------------------------------------- */
.drep-article { max-width: 760px; margin: 0 auto; }
.drep-article__header { margin-bottom: 24px; }
.drep-article__title { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 12px 0; }
.drep-article__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--drep-muted); font-size: 14px; }
.drep-article__content { font-family: var(--drep-serif); font-size: 19px; line-height: 1.75; }
.drep-article__content p { margin: 0 0 1.2em; }
.drep-figure { margin: 0 0 24px; }
.drep-figure figcaption { font-size: 13px; color: var(--drep-muted); margin-top: 6px; }

/* Person profile bio table */
.drep-profile-facts {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 15px;
}
.drep-profile-facts th, .drep-profile-facts td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--drep-border);
	vertical-align: top;
}
.drep-profile-facts th { width: 180px; color: var(--drep-muted); font-weight: 600; }

/* ---------------------------------------------------------------------------
   Footer.
   --------------------------------------------------------------------------- */
.drep-footer {
	border-top: 1px solid var(--drep-border);
	background: var(--drep-surface);
	padding: 32px 0;
	color: var(--drep-muted);
	font-size: 14px;
}
.drep-social {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}
.drep-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--drep-accent);
	transition: transform .15s ease, opacity .15s ease;
}
.drep-social__link:hover { transform: translateY(-2px); opacity: .9; }
.drep-social__link img { width: 18px; height: 18px; display: block; }

/* ---------------------------------------------------------------------------
   Notices.
   --------------------------------------------------------------------------- */
.drep-notice {
	max-width: 640px;
	margin: 80px auto;
	padding: 32px;
	border: 1px solid var(--drep-border);
	border-radius: var(--drep-radius);
	background: var(--drep-surface);
	text-align: center;
}

/* ---------------------------------------------------------------------------
   Homepage CTA (Search + Newsletter).
   --------------------------------------------------------------------------- */
.drep-home-cta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.drep-home-cta__box {
	background: var(--drep-surface);
	border: 1px solid var(--drep-border);
	border-radius: var(--drep-radius);
	padding: 20px;
}
.drep-section__more { color: var(--drep-link); text-decoration: none; font-weight: 600; }

.drep-search,
.drep-newsletter {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.drep-search input[type="search"],
.drep-newsletter input[type="email"] {
	flex: 1 1 200px;
	padding: 10px 12px;
	border: 1px solid var(--drep-border);
	border-radius: 8px;
	background: var(--drep-bg);
	color: var(--drep-text);
	font-size: 15px;
}
.drep-search button,
.drep-newsletter button {
	border: 0;
	background: var(--drep-accent);
	color: #fff;
	font-weight: 700;
	border-radius: 8px;
	padding: 10px 18px;
	cursor: pointer;
}
.drep-newsletter__notice { color: var(--drep-muted); font-size: 14px; margin: 0 0 8px; }

/* ---------------------------------------------------------------------------
   Engine blocks.
   --------------------------------------------------------------------------- */
.drep-quote,
.drep-tribute {
	border-left: 3px solid var(--drep-accent);
	margin: 24px 0;
	padding: 8px 0 8px 18px;
	font-family: var(--drep-serif);
	font-style: italic;
}
.drep-quote cite,
.drep-tribute cite { display: block; margin-top: 8px; font-size: 14px; color: var(--drep-muted); font-style: normal; }

.drep-timeline { list-style: none; margin: 24px 0; padding: 0; border-left: 2px solid var(--drep-border); }
.drep-timeline__item { position: relative; padding: 0 0 20px 20px; }
.drep-timeline__item::before {
	content: ""; position: absolute; left: -7px; top: 5px;
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--drep-accent);
}
.drep-timeline__date { color: var(--drep-muted); font-size: 13px; }
.drep-timeline__item p { margin: 4px 0 0; }

.drep-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 24px 0; }
.drep-block-gallery figure { margin: 0; }
.drep-block-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

/* Widgets */
.widget { margin: 0 0 28px; }
.widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--drep-muted); border-bottom: 2px solid var(--drep-border); padding-bottom: 6px; }
.drep-widget-list { list-style: none; margin: 0; padding: 0; }
.drep-widget-item { padding: 8px 0; border-bottom: 1px solid var(--drep-border); font-size: 15px; }
.drep-widget-item a { text-decoration: none; color: var(--drep-text); font-weight: 600; }
.drep-widget-item a:hover { color: var(--drep-accent); }
.drep-widget-meta { color: var(--drep-muted); font-size: 13px; }

/* Related content / internal linking */
.drep-related-wrap {
	margin: 40px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--drep-border);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}
.drep-related-block__title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--drep-muted); margin: 0 0 8px; }
.drep-related-block ul { list-style: none; margin: 0; padding: 0; }
.drep-related-block li { padding: 5px 0; border-bottom: 1px solid var(--drep-border); font-size: 14px; }
.drep-related-block a { text-decoration: none; color: var(--drep-text); }
.drep-related-block a:hover { color: var(--drep-accent); }

/* Corrections */
.drep-corrections {
	margin: 32px 0 0;
	padding: 16px 18px;
	background: var(--drep-surface);
	border: 1px solid var(--drep-border);
	border-radius: var(--drep-radius);
}
.drep-corrections__title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--drep-muted); margin: 0 0 10px; }
.drep-corrections ul { margin: 0; padding-left: 18px; }
.drep-corrections li { font-size: 14px; margin-bottom: 6px; }
.drep-corrections time { color: var(--drep-muted); }

/* Search filters */
.drep-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.drep-filters input[type="search"],
.drep-filters select {
	padding: 9px 10px;
	border: 1px solid var(--drep-border);
	border-radius: 8px;
	background: var(--drep-bg);
	color: var(--drep-text);
	font-size: 14px;
}
.drep-filters input[type="search"] { flex: 1 1 220px; }
.drep-filters button {
	border: 0; background: var(--drep-accent); color: #fff;
	font-weight: 700; border-radius: 8px; padding: 9px 16px; cursor: pointer;
}

/* Print obituary button */
.drep-print-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px solid var(--drep-border);
	color: var(--drep-text);
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
}

/* Infinite scroll loading indicator */
.drep-loading { text-align: center; padding: 24px; color: var(--drep-muted); }

/* Share button (byline) */
.drep-share-btn-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--drep-accent);
	border: 0;
	color: #fff;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.drep-share-btn-inline[disabled] { opacity: .6; cursor: wait; }

/* Share-card modal */
.drep-share-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	background: rgba(0, 0, 0, .7);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.drep-share-modal__box {
	background: var(--drep-bg);
	border-radius: var(--drep-radius);
	padding: 18px;
	max-width: 420px;
	width: 100%;
	max-height: 92vh;
	overflow: auto;
	position: relative;
}
.drep-share-modal__close {
	position: absolute;
	top: 10px; right: 10px;
	background: var(--drep-surface);
	border: 1px solid var(--drep-border);
	color: var(--drep-text);
	width: 32px; height: 32px;
	border-radius: 999px;
	cursor: pointer;
}
.drep-share-modal__canvas canvas {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.drep-share-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.drep-share-btn {
	flex: 1 1 auto;
	background: var(--drep-surface);
	border: 1px solid var(--drep-border);
	color: var(--drep-text);
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}
.drep-share-btn--primary { background: var(--drep-accent); border-color: var(--drep-accent); color: #fff; }

/* ---------------------------------------------------------------------------
   Homepage — hero / lead.
   --------------------------------------------------------------------------- */
.drep-hero {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 28px;
	margin: 28px 0 44px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--drep-border);
}
.drep-lead { display: flex; flex-direction: column; }
.drep-lead__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--drep-radius);
	background: var(--drep-surface);
}
.drep-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.drep-lead__title {
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 16px 0 10px;
}
.drep-lead__title a { color: var(--drep-text); text-decoration: none; }
.drep-lead__title a:hover { color: var(--drep-accent); }
.drep-lead__excerpt { font-size: 17px; color: var(--drep-muted); margin: 0 0 12px; }

.drep-hero__secondary { display: flex; flex-direction: column; }
.drep-hero__secondary h2 { margin-top: 0; }

.drep-headline {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--drep-border);
}
.drep-headline:first-of-type { padding-top: 0; }
.drep-headline__media {
	flex: 0 0 84px;
	width: 84px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--drep-surface);
}
.drep-headline__media img { width: 100%; height: 100%; object-fit: cover; }
.drep-headline__title { margin: 0; font-size: 15px; line-height: 1.3; }
.drep-headline__title a { color: var(--drep-text); text-decoration: none; }
.drep-headline__title a:hover { color: var(--drep-accent); }
.drep-headline__date { display: block; margin-top: 4px; font-size: 12px; color: var(--drep-muted); }

.drep-kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--drep-accent);
	margin-bottom: 6px;
}

/* ---------------------------------------------------------------------------
   Homepage — main + sidebar layout.
   --------------------------------------------------------------------------- */
.drep-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 44px;
	align-items: start;
}
.drep-col-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 28px; }

.drep-panel {
	background: var(--drep-surface);
	border: 1px solid var(--drep-border);
	border-radius: var(--drep-radius);
	padding: 18px;
}
.drep-panel__title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--drep-muted);
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--drep-border);
}

.drep-rank { list-style: none; counter-reset: drep; margin: 0; padding: 0; }
.drep-rank li {
	counter-increment: drep;
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--drep-border);
}
.drep-rank li:last-child { border-bottom: 0; }
.drep-rank li::before {
	content: counter(drep);
	font-weight: 800;
	font-size: 18px;
	color: var(--drep-accent);
	line-height: 1.2;
	min-width: 20px;
}
.drep-rank a { color: var(--drep-text); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.35; }
.drep-rank a:hover { color: var(--drep-accent); }

.drep-side-people { list-style: none; margin: 0; padding: 0; }
.drep-side-people li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--drep-border); }
.drep-side-people li:last-child { border-bottom: 0; }
.drep-side-people img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--drep-bg); }
.drep-avatar { flex: 0 0 44px; width: 44px; height: 44px; display: block; border-radius: 50%; overflow: hidden; }
.drep-side-people a { color: var(--drep-text); text-decoration: none; font-weight: 600; font-size: 14px; }
.drep-side-people a:hover { color: var(--drep-accent); }
.drep-side-people span { display: block; font-size: 12px; color: var(--drep-muted); }

/* ---------------------------------------------------------------------------
   Static pages.
   --------------------------------------------------------------------------- */
.drep-page { max-width: 760px; margin: 0 auto; padding: 8px 0 48px; }
.drep-page__title { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 8px 0 20px; }
.drep-page__content { font-size: 18px; line-height: 1.75; }
.drep-page__content h2 { margin-top: 1.6em; }
.drep-page__content p { margin: 0 0 1.1em; }
.drep-page__content ul { margin: 0 0 1.1em 1.2em; }

/* ---------------------------------------------------------------------------
   Single death report (article).
   --------------------------------------------------------------------------- */
.drep-report { max-width: 760px; margin: 0 auto; padding: 8px 0 48px; }
.drep-report__title { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 16px; }
.drep-report__dek { font-size: 21px; line-height: 1.5; color: var(--drep-muted); font-family: var(--drep-serif); margin: 0 0 18px; }
.drep-report__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	color: var(--drep-muted);
	font-size: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--drep-border);
}
.drep-report__author { font-weight: 700; color: var(--drep-text); }
.drep-report__byline .drep-print-btn { margin-left: auto; }
.drep-report__figure { margin: 24px 0; }
.drep-report__figure img { border-radius: var(--drep-radius); }

.drep-profile-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 40px;
	padding: 16px 18px;
	background: var(--drep-surface);
	border: 1px solid var(--drep-border);
	border-radius: var(--drep-radius);
}
.drep-profile-card__photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.drep-profile-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.drep-profile-card__photo .drep-ph { font-size: 1.4rem; border-radius: 50%; }
.drep-profile-card__body { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.drep-profile-card__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--drep-muted); }
.drep-profile-card__name { font-weight: 800; font-size: 18px; color: var(--drep-text); text-decoration: none; }
.drep-profile-card__name:hover { color: var(--drep-accent); }
.drep-profile-card__life { font-size: 13px; color: var(--drep-muted); }
.drep-profile-card__cta { flex: 0 0 auto; color: var(--drep-link); text-decoration: none; font-weight: 700; font-size: 14px; }
.drep-profile-card__cta:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Single profile (memorial).
   --------------------------------------------------------------------------- */
.drep-profile { padding: 8px 0 48px; }
.drep-profile__head {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 36px;
	align-items: end;
	padding-bottom: 28px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--drep-border);
}
.drep-profile__photo {
	aspect-ratio: 3 / 4;
	border-radius: var(--drep-radius);
	overflow: hidden;
	background: var(--drep-surface);
}
.drep-profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.drep-profile__photo .drep-ph { font-size: 4rem; }
.drep-profile__name {
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 8px 0;
}
.drep-profile__lifespan { font-size: 18px; color: var(--drep-muted); margin: 0 0 12px; }
.drep-profile__knownfor {
	font-size: 19px;
	font-family: var(--drep-serif);
	font-style: italic;
	margin: 0 0 18px;
}
.drep-profile__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 44px;
	align-items: start;
}
.drep-profile__aside { position: sticky; top: 84px; }

.drep-facts { margin: 0; }
.drep-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--drep-muted); margin-top: 12px; }
.drep-facts dt:first-child { margin-top: 0; }
.drep-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.drep-facts__sub { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--drep-muted); margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--drep-border); }
.drep-facts__links { list-style: none; margin: 0; padding: 0; }
.drep-facts__links li { margin-bottom: 6px; }
.drep-facts__links a { color: var(--drep-link); text-decoration: none; font-size: 14px; }
.drep-facts__links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
	.drep-profile__head { grid-template-columns: 1fr; align-items: start; }
	.drep-profile__photo { max-width: 240px; }
	.drep-profile__body { grid-template-columns: 1fr; }
	.drep-profile__aside { position: static; }
}

/* ---------------------------------------------------------------------------
   Footer (multi-column).
   --------------------------------------------------------------------------- */
.drep-footer { border-top: 3px solid var(--drep-accent); background: var(--drep-surface); padding: 48px 0 24px; }
.drep-footer__grid {
	display: grid;
	grid-template-columns: 2.2fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 36px;
}
.drep-footer__brand-col { max-width: 360px; }
.drep-footer__brand { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--drep-text); text-decoration: none; }
.drep-footer__brand span { color: var(--drep-accent); }
.drep-footer__about { color: var(--drep-muted); font-size: 14px; margin: 12px 0 18px; line-height: 1.6; }

.drep-footer__news strong { display: block; font-size: 13px; margin-bottom: 8px; }
.drep-footer__news .drep-newsletter { gap: 8px; }
.drep-footer__news input[type="email"] {
	flex: 1 1 160px;
	padding: 9px 11px;
	border: 1px solid var(--drep-border);
	border-radius: 8px;
	background: var(--drep-bg);
	color: var(--drep-text);
	font-size: 14px;
}
.drep-footer__news button {
	border: 0; background: var(--drep-accent); color: #fff;
	font-weight: 700; border-radius: 8px; padding: 9px 16px; cursor: pointer;
}

.drep-footer__col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--drep-text); margin: 0 0 14px; }
.drep-footer__col ul { list-style: none; margin: 0; padding: 0; }
.drep-footer__col li { margin-bottom: 10px; }
.drep-footer__col a { color: var(--drep-muted); text-decoration: none; font-size: 14px; }
.drep-footer__col a:hover { color: var(--drep-accent); }

.drep-footer__bottom {
	border-top: 1px solid var(--drep-border);
	padding-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	color: var(--drep-muted);
	font-size: 13px;
}
.drep-footer__tag { font-style: italic; }

@media (max-width: 980px) {
	.drep-hero { grid-template-columns: 1fr; }
	.drep-layout { grid-template-columns: 1fr; }
	.drep-col-side { position: static; }
	.drep-footer__grid { grid-template-columns: 1fr 1fr; }
	.drep-footer__brand-col { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
	.drep-footer__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Print (obituary-friendly).
   --------------------------------------------------------------------------- */
@media print {
	.drep-header,
	.drep-footer,
	.drep-nav,
	.drep-progress,
	.drep-consent,
	.drep-theme-toggle,
	.drep-print-btn,
	.drep-related-wrap,
	.skip-link,
	.navigation {
		display: none !important;
	}
	body { background: #fff; color: #000; }
	.drep-main { padding: 0; }
	.drep-article { max-width: 100%; }
	a { color: #000; text-decoration: none; }
	.drep-article__content, .drep-profile-facts { font-size: 12pt; }
}

@media (max-width: 700px) {
	.drep-home-cta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.drep-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.drep-nav { display: none; }
	.drep-nav.is-open {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--drep-bg);
		border-top: 1px solid var(--drep-border);
		border-bottom: 1px solid var(--drep-border);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
		z-index: 950;
	}
	.drep-nav.is-open ul { flex-direction: column; gap: 0; }
	.drep-nav.is-open li { padding: 0 20px; }
	.drep-nav.is-open a { display: block; padding: 12px 0; border-bottom: 1px solid var(--drep-border); }
	.drep-nav.is-open li:last-child a { border-bottom: 0; }
}
