/*
Theme Name:  Progresslab
Author:      Digital Footprint
Description: A progresslab.hu magazintémája – világos, levegős elrendezés sárga kiemeléssel, keretes kártyákkal, rovatblokkokkal és oldalsávos cikkoldallal. A nyitóblokk és az oldalsáv szövegei a Testreszabóban állíthatók.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:     GNU General Public License v2 or later
Text Domain: progresslab
*/

/* ═══════════════════════════════════════════════════════════════
   1. Változók és alapok
   ═══════════════════════════════════════════════════════════════ */
:root {
    --bg:       #fafaf8;
    --bg2:      #f3f2ec;
    --card:     #ffffff;
    --line:     #e6e5df;
    --tint:     #fffce3;
    --ink:      #1a1d20;
    --charcoal: #313d3a;
    --muted:    #5f6563;
    --silver:   #b7b8b8;
    --yellow:   #fff012;
    --yellow-h: #f2e400;

    --font:  'Manrope', 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --wrap:  1200px;
    --pad:   clamp(18px, 4vw, 32px);
    --head:  72px;
    --r-sm:  8px;
    --r:     10px;
    --r-lg:  14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 20px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--charcoal);
    font: 400 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--charcoal); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

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

.light { font-weight: 300; }

.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: 12px; top: -60px;
    z-index: 500;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    font-weight: 700;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* Felső kis címke */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow--dot::before {
    content: '';
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 240, 18, .25);
    flex-shrink: 0;
}
.eyebrow--light { color: rgba(255, 255, 255, .62); }

.pill {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.2;
}
.pill--yellow { background: var(--yellow); color: var(--ink); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border: 0;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.2;
    transition: background .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-h); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--charcoal); }

.more-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
    background-image: linear-gradient(var(--yellow), var(--yellow));
    background-size: 0 40%;
    background-position: 0 85%;
    background-repeat: no-repeat;
    transition: background-size .25s;
}
.more-link:hover { background-size: 100% 40%; }

.cat-label {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.3;
}
.cat-label:hover { color: var(--ink); }
.cat-label--pill {
    align-self: flex-start;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
}
.cat-label--pill:hover { border-color: var(--ink); }
.cat-label--light { color: var(--yellow); }
.cat-label--light:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   2. Fejléc
   ═══════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 248, .88);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(26, 29, 32, .06); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--head);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__logo { max-height: 42px; width: auto; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__mark-bg { fill: var(--ink); }
.brand__bar { fill: var(--yellow); opacity: .55; transition: transform .3s ease, opacity .3s; transform-box: fill-box; transform-origin: bottom; }
.brand__bar:nth-of-type(3) { opacity: .8; }
.brand__bar--top { opacity: 1; }
.brand:hover .brand__bar { transform: scaleY(1.08); opacity: 1; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name {
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;
    color: var(--ink);
}
.brand__lab { font-weight: 300; }
.brand__tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.1;
    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    margin-left: auto;
    white-space: nowrap;
    overflow: hidden;
}
.nav-link {
    position: relative;
    padding: 6px 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--charcoal);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink);
    transition: background .2s;
}
.icon-btn:hover { background: var(--bg2); }
.menu-btn { display: none; }

.search-panel { border-top: 1px solid var(--line); padding: 18px 0; }
.search-panel .search-form { max-width: 720px; margin: 0 auto; }

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    font: 500 16px var(--font);
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.search-form input[type="search"]:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 240, 18, .45); }
.search-form button {
    padding: 0 20px;
    border: 0;
    border-radius: var(--r);
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background .2s, color .2s;
}
.search-form button:hover { background: var(--yellow); color: var(--ink); }
.search-form--page { max-width: 560px; margin-top: 24px; }

/* Oldalsó menü */
.drawer { position: fixed; inset: 0; z-index: 300; background: rgba(26, 29, 32, .4); }
.drawer__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(380px, 88vw);
    padding: 72px 28px 28px;
    background: var(--bg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; top: 16px; right: 16px; }
