/*
Theme Name: Lapszám
Theme URI: https://example.com/lapszam
Author: Lapszám
Description: Klasszikus magazin főoldal (nagy nyitócikk, rovatblokkok, kiemelt színes sáv, legolvasottabb lista, hírlevél) és irodalmi magazin-stílusú cikkoldal: borítókép balra, cím és közreműködők jobbra. Bézs alap, fekete tipográfia, pasztell rovatcímkék; Squada One logó, Rubik címek, Spectral kenyérszöveg.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lapszam
Tags: blog, news, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   1. Változók
   ========================================================================== */
:root {
	--beige: #faf9f2;
	--stone: #e5e3dd;
	--stone-dark: #a4a39f;
	--ink: #000;
	--muted: #646360;
	--peach: #f8d9ad;
	--lavender: #b3c0fe;
	--sage: #c3dab1;
	--rose: #f9bcb4;

	--f-logo: "Squada One", "Rubik", sans-serif;
	--f-head: "Rubik", system-ui, sans-serif;
	--f-mono: "Rubik Mono One", "Rubik", sans-serif;
	--f-body: "Spectral", Georgia, serif;

	--wrap: 1280px;
	--gutter: clamp(20px, 4vw, 48px);
	--gap: clamp(20px, 2.4vw, 32px);
	--radius: 4px;
	--line: 2px solid var(--ink);
	--hair: 1px solid rgba(0, 0, 0, .18);
}

/* ==========================================================================
   2. Alapok
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--beige);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 600;
}

p { margin: 0 0 1em; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--ink); color: var(--beige);
	padding: 10px 16px; font-family: var(--f-head);
}
.skip-link:focus { left: 10px; top: 10px; }

/* Színek */
.bg--peach { background: var(--peach); }
.bg--lavender { background: var(--lavender); }
.bg--sage { background: var(--sage); }
.bg--rose { background: var(--rose); }
.bg--stone { background: var(--stone); }

/* ==========================================================================
   3. Címkék és gombok (Kernel-stílusú pasztell „pill”)
   ========================================================================== */
.tag {
	display: inline-flex;
	align-items: baseline;
	padding: 6px 8px 4px;
	border-radius: 2px;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: .02em;
	background: var(--stone);
	color: var(--ink);
	transition: filter .15s ease;
}
a.tag:hover { text-decoration: none; filter: brightness(.94) saturate(1.2); }
.tag--peach { background: var(--peach); }
.tag--lavender { background: var(--lavender); }
.tag--sage { background: var(--sage); }
.tag--rose { background: var(--rose); }
.tag--stone { background: var(--stone); }

.btn,
button.btn,
input[type="submit"],
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px 11px;
	background: var(--ink);
	color: var(--beige);
	border: var(--line);
	border-radius: var(--radius);
	font-family: var(--f-head);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.btn:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
	background: var(--peach);
	color: var(--ink);
	text-decoration: none;
}
.btn--small { padding: 8px 14px 7px; font-size: 12px; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], textarea, select {
	width: 100%;
	padding: 12px 14px;
	background: #fff;
	border: var(--line);
	border-radius: var(--radius);
	font: 16px/1.4 var(--f-body);
	color: var(--ink);
}

/* ==========================================================================
   4. Fejléc
   ========================================================================== */
.topbar {
	border-bottom: var(--hair);
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.topbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 40px;
}
.topbar__date { margin-right: auto; color: var(--muted); }
.topbar__menu, .social {
	display: flex; flex-wrap: wrap; gap: 18px;
	list-style: none; margin: 0; padding: 0;
}

