/*
 * Eordaia — main stylesheet (mobile-first).
 * Τα design tokens έρχονται από το theme.json ως --wp--preset--* custom properties·
 * εδώ ορίζονται μόνο layout, components και τα dark-mode overrides.
 */

/* ---------------------------------------------------------------- tokens */

:root {
	--c-base: var(--wp--preset--color--base);
	--c-surface: var(--wp--preset--color--surface);
	--c-contrast: var(--wp--preset--color--contrast);
	--c-muted: var(--wp--preset--color--muted);
	--c-border: var(--wp--preset--color--border);
	--c-brand: var(--wp--preset--color--brand);
	--c-brand-strong: var(--wp--preset--color--brand-strong);
	--c-accent: var(--wp--preset--color--accent);

	--font-heading: var(--wp--preset--font-family--heading);
	--font-body: var(--wp--preset--font-family--body);

	--wrap-max: 1240px;
	--radius: 8px;
	--shadow-card: 0 1px 2px rgba(16, 24, 40, 0.06);
	color-scheme: light;
}

/* Dark mode: αντικαθιστούμε τα ίδια τα preset variables — ό,τι τα χρησιμοποιεί
   (και τα core blocks) αλλάζει αυτόματα. Default είναι ΠΑΝΤΑ το φωτεινό θέμα
   (απόφαση ιδιοκτήτη)· το dark ενεργοποιείται μόνο ρητά από το κουμπί. */

:root[data-theme="dark"] {
	--wp--preset--color--base: #0e1217;
	--wp--preset--color--surface: #171d26;
	--wp--preset--color--contrast: #e8ecf2;
	--wp--preset--color--muted: #94a0b0;
	--wp--preset--color--border: #27303d;
	--wp--preset--color--brand: #5b8def;
	--wp--preset--color--brand-strong: #7da4f2;
	--wp--preset--color--accent: #f0545f;
	--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
	color-scheme: dark;
}

/* ---------------------------------------------------------------- basics */

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

body {
	margin: 0;
	background: var(--c-base);
	color: var(--c-contrast);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

::selection {
	background: var(--c-brand);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--c-brand);
	outline-offset: 2px;
	border-radius: 2px;
}

/* In-page anchors: να μην κρύβονται κάτω από το sticky μενού */
:target {
	scroll-margin-top: 64px;
}

.entry__content a {
	color: var(--c-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wrap {
	max-width: var(--wrap-max);
	margin-inline: auto;
	padding-inline: 16px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip-path: none;
	background: var(--c-brand);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--radius);
}

.section-title {
	font-family: var(--font-heading);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid var(--c-accent);
}

.section-title a:hover {
	color: var(--c-brand);
}

/* ---------------------------------------------------------------- header */

.topbar {
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
	font-size: var(--wp--preset--font-size--small);
	color: var(--c-muted);
}

.topbar__wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 36px;
}

.topbar__date {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: capitalize;
}

.topbar__menu {
	display: flex;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.topbar__menu a:hover {
	color: var(--c-brand);
}

.theme-toggle {
	display: inline-flex;
	align-items: center;
	background: none;
	border: 0;
	padding: 6px;
	cursor: pointer;
	color: var(--c-muted);
	border-radius: 50%;
}

.theme-toggle:hover {
	color: var(--c-brand);
}

.topbar__weather {
	font-weight: 600;
	color: var(--c-brand);
	white-space: nowrap;
}

.topbar__weather:hover {
	color: var(--c-accent);
}

/* Εναλλαγή εικονιδίων ήλιου/φεγγαριού ανά ενεργό θέμα */
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: inline; }

:root[data-theme="dark"] .theme-toggle__sun { display: inline; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

.masthead {
	border-bottom: 1px solid var(--c-border);
}

.masthead__wrap {
	display: flex;
	flex-wrap: wrap; /* Σε κινητά η ζώνη header-top τυλίγεται σε δική της γραμμή */
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 14px;
}

.site-branding__text {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-branding__mark {
	flex: 0 0 auto;
	border-radius: 10px;
	box-shadow: var(--shadow-card);
}

.site-branding__title {
	display: block;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: clamp(1.5rem, 4vw, 2rem);
	letter-spacing: -0.02em;
	color: var(--c-brand);
}

.site-branding__tagline {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	color: var(--c-muted);
}

.custom-logo {
	max-height: 64px;
	width: auto;
}

/* ------------------------------------------------------------------ nav */

.mainnav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-brand);
	box-shadow: 0 2px 12px rgba(4, 12, 33, 0.16);
}

.mainnav__wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	min-height: 48px;
}

