/*
 * RKUltra Editorial Visual System
 * Version: 0.7.0
 * Phase: Design foundation — palette + typography + semantic editorial primitives
 *
 * LOCKED DESIGN DIRECTION
 * RKUltra = Jacobin-style editorial hierarchy
 *         + The Dissent content segmentation
 *         + openDemocracy dossier treatment
 *         + CounterPunch author prominence.
 *
 * Palette:
 * off-white + ink black + cool gray + cobalt + restrained burgundy.
 *
 * Colour is semantic, not decorative.
 */

/* --------------------------------------------------------------------------
   1. FONT LOADING
   --------------------------------------------------------------------------
   Source Serif 4 + Source Sans 3 are enqueued by the companion plugin PHP.
---------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   2. DESIGN TOKENS
---------------------------------------------------------------------------- */

:root {
	/* Core palette */
	--rku-paper: #F5F2EC;
	--rku-ink: #161616;
	--rku-muted: #6B6B6B;
	--rku-rule: #D8D4CC;
	--rku-cobalt: #2147B7;
	--rku-burgundy: #8F1D2C;

	/* Derived surfaces */
	--rku-paper-soft: #FAF8F4;
	--rku-ink-soft: #2A2A2A;
	--rku-cobalt-soft: #E9EDF9;
	--rku-burgundy-soft: #F3E8EA;

	/* Typography */
	--rku-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--rku-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Editorial measure */
	--rku-reading-width: 46rem;
	--rku-wide-width: 78rem;

	/* Rhythm */
	--rku-space-1: 0.375rem;
	--rku-space-2: 0.75rem;
	--rku-space-3: 1.25rem;
	--rku-space-4: 2rem;
	--rku-space-5: 3.25rem;
	--rku-space-6: 5rem;

	/* Rules */
	--rku-rule-thin: 1px solid var(--rku-rule);
	--rku-rule-strong: 2px solid var(--rku-ink);
}


/* --------------------------------------------------------------------------
   3. GLOBAL PAGE FOUNDATION
---------------------------------------------------------------------------- */

html {
	color-scheme: light;
}

body {
	background: var(--rku-paper);
	color: var(--rku-ink);
	font-family: var(--rku-serif);
	font-size: 1.0625rem;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--rku-cobalt);
	color: #fff;
}


/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
---------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-post-title {
	margin-block-start: 0;
	color: var(--rku-ink);
	font-family: var(--rku-serif);
	font-weight: 600;
	letter-spacing: -0.018em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.55rem, 5vw, 5.4rem);
	line-height: 0.99;
}

h2 {
	font-size: clamp(2rem, 3.2vw, 3.4rem);
	line-height: 1.04;
}

h3 {
	font-size: clamp(1.45rem, 2.15vw, 2.15rem);
	line-height: 1.11;
}

h4 {
	font-size: 1.25rem;
	line-height: 1.2;
}

p,
.wp-block-post-excerpt__excerpt {
	font-family: var(--rku-serif);
}

p {
	margin-block: 0 1.15em;
}

strong,
b {
	font-weight: 700;
}

small {
	font-family: var(--rku-sans);
}


/* --------------------------------------------------------------------------
   5. LINKS + ACCESSIBILITY
---------------------------------------------------------------------------- */

a {
	color: var(--rku-cobalt);
	text-decoration-thickness: 0.07em;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--rku-burgundy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--rku-cobalt);
	outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   6. UI / NAVIGATION / METADATA
---------------------------------------------------------------------------- */

nav,
.wp-block-navigation,
.wp-block-post-date,
.wp-block-post-author,
.wp-block-post-terms,
.wp-block-query-pagination,
.wp-block-button,
input,
textarea,
select,
button {
	font-family: var(--rku-sans);
}

.wp-block-post-date,
.wp-block-post-author,
.wp-block-post-terms {
	color: var(--rku-muted);
	font-size: 0.875rem;
	line-height: 1.3;
}


/* --------------------------------------------------------------------------
   7. EDITORIAL KICKERS / LABELS
   Apply these classes from WordPress → Advanced → Additional CSS class(es).
---------------------------------------------------------------------------- */

.rku-kicker,
.rku-section-label,
.rku-meta {
	font-family: var(--rku-sans);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.2;
	text-transform: uppercase;
}

.rku-kicker,
.rku-section-label {
	color: var(--rku-ink);
}

.rku-kicker--research,
.rku-section--research .rku-kicker,
.rku-section--research .rku-section-label {
	color: var(--rku-cobalt);
}

.rku-kicker--dossier,
.rku-section--dossier .rku-kicker,
.rku-section--dossier .rku-section-label {
	color: var(--rku-burgundy);
}


/* --------------------------------------------------------------------------
   8. SECTION PRIMITIVES
---------------------------------------------------------------------------- */

.rku-section {
	padding-block: var(--rku-space-5);
	border-top: var(--rku-rule-strong);
}

.rku-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--rku-space-3);
	margin-bottom: var(--rku-space-4);
}

.rku-section__title {
	margin: 0;
	font-family: var(--rku-serif);
	font-size: clamp(1.9rem, 3vw, 3rem);
	font-weight: 600;
	line-height: 1;
}

.rku-section--research {
	border-top-color: var(--rku-cobalt);
}

.rku-section--dossier {
	border-top-color: var(--rku-burgundy);
}


/* --------------------------------------------------------------------------
   9. DOSSIER BAND
---------------------------------------------------------------------------- */

.rku-dossier-band {
	background: var(--rku-burgundy);
	color: var(--rku-paper-soft);
	padding: clamp(2rem, 5vw, 4.5rem);
}

.rku-dossier-band h1,
.rku-dossier-band h2,
.rku-dossier-band h3,
.rku-dossier-band p,
.rku-dossier-band a {
	color: inherit;
}

.rku-dossier-band .rku-kicker,
.rku-dossier-band .rku-section-label {
	color: var(--rku-paper-soft);
}

.rku-dossier-band a {
	text-decoration-color: rgba(255, 255, 255, 0.55);
}


/* --------------------------------------------------------------------------
   10. RESEARCH EMPHASIS
---------------------------------------------------------------------------- */

.rku-research-panel {
	background: var(--rku-cobalt-soft);
	border-top: 4px solid var(--rku-cobalt);
	padding: clamp(1.5rem, 3vw, 2.5rem);
}


/* --------------------------------------------------------------------------
   11. QUERY LOOP / STORY RHYTHM
---------------------------------------------------------------------------- */

.wp-block-query .wp-block-post-template {
	margin: 0;
	padding: 0;
}

.wp-block-query .wp-block-post {
	padding-block: var(--rku-space-3);
	border-bottom: var(--rku-rule-thin);
}

.wp-block-query .wp-block-post-title {
	margin-bottom: 0.45rem;
}

.wp-block-query .wp-block-post-excerpt {
	color: var(--rku-ink-soft);
}

.wp-block-query .wp-block-post-excerpt__more-link {
	font-family: var(--rku-sans);
	font-size: 0.9rem;
	font-weight: 600;
}


/* --------------------------------------------------------------------------
   12. LONG-FORM ARTICLE READING
   Add .rku-article-body to the main article content wrapper when needed.
---------------------------------------------------------------------------- */

.rku-article-body {
	max-width: var(--rku-reading-width);
	margin-inline: auto;
}

.rku-article-body p,
.rku-article-body li {
	font-size: clamp(1.06rem, 1.2vw, 1.19rem);
	line-height: 1.72;
}

.rku-article-body blockquote {
	margin: 2em 0;
	padding-left: 1.25em;
	border-left: 4px solid var(--rku-cobalt);
	font-size: 1.2em;
	font-style: italic;
}


/* --------------------------------------------------------------------------
   13. AUTHOR EMPHASIS
---------------------------------------------------------------------------- */

.rku-author-name,
.wp-block-post-author__name {
	font-family: var(--rku-sans);
	font-weight: 700;
}

.rku-author-bio {
	max-width: 42rem;
	color: var(--rku-ink-soft);
	font-family: var(--rku-serif);
}


/* --------------------------------------------------------------------------
   14. EDITORIAL RULES
---------------------------------------------------------------------------- */

.rku-rule {
	border: 0;
	border-top: var(--rku-rule-thin);
	margin-block: var(--rku-space-4);
}

.rku-rule--strong {
	border-top: var(--rku-rule-strong);
}


/* --------------------------------------------------------------------------
   15. MOBILE FOUNDATION
---------------------------------------------------------------------------- */

@media (max-width: 781px) {

	body {
		font-size: 1rem;
	}

	.rku-section {
		padding-block: var(--rku-space-4);
	}

	.rku-section__header {
		align-items: flex-start;
		flex-direction: column;
		margin-bottom: var(--rku-space-3);
	}

	.rku-dossier-band {
		padding: 1.5rem;
	}
}


/* --------------------------------------------------------------------------
   16. REDUCED MOTION
---------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
/* ==========================================================================
   17. HOMEPAGE EDITORIAL GRID — v0.2.0
   --------------------------------------------------------------------------
   Required classes assigned manually in the WordPress block editor:

   Homepage root Group:                 rku-home
   Featured Query Loop (up to 3):       rku-lead
   Articles section Group:              rku-section rku-section--articles
   Articles Query Loop:                 rku-articles-grid
   Research section Group:              rku-section rku-section--research
   Research Query Loop:                 rku-research-grid
   Dossier band Group:                  rku-dossier-band
   Dossier Query Loop:                  rku-dossier-grid
   Recent section Group:                rku-section rku-section--recent
   Recent Query Loop:                   rku-recent-list

   Recommended editorial rule:
   mark up to three homepage-featured stories as Sticky.
   The lower Articles & Analysis query should exclude Sticky posts.
   ========================================================================== */

.rku-home {
	max-width: var(--rku-wide-width);
	margin-inline: auto;
	padding-inline: clamp(1rem, 2.5vw, 2rem);
}

/* --- Lead / Featured ----------------------------------------------------- */