.drawer__nav { display: flex; flex-direction: column; margin-bottom: 26px; }
.drawer__nav a {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}
.drawer__nav a span { color: var(--muted); font-weight: 500; font-size: 14px; }
.drawer__nav a:hover { color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════
   3. Szakaszok, fejlécek, rácsok
   ═══════════════════════════════════════════════════════════════ */
.site-main { min-height: 50vh; }

.section { padding: clamp(56px, 8vw, 88px) 0; }
.section--alt { background: var(--bg2); }
.section--line { border-top: 1px solid var(--line); }
.section--tight { padding-top: 0; }
.section--tight:first-of-type { padding-top: clamp(56px, 8vw, 88px); }
.section--first { padding-top: clamp(32px, 5vw, 48px); }
.section--alt + .section--tight { padding-top: clamp(56px, 8vw, 88px); }

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(24px, 3.4vw, 36px);
}
.sec-title {
    font-size: clamp(32px, 4.2vw, 46px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.015em;
}
.sec-lead {
    max-width: 640px;
    margin: -12px 0 32px;
    color: var(--muted);
}

.grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    transition: background .2s, border-color .2s;
}
.chip span { font-weight: 500; font-size: 13px; color: var(--muted); }
.chip:hover { background: var(--yellow); border-color: var(--yellow); }
.chips--small { margin-top: 36px; }
.chips--small .chip { padding: 6px 12px; font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   4. Kártyák
   ═══════════════════════════════════════════════════════════════ */
.thumb-ph {
    display: block;
    width: 100%; height: 100%;
    background:
        repeating-linear-gradient(135deg, transparent 0 12px, rgba(49, 61, 58, .05) 12px 24px),
        var(--bg2);
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .2s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--silver); transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(26, 29, 32, .25); }
.card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.035); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card__title {
    margin: 14px 0 8px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.22;
    color: var(--charcoal);
}
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 2px; }
.card__text { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.card__meta { margin: auto 0 0; font-size: 13px; color: var(--muted); }
.grid--4 .card__title { font-size: 18px; }
.grid--4 .card__text { display: none; }

/* Vezető cikk */
.lead-card { min-width: 0; }
.lead-card__img {
    display: block;
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg2);
}
.lead-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lead-card:hover .lead-card__img img { transform: scale(1.025); }
.lead-card__title {
    margin: 8px 0 12px;
    font-size: clamp(28px, 3.1vw, 38px);
    font-weight: 800;
    line-height: 1.1;
}
.lead-card__title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 6px; text-underline-offset: 3px; }
.lead-card__text { color: var(--muted); margin: 0; }

/* Listás sor */
.news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}
.news-list { border-top: 2px solid var(--ink); padding-top: 14px; }
.li-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.li-card:last-child { border-bottom: 0; }
.li-card__title { margin-top: 6px; font-size: 17px; font-weight: 800; line-height: 1.25; }
.li-card__title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.li-card__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--bg2); }
.li-card__img img { width: 100%; height: 100%; object-fit: cover; }

/* Rovatkártya */
.topic {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.topic__num { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.topic__title { margin-bottom: 10px; font-size: 26px; font-weight: 800; line-height: 1.15; }
.topic__text { font-size: 15px; color: var(--muted); }
.topic__list {
    list-style: none;
    margin: 4px 0 22px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
}
.topic__list li { position: relative; padding-left: 16px; margin-bottom: 8px; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.topic__list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); }
.topic__list a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.topic .more-link { margin-top: auto; align-self: flex-start; }

/* Rovatblokk */
.cat-block { border-top: 2px solid var(--ink); padding-top: 16px; }
.cat-block--spaced { margin-top: clamp(48px, 6vw, 72px); }
.cat-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.cat-block__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }

/* ═══════════════════════════════════════════════════════════════
   5. Nyitóblokk
   ═══════════════════════════════════════════════════════════════ */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.hero__title {
    margin-bottom: 24px;
    font-size: clamp(38px, 5.4vw, 66px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
}
.hero__title .light { display: block; }
.hero__text { max-width: 560px; font-size: 18px; color: var(--muted); margin-bottom: 30px; }

.hero__box {
    max-width: 600px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.hero__box-label { margin: 0 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1.5px solid var(--ink);
    border-radius: var(--r);
    background: var(--card);
    transition: transform .2s, background .2s;
}
.choice:hover { transform: translateY(-2px); background: var(--tint); }
.choice__kick { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.choice__text { font-size: 15.5px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.choice--dark { background: var(--ink); }
.choice--dark:hover { background: var(--charcoal); }
.choice--dark .choice__kick { color: rgba(255, 255, 255, .6); }
.choice--dark .choice__text { color: #fff; }

.hero__feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: var(--ink);
    border-radius: 18px;
    color: rgba(255, 255, 255, .75);
    box-shadow: 0 30px 60px -30px rgba(26, 29, 32, .55);
}
.hero__feature .pill { align-self: flex-start; }
.hero__feature-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #2a2f33; margin: 4px 0 6px; }
.hero__feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero__feature:hover .hero__feature-img img { transform: scale(1.03); }
.hero__feature-title { font-size: clamp(22px, 2.3vw, 28px); font-weight: 800; line-height: 1.12; color: #fff; }
.hero__feature-title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; }
.hero__feature-text { font-size: 15px; line-height: 1.55; margin: 0 0 6px; }
.hero__feature .btn { align-self: flex-start; }

/* ═══════════════════════════════════════════════════════════════
   6. Rovatoldal / keresés fejléc
   ═══════════════════════════════════════════════════════════════ */
.page-head { padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.page-head__title { font-size: clamp(40px, 6vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; }
.page-head__desc { max-width: 640px; margin-top: 12px; font-size: 18px; color: var(--muted); }
.page-head__desc p:last-child { margin-bottom: 0; }

.cat-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    margin-top: 28px;
}
.cat-nav__label, .cat-nav a {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.cat-nav__label { color: var(--muted); }
.cat-nav a { color: var(--ink); padding: 4px 0; border-bottom: 3px solid transparent; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { border-bottom-color: var(--yellow); }

.empty { padding: 30px 0; color: var(--muted); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: clamp(40px, 5vw, 56px); }
.pagination .page-numbers {
    min-width: 44px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--card);
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
}
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .dots { background: transparent; border-color: transparent; }

/* ═══════════════════════════════════════════════════════════════
   7. Cikkoldal
   ═══════════════════════════════════════════════════════════════ */
.article-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(36px, 5vw, 64px);
    align-items: start;
    padding-top: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(56px, 8vw, 88px);
}
.article { min-width: 0; max-width: 740px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.article__time { font-size: 13.5px; color: var(--muted); }

.article__title {
    margin: 16px 0 28px;
    font-size: clamp(32px, 4.3vw, 50px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.article__img { margin: 0 0 28px; }
.article__img img { width: 100%; border-radius: var(--r-lg); }
.article__img figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.tldr {
    margin: 0 0 32px;
    padding: 20px 22px;
    background: var(--tint);
    border: 1px solid #f1e88c;
    border-radius: var(--r-lg);
}
.tldr p { margin: 12px 0 0; font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--ink); }

/* Olvasószöveg */
.entry-content { font-size: 17.5px; line-height: 1.72; color: var(--ink); }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--charcoal); font-weight: 800; line-height: 1.2; margin: 1.8em 0 .6em; }
.entry-content h2 { font-size: clamp(24px, 2.8vw, 30px); }
.entry-content h3 { font-size: clamp(20px, 2.3vw, 24px); }
.entry-content h4 { font-size: 19px; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--charcoal); font-weight: 800; }
.entry-content strong { font-weight: 800; }
.entry-content blockquote {
    margin: 1.8em 0;
    padding: 18px 22px;
    border-left: 4px solid var(--yellow);
    background: var(--card);
    border-radius: 0 var(--r) var(--r) 0;
    font-size: 1.08em;
    font-weight: 600;
    color: var(--charcoal);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { width: 100%; border-radius: var(--r); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption,
.entry-content .wp-element-caption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--card); border-radius: var(--r); overflow: hidden; }
.entry-content th,
.entry-content td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--bg2); font-weight: 800; color: var(--charcoal); }

/* Szövegközi hivatkozások: jól láthatók, de visszafogottak */
.entry-content a:not(.wp-block-button__link):not(:has(img)) {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: .2em;
    text-underline-offset: .14em;
    text-decoration-skip-ink: none;
    transition: background .2s;
}
.entry-content a:not(.wp-block-button__link):not(:has(img)):hover { background: var(--tint); text-decoration-color: var(--yellow-h); }

/* Beágyazott videók teljes hasábszélességben */
.entry-content .wp-block-embed,
.entry-content .wp-block-video { width: 100%; max-width: 100%; }
.entry-content .wp-block-embed__wrapper { width: 100%; }
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="youtu.be"],
.entry-content iframe[src*="vimeo"],
.entry-content .wp-block-embed.is-type-video iframe,
.entry-content video {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--r);
}

