/*!
 * Graphic Data News — front-end styles
 * Everything is scoped under .gdn so it cannot leak into the rest of your theme.
 */

/* ───────────────────────────── tokens ───────────────────────────── */
.gdn {
	--gdn-accent: #0b63ce;
	--gdn-breaking: #d92d20;
	--gdn-ink: #15181d;
	--gdn-ink-2: #434a54;
	--gdn-ink-3: #6a727d;
	--gdn-paper: #ffffff;
	--gdn-wash: #f3f4f6;
	--gdn-line: #e2e5e9;
	--gdn-link: var(--gdn-accent);
	--gdn-serif: "Source Serif 4", "Source Serif Pro", Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
	--gdn-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--gdn-head: var(--gdn-serif);
	--gdn-radius: 10px;

	color: var(--gdn-ink);
	font-family: var(--gdn-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

.gdn [hidden] { display: none !important; }

.gdn h1, .gdn h2, .gdn h3, .gdn h4, .gdn p, .gdn ul, .gdn ol, .gdn figure, .gdn blockquote, .gdn figcaption {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-transform: none;
	letter-spacing: normal;
}
.gdn ul, .gdn ol { list-style: none; }
.gdn img { max-width: 100%; height: auto; display: block; }
.gdn a { color: inherit; }
.gdn button { font-family: inherit; }
.gdn :focus-visible { outline: 2px solid var(--gdn-accent); outline-offset: 3px; border-radius: 2px; }

.screen-reader-text.gdn-sr,
.gdn .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ───────────────────────────── layout ───────────────────────────── */
.gdn-article, .gdn-archive { background: var(--gdn-paper); }

.gdn-wrap {
	width: min(1120px, 100% - 40px);
	margin-inline: auto;
}
.gdn--solo .gdn-wrap { width: min(760px, 100% - 40px); }
.gdn--solo .gdn-more .gdn-wrap { width: min(1120px, 100% - 40px); }

.gdn-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	padding-block: 40px 8px;
}
@media (min-width: 1000px) {
	.gdn-article:not(.gdn--solo) .gdn-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 72px;
	}
}
.gdn-main { min-width: 0; }

/* ───────────────────────────── small parts ───────────────────────── */
.gdn-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.gdn-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 10px;
	border-radius: 4px;
	background: var(--gdn-wash);
	color: var(--gdn-ink);
	box-shadow: inset 0 0 0 1px var(--gdn-line);
	font: 700 .78rem/1 var(--gdn-sans);
	letter-spacing: .01em;
}
.gdn-badge--breaking { background: var(--gdn-breaking); color: #fff; box-shadow: none; }
.gdn-badge--breaking::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: gdn-pulse 1.6s ease-out infinite;
}
.gdn-badge--exclusive { background: #7a3cff; color: #fff; box-shadow: none; }
.gdn-badge--live { background: #0f9d58; color: #fff; box-shadow: none; }
.gdn-badge--opinion, .gdn-badge--analysis, .gdn-badge--fact-check { background: var(--gdn-wash); color: var(--gdn-ink); box-shadow: inset 0 0 0 1px var(--gdn-line); }

@keyframes gdn-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
	70%  { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.gdn-cat {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 99px;
	color: var(--gdn-link);
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
a.gdn-cat:hover { background: var(--gdn-link); border-color: var(--gdn-link); color: var(--gdn-paper); }

.gdn-btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: 8px;
	background: var(--gdn-accent);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
}
.gdn-btn:hover { filter: brightness(1.1); }

/* ───────────────────────────── progress ──────────────────────────── */
.gdn-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 99999;
	pointer-events: none;
}
.gdn-progress span {
	display: block;
	height: 100%;
	background: var(--gdn-accent);
	transform: scaleX(0);
	transform-origin: left center;
}
.admin-bar .gdn-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .gdn-progress { top: 46px; } }

/* ───────────────────────────── breadcrumbs ───────────────────────── */
.gdn-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .85rem; color: var(--gdn-ink-3); }
.gdn-crumbs li { display: inline-flex; gap: 8px; }
.gdn-crumbs li + li::before { content: "/"; opacity: .5; }
.gdn-crumbs a { text-decoration: none; }
.gdn-crumbs a:hover { text-decoration: underline; }

