/* Journal list + article */

/* newspaper clipping in the header */
.np-clip { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; user-select: none; }
.np {
  --gold: rgb(150, 118, 66);
  position: absolute; top: -150px; right: calc(max(var(--padx), 50% - 610px) + 84px); width: 400px;
  transform: rotate(-7deg) scale(1.2); transform-origin: 100% 0%; padding: 18px 20px 20px; border: 1.5px solid var(--gold); color: var(--gold);
  display: flex; flex-direction: column; opacity: .36; filter: grayscale(1) sepia(1) saturate(45%) hue-rotate(-10deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
html[data-mc-dark] .np { --gold: rgb(201, 160, 99); opacity: .12; }
@media (max-width: 1179px) { .np { transform: rotate(-7deg) scale(.9); } }
@media (max-width: 759px) { .np-clip { display: none; } }
.np-cols { column-count: 4; column-gap: 10px; column-rule: 1px solid var(--gold); height: 380px; column-fill: auto; overflow: hidden; }
.np-art { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--gold); }
.np-head { margin: 0 0 3px; font-family: var(--serif); font-size: 8px; line-height: 1.15; }
.np-text { margin: 0 0 5px; font-family: Georgia, 'Times New Roman', serif; font-size: 6px; line-height: 1.4; text-align: justify; hyphens: auto; }
.np-ad { break-inside: avoid-column; border: 1px solid var(--gold); padding: 8px 6px; text-align: center; }
.np-ad__head { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-size: 10px; line-height: 1.2; }
.np-ad__text { margin: 0; font-family: var(--ui); font-size: 6.5px; letter-spacing: .14em; text-transform: uppercase; }

/* list */
.j-section { position: relative; z-index: 2; padding: 56px 48px 112px; }
@media (max-width: 759px) { .j-section { padding: 40px 20px 72px; } }
.j-filter { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 16px; padding: 4px 0; scrollbar-width: none; }
.j-filter::-webkit-scrollbar { display: none; }
@media (max-width: 759px) { .j-filter { margin: 0 -20px 14px; padding: 4px 20px; } }
.j-pill {
  flex: 0 0 auto; appearance: none; cursor: pointer; min-height: 40px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; text-decoration: none;
  font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--stroke); background: transparent; color: var(--ink-body); transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.j-pill:hover { border-color: var(--accent); color: var(--ink); }
.j-pill.is-on { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; }
html[data-mc-dark] .j-pill.is-on { color: #100407; }
.j-count { margin: 0 0 28px; font-size: 13.5px; color: rgba(var(--ink-rgb), .6); }
.j-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; transition: opacity .2s ease; }
.j-grid.is-loading { opacity: .45; pointer-events: none; }
@media (max-width: 1023px) { .j-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .j-grid { grid-template-columns: 1fr; gap: 28px; } }
.j-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 14px 30px -18px rgba(58, 44, 32, .3), 0 2px 5px rgba(58, 44, 32, .07); transition: transform .32s var(--ease), box-shadow .32s ease;
}
html[data-mc-dark] .j-card { background: #2A221E; box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .85), 0 2px 5px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 240, 225, .07); }
.j-card:hover { transform: translateY(-4px); color: inherit; box-shadow: 0 24px 44px -22px rgba(58, 44, 32, .38), 0 2px 6px rgba(58, 44, 32, .1); }
html[data-mc-dark] .j-card:hover { box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .9), 0 2px 6px rgba(0, 0, 0, .4); }
@media (max-width: 759px) { .j-card { border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .j-card:hover { transform: none; } }
.j-card__img { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--img-bg); }
.j-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.j-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; flex: 1 1 auto; }
@media (max-width: 759px) { .j-card__body { padding: 20px 20px 22px; } }
.j-meta, .a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-family: var(--ui); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink-rgb), .6); }
.j-cat { color: var(--accent-strong); }
.j-card__title { font-family: var(--serif); font-size: 24px; line-height: 1.22; color: var(--ink); text-wrap: pretty; }
@media (max-width: 759px) { .j-card__title { font-size: 22px; } }
.j-excerpt { font-size: 14.5px; line-height: 1.7; color: var(--ink-body); text-wrap: pretty; flex: 1 1 auto; }
.j-read { margin-top: 6px; font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.j-empty { margin: 24px 0; font-size: 15px; color: var(--ink-body); }
.j-more { display: flex; justify-content: center; margin-top: 56px; }
@media (max-width: 759px) { .j-more { margin-top: 40px; } }

/* article */
.a-sec { position: relative; z-index: 2; padding: 0 48px 80px; }
@media (max-width: 759px) { .a-sec { padding: 0 20px 56px; } }
.a-wide { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.a-narrow { width: 100%; max-width: 720px; margin: 0 auto; }
.a-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-bottom: 18px; border-bottom: 1px solid var(--stroke); }
.a-wide > .a-back { margin-top: 6px; }
.a-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--ink-rgb), .45); }
.a-crumb a { color: rgba(var(--ink-rgb), .7); text-decoration: none; transition: color .2s ease; }
.a-crumb a:hover { color: var(--accent-strong); }
.a-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; transition: color .2s ease; }
.a-back:hover { color: var(--accent-strong); }
.a-hero { position: relative; width: 100%; max-width: var(--maxw); aspect-ratio: 21 / 9; margin: 40px auto 64px; border-radius: 20px; overflow: hidden; background: var(--img-bg); }
.a-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) { .a-hero { aspect-ratio: 4 / 3; margin: 28px auto 40px; border-radius: 14px; } }
.a-narrow:first-child, .a-bar + .a-narrow { margin-top: 48px; }
.a-body { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.a-body p, .a-body li { margin: 0; font-size: 17px; line-height: 1.8; color: var(--ink-body); text-wrap: pretty; }
.a-body ul, .a-body ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.a-body h2, .a-body h3 { margin: 18px 0 0; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.2; color: var(--ink); }
.a-body h3 { font-size: 26px; }
.a-body blockquote { margin: 14px 0; padding: 6px 0 6px 26px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 28px; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.a-body blockquote p { font: inherit; color: inherit; }
.a-body img { height: auto; border-radius: 14px; display: block; }
.a-body figure { margin: 14px 0 0; }
.a-body figcaption, .a-body .wp-element-caption { margin: 10px 0 8px; font-size: 13px; line-height: 1.6; color: rgba(var(--ink-rgb), .6); }
.a-body a { color: var(--accent-strong); }
.a-body .alignwide, .a-body .alignfull { max-width: 100%; }
@media (max-width: 759px) { .a-body h2 { font-size: 26px; } .a-body blockquote { font-size: 23px; } }
.a-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--stroke); }
.a-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 759px) { .a-pager { grid-template-columns: 1fr; } }
.a-pager__link { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--stroke); text-decoration: none; color: inherit; transition: border-color .2s ease; }
.a-pager__link:hover { border-color: var(--accent); color: inherit; }
.a-pager__link.is-next { align-items: flex-end; text-align: right; grid-column: 2; }
@media (max-width: 759px) { .a-pager__link.is-next { align-items: flex-start; text-align: left; grid-column: auto; } }
.a-pager__label { font-family: var(--ui); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-strong); }
.a-pager__title { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); text-wrap: pretty; }
.a-morehead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.a-morehead h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.18; color: var(--ink); }
.a-h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.12; letter-spacing: -.004em; text-wrap: balance; }
.a-ph .mc-ph__body { font-size: 19px; }
.a-ph { padding-bottom: 72px; }

/* Mobil: a kategória-pillek sávja a szélén elhalványul, ha van még tartalom (világos és sötét módban is) */
@media (max-width: 759px) {
  .j-filter {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--ml, 0px), #000 calc(100% - var(--mr, 0px)), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--ml, 0px), #000 calc(100% - var(--mr, 0px)), transparent 100%);
  }
  .j-filter.has-l { --ml: 36px; } .j-filter.has-r { --mr: 36px; }
}