.rku-lead {
	margin-block: clamp(2rem, 4vw, 4.25rem) var(--rku-space-6);
}

.rku-lead .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.rku-lead .wp-block-post {
	margin: 0;
	padding: 0 0 var(--rku-space-3);
	border-bottom: var(--rku-rule-thin);
}

.rku-lead .wp-block-post:nth-child(1) {
	grid-column: 1 / span 8;
	grid-row: 1 / span 2;
	padding-right: clamp(0rem, 1.8vw, 1.5rem);
	border-right: var(--rku-rule-thin);
	border-bottom: 0;
}

.rku-lead .wp-block-post:nth-child(2),
.rku-lead .wp-block-post:nth-child(3) {
	grid-column: 9 / span 4;
}

.rku-lead .wp-block-post:nth-child(2) {
	padding-bottom: var(--rku-space-4);
}

.rku-lead .wp-block-post:nth-child(3) {
	padding-top: var(--rku-space-2);
}

.rku-lead .wp-block-post:nth-child(n+4) {
	display: none;
}

.rku-lead .wp-block-post:nth-child(1) .wp-block-post-title {
	font-size: clamp(2.4rem, 4.8vw, 4.9rem);
	line-height: 0.98;
	letter-spacing: -0.028em;
}

.rku-lead .wp-block-post:nth-child(2) .wp-block-post-title,
.rku-lead .wp-block-post:nth-child(3) .wp-block-post-title {
	font-size: clamp(1.35rem, 2vw, 2rem);
	line-height: 1.08;
}

.rku-lead .wp-block-post-featured-image {
	margin: 0 0 var(--rku-space-3);
	overflow: hidden;
	background: var(--rku-rule);
}

.rku-lead .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.rku-lead .wp-block-post:nth-child(2) .wp-block-post-featured-image img,
.rku-lead .wp-block-post:nth-child(3) .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
}

.rku-lead .wp-block-post-excerpt {
	margin-top: var(--rku-space-2);
}

.rku-lead .wp-block-post:nth-child(2) .wp-block-post-excerpt,
.rku-lead .wp-block-post:nth-child(3) .wp-block-post-excerpt {
	font-size: 0.96rem;
	line-height: 1.5;
}

/* Graceful layouts when only 1 or 2 sticky stories exist */
.rku-lead .wp-block-post-template:has(> .wp-block-post:only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.rku-lead .wp-block-post:only-child {
	grid-column: 1 / -1;
	border-right: 0;
	max-width: 62rem;
}

.rku-lead .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) {
	grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
}

.rku-lead .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(1) {
	grid-column: 1;
}

.rku-lead .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(2) {
	grid-column: 2;
}

/* --- Articles & Analysis ------------------------------------------------ */

.rku-section--articles .rku-articles-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 4vw, 4.5rem);
	row-gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rku-articles-grid .wp-block-post {
	padding-block: var(--rku-space-3);
	border-top: var(--rku-rule-thin);
	border-bottom: 0;
}

.rku-articles-grid .wp-block-post:nth-child(-n+2) {
	border-top: var(--rku-rule-strong);
}

.rku-articles-grid .wp-block-post-title {
	font-size: clamp(1.35rem, 2vw, 2rem);
	line-height: 1.1;
}

.rku-articles-grid .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.rku-articles-grid .wp-block-post-excerpt {
	font-size: 0.98rem;
	line-height: 1.52;
}

/* --- Research ----------------------------------------------------------- */

.rku-section--research {
	position: relative;
}

.rku-research-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.rku-research-grid .wp-block-post {
	background: var(--rku-cobalt-soft);
	border: 0;
	border-top: 4px solid var(--rku-cobalt);
	padding: clamp(1rem, 2vw, 1.65rem);
}

.rku-research-grid .wp-block-post:nth-child(1) {
	grid-column: 1 / span 7;
	grid-row: 1 / span 2;
}

.rku-research-grid .wp-block-post:nth-child(2),
.rku-research-grid .wp-block-post:nth-child(3) {
	grid-column: 8 / span 5;
}

.rku-research-grid .wp-block-post:nth-child(n+4) {
	display: none;
}

.rku-research-grid .wp-block-post:nth-child(1) .wp-block-post-title {
	font-size: clamp(2rem, 3.3vw, 3.45rem);
	line-height: 1.02;
}

.rku-research-grid .wp-block-post:nth-child(2) .wp-block-post-title,
.rku-research-grid .wp-block-post:nth-child(3) .wp-block-post-title {
	font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.rku-research-grid .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* --- Dossier band ------------------------------------------------------- */

.rku-dossier-band {
	margin-inline: calc(50% - 50vw);
	padding-inline: max(
		clamp(1rem, 2.5vw, 2rem),
		calc((100vw - var(--rku-wide-width)) / 2)
	);
}

.rku-dossier-band > * {
	max-width: var(--rku-wide-width);
	margin-inline: auto;
}

.rku-dossier-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2.25rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.rku-dossier-grid .wp-block-post {
	padding: 0;
	border: 0;
}

.rku-dossier-grid .wp-block-post:nth-child(1) {
	grid-column: 1 / span 7;
}

.rku-dossier-grid .wp-block-post:nth-child(2),
.rku-dossier-grid .wp-block-post:nth-child(3) {
	grid-column: 8 / span 5;
}

.rku-dossier-grid .wp-block-post:nth-child(n+4) {
	display: none;
}

.rku-dossier-grid .wp-block-post-title {
	color: var(--rku-paper-soft);
}

.rku-dossier-grid .wp-block-post:nth-child(1) .wp-block-post-title {
	font-size: clamp(2rem, 3.4vw, 3.6rem);
	line-height: 1.02;
}

.rku-dossier-grid .wp-block-post:nth-child(2) .wp-block-post-title,
.rku-dossier-grid .wp-block-post:nth-child(3) .wp-block-post-title {
	font-size: clamp(1.25rem, 1.7vw, 1.65rem);
	line-height: 1.1;
}

.rku-dossier-grid .wp-block-post-excerpt,
.rku-dossier-grid .wp-block-post-date,
.rku-dossier-grid .wp-block-post-author,
.rku-dossier-grid .wp-block-post-terms {
	color: rgba(250, 248, 244, 0.78);
}

.rku-dossier-grid .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* --- Recent ------------------------------------------------------------- */

.rku-recent-list .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 4vw, 4.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.rku-recent-list .wp-block-post {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 1rem;
	align-items: baseline;
	padding-block: 0.9rem;
	border-bottom: var(--rku-rule-thin);
}

.rku-recent-list .wp-block-post-featured-image,
.rku-recent-list .wp-block-post-excerpt {
	display: none;
}

.rku-recent-list .wp-block-post-title {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.18;
}

.rku-recent-list .wp-block-post-date {
	white-space: nowrap;
	font-size: 0.78rem;
}

/* --- Homepage section spacing ------------------------------------------ */

.rku-home > .rku-section,
.rku-home > .rku-dossier-band {
	margin-block-start: var(--rku-space-6);
}

.rku-home > .rku-dossier-band + .rku-section {
	margin-block-start: var(--rku-space-6);
}

/* --- Tablet ------------------------------------------------------------- */

@media (max-width: 980px) {

	.rku-lead .wp-block-post-template,
	.rku-research-grid .wp-block-post-template,
	.rku-dossier-grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rku-lead .wp-block-post:nth-child(1),
	.rku-research-grid .wp-block-post:nth-child(1),
	.rku-dossier-grid .wp-block-post:nth-child(1) {
		grid-column: 1 / -1;
		grid-row: auto;
		border-right: 0;
	}

	.rku-lead .wp-block-post:nth-child(2),
	.rku-lead .wp-block-post:nth-child(3),
	.rku-research-grid .wp-block-post:nth-child(2),
	.rku-research-grid .wp-block-post:nth-child(3),
	.rku-dossier-grid .wp-block-post:nth-child(2),
	.rku-dossier-grid .wp-block-post:nth-child(3) {
		grid-column: auto;
	}

	.rku-lead .wp-block-post:nth-child(1) .wp-block-post-title {
		font-size: clamp(2.5rem, 7vw, 4.25rem);
	}
}

/* --- Mobile ------------------------------------------------------------- */

@media (max-width: 680px) {

	.rku-home {
		padding-inline: 1rem;
	}

	.rku-lead {
		margin-block: 1.5rem 3rem;
	}

	.rku-lead .wp-block-post-template,
	.rku-section--articles .rku-articles-grid .wp-block-post-template,
	.rku-research-grid .wp-block-post-template,
	.rku-dossier-grid .wp-block-post-template,
	.rku-recent-list .wp-block-post-template {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.rku-lead .wp-block-post:nth-child(1),
	.rku-lead .wp-block-post:nth-child(2),
	.rku-lead .wp-block-post:nth-child(3),
	.rku-research-grid .wp-block-post:nth-child(1),
	.rku-research-grid .wp-block-post:nth-child(2),
	.rku-research-grid .wp-block-post:nth-child(3),
	.rku-dossier-grid .wp-block-post:nth-child(1),
	.rku-dossier-grid .wp-block-post:nth-child(2),
	.rku-dossier-grid .wp-block-post:nth-child(3) {
		grid-column: 1;
		grid-row: auto;
	}

	.rku-lead .wp-block-post,
	.rku-articles-grid .wp-block-post {
		padding-block: 1.25rem;
		border-right: 0;
		border-top: var(--rku-rule-thin);
		border-bottom: 0;
	}

	.rku-lead .wp-block-post:first-child,
	.rku-articles-grid .wp-block-post:first-child {
		border-top: var(--rku-rule-strong);
	}

	.rku-lead .wp-block-post:nth-child(1) .wp-block-post-title,
	.rku-research-grid .wp-block-post:nth-child(1) .wp-block-post-title,
	.rku-dossier-grid .wp-block-post:nth-child(1) .wp-block-post-title {
		font-size: clamp(2rem, 11vw, 3.1rem);
	}

	.rku-recent-list .wp-block-post {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0.35rem;
	}

	.rku-dossier-band {
		padding-inline: 1rem;
	}
}

/* ==========================================================================
   17A. FEATURED PATTERN NORMALISATION — v0.2.1
   --------------------------------------------------------------------------
   The current WordPress Query Loop uses the native pattern "Εικόνα στα αριστερά",
   which contains an internal Columns block. For the homepage lead area we
   neutralise that internal two-column layout so the visual-system grid can own
   the composition.
   ========================================================================== */

.rku-lead .wp-block-columns {
	display: block;
	margin: 0;
}

.rku-lead .wp-block-column {
	flex-basis: auto !important;
	width: 100% !important;
	margin: 0;
}

.rku-lead .wp-block-post-featured-image {
	margin-bottom: var(--rku-space-3);
}

.rku-lead .wp-block-post-title,
.rku-lead .wp-block-post-excerpt {
	max-width: 100%;
}

@media (min-width: 981px) {
	.rku-lead .wp-block-post:nth-child(1) .wp-block-post-featured-image {
		margin-bottom: var(--rku-space-4);
	}
}

@media (max-width: 680px) {
	.rku-lead .wp-block-columns {
		display: block;
	}
}

/* ==========================================================================
   17B. ARTICLES & ANALYSIS NORMALISATION — v0.2.2
   --------------------------------------------------------------------------
   The current Query Loop also uses WordPress' "Εικόνα στα αριστερά" pattern.
   Inside the editorial two-column grid, each story becomes a self-contained
   vertical story unit. If a post has no featured image, no empty image column
   is reserved.
   ========================================================================== */

.rku-articles-grid .wp-block-columns {
	display: block;
	margin: 0;
}

.rku-articles-grid .wp-block-column {
	flex-basis: auto !important;
	width: 100% !important;
	margin: 0;
}

.rku-articles-grid .wp-block-post-featured-image {
	margin: 0 0 var(--rku-space-3);
	overflow: hidden;
}

.rku-articles-grid .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.rku-articles-grid .wp-block-post:not(:has(.wp-block-post-featured-image img)) {
	padding-top: var(--rku-space-4);
}

.rku-articles-grid .wp-block-post:not(:has(.wp-block-post-featured-image img)) .wp-block-post-title {
	font-size: clamp(1.55rem, 2.25vw, 2.3rem);
}

/* Let the query work even before/without an outer section Group. */
.rku-articles-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 4vw, 4.5rem);
	row-gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 680px) {
	.rku-articles-grid .wp-block-post-template {
		grid-template-columns: minmax(0, 1fr);
	}

	.rku-articles-grid .wp-block-columns {
		display: block;
	}
}