.mainnav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	color: #fff;
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: 600;
	padding: 12px 0;
	cursor: pointer;
}

/* Το κρύψιμο/άνοιγμα του panel αφορά ΜΟΝΟ κινητά — αλλιώς το .is-open
   (αν έμεινε ανοιχτό πριν από resize) θα χαλούσε το desktop flex layout. */
@media (max-width: 1023px) {
	.mainnav__panel {
		display: none;
		width: 100%;
		padding-bottom: 12px;
	}

	.mainnav__panel.is-open {
		display: block;
	}

	/* Υπομενού σε κινητά: εμφανή, με εσοχή */
	.mainnav__menu .sub-menu {
		list-style: none;
		margin: 0;
		padding: 0 0 0 16px;
	}
}

.mainnav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mainnav__menu a {
	display: block;
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mainnav__menu a:hover {
	color: rgba(255, 255, 255, 0.75);
}

.mainnav__search {
	margin-top: 12px;
}

.search-form {
	display: flex;
	gap: 0;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--c-border);
	background: var(--c-base);
	color: var(--c-contrast);
	padding: 8px 12px;
	border-radius: var(--radius) 0 0 var(--radius);
	font-family: inherit;
	font-size: 0.95rem;
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	border: 0;
	background: var(--c-accent);
	color: #fff;
	padding: 0 14px;
	border-radius: 0 var(--radius) var(--radius) 0;
	cursor: pointer;
}

/* Μόνιμο εικονίδιο αναζήτησης στο mobile nav bar */
.mainnav__stoggle {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
	background: none;
	border: 0;
	color: #fff;
	padding: 12px 4px;
	cursor: pointer;
}

.mainnav__msearch {
	background: var(--c-brand-strong);
	padding-block: 10px;
}

@media (min-width: 1024px) {
	.mainnav__stoggle,
	.mainnav__msearch {
		display: none;
	}

	.mainnav__toggle {
		display: none;
	}

	.mainnav__panel {
		display: flex;
		align-items: center;
		gap: 16px;
		padding-bottom: 0;
	}

	.mainnav__menu {
		display: flex;
		flex: 1;
		flex-wrap: wrap;
	}

	.mainnav__menu a {
		padding: 14px 14px;
		border-bottom: 0;
	}

	.mainnav__menu > li:first-child > a {
		padding-left: 0;
	}

	/* Υπομενού σε desktop: dropdown κάτω από το γονικό στοιχείο */
	.mainnav__menu li {
		position: relative;
	}

	.mainnav__menu .sub-menu {
		list-style: none;
		margin: 0;
		padding: 0;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 230px;
		background: var(--c-brand);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
		border-radius: 0 0 var(--radius) var(--radius);
		display: none;
		z-index: 110;
	}

	.mainnav__menu li:hover > .sub-menu,
	.mainnav__menu li:focus-within > .sub-menu {
		display: block;
	}

	.mainnav__menu .sub-menu a {
		padding: 11px 14px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.mainnav__menu .sub-menu li:last-child a {
		border-bottom: 0;
	}

	.mainnav__search {
		margin: 0;
		width: 220px;
	}

	.mainnav__search .search-form__input {
		border-color: transparent;
		background: rgba(255, 255, 255, 0.14);
		color: #fff;
	}

	.mainnav__search .search-form__input::placeholder {
		color: rgba(255, 255, 255, 0.65);
	}
}

/* ---------------------------------------------------------- breaking bar */

.breaking {
	background: var(--c-accent);
	color: #fff;
}

.breaking__wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	padding-block: 6px;
}

.breaking__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	font-family: var(--font-heading);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	background: rgba(255, 255, 255, 0.16);
	padding: 4px 10px;
	border-radius: 999px;
}

.breaking__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: eordaia-pulse 1.4s ease-in-out infinite;
}

@keyframes eordaia-pulse {
	50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
	.breaking__dot { animation: none; }
}

.breaking__text {
	flex: 1;
	min-width: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.3;
	color: #fff;
}

a.breaking__text:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Ticker: τα άρθρα εναλλάσσονται μέσα σε σταθερό ύψος (χωρίς layout shift) */
.breaking__items {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 1.4em;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.breaking__item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0;
	visibility: hidden; /* όχι μόνο opacity: τα κρυφά links δεν πρέπει να παίρνουν focus */
	transform: translateY(60%);
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
	white-space: nowrap;
}

.breaking__item.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
	.breaking__item {
		transition: none;
	}
}

.breaking__item .timestamp {
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 600;
}

.breaking__item .breaking__text {
	flex: 0 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
}

