:root {
    --wue-radius: 18px;
    --wue-shadow: 0 18px 50px rgba(17, 24, 39, .10);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

.wakeup-elements-site-header,
.wakeup-elements-site-footer {
    position: relative;
    z-index: 20;
}

.wakeup-elements-container {
    position: relative;
    box-sizing: border-box;
}
.wakeup-elements-container-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: inherit;
    flex-direction: inherit;
    justify-content: inherit;
    align-items: inherit;
    gap: inherit;
    grid-template-columns: inherit;
}
.wakeup-elements-container-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}
[data-wakeup-link] { cursor: pointer; }
[data-wakeup-link]:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.wakeup-elements-dynamic-image { margin: 0; overflow: hidden; }
.wakeup-elements-dynamic-image img { display: block; width: 100%; height: auto; }
.wakeup-elements-image-placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e11d48, #2563eb);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.wakeup-elements-dynamic-author { display: inline-flex; align-items: center; gap: .75rem; }
.wakeup-elements-dynamic-author img { border-radius: 999px; object-fit: cover; }
.wakeup-elements-dynamic-terms { display: flex; flex-wrap: wrap; gap: .4em; }
.wakeup-elements-dynamic-link { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
.wakeup-elements-dynamic-content { text-align: inherit; }
.wakeup-elements-dynamic-content p { text-align: inherit; }
.wakeup-elements-dynamic-content .alignwide { max-width: var(--wp--style--global--wide-size); }
.wakeup-elements-dynamic-content .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }

.wakeup-elements-loop-grid,
.wakeup-elements-rss-grid {
    display: grid;
    grid-template-columns: repeat(var(--wue-columns, 3), minmax(0, 1fr));
    gap: var(--wue-gap, 24px);
}
.wakeup-elements-loop-item,
.wakeup-elements-rss-item {
    min-width: 0;
    box-sizing: border-box;
}
.wakeup-elements-rss-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: 12px; }
.wakeup-elements-rss-item h3 { margin: .75rem 0 .4rem; }
.wakeup-elements-rss-item p { margin: 0; }

