/* MAFITT - homepage redesign
   Brand tokens: MAFITT Blue #1E3A5F, Post Gold #CFA152, Parchment #F9F5EF,
   Graphite #333333, Philatelic Deep Red #B0202F. Headings: Playfair Display. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #F9F5EF;
  color: #333333;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head, "Playfair Display", Georgia, "Times New Roman", serif);
  margin: 0;
}

.italic {
  font-family: var(--font-head, "Playfair Display", Georgia, serif);
  font-style: italic;
}

a { color: #B0202F; text-decoration: none; }
a:hover { color: #1E3A5F; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Top utility bar */
.utility-bar { width: 100%; background: #152C48; padding: 8px 0; }
.utility-bar .wrap { display: flex; justify-content: space-between; align-items: center; }
.utility-bar .member-link { font-size: 13px; color: #CFA152; letter-spacing: .02em; }
.lang-switch { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.lang-switch .active { color: #F9F5EF; font-weight: 700; border-bottom: 2px solid #CFA152; padding-bottom: 2px; }
.lang-switch .inactive { color: #8fa3b8; }
.lang-switch .note { color: #4d6178; font-size: 11px; margin-left: 2px; }

/* Header */
.site-header { width: 100%; background: #F9F5EF; }
.site-header .wrap { padding: 22px 32px 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark { flex-shrink: 0; background: #ffffff; border: 1px solid #e6ddc9; padding: 6px 8px; display: inline-block; line-height: 0; }
.brand-mark img { height: 56px; width: auto; }
.brand-name { font-weight: 700; font-size: 29px; color: #1E3A5F; line-height: 1; }
.brand-sub { font-size: 13px; color: #5c6b7a; letter-spacing: .03em; margin-top: 5px; }
.founded { text-align: right; font-size: 11px; color: #CFA152; letter-spacing: .09em; font-weight: 700; }

/* Primary nav */
.primary-nav { width: 100%; background: #1E3A5F; }
.primary-nav > .wrap > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; height: 50px; flex-wrap: wrap; }
.primary-nav li { position: relative; }
.primary-nav a { color: #F9F5EF; opacity: .92; font-size: 14px; font-weight: 600; transition: opacity .15s, color .15s; display: inline-flex; align-items: center; padding: 4px 0; }
.primary-nav a:hover { opacity: 1; color: #CFA152; }
.primary-nav li.push-right { margin-left: auto; }
.primary-nav li.menu-item-has-children > a::after {
  content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .75; flex-shrink: 0;
}
.primary-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: -16px; min-width: 220px;
  background: #1E3A5F; border-top: 2px solid #CFA152; list-style: none; margin: 0; padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 40;
}
.primary-nav li:hover > .sub-menu { display: block; }
.primary-nav .sub-menu li { padding: 0 16px; }
.primary-nav .sub-menu a { padding: 9px 0; font-weight: 500; white-space: nowrap; }

/* Hero */
.hero { width: 100%; background: #F1EADA; }
.hero .wrap { padding: 68px 32px; display: grid; grid-template-columns: 1.05fr 0.72fr; gap: 56px; align-items: center; }
.hero-rule { width: 64px; height: 2px; background: #CFA152; margin-bottom: 22px; }
.hero-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #B0202F; margin-bottom: 18px; }
.hero h1 { font-size: 48px; line-height: 1.14; color: #1E3A5F; font-weight: 700; margin-bottom: 16px; }
.hero-subhead { font-size: 17px; color: #5c6b7a; margin-bottom: 26px; }
.hero-body { font-size: 17px; line-height: 1.75; color: #333333; margin-bottom: 34px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-figure { display: flex; justify-content: center; }
.hero-specimen { background: #ffffff; border: 1px solid #e6ddc9; padding: 22px 22px 26px; transform: rotate(2deg); box-shadow: 0 10px 28px rgba(30,58,95,.14); }
.hero-specimen img { width: 210px; height: auto; }

/* Buttons and links */
.btn-solid, .btn-line {
  display: inline-block; padding: 14px 30px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; border: 1px solid #1E3A5F;
}
.btn-solid { background: #1E3A5F; color: #F9F5EF; }
.btn-solid:hover { background: #152C48; border-color: #152C48; color: #F9F5EF; }
.btn-line { background: transparent; color: #1E3A5F; }
.btn-line:hover { background: #1E3A5F; color: #F9F5EF; }
.link-arrow { font-size: 14px; font-weight: 700; color: #B0202F; }

/* Section header */
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 30px; color: #1E3A5F; font-weight: 700; }
.rule-gold { width: 56px; height: 2px; background: #CFA152; margin-top: 14px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 38px; flex-wrap: wrap; gap: 16px; }

/* News */
.news { width: 100%; border-top: 1px solid #e6ddc9; }
.news .wrap { padding: 60px 32px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.card { background: #ffffff; border: 1px solid #e6ddc9; border-top: 4px solid #CFA152; padding: 28px 26px; }
.tag { display: inline-block; padding: 5px 11px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #F9F5EF; margin-bottom: 14px; }
.tag-navy { background: #1E3A5F; }
.tag-red { background: #B0202F; }
.card h3 { font-size: 20px; color: #1E3A5F; font-weight: 700; line-height: 1.32; margin-bottom: 11px; }
.card p { font-size: 15px; line-height: 1.65; color: #333333; margin-bottom: 16px; }

/* Céljaink (inverse) */
.goals { width: 100%; background: #1E3A5F; }
.goals .wrap { padding: 64px 32px; }
.goals .section-head h2 { color: #F9F5EF; }
.goals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.goals-grid .num { font-size: 26px; color: #CFA152; margin-bottom: 10px; }
.goals-grid h3 { font-size: 18px; color: #F9F5EF; font-weight: 700; margin-bottom: 9px; }
.goals-grid p { font-size: 15px; line-height: 1.65; color: #c3cedb; margin: 0; }
.goals-grid li { list-style: none; }
.goals-grid li + li { border-left: 1px solid #35547a; padding-left: 44px; }

/* Feature boxes (Philatelica / Hét műtárgya / BSZT) */
.feature { width: 100%; border-top: 2px solid #1E3A5F; }
.feature .wrap { padding: 52px 32px 60px; }
.feature-grid { display: grid; gap: 52px; align-items: center; }
.feature-grid.img-left { grid-template-columns: 0.8fr 1.2fr; }
.feature-grid.img-right { grid-template-columns: 1.2fr 0.8fr; }
.feature.box-navy { background: #E8EDF2; }
.feature.box-red { background: #F6E9E7; }
.feature.box-last { border-bottom: 1px solid #e6ddc9; }
.feature h3 { font-size: 27px; color: #1E3A5F; font-weight: 700; margin-bottom: 8px; }
.feature .kicker { font-size: 13px; font-weight: 700; letter-spacing: .07em; color: #B0202F; margin-bottom: 9px; }
.feature .lede { font-size: 15px; color: #5c6b7a; margin-bottom: 16px; }
.feature .body { font-size: 16px; line-height: 1.75; color: #333333; margin-bottom: 16px; }
.members-note { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.members-note span { font-size: 13px; color: #5c6b7a; font-style: italic; }

.stack { position: relative; }
.stack .layer { position: absolute; }
.stack .layer-1 { inset: 16px -8px -8px 16px; }
.stack .layer-2 { inset: 8px -3px -3px 8px; }
.stack .front { position: absolute; inset: 0; border: 1px solid #d4dde6; background: #ffffff; display: flex; align-items: center; justify-content: center; }

.stack-philatelica { aspect-ratio: 4 / 3; }
.stack-philatelica .layer-1 { background: #1E3A5F; transform: rotate(-4deg); }
.stack-philatelica .layer-2 { background: #CFA152; transform: rotate(2deg); }
.stack-philatelica .front img { max-width: 65%; max-height: 65%; }
.stack-philatelica .front { padding: 36px; }

.stack-artifact { aspect-ratio: 1174 / 649; }
.stack-artifact .layer-1 { background: #B0202F; transform: rotate(3deg); }
.stack-artifact .layer-2 { background: #CFA152; transform: rotate(-2deg); }
.stack-artifact .front { padding: 12px; }
.stack-artifact .front img { width: 100%; height: 100%; object-fit: cover; }

.stack-bszt { aspect-ratio: 4 / 3; }
.stack-bszt .layer-1 { background: #B0202F; transform: rotate(-3deg); }
.stack-bszt .layer-2 { background: #1E3A5F; transform: rotate(2deg); }

/* Member login notice */
.member-notice { width: 100%; }
.member-notice .wrap { padding: 56px 32px; }
.member-notice-box {
  background: #F1EADA; border: 1px solid #CFA152; padding: 40px 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.member-notice h2 { font-size: 23px; color: #1E3A5F; font-weight: 700; margin-bottom: 8px; }
.member-notice p { font-size: 15px; color: #4a3a1a; max-width: 460px; line-height: 1.65; margin: 0; }

/* Footer */
.site-footer { width: 100%; background: #152C48; border-top: 3px solid #CFA152; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 56px 32px 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .mark { background: #F9F5EF; padding: 3px 4px; flex-shrink: 0; }
.footer-brand .mark img { height: 28px; width: auto; }
.footer-brand .name { font-family: var(--font-head, "Playfair Display", Georgia, serif); font-weight: 700; font-size: 19px; color: #F9F5EF; }
.footer-blurb { font-size: 14px; line-height: 1.7; color: #a8b7c8; max-width: 260px; margin-bottom: 18px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 32px; height: 32px; border-radius: 0; border: 1px solid #3a5470;
  display: flex; align-items: center; justify-content: center; color: #CFA152; font-size: 13px; font-weight: 700;
}
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #CFA152; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 14px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links span { color: #E7DFC9; }
.footer-links a:hover { color: #CFA152; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 32px; border-top: 1px solid #263f5c; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom .copy { font-size: 13px; color: #8a9bb0; }
.footer-bottom .legal { display: flex; gap: 16px; font-size: 13px; }
.footer-bottom .legal span { color: #E7DFC9; opacity: .65; }
.footer-bottom .legal a { color: #E7DFC9; }
.footer-bottom .legal a:hover { color: #CFA152; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap,
  .news-grid,
  .goals-grid,
  .feature-grid { grid-template-columns: 1fr !important; }
  .goals-grid li + li { border-left: none; padding-left: 0; margin-top: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .primary-nav ul { display: none; }
  .hero h1 { font-size: 36px; }
}

/* ===================== Inner pages / archives / singles ===================== */

.page-hero { width: 100%; background: #F1EADA; border-top: 2px solid #1E3A5F; }
.page-hero .wrap { padding: 44px 32px 40px; }
.page-hero h1 { font-size: 36px; color: #1E3A5F; font-weight: 700; }
.page-hero .rule-gold { margin-top: 16px; }

.content-wrap { width: 100%; }
.content-wrap .wrap { max-width: 1200px; padding: 48px 32px 72px; }   /* same width as the header (logo ... ALAPÍTVA 1989) - was 860px, widened 2026-10-12 */
.content-wrap.wide .wrap { max-width: 1200px; }

.entry-content { font-size: 16px; line-height: 1.8; color: #333333; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2 { font-size: 24px; color: #1E3A5F; margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: 19px; color: #1E3A5F; margin: 1.4em 0 .5em; }
.entry-content a { text-decoration: underline; }
.entry-content img { height: auto; margin: 1em 0; border: 1px solid #e6ddc9; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

/* Archive grids (Panteon / Esemény / Archívum dokumentum) */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.archive-card { background: #ffffff; border: 1px solid #e6ddc9; border-top: 4px solid #CFA152; padding: 24px 22px; }
.archive-card .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid #e6ddc9; margin-bottom: 16px; background: #F1EADA; }
.archive-card h3 { font-size: 18px; color: #1E3A5F; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.archive-card h3 a { color: inherit; text-decoration: none; }
.archive-card h3 a:hover { color: #B0202F; }
.archive-card .meta { font-size: 12px; font-weight: 700; letter-spacing: .07em; color: #B0202F; text-transform: uppercase; margin-bottom: 10px; }
.archive-card p { font-size: 14px; line-height: 1.6; color: #333333; margin: 0; }

/* Document list (Archívum dokumentum) */
.doc-list { margin-top: 40px; border-top: 1px solid #e6ddc9; }
.doc-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e6ddc9; }
.doc-row .doc-icon { flex-shrink: 0; color: #1E3A5F; }
.doc-row .doc-title { flex: 1; font-size: 15px; font-weight: 600; color: #333333; }
.doc-row .doc-title a { color: inherit; text-decoration: none; }
.doc-row .doc-title a:hover { color: #B0202F; }
.doc-row .doc-year { font-size: 13px; color: #5c6b7a; white-space: nowrap; }

.pagination { display: flex; gap: 12px; margin-top: 40px; font-size: 14px; font-weight: 700; }
.pagination a, .pagination span { color: #1E3A5F; }

/* Profile grid (Panteon single profiles) */
.profile-photos { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.profile-photos img { max-height: 220px; width: auto; border: 1px solid #e6ddc9; display: block; }
.profile-grid { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; font-size: 15px; line-height: 1.6; margin-bottom: 32px; }
.profile-grid dt { font-weight: 700; color: #1E3A5F; }
.profile-grid dd { margin: 0; color: #333333; }
.profile-bio { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e6ddc9; }
.profile-bio h3 { font-size: 18px; color: #1E3A5F; margin-bottom: 12px; }
.profile-bio p { margin-bottom: 14px; }

@media (max-width: 700px) {
  .profile-grid { grid-template-columns: 1fr; gap: 2px 0; }
  .profile-grid dt { margin-top: 10px; }
}

@media (max-width: 900px) {
  .archive-grid { grid-template-columns: 1fr; }
}

/* Galéria (single-galeria.php + lightbox.js) */
.gallery-intro { max-width: 760px; margin-bottom: 32px; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gallery-grid li { margin: 0; }
.gallery-grid a { display: block; border: 1px solid #e6ddc9; background: #fff; }
.gallery-grid img { display: block; width: 100%; height: 170px; object-fit: cover; transition: opacity .15s; }
.gallery-grid a:hover img, .gallery-grid a:focus img { opacity: .85; }
.gallery-fit-contain img { object-fit: contain; height: 230px; padding: 6px; }
.gallery-cap { display: block; font-size: 12px; line-height: 1.4; color: #5c6b7a; margin-top: 6px; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 25, 40, .93); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; color: #F9F5EF; }
.lb-fig img { max-width: 92vw; max-height: 80vh; object-fit: contain; background: #fff; }
.lb-fig figcaption { font-size: 14px; margin-top: 10px; line-height: 1.5; }
.lb-pdf { color: #CFA152; margin-left: 10px; }
.lb-count { display: block; font-size: 12px; opacity: .7; margin-top: 4px; }
.lb button { position: absolute; background: none; border: 0; color: #F9F5EF; cursor: pointer; font-size: 44px; line-height: 1; padding: 12px 18px; }
.lb button:hover, .lb button:focus { color: #CFA152; }
.lb-close { top: 6px; right: 10px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-grid img { height: 130px; } }

/* Philatelica archive: issue table (new series) + year rows (old series) */
.issue-table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 14px; margin: 16px 0 8px; }
.issue-table th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5c6b7a; border-bottom: 2px solid #1E3A5F; padding: 8px 10px; }
.issue-table td { padding: 8px 10px; border-bottom: 1px solid #e6ddc9; }
.issue-table td:first-child { font-weight: 700; color: #1E3A5F; white-space: nowrap; width: 90px; }
.issue-none { color: #b8b09e; }
.issue-years { margin-top: 16px; max-width: 640px; border-top: 1px solid #e6ddc9; }
.issue-year { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #e6ddc9; font-size: 14px; }
.issue-year .y { font-weight: 700; color: #1E3A5F; width: 56px; flex-shrink: 0; }
.issue-year a { display: inline-block; padding: 2px 11px; border: 1px solid #e6ddc9; background: #fff; color: #1E3A5F; text-decoration: none; font-weight: 600; }
.issue-year a:hover, .issue-year a:focus { border-color: #B0202F; color: #B0202F; }

/* Gallery sections + letter index (forgery catalogue, grouped archives) */
.gallery-grid li.gallery-section { grid-column: 1 / -1; margin-top: 18px; }
.gallery-grid li.gallery-section:first-child { margin-top: 0; }
.gallery-grid li.gallery-section h3 { font-size: 18px; color: #1E3A5F; border-bottom: 1px solid #e6ddc9; padding-bottom: 6px; margin: 0; scroll-margin-top: 20px; }
.gallery-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; }
.gallery-index a { display: inline-block; min-width: 34px; text-align: center; padding: 4px 10px; border: 1px solid #e6ddc9; background: #fff; color: #1E3A5F; text-decoration: none; font-weight: 700; font-size: 14px; }
.gallery-index a:hover, .gallery-index a:focus { border-color: #B0202F; color: #B0202F; }


/* ---- Hírek: category filter + card meta ---- */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.news-filter a { display: inline-block; padding: 6px 13px; border: 1px solid #e6ddc9; border-radius: 0; background: #fff; color: #1E3A5F; font-size: 13px; line-height: 1.4; }
.news-filter a:hover, .news-filter a.active { background: #1E3A5F; border-color: #1E3A5F; color: #F9F5EF; }
.news-filter .n { margin-left: 6px; font-size: 11px; opacity: .65; }
.card-meta { font-size: 12px; letter-spacing: .03em; color: #8a8272; margin: 0 0 8px; }
.card-meta a { color: #B0202F; }
.page-hero .card-meta { color: #8a8272; margin-bottom: 14px; font-size: 13px; }
.page-hero .card-meta a { color: #B0202F; text-decoration: underline; }
.entry-content p.nl-button { margin: 18px 0; }
.entry-content a.btn-solid { color: #F9F5EF; text-decoration: none; }
.entry-content p.nl-source { margin-top: 28px; padding-top: 14px; border-top: 1px solid #e6ddc9; font-size: 14px; color: #5c6b7a; }

/* ---- Phase 0 (2026-10-13): mobile menu, header search, accessible dropdowns ---- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.util-search { display: flex; align-items: center; margin-left: auto; margin-right: 18px; }
.util-search input[type=search] { width: 150px; background: #1E3A5F; color: #F9F5EF; border: 1px solid #2f4d73; border-right: 0; padding: 4px 9px; font-size: 13px; border-radius: 0; transition: width .2s; }
.util-search input[type=search]::placeholder { color: #8fa3b8; }
.util-search input[type=search]:focus { width: 210px; outline: 2px solid #CFA152; outline-offset: -1px; }
.util-search button { background: #2f4d73; color: #F9F5EF; border: 1px solid #2f4d73; padding: 4px 8px; border-radius: 0; cursor: pointer; line-height: 0; }
.util-search button:hover { background: #CFA152; color: #152C48; }
.primary-nav li.is-open > .sub-menu { display: block; }
.primary-nav a:focus-visible, .util-search button:focus-visible, .nav-toggle:focus-visible { outline: 2px solid #CFA152; outline-offset: 2px; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; color: #F9F5EF; font: 600 15px/1 Arial, sans-serif; padding: 14px 0; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: #F9F5EF; content: ""; position: relative; }
.nav-toggle .bars::before { position: absolute; top: -6px; } .nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); } .nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav ul, .primary-nav > .wrap > ul { display: none; }
  .primary-nav.open > .wrap > ul { display: flex; flex-direction: column; align-items: stretch; height: auto; gap: 0; padding: 0 0 12px; }
  .primary-nav > .wrap > ul > li { border-top: 1px solid #2f4d73; }
  .primary-nav > .wrap > ul > li > a { display: flex; justify-content: space-between; padding: 13px 0; font-size: 15px; }
  .primary-nav li.push-right { margin-left: 0; }
  .primary-nav .sub-menu { position: static; display: none; box-shadow: none; border-top: 0; background: transparent; padding: 0 0 8px 14px; min-width: 0; }
  .primary-nav li:hover > .sub-menu { display: none; }                 /* no hover on touch: tap to open */
  .primary-nav li.is-open > .sub-menu { display: block; }
  .primary-nav .sub-menu li { padding: 0; }
  .primary-nav .sub-menu a { white-space: normal; padding: 8px 0; }
  .utility-bar .wrap { flex-wrap: wrap; gap: 8px; }
  .util-search { margin: 0; order: 3; width: 100%; } .util-search input[type=search], .util-search input[type=search]:focus { width: 100%; flex: 1; }
  .brand-name { font-size: 22px; } .site-header .wrap { padding: 16px 20px; } .founded { display: none; }
}

/* search results, search form, 404 */
.page-search { display: flex; gap: 0; max-width: 560px; margin: 0 0 32px; }
.page-search input[type=search] { flex: 1; padding: 11px 14px; font-size: 16px; border: 1px solid #cdbf9c; border-right: 0; background: #fff; color: #333; }
.page-search button { border: 1px solid #1E3A5F; cursor: pointer; font-size: 14px; padding: 0 22px; }
.search-hit { background: #fff; border: 1px solid #e6ddc9; border-left: 4px solid #CFA152; padding: 16px 20px; margin-bottom: 14px; }
.search-hit h3 { font-size: 19px; margin: 6px 0 6px; color: #1E3A5F; } .search-hit h3 a { color: inherit; text-decoration: none; } .search-hit h3 a:hover { color: #B0202F; }
.search-hit p { margin: 0; font-size: 14px; line-height: 1.6; color: #333; }
.search-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-meta .tag { margin: 0; padding: 3px 9px; font-size: 10px; } .tag-type { background: #1E3A5F; } .tag-archive { background: #8a8272; }
.search-date { font-size: 12px; color: #8a8272; }
.quick-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.quick-links li { padding: 6px 0; border-bottom: 1px solid #e6ddc9; }
.stack-artifact.dyn .front { background: #fff; } .stack-artifact.dyn .front img { object-fit: contain; } .stack-artifact.dyn .front a { display: block; width: 100%; height: 100%; }
.member-notice-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.member-notice-actions .link-arrow { font-size: 14px; }

/* ---- Phase 1: news rows, year bar, archive box ---- */
.news-rows { border-top: 1px solid #e6ddc9; }
.news-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: baseline; padding: 11px 4px; border-bottom: 1px solid #e6ddc9; }
.news-row .d { font-size: 13px; color: #8a8272; white-space: nowrap; }
.news-row .t { font-size: 16px; font-weight: 600; color: #1E3A5F; text-decoration: none; }
.news-row .t:hover { color: #B0202F; }
.news-row .c { font-size: 12px; color: #8a8272; text-align: right; }
@media (max-width: 700px) { .news-row { grid-template-columns: 1fr; gap: 2px; } .news-row .c { text-align: left; } }
.news-filter.year-bar a { border-style: dashed; }
.news-filter.year-bar a.active { border-style: solid; }
.news-archive-box { margin-top: 56px; padding: 28px 30px; background: #fff; border: 1px solid #e6ddc9; border-left: 4px solid #CFA152; }
.news-archive-box h2 { font-size: 22px; color: #1E3A5F; margin: 0 0 8px; }
.news-archive-box p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #333; }
.news-archive-box .news-filter { margin-bottom: 14px; }
.news-archive-box .small-note { font-size: 13px; color: #8a8272; margin: 0; }

/* ---- A hét műtárgya (column page) ---- */
.column-invite { background: #fff; border: 1px solid #e6ddc9; border-left: 4px solid #B0202F; padding: 14px 20px; margin: 0 0 34px; font-size: 15px; line-height: 1.6; }
.artifact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.artifact-card { background: #fff; border: 1px solid #e6ddc9; border-top: 4px solid #B0202F; display: flex; flex-direction: column; }
.artifact-card .pic { display: flex; align-items: center; justify-content: center; background: #F6F0E3; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid #e6ddc9; }
.artifact-card .pic img { width: 100%; height: 100%; object-fit: contain; margin: 0; border: 0; }
.artifact-card .txt { padding: 16px 20px 20px; }
.artifact-card .kicker { font-size: 12px; font-weight: 700; letter-spacing: .07em; color: #B0202F; margin-bottom: 6px; }
.artifact-card h3 { font-size: 19px; color: #1E3A5F; margin: 0 0 8px; line-height: 1.3; } .artifact-card h3 a { color: inherit; text-decoration: none; } .artifact-card h3 a:hover { color: #B0202F; }
.artifact-card p { font-size: 14px; line-height: 1.6; color: #333; margin: 0; }
@media (max-width: 900px) { .artifact-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 600px) { .artifact-grid { grid-template-columns: 1fr; } }
.back-link { display: inline-block; margin: 0 0 18px; font-size: 14px; color: #B0202F; }

/* ---- collapsible blocks (native <details>) ---- */
details.fold { background: #fff; border: 1px solid #e6ddc9; margin: 0 0 10px; }
details.fold > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 20px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "▸"; color: #B0202F; margin-right: 12px; transition: transform .15s; display: inline-block; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > summary:hover { background: #F9F5EF; }
details.fold .fold-title { font-family: var(--font-head, "Playfair Display", Georgia, serif); font-size: 20px; font-weight: 700; color: #1E3A5F; flex: 1; }
details.fold .fold-count { font-size: 13px; color: #8a8272; white-space: nowrap; }
details.fold[open] > summary { border-bottom: 1px solid #e6ddc9; }
details.fold > .doc-list, details.fold > .fold-body { padding: 6px 20px 14px; }
.fold-section { font-size: 24px; color: #1E3A5F; margin: 40px 0 6px; }
.fold-note { margin: 0 0 14px; font-size: 14px; color: #5c6b7a; }

/* Panteon A-Z bar + folds inside page content */
.az-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; margin: 0 0 24px; background: #F9F5EF; border-bottom: 1px solid #e6ddc9; }
.az-bar a { min-width: 34px; text-align: center; padding: 5px 8px; border: 1px solid #e6ddc9; background: #fff; color: #1E3A5F; font-weight: 700; font-size: 14px; text-decoration: none; }
.az-bar a:hover { background: #1E3A5F; color: #F9F5EF; border-color: #1E3A5F; }
.entry-content details.fold { margin: 14px 0; }
.entry-content details.fold > summary { padding: 14px 20px; }
.entry-content details.fold .fold-title { margin: 0; }
.entry-content details.fold > .fold-body { padding: 18px 22px 22px; overflow-x: auto; }
html { scroll-padding-top: 70px; }

/* ---- Események ---- */
.rv { display: grid; grid-template-columns: 190px 1fr; gap: 22px; padding: 14px 0; border-bottom: 1px solid #e6ddc9; }
details.fold .fold-body .rv:last-child { border-bottom: 0; }
.rv-date { font-weight: 700; color: #B0202F; font-size: 14px; letter-spacing: .02em; }
.rv h3 { font-size: 18px; margin: 0 0 6px; color: #1E3A5F; line-height: 1.35; } .rv h3 a { color: inherit; text-decoration: none; } .rv h3 a:hover { color: #B0202F; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #5c6b7a; }
.rv-meta .tag { margin: 0; padding: 3px 9px; font-size: 10px; }
.rv-note { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #5c6b7a; }
.rv-up { background: #fff; border: 1px solid #e6ddc9; border-left: 4px solid #B0202F; padding: 16px 20px; margin-bottom: 12px; }
@media (max-width: 700px) { .rv { grid-template-columns: 1fr; gap: 4px; } }
.home-events { margin-top: 40px; }
.home-events h3 { font-size: 22px; color: #1E3A5F; margin: 0 0 14px; }
.home-events .rv-up { margin-bottom: 8px; }

/* no rounded corners anywhere (buttons, chips, inputs, icons) - decided 2026-10-14 */
button, input, select, textarea, .btn-solid, .btn-line, .news-filter a, .az-bar a, .tag, .social-row a { border-radius: 0 !important; }

/* ---- breadcrumbs ---- */
.breadcrumbs { width: 100%; background: #F9F5EF; border-bottom: 1px solid #e6ddc9; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 9px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 13px; line-height: 1.5; color: #5c6b7a; }
.breadcrumbs li + li::before { content: "›"; margin: 0 9px; color: #b8ab8a; }
.breadcrumbs a { color: #1E3A5F; text-decoration: none; } .breadcrumbs a:hover { color: #B0202F; text-decoration: underline; }
.breadcrumbs .crumb-section { color: #8a8272; }
.breadcrumbs li[aria-current="page"] { color: #333; font-weight: 600; }

/* ---- previous / next, related ---- */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid #e6ddc9; }
.post-nav .pn { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; background: #fff; border: 1px solid #e6ddc9; text-decoration: none; color: #1E3A5F; }
.post-nav .pn:hover { border-color: #B0202F; } .post-nav .pn:hover strong { color: #B0202F; }
.post-nav .pn-new { text-align: right; } .post-nav .pn-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8272; }
.post-nav strong { font-size: 16px; line-height: 1.35; } .post-nav em { font-size: 12px; font-style: normal; color: #8a8272; }
@media (max-width: 700px) { .post-nav { grid-template-columns: 1fr; } .post-nav .pn-new { text-align: left; } }
.related-news { margin-top: 36px; } .related-news h2 { font-size: 21px; color: #1E3A5F; margin: 0 0 10px; }
.post-more { margin: 16px 0 0; font-size: 14px; } .post-more a { color: #B0202F; }

/* ---- Tagjaink / Panteon profile ---- */
.life-line { margin: 8px 0 0; font-size: 17px; color: #5c6b7a; letter-spacing: .02em; }
.entry-profile-link { margin: 6px 0 0; font-size: 14px; } .entry-profile-link a { color: #B0202F; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member-card { background: #fff; border: 1px solid #e6ddc9; border-top: 4px solid #CFA152; padding: 16px 18px 18px; }
.member-card .mc-photo { display: block; aspect-ratio: 1 / 1; background: #F1EADA; margin-bottom: 12px; overflow: hidden; }
.member-card .mc-photo img { width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; }
.member-card h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.3; color: #1E3A5F; } .member-card h3 a { color: inherit; text-decoration: none; } .member-card h3 a:hover { color: #B0202F; }
.member-card p { margin: 0 0 4px; font-size: 13px; color: #5c6b7a; line-height: 1.5; } .member-card .mc-honours { color: #333; }
@media (max-width: 1000px) { .member-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 700px) { .member-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---- Home page re-layout (2026-10-14): current first, archive doors, compact identity blocks ---- */
.hero-compact .wrap { padding: 38px 32px; grid-template-columns: 1.5fr 0.5fr; gap: 40px; }
.hero-compact h1 { font-size: 40px; margin-bottom: 10px; } .hero-compact .hero-subhead { margin-bottom: 14px; font-size: 16px; }
.hero-compact .hero-body { font-size: 16px; line-height: 1.65; margin-bottom: 22px; max-width: 720px; } .hero-compact .hero-eyebrow { margin-bottom: 12px; } .hero-compact .hero-rule { margin-bottom: 16px; }
.hero-compact .hero-specimen { padding: 14px 14px 18px; } .hero-compact .hero-specimen img { width: 150px; }
.live { padding: 44px 0 52px; }
.live-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: start; }
.live .section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.live .section-head h2 { font-size: 26px; margin: 0; }
.live-item { padding: 14px 0 16px; border-bottom: 1px solid #e6ddc9; } .live-item:first-child { padding-top: 4px; }
.live-item h3 { font-size: 19px; line-height: 1.32; margin: 2px 0 6px; } .live-item h3 a { color: #1E3A5F; text-decoration: none; } .live-item h3 a:hover { color: #B0202F; }
.live-item p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #333; }
.live-events { background: #fff; border: 1px solid #e6ddc9; border-top: 4px solid #B0202F; padding: 22px 24px 8px; }
.ev-mini { padding: 12px 0 14px; border-bottom: 1px solid #efe7d4; } .ev-mini:last-child { border-bottom: 0; }
.ev-date { font-size: 13px; font-weight: 700; color: #B0202F; letter-spacing: .02em; }
.ev-title { font-size: 16px; line-height: 1.35; font-weight: 600; margin-top: 2px; } .ev-title a { color: #1E3A5F; text-decoration: none; } .ev-title a:hover { color: #B0202F; }
.ev-place { font-size: 13px; color: #5c6b7a; margin-top: 2px; }
.doors { background: #F1EADA; padding: 46px 0 52px; }
.doors .section-head h2 { font-size: 26px; }
.door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.door { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 18px; background: #fff; border: 1px solid #e6ddc9; border-left: 4px solid #1E3A5F; text-decoration: none; color: #333; }
.door:hover { border-left-color: #B0202F; box-shadow: 0 6px 16px rgba(30,58,95,.12); }
.door strong { font-family: var(--font-head, "Playfair Display", Georgia, serif); font-size: 20px; color: #1E3A5F; } .door .d-text { font-size: 14px; line-height: 1.55; flex: 1; }
.door .d-count { font-size: 13px; font-weight: 700; color: #B0202F; margin-top: 4px; }
.duo { padding: 48px 0 20px; } .duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo-card { background: #fff; border: 1px solid #e6ddc9; border-top: 4px solid #1E3A5F; padding: 20px 26px 24px; position: relative; }
.duo-card .tag { margin-bottom: 14px; }
.duo-body { display: flex; gap: 22px; align-items: flex-start; } .duo-img { width: 120px; height: auto; flex-shrink: 0; border: 1px solid #e6ddc9; margin: 0; } .duo-seal { flex-shrink: 0; }
.duo-card h3 { font-size: 22px; color: #1E3A5F; margin: 0 0 4px; } .duo-card .lede { font-size: 15px; color: #5c6b7a; margin: 0 0 10px; } .duo-card p { font-size: 14.5px; line-height: 1.6; margin: 0 0 12px; }
.goals-compact .wrap { padding-top: 40px; padding-bottom: 44px; }
.muted-note { color: #5c6b7a; font-style: italic; }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; gap: 32px; } .door-grid { grid-template-columns: repeat(2, 1fr); } .duo-grid { grid-template-columns: 1fr; } .hero-compact .wrap { grid-template-columns: 1fr; } .hero-compact .hero-figure { display: none; } }
@media (max-width: 600px) { .door-grid { grid-template-columns: 1fr; } .duo-body { flex-direction: column; } .hero-compact h1 { font-size: 32px; } }
@media (max-width: 600px) { .hero-compact .hero-body { display: none; } .hero-compact .wrap { padding: 26px 20px; } .live { padding-top: 30px; } .live-grid { gap: 26px; } }

/* BSZT / Bélyegvizsgálat merged page (2026-10-15): jump bar + experts table */
.jumpbar { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 26px; }
.jumpbar a { display: inline-block; padding: 7px 14px; border: 1px solid #1E3A5F; color: #1E3A5F; font-size: 14px; text-decoration: none; background: #fff; }
.jumpbar a:hover { background: #1E3A5F; color: #fff; }
.bszt-table { width: 100%; border-collapse: collapse; margin: 14px 0 8px; font-size: 15px; background: #fff; }
.bszt-table th, .bszt-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid #e6ddc9; }
.bszt-table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5c6b7a; border-bottom: 2px solid #1E3A5F; }
.bszt-table tbody th { width: 26%; color: #1E3A5F; font-weight: 700; }
.bszt-table ul { margin: 0; padding-left: 18px; }
.bszt-table li { margin: 0 0 4px; }
.bszt-cat { color: #5c6b7a; font-size: 13px; font-style: italic; }
.bszt-note { color: #5c6b7a; font-size: 13px; font-weight: 400; font-style: italic; }
.bszt-pending { color: #8a8272; font-style: italic; }
@media (max-width: 700px) {
  .bszt-table thead { display: none; }
  .bszt-table, .bszt-table tbody, .bszt-table tr, .bszt-table th, .bszt-table td { display: block; width: 100% !important; }
  .bszt-table tr { border-bottom: 2px solid #e6ddc9; padding: 8px 0; }
  .bszt-table th, .bszt-table td { border: 0; padding: 4px 12px; }
}

/* Tagság split (2026-10-15): fee table + register name links */
.fee-table { width: 100%; max-width: 640px; border-collapse: collapse; margin: 14px 0 12px; font-size: 16px; background: #fff; }
.fee-table th, .fee-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e6ddc9; }
.fee-table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5c6b7a; border-bottom: 2px solid #1E3A5F; }
.fee-table tbody th { color: #1E3A5F; width: 30%; }
.entry-content table a[href*="/tagjaink/"], .entry-content table a[href*="/panteon/"] { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

/* Section tabs + call-to-action block + soft note (2026-10-15): navigation lives in the UI, not in sentences */
.section-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 22px; border-bottom: 1px solid #d9cfba; }
.section-tabs a { padding: 10px 20px; color: #1E3A5F; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; }
.section-tabs a:hover { background: #fff; }
.section-tabs a.is-current { background: #F9F5EF; border-color: #d9cfba; border-bottom: 1px solid #F9F5EF; color: #B0202F; }
.cta-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; background: #fff; border: 1px solid #e6ddc9; border-left: 4px solid #B0202F; padding: 22px 26px; margin: 0 0 8px; }
.cta-block h2 { margin: 0 0 6px; font-size: 24px; }
.cta-block p { margin: 0; }
.entry-content a.btn-solid.cta-btn { text-decoration: none; white-space: nowrap; }
.soft-note { font-size: 14px; color: #5c6b7a; border-left: 3px solid #CFA152; padding: 2px 0 2px 14px; margin: 18px 0; }

/* floating back-to-top + "Kapcsolódó" cards (2026-10-15) */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; background: #1E3A5F; color: #F9F5EF; border: 0; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.to-top.show { opacity: .92; pointer-events: auto; } .to-top:hover { background: #B0202F; }
.related { margin-top: 44px; }
.related h2 { font-size: 20px; margin: 0 0 14px; }
.related-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related-cards a { display: block; background: #fff; border: 1px solid #e6ddc9; border-left: 4px solid #CFA152; padding: 14px 18px; text-decoration: none; color: #1E3A5F; }
.related-cards a:hover { border-left-color: #B0202F; }
.related-cards strong { display: block; font-size: 16px; margin-bottom: 3px; }
.related-cards span { font-size: 14px; color: #5c6b7a; }
.entry-content .related-cards a { text-decoration: none; }

/* Díjak page: sections */
.award { margin-top: 52px; padding-top: 6px; border-top: 1px solid #e6ddc9; }
.award.first { margin-top: 28px; border-top: 0; }
.award > h2 { margin-top: 18px; }

/* embedded gallery inside a page */
.entry-content .gallery-grid.embedded { max-width: none; margin: 18px 0; }
.entry-content details.fold > .fold-body .gallery-index { margin-bottom: 14px; }

/* utility bar: social + e-mail icons right of the search box; right edge = content edge (2026-10-30) */
.util-social { display: flex; align-items: center; gap: 14px; }
.util-social a { color: #CFA152; line-height: 0; display: inline-block; }
.util-social a:hover { color: #F9F5EF; }
.util-social a:focus-visible { outline: 2px solid #CFA152; outline-offset: 3px; }
@media (max-width: 600px) { .util-social { order: 2; margin-left: auto; } .util-search { order: 3; } }

.column-intro { max-width: none; font-size: 16px; line-height: 1.7; margin: 0 0 22px; color: #333; }

/* Díjak: laureate with a tidy photo strip (2026-10-30) */
.laureate { margin-top: 20px; }
.laureate-head { margin: 0 0 12px; font-size: 17px; }
.laureate-head .year { font-weight: 700; color: #B0202F; margin-right: 10px; }
.laureate-photos { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; }
.laureate-photos figure { display: table; margin: 0; }
.laureate-photos img { height: 170px; width: auto; border: 1px solid #e6ddc9; display: block; }
.laureate-photos figcaption { display: table-caption; caption-side: bottom; font-size: 12px; line-height: 1.4; color: #8a8272; padding-top: 5px; }

/* Hamisítások: example images in one consistent layout (2026-10-30) */
.forgery-figs { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: flex-start; margin: 20px 0; }
.forgery-figs img { max-width: 340px; max-height: 240px; width: auto; height: auto; border: 1px solid #e6ddc9; }

/* Filatéliai Könyvtár: 2 + 3 grid, smaller boxes, thumbnails fitted not cropped (2026-10-30) */
.library-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 32px; }
.library-grid .archive-card { grid-column: span 2; padding: 18px 18px 20px; }
.library-grid .archive-card:nth-child(-n+2) { grid-column: span 3; }
.library-grid .archive-card .thumb { width: 100%; height: 150px; aspect-ratio: auto; object-fit: contain; background: #fff; margin-bottom: 14px; }
.library-grid .archive-card h3 { font-size: 17px; }
@media (max-width: 800px) { .library-grid { grid-template-columns: 1fr; } .library-grid .archive-card, .library-grid .archive-card:nth-child(-n+2) { grid-column: auto; } }

/* Krónika: timeline + consistent images (2026-10-30) */
.timeline { margin: 30px 0 44px; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 0 30px; padding-bottom: 28px; }
.tl-when { text-align: right; font-weight: 700; font-size: 15px; color: #B0202F; padding-top: 3px; line-height: 1.3; }
.tl-body { position: relative; border-left: 3px solid #CFA152; padding: 0 0 4px 30px; }
.tl-body::before { content: ""; position: absolute; left: -10px; top: 6px; width: 14px; height: 14px; background: #F9F5EF; border: 3px solid #B0202F; border-radius: 50%; }
.tl-title { font-size: 20px; color: #1E3A5F; margin: 0 0 10px; }
.tl-body p { margin: 0 0 12px; line-height: 1.7; }
.chronicle img:not([src*="kereszt"]) { max-height: 170px !important; width: auto !important; height: auto !important; max-width: 100%; border: 1px solid #e6ddc9; }
@media (max-width: 700px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } .tl-when { text-align: left; padding-left: 33px; } }

/* Bemutatók: prose entries as scannable rows (2026-10-30) */
.doc-row.prose { align-items: flex-start; padding: 14px 4px; }
.doc-row.prose .doc-title { font-weight: 400; font-size: 15px; line-height: 1.65; }
.doc-row.prose .doc-title a { font-weight: 600; color: #1E3A5F; text-decoration: underline; text-decoration-color: #CFA152; text-underline-offset: 3px; }
.doc-row.prose .doc-title a:hover { color: #B0202F; }

/* Tagnévsor: wide register table (2026-10-30) */
.register-table:has(th:nth-child(7)) { min-width: 1120px; }
.register-table:has(th:nth-child(7)) thead th { white-space: nowrap; }
.register-table:has(th:nth-child(7)) td:nth-child(4) { white-space: nowrap; }
.register-table:has(th:nth-child(7)) td:nth-child(7) { min-width: 240px; }
.register-table:has(th:nth-child(7)) td:nth-child(8) { min-width: 130px; }

/* Kínálatunk: compact plaque / membership-stamp cards (2026-10-30) */
.archive-grid.compact-cards { grid-template-columns: repeat(auto-fill, 190px); gap: 16px; justify-content: start; }
.archive-grid.compact-cards .archive-card { padding: 12px; }
.archive-grid.compact-cards .archive-card .thumb { aspect-ratio: auto !important; height: 130px; width: 100%; object-fit: contain; background: #fff; margin-bottom: 8px; }
.archive-grid.compact-cards .archive-card h3 { font-size: 12.5px !important; line-height: 1.35; }
.archive-grid.compact-cards.stamps { grid-template-columns: repeat(auto-fill, 230px); }
.archive-grid.compact-cards.stamps .archive-card .thumb { height: auto; max-height: 90px; }

/* inline content links: dark blue, bold, gold underline (like the Bemutatók rows) - everywhere in the content area */
.content-wrap :is(p, li):not(.jumpbar):not(.post-more):not(.entry-profile-link):not(.soft-note) a:not([class]) { color: #1E3A5F; font-weight: 600; text-decoration: underline; text-decoration-color: #CFA152; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.content-wrap :is(p, li):not(.jumpbar):not(.post-more):not(.entry-profile-link):not(.soft-note) a:not([class]):hover { color: #B0202F; }
.content-wrap .doc-row .doc-title a { text-decoration: none; }

/* Hírek category chips: rows fill the full page width, like the card grid (2026-10-30) */
.news-filter.filter-wide a { flex: 1 1 auto; text-align: center; }

/* Krónika: photo rows (2026-10-30) */
.chron-figs { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; margin: 20px 0; }
.chron-figs figure { display: table; margin: 0; }
.chron-figs img { display: block; }
.chron-figs figcaption { display: table-caption; caption-side: bottom; font-size: 12px; line-height: 1.4; font-style: italic; color: #5c6b7a; padding-top: 5px; }

/* Hírek chips: 4 per row (8 chips = 2 x 4) */
.news-filter.filter-wide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.news-filter.filter-wide a { text-align: center; }
@media (max-width: 700px) { .news-filter.filter-wide { grid-template-columns: repeat(2, 1fr); } }
/* flags in the register */
img.flag { display: inline-block; width: 20px; height: 15px; vertical-align: middle; margin: 0 5px 0 0; border: 1px solid #d8cfba; }
/* Tagnévsor: the register block is wider than the normal text column */
/* the register folds widen only when OPENED (closed they match the text column) */
.page-id-5545 details.fold.wide[open] { position: relative; width: min(1500px, calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
/* register: no line breaks in headers and the short columns */
.register-table th { white-space: nowrap; }
.register-table td:nth-child(-n+3) { white-space: nowrap; }
.register-table td:first-child { text-align: right; }
.news-filter a.chip-archive { background: #E8E0CC; border-color: #d3c8ad; color: #5c6b7a; }
.news-filter a.chip-archive:hover { background: #1E3A5F; border-color: #1E3A5F; color: #F9F5EF; }