/* ───────────────────────────── masthead ──────────────────────────── */
.gdn-title {
	font-family: var(--gdn-head);
	font-weight: 700;
	font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
	line-height: 1.08;
	letter-spacing: -.018em !important;
	text-wrap: pretty;
	max-width: 980px;
	margin: 0 !important;
	color: inherit;
}
.gdn-dek {
	font-family: var(--gdn-head);
	font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
	line-height: 1.4;
	font-weight: 400;
	max-width: 46em;
	color: var(--gdn-ink-2);
	margin-top: 16px !important;
}

.gdn-masthead { padding-top: 44px; background: var(--gdn-paper); }
.gdn-masthead .gdn-crumbs { margin-bottom: 26px; }
.gdn-masthead .gdn-tags { margin-bottom: 18px; }

.gdn-figure {
	margin: 36px 0 0 !important;
	border-radius: 14px;
	overflow: hidden;
	background: var(--gdn-wash);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -12px rgba(16, 24, 40, .18);
}
.gdn-figure img { width: 100%; max-height: 640px; object-fit: cover; aspect-ratio: 16 / 9; }

.gdn-credit {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 18px;
	margin-top: 12px !important;
	font-size: .84rem;
	line-height: 1.4;
	color: var(--gdn-ink-3);
}
.gdn-credit__by { margin-left: auto; font-style: normal; }

/* byline */
.gdn-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 32px;
	margin-top: 28px;
	padding-block: 18px;
	border-block: 1px solid var(--gdn-line);
}
.gdn-byline__who { display: flex; align-items: center; gap: 12px; }
.gdn-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--gdn-wash); }
.gdn-avatar--lg { width: 72px; height: 72px; flex: none; }
.gdn-byline__name { display: flex; flex-direction: column; gap: 1px; font-size: 1rem; }
.gdn-byline__dateline { font-size: .85rem; color: var(--gdn-ink-3); }
.gdn-byline__facts { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .88rem; color: var(--gdn-ink-2); }
.gdn-fact { display: inline-flex; align-items: center; gap: 6px; }
.gdn-fact .gdn-icon { color: var(--gdn-ink-3); }

/* ───────────────────────────── story boxes ───────────────────────── */
.gdn-update {
	display: flex;
	gap: 12px;
	margin: 0 0 26px;
	padding: 14px 18px;
	border-left: 4px solid var(--gdn-breaking);
	border-radius: 0 8px 8px 0;
	background: #fff1f0;
	background: color-mix(in srgb, var(--gdn-breaking) 9%, var(--gdn-paper));
	font-size: .98rem;
	line-height: 1.5;
}
.gdn-update strong { color: var(--gdn-breaking); flex: none; }

.gdn-keypoints {
	margin: 0 0 34px;
	padding: 22px 26px 12px;
	border-radius: var(--gdn-radius);
	background: var(--gdn-wash);
}
.gdn-keypoints h2 { font: 700 1.05rem/1.3 var(--gdn-sans); margin-bottom: 14px; }
.gdn-keypoints li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 24px;
	font-size: 1.02rem;
	line-height: 1.55;
}
.gdn-keypoints li::before {
	content: "";
	position: absolute;
	left: 0; top: .6em;
	width: 9px; height: 9px;
	border-radius: 2px;
	background: var(--gdn-accent);
}

