/*
Theme Name: Neurad Desk
Description: Editorial presentation layer for Neurad, built on GeneratePress.
Template: generatepress
Version: 1.0.0
Text Domain: neurad-desk
*/

/* ==========================================================================
   1. Fonts (self hosted, latin subset, woff2)
   ========================================================================== */
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-roman-latin-v1.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-italic-latin-v1.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Public Sans";
	src: url("assets/fonts/publicsans-roman-latin-v1.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
/* Metric matched fallbacks, so text does not jump when the webfont arrives */
@font-face {
	font-family: "Newsreader Fallback";
	src: local("Georgia");
	font-weight: 400 500;
	size-adjust: 95.3%;
	ascent-override: 77.1%;
	descent-override: 27.8%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Newsreader Fallback";
	src: local("Georgia Bold"), local("Georgia-Bold");
	font-weight: 600;
	size-adjust: 86%;
	ascent-override: 85.4%;
	descent-override: 30.8%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Public Sans Fallback";
	src: local("Arial");
	font-weight: 400 500;
	size-adjust: 104.4%;
	ascent-override: 91%;
	descent-override: 21.5%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Public Sans Fallback";
	src: local("Arial Bold"), local("Arial-BoldMT");
	font-weight: 600;
	size-adjust: 97.9%;
	ascent-override: 97%;
	descent-override: 23%;
	line-gap-override: 0%;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */
:root {
	--nrd-ink: #111111;
	--nrd-body: #1A1A1A;
	--nrd-sub: #333333;
	--nrd-muted: #555555;
	--nrd-line: #DDDDDD;
	--nrd-line-soft: #EEEEEE;
	--nrd-tint: #F6F6F4;
	--nrd-tint-2: #F1F1EF;
	--nrd-paper: #FFFFFF;
	--nrd-red: #B3122B;
	--nrd-red-dark: #E8546A;
	--nrd-serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
	--nrd-sans: "Public Sans", "Public Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
	--nrd-wrap: 1280px;
	--nrd-gutter: 24px;
}

/* ==========================================================================
   3. Base
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
body,
body.nrd {
	background: var(--nrd-paper);
	color: var(--nrd-body);
	font-family: var(--nrd-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body .site,
body .site-content,
body .site-main,
body .inside-article,
body .page-header { background: transparent; }
body .site-content { display: block; }
.separate-containers .site-main { margin: 0; }
.separate-containers .site-main > * { margin-bottom: 0; }
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.one-container.right-sidebar .site-content { padding: 0; box-shadow: none; }
.separate-containers .content-area { width: 100%; }
body .grid-container { max-width: var(--nrd-wrap); }
body #page.grid-container,
body .site.grid-container { padding-left: var(--nrd-gutter); padding-right: var(--nrd-gutter); box-sizing: border-box; }
body .content-area { float: none; width: 100%; }
body .site-content::before, body .site-content::after { display: none; }

a { color: var(--nrd-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--nrd-red); }
:focus-visible { outline: 2px solid var(--nrd-ink); outline-offset: 2px; }
img { height: auto; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--nrd-ink); margin: 40px 0; background: none; height: 0; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important; }
.nrd-wrap { max-width: var(--nrd-wrap); margin: 0 auto; padding-left: var(--nrd-gutter); padding-right: var(--nrd-gutter); box-sizing: border-box; }

h1, h2, h3, h4, h5, h6 { color: var(--nrd-ink); font-family: var(--nrd-serif); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6.4vw + 8px, 54px); line-height: 1.08; font-weight: 600; margin-bottom: 0.5em; }
h2 { font-size: clamp(25px, 3vw + 14px, 32px); line-height: 1.2; margin: 1.8em 0 0.6em; }
h3 { font-size: 22px; line-height: 1.3; margin: 1.5em 0 0.5em; }

/* WordPress wraps group blocks in an inner container, GeneratePress pads it: neutralise */
.entry-content .wp-block-group > .wp-block-group__inner-container,
.wp-block-group > .wp-block-group__inner-container { padding: 0; margin: 0; }

/* Buttons: black, square, no shadow */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button, a.wp-block-button__link:not(.has-background),
.wp-block-button__link,
.wp-element-button,
.nrd-btn,
.inside-article a.nrd-btn {
	background: var(--nrd-ink);
	color: var(--nrd-paper);
	border: 1px solid var(--nrd-ink);
	border-radius: 0;
	box-shadow: none;
	font-family: var(--nrd-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	min-height: 50px;
	padding: 0 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	cursor: pointer;
}
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover, .wp-element-button:hover, .nrd-btn:hover, .inside-article a.nrd-btn:hover,
button:focus, input[type="submit"]:focus, .wp-block-button__link:focus, .wp-element-button:focus, .nrd-btn:focus, .inside-article a.nrd-btn:focus {
	background: var(--nrd-sub);
	color: var(--nrd-paper);
	border-color: var(--nrd-sub);
}

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
	background: var(--nrd-paper);
	color: var(--nrd-body);
	border: 1px solid var(--nrd-ink);
	border-radius: 0;
	font-family: var(--nrd-sans);
	font-size: 16px;
	padding: 12px 14px;
	box-shadow: none;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus, textarea:focus {
	background: var(--nrd-paper);
	color: var(--nrd-body);
	border-color: var(--nrd-ink);
	outline: 2px solid var(--nrd-ink);
	outline-offset: 1px;
}

/* ==========================================================================
   4. Logo
   ========================================================================== */
.nrd-logo {
	display: inline-block;
	font-family: var(--nrd-serif);
	font-weight: 600;
	font-size: 44px;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--nrd-ink);
	text-decoration: none;
	white-space: nowrap;
}
.nrd-logo:hover, .nrd-logo:focus { color: var(--nrd-ink); }
.nrd-logo__edge { color: var(--nrd-red); }
.nrd-logo--footer { font-size: 28px; }
.nrd-logo--on-dark { color: #FFFFFF; }
.nrd-logo--on-dark .nrd-logo__edge { color: var(--nrd-red-dark); }

/* ==========================================================================
   5. Top bar, header, navigation
   ========================================================================== */
.nrd-topbar { background: var(--nrd-paper); border-bottom: 1px solid var(--nrd-line); color: var(--nrd-muted); font-family: var(--nrd-sans); font-size: 12.5px; line-height: 1.4; }
.nrd-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 9px; padding-bottom: 9px; }
.nrd-topbar a { color: var(--nrd-muted); text-decoration: none; }
.nrd-topbar a:hover { color: var(--nrd-red); text-decoration: underline; }
.nrd-topbar__links { display: flex; gap: 22px; white-space: nowrap; }

.nrd-header { background: var(--nrd-paper); border-bottom: 3px double var(--nrd-ink); }
.nrd-header__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 20px; padding-bottom: 18px; }
.nrd-nav__list { display: flex; flex-wrap: wrap; gap: 6px 34px; list-style: none; margin: 0; padding: 0; }
.nrd-nav__list li { margin: 0; padding: 0; }
.nrd-nav__list a { font-family: var(--nrd-sans); font-size: 15px; font-weight: 500; color: var(--nrd-ink); text-decoration: none; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.nrd-nav__list a:hover { color: var(--nrd-red); }
.nrd-nav__list .current-menu-item > a,
.nrd-nav__list .current-menu-ancestor > a { color: var(--nrd-red); border-bottom-color: var(--nrd-red); }
.nrd-nav-toggle, .nrd-nav-button { display: none; }

@media (max-width: 860px) {
	.nrd-topbar__in { flex-direction: column; align-items: flex-start; gap: 4px; }
	.nrd-topbar__links { gap: 16px; }
	.nrd-logo { font-size: 32px; }
	.nrd-logo.nrd-logo--footer { font-size: 28px; }
	.nrd-header__in { flex-wrap: wrap; gap: 0 16px; padding-top: 14px; padding-bottom: 14px; }
	.nrd-nav-button { display: inline-flex; align-items: center; font-family: var(--nrd-sans); font-size: 14px; font-weight: 600; border: 1px solid var(--nrd-ink); padding: 9px 14px; cursor: pointer; background: var(--nrd-paper); color: var(--nrd-ink); }
	.nrd-nav { flex-basis: 100%; display: none; padding-top: 14px; }
	.nrd-nav-toggle:checked ~ .nrd-nav { display: block; }
	.nrd-nav__list { flex-direction: column; gap: 0; }
	.nrd-nav__list a { padding: 12px 0; display: block; border-bottom: 1px solid var(--nrd-line-soft); }
	.nrd-nav__list .current-menu-item > a, .nrd-nav__list .current-menu-ancestor > a { border-bottom-color: var(--nrd-line-soft); }
	.nrd-nav-toggle:focus-visible + .nrd-nav-button { outline: 2px solid var(--nrd-ink); outline-offset: 2px; }
}

/* ==========================================================================
   6. Footer
   ========================================================================== */
.nrd-footer { background: var(--nrd-paper); border-top: 3px double var(--nrd-ink); margin-top: 72px; }
.nrd-footer__in { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-top: 36px; padding-bottom: 44px; }
.nrd-footer__note { margin: 14px 0 0; max-width: 460px; font-size: 14px; line-height: 1.55; color: var(--nrd-muted); }
.nrd-footer__copy { margin: 10px 0 0; font-family: var(--nrd-sans); font-size: 13px; line-height: 1.4; color: var(--nrd-muted); }
.nrd-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--nrd-sans); font-size: 14px; font-weight: 500; padding-top: 6px; }
.nrd-footer__nav a { color: var(--nrd-ink); text-decoration: none; }
.nrd-footer__nav a:hover { color: var(--nrd-red); text-decoration: underline; }
@media (max-width: 860px) {
	.nrd-footer__in { flex-direction: column; gap: 24px; }
	.nrd-footer { margin-top: 48px; }
}