.breaking__close {
	flex: 0 0 auto;
	display: inline-flex;
	background: none;
	border: 0;
	color: rgba(255, 255, 255, 0.8);
	padding: 6px;
	cursor: pointer;
	border-radius: 50%;
}

.breaking__close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

/* ------------------------------------------------------- reading progress */

.readbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--c-accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
	z-index: 300;
	pointer-events: none;
}

/* -------------------------------------------------------------- load more */

.loadmore__wrap {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.loadmore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 260px;
	padding: 12px 28px;
	background: var(--c-brand);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	border-radius: 999px;
	transition: background 0.15s;
}

.loadmore:hover {
	background: var(--c-brand-strong);
}

.loadmore.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* ----------------------------------------------------------------- cards */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.card__media {
	display: block;
}

.card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-surface);
}

.card__thumb--empty {
	background: linear-gradient(135deg, var(--c-surface), var(--c-border));
}

.card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.card:hover .card__img {
	transform: scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
	.card__img {
		transition: none;
	}

	.card:hover .card__img {
		transform: none;
	}
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.card__title {
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.card__title a {
	transition: color 0.15s;
}

.card__title a:hover {
	color: var(--c-brand);
}

.card__excerpt {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--c-muted);
	line-height: 1.5;
}

.timestamp {
	font-size: 0.75rem;
	color: var(--c-muted);
	font-variant-numeric: tabular-nums;
}

.cat-badge {
	align-self: flex-start;
	display: inline-block;
	font-family: var(--font-heading);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--catc, var(--c-accent));
	background: color-mix(in srgb, var(--catc, var(--c-accent)) 10%, transparent);
	padding: 3px 10px;
	border-radius: 999px;
	transition: background 0.15s, color 0.15s;
}

a.cat-badge:hover {
	background: var(--catc, var(--c-accent));
	color: #fff;
}

/* Κάρτα-σειρά: μικρό thumb αριστερά */
.card--row {
	flex-direction: row;
	gap: 12px;
	align-items: flex-start;
}

.card--row .card__media {
	flex: 0 0 120px;
}

.card--row .card__title {
	font-size: 0.95rem;
}

@media (min-width: 768px) {
	.card--row .card__media {
		flex-basis: 180px;
	}
}

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

.hero {
	display: grid;
	gap: 20px;
	padding-block: 20px;
}

.card--hero {
	display: block;
}

.card--hero__link {
	position: relative;
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
}

.card--hero .card__thumb {
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.card--hero__overlay {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 48px 18px 18px;
	background: linear-gradient(to top, rgba(5, 10, 20, 0.92) 0%, rgba(5, 10, 20, 0.55) 55%, transparent 100%);
	color: #fff;
}

.card--hero__overlay .cat-badge {
	background: var(--catc, var(--c-accent));
	color: #fff;
}

.card--hero__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.card--hero__excerpt {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
	display: none;
}

.card--hero__overlay .timestamp {
	color: rgba(255, 255, 255, 0.7);
}

.hero__secondary {
	display: grid;
	gap: 16px;
}

.hero__secondary .card {
	flex-direction: row;
	gap: 12px;
}

.hero__secondary .card__media {
	flex: 0 0 120px;
}

.hero__secondary .card__title {
	font-size: 0.95rem;
}

@media (min-width: 768px) {
	.card--hero__excerpt {
		display: block;
	}
}

@media (min-width: 1024px) {
	.hero {
		grid-template-columns: 1.7fr 1fr;
		align-items: start;
	}

	.card--hero__title {
		font-size: var(--wp--preset--font-size--xx-large);
	}
}

/* ---------------------------------------------------------------- layout */

.layout {
	display: grid;
	gap: 32px;
	padding-block: 24px;
}

.layout__main {
	min-width: 0;
}

/*
 * Αριστερή στήλη (μόνο στην τρίστηλη διάταξη — το PHP δεν την τυπώνει αλλού):
 * κάτω από 1280px δεν χωρά δίπλα, οπότε ρέει ως στοίβα ΜΕΤΑ το περιεχόμενο
 * (τελευταία στο source) — έτσι τα banners της φαίνονται και σε κινητά.
 */
.layout__left {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

@media (min-width: 1024px) {
	.layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		grid-template-areas: "main right";
	}

	.layout__main {
		grid-area: main;
	}

	.layout > .layout__sidebar {
		grid-area: right;
	}
}

/* Τρίστηλη διάταξη (Customizer → Διάταξη): αριστερή στήλη διαφημίσεων ≥1280px */
@media (min-width: 1280px) {
	body.layout-3col {
		--wrap-max: 1360px;
	}

	body.layout-3col .layout {
		grid-template-columns: 300px minmax(0, 1fr) 340px;
		grid-template-areas: "left main right";
	}

	body.layout-3col .layout__left {
		grid-area: left;
	}

	body.layout-3col .zn--sidebar-left-2 {
		position: sticky;
		top: 64px;
	}
}

/* Μη-sticky μενού (Customizer → Διάταξη) */
body.nav-static .mainnav {
	position: static;
}

/* ----------------------------------------------------- φόρμα επικοινωνίας */

.contact-form {
	max-width: 560px;
}

.contact-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-base);
	color: var(--c-contrast);
	font: inherit;
	box-sizing: border-box;
}