/* ───────────────────────────── story text ────────────────────────── */
.gdn-content {
	font-family: var(--gdn-serif);
	font-size: clamp(1.08rem, 1.02rem + .3vw, 1.2rem);
	line-height: 1.78;
	color: var(--gdn-ink);
	overflow-wrap: break-word;
}
.gdn-content > * { margin-top: 0; margin-bottom: 1.35em; }
.gdn-content > *:last-child { margin-bottom: 0; }
.gdn-content p { margin: 0 0 1.35em; }
.gdn-content h2, .gdn-content h3, .gdn-content h4 {
	font-family: var(--gdn-head);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	margin: 1.9em 0 .6em;
	text-wrap: balance;
}
.gdn-content h2 { font-size: 1.65em; }
.gdn-content h3 { font-size: 1.32em; }
.gdn-content h4 { font-size: 1.12em; }
.gdn-content a { color: var(--gdn-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gdn-content a:hover { text-decoration-thickness: 2px; }
.gdn-content ul, .gdn-content ol { padding-left: 1.4em; }
.gdn-content ul { list-style: disc; }
.gdn-content ol { list-style: decimal; }
.gdn-content li { margin: 0 0 .5em; padding: 0; }
.gdn-content li::marker { color: var(--gdn-accent); }
.gdn-content blockquote:not(.gdn-pullquote blockquote) {
	margin: 1.8em 0;
	padding: .2em 0 .2em 1.2em;
	border-left: 4px solid var(--gdn-accent);
	font-style: italic;
	color: var(--gdn-ink-2);
}
.gdn-content figure { margin: 2em 0; }
.gdn-content img { border-radius: 8px; }
.gdn-content figcaption, .gdn-content .wp-element-caption {
	margin-top: .7em;
	font: .85rem/1.45 var(--gdn-sans);
	color: var(--gdn-ink-3);
}
.gdn-content .alignwide, .gdn-content .alignfull { width: 100%; max-width: 100%; }
.gdn-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.gdn-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.gdn-content .aligncenter { margin-inline: auto; }
.gdn-content table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font: .95rem/1.5 var(--gdn-sans); }
.gdn-content th, .gdn-content td { padding: 10px 12px; border-bottom: 1px solid var(--gdn-line); text-align: left; }
.gdn-content th { background: var(--gdn-wash); }
.gdn-content hr { border: 0; height: 1px; background: var(--gdn-line); margin: 2.4em 0; }
.gdn-content pre, .gdn-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.gdn-content pre { padding: 16px; overflow-x: auto; background: var(--gdn-wash); border-radius: 8px; }
.gdn-content iframe, .gdn-content video { max-width: 100%; }
.gdn-content::after { content: ""; display: block; clear: both; }

.gdn-pullquote {
	margin: 2.2em 0 !important;
	padding: 1.3em 0;
	border-block: 2px solid var(--gdn-accent);
}
.gdn-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--gdn-head);
	font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.05rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.01em;
	font-style: normal;
	color: var(--gdn-ink);
	text-wrap: balance;
}
.gdn-pullquote blockquote p { margin: 0; }
.gdn-pullquote figcaption { margin-top: 1em; font: 600 .9rem/1.4 var(--gdn-sans); color: var(--gdn-link); }

/* ───────────────────────────── sections ──────────────────────────── */
.gdn-section { margin-top: 44px; }
.gdn-h { font: 700 1.15rem/1.3 var(--gdn-sans); margin-bottom: 14px; }

.gdn-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--gdn-radius); background: var(--gdn-wash); }
.gdn-video iframe, .gdn-video video, .gdn-video embed, .gdn-video .wp-video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.gdn-video .wp-video { margin: 0; }

.gdn-gallery__grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gdn-gallery__grid--n1 { grid-template-columns: 1fr; }
.gdn-gallery__grid--n3, .gdn-gallery__grid--n4, .gdn-gallery__grid--n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gdn-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	background: var(--gdn-wash);
	cursor: zoom-in;
}
.gdn-gallery__grid--n1 .gdn-gallery__item { aspect-ratio: 16 / 9; }
.gdn-gallery__grid--n2 .gdn-gallery__item { aspect-ratio: 4 / 3; }
.gdn-gallery__grid--n3 .gdn-gallery__item:first-child,
.gdn-gallery__grid--n4 .gdn-gallery__item:first-child,
.gdn-gallery__grid--n5 .gdn-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gdn-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .6, .2, 1); }
.gdn-gallery__item:hover img { transform: scale(1.04); }