/* ==========================================================================
   7. Shared editorial bits
   ========================================================================== */
.nrd-kicker, .nrd-box-label, .nrd-source-label {
	font-family: var(--nrd-sans);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.3;
	margin: 0 0 12px;
}
.nrd-kicker { color: var(--nrd-red); }
.nrd-kicker a { color: var(--nrd-red); text-decoration: none; }
.nrd-kicker a:hover { text-decoration: underline; }
.nrd-box-label, .nrd-source-label { color: var(--nrd-ink); }
.nrd-meta { font-family: var(--nrd-sans); font-size: 13.5px; color: var(--nrd-muted); }

/* ==========================================================================
   8. Home
   ========================================================================== */
.home .entry-header, .home .page-header { display: none; }
.nrd-home-hero { padding: 56px 0 52px; margin-bottom: 0; border-bottom: 1px solid var(--nrd-ink); }
.nrd-home-hero__cols { gap: 56px; align-items: center; margin: 0; }
.nrd-home-h1 { font-size: clamp(38px, 8vw + 8px, 64px); line-height: 1.04; font-weight: 600; margin: 0 0 22px; }
.nrd-home-h1 em { font-style: italic; font-weight: 400; }
.nrd-home-sub { font-size: 19px; line-height: 1.6; color: var(--nrd-sub); max-width: 560px; margin: 0 0 28px; }
.nrd-search { display: flex; max-width: 560px; margin: 0 0 22px; }
.nrd-search input[type="search"] { flex: 1 1 auto; min-width: 0; border-right: 0; height: 52px; padding: 0 16px; }
.nrd-search .nrd-btn, .nrd-search button { flex: 0 0 auto; height: 52px; min-height: 52px; }
.nrd-trust { font-family: var(--nrd-sans); font-size: 14px; color: var(--nrd-muted); margin: 0; }
.nrd-trust a { color: var(--nrd-ink); }
.nrd-trust a:hover { color: var(--nrd-red); }

