/* Dunaszerdahelyi Birkózó Klub — theme styles (from the dswrestling.sk redesign). */

:root {
    --ink: #141311;
    --ink-deep: #0C0B0A;
    --card: #1C1A17;
    --line: #2A2722;
    --cream: #F4F0E7;
    --paper: #F3EFE6;
    --gold: #D4A93C;
    --gold-light: #E9CF7A;
    --gold-dark: #8A6A16;
    --muted: #B9B2A3;
    --muted-2: #A39C8E;
    --muted-3: #8F887A;
    --soft: #D9D3C6;
    --stone: #6B6458;
    --border-light: #E2DCCF;
    --hair-light: #EEE8DC;
    --gray: #5C5649;
    --ink-soft: #2E2B26;
    --red: #B01E26;
    --blue: #1F4A9C;
    --error: #A31B22;
    --display: 'Big Shoulders Display', sans-serif;
    --body: 'Barlow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); min-width: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; }
button { font-family: var(--body); }
.light a:hover { color: var(--gold-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--ink); border-radius: 4px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.display { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.02; }
.h1-xl { font-weight: 900; font-size: clamp(56px, 8vw, 120px); }
.h1-page { font-weight: 900; font-size: clamp(64px, 9vw, 128px); }
.h2 { font-size: clamp(40px, 5vw, 64px); line-height: .95; }
.h2-lg { font-size: clamp(44px, 5.5vw, 72px); }
.gold { color: var(--gold); }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.light .eyebrow { color: var(--gold-dark); }
.eyebrow-line { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.eyebrow-line::before { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); }
.lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--soft); }