.gdn-tagcloud {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin-top: 40px; padding-top: 24px;
	border-top: 1px solid var(--gdn-line);
}
.gdn-tagcloud__label { font-size: .85rem; color: var(--gdn-ink-3); margin-right: 4px; }
.gdn-tagcloud a {
	padding: 6px 13px;
	border-radius: 99px;
	background: var(--gdn-wash);
	color: var(--gdn-ink-2);
	font-size: .88rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
.gdn-tagcloud a:hover { background: var(--gdn-accent); color: #fff; }

.gdn-source { display: flex; gap: 12px; align-items: baseline; margin-bottom: 20px; font-size: .95rem; }
.gdn-source span { color: var(--gdn-ink-3); }
.gdn-source a { color: var(--gdn-link); font-weight: 600; }
.gdn-links { border-top: 1px solid var(--gdn-line); }
.gdn-links li { border-bottom: 1px solid var(--gdn-line); }
.gdn-links a {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 14px 2px;
	text-decoration: none;
	font-weight: 500;
	transition: color .15s;
}
.gdn-links a:hover { color: var(--gdn-link); }
.gdn-links .gdn-icon { color: var(--gdn-link); flex: none; }

.gdn-authorbox {
	display: flex; gap: 18px; align-items: flex-start;
	margin-top: 44px; padding: 22px;
	border: 1px solid var(--gdn-line);
	border-radius: var(--gdn-radius);
}
.gdn-authorbox__name { font: 700 1.1rem/1.3 var(--gdn-head); }
.gdn-authorbox__bio { margin-top: 6px; color: var(--gdn-ink-2); font-size: .95rem; line-height: 1.55; }
.gdn-authorbox__count { margin-top: 8px; font-size: .85rem; color: var(--gdn-ink-3); }

/* ───────────────────────────── side column ───────────────────────── */
.gdn-aside__sticky {
	position: sticky;
	top: calc(28px + var(--wp-admin--admin-bar--height, 0px));
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.gdn-panel__title {
	font: 700 1.05rem/1.3 var(--gdn-sans);
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--gdn-accent);
}

/* ───────────────────────────── cards ─────────────────────────────── */
.gdn-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gdn-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: var(--gdn-radius);
	background: var(--gdn-wash);
}
.gdn-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .6, .2, 1); }
.gdn-card:hover .gdn-card__media img { transform: scale(1.035); }
.gdn-card__flag {
	position: absolute; left: 10px; bottom: 10px;
	display: grid; place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--gdn-accent);
	box-shadow: 0 1px 4px rgba(16, 24, 40, .18);
}
.gdn-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gdn-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.gdn-card .gdn-cat {
	position: relative; z-index: 2;
	padding: 0; border: 0; border-radius: 0;
	font-size: .8rem; font-weight: 700;
}
.gdn-card .gdn-cat:hover { background: none; color: var(--gdn-link); text-decoration: underline; }
.gdn-card__title {
	font-family: var(--gdn-head);
	font-size: 1.28rem;
	line-height: 1.22;
	font-weight: 700;
	letter-spacing: -.01em !important;
	text-wrap: balance;
}
.gdn-card__title a { color: inherit; text-decoration: none; }
.gdn-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gdn-card:hover .gdn-card__title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--gdn-accent); }
.gdn-card__excerpt { color: var(--gdn-ink-2); font-size: .97rem; line-height: 1.55; }
.gdn-card__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .82rem; color: var(--gdn-ink-3); }