/* ==========================================================================
   17C. RESEARCH PATTERN NORMALISATION — v0.2.3
   --------------------------------------------------------------------------
   The existing Research Query Loop also uses the native "Εικόνα στα αριστερά"
   pattern. Inside the RKUltra research zone, each result becomes a vertical
   editorial unit so the cobalt hierarchy can control the composition.
   ========================================================================== */

.rku-research-grid .wp-block-columns {
	display: block;
	margin: 0;
}

.rku-research-grid .wp-block-column {
	flex-basis: auto !important;
	width: 100% !important;
	margin: 0;
}

.rku-research-grid .wp-block-post-featured-image {
	margin: 0 0 var(--rku-space-3);
	overflow: hidden;
}

.rku-research-grid .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.rku-research-grid .wp-block-post-excerpt {
	margin-top: var(--rku-space-2);
}

.rku-research-grid .wp-block-post:not(:has(.wp-block-post-featured-image img)) {
	padding-top: clamp(1.25rem, 2vw, 2rem);
}

/* Graceful behaviour when only one or two Research posts exist. */
.rku-research-grid .wp-block-post-template:has(> .wp-block-post:only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.rku-research-grid .wp-block-post:only-child {
	grid-column: 1 / -1;
	max-width: 54rem;
}

.rku-research-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.rku-research-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(1),
.rku-research-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(2) {
	grid-column: auto;
	grid-row: auto;
}

@media (max-width: 680px) {
	.rku-research-grid .wp-block-columns {
		display: block;
	}
}

/* ==========================================================================
   17D. DOSSIER PATTERN NORMALISATION — v0.2.4
   --------------------------------------------------------------------------
   The existing Dossier Query Loop uses WordPress' "Εικόνα στα αριστερά"
   pattern. In the RKUltra dossier band, each story becomes a vertical
   editorial unit and inherits the burgundy thematic treatment.
   ========================================================================== */

.rku-dossier-grid .wp-block-columns {
	display: block;
	margin: 0;
}

.rku-dossier-grid .wp-block-column {
	flex-basis: auto !important;
	width: 100% !important;
	margin: 0;
}

.rku-dossier-grid .wp-block-post-featured-image {
	margin: 0 0 var(--rku-space-3);
	overflow: hidden;
}

.rku-dossier-grid .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.rku-dossier-grid .wp-block-post-excerpt {
	margin-top: var(--rku-space-2);
}

.rku-dossier-grid .wp-block-post:not(:has(.wp-block-post-featured-image img)) {
	padding-top: clamp(1.25rem, 2vw, 2rem);
}

/* Graceful behaviour when only one or two dossier posts exist. */
.rku-dossier-grid .wp-block-post-template:has(> .wp-block-post:only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.rku-dossier-grid .wp-block-post:only-child {
	grid-column: 1 / -1;
	max-width: 54rem;
}

.rku-dossier-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.rku-dossier-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(1),
.rku-dossier-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(2) {
	grid-column: auto;
	grid-row: auto;
}

/* Make the dossier heading itself part of the semantic band when it lives
   inside the outer .rku-dossier-band Group. */
.rku-dossier-band .rku-section__title,
.rku-dossier-band > h1,
.rku-dossier-band > h2,
.rku-dossier-band > h3,
.rku-dossier-band .wp-block-heading {
	color: var(--rku-paper-soft);
}

.rku-dossier-band .wp-block-post-title a {
	color: var(--rku-paper-soft);
}

.rku-dossier-band .wp-block-post-title a:hover {
	color: #ffffff;
}

@media (max-width: 680px) {
	.rku-dossier-grid .wp-block-columns {
		display: block;
	}
}

/* ==========================================================================
   17E. DOSSIER FULL-BLEED CONSTRAINED-GROUP FIX — v0.2.5
   --------------------------------------------------------------------------
   WordPress renders the dossier wrapper as an is-layout-constrained Group.
   Earlier viewport-derived padding was therefore being calculated inside a
   constrained-width element and collapsed the inner content.

   This patch makes the burgundy band genuinely viewport-wide while keeping
   its editorial content aligned to the RKUltra wide measure.
   ========================================================================== */

.rku-dossier-band {
	position: relative;
	left: 50%;
	width: 100vw !important;
	max-width: none !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	padding:
		clamp(2.25rem, 5vw, 4.5rem)
		max(1rem, calc((100vw - var(--rku-wide-width)) / 2)) !important;
	box-sizing: border-box;
	background: var(--rku-burgundy);
	color: var(--rku-paper-soft);
}

/* Override WordPress constrained-layout sizing only inside the dossier band. */
.rku-dossier-band > * {
	width: 100%;
	max-width: var(--rku-wide-width) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

/* The heading must remain a normal horizontal editorial heading. */
.rku-dossier-band > .wp-block-heading {
	margin-top: 0;
	margin-bottom: var(--rku-space-4);
	max-width: var(--rku-wide-width) !important;
	color: var(--rku-paper-soft);
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1;
	text-align: left;
	writing-mode: horizontal-tb !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	white-space: normal;
}

/* The Query and Post Template must use the full editorial measure. */
.rku-dossier-band > .wp-block-query,
.rku-dossier-band .rku-dossier-grid,
.rku-dossier-band .wp-block-post-template {
	width: 100%;
	max-width: var(--rku-wide-width) !important;
}

/* Preserve the locked light-on-burgundy semantic treatment. */
.rku-dossier-band .wp-block-post-title,
.rku-dossier-band .wp-block-post-title a {
	color: var(--rku-paper-soft) !important;
}

.rku-dossier-band .wp-block-post-title a:hover {
	color: #ffffff !important;
}

.rku-dossier-band .wp-block-post-excerpt,
.rku-dossier-band .wp-block-post-excerpt__excerpt,
.rku-dossier-band .wp-block-post-date,
.rku-dossier-band .wp-block-post-author,
.rku-dossier-band .wp-block-post-terms {
	color: rgba(250, 248, 244, 0.82) !important;
}

@media (max-width: 680px) {
	.rku-dossier-band {
		padding: 2rem 1rem !important;
	}
}

/* ==========================================================================
   17F. MOBILE STACK QUALIFICATION FIX — v0.2.6
   --------------------------------------------------------------------------
   Later desktop :has() rules for two-item Research/Dossier queries were
   overriding the earlier mobile single-column rules. This final mobile block
   is intentionally placed last and owns the mobile composition.
   ========================================================================== */

@media (max-width: 680px) {

	/* Research: always one story per row on mobile. */
	.rku-research-grid .wp-block-post-template,
	.rku-research-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child),
	.rku-research-grid .wp-block-post-template:has(> .wp-block-post:only-child) {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 1rem !important;
	}

	.rku-research-grid .wp-block-post:nth-child(1),
	.rku-research-grid .wp-block-post:nth-child(2),
	.rku-research-grid .wp-block-post:nth-child(3),
	.rku-research-grid .wp-block-post:only-child,
	.rku-research-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(1),
	.rku-research-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(2) {
		grid-column: 1 !important;
		grid-row: auto !important;
		width: 100% !important;
		max-width: none !important;
	}

	.rku-research-grid .wp-block-post {
		padding: 1rem !important;
	}

	.rku-research-grid .wp-block-post:nth-child(1) .wp-block-post-title {
		font-size: clamp(2rem, 9.5vw, 2.75rem) !important;
		line-height: 1.02;
	}

	.rku-research-grid .wp-block-post:nth-child(2) .wp-block-post-title,
	.rku-research-grid .wp-block-post:nth-child(3) .wp-block-post-title {
		font-size: clamp(1.5rem, 7vw, 2rem) !important;
		line-height: 1.08;
	}

	.rku-research-grid .wp-block-post-excerpt {
		font-size: 1rem;
		line-height: 1.55;
	}

	/* Dossiers: full-bleed band, but stories stack vertically on mobile. */
	.rku-dossier-grid .wp-block-post-template,
	.rku-dossier-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child),
	.rku-dossier-grid .wp-block-post-template:has(> .wp-block-post:only-child) {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 1.75rem !important;
	}

	.rku-dossier-grid .wp-block-post:nth-child(1),
	.rku-dossier-grid .wp-block-post:nth-child(2),
	.rku-dossier-grid .wp-block-post:nth-child(3),
	.rku-dossier-grid .wp-block-post:only-child,
	.rku-dossier-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(1),
	.rku-dossier-grid .wp-block-post-template:has(> .wp-block-post:nth-child(2):last-child) > .wp-block-post:nth-child(2) {
		grid-column: 1 !important;
		grid-row: auto !important;
		width: 100% !important;
		max-width: none !important;
	}

	.rku-dossier-grid .wp-block-post:nth-child(1) .wp-block-post-title {
		font-size: clamp(2rem, 9.5vw, 2.75rem) !important;
		line-height: 1.02;
	}

	.rku-dossier-grid .wp-block-post:nth-child(2) .wp-block-post-title,
	.rku-dossier-grid .wp-block-post:nth-child(3) .wp-block-post-title {
		font-size: clamp(1.5rem, 7vw, 2rem) !important;
		line-height: 1.08;
	}

	.rku-dossier-grid .wp-block-post-excerpt {
		font-size: 1rem;
		line-height: 1.55;
	}

	/* Keep the full-bleed dossier band stable without horizontal overflow. */
	.rku-dossier-band {
		left: 50%;
		width: 100vw !important;
		max-width: none !important;
		margin-left: -50vw !important;
		margin-right: -50vw !important;
		padding: 2rem 1rem 2.5rem !important;
		overflow-x: clip;
	}

	.rku-dossier-band > .wp-block-heading {
		margin-bottom: 1.5rem;
		font-size: clamp(2rem, 9vw, 2.75rem);
	}

	/* Recent list already stacks correctly; tighten the rhythm slightly. */
	.rku-recent-list .wp-block-post {
		padding-block: 1rem;
	}

	.rku-recent-list .wp-block-post-title {
		font-size: 1.15rem;
		line-height: 1.22;
	}

	.rku-recent-list .wp-block-post-date {
		font-size: 0.82rem;
	}
}

/* ==========================================================================
   18. SINGLE ARTICLE EDITORIAL LAYOUT — v0.3.0
   --------------------------------------------------------------------------
   Scoped strictly to body.single-post so the qualified Homepage v1 remains
   unchanged.

   Verified Blocksy structure:
   .ct-featured-image
   .hero-section.is-width-constrained
   .entry-header > .page-title + .entry-meta
   .entry-content.is-layout-constrained
   .author-box.is-width-constrained
   .ct-related-posts-container
   ========================================================================== */

/* --- Featured image + caption ------------------------------------------- */

.single-post .ct-featured-image {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.single-post .ct-featured-image .ct-media-container {
	overflow: hidden;
}

.single-post .ct-featured-image img {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: cover;
}

.single-post .ct-featured-image figcaption {
	margin-top: 0.55rem;
	color: var(--rku-muted);
	font-family: var(--rku-sans);
	font-size: 0.78rem;
	line-height: 1.4;
	text-align: center;
}

/* --- Article hero ------------------------------------------------------- */

.single-post .hero-section.is-width-constrained {
	max-width: 56rem !important;
	margin-left: auto;
	margin-right: auto;
}

.single-post .entry-header {
	margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.single-post .entry-header .page-title {
	margin: 0 0 1rem;
	color: var(--rku-ink);
	font-family: var(--rku-serif);
	font-size: clamp(2.8rem, 5.5vw, 5rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 0.98;
	text-wrap: balance;
}

/* Metadata: author prominent, category/date quieter. */
.single-post .entry-header .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.8rem;
	margin: 0;
	color: var(--rku-muted);
	font-family: var(--rku-sans);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.035em;
	line-height: 1.35;
	text-transform: uppercase;
}

.single-post .entry-header .entry-meta > li {
	margin: 0;
}

/* Avatars are not part of the RKUltra visual baseline. */
.single-post .entry-header .meta-author .ct-media-container-static {
	display: none;
}

.single-post .entry-header .ct-meta-element-author {
	color: var(--rku-ink);
	font-weight: 700;
}

.single-post .entry-header .meta-categories a {
	color: var(--rku-cobalt);
	font-weight: 700;
}

.single-post article.category-rku-research .entry-header .meta-categories a {
	color: var(--rku-cobalt);
}

.single-post article.category-rku-dossiers .entry-header .meta-categories a {
	color: var(--rku-burgundy);
}

/* --- Reading column ----------------------------------------------------- */

.single-post .entry-content.is-layout-constrained {
	max-width: var(--rku-reading-width) !important;
	margin-left: auto;
	margin-right: auto;
	color: var(--rku-ink);
	font-family: var(--rku-serif);
}

/* WordPress constrained children must inherit the RKUltra reading measure. */
.single-post .entry-content.is-layout-constrained > * {
	max-width: var(--rku-reading-width) !important;
	margin-left: auto;
	margin-right: auto;
}

.single-post .entry-content p,
.single-post .entry-content li {
	font-family: var(--rku-serif);
	font-size: clamp(1.075rem, 0.35vw + 1rem, 1.19rem);
	line-height: 1.72;
}

.single-post .entry-content p {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.single-post .entry-content h2.wp-block-heading {
	margin-top: 2.2em;
	margin-bottom: 0.65em;
	color: var(--rku-ink);
	font-family: var(--rku-serif);
	font-size: clamp(1.65rem, 2.4vw, 2.15rem);
	font-weight: 600;
	letter-spacing: -0.018em;
	line-height: 1.08;
}

.single-post .entry-content h3.wp-block-heading {
	margin-top: 2em;
	margin-bottom: 0.6em;
	font-size: clamp(1.35rem, 1.8vw, 1.7rem);
	line-height: 1.12;
}

.single-post .entry-content blockquote.wp-block-quote {
	margin: 2.2em auto;
	padding: 0.2rem 0 0.2rem 1.35rem;
	border-left: 4px solid var(--rku-cobalt);
	color: var(--rku-ink-soft);
	font-style: italic;
}

.single-post .entry-content blockquote.wp-block-quote p {
	font-size: clamp(1.15rem, 0.5vw + 1rem, 1.32rem);
	line-height: 1.65;
}

.single-post .entry-content a {
	text-decoration-thickness: 0.07em;
	text-underline-offset: 0.14em;
}

/* --- Share box ---------------------------------------------------------- */

.single-post .ct-share-box.is-width-constrained {
	max-width: var(--rku-reading-width) !important;
	margin-left: auto;
	margin-right: auto;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	border-top: var(--rku-rule-thin);
	border-bottom: var(--rku-rule-thin);
}

/* --- Author box --------------------------------------------------------- */

.single-post .author-box.is-width-constrained {
	display: block;
	max-width: var(--rku-reading-width) !important;
	margin-left: auto;
	margin-right: auto;
	margin-top: clamp(2.75rem, 5vw, 4.5rem);
	padding-top: 1.5rem;
	border-top: var(--rku-rule-strong);
}

/* Remove avatar/Gravatar dependency from the visual identity. */
.single-post .author-box > .ct-media-container {
	display: none !important;
}

.single-post .author-box > section {
	width: 100%;
}

.single-post .author-box-name {
	margin: 0 0 0.65rem;
	color: var(--rku-ink);
	font-family: var(--rku-serif);
	font-size: clamp(1.5rem, 2vw, 2rem);
	font-weight: 600;
	line-height: 1.08;
}

.single-post .author-box-bio {
	max-width: 42rem;
	margin-bottom: 0.8rem;
	color: var(--rku-ink-soft);
	font-family: var(--rku-serif);
	font-size: 1rem;
	line-height: 1.6;
}

.single-post .author-box-socials,
.single-post .ct-author-box-more {
	font-family: var(--rku-sans);
	font-size: 0.82rem;
	font-weight: 600;
}

/* Blocksy hides this box on small screens; authorship remains important in RKUltra. */
@media (max-width: 689px) {
	.single-post .author-box.ct-hidden-sm {
		display: block !important;
	}
}

/* --- Related articles --------------------------------------------------- */

.single-post .ct-related-posts-container {
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	border-top: var(--rku-rule-thin);
	background: var(--rku-paper-soft);
}

.single-post .ct-related-posts-container > .ct-container {
	max-width: var(--rku-wide-width);
}

.single-post .ct-related-posts .ct-module-title {
	margin: 0 0 1.6rem;
	color: var(--rku-ink);
	font-family: var(--rku-serif);
	font-size: clamp(1.8rem, 2.8vw, 2.6rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.single-post .ct-related-posts-items {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: clamp(1.5rem, 3vw, 3rem) !important;
}

.single-post .ct-related-posts-items > article {
	min-width: 0;
}

.single-post .ct-related-posts-items > article > div {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding-top: 1rem;
	border-top: var(--rku-rule-strong);
}

.single-post .ct-related-posts-items .ct-media-container {
	order: 0;
	overflow: hidden;
	margin-bottom: 0.35rem;
}

.single-post .ct-related-posts-items .ct-media-container img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9 !important;
	object-fit: cover;
}

.single-post .related-entry-title {
	order: 1;
	margin: 0;
	font-family: var(--rku-serif);
	font-size: clamp(1.3rem, 1.8vw, 1.75rem);
	font-weight: 600;
	line-height: 1.12;
}

.single-post .related-entry-title a {
	color: var(--rku-ink);
	text-decoration: none;
}

.single-post .related-entry-title a:hover {
	color: var(--rku-cobalt);
}

.single-post .ct-related-posts-items .entry-meta {
	order: 2;
	margin: 0;
	color: var(--rku-muted);
	font-family: var(--rku-sans);
	font-size: 0.78rem;
	font-weight: 600;
}

/* --- Mobile single article --------------------------------------------- */

@media (max-width: 680px) {

	.single-post .ct-container-full[data-content="narrow"] {
		overflow-x: clip;
	}

	.single-post .ct-featured-image {
		margin-bottom: 1.75rem;
	}

	.single-post .ct-featured-image figcaption {
		padding-left: 1rem;
		padding-right: 1rem;
		font-size: 0.72rem;
	}

	.single-post .hero-section.is-width-constrained,
	.single-post .entry-content.is-layout-constrained,
	.single-post .ct-share-box.is-width-constrained,
	.single-post .author-box.is-width-constrained {
		width: calc(100% - 2rem) !important;
		max-width: none !important;
	}

	.single-post .entry-header .page-title {
		font-size: clamp(2.35rem, 11vw, 3.3rem);
		line-height: 1;
	}

	.single-post .entry-header .entry-meta {
		gap: 0.4rem 0.65rem;
		font-size: 0.76rem;
	}

	.single-post .entry-content p,
	.single-post .entry-content li {
		font-size: 1.06rem;
		line-height: 1.68;
	}

	.single-post .entry-content h2.wp-block-heading {
		font-size: 1.65rem;
	}

	.single-post .entry-content blockquote.wp-block-quote {
		padding-left: 1rem;
	}

	.single-post .ct-related-posts-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.single-post .ct-related-posts-items {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 2rem !important;
	}
}

/* ==========================================================================
   18A. SINGLE ARTICLE DESKTOP REFINEMENT — v0.3.1
   --------------------------------------------------------------------------
   Tightens Blocksy's type-2 author box and slightly strengthens article
   metadata. Scoped to single posts only.
   ========================================================================== */

/* Slightly improve metadata legibility without competing with the headline. */
.single-post .entry-header .entry-meta {
	font-size: 0.86rem;
}

.single-post .entry-header .meta-author {
	color: var(--rku-ink);
}

/* Blocksy type-2 author box: convert from centred profile widget to a compact
   editorial byline panel. */
.single-post .author-box[data-type="type-2"] {
	display: block !important;
	min-height: 0 !important;
	padding: 1.4rem 0 1.25rem !important;
	text-align: left !important;
}

.single-post .author-box[data-type="type-2"] > section {
	display: block !important;
	width: 100% !important;
	text-align: left !important;
}

.single-post .author-box[data-type="type-2"] .author-box-name {
	margin: 0 0 0.55rem !important;
	text-align: left !important;
}

.single-post .author-box[data-type="type-2"] .author-box-bio {
	margin: 0 0 0.8rem !important;
	text-align: left !important;
}

.single-post .author-box[data-type="type-2"] .author-box-bio:empty {
	display: none;
}

.single-post .author-box[data-type="type-2"] .author-box-socials {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 0.55rem;
	margin: 0.5rem 0 0.75rem;
	text-align: left;
}

.single-post .author-box[data-type="type-2"] .author-box-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	border: var(--rku-rule-thin);
	border-radius: 999px;
	color: var(--rku-cobalt);
}

.single-post .author-box[data-type="type-2"] .ct-author-box-more {
	display: inline-block;
	margin-top: 0.15rem;
	color: var(--rku-cobalt);
	font-family: var(--rku-sans);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.single-post .author-box[data-type="type-2"] .ct-author-box-more:hover {
	color: var(--rku-burgundy);
}

/* The related section should follow the author panel without excessive dead
   space inherited from theme defaults. */
.single-post .author-box[data-type="type-2"] + .ct-related-posts-container {
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 680px) {
	.single-post .author-box[data-type="type-2"] {
		padding: 1.25rem 0 1rem !important;
	}

	.single-post .entry-header .entry-meta {
		font-size: 0.78rem;
	}
}

/* ==========================================================================
   19. CATEGORY ARCHIVE EDITORIAL SYSTEM — v0.4.0
   --------------------------------------------------------------------------
   Verified Blocksy category structure:
   body.archive.category.category-<slug>
   #main > .ct-container > section
   .hero-section.is-width-constrained
   .entry-header > .page-title > .ct-title-label
   .entries[data-archive="default"][data-layout="grid"][data-cards="boxed"]
   .entry-card
   .ct-media-container
   .entry-title
   .entry-meta[data-id="meta_1"]  (category)
   .entry-excerpt
   .entry-meta[data-id="meta_2"]  (author/date)

   Visual logic:
   - common archive skeleton
   - newest story = lead
   - remaining stories = two-column editorial stream
   - no boxed/card UI
   - Articles & Analysis = neutral
   - Research = cobalt semantic layer
   - Dossiers = burgundy semantic layer
   ========================================================================== */


/* --- Archive container + heading --------------------------------------- */

body.category #main > .ct-container {
	max-width: var(--rku-wide-width);
}

body.category .hero-section.is-width-constrained {
	max-width: var(--rku-wide-width) !important;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

body.category .hero-section .entry-header {
	margin: 0;
}

/* Hide the technical WordPress taxonomy prefix ("Κατηγορία"). */
body.category .page-title .ct-title-label {
	display: none;
}

body.category .hero-section .page-title {
	margin: 0;
	color: var(--rku-ink);
	font-family: var(--rku-serif);
	font-size: clamp(2.5rem, 4.5vw, 4.4rem);
	font-weight: 600;
	letter-spacing: -0.028em;
	line-height: 0.98;
	text-wrap: balance;
}

body.category .hero-section .page-description {
	max-width: 48rem;
	margin-top: 1rem;
	color: var(--rku-muted);
	font-family: var(--rku-serif);
	font-size: 1.05rem;
	line-height: 1.6;
}


/* --- Main archive grid -------------------------------------------------- */

body.category .entries {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	column-gap: clamp(2rem, 4vw, 4.5rem) !important;
	row-gap: 0 !important;
	margin: 0 !important;
}

/* Remove Blocksy's boxed-card appearance. */
body.category .entries > .entry-card {
	min-width: 0;
	margin: 0 !important;
	padding: var(--rku-space-4) 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-top: var(--rku-rule-thin) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* The first/newest story is the editorial lead. */
body.category .entries > .entry-card:first-child {
	grid-column: 1 / -1;
	padding-top: var(--rku-space-4) !important;
	padding-bottom: var(--rku-space-5) !important;
	border-top: var(--rku-rule-strong) !important;
	border-bottom: var(--rku-rule-thin) !important;
}

/* Text-only lead: keep a readable, strong measure rather than stretching it. */
body.category .entries > .entry-card:first-child:not(:has(> .ct-media-container)) {
	max-width: 58rem;
}

/* Image-led lead: image left, editorial text right. */
body.category .entries > .entry-card:first-child:has(> .ct-media-container) {
	display: grid !important;
	grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
	column-gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
}

body.category .entries > .entry-card:first-child:has(> .ct-media-container) > .ct-media-container {
	grid-column: 1;
	grid-row: 1 / span 5;
	margin: 0;
}

body.category .entries > .entry-card:first-child:has(> .ct-media-container) > :not(.ct-media-container) {
	grid-column: 2;
}


/* --- Archive images ----------------------------------------------------- */

body.category .entry-card > .ct-media-container {
	display: block;
	overflow: hidden;
	margin: 0 0 var(--rku-space-3);
	background: var(--rku-rule);
}

body.category .entry-card > .ct-media-container img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2 !important;
	object-fit: cover;
}

body.category .entries > .entry-card:first-child > .ct-media-container img {
	aspect-ratio: 16 / 9 !important;
}


/* --- Titles ------------------------------------------------------------- */

body.category .entry-card .entry-title {
	margin: 0 0 0.65rem;
	font-family: var(--rku-serif);
	font-size: clamp(1.55rem, 2.2vw, 2.25rem);
	font-weight: 600;
	letter-spacing: -0.018em;
	line-height: 1.08;
}

body.category .entries > .entry-card:first-child .entry-title {
	font-size: clamp(2.25rem, 3.8vw, 3.9rem);
	line-height: 1.01;
	letter-spacing: -0.027em;
}

body.category .entry-card .entry-title a {
	color: var(--rku-ink);
	text-decoration: none;
}

body.category .entry-card .entry-title a:hover {
	color: var(--rku-cobalt);
}


/* --- Archive metadata --------------------------------------------------- */

/* Repeating the category name inside its own archive adds no information. */
body.category .entry-card > .entry-meta[data-id="meta_1"] {
	display: none;
}

body.category .entry-card > .entry-meta[data-id="meta_2"] {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
	margin: 1rem 0 0;
	color: var(--rku-muted);
	font-family: var(--rku-sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.035em;
	line-height: 1.35;
	text-transform: uppercase;
}

body.category .entry-card > .entry-meta[data-id="meta_2"] .ct-meta-element-author {
	color: var(--rku-ink);
	font-weight: 700;
}


/* --- Excerpts ----------------------------------------------------------- */

body.category .entry-card .entry-excerpt {
	margin: 0;
	color: var(--rku-ink-soft);
	font-family: var(--rku-serif);
}

body.category .entry-card .entry-excerpt p {
	margin: 0;
	font-family: var(--rku-serif);
	font-size: 1rem;
	line-height: 1.58;
}

body.category .entries > .entry-card:first-child .entry-excerpt {
	max-width: 48rem;
}

body.category .entries > .entry-card:first-child .entry-excerpt p {
	font-size: clamp(1.05rem, 0.3vw + 1rem, 1.16rem);
	line-height: 1.64;
}


/* --- Articles & Analysis: neutral editorial archive -------------------- */

body.category-rku-article-analysis .hero-section .page-title {
	color: var(--rku-ink);
}

body.category-rku-article-analysis .entries > .entry-card:first-child {
	border-top-color: var(--rku-ink) !important;
}


/* --- Research: cobalt semantic archive --------------------------------- */

body.category-rku-research .hero-section .page-title {
	color: var(--rku-cobalt);
}

body.category-rku-research .entries > .entry-card {
	border-top-color: rgba(33, 71, 183, 0.38) !important;
}

body.category-rku-research .entries > .entry-card:first-child {
	border-top: 4px solid var(--rku-cobalt) !important;
}

body.category-rku-research .entry-card .entry-title a:hover,
body.category-rku-research .entry-card > .entry-meta[data-id="meta_2"] .ct-meta-element-author {
	color: var(--rku-cobalt);
}


/* --- Dossiers: burgundy semantic archive ------------------------------- */

body.category-rku-dossiers .hero-section .page-title {
	color: var(--rku-burgundy);
}

body.category-rku-dossiers .entries > .entry-card {
	border-top-color: rgba(143, 29, 44, 0.38) !important;
}

body.category-rku-dossiers .entries > .entry-card:first-child {
	padding: clamp(1.5rem, 3vw, 2.5rem) !important;
	background: var(--rku-burgundy) !important;
	border-top: 0 !important;
	border-bottom: 0 !important;
	color: var(--rku-paper-soft);
}

body.category-rku-dossiers .entries > .entry-card:first-child .entry-title a {
	color: var(--rku-paper-soft);
}

body.category-rku-dossiers .entries > .entry-card:first-child .entry-title a:hover {
	color: #ffffff;
}

body.category-rku-dossiers .entries > .entry-card:first-child .entry-excerpt,
body.category-rku-dossiers .entries > .entry-card:first-child .entry-excerpt p,
body.category-rku-dossiers .entries > .entry-card:first-child .entry-meta,
body.category-rku-dossiers .entries > .entry-card:first-child .ct-meta-element-author {
	color: rgba(250, 248, 244, 0.86) !important;
}

body.category-rku-dossiers .entry-card .entry-title a:hover,
body.category-rku-dossiers .entry-card > .entry-meta[data-id="meta_2"] .ct-meta-element-author {
	color: var(--rku-burgundy);
}


/* --- Archive pagination ------------------------------------------------- */

body.category .ct-pagination {
	margin-top: var(--rku-space-5);
	padding-top: var(--rku-space-3);
	border-top: var(--rku-rule-strong);
	font-family: var(--rku-sans);
	font-size: 0.9rem;
	font-weight: 700;
}

body.category .ct-pagination a {
	color: var(--rku-ink);
}

body.category .ct-pagination a:hover,
body.category .ct-pagination .current {
	color: var(--rku-cobalt);
}


/* --- Tablet ------------------------------------------------------------- */

@media (max-width: 980px) {

	body.category .entries > .entry-card:first-child:has(> .ct-media-container) {
		display: block !important;
	}

	body.category .entries > .entry-card:first-child:has(> .ct-media-container) > .ct-media-container {
		margin-bottom: var(--rku-space-3);
	}
}


/* --- Mobile ------------------------------------------------------------- */

@media (max-width: 680px) {

	body.category #main > .ct-container {
		width: calc(100% - 2rem);
	}

	body.category .hero-section.is-width-constrained {
		margin-bottom: 1.75rem;
	}

	body.category .hero-section .page-title {
		font-size: clamp(2.25rem, 11vw, 3.2rem);
		line-height: 1;
	}

	body.category .entries {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.category .entries > .entry-card,
	body.category .entries > .entry-card:first-child {
		grid-column: 1 !important;
		display: block !important;
		width: 100%;
		max-width: none;
		padding: 1.35rem 0 !important;
	}

	body.category-rku-dossiers .entries > .entry-card:first-child {
		padding: 1.25rem !important;
	}

	body.category .entries > .entry-card:first-child .entry-title {
		font-size: clamp(2rem, 9.5vw, 2.8rem);
	}

	body.category .entry-card .entry-title {
		font-size: clamp(1.5rem, 7.5vw, 2rem);
	}

	body.category .entry-card .entry-excerpt p {
		font-size: 1rem;
		line-height: 1.56;
	}

	body.category .entry-card > .entry-meta[data-id="meta_2"] {
		font-size: 0.76rem;
	}

	body.category .ct-pagination {
		margin-top: 2rem;
	}
}

/* ==========================================================================
   19A. CATEGORY MOBILE MEDIA CONTAINMENT FIX — v0.4.1
   --------------------------------------------------------------------------
   Blocksy may apply intrinsic sizing / negative-margin behaviour to archive
   media containers at narrow widths. Keep every category-archive image inside
   the editorial card/container boundary.
   ========================================================================== */

@media (max-width: 680px) {

	body.category .entries,
	body.category .entry-card {
		min-width: 0;
		max-width: 100%;
	}

	body.category .entry-card > .ct-media-container {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	body.category .entry-card > .ct-media-container img {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		margin: 0 !important;
		box-sizing: border-box !important;
		object-fit: cover;
	}

	/* Dossier lead keeps its internal burgundy padding; media must respect it. */
	body.category-rku-dossiers .entries > .entry-card:first-child > .ct-media-container {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* ==========================================================================
   20. AUTHOR ARCHIVE EDITORIAL SYSTEM — v0.5.0
   --------------------------------------------------------------------------
   Verified Blocksy author structure:
   body.archive.author
   .hero-section[data-type="type-2"]
   .entry-header.ct-container-narrow
   .ct-author-name
     .ct-media-container-static > img
     .page-title
   .page-description.ct-hidden-sm
   .entry-meta
     .meta-date
     .meta-articles
   .entries[data-archive="default"][data-layout="grid"][data-cards="boxed"]

   Author identity rule:
   - show only locally uploaded author portraits
   - do not fall back visually to generic Gravatar imagery
   ========================================================================== */


/* --- Author hero -------------------------------------------------------- */

body.author .hero-section[data-type="type-2"] {
	padding: clamp(2.75rem, 6vw, 5rem) 1rem;
	background: var(--rku-paper-soft);
	border-bottom: var(--rku-rule-thin);
}

body.author .hero-section .entry-header.ct-container-narrow {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	grid-template-rows: auto auto auto;
	column-gap: clamp(1.5rem, 3vw, 2.5rem);
	row-gap: 0.8rem;
	max-width: 58rem !important;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

/* Flatten Blocksy's name wrapper so portrait + name participate in the grid. */
body.author .ct-author-name {
	display: contents;
}

/* Hide any generic/remote avatar. */
body.author .ct-author-name .ct-media-container-static {
	display: none;
}

/* Show only a locally uploaded author portrait. */
body.author .ct-author-name .ct-media-container-static:has(img[src*="/wp-content/uploads/"]) {
	display: block;
	grid-column: 1;
	grid-row: 1 / span 3;
	align-self: start;
	width: 7.5rem;
	height: 7.5rem;
	overflow: hidden;
	border-radius: 0.4rem;
	background: transparent;
}

body.author .ct-author-name .ct-media-container-static img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover;
	object-position: center;
}

body.author .ct-author-name .page-title {
	grid-column: 2;
	grid-row: 1;
	align-self: end;
	margin: 0;
	color: var(--rku-ink);
	font-family: var(--rku-serif);
	font-size: clamp(2.8rem, 5vw, 4.8rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 0.98;
	text-wrap: balance;
}

body.author .hero-section .page-description {
	display: block !important;
	grid-column: 2;
	grid-row: 2;
	max-width: 46rem;
	margin: 0;
	color: var(--rku-ink-soft);
	font-family: var(--rku-serif);
	font-size: 1.05rem;
	line-height: 1.62;
	text-align: left;
}

/* Joined date is account metadata, not useful editorially. */
body.author .hero-section .entry-meta {
	grid-column: 2;
	grid-row: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	color: var(--rku-muted);
	font-family: var(--rku-sans);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.045em;
	line-height: 1.3;
	text-align: left;
	text-transform: uppercase;
}

body.author .hero-section .entry-meta .meta-date {
	display: none;
}

body.author .hero-section .entry-meta .meta-articles {
	color: var(--rku-cobalt);
}


/* --- Author article stream --------------------------------------------- */

body.author #main > .ct-container {
	max-width: var(--rku-wide-width);
}

body.author #main > .ct-container > section {
	width: 100%;
}

body.author .entries {
	display: block !important;
	margin: 0 !important;
}

body.author .entries > .entry-card {
	display: grid !important;
	grid-template-columns: minmax(15rem, 5fr) minmax(0, 7fr);
	grid-template-rows: auto auto 1fr auto;
	column-gap: clamp(2rem, 4vw, 4rem);
	row-gap: 0.65rem;
	min-width: 0;
	margin: 0 !important;
	padding: clamp(2rem, 4vw, 3.25rem) 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-top: var(--rku-rule-thin) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.author .entries > .entry-card:first-child {
	border-top: var(--rku-rule-strong) !important;
}

/* Media occupies the left column. */
body.author .entry-card > .ct-media-container {
	grid-column: 1;
	grid-row: 1 / span 4;
	align-self: start;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--rku-rule);
}

body.author .entry-card > .ct-media-container img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 3 / 2 !important;
	object-fit: cover;
}

/* Text lives in the right column. */
body.author .entry-card > .entry-meta[data-id="meta_1"] {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
}

body.author .entry-card > .entry-title {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	font-family: var(--rku-serif);
	font-size: clamp(1.8rem, 2.8vw, 2.8rem);
	font-weight: 600;
	letter-spacing: -0.022em;
	line-height: 1.04;
}

body.author .entry-card > .entry-title a {
	color: var(--rku-ink);
	text-decoration: none;
}

body.author .entry-card > .entry-title a:hover {
	color: var(--rku-cobalt);
}

body.author .entry-card > .entry-excerpt {
	grid-column: 2;
	grid-row: 3;
	margin: 0;
	color: var(--rku-ink-soft);
	font-family: var(--rku-serif);
}

body.author .entry-card > .entry-excerpt p {
	margin: 0;
	font-family: var(--rku-serif);
	font-size: 1rem;
	line-height: 1.6;
}

body.author .entry-card > .entry-meta[data-id="meta_2"] {
	grid-column: 2;
	grid-row: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.75rem;
	margin: 0.35rem 0 0;
	color: var(--rku-muted);
	font-family: var(--rku-sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.035em;
	line-height: 1.3;
	text-transform: uppercase;
}

/* Author name is redundant inside the author's own archive. */
body.author .entry-card > .entry-meta[data-id="meta_2"] .meta-author {
	display: none;
}

/* Category functions as a semantic kicker. */
body.author .entry-card > .entry-meta[data-id="meta_1"] {
	font-family: var(--rku-sans);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.author .entry-card > .entry-meta[data-id="meta_1"] a {
	color: var(--rku-cobalt);
	text-decoration: none;
}

body.author .entry-card.category-rku-dossiers > .entry-meta[data-id="meta_1"] a {
	color: var(--rku-burgundy);
}

/* Text-only stories expand naturally across the editorial measure. */
body.author .entry-card:not(:has(> .ct-media-container)) > * {
	grid-column: 1 / -1 !important;
	max-width: 52rem;
}


/* --- Single article author portrait ------------------------------------ */
/* Earlier RKUltra CSS intentionally hid the avatar. Now that local portraits
   are available, show the portrait only when its source is local. */

.single-post .author-box[data-type="type-2"] {
	display: grid !important;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	column-gap: 1.25rem;
	align-items: start;
}

.single-post .author-box[data-type="type-2"] > .ct-media-container {
	display: none !important;
}

/* Local portrait: visible. Remote Gravatar: remains hidden. */
.single-post .author-box[data-type="type-2"] > .ct-media-container:has(img[src*="/wp-content/uploads/"]) {
	display: block !important;
	grid-column: 1;
	grid-row: 1;
	width: 5.5rem !important;
	height: 5.5rem !important;
	margin: 0 !important;
	overflow: hidden;
	border-radius: 0.35rem;
}

.single-post .author-box[data-type="type-2"] > .ct-media-container:has(img[src*="/wp-content/uploads/"]) img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

.single-post .author-box[data-type="type-2"] > .ct-media-container:has(img[src*="/wp-content/uploads/"]) svg {
	display: none;
}

.single-post .author-box[data-type="type-2"] > section {
	grid-column: 2;
	grid-row: 1;
}


/* --- Author mobile ------------------------------------------------------ */

@media (max-width: 680px) {

	body.author .hero-section[data-type="type-2"] {
		padding: 2rem 1rem 2.25rem;
	}

	body.author .hero-section .entry-header.ct-container-narrow {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		row-gap: 0.85rem;
		width: 100%;
		max-width: none !important;
	}

	body.author .ct-author-name {
		display: contents;
	}

	body.author .ct-author-name .ct-media-container-static:has(img[src*="/wp-content/uploads/"]) {
		grid-column: 1;
		grid-row: 1;
		width: 6rem;
		height: 6rem;
	}

	body.author .ct-author-name .page-title {
		grid-column: 1;
		grid-row: 2;
		font-size: clamp(2.4rem, 12vw, 3.4rem);
		line-height: 0.98;
	}

	body.author .hero-section .page-description {
		grid-column: 1;
		grid-row: 3;
		font-size: 1rem;
		line-height: 1.58;
	}

	body.author .hero-section .entry-meta {
		grid-column: 1;
		grid-row: 4;
		font-size: 0.76rem;
	}

	body.author #main > .ct-container {
		width: calc(100% - 2rem);
	}

	body.author .entries > .entry-card {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto auto auto auto;
		row-gap: 0.75rem;
		width: 100%;
		max-width: 100%;
		padding: 1.5rem 0 !important;
	}

	body.author .entry-card > .ct-media-container {
		grid-column: 1;
		grid-row: 1;
		width: 100%;
		max-width: 100%;
	}

	body.author .entry-card > .entry-meta[data-id="meta_1"] {
		grid-column: 1;
		grid-row: 2;
	}

	body.author .entry-card > .entry-title {
		grid-column: 1;
		grid-row: 3;
		font-size: clamp(1.8rem, 8vw, 2.35rem);
	}

	body.author .entry-card > .entry-excerpt {
		grid-column: 1;
		grid-row: 4;
	}

	body.author .entry-card > .entry-meta[data-id="meta_2"] {
		grid-column: 1;
		grid-row: 5;
	}

	.single-post .author-box[data-type="type-2"] {
		grid-template-columns: 4.5rem minmax(0, 1fr);
		column-gap: 1rem;
	}

	.single-post .author-box[data-type="type-2"] > .ct-media-container:has(img[src*="/wp-content/uploads/"]) {
		width: 4.5rem !important;
		height: 4.5rem !important;
	}
}

/* ==========================================================================
   20A. SINGLE-POST AUTHOR PORTRAIT OFFSET — v0.5.1
   --------------------------------------------------------------------------
   Move the local author portrait slightly down so it clears the author-box
   top rule instead of visually touching/overlapping it.
   ========================================================================== */

.single-post .author-box[data-type="type-2"] > .ct-media-container:has(img[src*="/wp-content/uploads/"]) {
	margin-top: 8px !important;
}

@media (max-width: 680px) {
	.single-post .author-box[data-type="type-2"] > .ct-media-container:has(img[src*="/wp-content/uploads/"]) {
		margin-top: 6px !important;
	}
}

/* ==========================================================================
   21. HEADER / MASTHEAD EDITORIAL SYSTEM — v0.6.0
   --------------------------------------------------------------------------
   Verified Blocksy structure:
   #header.ct-header
   [data-device="desktop"] > [data-row="middle"] > .ct-container
   .site-branding[data-id="logo"] .site-title
   #header-menu-1.header-menu-1.menu-container
   .trp-language-switcher-container
   .ct-header-search[data-id="search"]

   Mobile:
   [data-device="mobile"] > [data-row="middle"]
   .ct-header-trigger[data-id="trigger"]
   #offcanvas.ct-panel.ct-header
   .mobile-menu.menu-container

   Design intent:
   - compact editorial masthead, not corporate header
   - strong RKUltra wordmark
   - clear navigation hierarchy
   - compact EN/EL language controls
   - accessible search and mobile trigger
   ========================================================================== */


/* --- Shared masthead foundation ---------------------------------------- */

#header.ct-header {
	font-family: var(--rku-sans);
}

#header.ct-header [data-row="middle"] {
	background: var(--rku-paper-soft);
	border-bottom: var(--rku-rule-thin);
}

#header.ct-header [data-row="middle"] > .ct-container {
	max-width: var(--rku-wide-width);
}


/* --- Wordmark ----------------------------------------------------------- */

#header .site-branding[data-id="logo"] .site-title,
#header .site-branding[data-id="logo"] .site-title a {
	font-family: var(--rku-sans);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1;
	text-decoration: none;
}

#header .site-branding[data-id="logo"] .site-title a {
	color: var(--rku-cobalt);
}

#header .site-branding[data-id="logo"] .site-title a:hover,
#header .site-branding[data-id="logo"] .site-title a:focus-visible {
	color: var(--rku-ink);
}


/* --- Desktop masthead --------------------------------------------------- */

#header [data-device="desktop"] [data-row="middle"] > .ct-container {
	min-height: 82px;
}

#header [data-device="desktop"] .site-title {
	font-size: clamp(1.65rem, 2vw, 2rem);
}