.entry-content .wp-block-button__link {
    background: var(--yellow);
    color: var(--ink);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 13px 20px;
}
.entry-content .wp-block-button__link:hover { background: var(--yellow-h); }

.article--page { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) 0 clamp(56px, 8vw, 88px); }

/* Oldalsáv */
.article-side { position: sticky; top: calc(var(--head) + 24px); display: flex; flex-direction: column; gap: 20px; }
.admin-bar .article-side { top: calc(var(--head) + 56px); }
.side-cta {
    padding: 24px;
    background: var(--ink);
    border-radius: var(--r-lg);
    color: rgba(255, 255, 255, .72);
}
.side-cta__title { margin: 0 0 12px; font-size: 26px; font-weight: 800; line-height: 1.12; color: #fff; }
.side-cta__title .light { display: block; }
.side-cta__text { font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.side-box { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.side-list { list-style: none; counter-reset: side; margin: 0; padding: 0; }
.side-list li {
    counter-increment: side;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 6px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}
.side-list li:first-child { border-top: 0; padding-top: 2px; }
.side-list li::before { content: counter(side); font-weight: 800; color: var(--charcoal); }
.side-list a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

/* 404 */
.not-found { max-width: 760px; }
.not-found .chips { margin: 26px 0 30px; }

/* ═══════════════════════════════════════════════════════════════
   8. Lábléc
   ═══════════════════════════════════════════════════════════════ */
.site-footer { padding: clamp(48px, 7vw, 72px) 0 30px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: clamp(28px, 4vw, 64px);
    padding-bottom: 36px;
}
.footer-tagline { margin: 16px 0 0; max-width: 32ch; font-size: 15px; color: var(--muted); }
.footer-title { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 15px; line-height: 1.4; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   9. Reszponzív
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-nav .nav-link:nth-child(n+5) { display: none; }
}

@media (max-width: 1000px) {
    .main-nav { display: none; }
    .header-tools { margin-left: auto; }
    .menu-btn { display: inline-grid; }
    .hero__grid { grid-template-columns: 1fr; }
    .hero__feature { max-width: 560px; }
    .news-grid { grid-template-columns: 1fr; }
    .article-wrap { grid-template-columns: 1fr; }
    .article { max-width: 760px; margin: 0 auto; }
    .article-side { position: static; max-width: 760px; width: 100%; margin: 0 auto; }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    :root { --head: 64px; }
    body { font-size: 16.5px; }
    .brand__name { font-size: 21px; }
    .brand__tag { display: none; }
    .grid--3,
    .grid--4 { grid-template-columns: 1fr; }
    .grid--4 .card__text { display: block; }
    .hero__btns { grid-template-columns: 1fr; }
    .sec-head { flex-direction: column; align-items: flex-start; }
    .cat-block__head { flex-direction: column; gap: 6px; }
    .entry-content { font-size: 17px; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-form button { padding: 0 14px; }
}

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