.contact-form textarea {
	resize: vertical;
}

/* Honeypot: αόρατο για ανθρώπους, «ορατό» για bots. */
.contact-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-consent label {
	font-weight: 400;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.contact-consent input {
	margin-top: 4px;
}

.contact-submit {
	background: var(--c-brand);
	color: #fff;
	border: 0;
	border-radius: var(--radius);
	padding: 12px 28px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.contact-submit:hover {
	background: var(--c-brand-strong);
}

.contact-note {
	padding: 12px 16px;
	border-radius: var(--radius);
	margin-bottom: 20px;
	border: 1px solid;
}

.contact-note--ok {
	background: #e7f6ec;
	border-color: #b7e0c3;
	color: #137333;
}

.contact-note--err {
	background: #fdecea;
	border-color: #f5c6c2;
	color: #b3261e;
}

:root[data-theme="dark"] .contact-note--ok {
	background: #10281a;
	border-color: #1f5231;
	color: #7ed09a;
}

:root[data-theme="dark"] .contact-note--err {
	background: #2d1614;
	border-color: #5e2724;
	color: #f09790;
}

/* --------------------------------------------------------- category block */

.catblock {
	margin-bottom: 36px;
}

.catblock__grid {
	display: grid;
	gap: 20px;
}

.catblock__list {
	display: grid;
	gap: 14px;
	align-content: start;
}

@media (min-width: 768px) {
	.catblock__grid {
		grid-template-columns: 1.2fr 1fr;
	}
}

/* -------------------------------------------------------------- newsfeed */

.newsfeed__tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 12px;
	border-bottom: 2px solid var(--c-border);
}

.newsfeed__tab {
	background: none;
	border: 0;
	padding: 8px 14px;
	font-family: var(--font-heading);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--c-muted);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s, border-color 0.15s;
}

.newsfeed__tab:hover {
	color: var(--c-brand);
}

.newsfeed__tab.is-active {
	color: var(--c-contrast);
	border-bottom-color: var(--c-accent);
}

.newsfeed__views {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	font-size: 0.72rem;
	color: var(--c-accent);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.pharm-widget .pharm__body {
	font-size: 0.9rem;
	overflow-x: auto; /* πίνακες από scrape μπορεί να είναι φαρδύτεροι από τη στήλη */
}

.pharm__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.pharm__body td,
.pharm__body th {
	padding: 6px 8px;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
}

.pharm__note {
	font-size: var(--wp--preset--font-size--small);
	color: var(--c-muted);
	font-style: italic;
}

.pharm__links {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 2;
}

.pharm__links a {
	color: var(--c-brand);
}

.pharm__links a:hover {
	color: var(--c-accent);
}

.newsfeed__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--c-border);
}

.newsfeed__item {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid var(--c-border);
	font-size: 0.9rem;
	line-height: 1.4;
}

.newsfeed__item .timestamp {
	flex: 0 0 auto;
	color: var(--c-accent);
	font-weight: 600;
}

.newsfeed__item a:hover {
	color: var(--c-brand);
}

/* --------------------------------------------------------------- sidebar */

.layout__sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

@media (min-width: 1024px) {
	/* Sticky η ΤΕΛΕΥΤΑΙΑ ζώνη της στήλης (300x600) — ακολουθεί το scroll·
	   πρέπει να είναι τελευταία στο DOM αλλιώς επικαλύπτει ό,τι ακολουθεί. */
	.zn--sidebar-3 {
		position: sticky;
		top: 64px;
	}
}

.widget__title {
	font-family: var(--font-heading);
	font-size: var(--wp--preset--font-size--medium);
	margin: 0 0 12px;
	padding-left: 12px;
	border-left: 4px solid var(--c-accent);
}

/* ----------------------------------------------------------------- entry */