.wakeup-elements-pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2rem; }
.wakeup-elements-pagination .page-numbers { display: inline-flex; min-width: 2.5rem; min-height: 2.5rem; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; background: #f2f4f7; }
.wakeup-elements-pagination .current { background: #111827; color: #fff; }

.wakeup-elements-slider { position: relative; }
.wakeup-elements-slider-track {
    display: flex;
    gap: var(--wue-gap, 24px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
}
.wakeup-elements-slider-track::-webkit-scrollbar { display: none; }
.wakeup-elements-slide {
    flex: 0 0 calc((100% - (var(--wue-per-view, 3) - 1) * var(--wue-gap, 24px)) / var(--wue-per-view, 3));
    scroll-snap-align: start;
    min-width: 0;
}
.wakeup-elements-slider-prev,
.wakeup-elements-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, .90);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.wakeup-elements-slider-prev { left: 10px; }
.wakeup-elements-slider-next { right: 10px; }
.wakeup-elements-slider-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.wakeup-elements-slider-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; }
.wakeup-elements-slider-dot.is-active { background: #111827; transform: scale(1.25); }

.wakeup-elements-copy-link {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.wakeup-elements-share-buttons {
    display: flex;
    flex-direction: var(--wue-share-direction, row);
    flex-wrap: var(--wue-share-wrap, wrap);
    align-items: center;
    justify-content: var(--wue-share-justify, flex-start);
    gap: var(--wue-share-gap, .6rem);
}
.wakeup-elements-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--wue-share-button-gap, .45rem);
    min-height: var(--wue-share-height, 38px);
    min-width: var(--wue-share-min-width, 0);
    padding: var(--wue-share-padding-y, .5rem) var(--wue-share-padding-x, .8rem);
    border-width: var(--wue-share-border-width, 1px);
    border-style: var(--wue-share-border-style, solid);
    border-color: var(--wue-share-border-color, currentColor);
    border-radius: var(--wue-share-radius, 999px);
    color: var(--wue-share-color, inherit);
    background: var(--wue-share-bg, transparent);
    font-size: var(--wue-share-font-size, 14px);
    font-weight: var(--wue-share-font-weight, 700);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.wakeup-elements-share-button:hover,
.wakeup-elements-share-button:focus-visible {
    background: var(--wue-share-hover-bg, #111827);
    color: var(--wue-share-hover-color, #fff);
    border-color: var(--wue-share-hover-border, #111827);
    transform: translateY(-1px);
}
.wakeup-elements-share-icon { width: var(--wue-share-icon-size, 18px); height: var(--wue-share-icon-size, 18px); display: inline-flex; flex: 0 0 auto; }
.wakeup-elements-share-icon svg { display: block; width: 100%; height: 100%; }
.wakeup-elements-share-label { white-space: nowrap; }
.wakeup-elements-share-buttons.is-icon .wakeup-elements-share-button { width: var(--wue-share-height, 40px); min-width: var(--wue-share-height, 40px); padding-inline: 0; }
.wakeup-elements-share-buttons.use-brand-colors .wakeup-share-facebook { --wue-share-bg:#1877f2; --wue-share-color:#fff; --wue-share-border-color:#1877f2; }
.wakeup-elements-share-buttons.use-brand-colors .wakeup-share-x { --wue-share-bg:#000; --wue-share-color:#fff; --wue-share-border-color:#000; }
.wakeup-elements-share-buttons.use-brand-colors .wakeup-share-linkedin { --wue-share-bg:#0a66c2; --wue-share-color:#fff; --wue-share-border-color:#0a66c2; }
.wakeup-elements-share-buttons.use-brand-colors .wakeup-share-whatsapp { --wue-share-bg:#25d366; --wue-share-color:#fff; --wue-share-border-color:#25d366; }
.wakeup-elements-share-buttons.use-brand-colors .wakeup-share-telegram { --wue-share-bg:#229ed9; --wue-share-color:#fff; --wue-share-border-color:#229ed9; }
.wakeup-elements-share-buttons.use-brand-colors .wakeup-share-pinterest { --wue-share-bg:#e60023; --wue-share-color:#fff; --wue-share-border-color:#e60023; }
.wakeup-elements-share-buttons.use-brand-colors .wakeup-share-reddit { --wue-share-bg:#ff4500; --wue-share-color:#fff; --wue-share-border-color:#ff4500; }
.wakeup-elements-share-buttons.use-brand-colors .wakeup-share-bluesky { --wue-share-bg:#1185fe; --wue-share-color:#fff; --wue-share-border-color:#1185fe; }
.wakeup-elements-share-buttons.use-brand-colors .wakeup-share-threads { --wue-share-bg:#000; --wue-share-color:#fff; --wue-share-border-color:#000; }

.wakeup-elements-layout { width: 100%; }
.wakeup-elements-live-data { display: inline-flex; align-items: baseline; }

@media (max-width: 900px) {
    .wakeup-elements-loop-grid,
    .wakeup-elements-rss-grid { grid-template-columns: repeat(min(var(--wue-columns, 3), 2), minmax(0, 1fr)); }
    .wakeup-elements-slide { flex-basis: calc((100% - (var(--wue-per-view-tablet, 2) - 1) * var(--wue-gap, 24px)) / var(--wue-per-view-tablet, 2)); }
}
@media (max-width: 600px) {
    .wakeup-elements-loop-grid,
    .wakeup-elements-rss-grid { grid-template-columns: 1fr; }
    .wakeup-elements-slide { flex-basis: calc((100% - (var(--wue-per-view-mobile, 1) - 1) * var(--wue-gap, 24px)) / var(--wue-per-view-mobile, 1)); }
    .wakeup-elements-slider-prev,
    .wakeup-elements-slider-next { width: 38px; height: 38px; }
}

/* WakeUp Elements – szerzői archívumok és profilok */
.wakeup-elements-author--profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.wakeup-elements-author-copy { min-width: 0; }
.wakeup-elements-author-name { display: block; color: inherit; text-decoration: none; }
.wakeup-elements-author-count { display: block; margin-top: .25rem; color: #6b7280; font-size: .9em; }
.wakeup-elements-author-bio { margin: .65rem 0 0; color: #4b5563; line-height: 1.65; }
.wakeup-elements-authors-grid {
    display: grid;
    grid-template-columns: repeat(var(--wue-authors-columns, 3), minmax(0, 1fr));
    gap: clamp(1rem, 2.4vw, 2rem);
}
.wakeup-elements-author-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: clamp(1.15rem, 2vw, 1.75rem);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wakeup-elements-author-card:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: 0 18px 42px rgba(15, 23, 42, .10); }
.wakeup-elements-author-card-avatar { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #eef2f7; }
.wakeup-elements-author-card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wakeup-elements-author-card h2 { margin: 0 0 .25rem; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.2; }
.wakeup-elements-author-card h2 a,
.wakeup-elements-author-card-link,
.wakeup-elements-author-latest a { color: inherit; text-decoration: none; }
.wakeup-elements-author-card-count { color: #6b7280; font-size: .82rem; font-weight: 700; }
.wakeup-elements-author-card p { margin: .75rem 0; color: #4b5563; line-height: 1.6; }
.wakeup-elements-author-card-link { display: inline-flex; margin-top: .8rem; font-weight: 800; }
.wakeup-elements-author-latest { margin: .8rem 0 0; padding: .8rem 0 0 1.1rem; border-top: 1px solid #eef2f7; }
.wakeup-elements-author-latest li + li { margin-top: .4rem; }
.wakeup-elements-authors-grid--compact .wakeup-elements-author-card { grid-template-columns: 72px minmax(0, 1fr); padding: 1rem; border-radius: 12px; box-shadow: none; }
.wakeup-elements-authors-grid--compact .wakeup-elements-author-card p,
.wakeup-elements-authors-grid--compact .wakeup-elements-author-latest { display: none; }
.wakeup-elements-authors-grid--spotlight .wakeup-elements-author-card { display: flex; flex-direction: column; text-align: center; align-items: center; }
.wakeup-elements-authors-grid--spotlight .wakeup-elements-author-card-avatar { width: min(180px, 72%); }
.wakeup-elements-authors-grid--spotlight .wakeup-elements-author-card-copy { width: 100%; }
.wakeup-elements-authors-empty { padding: 2rem; border: 1px dashed #cbd5e1; border-radius: 14px; text-align: center; color: #64748b; }

@media (max-width: 980px) {
    .wakeup-elements-authors-grid { grid-template-columns: repeat(min(var(--wue-authors-columns, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .wakeup-elements-authors-grid { grid-template-columns: 1fr; }
    .wakeup-elements-author-card { grid-template-columns: 82px minmax(0, 1fr); }
    .wakeup-elements-author--profile { grid-template-columns: 82px minmax(0, 1fr); }
}
.wakeup-elements-author { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.wakeup-elements-author img { flex: 0 0 auto; border-radius: 999px; object-fit: cover; }
.wakeup-elements-author.wakeup-elements-author--profile { display: grid; }

/* WakeUp Elements 1.0 – modern editorial foundation */
:root {
    --wue-news: #ff5a36;
    --wue-report: #2563eb;
    --wue-magazine: #db2777;
    --wue-editorial: #7c3aed;
    --wue-ink: #0f172a;
    --wue-surface: #f8fafc;
}
body { text-rendering: optimizeLegibility; }
.wakeup-elements-main { min-height: 55vh; overflow: visible; }
.wakeup-elements-layout img { background-color: transparent; background-image: none; }
.wakeup-elements-layout .wue3-placeholder-card img,
.wakeup-elements-layout img[data-wue-placeholder="1"] { background: linear-gradient(135deg, #eef2f7, #e2e8f0); }
.wakeup-elements-layout a { text-underline-offset: .16em; }
.wakeup-elements-layout article { container-type: inline-size; }
.wakeup-elements-layout :is(h1,h2,h3) { text-wrap: balance; }
.wakeup-elements-layout p { text-wrap: pretty; }
.wakeup-elements-layout-single .wue3-type-dynamic_content,
.wakeup-elements-layout-single .wakeup-elements-dynamic-content { font-size: clamp(1.04rem, 1.4vw, 1.18rem); line-height: 1.82; }
@media (prefers-reduced-motion: reduce) {
    .wakeup-elements-layout *, .wakeup-elements-layout *::before, .wakeup-elements-layout *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* WakeUp Elements 1.1 – compact, predictable frontend baseline */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: #fff;
    color: #172033;
    font-size: 16px;
    line-height: 1.6;
}
.wp-site-blocks { padding-inline: 0 !important; }
.wakeup-elements-main,
.wakeup-elements-layout,
.wakeup-elements-layout > .wue3-document { width: 100%; max-width: none; }
.wakeup-elements-layout { min-width: 0; }
.wakeup-elements-layout :where(h1,h2,h3,h4,h5,h6,figure) { margin-block-start: 0; }
.wakeup-elements-layout :where(button,input,select,textarea) { font: inherit; }
.wakeup-elements-layout-single .wue3-type-dynamic_content,
.wakeup-elements-layout-single .wakeup-elements-dynamic-content {
    font-size: clamp(1rem, .45vw + .92rem, 1.1rem);
    line-height: 1.75;
}
.wakeup-elements-image-placeholder { min-height: 160px; font-size: 1rem; }
.wakeup-elements-author-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
}
.wakeup-elements-author-card h2 { font-size: clamp(1.08rem, 1.5vw, 1.35rem); }
.wakeup-elements-authors-grid { gap: clamp(.8rem, 1.6vw, 1.25rem); }
@media (max-width: 640px) {
    .wakeup-elements-author-card,
    .wakeup-elements-author--profile { grid-template-columns: 64px minmax(0, 1fr); }
}

/* WakeUp Elements 2.13.4 – one predictable 1250px page width. */
:root { --wue-page-max: 1250px; }
.wakeup-elements-layout-page > .wue3-document,
.wakeup-elements-layout-single > .wue3-document,
.wakeup-elements-layout-archive > .wue3-document,
.wakeup-elements-layout-search > .wue3-document,
.wakeup-elements-layout-404 > .wue3-document,
.wakeup-elements-layout-maintenance > .wue3-document,
.wakeup-elements-layout-footer > .wue3-document {
    width: min(100%, var(--wue-page-max)) !important;
    max-width: var(--wue-page-max) !important;
    margin-inline: auto !important;
}
/* The header/top navigation deliberately stays full width. */
.wakeup-elements-layout-header,
.wakeup-elements-layout-header > .wue3-document,
.wakeup-elements-site-header,
#matyas-custom-header {
    max-width: none !important;
}

/* Archive/category/rovat content must be present on the very first paint.
   FlyingPress-style deferred rendering and entrance states must not hold the
   complete archive below an empty viewport until the visitor scrolls. */
body:is(.archive,.category,.tag,.tax) .wakeup-elements-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 0 !important;
    content-visibility: visible !important;
    contain: none !important;
}
body:is(.archive,.category,.tag,.tax) .wakeup-elements-layout-archive,
body:is(.archive,.category,.tag,.tax) .wakeup-elements-layout-archive > .wue3-document,
body:is(.archive,.category,.tag,.tax) .wakeup-elements-layout-archive > .wue3-document > .wue3-element,
body:is(.archive,.category,.tag,.tax) .wakeup-elements-layout-archive .wue3-container,
body:is(.archive,.category,.tag,.tax) .wakeup-elements-layout-archive .wue3-container-content,
body:is(.archive,.category,.tag,.tax) .wue212-archive,
body:is(.archive,.category,.tag,.tax) .wue212-shell,
body:is(.archive,.category,.tag,.tax) .wue212-archive-header,
body:is(.archive,.category,.tag,.tax) .wue212-archive-slider,
body:is(.archive,.category,.tag,.tax) .wue212-section,
body:is(.archive,.category,.tag,.tax) .wue212-ticker,
body:is(.archive,.category,.tag,.tax) .wue212-archive-mosaic {
    content-visibility: visible !important;
    contain: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
body:is(.archive,.category,.tag,.tax) .wakeup-elements-layout-archive [style*="content-visibility"],
body:is(.archive,.category,.tag,.tax) .wakeup-elements-layout-archive [data-wpr-lazyrender],
body:is(.archive,.category,.tag,.tax) .wakeup-elements-layout-archive [data-lazy-render] {
    content-visibility: visible !important;
    contain-intrinsic-size: auto !important;
}
body:is(.archive,.category,.tag,.tax) .wue212-archive-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