/* Buttons */
.btn { display: inline-flex; gap: 10px; align-items: center; padding: 16px 28px; border-radius: 4px; font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; border: 0; cursor: pointer; line-height: 1.2; }
.btn svg { flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); filter: brightness(1.06); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { color: var(--gold-light); }
.btn-outline { border: 1.5px solid var(--stone); color: var(--paper); background: transparent; }
.btn-outline-dark { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark.thick { border-width: 2px; }
.btn-outline-dark:hover { color: var(--ink); background: rgba(20, 19, 17, .06); }
.btn-sm { padding: 14px 22px; font-size: 14px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; background: transparent; border: 1.5px solid var(--stone); color: var(--paper); }
.round-btn.filled { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.light .round-btn { border-color: var(--ink); color: var(--ink); }
.light .round-btn.filled { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.text-link { display: inline-flex; gap: 10px; align-items: center; align-self: flex-start; color: var(--gold-light); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; padding: 8px 0; border-bottom: 2px solid var(--gold); }

/* Utility bar + header */
.util-bar { background: var(--ink-deep); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.util-bar .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; }
.util-links { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.util-links a { display: flex; gap: 8px; align-items: center; }
.lang { display: flex; gap: 4px; }
.lang a { padding: 4px 10px; border-radius: 4px; font-weight: 700; letter-spacing: .06em; }
.lang a[aria-current] { background: var(--gold); color: var(--ink); }
.site-header { background: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 14px; align-items: center; }
.brand img { width: 56px; height: 68px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-title { font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; color: var(--paper); }
.brand-sub { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.main-nav > a { padding: 12px; }
.main-nav > a[aria-current] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.main-nav .nav-cta { margin-left: 10px; padding: 12px 20px; background: var(--gold); color: var(--ink); border-radius: 4px; font-weight: 700; }
.main-nav .nav-cta:hover { color: var(--ink); filter: brightness(1.06); }
.menu-toggle { display: none; }
@media (max-width: 760px) {
    /* Contact bar: one line — address, phone and e-mail as icon buttons, language switch. */
    .util-bar .wrap { flex-wrap: nowrap; gap: 12px; padding-top: 4px; padding-bottom: 4px; }
    .util-links { flex-wrap: nowrap; gap: 4px; min-width: 0; margin-left: -12px; }
    .util-links a { width: 44px; height: 44px; justify-content: center; }
    .util-links svg { width: 20px; height: 20px; }
    .util-addr span, .util-phone span, .util-mail span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .lang { flex-shrink: 0; }
    .lang a { padding: 4px 8px; }

    /* Header: smaller logo and name. */
    .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
    .brand { gap: 10px; }
    .brand img { width: 40px; height: 48px; flex-shrink: 0; }
    .brand-title { font-size: 21px; }
    .brand-sub { font-size: 12px; letter-spacing: .08em; margin-top: 3px; }
}
/* Logo + full menu need ~1175px; below that: menu button on the right, menu opens below. */
@media (max-width: 1180px) {
    .site-header .wrap { flex-wrap: wrap; gap: 0 12px; }
    .brand { min-width: 0; flex: 1 1 auto; }
    .brand-text { min-width: 0; }
    .menu-toggle { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--stone); border-radius: 4px; background: transparent; color: var(--paper); cursor: pointer; }
    .menu-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
    .menu-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .main-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
    .main-nav.open { display: flex; }
    .main-nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .main-nav > a[aria-current] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
    .main-nav .nav-cta { margin: 16px 0 4px; padding: 14px 20px; text-align: center; }
}
@media (max-width: 360px) {
    .brand-sub { font-size: 11px; letter-spacing: .04em; }
}

/* Sections */
.sec { padding-top: 96px; padding-bottom: 96px; }
.sec-104 { padding-top: 104px; padding-bottom: 104px; }
.light { background: var(--cream); color: var(--ink); }
.gold-sec { position: relative; background: var(--gold); color: var(--ink); overflow: hidden; }
.dots::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(20, 19, 17, .16) 1.2px, transparent 1.8px); background-size: 12px 12px; -webkit-mask-image: linear-gradient(115deg, transparent 20%, rgba(0, 0, 0, .35) 55%, #000 100%); mask-image: linear-gradient(115deg, transparent 20%, rgba(0, 0, 0, .35) 55%, #000 100%); }
.stripes::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 2px, transparent 2px, transparent 9px); }
.gold-sec > .wrap { position: relative; z-index: 1; }
.sec-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.slider-ctrl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.counter { min-width: 84px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .06em; }
.progress { position: relative; height: 3px; margin-top: 32px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress > span { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--gold); transition: width .25s ease; }
.light .progress { background: #D6CFBF; }
.light .progress > span { background: var(--ink); }
.track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px; }
.track::-webkit-scrollbar { display: none; }

/* Home hero */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-media { position: relative; }
.hero-media img { display: block; width: 100%; aspect-ratio: 5 / 2; min-height: 320px; max-height: 640px; object-fit: cover; object-position: center 30%; }
.hero-media::before { content: ""; position: absolute; inset: 0; background: rgba(20, 19, 17, .32); z-index: 1; }
.hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, rgba(20, 19, 17, 0) 0%, rgba(20, 19, 17, .85) 70%, var(--ink) 100%); z-index: 1; }
.hero-body { position: relative; z-index: 2; margin-top: -56px; }
.hero-body .wrap { padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.hero-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero-copy h1 { font-size: clamp(56px, 8vw, 112px); line-height: 1.04; letter-spacing: .01em; }
.hero-copy .lead { max-width: 620px; font-size: 19px; }
.hero-crest { width: 160px; height: 196px; object-fit: contain; filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .6)); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.facts.wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fact { background: var(--card); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 8px; }
.fact b { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--gold); }
.fact span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.two-col { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 88px; align-items: flex-start; }
.two-col > :first-child { flex: 1 1 380px; min-width: 0; }
.two-col > :last-child { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.65; color: var(--soft); }
.rich p { margin: 0 0 20px; }
.rich p:last-child { margin-bottom: 0; }