.entry__header,
.entry__content,
.entry__tags,
.entry__featured,
.breadcrumbs {
	/* ~70 χαρακτήρες ανά γραμμή στο μέγεθος σώματος — τα 760px έδιναν ~90. */
	max-width: 700px;
}

.breadcrumbs {
	font-size: var(--wp--preset--font-size--small);
	color: var(--c-muted);
	margin-bottom: 12px;
}

.breadcrumbs a:hover {
	color: var(--c-brand);
}

.entry__title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 8px 0 12px;
}

.entry__lead {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--c-muted);
	line-height: 1.5;
	margin: 0 0 16px;
	font-weight: 500;
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 12px;
	border-block: 1px solid var(--c-border);
	margin-bottom: 20px;
}

.byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: var(--wp--preset--font-size--small);
}

.byline__author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.byline__author:hover {
	color: var(--c-brand);
}

.byline__avatar {
	border-radius: 50%;
}

.byline__dates {
	display: flex;
	flex-direction: column;
	color: var(--c-muted);
}

.byline__views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--c-muted);
	font-size: var(--wp--preset--font-size--small);
	font-variant-numeric: tabular-nums;
}

.share {
	display: flex;
	gap: 8px;
}

.share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-muted);
	transition: background 0.15s, color 0.15s;
}

.share__btn:hover {
	background: var(--c-brand);
	color: #fff;
}

.share__btn--copy.is-copied {
	background: #0e7a3a;
	color: #fff;
}

/* ------------------------------------------------------ YouTube lite embed */

.yte {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 700px;
	margin-block: 1.2em;
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
}

.yte__btn {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.yte__btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
	transition: opacity 0.2s;
}

.yte__btn:hover img {
	opacity: 1;
}

.yte__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--c-accent);
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	transition: transform 0.15s;
	pointer-events: none;
}

.yte__btn:hover + .yte__play,
.yte__btn:hover .yte__play {
	transform: translate(-50%, -50%) scale(1.08);
}

.yte__frame {
	width: 100%;
	height: 100%;
	border: 0;
}

.entry__featured {
	margin: 0 0 20px;
}

.entry__featured img {
	border-radius: var(--radius);
	width: 100%;
}

.entry__featured figcaption {
	font-size: var(--wp--preset--font-size--small);
	color: var(--c-muted);
	margin-top: 8px;
}

.entry__content {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
}

.entry__content > * + * {
	margin-top: 1.1em;
}

.entry__content h2,
.entry__content h3 {
	line-height: 1.3;
	margin-top: 1.6em;
}

.entry__content blockquote {
	margin: 1.5em 0;
	padding: 12px 20px;
	border-left: 4px solid var(--c-brand);
	background: var(--c-surface);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
	font-size: var(--wp--preset--font-size--small);
}

.entry__tags a {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	padding: 4px 12px;
	border-radius: 99px;
	color: var(--c-muted);
}

.entry__tags a:hover {
	color: var(--c-brand);
	border-color: var(--c-brand);
}

.entry__pages {
	margin-top: 20px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.entry__pages .post-page-numbers {
	display: inline-flex;
	min-width: 32px;
	justify-content: center;
	padding: 6px 10px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	margin-inline-end: 4px;
}

.entry__pages .post-page-numbers.current {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
}

/* -------------------------------------------------------------- comments */

.comments {
	margin-top: 36px;
	max-width: 760px;
}

.comments__list,
.comments__list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comments__list .children {
	padding-left: 24px;
}

.comments__list .comment-body {
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin-bottom: 14px;
	font-size: 0.95rem;
}

.comments__list .comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--c-muted);
}

.comments__list .avatar {
	border-radius: 50%;
}

.comments__list .reply {
	font-size: var(--wp--preset--font-size--small);
}

.comments__closed {
	color: var(--c-muted);
}

.comment-form label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 480px;
	border: 1px solid var(--c-border);
	background: var(--c-base);
	color: var(--c-contrast);
	border-radius: var(--radius);
	padding: 9px 12px;
	font-family: inherit;
	font-size: 0.95rem;
	margin-bottom: 12px;
}

.comment-form textarea {
	max-width: 100%;
}

.comment-form .submit {
	background: var(--c-brand);
	color: #fff;
	border: 0;
	border-radius: var(--radius);
	padding: 10px 22px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--c-brand-strong);
}

/* ------------------------------------------------------------- author box */

.author-box {
	display: flex;
	gap: 16px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 20px;
	margin-top: 32px;
	max-width: 760px;
}

.author-box__avatar {
	border-radius: 50%;
	flex: 0 0 auto;
}

.author-box__name {
	margin: 0 0 6px;
	font-size: var(--wp--preset--font-size--medium);
}