#header-menu-1 .menu {
	display: flex;
	align-items: center;
	gap: clamp(0.7rem, 1.3vw, 1.25rem);
}

#header-menu-1 .ct-menu-link {
	position: relative;
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
	color: var(--rku-ink);
	font-family: var(--rku-sans);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.045em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 140ms ease;
}

#header-menu-1 .ct-menu-link:hover,
#header-menu-1 .ct-menu-link:focus-visible {
	color: var(--rku-cobalt);
}

/* Editorial active-state marker; language items are excluded. */
#header-menu-1 li:not(.trp-language-switcher-container).current-menu-item > .ct-menu-link,
#header-menu-1 li:not(.trp-language-switcher-container).current-menu-ancestor > .ct-menu-link,
#header-menu-1 li:not(.trp-language-switcher-container).current-menu-parent > .ct-menu-link {
	color: var(--rku-cobalt);
	box-shadow: inset 0 -2px 0 var(--rku-cobalt);
}


/* --- Compact language switcher: EN / EL ------------------------------- */

#header-menu-1 .trp-language-switcher-container .trp-flag-image,
#offcanvas .trp-language-switcher-container .trp-flag-image {
	display: none;
}

#header-menu-1 .trp-language-switcher-container .trp-ls-language-name,
#offcanvas .trp-language-switcher-container .trp-ls-language-name {
	display: none;
}