/* grid */
.gdn-cards {
	display: grid;
	grid-template-columns: repeat(var(--gdn-cols, 3), minmax(0, 1fr));
	gap: 44px 28px;
}
@media (max-width: 960px) { .gdn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gdn-cards { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* lead + side */
.gdn-lead { display: grid; gap: 36px; margin-bottom: 60px; }
@media (min-width: 900px) {
	.gdn-lead:not(.gdn-lead--solo) { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 44px; }
}
.gdn-card--lead .gdn-card__media { aspect-ratio: 16 / 10; }
.gdn-card--lead .gdn-card__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.12; }
.gdn-card--lead .gdn-card__excerpt { font-size: 1.08rem; max-width: 46em; }
.gdn-lead__side { display: flex; flex-direction: column; }
@media (min-width: 900px) { .gdn-lead__side { padding-left: 36px; border-left: 1px solid var(--gdn-line); } }
.gdn-lead__side .gdn-card { padding-block: 20px; border-bottom: 1px solid var(--gdn-line); }
.gdn-lead__side .gdn-card:first-child { padding-top: 0; }
.gdn-lead__side .gdn-card:last-child { padding-bottom: 0; border-bottom: 0; }

/* side / list / compact: media beside text */
.gdn-card--side,
.gdn-card--compact {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	align-items: start;
	gap: 16px;
}
.gdn-card--side .gdn-card__media { aspect-ratio: 4 / 3; border-radius: 8px; }
.gdn-card--side .gdn-card__title { font-size: 1.05rem; line-height: 1.28; }
.gdn-card--compact .gdn-card__media { aspect-ratio: 1 / 1; border-radius: 8px; }
.gdn-card--compact { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.gdn-card--compact .gdn-card__title { font-size: 1rem; line-height: 1.3; }
.gdn-card--side.gdn-card--noimg,
.gdn-card--compact.gdn-card--noimg { grid-template-columns: minmax(0, 1fr); }
.gdn-card--compact .gdn-card__body { gap: 5px; }

.gdn-compact .gdn-card { padding-block: 16px; border-bottom: 1px solid var(--gdn-line); }
.gdn-compact .gdn-card:first-child { padding-top: 0; }
.gdn-compact .gdn-card:last-child { padding-bottom: 0; border-bottom: 0; }
.gdn-compact--ranked .gdn-card--compact { grid-template-columns: 2ch minmax(0, 1fr); gap: 14px; }
.gdn-card__rank { font: 700 1.7rem/1 var(--gdn-head); color: var(--gdn-link); }

.gdn-listing { display: flex; flex-direction: column; }
.gdn-card--list {
	display: grid;
	grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
	gap: 28px;
	padding-block: 26px;
	border-bottom: 1px solid var(--gdn-line);
}
.gdn-card--list:first-child { padding-top: 0; }
.gdn-card--list.gdn-card--noimg { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
	.gdn-card--list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ───────────────────────────── archive ───────────────────────────── */
.gdn-archive__head { padding-top: 52px; border-bottom: 1px solid var(--gdn-line); }
.gdn-archive__title {
	font-family: var(--gdn-head);
	font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.7rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.02em !important;
}
.gdn-archive__intro { margin-top: 12px; max-width: 44em; font-size: 1.15rem; line-height: 1.55; color: var(--gdn-ink-2); }
.gdn-archive__intro p { margin: 0; }
.gdn-pills { display: flex; gap: 8px; overflow-x: auto; padding: 26px 2px 20px; scrollbar-width: thin; }
.gdn-pills a {
	flex: none;
	padding: 8px 16px;
	border: 1px solid var(--gdn-line);
	border-radius: 99px;
	color: var(--gdn-ink-2);
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s;
}
.gdn-pills a:hover { border-color: var(--gdn-accent); color: var(--gdn-accent); }
.gdn-pills a.is-active { background: var(--gdn-accent); border-color: var(--gdn-accent); color: #fff; }
.gdn-archive__body { padding-block: 44px 80px; }

.gdn-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 64px; }
.gdn-pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 42px; height: 42px; padding: 0 8px;
	border-radius: 99px;
	color: var(--gdn-ink-2);
	font-weight: 600;
	text-decoration: none;
}
.gdn-pagination a.page-numbers:hover { background: var(--gdn-wash); }
.gdn-pagination .page-numbers.current { background: var(--gdn-accent); color: #fff; }
.gdn-pagination .dots { color: var(--gdn-ink-3); }

.gdn-empty { padding: 72px 20px; text-align: center; background: var(--gdn-wash); border-radius: var(--gdn-radius); }
.gdn-empty h2 { font: 700 1.5rem/1.3 var(--gdn-head); }
.gdn-empty p { margin: 8px 0 22px; color: var(--gdn-ink-2); }

/* ───────────────────────────── more stories ──────────────────────── */
.gdn-more { margin-top: 64px; padding-block: 52px 80px; background: var(--gdn-wash); }
.gdn-more__title { font: 700 1.7rem/1.2 var(--gdn-head); margin-bottom: 28px; letter-spacing: -.01em; }
.gdn-more .gdn-card__media { background: var(--gdn-line); }

.gdn-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.gdn-postnav__item {
	display: flex; align-items: center; gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--gdn-line);
	border-radius: var(--gdn-radius);
	text-decoration: none;
	font: 600 1.02rem/1.35 var(--gdn-head);
	transition: border-color .15s, background-color .15s;
}
.gdn-postnav__item:hover { border-color: var(--gdn-accent); background: var(--gdn-wash); }
.gdn-postnav__item small { display: block; margin-bottom: 3px; font: 600 .78rem/1.2 var(--gdn-sans); color: var(--gdn-ink-3); }
.gdn-postnav__item .gdn-icon { flex: none; color: var(--gdn-ink-3); }
.gdn-postnav__item--next { grid-column: 2; justify-content: space-between; text-align: right; }
@media (max-width: 640px) {
	.gdn-postnav { grid-template-columns: 1fr; }
	.gdn-postnav__item--next { grid-column: 1; }
}

.gdn-comments { max-width: 760px; padding-block: 56px 20px; }

/* ───────────────────────────── blocks / shortcodes ───────────────── */
.gdn-block { margin-block: 32px; background: transparent; }
.gdn-block__head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	margin-bottom: 22px; padding-bottom: 10px;
	border-bottom: 2px solid var(--gdn-accent);
}
.gdn-block__title { font: 700 1.4rem/1.2 var(--gdn-head); }
.gdn-block__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--gdn-link); text-decoration: none; }
.gdn-block__more:hover { text-decoration: underline; }