.author-box__bio {
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--c-muted);
}

.author-box__more {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--c-brand);
}

/* ---------------------------------------------------------- author profile */

.author-profile {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 32px;
}

.author-profile__avatar {
	border-radius: 50%;
	flex: 0 0 auto;
}

.author-profile__name {
	margin: 4px 0 8px;
}

.author-profile__bio {
	color: var(--c-muted);
	max-width: 640px;
}

.author-profile__link {
	color: var(--c-brand);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

/* --------------------------------------------------------------- archives */

.archive-header {
	margin-bottom: 24px;
}

.archive-header__title {
	margin: 4px 0 8px;
}

.archive-header__intro {
	color: var(--c-muted);
	max-width: 640px;
}

.archive-list {
	display: grid;
	gap: 20px;
}

.related {
	margin-top: 36px;
}

.related__grid {
	display: grid;
	gap: 20px;
}

@media (min-width: 640px) {
	.related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.related__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

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

.pagination {
	margin-top: 32px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	min-width: 38px;
	justify-content: center;
	padding: 8px 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.pagination .page-numbers.current {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
}

.pagination a.page-numbers:hover {
	border-color: var(--c-brand);
	color: var(--c-brand);
}

/* ------------------------------------------------------------------- 404 */

.error-404 {
	padding-block: 48px 24px;
	max-width: 640px;
}

.error-404__search {
	max-width: 420px;
	margin-top: 16px;
}

.error-404__recent {
	padding-bottom: 48px;
}

/* ------------------------------------------------------------------- ζώνες
 * Χώροι προβολής (banners). Κάθε ζώνη δεσμεύει ύψος (min-height) ΠΡΙΝ
 * φορτώσει το creative → CLS 0. Τα ύψη αντιστοιχούν στο PLAN.md.
 * Τα ονόματα (.zn) είναι σκόπιμα ουδέτερα — βλ. inc/ads.php.
 */

.zn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-block: 16px;
}

.zn__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
}

.zn__inner img {
	display: block;
	max-width: 100%;
	height: auto;
}

.zn__u {
	display: flex;
	justify-content: center;
}

/*
 * Φαρδιές ζώνες με ΠΟΛΛΑ banners: σε desktop, κάθε unit παίρνει ίσο μερίδιο
 * (2 ανά σειρά) ώστε creatives με άνισα φυσικά πλάτη να στήνονται σε
 * συμμετρικό πλέγμα — όχι «δύο δίπλα δίπλα και δύο σκόρπια από κάτω».
 * Οι εικόνες δεν παραμορφώνονται: κεντράρονται στο κελί τους (max-width 100%).
 */
@media (min-width: 768px) {
	.zn--header-leaderboard .zn__u,
	.zn--hp-featured .zn__u,
	.zn--hp-infeed-1 .zn__u,
	.zn--hp-infeed-2 .zn__u,
	.zn--archive-infeed .zn__u,
	.zn--article-top .zn__u,
	.zn--article-bottom .zn__u,
	.zn--footer .zn__u {
		flex: 1 1 45%;
	}

	/*
	 * Τα banners ΑΚΟΥΜΠΟΥΝ μεταξύ τους στη μέση (όχι το καθένα κεντραρισμένο
	 * στο μισό του): το αριστερό κελί στοιχίζει δεξιά, το δεξί αριστερά,
	 * χωρίς οριζόντιο κενό. Μονό/τελευταίο μονό banner: κεντραρισμένο.
	 */
	.zn--header-leaderboard .zn__inner,
	.zn--hp-featured .zn__inner,
	.zn--hp-infeed-1 .zn__inner,
	.zn--hp-infeed-2 .zn__inner,
	.zn--archive-infeed .zn__inner,
	.zn--article-top .zn__inner,
	.zn--article-bottom .zn__inner,
	.zn--footer .zn__inner {
		gap: 8px 0;
	}

	.zn--header-leaderboard .zn__u:nth-child(odd),
	.zn--hp-featured .zn__u:nth-child(odd),
	.zn--hp-infeed-1 .zn__u:nth-child(odd),
	.zn--hp-infeed-2 .zn__u:nth-child(odd),
	.zn--archive-infeed .zn__u:nth-child(odd),
	.zn--article-top .zn__u:nth-child(odd),
	.zn--article-bottom .zn__u:nth-child(odd),
	.zn--footer .zn__u:nth-child(odd) {
		justify-content: flex-end;
	}

	.zn--header-leaderboard .zn__u:nth-child(even),
	.zn--hp-featured .zn__u:nth-child(even),
	.zn--hp-infeed-1 .zn__u:nth-child(even),
	.zn--hp-infeed-2 .zn__u:nth-child(even),
	.zn--archive-infeed .zn__u:nth-child(even),
	.zn--article-top .zn__u:nth-child(even),
	.zn--article-bottom .zn__u:nth-child(even),
	.zn--footer .zn__u:nth-child(even) {
		justify-content: flex-start;
	}

	.zn--header-leaderboard .zn__u:nth-child(odd):last-child,
	.zn--hp-featured .zn__u:nth-child(odd):last-child,
	.zn--hp-infeed-1 .zn__u:nth-child(odd):last-child,
	.zn--hp-infeed-2 .zn__u:nth-child(odd):last-child,
	.zn--archive-infeed .zn__u:nth-child(odd):last-child,
	.zn--article-top .zn__u:nth-child(odd):last-child,
	.zn--article-bottom .zn__u:nth-child(odd):last-child,
	.zn--footer .zn__u:nth-child(odd):last-child {
		justify-content: center;
	}
}

/* Ορατότητα banner ανά συσκευή (cache-safe, χωρίς server-side detection) */
.only-d {
	display: none;
}

@media (min-width: 768px) {
	.only-d {
		display: flex;
	}

	.only-m {
		display: none;
	}
}

/* Dev placeholder */
.zn__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: inherit;
	border: 1px dashed var(--c-border);
	border-radius: var(--radius);
	color: var(--c-muted);
	font-size: 0.75rem;
	background: var(--c-surface);
}