#header-menu-1 .trp-menu-ls-label[title="English"]::after,
#offcanvas .trp-menu-ls-label[title="English"]::after {
	content: "EN";
}

#header-menu-1 .trp-menu-ls-label[title="Greek"]::after,
#offcanvas .trp-menu-ls-label[title="Greek"]::after {
	content: "EL";
}

#header-menu-1 .trp-language-switcher-container .ct-menu-link {
	min-width: 2rem;
	justify-content: center;
	padding-left: 0.25rem;
	padding-right: 0.25rem;
	color: var(--rku-muted);
	letter-spacing: 0.055em;
}

#header-menu-1 .trp-language-switcher-container.current-language-menu-item .ct-menu-link {
	color: var(--rku-ink);
}

#header-menu-1 .trp-language-switcher-container + .trp-language-switcher-container {
	margin-left: -0.45rem;
}


/* --- Desktop search ----------------------------------------------------- */

#header .ct-header-search[data-id="search"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	margin-left: 0.25rem;
	color: var(--rku-ink);
	border-radius: 999px;
	transition:
		color 140ms ease,
		background-color 140ms ease;
}

#header .ct-header-search[data-id="search"]:hover,
#header .ct-header-search[data-id="search"]:focus-visible {
	color: var(--rku-cobalt);
	background: var(--rku-cobalt-soft);
}