.nrd-home-browse { padding: 48px 0 0; }
.nrd-home-browse h2 { font-size: clamp(27px, 3vw + 16px, 36px); margin: 0 0 24px; }
.nrd-cards { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.nrd-cards--1 { grid-template-columns: 1fr; }
.nrd-cards--2 { grid-template-columns: repeat(2, 1fr); }
.nrd-card { display: grid; border: 1px solid var(--nrd-ink); background: var(--nrd-paper); }
.nrd-cards--1 .nrd-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.nrd-card__media { display: flex; align-items: center; justify-content: center; background: var(--nrd-paper); aspect-ratio: 16 / 9; border-right: 1px solid var(--nrd-line); overflow: hidden; padding: 16px; box-sizing: border-box; }
.nrd-cards:not(.nrd-cards--1) .nrd-card { grid-template-columns: 1fr; }
.nrd-cards:not(.nrd-cards--1) .nrd-card__media { border-right: 0; border-bottom: 1px solid var(--nrd-line); }
.nrd-card__img { width: auto; max-width: 100%; height: 100%; max-height: 100%; object-fit: contain; display: block; }
.nrd-card__body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.nrd-card__title { font-family: var(--nrd-serif); font-size: 28px; font-weight: 500; line-height: 1.15; margin: 0 0 12px; }
.nrd-card__title a { text-decoration: none; }
.nrd-card__desc { font-size: 17px; color: var(--nrd-sub); margin: 0 0 22px; max-width: 560px; }

@media (max-width: 860px) {
	.nrd-home-hero { padding: 36px 0; }
	.nrd-home-hero__cols { gap: 36px; }
	.nrd-cards, .nrd-cards--2 { grid-template-columns: 1fr; }
	.nrd-cards--1 .nrd-card { grid-template-columns: 1fr; }
	.nrd-card__media { border-right: 0; border-bottom: 1px solid var(--nrd-line); }
	.nrd-card__body { padding: 24px 22px; }
	.nrd-search input[type="search"] { height: 50px; }
}

/* ==========================================================================
   9. Article
   ========================================================================== */
.nrd-article { padding-top: 36px; }
.nrd-crumbs { font-family: var(--nrd-sans); font-size: 13.5px; color: var(--nrd-muted); margin: 0 0 18px; }
.nrd-crumbs a { color: var(--nrd-muted); text-decoration: none; }
.nrd-crumbs a:hover { color: var(--nrd-red); text-decoration: underline; }
.nrd-crumbs span { margin: 0 8px; }
.nrd-article__head { max-width: 968px; margin: 0 auto; }
.nrd-article__title { font-size: clamp(32px, 6.4vw + 8px, 54px); line-height: 1.08; font-weight: 600; margin: 0 0 22px; max-width: 900px; }
.nrd-lede { font-family: var(--nrd-serif); font-style: italic; font-weight: 400; font-size: clamp(19px, 1.6vw + 13px, 23px); line-height: 1.5; color: var(--nrd-sub); margin: 0 0 22px; max-width: 760px; }
.nrd-byline { font-family: var(--nrd-sans); font-size: 14px; color: var(--nrd-muted); margin: 0 0 8px; }
.nrd-byline a { color: var(--nrd-ink); }
.nrd-byline a:hover { color: var(--nrd-red); }
.nrd-sep { margin: 0 9px; color: var(--nrd-muted); }
.nrd-disclosure { font-family: var(--nrd-sans); font-size: 13px; color: var(--nrd-muted); margin: 0; padding: 14px 0 0; }
.nrd-article__rule { border-top: 1px solid var(--nrd-ink); margin: 26px auto 0; max-width: 968px; }
.nrd-article__body { display: grid; grid-template-columns: 220px minmax(0, 700px); column-gap: 48px; justify-content: center; max-width: 968px; margin: 0 auto; padding-top: 36px; }
.nrd-toc { grid-column: 1; align-self: start; position: sticky; top: 24px; font-family: var(--nrd-sans); font-size: 14px; line-height: 1.45; }
.nrd-toc__title { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px; color: var(--nrd-ink); }
.nrd-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nrd-ink); }
.nrd-toc li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--nrd-line-soft); }
.nrd-toc a { color: var(--nrd-sub); text-decoration: none; }
.nrd-toc a:hover { color: var(--nrd-red); }
.nrd-prose { grid-column: 2; min-width: 0; font-family: var(--nrd-serif); font-size: 20px; line-height: 1.7; color: var(--nrd-body); }
.nrd-article__body--solo .nrd-prose { grid-column: 2; }
.nrd-prose > *:first-child { margin-top: 0; }
.nrd-prose p { margin: 0 0 1.25em; }
.nrd-prose h2 { margin: 2em 0 0.6em; scroll-margin-top: 24px; }
.nrd-prose h3 { margin: 1.6em 0 0.5em; }
.nrd-prose ul, .nrd-prose ol { margin: 0 0 1.25em 1.3em; padding: 0; }
.nrd-prose li { margin-bottom: 0.5em; }
.nrd-prose a { text-decoration: underline; }
.nrd-prose strong { font-weight: 600; color: var(--nrd-ink); }