/*
 * Δέσμευση ύψους ΑΝΑ ΣΥΣΚΕΥΗ: τα mobile ύψη ισχύουν μόνο όταν η ζώνη έχει
 * banner για κινητά (zn--has-m) και τα desktop μόνο με zn--has-d — αλλιώς
 * μια ζώνη με desktop-only banner θα άφηνε κενό κουτί 250-600px στα κινητά.
 * (Σε dev τα placeholders παίρνουν και τα δύο flags.)
 */
.zn--header-top { margin-block: 0; }
.zn--header-top.zn--has-m .zn__inner { min-height: 50px; }
.zn--header-leaderboard.zn--has-m .zn__inner { min-height: 50px; }
.zn--hp-featured.zn--has-m .zn__inner { min-height: 250px; }
.zn--hp-infeed-1.zn--has-m .zn__inner,
.zn--hp-infeed-2.zn--has-m .zn__inner { min-height: 250px; }
.zn--sidebar-1.zn--has-m .zn__inner,
.zn--sidebar-2.zn--has-m .zn__inner { min-height: 250px; }
.zn--sidebar-left-1.zn--has-m .zn__inner,
.zn--sidebar-left-2.zn--has-m .zn__inner { min-height: 250px; }
/* Η sticky ζώνη (300x600) κρατά 600px μόνο σε desktop· σε κινητά παίζει 300x250 */
.zn--sidebar-3.zn--has-m .zn__inner { min-height: 250px; }
.zn--archive-infeed.zn--has-m .zn__inner { min-height: 250px; }
.zn--article-top.zn--has-m .zn__inner { min-height: 100px; }
.zn--article-inline-1.zn--has-m .zn__inner,
.zn--article-inline-2.zn--has-m .zn__inner { min-height: 250px; }
.zn--article-bottom.zn--has-m .zn__inner { min-height: 250px; }
.zn--footer.zn--has-m .zn__inner { min-height: 100px; }

@media (min-width: 768px) {
	/* Χωρίς desktop banner, η ζώνη μηδενίζει τη mobile δέσμευση σε desktop */
	.zn:not(.zn--has-d) .zn__inner { min-height: 0; }

	.zn--header-top.zn--has-d .zn__inner { min-height: 90px; justify-content: flex-end; }
	.zn--header-leaderboard.zn--has-d .zn__inner { min-height: 90px; }
	.zn--hp-featured.zn--has-d .zn__inner { min-height: 250px; }
	.zn--hp-infeed-1.zn--has-d .zn__inner,
	.zn--hp-infeed-2.zn--has-d .zn__inner { min-height: 90px; }
	.zn--archive-infeed.zn--has-d .zn__inner { min-height: 90px; }
	.zn--sidebar-1.zn--has-d .zn__inner,
	.zn--sidebar-2.zn--has-d .zn__inner { min-height: 250px; }
	.zn--sidebar-3.zn--has-d .zn__inner { min-height: 250px; }
	/* 336x280 επιτρέπεται στην inline-1 σε desktop */
	.zn--article-inline-1.zn--has-d .zn__inner { min-height: 280px; }
	.zn--article-inline-2.zn--has-d .zn__inner { min-height: 250px; }
	.zn--article-top.zn--has-d .zn__inner { min-height: 90px; }
	.zn--article-bottom.zn--has-d .zn__inner { min-height: 90px; }
	.zn--footer.zn--has-d .zn__inner { min-height: 90px; }
}