#header .ct-header-search[data-id="search"] .ct-icon {
	width: 1rem;
	height: 1rem;
}


/* --- Search modal ------------------------------------------------------- */

#search-modal .ct-panel-content {
	background: var(--rku-paper-soft);
}

#search-modal .ct-search-form {
	font-family: var(--rku-sans);
}

#search-modal input[type="search"] {
	color: var(--rku-ink);
	font-family: var(--rku-serif);
	font-size: clamp(1.4rem, 3vw, 2.4rem);
}

#search-modal .ct-toggle-close {
	color: var(--rku-ink);
}


/* --- Mobile masthead ---------------------------------------------------- */

#header [data-device="mobile"] [data-row="middle"] > .ct-container {
	min-height: 74px;
}

#header [data-device="mobile"] .site-title {
	font-size: 1.9rem;
}

#header .ct-header-trigger[data-id="trigger"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.8rem;
	height: 2.8rem;
	color: var(--rku-ink);
	border-radius: 999px;
	transition:
		color 140ms ease,
		background-color 140ms ease;
}

#header .ct-header-trigger[data-id="trigger"]:hover,
#header .ct-header-trigger[data-id="trigger"]:focus-visible {
	color: var(--rku-cobalt);
	background: var(--rku-cobalt-soft);
}

