/*
Theme Name: Laughtism
Description: Premium news child theme for GeneratePress. v3 — mosaic overlay hero, ticker, mixed editorial zones.
Template: generatepress
Version: 3.0.0
Author: Aspire Services
Text Domain: daily-report
*/

/* ============ Design tokens ============ */
:root {
	--ink: #0e1220;
	--ink-soft: #2a3040;
	--muted: #525f78;
	--bg: #ffffff;
	--bg-alt: #f4f6fb;
	--border: #e4e8f2;
	--accent: #1b4fe8;
	--accent-dark: #1440c4;
	--accent-tint: #eaf0ff;
	--navy: #0b1230;
	--cat-politics: #e11d48;
	--cat-economy: #059669;
	--cat-world: #1b4fe8;
	--cat-opinion: #7c3aed;
	--cat-science-tech: #0891b2;
	--cat-culture: #d97706;
	--head: "Poppins", "Segoe UI", sans-serif;
	--sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
	--content-w: 1280px;
	--radius: 14px;
	--shadow: 0 1px 3px rgba(14, 18, 32, 0.05), 0 10px 28px rgba(14, 18, 32, 0.07);
	--shadow-hover: 0 6px 16px rgba(27, 79, 232, 0.14), 0 20px 48px rgba(14, 18, 32, 0.16);
}

body {
	font-family: var(--sans);
	color: var(--ink);
	background: var(--bg);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .entry-title, .site-title {
	font-family: var(--head);
	color: var(--ink);
	letter-spacing: -0.015em;
}

a { color: var(--ink); transition: color 0.15s ease; }
a:hover { color: var(--accent); }
.dr-card h3 a, .dr-overlay h3 a, .dr-list-item h4 a, .dr-trend-item h4 a,
.dr-opinion-card h3 a, .dr-cat, .dr-more, .dr-footer a,
.main-navigation a, .main-title a, .dr-ticker a {
	text-decoration: none;
}

/* ============ Top bar + ticker ============ */
.dr-topbar {
	background: var(--navy);
	color: rgba(219, 226, 255, 0.75);
	font-size: 12.5px;
	overflow: hidden;
}
.dr-topbar-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 38px;
}
.dr-topbar-date {
	white-space: nowrap;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.dr-ticker {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}
.dr-ticker-label {
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
	animation: dr-pulse 2s infinite;
}
@keyframes dr-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(27, 79, 232, 0.5); }
	50% { box-shadow: 0 0 0 6px rgba(27, 79, 232, 0); }
}
.dr-ticker-viewport {
	overflow: hidden;
	min-width: 0;
	flex: 1;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.dr-ticker-track {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	white-space: nowrap;
	animation: dr-marquee 60s linear infinite;
}
.dr-ticker-track:hover { animation-play-state: paused; }
.dr-ticker-track a { color: rgba(219, 226, 255, 0.85); }
.dr-ticker-track a:hover { color: #fff; }
.dr-ticker-sep { color: var(--accent); font-size: 7px; }
@keyframes dr-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ============ Header ============ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 2px 16px rgba(14, 18, 32, 0.05);
}
.site-header .inside-header {
	max-width: var(--content-w);
	margin: 0 auto;
	padding: 14px 24px !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.site-logo img, .header-image { max-height: 44px; width: auto; }
.main-title { font-size: 28px; font-weight: 800; font-style: italic; margin: 0; }
.main-title a { color: var(--accent) !important; }
.site-description { display: none; }
.site-logo ~ .main-title, .site-branding-container .main-title { display: none; }

/* Navigation */
.main-navigation { background: transparent; }
.main-navigation .main-nav ul li a {
	font-family: var(--head);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--ink-soft);
	padding: 10px 14px;
	line-height: 1;
	position: relative;
}
.main-navigation .main-nav ul li a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 2px;
	height: 2.5px;
	background: var(--accent);
	border-radius: 2px;
	transform: scaleX(0);
	transition: transform 0.2s ease;
}
.main-navigation .main-nav ul li a:hover::after,
.main-navigation .main-nav ul li.current-menu-item > a::after { transform: scaleX(1); }
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--accent); background: transparent; }
.main-navigation ul li:hover > a { background: transparent; }

/* ============ Shared ============ */
/* Full-bleed page: sections manage their own width via .dr-wrap,
   so the GP container must not cap or pad the page. */
#page.grid-container, #page {
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
}
.site-content { padding: 0; }
/* .site-content is a flex row in GP — stretch our main to full width */
.dr-home, .dr-archive { width: 100%; }