.masthead {
	/* 1.0.2: Kernel-szerű fejléc – kisebb logó balra, jelmondat jobbra */
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	text-align: left;
	padding-top: clamp(18px, 3vw, 36px);
	padding-bottom: clamp(16px, 2.5vw, 28px);
}
.masthead__title {
	font-family: var(--f-logo);
	font-weight: 400;
	font-size: clamp(40px, 4.5vw, 56px);
	line-height: 1;
	letter-spacing: -.01em;
	text-transform: uppercase;
	margin: 0;
}
.masthead__title a:hover { text-decoration: none; }
.masthead__logo { flex: none; line-height: 0; }
.masthead__logo a { display: inline-block; }
.masthead__logo img { margin: 0; max-height: 48px; width: auto; }
.masthead__tagline {
	margin: 0;
	max-width: 36ch;
	text-align: right;
	font-family: var(--f-body);
	font-style: italic;
	font-size: 16px;
	line-height: 1.4;
	color: var(--muted);
}

.mainnav {
	border-top: var(--line);
	border-bottom: var(--line);
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--beige);
}
.admin-bar .mainnav { top: 32px; }
@media (max-width: 782px) { .admin-bar .mainnav { top: 0; } }

.mainnav__inner {
	display: flex;
	align-items: center;
	min-height: 52px;
	gap: 16px;
}
.mainnav__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 28px;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	font-family: var(--f-head);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.mainnav__menu > li { position: relative; }
.mainnav__menu a { display: block; padding: 15px 0 14px; }
.mainnav__menu .current-menu-item > a,
.mainnav__menu .current-cat > a,
.mainnav__menu a:hover {
	text-decoration: none;
	box-shadow: inset 0 -4px 0 var(--peach);
}
.mainnav__menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: -16px;
	min-width: 220px;
	list-style: none; margin: 0; padding: 8px 16px;
	background: var(--beige);
	border: var(--line);
	border-radius: var(--radius);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
}
.mainnav__menu .sub-menu a { padding: 8px 0; }
.mainnav__menu li:hover > .sub-menu,
.mainnav__menu li:focus-within > .sub-menu { display: block; }

.mainnav__tools { display: flex; align-items: center; gap: 12px; }
.mainnav__search, .mainnav__toggle {
	background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
	font-family: var(--f-head); font-weight: 600; font-size: 13px; text-transform: uppercase;
}
.mainnav__toggle { display: none; align-items: center; gap: 10px; padding-left: 0; }
.burger, .burger::before, .burger::after {
	display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }

.search-panel { border-top: var(--hair); padding: 20px 0; }
.search-form { display: flex; gap: 10px; max-width: 640px; margin-inline: auto; }

/* ==========================================================================
   5. Kártyák
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--stone);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media--empty {
	display: flex; align-items: center; justify-content: center;
	padding: 16px; text-align: center;
	font-family: var(--f-mono); font-size: 14px; text-transform: uppercase;
}

.card__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.card__title {
	font-family: var(--f-head);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.22;
	margin: 0;
	text-wrap: balance;
}
.card__excerpt { margin: 0; font-size: 17px; line-height: 1.5; color: #222; }

.meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
}
.meta__sep { opacity: .6; }
.meta__author { color: var(--ink); }

/* Nagy nyitókártya */
.card--lead { gap: 20px; }
.card--lead .card__media { aspect-ratio: 16 / 10; }
.card--lead .card__title {
	font-weight: 800;
	font-size: clamp(30px, 3.6vw, 48px);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: -.005em;
}
.card--lead .card__excerpt { font-size: 20px; max-width: 46ch; }

/* Sor: kép balra */
.card--row {
	display: grid;
	grid-template-columns: minmax(96px, 34%) 1fr;
	gap: 16px;
	align-items: start;
}
.card--row .card__title { font-size: 17px; }
.card--row .card__body { gap: 8px; }

/* Szöveges / számozott lista */
.card--text { padding-block: 16px; border-top: var(--hair); }
.card--num {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 12px;
	padding-block: 16px;
	border-top: var(--hair);
}
.card--num:first-of-type { border-top: 0; }
.card--num .card__num {
	font-family: var(--f-mono);
	font-size: 26px;
	line-height: 1;
	-webkit-text-stroke: 1px var(--ink);
	color: transparent;
}
.card--num .card__title { font-size: 16px; }
.card--num .card__tags { display: none; }

/* ==========================================================================
   6. Főoldal blokkok
   ========================================================================== */