/* images: fixed 16:10 frame, white, contain, never scaled up */
.nrd-prose .wp-block-image, .nrd-prose .wp-block-gallery { margin: 1.8em 0; }
.nrd-prose .wp-block-image img { width: auto; max-width: 100%; margin: 0; display: block; }
.nrd-prose .wp-block-image > a, .nrd-prose .wp-block-image:not(.wp-block-gallery .wp-block-image) { }
.nrd-prose figure.wp-block-image:not(.nrd-noframe) { margin-left: 0; margin-right: 0; }
.nrd-prose figure.wp-block-image > img,
.nrd-prose figure.wp-block-image > a > img { aspect-ratio: 16 / 10; object-fit: contain; background: var(--nrd-paper); border: 1px solid var(--nrd-line-soft); box-sizing: border-box; width: 100%; max-width: 679px; padding: 8px; }
.nrd-prose .wp-block-gallery { --wp--style--unstable-gallery-gap: 16px; gap: 16px; margin: 1.8em 0; align-items: flex-start; }
.nrd-prose .wp-block-gallery.has-nested-images figure.wp-block-image { display: block; align-self: flex-start; }
.nrd-prose .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 16 / 10 !important; object-fit: contain !important; height: auto !important; width: 100% !important; flex: none; background: var(--nrd-paper); border: 1px solid var(--nrd-line-soft); padding: 6px; box-sizing: border-box; }
.nrd-prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static !important; background: none !important; color: var(--nrd-muted) !important; padding: 8px 0 0 !important; max-height: none !important; overflow: visible !important; text-align: left; font-size: 13px; line-height: 1.5; text-shadow: none; }
.nrd-prose .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) { width: calc((100% - 32px) / 3) !important; margin: 0; flex-grow: 0; }
.nrd-prose .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image:not(#individual-image) { width: calc((100% - 16px) / 2) !important; margin: 0; flex-grow: 0; }
@media (max-width: 700px) {
	.nrd-prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100% !important; }
}
.nrd-prose figcaption, .nrd-prose .wp-element-caption { font-family: var(--nrd-sans); font-size: 13px; line-height: 1.5; color: var(--nrd-muted); margin: 8px 0 0; text-align: left; }