@media (min-width: 1024px) {
	.zn--sidebar-3.zn--has-d .zn__inner { min-height: 600px; }
}

/* Αριστερή στήλη (τρίστηλη διάταξη) — δίπλα στο περιεχόμενο μόνο ≥1280px */
@media (min-width: 1280px) {
	.zn--sidebar-left-1.zn--has-d .zn__inner { min-height: 250px; }
	.zn--sidebar-left-2.zn--has-d .zn__inner { min-height: 600px; }
}

/* Κουμπί κλεισίματος (mobile anchor) */
.zn__close {
	position: absolute;
	top: -26px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1px solid var(--c-border);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
	background: var(--c-base);
	color: var(--c-muted);
	cursor: pointer;
}

/* Η ζώνη στο masthead: desktop δίπλα στο λογότυπο, κινητά full-width από κάτω */
.masthead .zn--header-top {
	display: flex;
	flex-basis: 100%;
	justify-content: center;
	min-width: 0;
}

@media (min-width: 768px) {
	/* Χωρίς wrap σε desktop: η ζώνη μοιράζεται τη γραμμή με το λογότυπο, όπως πάντα */
	.masthead__wrap {
		flex-wrap: nowrap;
	}

	.masthead .zn--header-top {
		flex: 1;
		align-items: flex-end;
	}
}

/* Mobile sticky anchor — μόνο σε κινητά, πάνω από όλα, dismissible (plugin) */
.zn--mobile-anchor {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 200;
	margin: 0;
	background: var(--c-base);
	border-top: 1px solid var(--c-border);
	padding: 4px 0;
}

.zn--mobile-anchor .zn__inner {
	min-height: 50px;
}

@media (min-width: 768px) {
	.zn--mobile-anchor {
		display: none;
	}
}

body:has(.zn--mobile-anchor) {
	padding-bottom: 70px;
}

@media (min-width: 768px) {
	body:has(.zn--mobile-anchor) {
		padding-bottom: 0;
	}
}

/* ---------------------------------------------------------------- footer */

.site-footer {
	margin-top: 48px;
	background: var(--c-surface);
	border-top: 1px solid var(--c-border);
}

:root[data-theme="dark"] .site-footer {
	background: #0a0e13;
}

.site-footer__grid {
	display: grid;
	gap: 32px;
	padding-block: 36px;
}

/* Οπτική λειτουργία υποσέλιδου (block editor — Customizer → Λειτουργία υποσέλιδου) */
.site-footer__blocks {
	padding-block: 36px;
}

.site-footer__blocks .wp-block-site-title a {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--large);
	color: var(--c-brand);
	text-decoration: none;
}

.site-footer__blocks .wp-block-site-tagline {
	color: var(--c-muted);
	font-size: var(--wp--preset--font-size--small);
}

.site-footer__blocks ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.site-footer__blocks a {
	text-decoration: none;
}

.site-footer__blocks a:hover {
	color: var(--c-brand);
}

.site-footer__brand {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--large);
	color: var(--c-brand);
}

.site-footer__tagline {
	color: var(--c-muted);
	font-size: var(--wp--preset--font-size--small);
	margin-top: 8px;
}

.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
	font-size: var(--wp--preset--font-size--small);
}

.site-footer__menu a:hover {
	color: var(--c-brand);
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--c-base);
	border: 1px solid var(--c-border);
	color: var(--c-muted);
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.social__link:hover {
	background: var(--c-brand);
	border-color: var(--c-brand);
	color: #fff;
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

.colophon {
	border-top: 1px solid var(--c-border);
	font-size: var(--wp--preset--font-size--small);
	color: var(--c-muted);
}

.colophon__wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	padding-block: 16px;
}

.colophon__feed:hover {
	color: var(--c-brand);
}

/* ----------------------------------------------------------------- print */

@media print {
	.topbar,
	.mainnav,
	.breaking,
	.zn,
	.layout__sidebar,
	.layout__left,
	.share,
	.related,
	.author-box,
	.comments,
	.site-footer,
	.loadmore__wrap,
	.readbar,
	.theme-toggle {
		display: none !important;
	}

	.layout {
		display: block;
	}

	body {
		background: #fff;
		color: #000;
	}

	.entry__content a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #555;
	}
}