.front-intro { padding-top: 32px; }

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: calc(var(--gap) * 1.4);
	padding-top: clamp(24px, 3.5vw, 44px);
	padding-bottom: clamp(32px, 4vw, 56px);
}
.hero__side {
	display: flex; flex-direction: column; gap: 22px;
	padding-left: calc(var(--gap) * 1.4);
	border-left: var(--hair);
}
.hero__side .card--row + .card--row { padding-top: 22px; border-top: var(--hair); }

.block { padding-block: clamp(28px, 3.5vw, 48px); }
.block + .block { padding-top: 0; }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 20px;
	border-top: var(--line);
	padding-top: 14px;
	margin-bottom: 26px;
}
.section-head__title {
	font-family: var(--f-head);
	font-weight: 800;
	font-size: clamp(22px, 2.4vw, 30px);
	text-transform: uppercase;
	margin: 0;
	letter-spacing: .01em;
}
.section-head--peach .section-head__title,
.section-head--lavender .section-head__title,
.section-head--sage .section-head__title,
.section-head--rose .section-head__title,
.section-head--stone .section-head__title {
	padding: 4px 10px 2px;
	border-radius: 2px;
}
.section-head--peach .section-head__title { background: var(--peach); }
.section-head--lavender .section-head__title { background: var(--lavender); }
.section-head--sage .section-head__title { background: var(--sage); }
.section-head--rose .section-head__title { background: var(--rose); }
.section-head--stone .section-head__title { background: var(--stone); }
.section-head__desc { margin: 0; color: var(--muted); font-style: italic; font-size: 16px; }
.section-head__more {
	margin-left: auto;
	font-family: var(--f-head);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack .card--row { grid-template-columns: minmax(120px, 38%) 1fr; padding-top: 24px; border-top: var(--hair); }
.stack .card--row:first-child { padding-top: 0; border-top: 0; }
.stack .card--row .card__title { font-size: 21px; }

/* Rovat: nagy + lista */
.feature {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: calc(var(--gap) * 1.4);
}
.feature__main .card__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; text-transform: uppercase; line-height: 1.12; }
.feature__list { display: flex; flex-direction: column; gap: 20px; }
.feature__list .card--row + .card--row { padding-top: 20px; border-top: var(--hair); }

/* Kiemelt sáv */
.band {
	margin-block: clamp(16px, 2vw, 24px) clamp(36px, 4vw, 56px);
	padding-block: clamp(32px, 4vw, 56px);
	border-top: var(--line);
	border-bottom: var(--line);
}
.band .section-head { border-top: 0; padding-top: 0; }
.band .tag { background: var(--beige); }
.band .card__media { box-shadow: 0 0 0 2px var(--ink); }