/* News cards */
.post-card { flex: 0 0 min(392px, 86%); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden; color: var(--ink); }
.light .post-card:hover { color: var(--gold-dark); }
.post-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--card); overflow: hidden; }
.post-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.photo-slot { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #1C1A17 0, #1C1A17 14px, #24211D 14px, #24211D 28px); color: var(--muted-3); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.photo-slot.light-slot { background: repeating-linear-gradient(135deg, #E9E3D6 0, #E9E3D6 14px, #E2DBCC 14px, #E2DBCC 28px); color: #7A7365; }
.tag { position: absolute; left: 16px; top: 16px; padding: 6px 10px; border-radius: 3px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: var(--gold); color: var(--ink); }
.post-card-body { flex-grow: 1; padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.post-card-num { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .1em; color: var(--gold-dark); }
.post-card h3 { margin: 0; flex-grow: 1; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.read-more { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* Join */
.join .wrap { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.join-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.join-copy .eyebrow-line { color: var(--ink); font-size: 14px; }
.join-copy .eyebrow-line::before { background: var(--ink); }
.join-copy h2 { font-weight: 900; font-size: clamp(52px, 7vw, 96px); }
.join-copy > p { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.55; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.steps li { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(20, 19, 17, .25); }
.step-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 22px; }
.step-text { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.5; }
.step-text b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.join-media { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; }
.join-media img { display: block; width: 100%; aspect-ratio: 4 / 5; min-height: 520px; max-height: 760px; object-fit: cover; object-position: 58% 70%; border-radius: 8px; box-shadow: 0 30px 60px rgba(20, 19, 17, .35); }
.schedule { position: relative; margin: -72px 24px 0; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 28px 28px 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 28px; box-shadow: 0 20px 40px rgba(20, 19, 17, .35); }
.schedule > div { display: flex; flex-direction: column; gap: 6px; }
.schedule-label { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.schedule-time { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; color: var(--gold-light); }
.schedule a { font-size: 16px; line-height: 1.5; }

/* Team band */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.group-card { padding: 28px; background: var(--card); border-radius: 6px; border-top: 3px solid var(--gold); display: flex; flex-direction: column; gap: 8px; }
.group-card.red { border-top-color: var(--red); }
.group-card.blue { border-top-color: var(--blue); }
.group-card b { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; }
.group-card span { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* Tax + supporters */
.tax { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: 40px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.tax > div { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tax b { font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; text-transform: uppercase; }
.tax > div > span { font-size: 17px; line-height: 1.55; color: var(--soft); }
.supporters { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sup-card { background: #fff; border: 1px solid var(--border-light); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); }
.sup-logo { height: 128px; padding: 20px 24px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--hair-light); }
.sup-logo img { width: 100%; max-width: 240px; height: 84px; object-fit: contain; }
.logo-slot { width: 100%; max-width: 200px; height: 72px; border: 1.5px dashed #CFC7B6; border-radius: 6px; display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted-3); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.sup-body { flex-grow: 1; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.sup-kind { font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.sup-name { font-weight: 700; font-size: 17px; line-height: 1.35; }
.sup-desc, .sup-note { font-size: 14px; line-height: 1.5; color: var(--gray); }
.sup-year { font-size: 13px; color: var(--gray); }
.sup-amount { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hair-light); display: flex; flex-direction: column; gap: 2px; }
.sup-amount b { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; white-space: nowrap; }
.sup-float { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 300px; max-width: calc(100vw - 40px); display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; background: #fff; color: var(--ink); border-radius: 10px; border-top: 3px solid var(--gold); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: transform .2s ease, box-shadow .2s ease; }
.sup-float:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 22px 48px rgba(0, 0, 0, .42); }
.sup-float-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.sup-float-logos { display: flex; gap: 14px; align-items: center; }
.sup-float-logos img { min-width: 0; height: 62px; object-fit: contain; }
.sup-float-logos img:first-child { flex: 0 1 auto; width: 176px; object-position: left center; }
.sup-float-logos img + i + img { flex: 0 0 auto; width: 66px; }
.sup-float-logos i { align-self: stretch; width: 1px; background: var(--border-light); }
@media (max-width: 600px) { .sup-float { width: 200px; padding: 10px 12px 12px; right: 12px; bottom: 12px; } .sup-float-logos img { height: 40px; } }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--muted); font-size: 15px; }
.footer-grid { padding-top: 72px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 12px; }
.footer-grid > div:first-child { gap: 16px; }
.footer-crest { width: 72px; height: 88px; object-fit: contain; }
.footer-title { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); margin-bottom: 4px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; }
.mono { font-family: ui-monospace, monospace; color: var(--paper); }
.footer-bottom { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; color: var(--muted-3); }

/* Sub-page hero */
.page-hero { position: relative; overflow: hidden; background: var(--ink); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .28; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, rgba(20, 19, 17, .85) 45%, rgba(20, 19, 17, .45) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 24px; }
.page-hero.plain .wrap { padding-top: 88px; padding-bottom: 72px; gap: 20px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted-2); }
.crumbs span:last-child { color: var(--gold-light); }
.page-hero .lead { max-width: 640px; }

/* About */
.founder { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.founder-photo { flex: 1 1 380px; min-width: 0; max-width: 480px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.founder-copy .eyebrow { margin: 0; }
.founder-copy .rich { font-size: 19px; line-height: 1.65; color: var(--ink-soft); }
.founder-copy .rich p { margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip-dark { padding: 10px 16px; background: var(--ink); color: var(--gold-light); border-radius: 4px; font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.era { display: flex; flex-wrap: wrap; gap: 24px 56px; padding: 40px 0; border-top: 1px solid var(--line); }
.era:last-child { border-bottom: 1px solid var(--line); }
.era-head { flex: 0 1 260px; min-width: 0; }
.era-range { display: block; font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-3); }
.era-title { display: block; margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.era ol { flex: 1 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.era li { display: flex; gap: 28px; }
.era-year { flex: 0 0 88px; font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1; color: var(--gold); }
.era-text { font-size: 17px; line-height: 1.6; color: var(--soft); }
.era-text strong { color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 600; }
.legend span { display: flex; gap: 8px; align-items: center; }
.medal { flex-shrink: 0; display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.medal.gold { background: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold-dark); }
.medal.silver { background: #C9CDD2; box-shadow: inset 0 0 0 1.5px #8C9198; }
.medal.bronze { background: #9A5B2A; box-shadow: inset 0 0 0 1.5px #6B3D19; }
.medallists { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.medallist { background: #fff; border: 1px solid var(--border-light); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.medallist-head { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.medallist h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.medallist-head span { flex-shrink: 0; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--gold-dark); }
.medallist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.medallist li { display: flex; gap: 10px; align-items: center; }
.medal-set { display: flex; gap: 3px; flex-shrink: 0; }
.badge-filled, .badge-outline { margin-top: auto; align-self: flex-start; padding: 6px 10px; border-radius: 3px; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.badge-filled { background: var(--ink); color: var(--gold-light); }
.badge-outline { border: 1.5px solid var(--ink); }
.trophy { border-radius: 8px; overflow: hidden; min-height: 260px; }
.trophy img { width: 100%; height: 100%; object-fit: cover; display: block; }
.motto .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.motto .wrap > span { font-weight: 700; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.motto blockquote { margin: 0; max-width: 1040px; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 6vw, 84px); line-height: 1.04; text-transform: uppercase; }
.motto .btn { margin-top: 16px; }

/* Team */
.team-hero .wrap { flex-direction: row; flex-wrap: wrap; gap: 40px 64px; align-items: flex-end; justify-content: space-between; padding-top: 112px; padding-bottom: 96px; }
.team-hero .hero-text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.stats { flex: 0 1 auto; margin: 0; display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: rgba(28, 26, 23, .8); }
.stats div { padding: 20px 28px; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.stats dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; color: var(--gold); }
.staff-head { padding-top: 48px; border-top: 1px solid var(--line); }
.person { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.staff-track { gap: 20px; padding: 0 0 4px; }
.staff-track .person { flex: 0 0 max(220px, calc((100% - 60px) / 4)); scroll-snap-align: start; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: radial-gradient(120% 90% at 50% 35%, #4A3A28 0%, #2A2219 55%, #151311 100%); display: flex; align-items: center; justify-content: center; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.initials { font-family: var(--display); font-weight: 900; font-size: 64px; letter-spacing: .04em; color: rgba(233, 207, 122, .55); }
.portrait-badge { position: absolute; left: 12px; top: 12px; padding: 5px 9px; background: var(--gold); color: var(--ink); border-radius: 3px; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.person figcaption { display: flex; flex-direction: column; gap: 2px; }
.person-name { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.person-role { font-size: 14px; color: var(--muted-2); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid #D6CFBF; margin-bottom: 32px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 10px 18px; border-radius: 40px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: .04em; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pill small { font-size: 15px; font-weight: 600; opacity: .7; }
.search { position: relative; flex: 0 1 320px; min-width: 220px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 42px; border: 1.5px solid #CFC7B6; border-radius: 40px; background: #fff; color: var(--ink); font-family: var(--body); font-size: 15px; }
.result-line { margin: 0 0 20px; font-size: 14px; font-weight: 600; color: var(--gray); }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(160px, calc((100% - 80px) / 5)), 1fr)); gap: 28px 20px; }
.roster .person { gap: 12px; }
.roster .initials { font-size: 52px; color: rgba(233, 207, 122, .5); }
.roster .person-name { font-size: 21px; }
.roster .person-role { color: var(--gray); }
.empty { padding: 56px 24px; text-align: center; border: 1.5px dashed #CFC7B6; border-radius: 8px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.empty b { font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; }
.empty > span { font-size: 16px; color: var(--gray); }
.strip .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.strip .wrap > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.strip b { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; text-transform: uppercase; }
.strip .wrap > div > span { font-size: 18px; line-height: 1.5; }
[hidden] { display: none !important; }

/* Gallery */
.gallery-head .wrap { padding-top: 88px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; justify-content: space-between; }
.gallery-head .wrap > div:first-child { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.gallery-head .counter { min-width: 96px; font-size: 28px; }
.stage { position: relative; height: clamp(320px, 52vw, 680px); border-radius: 8px; overflow: hidden; background: var(--ink-deep); }
.stage .blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(32px) brightness(.45); transform: scale(1.05); }
.stage .main { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.stage-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(20, 19, 17, .72); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.stage-btn.prev { left: 16px; }
.stage-btn.next { right: 16px; }
.album-tag { position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; background: rgba(20, 19, 17, .82); color: var(--gold-light); border-radius: 3px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.gallery-progress { margin-top: 16px; }
.thumbs { margin-top: 16px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 128px; height: 86px; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; background: var(--card); cursor: pointer; opacity: .55; transition: opacity .2s ease, border-color .2s ease; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.more { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.more > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.more b { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; text-transform: uppercase; }
.more > div:first-child > span { font-size: 16px; color: var(--muted); }
.more-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Contact */
.contact-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.info-card { flex: 1 1 360px; min-width: 0; max-width: 460px; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 36px; display: flex; flex-direction: column; gap: 28px; }
.info-card .label { font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.info-card .stack { display: flex; flex-direction: column; gap: 10px; }
.big-phone { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; color: var(--gold-light); }
.big-mail { font-size: 19px; font-weight: 600; word-break: break-word; }
.hr { height: 1px; background: var(--line); }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row svg { flex-shrink: 0; margin-top: 2px; }
.info-row > span { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.info-row small { font-size: 15px; line-height: 1.5; color: var(--soft); }
.info-row em { font-style: normal; font-size: 15px; color: var(--gold-light); font-weight: 600; }
.iban { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-btn { min-height: 36px; padding: 6px 12px; border: 1.5px solid var(--stone); border-radius: 4px; background: transparent; color: var(--paper); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.info-card .socials { margin-top: auto; }
.form-card { flex: 2 1 560px; min-width: 0; background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 40px; }
.form { display: flex; flex-direction: column; gap: 22px; }
.form-title { display: flex; flex-direction: column; gap: 6px; }
.form h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.05; text-transform: uppercase; }
.form-note { font-size: 15px; color: var(--gray); }
.form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.form legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { min-height: 44px; padding: 10px 16px; border-radius: 40px; border: 1.5px solid #CFC7B6; background: transparent; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.topic-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; }
.fld { min-height: 48px; padding: 12px 14px; border: 1.5px solid #CFC7B6; border-radius: 6px; background: #FBF9F4; color: var(--ink); font-family: var(--body); font-size: 16px; width: 100%; }
textarea.fld { min-height: 150px; line-height: 1.5; resize: vertical; }
.fld:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 169, 60, .45); }
.fld[aria-invalid="true"] { border-color: var(--error); }
.err { font-size: 13px; font-weight: 600; color: var(--error); }
.counter-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--gray); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.consent a { font-weight: 700; text-decoration: underline; }
.consent + .err { margin-top: -12px; }
.submit-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.submit-row > span { font-size: 14px; color: var(--gray); }
.submit-row a { font-weight: 700; }
.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { min-height: 420px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: center; }
.thanks-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.thanks h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.05; text-transform: uppercase; }
.thanks p { margin: 0; max-width: 480px; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.form-alert { padding: 12px 14px; border-radius: 6px; background: #FBEAEA; color: var(--error); font-weight: 600; font-size: 14px; }
.map-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.map-row > div:first-child { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.map-row > div:first-child .eyebrow { margin: 0; }
.map-row p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--soft); }
.map-row .btn { align-self: flex-start; font-size: 15px; padding: 16px 26px; }
.map { flex: 1.4 1 520px; min-width: 0; min-height: 380px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* News archive + single post + plain pages */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-pills a { min-height: 40px; padding: 8px 16px; border-radius: 40px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; }
.cat-pills a[aria-current] { background: var(--ink); color: var(--paper); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.post-grid .post-card { flex: none; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 48px; font-weight: 700; }
.pager a, .pager span { min-width: 44px; min-height: 44px; padding: 10px 16px; border-radius: 4px; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pager span { border-color: transparent; }
.article { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 15px; color: var(--muted-2); }
.article-meta .tag { position: static; }
.article-image { margin: 0 0 40px; border-radius: 8px; overflow: hidden; }
.article-image img { display: block; width: 100%; height: auto; }
.prose { font-size: 19px; line-height: 1.7; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.05; color: var(--ink); margin: 1.6em 0 .5em; }
.prose h2 { font-size: 40px; }
.prose h3 { font-size: 30px; }
.prose a { color: var(--gold-dark); text-decoration: underline; word-break: break-word; }
.prose img { height: auto; border-radius: 6px; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--gold); font-style: italic; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 48px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }

@media (max-width: 600px) {
    .sec, .sec-104 { padding-top: 72px; padding-bottom: 72px; }
    .form-card, .info-card { padding: 24px; }
    .tax { padding: 28px; }
    .tax b { font-size: 40px; }
    .stats div { padding: 16px 20px; }
    .stats dd { font-size: 40px; }
    .schedule { margin: -56px 12px 0; }
    .join-media img { min-height: 380px; }
    .era li { gap: 16px; }
    .era-year { flex-basis: 64px; font-size: 26px; }
    .page-hero .wrap { padding-top: 80px; padding-bottom: 72px; }
}
@media (max-width: 760px) {
    /* The team photo at its own shape (not cropped tall), so everyone is in it. */
    .hero-media img { aspect-ratio: var(--photo-ratio, 3 / 2); height: auto; min-height: 0; max-height: none; }
    .hero-media::after { height: 18%; }
    .hero-body { margin-top: -20px; }
    /* The crest is already in the header. */
    .hero-crest { display: none; }
}
@media (max-width: 480px) {
    /* "Dunaszerdahelyi" is one long word: keep it inside small phones. */
    .hero-copy h1 { font-size: 13vw; }
}

/* Single post — "Hír – bejegyzés" (templates/post.php) */
.post-narrow { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.post-head { background: var(--ink); }
.post-head .post-narrow { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.post-head.has-image .post-narrow { padding-bottom: 40px; }
.post-head .crumbs { flex-wrap: wrap; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 15px; color: var(--muted); }
.post-tag { padding: 6px 10px; background: var(--gold); color: var(--ink); border-radius: 3px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.post-tag:hover { color: var(--ink); filter: brightness(1.06); }
.post-title { margin: 0; max-width: 960px; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6vw, 84px); line-height: 1.02; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.post-cover { background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 55%, var(--cream) 55%, var(--cream) 100%); }
.post-cover figure { margin: 0; position: relative; height: clamp(280px, 46vw, 560px); border-radius: 10px; overflow: hidden; background: var(--ink-deep); box-shadow: 0 30px 60px rgba(20, 19, 17, .35); }
.post-cover figure img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.post-cover figure .post-cover-blur { position: absolute; inset: 0; object-fit: cover; filter: blur(30px) brightness(.5); transform: scale(1.2); }
.post-text { max-width: 760px; margin: 0 auto; padding: 64px 24px 24px; display: flex; flex-direction: column; gap: 24px; }
.post-lead { margin: 0; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.15; text-transform: uppercase; overflow-wrap: break-word; }
.post-text .prose > :last-child { margin-bottom: 0; }
.post-h2 { margin: 16px 0 0; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; text-transform: uppercase; }
.medal-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0; }
.medal-table > div { padding: 20px; background: #fff; border: 1px solid var(--border-light); border-radius: 8px; display: flex; gap: 14px; align-items: center; }
.medal-table > div > span:last-child { display: flex; flex-direction: column; font-size: 14px; color: var(--gray); }
.medal-table b { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--ink); }
.medal-dot { flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px #CFC7B6; }
.medal-table .medal-dot { width: 22px; height: 22px; }
.medal-dot.m1 { background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-dark); }
.medal-dot.m2 { background: #C9CDD2; box-shadow: inset 0 0 0 2px #8C9198; }
.medal-dot.m3 { background: #9A5B2A; box-shadow: inset 0 0 0 2px #6B3D19; }
.results { display: flex; flex-direction: column; gap: 28px; }
.results h3 { margin: 0 0 6px; font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.results ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.results li { display: grid; grid-template-columns: 48px minmax(0, 1fr) 80px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #D6CFBF; }
.results-place { display: flex; gap: 8px; align-items: center; }
.results-place b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.results-name { font-size: 17px; font-weight: 600; }
.results-weight { text-align: right; font-size: 15px; color: var(--gray); }
.post-follow { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 16px; padding-top: 24px; border-top: 1px solid #D6CFBF; font-size: 15px; color: var(--gray); }
.post-follow a { font-weight: 700; color: var(--ink); text-decoration: underline; }
.post-end { padding: 48px 0 96px; }
.post-gallery-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 20px; padding-top: 32px; border-top: 2px solid var(--ink); }
.post-gallery-head .post-h2 { margin: 0; }
.post-gallery-head span { font-size: 14px; font-weight: 600; color: var(--gray); }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ptile { position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: repeating-linear-gradient(135deg, #E9E3D6 0, #E9E3D6 14px, #E2DBCC 14px, #E2DBCC 28px); transition: transform .2s ease; }
.ptile:hover { transform: translateY(-2px); }
.ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptile:focus-visible, .lb-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.post-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.post-gallery ~ .post-nav { margin-top: 48px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 11, 10, .94); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; color: var(--soft); }
.lb-top span { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .06em; }
.lb-btn { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--stone); background: transparent; color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.lb-stage .lb-btn { width: 52px; height: 52px; }
.lb-stage .lb-next { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.lb-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px 24px; }
.lb-image { flex: 1 1 auto; max-width: 1100px; height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.lb-image img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
body.lb-open { overflow: hidden; }

@media (max-width: 600px) {
    .post-head .post-narrow { padding-top: 48px; }
    .post-text { padding-top: 48px; }
    .post-lead { font-size: 28px; }
    .medal-table { gap: 8px; }
    .medal-table > div { padding: 14px; gap: 10px; }
    .medal-table b { font-size: 32px; }
    .results li { grid-template-columns: 44px minmax(0, 1fr) auto; }
    .post-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-nav .btn { flex: 1 1 100%; justify-content: center; }
    .lb-stage { position: relative; padding: 0 8px 88px; }
    .lb-stage .lb-btn { position: absolute; bottom: 20px; }
    .lb-stage [data-lb-prev] { left: calc(50% - 64px); }
    .lb-stage .lb-next { right: calc(50% - 64px); }
}

/* Scroll-in reveal (home page: data-reveal, data-reveal-stagger on a parent). Only when site.js runs
   (html.reveal-on) and the visitor allows motion. An animation, not a transition, so hover effects stay untouched. */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on [data-reveal]:not(.is-in), .reveal-on [data-reveal-stagger]:not(.is-in) > * { opacity: 0; }
    .reveal-on [data-reveal].is-in, .reveal-on [data-reveal-stagger].is-in > * { animation: reveal-up .8s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--reveal-i, 0) * 90ms); }
}
@keyframes reveal-up { from { opacity: 0; transform: translateY(22px); } }

/* Google reCAPTCHA badge (contact page): above the floating supporters box, not under it. */
.grecaptcha-badge { bottom: 150px !important; z-index: 49; }
@media (max-width: 600px) { .grecaptcha-badge { bottom: 110px !important; } }