.gdn-widget .gdn-card--compact { grid-template-columns: 64px minmax(0, 1fr); }
.gdn-widget .gdn-card--compact.gdn-card--noimg { grid-template-columns: minmax(0, 1fr); }
.gdn-embedded { margin-block: 28px; }
.gdn-embedded .gdn-byline { margin-top: 16px; }

/* ───────────────────────────── ticker ────────────────────────────── */
.gdn-ticker {
	display: flex;
	align-items: stretch;
	min-height: 44px;
	overflow: hidden;
	border: 1px solid var(--gdn-line);
	border-radius: 8px;
	background: var(--gdn-wash);
	color: var(--gdn-ink);
	font-size: .93rem;
}
.gdn-ticker--bar { border-radius: 0; }
.gdn-ticker__label {
	color: #fff;
	position: relative; z-index: 1;
	display: flex; align-items: center; gap: 9px;
	flex: none;
	padding: 0 18px;
	background: var(--gdn-accent);
	font-weight: 700;
	white-space: nowrap;
}
.gdn-ticker--breaking .gdn-ticker__label { background: var(--gdn-breaking); }
.gdn-ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: gdn-pulse 1.6s ease-out infinite; }
.gdn-ticker__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}
.gdn-ticker__move { display: flex; width: max-content; min-height: 44px; }
.gdn-ticker__viewport.is-looping .gdn-ticker__move { animation: gdn-marquee var(--gdn-ticker-speed, 40s) linear infinite; }
.gdn-ticker:hover .gdn-ticker__move,
.gdn-ticker:focus-within .gdn-ticker__move { animation-play-state: paused; }
.gdn-ticker__track { display: flex; flex: none; }
.gdn-ticker__track li {
	display: flex; align-items: center; gap: 12px;
	padding: 0 28px;
	border-left: 1px solid var(--gdn-line);
	white-space: nowrap;
}
.gdn-ticker__track a { color: var(--gdn-ink); font-weight: 600; text-decoration: none; }
.gdn-ticker__track a:hover { text-decoration: underline; }
.gdn-ticker__time { font-size: .8rem; color: var(--gdn-ink-3); }
@keyframes gdn-marquee { to { transform: translateX(-50%); } }

/* ───────────────────────────── lightbox ──────────────────────────── */
.gdn-lightbox {
	position: fixed; inset: 0; z-index: 100000;
	display: grid; grid-template-rows: minmax(0, 1fr) auto;
	background: rgba(255, 255, 255, .97);
	color: #15181d;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	animation: gdn-fade .18s ease-out;
}
@keyframes gdn-fade { from { opacity: 0; } }
.gdn-lightbox__stage { display: grid; place-items: center; padding: 56px 72px 12px; min-height: 0; }
.gdn-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 40px rgba(16, 24, 40, .25); }
.gdn-lightbox__bar { padding: 8px 24px 24px; text-align: center; font-size: .95rem; line-height: 1.5; color: #434a54; min-height: 56px; }
.gdn-lightbox__count { display: block; margin-top: 4px; font-size: .8rem; color: #6a727d; }
.gdn-lightbox button {
	position: absolute;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: #f3f4f6;
	color: #15181d;
	box-shadow: 0 1px 4px rgba(16, 24, 40, .2);
	cursor: pointer;
	transition: background-color .15s;
}
.gdn-lightbox button:hover { background: #e2e5e9; }
.gdn-lightbox button:focus-visible { outline: 2px solid #0b63ce; outline-offset: 2px; }
.gdn-lightbox__close { top: 14px; right: 14px; }
.gdn-lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.gdn-lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .gdn-lightbox__stage { padding: 60px 12px 8px; } .gdn-lightbox__prev { left: 6px; } .gdn-lightbox__next { right: 6px; } }

/* ───────────────────────────── motion & print ────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.gdn *, .gdn *::before, .gdn *::after, .gdn-lightbox { animation: none !important; transition: none !important; }
	.gdn-ticker__viewport { overflow-x: auto; }
	.gdn-ticker__track[aria-hidden="true"] { display: none; }
	.gdn-card:hover .gdn-card__media img, .gdn-gallery__item:hover img { transform: none; }
}

@media print {
	.gdn-progress, .gdn-aside, .gdn-more, .gdn-postnav, .gdn-ticker, .gdn-authorbox { display: none !important; }
	.gdn-content a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