/* Tartalom + oldalsáv */
.with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: calc(var(--gap) * 1.6);
	padding-bottom: clamp(32px, 4vw, 56px);
}
.with-sidebar__main > .block:first-child { padding-top: 0; }
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.sidebar .widget { border: var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.sidebar .widget--popular { background: var(--beige); }
/* Csak az oldalsáv utolsó eleme ragad meg görgetéskor, így semmire nem csúszik rá (1.0.1). */
@media (min-width: 901px) {
	.sidebar > :last-child { position: sticky; top: 80px; }
	.admin-bar .sidebar > :last-child { top: 112px; }
}
.widget__title {
	font-family: var(--f-head);
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 12px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-top: var(--hair); font-size: 16px; }
.widget li:first-child { border-top: 0; }
.sidebar .widget h2, .sidebar .widget .wp-block-heading, .wp-block-search__label {
	font-family: var(--f-head);
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 12px;
}
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__button { margin: 0; }

/* Hírlevél */
.newsletter { background: var(--ink); color: var(--beige); padding-block: clamp(40px, 5vw, 72px); }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.newsletter__title {
	font-family: var(--f-mono);
	font-weight: 400;
	font-size: clamp(28px, 4vw, 52px);
	text-transform: uppercase;
	margin: 0 0 10px;
	line-height: 1;
}
.newsletter__text { font-size: 20px; margin: 0; opacity: .85; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input[type="email"] { border-color: var(--beige); }
.newsletter .btn { background: var(--peach); color: var(--ink); border-color: var(--peach); }
.newsletter .btn:hover { background: var(--beige); border-color: var(--beige); }
.newsletter__hint { font-size: 15px; opacity: .7; font-style: italic; }

/* ==========================================================================
   7. Cikkoldal (Kernel): borító balra, cím jobbra
   ========================================================================== */
.article-hero {
	display: flex;
	gap: 48px;
	align-items: stretch;
	padding-top: clamp(24px, 4vw, 56px);
	padding-bottom: clamp(32px, 4vw, 56px);
	max-width: calc(1200px + var(--gutter) * 2);
}
.article-hero__cover {
	flex: 0 0 50%;
	margin: 0;
	position: relative;
}
.article-hero__cover img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
}
.article-hero__cover figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted);
	font-style: italic;
}
.article-hero__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 16px;
	text-align: center;
	padding: 24px 40px 0;
	margin-left: 16px;
}
.article-hero__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.article-hero__title {
	font-family: var(--f-head);
	font-weight: 800;
	font-size: clamp(30px, 3vw, 40px);
	line-height: 1.25;
	text-transform: uppercase;
	margin: 0;
	text-wrap: balance;
}
.article-hero__lead { font-size: 20px; font-weight: 500; margin: 0; max-width: 34ch; }
.article-hero__credits { display: flex; flex-direction: column; gap: 2px; }
.article-hero__credits p {
	margin: 0;
	font-family: var(--f-head);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--muted);
}
.article-hero__credits a { color: var(--muted); }
.article-hero__credits a:hover { color: var(--ink); }
.article-hero__date {
	margin: 0;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--muted);
}

.article-hero--nocover { justify-content: center; }
.article-hero--nocover .article-hero__text { max-width: 820px; margin: 0; padding-inline: 0; }
.article-hero--nocover .article-hero__title { font-size: clamp(34px, 4.2vw, 48px); font-weight: 900; }

/* Kenyérszöveg */
.article-body,
.page-article .article-body {
	max-width: 42rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
	font-size: 20px;
	line-height: 1.5;
}
.entry-content > * { margin-block: 0 1.5rem; }
.entry-content > p { margin-bottom: 1.5rem; }
.entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: var(--stone-dark);
}
.entry-content a:hover { text-decoration-color: var(--ink); background: var(--peach); }
.entry-content h2 { font-size: 24px; font-weight: 600; margin-top: 2.6rem; line-height: 1.25; }
.entry-content h3 { font-size: 20px; font-weight: 600; margin-top: 2rem; }
.entry-content h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content hr, .wp-block-separator {
	border: 0;
	height: auto;
	margin: 3rem auto;
	text-align: center;
	background: none;
}
.entry-content hr::before, .wp-block-separator::before {
	content: "✳ ✳ ✳";
	font-family: var(--f-head);
	letter-spacing: .6em;
	font-size: 14px;
}

/* Idézetek – a Kernel nagybetűs Spectral kiemelése */
.entry-content blockquote,
.wp-block-quote {
	margin: 2.2rem 0;
	padding: 0 0 0 24px;
	border-left: 4px solid var(--ink);
	font-size: 20px;
}
.wp-block-pullquote,
.entry-content .is-style-large,
blockquote.is-style-kernel {
	margin: 3rem -2rem;
	padding: 28px 0;
	border-top: var(--line);
	border-bottom: var(--line);
	border-left: 0;
	text-align: center;
}
.wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.wp-block-pullquote p,
.entry-content .is-style-large p {
	font-family: var(--f-body);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .01em;
	text-transform: uppercase;
	margin: 0;
}
.entry-content blockquote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: 12px;
	font-family: var(--f-head);
	font-style: normal;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--muted);
}

/* Képek, széles blokkok */
.entry-content figure { margin-inline: 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content figcaption, .wp-element-caption {
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--muted);
	font-style: italic;
	text-align: center;
}
.entry-content .alignwide { width: min(1100px, 100vw - var(--gutter) * 2); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull img { border-radius: 0; }
.entry-content .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }

/* Lábjegyzetek (Gutenberg Footnotes blokk) */
.entry-content sup.fn a, .entry-content sup a {
	text-decoration: none;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	padding: 0 2px;
	background: var(--peach);
	border-radius: 2px;
}
.wp-block-footnotes {
	margin-top: 3.5rem !important;
	padding-top: 1.5rem;
	border-top: var(--line);
	font-size: 16px;
	line-height: 1.5;
}
.wp-block-footnotes::before {
	content: "Jegyzetek";
	display: block;
	margin-bottom: 1rem;
	font-family: var(--f-head);
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.wp-block-footnotes li { margin-bottom: .6rem; }
.wp-block-footnotes a { text-decoration: none; }

/* Táblázat, kód */
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: var(--hair); padding: 10px 8px; text-align: left; }
.entry-content th { font-family: var(--f-head); font-size: 13px; text-transform: uppercase; }
.entry-content code, .entry-content pre { font-size: 15px; background: var(--stone); border-radius: var(--radius); }
.entry-content code { padding: 2px 5px; }
.entry-content pre { padding: 16px; overflow: auto; }

/* Cikk lábléc */
.article-footer { max-width: 42rem; margin: 3rem auto 0; padding-inline: var(--gutter); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 2rem; padding: 0; }
.article-tags a {
	display: inline-block;
	padding: 6px 10px 4px;
	border: 1px solid var(--ink);
	border-radius: 2px;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}
.article-tags a:hover { background: var(--ink); color: var(--beige); text-decoration: none; }
.author-box {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 20px;
	align-items: start;
	padding: 24px 0;
	border-top: var(--line);
	border-bottom: var(--line);
}
.author-box img { border-radius: 50%; width: 80px; height: 80px; object-fit: cover; }
.author-box__label {
	margin: 0 0 4px;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--muted);
}
.author-box__name { font-size: 22px; font-weight: 800; text-transform: uppercase; margin: 0 0 8px; }
.author-box__bio { font-size: 17px; margin: 0; }
.after-post { margin-top: 2rem; }
.related { margin-top: clamp(24px, 3vw, 48px); }

/* Oldalak */
.page-head { text-align: center; padding-top: clamp(32px, 5vw, 72px); padding-bottom: 32px; max-width: 900px; }
.page-cover { margin: 0 auto 40px; max-width: 1100px; }
.page-cover img { width: 100%; border-radius: var(--radius); }

/* ==========================================================================
   8. Archívum, keresés, 404
   ========================================================================== */
.archive-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: 32px; text-align: center; }
.archive-head__label {
	margin: 0 0 12px;
	font-family: var(--f-head);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--muted);
}
.archive-head__title {
	font-family: var(--f-head);
	font-weight: 900;
	font-size: clamp(36px, 6vw, 72px);
	text-transform: uppercase;
	line-height: 1;
	margin: 0;
}
.archive-head__desc { max-width: 40rem; margin: 16px auto 0; font-size: 19px; color: var(--muted); }
.archive-head__search { margin-top: 24px; }
.archive-lead { margin-bottom: 40px; padding-bottom: 40px; border-bottom: var(--line); }

.pagination { margin-top: 48px; }
.pagination .nav-links {
	display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
	font-family: var(--f-head); font-weight: 600; font-size: 14px;
}
.pagination .page-numbers {
	min-width: 40px; padding: 9px 12px 8px; text-align: center;
	border: var(--line); border-radius: var(--radius);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); color: var(--beige); text-decoration: none; }
.pagination .dots { border-color: transparent; }

.empty { padding: 40px 0; text-align: center; }

.notfound { text-align: center; padding-block: clamp(48px, 8vw, 120px); max-width: 760px; }
.notfound__code { font-family: var(--f-mono); font-size: clamp(80px, 16vw, 180px); line-height: 1; margin: 0 0 16px; }
.notfound .search-form { margin: 28px auto; }

/* ==========================================================================
   9. Hozzászólások
   ========================================================================== */