#header .ct-header-trigger[data-id="trigger"] .ct-icon {
	width: 1.7rem;
	height: 1.7rem;
}


/* --- Off-canvas mobile navigation -------------------------------------- */

#offcanvas.ct-panel.ct-header .ct-panel-inner,
#offcanvas.ct-panel.ct-header .ct-panel-content,
#offcanvas.ct-panel.ct-header .ct-panel-content-inner {
	background: var(--rku-paper-soft);
}

#offcanvas.ct-panel.ct-header .ct-panel-inner {
	width: min(88vw, 24rem);
}

#offcanvas .ct-panel-actions {
	padding: 1rem 1rem 0;
}

#offcanvas .ct-toggle-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--rku-ink);
	border-radius: 999px;
}

#offcanvas .mobile-menu {
	padding: 1rem 1.35rem 2rem;
}

#offcanvas .mobile-menu > ul {
	margin: 0;
	padding: 0;
}

#offcanvas .mobile-menu .menu-item {
	border-bottom: var(--rku-rule-thin);
}

#offcanvas .mobile-menu .ct-menu-link {
	display: flex;
	align-items: center;
	min-height: 3.4rem;
	padding: 0.75rem 0;
	color: var(--rku-ink);
	font-family: var(--rku-sans);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	line-height: 1.2;
	text-decoration: none;
}