/* Tables (article body and Spec check tables everywhere) */
.nrd-prose figure.wp-block-table, .nrd-spec-check figure.wp-block-table { margin: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nrd-prose table, .nrd-spec-check table { width: 100%; border-collapse: collapse; border: 0; font-family: var(--nrd-sans); font-size: 15px; line-height: 1.5; margin: 0; }
.nrd-prose th, .nrd-prose td, .nrd-spec-check th, .nrd-spec-check td { text-align: left; padding: 12px 16px 12px 0; border: 0; border-bottom: 1px solid var(--nrd-line); vertical-align: top; min-width: 120px; color: var(--nrd-body); }
.nrd-prose thead th, .nrd-spec-check thead th { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--nrd-ink); color: var(--nrd-ink); }
.nrd-prose tbody td:first-child, .nrd-spec-check tbody td:first-child { font-weight: 600; color: var(--nrd-ink); }
.nrd-prose tbody tr:last-child td, .nrd-spec-check tbody tr:last-child td { border-bottom-color: var(--nrd-ink); }

/* ---- Components ---- */
.nrd-short-answer, .nrd-spec-check, .nrd-disagree, .nrd-download {
	margin: 2em 0;
	font-family: var(--nrd-sans);
	font-size: 16px;
	line-height: 1.55;
}
.nrd-short-answer { border: 1px solid var(--nrd-ink); padding: 24px 26px; }
.nrd-prose .nrd-short-answer__list, .nrd-short-answer__list { margin: 0 0 0 1.2em; padding: 0; font-family: var(--nrd-serif); font-size: 19px; line-height: 1.5; }
.nrd-short-answer__list li { margin: 0 0 0.6em; padding-left: 4px; }
.nrd-short-answer__list li:last-child { margin-bottom: 0; }
.nrd-spec-check .nrd-box-label { margin-bottom: 8px; }
.nrd-disagree { border: 1px solid var(--nrd-line); padding: 22px 24px; }
.nrd-disagree__sources { gap: 28px; margin: 0 0 18px; }
.nrd-disagree__sources .wp-block-column { border-top: 1px solid var(--nrd-ink); padding-top: 12px; }
.nrd-disagree p { margin: 0 0 0.7em; }
.nrd-our-read { background: var(--nrd-tint); padding: 18px 20px; border-left: 3px solid var(--nrd-ink); }
.nrd-our-read p:last-child { margin-bottom: 0; }
.nrd-source-label { margin-bottom: 8px; font-size: 12px; }
.nrd-download { border: 1px solid var(--nrd-ink); padding: 22px 26px; }
.nrd-download__name { font-family: var(--nrd-serif); font-size: 22px; font-weight: 500; line-height: 1.25; margin: 0 0 6px; color: var(--nrd-ink); }
.nrd-download__note { margin: 0 0 16px; color: var(--nrd-sub); }
.nrd-download .wp-block-buttons { margin: 0; }
.nrd-prose .nrd-download a.wp-block-button__link, .inside-article .wp-block-button__link { color: var(--nrd-paper); text-decoration: none; }
.nrd-who { margin: 2.4em 0 0; }
.nrd-who__row { gap: 28px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--nrd-line); }
.nrd-who h2 + .nrd-who__row { border-top: 1px solid var(--nrd-ink); }
.nrd-who__row:last-child { border-bottom-color: var(--nrd-ink); }
.nrd-who__who { font-family: var(--nrd-sans); font-size: 15px; font-weight: 600; color: var(--nrd-ink); line-height: 1.4; margin: 0; }
.nrd-who__row .wp-block-column p { margin: 0; }
.nrd-who__row .wp-block-column:last-child p { font-size: 18px; line-height: 1.6; }