.comments-wrap { max-width: 42rem; margin: 48px auto 0; padding-inline: var(--gutter); }
.comments__title, .comment-reply-title { font-size: 20px; font-weight: 800; text-transform: uppercase; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-top: var(--hair); font-size: 17px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 600; font-size: 15px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-family: var(--f-head); font-size: 12px; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.comment-form label { display: block; font-family: var(--f-head); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.comment-form p { margin-bottom: 16px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent input { margin-top: 5px; }
.comment-form-cookies-consent label { font-weight: 400; font-family: var(--f-body); font-size: 15px; }

/* ==========================================================================
   10. Lábléc
   ========================================================================== */
.site-footer { border-top: var(--line); padding-top: 48px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: var(--gap);
	padding-bottom: 40px;
}
.site-footer__logo { font-family: var(--f-logo); font-size: 64px; line-height: .9; text-transform: uppercase; margin: 0 0 14px; }
.site-footer__about { font-size: 16px; color: var(--muted); max-width: 32ch; }
.site-footer .social { font-family: var(--f-head); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.footer-menu { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.footer-menu li { padding: 4px 0; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding-block: 20px;
	border-top: var(--hair);
	font-family: var(--f-head); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
}
.site-footer__bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   11. WordPress alap osztályok
   ========================================================================== */
.wp-caption { max-width: 100%; }
.bypostauthor > .comment-body .fn::after { content: " · szerző"; color: var(--muted); font-weight: 400; }
.has-beige-background-color { background-color: var(--beige); }
.has-ink-background-color { background-color: var(--ink); }
.has-stone-background-color { background-color: var(--stone); }
.has-peach-background-color { background-color: var(--peach); }
.has-lavender-background-color { background-color: var(--lavender); }
.has-sage-background-color { background-color: var(--sage); }
.has-rose-background-color { background-color: var(--rose); }
.has-beige-color { color: var(--beige); }
.has-ink-color { color: var(--ink); }

/* ==========================================================================
   12. Reszponzív
   ========================================================================== */
@media (max-width: 1100px) {
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
	/* Kernel: lg alatt egymás alá kerül a borító és a cím */
	.article-hero { flex-direction: column; gap: 0; max-width: 760px; }
	.article-hero__cover { flex-basis: auto; }
	.article-hero__text { margin: 0; padding: 32px 0 0; }
}

@media (max-width: 900px) {
	.hero, .feature, .with-sidebar, .newsletter__inner { grid-template-columns: 1fr; }
	.hero__side { padding-left: 0; border-left: 0; border-top: var(--line); padding-top: 24px; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sidebar .widget--popular { position: static; }

	.mainnav__toggle { display: inline-flex; }
	.mainnav__menu {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		flex-direction: column;
		gap: 0;
		padding: 8px var(--gutter) 16px;
		background: var(--beige);
		border-bottom: var(--line);
	}
	.mainnav__menu.is-open { display: flex; }
	.mainnav__menu a { padding: 12px 0; border-bottom: var(--hair); }
	.mainnav__menu .sub-menu { display: block; position: static; border: 0; padding: 0 0 0 16px; }
	.mainnav__tools { margin-left: auto; }
	.mainnav__inner { position: static; }
	.mainnav { position: sticky; }
}

@media (max-width: 600px) {
	body { font-size: 17px; }
	.masthead__logo img { max-height: 34px; }
	.masthead__tagline { display: none; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.grid--4 .card, .grid--3 .card { display: grid; grid-template-columns: 38% 1fr; gap: 14px; }
	.grid--4 .card__title, .grid--3 .card__title { font-size: 17px; }
	.grid--3 .card__excerpt { display: none; }
	.topbar__menu, .topbar .social { display: none; }
	.topbar__inner { justify-content: center; }
	.topbar__date { margin: 0; }
	.article-body { font-size: 19px; }
	.wp-block-pullquote, .entry-content .is-style-large { margin-inline: 0; }
	.wp-block-pullquote p { font-size: 20px; }
	.newsletter form, .search-form { flex-direction: column; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin: 0 0 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