.dr-wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
.dr-section { padding: 40px 0 4px; }

.dr-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 14px;
}
.dr-section-head h2 {
	font-size: 25px;
	font-weight: 800;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}
.dr-section-head h2::after {
	content: "";
	display: block;
	width: 100%;
	min-width: 40px;
	height: 1px;
	background: var(--border);
}
.dr-section-head { position: relative; }
.dr-section-head h2::before {
	content: "";
	width: 5px;
	height: 24px;
	border-radius: 3px;
	background: var(--accent);
	flex: none;
}
.dr-zone.politics .dr-section-head h2::before { background: var(--cat-politics); }
.dr-zone.economy .dr-section-head h2::before { background: var(--cat-economy); }
.dr-section.world .dr-section-head h2::before { background: var(--cat-world); }
.dr-zone.science-tech .dr-section-head h2::before { background: var(--cat-science-tech); }
.dr-zone.culture .dr-section-head h2::before { background: var(--cat-culture); }
.dr-section-head .dr-more {
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent);
	white-space: nowrap;
	background: var(--accent-tint);
	padding: 7px 14px;
	border-radius: 999px;
	transition: all 0.2s ease;
}
.dr-section-head .dr-more:hover { background: var(--accent); color: #fff; }

/* Category chips */
.dr-cat {
	display: inline-block;
	font-family: var(--sans);
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--accent);
	background: var(--accent-tint);
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
	width: fit-content;
}
.dr-cat.politics { color: var(--cat-politics); background: #fdecf1; }
.dr-cat.economy { color: var(--cat-economy); background: #e7f6f0; }
.dr-cat.world { color: var(--cat-world); background: var(--accent-tint); }
.dr-cat.opinion { color: var(--cat-opinion); background: #f1eafd; }
.dr-cat.science-tech { color: var(--cat-science-tech); background: #e6f6fa; }
.dr-cat.culture { color: var(--cat-culture); background: #fdf1e2; }
/* Solid variant for overlays */
.dr-cat-solid, .dr-cat-solid.politics, .dr-cat-solid.economy, .dr-cat-solid.world,
.dr-cat-solid.opinion, .dr-cat-solid.science-tech, .dr-cat-solid.culture {
	color: #fff;
}
.dr-cat-solid { background: var(--accent); }
.dr-cat-solid.politics { background: var(--cat-politics); }
.dr-cat-solid.economy { background: var(--cat-economy); }
.dr-cat-solid.world { background: var(--cat-world); }
.dr-cat-solid.opinion { background: var(--cat-opinion); }
.dr-cat-solid.science-tech { background: var(--cat-science-tech); }
.dr-cat-solid.culture { background: var(--cat-culture); }

/* Meta + avatar */
.dr-meta {
	font-size: 12.5px;
	color: var(--muted);
	display: flex;
	gap: 7px;
	align-items: center;
	flex-wrap: wrap;
}
.dr-meta .dr-author { font-weight: 600; color: var(--ink-soft); }
.dr-avatar {
	width: 26px; height: 26px;
	border-radius: 50%;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.03em;
	flex: none;
}

/* ============ Mosaic hero ============ */
.dr-hero-mosaic { padding: 28px 0 8px; }
.dr-mosaic-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 18px;
}
.dr-mosaic-side {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 18px;
}

/* Overlay cards */
.dr-overlay {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--navy);
	box-shadow: var(--shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	min-height: 200px;
}
.dr-overlay:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.dr-overlay-link { display: block; position: absolute; inset: 0; }
.dr-overlay-link img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.dr-overlay:hover .dr-overlay-link img { transform: scale(1.06); }
.dr-overlay-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 18, 48, 0) 30%, rgba(11, 18, 48, 0.55) 62%, rgba(11, 18, 48, 0.92) 100%);
	pointer-events: none;
}
.dr-overlay-body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	padding: 22px;
	pointer-events: none;
}
.dr-overlay-body a, .dr-overlay-body .dr-cat { pointer-events: auto; }
.dr-overlay-body .dr-cat { margin-bottom: 8px; }
.dr-overlay h3 {
	margin: 0 0 8px;
	font-weight: 700;
	line-height: 1.3;
}
.dr-overlay h3 a { color: #fff; }
.dr-overlay h3 a:hover { color: #b9c8ff; }
.dr-overlay .dr-meta { color: rgba(219, 226, 255, 0.75); }
.dr-overlay .dr-meta .dr-author { color: rgba(255, 255, 255, 0.95); }
.dr-overlay-lead { aspect-ratio: 16 / 10.5; }
.dr-overlay-lead h3 { font-size: 30px; line-height: 1.2; }
.dr-overlay-lead .dr-overlay-body { padding: 28px; }
.dr-overlay-sm h3 { font-size: 15.5px; }
.dr-overlay-sm .dr-overlay-body { padding: 16px; }
.dr-overlay-sm .dr-meta { font-size: 11px; }
.dr-overlay-sm .dr-cat { font-size: 9.5px; padding: 3px 8px; margin-bottom: 6px; }

/* Overlay row (World) */
.dr-overlay-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	padding-bottom: 36px;
}
.dr-overlay-row .dr-overlay { aspect-ratio: 3 / 3.4; }

/* ============ Trending strip ============ */
.dr-trending { padding: 40px 0 4px; }
.dr-trending .dr-flame { font-style: normal; }
.dr-trending-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--shadow);
}
.dr-trend-item {
	display: flex;
	gap: 12px;
	padding: 20px;
	border-right: 1px solid var(--border);
	transition: background 0.2s ease;
}
.dr-trend-item:last-child { border-right: 0; }
.dr-trend-item:hover { background: var(--bg-alt); }
.dr-trend-num {
	font-family: var(--head);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--accent);
	flex: none;
}
.dr-trend-item .dr-cat { font-size: 9.5px; padding: 3px 8px; margin-bottom: 6px; }
.dr-trend-item h4 {
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dr-trend-item h4 a { color: var(--ink); }
.dr-trend-item h4 a:hover { color: var(--accent); }

/* ============ Zones (featured + list) ============ */
.dr-zones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 44px;
	padding-bottom: 36px;
}
.dr-zone-list {
	display: flex;
	flex-direction: column;
	margin-top: 6px;
}
.dr-list-item {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
	align-items: flex-start;
}
.dr-list-item:last-child { border-bottom: 0; }
.dr-list-thumb {
	flex: 0 0 120px;
	aspect-ratio: 16 / 11;
	border-radius: 10px;
	overflow: hidden;
	background: var(--bg-alt);
}
.dr-list-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.dr-list-item:hover .dr-list-thumb img { transform: scale(1.06); }
.dr-list-body { min-width: 0; }
.dr-list-item .dr-cat { font-size: 9.5px; padding: 3px 8px; margin-bottom: 5px; }
.dr-list-item h4 {
	font-size: 15.5px;
	line-height: 1.4;
	font-weight: 600;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dr-list-item h4 a { color: var(--ink); }
.dr-list-item h4 a:hover { color: var(--accent); }
.dr-list-item .dr-meta { font-size: 12px; }

/* ============ Card ============ */
.dr-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.dr-card .dr-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 8.5;
	background: var(--bg-alt);
}
.dr-card .dr-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.dr-card:hover .dr-thumb img { transform: scale(1.05); }
.dr-card-body {
	display: flex;
	flex-direction: column;
	padding: 18px 20px;
	flex: 1;
}
.dr-card h3 {
	font-size: 19px;
	line-height: 1.35;
	font-weight: 700;
	margin: 0 0 8px;
}
.dr-card h3 a { color: var(--ink); }
.dr-card h3 a:hover { color: var(--accent); }
.dr-card .dr-excerpt {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.6;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dr-card .dr-meta { margin-top: auto; }

/* ============ Opinion band ============ */
.dr-opinion-band {
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(27, 79, 232, 0.35), transparent),
		linear-gradient(135deg, var(--navy) 0%, #131f56 100%);
	color: #dbe2ff;
	padding: 52px 0;
	margin: 44px 0 4px;
}
.dr-opinion-band .dr-section-head h2 { color: #fff; }
.dr-opinion-band .dr-section-head h2::before { background: #5b7dff; }
.dr-opinion-band .dr-section-head h2::after { background: rgba(255, 255, 255, 0.15); }
.dr-opinion-band .dr-section-head .dr-more { background: rgba(255, 255, 255, 0.1); color: #9db1ff; }
.dr-opinion-band .dr-section-head .dr-more:hover { background: var(--accent); color: #fff; }
.dr-opinion-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.dr-opinion-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	padding: 26px;
	transition: background 0.2s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
}
.dr-opinion-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.dr-opinion-card h3 {
	font-size: 18.5px;
	line-height: 1.42;
	font-weight: 600;
	margin: 0 0 18px;
}
.dr-opinion-card h3 a { color: #fff; }
.dr-opinion-card h3 a:hover { color: #9db1ff; }
.dr-opinion-card .dr-quote {
	font-family: Georgia, serif;
	font-size: 44px;
	line-height: 1;
	color: #5b7dff;
	display: block;
	margin-bottom: 8px;
}
.dr-op-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
}
.dr-op-meta .dr-avatar { width: 34px; height: 34px; font-size: 12px; }
.dr-op-author { display: block; color: #fff; font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.dr-op-date { display: block; color: rgba(219, 226, 255, 0.55); font-size: 12px; }

/* ============ Newsletter band ============ */
.dr-news-band {
	background:
		radial-gradient(800px 300px at 15% 120%, rgba(27, 79, 232, 0.12), transparent),
		var(--accent-tint);
	border-top: 1px solid var(--border);
	padding: 60px 0;
	margin-top: 36px;
	text-align: center;
}
.dr-news-kicker {
	display: table;
	margin-left: auto;
	margin-right: auto;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent);
	background: #fff;
	border: 1px solid var(--border);
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.dr-news-band h2 { font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.dr-news-band p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.dr-news-band form {
	display: flex;
	gap: 10px;
	justify-content: center;
	max-width: 480px;
	margin: 0 auto;
}
.dr-news-band input[type="email"] {
	flex: 1;
	padding: 14px 18px;
	border: 1px solid var(--border);
	border-radius: 12px;
	font-family: var(--sans);
	font-size: 15px;
	background: #fff;
}
.dr-news-band input[type="email"]:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: var(--accent);
}
.dr-news-band button {
	padding: 14px 30px;
	background: linear-gradient(135deg, var(--accent) 0%, #4c74ff 100%);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-family: var(--head);
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
	box-shadow: 0 6px 18px rgba(27, 79, 232, 0.4);
}
.dr-news-band button:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ============ Footer ============ */
.dr-footer {
	background: var(--navy);
	color: rgba(219, 226, 255, 0.7);
	padding: 56px 0 32px;
	font-size: 14px;
}
.dr-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}
.dr-footer h4 {
	color: #fff;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 16px;
}
.dr-footer .dr-footer-brand {
	font-family: var(--head);
	font-style: italic;
	font-size: 28px;
	font-weight: 800;
	color: #5b7dff;
	margin: 0 0 12px;
}
.dr-footer ul { list-style: none; margin: 0; padding: 0; }
.dr-footer ul li { margin-bottom: 10px; }
.dr-footer a { color: rgba(219, 226, 255, 0.7); }
.dr-footer a:hover { color: #fff; }
.dr-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: rgba(219, 226, 255, 0.45);
}
.site-footer .site-info { display: none; }

/* ============ Single article ============ */
.single .site-main, .page .site-main { margin: 0 auto; }
.single .entry-header {
	max-width: 800px;
	margin: 44px auto 24px;
	padding: 0 24px;
	text-align: center;
}
.single h1.entry-title {
	font-size: 38px;
	line-height: 1.2;
	font-weight: 800;
	margin: 12px 0 16px;
}
.single .entry-meta { font-size: 14px; color: var(--muted); }
.single .entry-content, .page .entry-content {
	max-width: 700px;
	margin: 0 auto;
	padding: 0 24px;
	font-size: 18px;
	line-height: 1.8;
	color: var(--ink-soft);
}
.single .entry-content > p:first-of-type::first-letter {
	font-family: var(--head);
	font-size: 58px;
	line-height: 0.85;
	float: left;
	padding: 8px 12px 0 0;
	font-weight: 800;
	color: var(--accent);
}
.single .entry-content a { color: var(--accent); }
.single .featured-image, .single .post-image {
	max-width: 1000px;
	margin: 0 auto 32px;
	padding: 0 24px;
}
.single .featured-image img, .single .post-image img { border-radius: 16px; }

/* Category archive */
.archive .page-header {
	max-width: var(--content-w);
	margin: 40px auto 0;
	padding: 0 24px 18px;
	position: relative;
}
.archive .page-header::after {
	content: "";
	position: absolute;
	left: 24px; bottom: 0;
	width: 64px; height: 3px;
	background: var(--accent);
	border-radius: 2px;
}
.archive .page-header h1 { font-size: 36px; font-weight: 800; margin: 0; }
.dr-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	padding-bottom: 36px;
}

/* Pagination */
.page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	margin-right: 6px;
	font-weight: 600;
	text-decoration: none;
}
.page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============ Homepage v5: readability pass ============ */

/* Hero: overlay lead + white rail */
.dr-hero-mosaic { padding: 32px 0 10px; }
.dr-mosaic-grid { grid-template-columns: 1.75fr 1fr; gap: 28px; align-items: stretch; }
.dr-overlay-lead { aspect-ratio: auto; min-height: 480px; }
.dr-overlay-lead h3 { font-size: 34px; line-height: 1.18; }
.dr-overlay-lead .dr-overlay-shade {
	background: linear-gradient(180deg, rgba(11, 18, 48, 0.02) 25%, rgba(11, 18, 48, 0.62) 62%, rgba(11, 18, 48, 0.95) 100%);
}

.dr-hero-rail {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 6px 22px 10px;
	display: flex;
	flex-direction: column;
}
.dr-rail-title {
	font-size: 16px;
	font-weight: 800;
	margin: 16px 0 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
	position: relative;
}
.dr-rail-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 44px; height: 3px;
	background: var(--accent);
	border-radius: 2px;
}
.dr-rail-item {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding: 15px 0;
	border-bottom: 1px solid var(--border);
	flex: 1;
}
.dr-rail-item:last-child { border-bottom: 0; }
.dr-rail-body { min-width: 0; }
.dr-rail-item .dr-cat { font-size: 10px; padding: 3px 9px; margin-bottom: 6px; }
.dr-rail-item h4 {
	font-size: 15.5px;
	line-height: 1.42;
	font-weight: 600;
	margin: 0 0 5px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dr-rail-item h4 a { color: var(--ink); text-decoration: none; }
.dr-rail-item h4 a:hover { color: var(--accent); }
.dr-rail-meta { font-size: 12px; color: var(--muted); }
.dr-rail-thumb {
	flex: 0 0 86px;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--bg-alt);
}
.dr-rail-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.dr-rail-item:hover .dr-rail-thumb img { transform: scale(1.07); }

/* Trending: soft band with white cards */
.dr-trending {
	background: var(--bg-alt);
	padding: 46px 0 40px;
	margin-top: 36px;
}
.dr-trending-grid {
	border: 0;
	background: transparent;
	box-shadow: none;
	gap: 16px;
	overflow: visible;
}
.dr-trend-item {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 22px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dr-trend-item:hover {
	background: #fff;
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}
.dr-trend-num { font-size: 34px; }
.dr-trend-item h4 { font-size: 14.5px; line-height: 1.45; }

/* Readability: larger, calmer type + rhythm */
.dr-section { padding: 50px 0 8px; }
.dr-section-head { margin-bottom: 30px; }
.dr-section-head h2 { font-size: 28px; }
.dr-card h3 { font-size: 20px; line-height: 1.38; }
.dr-card .dr-excerpt { font-size: 14.5px; -webkit-line-clamp: 3; }
.dr-card-body { padding: 20px 22px; }
.dr-list-item h4 { font-size: 16.5px; }
.dr-zones { gap: 56px; }
.dr-opinion-card h3 { font-size: 20px; line-height: 1.45; }

/* World: 3 large, readable tiles */
.dr-overlay-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dr-overlay-row .dr-overlay { aspect-ratio: 16 / 11; }
.dr-overlay-row .dr-overlay-sm h3 { font-size: 19px; line-height: 1.32; }
.dr-overlay-row .dr-overlay-sm .dr-overlay-body { padding: 20px; }
.dr-overlay-sm .dr-overlay-shade {
	background: linear-gradient(180deg, rgba(11, 18, 48, 0.02) 25%, rgba(11, 18, 48, 0.6) 60%, rgba(11, 18, 48, 0.94) 100%);
}

/* ============ Motion: scroll reveal ============ */
@media (prefers-reduced-motion: no-preference) {
	.dr-reveal {
		opacity: 0;
		transform: translateY(26px);
		transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
		transition-delay: var(--dr-delay, 0s);
	}
	.dr-reveal.dr-in { opacity: 1; transform: none; }
}

/* Reading progress bar */
.dr-progress {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--accent), #7c3aed);
	transform: scaleX(0);
	transform-origin: 0 50%;
	z-index: 300;
	pointer-events: none;
}

/* Back to top */
.dr-top {
	position: fixed;
	right: 22px; bottom: 22px;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 0;
	background: var(--accent);
	color: #fff;
	font-size: 19px;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(27, 79, 232, 0.4);
	opacity: 0;
	transform: translateY(14px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
	z-index: 200;
}
.dr-top-show { opacity: 1; transform: none; pointer-events: auto; }
.dr-top:hover { background: var(--accent-dark); }

/* ============ Color polish ============ */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #c3cee6; border-radius: 8px; border: 3px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Alternating band: World section on soft blue */
.dr-section.world {
	background: var(--bg-alt);
	padding: 40px 0 8px;
	margin-top: 12px;
}
.dr-section.world .dr-overlay-row { padding-bottom: 40px; }

/* Gradient headline for newsletter */
.dr-news-band h2 {
	background: linear-gradient(92deg, var(--accent) 20%, #7c3aed 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

/* ============ Single article v4 ============ */
.dr-single-main { width: 100%; }
.dr-article-header {
	max-width: 820px;
	margin: 46px auto 26px;
	padding: 0 24px;
	text-align: center;
}
.dr-article-header .dr-cat { margin-bottom: 14px; }
.dr-article-header h1 {
	font-size: 40px;
	line-height: 1.18;
	font-weight: 800;
	margin: 0 0 20px;
}
.dr-article-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.dr-article-meta .dr-avatar { width: 42px; height: 42px; font-size: 14px; }
.dr-article-meta-text { text-align: left; }
.dr-article-author { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.dr-article-date { display: block; font-size: 13px; color: var(--muted); }

.dr-article-hero {
	max-width: 1020px;
	margin: 0 auto 36px;
	padding: 0 24px;
}
.dr-article-hero img {
	border-radius: 18px;
	width: 100%;
	box-shadow: var(--shadow);
}

.dr-article-layout {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 56px minmax(0, 700px);
	gap: 40px;
	justify-content: center;
}
.dr-share-rail {
	position: sticky;
	top: 120px;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}
.dr-share-label {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}
.dr-share-btn {
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink-soft);
	text-decoration: none;
	box-shadow: var(--shadow);
	transition: all 0.2s ease;
}
.dr-share-btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	transform: translateY(-2px);
}

.dr-article-content {
	font-size: 18px;
	line-height: 1.85;
	color: var(--ink-soft);
}
.dr-article-content > p:first-of-type::first-letter {
	font-family: var(--head);
	font-size: 58px;
	line-height: 0.85;
	float: left;
	padding: 8px 12px 0 0;
	font-weight: 800;
	color: var(--accent);
}
.dr-article-content h2 {
	font-size: 25px;
	font-weight: 700;
	margin: 42px 0 14px;
	position: relative;
	padding-left: 16px;
}
.dr-article-content h2::before {
	content: "";
	position: absolute;
	left: 0; top: 6px; bottom: 6px;
	width: 5px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--accent), #7c3aed);
}
.dr-article-content blockquote {
	border: 0;
	background: var(--accent-tint);
	border-left: 5px solid var(--accent);
	border-radius: 0 14px 14px 0;
	margin: 32px 0;
	padding: 22px 26px;
	font-family: var(--head);
	font-size: 20px;
	line-height: 1.55;
	font-weight: 600;
	color: var(--ink);
	font-style: italic;
}
.dr-article-content blockquote p { margin: 0; }
.dr-article-content ul li { margin-bottom: 8px; }
.dr-article-content ul li::marker { color: var(--accent); }
.dr-article-content a { color: var(--accent); }

/* Author box */
.dr-author-box {
	max-width: 700px;
	margin: 44px auto 0;
	padding: 26px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.dr-author-box .dr-avatar { width: 56px; height: 56px; font-size: 18px; }
.dr-author-box-kicker {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.dr-author-box h4 { margin: 2px 0 6px; font-size: 18px; font-weight: 700; }
.dr-author-box p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Related */
.dr-related { padding: 26px 0 10px; margin-top: 30px; background: var(--bg-alt); }
.dr-related .dr-section-head { padding-top: 26px; }
.dr-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	padding-bottom: 44px;
}

/* ============ 404 ============ */
.dr-404 { width: 100%; }
.dr-404-hero {
	text-align: center;
	padding: 70px 24px 30px;
}
.dr-404-code {
	font-family: var(--head);
	font-size: 120px;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(92deg, var(--accent), #7c3aed);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}
.dr-404-hero h1 { font-size: 32px; font-weight: 800; margin: 10px 0 10px; }
.dr-404-hero p { color: var(--muted); max-width: 460px; margin: 0 auto 26px; }
.dr-404-search {
	display: flex;
	gap: 10px;
	justify-content: center;
	max-width: 440px;
	margin: 0 auto 18px;
}
.dr-404-search input {
	flex: 1;
	padding: 13px 18px;
	border: 1px solid var(--border);
	border-radius: 12px;
	font-family: var(--sans);
	font-size: 15px;
}
.dr-404-search input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.dr-404-search button {
	padding: 13px 26px;
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-weight: 700;
	cursor: pointer;
}
.dr-404-search button:hover { background: var(--accent-dark); }
.dr-404-home { font-weight: 600; color: var(--accent); text-decoration: none; }
.dr-404-grid { grid-template-columns: repeat(4, 1fr); }

/* ============ Listing (ThePrint / Wire style) ============ */
.dr-listing {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 52px;
	padding: 8px 0 30px;
}
.dr-listing-main { min-width: 0; }

/* Editorial list row */
.dr-list-row {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 24px;
	padding: 26px 0;
	border-bottom: 1px solid var(--border);
	align-items: start;
}
.dr-list-row:first-child { padding-top: 10px; }
.dr-row-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: var(--bg-alt);
}
.dr-row-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.dr-list-row:hover .dr-row-thumb img { transform: scale(1.05); }
.dr-row-body .dr-cat { margin-bottom: 8px; }
.dr-row-body h3 {
	font-size: 21px;
	line-height: 1.32;
	font-weight: 700;
	margin: 0 0 8px;
}
.dr-row-body h3 a { color: var(--ink); text-decoration: none; }
.dr-row-body h3 a:hover { color: var(--accent); }
.dr-row-excerpt {
	font-size: 14.5px;
	color: var(--muted);
	line-height: 1.65;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.dr-listing-pagination { padding: 22px 0 10px; }

/* Sidebar */
.dr-sidebar {
	position: sticky;
	top: 96px;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.dr-widget {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow);
}
.dr-widget-title {
	font-size: 15px;
	font-weight: 800;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
	position: relative;
}
.dr-widget-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 44px; height: 3px;
	background: var(--accent);
	border-radius: 2px;
}
.dr-pop-item {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.dr-pop-item:last-child { border-bottom: 0; padding-bottom: 0; }
.dr-pop-item .dr-trend-num { font-size: 24px; }
.dr-pop-item h5 {
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	margin: 0 0 4px;
}
.dr-pop-item h5 a { color: var(--ink); text-decoration: none; }
.dr-pop-item h5 a:hover { color: var(--accent); }
.dr-pop-meta { font-size: 12px; color: var(--muted); }

.dr-widget-news {
	background: linear-gradient(135deg, var(--navy), #14226b);
	border: 0;
	color: #dbe2ff;
}
.dr-widget-news .dr-widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.15); }
.dr-widget-news p { font-size: 13.5px; margin: 0 0 14px; color: rgba(219,226,255,0.8); }
.dr-widget-news input {
	width: 100%;
	padding: 11px 14px;
	border: 0;
	border-radius: 9px;
	font-family: var(--sans);
	font-size: 14px;
	margin-bottom: 10px;
}
.dr-widget-news button {
	width: 100%;
	padding: 11px;
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 9px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}
.dr-widget-news button:hover { background: #4c74ff; }

.dr-side-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-side-cats .dr-cat { margin-bottom: 0; font-size: 12px; padding: 7px 14px; }

/* ============ Archive v2 ============ */
.dr-overlay-banner {
	aspect-ratio: 16 / 5.5;
	min-height: 280px;
	margin-bottom: 28px;
}
.dr-overlay-banner h3 { font-size: 30px; line-height: 1.2; max-width: 720px; }
.dr-overlay-banner .dr-overlay-body { padding: 30px 34px; }
.dr-archive-grid { padding-top: 4px; }
.dr-archive-desc { color: var(--muted); font-size: 15px; padding: 8px 0 4px; max-width: 640px; }

/* Explore tiles */
.dr-explore { padding: 8px 0 12px; }
.dr-explore-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	padding-bottom: 44px;
}
.dr-explore-tile {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 4px;
	min-height: 120px;
	padding: 18px;
	border-radius: var(--radius);
	color: #fff;
	text-decoration: none;
	background: linear-gradient(135deg, var(--accent), #4c74ff);
	box-shadow: var(--shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.dr-explore-tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
	filter: brightness(1.08);
	color: #fff;
}
.dr-explore-tile.politics { background: linear-gradient(135deg, #be123c, #f43f5e); }
.dr-explore-tile.economy { background: linear-gradient(135deg, #047857, #10b981); }
.dr-explore-tile.world { background: linear-gradient(135deg, #1b4fe8, #4c74ff); }
.dr-explore-tile.opinion { background: linear-gradient(135deg, #6d28d9, #a78bfa); }
.dr-explore-tile.science-tech { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.dr-explore-tile.culture { background: linear-gradient(135deg, #b45309, #f59e0b); }
.dr-explore-name { font-family: var(--head); font-size: 19px; font-weight: 700; }
.dr-explore-count { font-size: 12px; opacity: 0.85; font-weight: 600; }

/* Static pages */
.dr-page { width: 100%; }
.dr-page-content {
	max-width: 700px;
	margin: 0 auto;
	padding: 0 24px 30px;
}

/* Archive kicker */
.dr-archive-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent);
	background: var(--accent-tint);
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.dr-search-none { padding: 20px 0 60px; color: var(--muted); }
.dr-search-none a { color: var(--accent); font-weight: 600; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
	.dr-mosaic-grid { grid-template-columns: 1fr; }
	.dr-mosaic-side { grid-template-columns: 1fr 1fr; }
	.dr-overlay-lead { min-height: 380px; }
	.dr-overlay-lead h3 { font-size: 25px; }
	.dr-overlay-sm { min-height: 180px; }
	.dr-overlay-row { grid-template-columns: repeat(3, 1fr); }
	.dr-trending-grid { grid-template-columns: 1fr 1fr; }
	.dr-trend-item { border-bottom: 1px solid var(--border); }
	.dr-overlay-row { grid-template-columns: repeat(2, 1fr); }
	.dr-zones { grid-template-columns: 1fr; gap: 36px; }
	.dr-opinion-grid { grid-template-columns: repeat(2, 1fr); }
	.dr-footer-grid { grid-template-columns: 1fr 1fr; }
	.dr-cat-grid { grid-template-columns: repeat(2, 1fr); }
	.dr-overlay-lead h3 { font-size: 24px; }
}
@media (max-width: 640px) {
	.dr-topbar-date { display: none; }
	.dr-mosaic-side { grid-template-columns: 1fr; }
	.dr-trending-grid { grid-template-columns: 1fr; }
	.dr-trend-item { border-right: 0; }
	.dr-overlay-row, .dr-opinion-grid, .dr-cat-grid { grid-template-columns: 1fr; }
	.dr-overlay-lead h3 { font-size: 21px; }
	.dr-overlay-lead { aspect-ratio: auto; min-height: 380px; }
	.dr-overlay-lead .dr-overlay-shade,
	.dr-overlay-sm .dr-overlay-shade {
		background: linear-gradient(180deg, rgba(11, 18, 48, 0.05) 0%, rgba(11, 18, 48, 0.6) 45%, rgba(11, 18, 48, 0.95) 100%);
	}
	.single h1.entry-title { font-size: 28px; }
	.dr-news-band form { flex-direction: column; }
	.site-logo img { max-height: 34px; }
	.dr-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.dr-list-thumb { flex-basis: 100px; }
}
@media (max-width: 900px) {
	.dr-article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.dr-share-rail {
		position: static;
		flex-direction: row;
		justify-content: center;
		margin-bottom: 24px;
	}
	.dr-related-grid { grid-template-columns: 1fr; }
	.dr-404-grid { grid-template-columns: 1fr 1fr; }
	.dr-explore-grid { grid-template-columns: 1fr 1fr; }
	.dr-overlay-banner h3 { font-size: 21px; }
	.dr-listing { grid-template-columns: 1fr; gap: 32px; }
	.dr-sidebar { position: static; }
	.dr-list-row { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
	.dr-row-body h3 { font-size: 18px; }
	.dr-article-header h1 { font-size: 29px; }
	.dr-404-code { font-size: 84px; }
}
@media (max-width: 640px) {
	.dr-404-grid { grid-template-columns: 1fr; }
	.dr-list-row { grid-template-columns: 1fr; gap: 12px; }
	.dr-row-thumb { aspect-ratio: 16 / 9; }
	.dr-overlay-row { grid-template-columns: 1fr; }
	.dr-overlay-lead { min-height: 320px; }
	.dr-rail-thumb { flex-basis: 74px; }
}