/* Keep reading */
.nrd-keep { max-width: 968px; margin: 72px auto 0; padding-top: 28px; border-top: 1px solid var(--nrd-ink); }
.nrd-keep__title { font-family: var(--nrd-serif); font-size: 28px; font-weight: 500; margin: 0 0 22px; }
.nrd-keep__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.nrd-keep__item { border-top: 1px solid var(--nrd-line); padding-top: 14px; }
.nrd-keep__item h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.nrd-keep__item h3 a { text-decoration: none; }
.nrd-keep__item h3 a:hover { color: var(--nrd-red); }
.nrd-keep__item p { font-size: 16px; color: var(--nrd-sub); margin: 0 0 8px; }
.nrd-keep__item p.nrd-kicker { font-size: 12.5px; color: var(--nrd-red); margin: 0 0 8px; }
.nrd-keep__item p.nrd-meta { font-size: 13.5px; color: var(--nrd-muted); }

@media (max-width: 900px) {
	.nrd-article { padding-top: 24px; }
	.nrd-article__body { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
	.nrd-toc { grid-column: 1; position: static; margin-bottom: 28px; }
	.nrd-prose { grid-column: 1; font-size: 18px; }
	.nrd-keep__grid { grid-template-columns: 1fr; }
	.nrd-who__row { gap: 6px; }
	.nrd-prose .wp-block-columns { gap: 10px; }
}

/* ==========================================================================
   10. Category archive
   ========================================================================== */
.nrd-cat { padding-top: 40px; }
.nrd-cathead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--nrd-ink); }
.nrd-cathead h1 { font-size: clamp(38px, 8vw + 8px, 64px); line-height: 1.04; margin: 0 0 12px; }
.nrd-cathead__desc { font-size: 19px; color: var(--nrd-sub); max-width: 640px; margin: 0; }
.nrd-cathead__stats { list-style: none; margin: 0; padding: 0; font-family: var(--nrd-sans); font-size: 14px; color: var(--nrd-muted); text-align: right; }
.nrd-cathead__stats li { margin: 0 0 4px; }
.nrd-cathead__stats a { color: var(--nrd-ink); }
.nrd-start { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--nrd-ink); align-items: center; }
.nrd-start__media { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; border: 1px solid var(--nrd-line); background: var(--nrd-paper); padding: 14px; box-sizing: border-box; overflow: hidden; }
.nrd-start__media img { width: auto; max-width: 100%; max-height: 100%; height: 100%; object-fit: contain; }
.nrd-start h2 { font-size: clamp(27px, 3vw + 14px, 38px); margin: 0 0 14px; line-height: 1.12; }
.nrd-start h2 a { text-decoration: none; }
.nrd-start h2 a:hover { color: var(--nrd-red); }
.nrd-start__lede { font-family: var(--nrd-serif); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--nrd-sub); margin: 0 0 16px; }
.nrd-checks { padding: 36px 0; border-bottom: 1px solid var(--nrd-ink); }
.nrd-checks h2 { font-size: 28px; margin: 0 0 20px; }
.nrd-checks ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; counter-reset: nrd; }
.nrd-checks li { counter-increment: nrd; border-top: 1px solid var(--nrd-line); padding: 14px 0 16px 38px; position: relative; font-size: 17px; line-height: 1.5; margin: 0; }
.nrd-checks li::before { content: counter(nrd); position: absolute; left: 0; top: 14px; font-family: var(--nrd-serif); font-size: 22px; color: var(--nrd-red); line-height: 1.2; }
.nrd-all { padding: 36px 0 0; }
.nrd-all h2 { font-size: 28px; margin: 0 0 8px; }
.nrd-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--nrd-line); align-items: center; }
.nrd-row:last-child { border-bottom: 1px solid var(--nrd-line); }
.nrd-row__media { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border: 1px solid var(--nrd-line-soft); background: var(--nrd-paper); padding: 6px; box-sizing: border-box; overflow: hidden; }
.nrd-row__media img { width: auto; max-width: 100%; max-height: 100%; height: 100%; object-fit: contain; }
.nrd-row h3 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; }
.nrd-row h3 a { text-decoration: none; }
.nrd-row h3 a:hover { color: var(--nrd-red); }
@media (max-width: 860px) {
	.nrd-cat { padding-top: 24px; }
	.nrd-cathead { grid-template-columns: 1fr; gap: 16px; }
	.nrd-cathead__stats { text-align: left; display: flex; flex-wrap: wrap; gap: 4px 18px; }
	.nrd-start { grid-template-columns: 1fr; gap: 20px; }
	.nrd-checks ol { grid-template-columns: 1fr; }
	.nrd-row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
	.nrd-row h3 { font-size: 20px; }
}