#offcanvas .mobile-menu .ct-menu-link:hover,
#offcanvas .mobile-menu .ct-menu-link:focus-visible,
#offcanvas .mobile-menu .current-menu-item > .ct-menu-link {
	color: var(--rku-cobalt);
}

/* Language choices behave as a compact pair at the end of the menu. */
#offcanvas .mobile-menu .trp-language-switcher-container {
	display: inline-block;
	width: auto;
	margin-right: 1rem;
	border-bottom: 0;
}

#offcanvas .mobile-menu .trp-language-switcher-container .ct-menu-link {
	min-height: 2.75rem;
	color: var(--rku-muted);
	font-size: 0.9rem;
	letter-spacing: 0.08em;
}

#offcanvas .mobile-menu .trp-language-switcher-container.current-language-menu-item .ct-menu-link {
	color: var(--rku-ink);
}


/* --- Tight-screen protection ------------------------------------------- */

@media (max-width: 1080px) and (min-width: 690px) {
	#header-menu-1 .menu {
		gap: 0.55rem;
	}

	#header-menu-1 .ct-menu-link {
		font-size: 0.75rem;
		letter-spacing: 0.025em;
	}
}

@media (max-width: 680px) {
	#header [data-device="mobile"] [data-row="middle"] > .ct-container {
		width: calc(100% - 2rem);
	}
}

/* ==========================================================================
   21A. HEADER LANGUAGE + OFFCANVAS CONTROL FIX — v0.6.1
   --------------------------------------------------------------------------
   TranslatePress may render flag assets with markup/classes that differ from
   the expected .trp-flag-image selector. Suppress any image inside language
   menu items. Also force the mobile close control to use the RKUltra ink
   colour instead of Blocksy's light/default off-canvas icon colour.
   ========================================================================== */

/* No flags in RKUltra navigation: language is text-only EN / EL. */
#header-menu-1 .trp-language-switcher-container img,
#offcanvas .trp-language-switcher-container img,
#header-menu-1 .trp-language-switcher-container .trp-flag-image,
#offcanvas .trp-language-switcher-container .trp-flag-image {
	display: none !important;
}

/* Keep the text language codes visually balanced after flag removal. */
#header-menu-1 .trp-language-switcher-container .ct-menu-link,
#offcanvas .trp-language-switcher-container .ct-menu-link {
	gap: 0 !important;
}

/* Blocksy close icon can inherit a light icon colour in the drawer. */
#offcanvas .ct-toggle-close {
	color: var(--rku-ink) !important;
	--theme-icon-color: var(--rku-ink) !important;
	--theme-icon-hover-color: var(--rku-cobalt) !important;
	opacity: 1 !important;
}

#offcanvas .ct-toggle-close svg,
#offcanvas .ct-toggle-close .ct-icon {
	color: currentColor !important;
	fill: currentColor !important;
	stroke: currentColor !important;
	opacity: 1 !important;
}

#offcanvas .ct-toggle-close:hover,
#offcanvas .ct-toggle-close:focus-visible {
	color: var(--rku-cobalt) !important;
	background: var(--rku-cobalt-soft);
}

/* ==========================================================================
   22. FOOTER EDITORIAL SYSTEM — v0.7.0
   --------------------------------------------------------------------------
   Verified Blocksy structure:
   #footer.ct-footer[data-id="type-1"]
   [data-row="bottom"] > .ct-container
   [data-column="copyright"]
   .footer-menu-inline.menu-container
   #footer-menu
   #menu-footer-menu-rkultra

   Design intent:
   - quiet editorial closure, not a corporate mega-footer
   - strong top rule
   - off-white / ink / cool-gray only
   - compact About / Contact / ILABSEM navigation
   - mobile stack without crowding
   ========================================================================== */

#footer.ct-footer {
	margin-top: 0;
	font-family: var(--rku-sans);
}

#footer.ct-footer [data-row="bottom"] {
	background: var(--rku-paper-soft);
	border-top: var(--rku-rule-strong);
}

#footer.ct-footer [data-row="bottom"] > .ct-container {
	max-width: var(--rku-wide-width);
	min-height: 0;
	padding-top: 1.6rem;
	padding-bottom: 1.6rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 2rem;
}

/* Copyright / identity */
#footer.ct-footer [data-column="copyright"] {
	color: var(--rku-muted);
	font-family: var(--rku-sans);
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

#footer.ct-footer [data-column="copyright"] a {
	color: var(--rku-ink);
	font-weight: 700;
	text-decoration: none;
}

#footer.ct-footer [data-column="copyright"] a:hover,
#footer.ct-footer [data-column="copyright"] a:focus-visible {
	color: var(--rku-cobalt);
}

/* Footer menu */
#footer.ct-footer .footer-menu-inline,
#footer.ct-footer #footer-menu {
	margin: 0;
}

#footer.ct-footer #menu-footer-menu-rkultra {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.7rem 1.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

#footer.ct-footer #menu-footer-menu-rkultra .menu-item {
	margin: 0;
}

#footer.ct-footer #menu-footer-menu-rkultra .ct-menu-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0;
	color: var(--rku-ink);
	font-family: var(--rku-sans);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.055em;
	text-transform: uppercase;
	text-decoration: none;
}

#footer.ct-footer #menu-footer-menu-rkultra .ct-menu-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -0.22rem;
	height: 2px;
	background: var(--rku-cobalt);
	transition: right 140ms ease;
}

#footer.ct-footer #menu-footer-menu-rkultra .ct-menu-link:hover,
#footer.ct-footer #menu-footer-menu-rkultra .ct-menu-link:focus-visible {
	color: var(--rku-cobalt);
}

#footer.ct-footer #menu-footer-menu-rkultra .ct-menu-link:hover::after,
#footer.ct-footer #menu-footer-menu-rkultra .ct-menu-link:focus-visible::after {
	right: 0;
}

/* ILABSEM is an institutional external destination: keep it visible but neutral. */
#footer.ct-footer #menu-footer-menu-rkultra a[href*="ilabsem"] {
	color: var(--rku-ink);
}

#footer.ct-footer #menu-footer-menu-rkultra a[href*="ilabsem"]:hover,
#footer.ct-footer #menu-footer-menu-rkultra a[href*="ilabsem"]:focus-visible {
	color: var(--rku-cobalt);
}

/* Mobile footer */
@media (max-width: 680px) {

	#footer.ct-footer [data-row="bottom"] > .ct-container {
		width: calc(100% - 2rem);
		padding-top: 1.5rem;
		padding-bottom: 1.7rem;
		grid-template-columns: minmax(0, 1fr);
		row-gap: 1.15rem;
		align-items: start;
	}

	#footer.ct-footer [data-column="copyright"] {
		font-size: 0.78rem;
	}

	#footer.ct-footer #menu-footer-menu-rkultra {
		justify-content: flex-start;
		gap: 0.75rem 1rem;
	}

	#footer.ct-footer #menu-footer-menu-rkultra .ct-menu-link {
		font-size: 0.76rem;
	}
}