/* ==========================================================================
   11. Pages, search, 404, author, forms
   ========================================================================== */
body.page:not(.home) .inside-article, body.search .site-main, body.error404 .site-main, body.author .site-main, body.archive:not(.category) .site-main, body.blog .site-main { max-width: 760px; margin-left: auto !important; margin-right: auto !important; padding-top: 40px; }
body.page:not(.home) .entry-title, .page-title, .entry-title { font-family: var(--nrd-serif); font-weight: 600; font-size: clamp(32px, 6.4vw + 8px, 54px); line-height: 1.08; letter-spacing: -0.01em; color: var(--nrd-ink); margin: 0 0 24px; }
body.page:not(.home) .entry-content, body.error404 .inside-article, body.search-no-results .inside-article { font-family: var(--nrd-serif); font-size: 20px; line-height: 1.7; color: var(--nrd-body); }
body.page:not(.home) .entry-content p { margin: 0 0 1.25em; }
body.page:not(.home) .entry-content h2 { margin-top: 1.8em; }
body.page:not(.home) .entry-content a { text-decoration: underline; }
body.search .inside-article, body.archive:not(.category) .inside-article { border-top: 1px solid var(--nrd-line); padding: 22px 0; font-family: var(--nrd-sans); }
body.search .entry-title, body.archive:not(.category) .entry-title { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
body.search .entry-title a, body.archive:not(.category) .entry-title a { text-decoration: none; }
.page-header { margin-bottom: 8px; }
.page-header .page-title { font-size: clamp(30px, 5vw + 8px, 44px); }
.entry-meta, .entry-meta a, .byline, .posted-on { font-family: var(--nrd-sans); font-size: 13.5px; color: var(--nrd-muted); }
.error404 .widget-title, .no-results .widget-title { display: none; }
.nrd-search-wrap { margin-top: 24px; }

/* Fluent Forms: black square submit, matching fields */
.fluentform .ff-el-form-control { border: 1px solid var(--nrd-ink); border-radius: 0; box-shadow: none; font-family: var(--nrd-sans); }
.fluentform .ff-el-input--label label { font-family: var(--nrd-sans); font-size: 14px; font-weight: 600; color: var(--nrd-ink); }
.fluentform .ff-btn-submit, .fluentform .ff-btn.ff-btn-submit.ff-btn-md { background: var(--nrd-ink) !important; color: var(--nrd-paper) !important; border: 1px solid var(--nrd-ink); border-radius: 0 !important; box-shadow: none; font-family: var(--nrd-sans); font-weight: 600; min-height: 50px; padding: 0 28px; }
.fluentform .ff-btn-submit:hover { background: var(--nrd-sub) !important; }

/* Misc */
.skip-link { background: var(--nrd-ink); color: var(--nrd-paper); }
.generate-back-to-top { display: none; }

/* search and generic archive rows: small 4:3 thumbnails instead of full size images */
body.search .post-image, body.archive:not(.category) .post-image { margin: 12px 0 0; }
body.search .post-image img, body.archive:not(.category) .post-image img { width: 240px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--nrd-paper); border: 1px solid var(--nrd-line-soft); padding: 6px; box-sizing: border-box; display: block; }
body.search .page-header, body.archive:not(.category) .page-header { margin-bottom: 8px; }
