body.home, body.category-hirek {
    background: #e9eee4;
}

.hme-editorial {
    --hme-ink: #18362a;
    --hme-text: #485b51;
    --hme-line: #dce6dd;
    --hme-pale: #eff4eb;
    --hme-green: #244e38;
    color: var(--hme-ink);
    padding-block: clamp(24px, 4vw, 52px) clamp(42px, 6vw, 78px);
}

.hme-editorial a:focus-visible {
    outline: 2px solid #166d4b;
    outline-offset: 4px;
}

.hme-headline,
.hme-event {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--hme-line);
    border-radius: 14px;
}

.hme-headline {
    background: var(--hme-pale);
}

.hme-headline.has-image {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.hme-headline-copy {
    align-self: center;
    padding: clamp(22px, 4vw, 48px);
}

.hme-kicker {
    margin: 0 0 13px;
    color: #395f48;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.hme-headline h1,
.hme-news-index-head h1 {
    margin: 0;
    color: var(--hme-ink);
    font: 700 clamp(28px, 3.6vw, 45px)/1.12 Roboto, Arial, sans-serif;
    letter-spacing: -.032em;
    overflow-wrap: anywhere;
}

.hme-headline h1 a:hover {
    text-decoration: underline;
    text-decoration-thickness: .055em;
    text-underline-offset: .13em;
}

.hme-headline-excerpt,
.hme-event-copy p:not(.hme-kicker) {
    max-width: 56ch;
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.6;
}

.hme-headline-excerpt {
    color: var(--hme-text);
}

.hme-headline-media {
    position: relative;
    min-height: 300px;
    background: #e0e9df;
}

.hme-headline-media img,
.hme-event-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hme-editorial-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-top: 20px;
    padding: 9px 15px;
    border-radius: 6px;
    background: var(--hme-green);
    color: white;
    font-weight: 700;
}

.hme-editorial-button:hover {
    background: #16382a;
}

.hme-event {
    margin-bottom: clamp(20px, 3vw, 34px);
    background: #243f34;
    color: #fff;
}

.hme-event.has-image {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.hme-event-copy {
    align-self: center;
    padding: clamp(21px, 3vw, 34px);
}

.hme-event-copy h2 {
    margin: 0;
    font: 700 clamp(23px, 3vw, 33px)/1.15 Roboto, Arial, sans-serif;
    overflow-wrap: anywhere;
}

.hme-event .hme-kicker { color: #d0e5a7; }
.hme-event .hme-editorial-button { background: #e1efcd; color: #18362a; }
.hme-event .hme-editorial-button:hover { background: white; }
.hme-event a:focus-visible { outline-color: #e1efcd; }

.hme-event-image {
    position: relative;
    min-height: 190px;
    background: #1b3027;
}

.hme-home-section {
    margin-top: clamp(30px, 5vw, 60px);
}

.hme-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 17px;
}

.hme-section-title h2,
.hme-community h2 {
    margin: 0;
    font: 700 clamp(21px, 2.5vw, 30px)/1.18 Roboto, Arial, sans-serif;
    letter-spacing: -.02em;
}

.hme-section-title a,
.hme-community a {
    color: #24563e;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hme-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(13px, 2vw, 22px);
}

.hme-story-card {
    min-width: 0;
    border: 1px solid var(--hme-line);
    border-radius: 11px;
    background: white;
}

.hme-story-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: inherit;
}

.hme-story-media {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 10px 10px 0 0;
    background: var(--hme-pale);
}

.hme-story-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hme-story-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(15px, 2vw, 23px);
    overflow-wrap: anywhere;
}

.hme-story-copy time {
    color: var(--hme-text);
    font-size: 12px;
}

.hme-story-copy h2,
.hme-story-copy h3 {
    margin: 8px 0 10px;
    color: var(--hme-ink);
    font: 700 clamp(18px, 2vw, 22px)/1.22 Roboto, Arial, sans-serif;
}

.hme-story-copy p {
    margin: 0 0 15px;
    color: var(--hme-text);
    font-size: 14px;
    line-height: 1.55;
}

.hme-story-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    color: #24563e;
    font-size: 13px;
    font-weight: 700;
}

.hme-story-link:hover :is(h2,h3) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hme-program-list,
.hme-supporter-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hme-program-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    min-height: 65px;
    padding: 12px;
    border: 1px solid var(--hme-line);
    border-radius: 7px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.hme-program-list a:hover { background: var(--hme-pale); }

.hme-community {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
}

.hme-heritage-panel,
.hme-social-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--hme-line);
    border-radius: 10px;
    background: var(--hme-pale);
}

.hme-social-panel {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: #eef3f8;
}

.hme-heritage-panel img {
    width: 31%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.hme-heritage-panel p { margin: 8px 0; color: var(--hme-text); }
.hme-heritage-panel a { display: inline-block; margin: 4px 10px 0 0; }

.hme-supporter-logos {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hme-supporter-logos li {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--hme-line);
    border-radius: 8px;
    background: white;
}

.hme-supporter-logos img {
    display: block;
    width: 100%;
    height: clamp(44px, 7vw, 78px);
    object-fit: contain;
}

.hme-news-index-head {
    margin-bottom: 27px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hme-line);
}

.hme-news-index-head .breadcrumbs {
    margin-bottom: 8px;
    color: var(--hme-text);
    font-size: 13px;
}

.hme-news-index .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
}

.hme-news-index .page-numbers {
    min-width: 41px;
    padding: 11px;
    border: 1px solid var(--hme-line);
    border-radius: 6px;
    text-align: center;
}

.hme-news-index .page-numbers.current {
    background: var(--hme-green);
    color: white;
}

@media (max-width: 860px) {
    .hme-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .hme-story-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .hme-headline.has-image, .hme-event.has-image, .hme-community {
        grid-template-columns: 1fr;
    }

    .hme-headline-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .hme-event-image {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .hme-program-list, .hme-supporter-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Főoldali hír- és rendezvényelrendezés */
.hme-new-home .hme-lead{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr);overflow:hidden;border-radius:10px;background:#153b2f;color:#fff}
.hme-new-home .hme-lead-main{display:flex;flex-direction:column;justify-content:center;gap:16px;min-width:0;padding:clamp(24px,3vw,38px)}
.hme-new-home .hme-lead-label{margin:0;color:#d2e680;font:700 11px/1.5 Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.hme-new-home .hme-lead-body{display:grid;gap:18px;align-items:start}
.hme-new-home .hme-lead-body.has-image{grid-template-columns:minmax(0,1fr) minmax(100px,30%)}
.hme-new-home .hme-lead-body h1{margin:0;color:#fff;font:700 clamp(25px,2.6vw,34px)/1.2 Roboto,Arial,sans-serif;overflow-wrap:anywhere}
.hme-new-home .hme-lead-body h1 a:hover{text-decoration:underline}
.hme-new-home .hme-lead-body p{margin:12px 0 0;color:#e4eee6;font:14px/1.6 Arial,sans-serif}
.hme-new-home .hme-lead-photo{display:flex;align-items:center;justify-content:center;min-width:0;height:170px;overflow:hidden;border-radius:5px;background:#294e3e}
.hme-new-home .hme-lead-photo img{display:block;width:100%;height:100%;object-fit:contain}
.hme-new-home .hme-lead-footer{display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap;color:#d2e3d6;font-size:12px}
.hme-new-home .hme-lead-footer a{padding:10px 14px;border-radius:4px;background:#d2e680;color:#17362a;font-weight:700;font-size:14px}
.hme-new-home .hme-lead-recent{min-width:0;padding:clamp(22px,3vw,32px);background:#e9efe4;color:#18372a}
.hme-new-home .hme-lead-recent h2,.hme-new-home .hme-section-title h2,.hme-new-home .hme-heritage-panel h2{margin:0;color:#18372a;font:700 25px/1.25 Roboto,Arial,sans-serif}
.hme-new-home .hme-lead-recent h2{margin-bottom:14px}
.hme-new-home .hme-recent-item{border-top:1px solid #cbd9ca}
.hme-new-home .hme-recent-link{display:flex;align-items:center;gap:12px;padding:13px 0}
.hme-new-home .hme-recent-image{flex:none;width:76px;height:64px;overflow:hidden;border-radius:4px;background:#dbe5d6}
.hme-new-home .hme-recent-image img{display:block;width:100%;height:100%;object-fit:cover}
.hme-new-home .hme-recent-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.hme-new-home .hme-recent-copy time,.hme-new-home .hme-event-card time{color:#506455;font:12px/1.4 Arial,sans-serif}
.hme-new-home .hme-recent-title,.hme-new-home .hme-event-card-title{color:#18372a;font:700 15px/1.35 Roboto,Arial,sans-serif;overflow-wrap:anywhere}
.hme-new-home .hme-recent-link:hover .hme-recent-title{text-decoration:underline}
.hme-new-home .hme-recent-all{display:inline-block;margin-top:10px;color:#27563c;font-weight:700;font-size:13px}
.hme-new-home .hme-events-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hme-new-home .hme-event-card{min-width:0;border:1px solid #dce5d9;border-radius:8px;background:#f3f5ed;overflow:hidden}
.hme-new-home .hme-event-card>a{display:flex;flex-direction:column;height:100%}
.hme-new-home .hme-event-card-image{display:block;aspect-ratio:16/9;background:#e4ebe0}
.hme-new-home .hme-event-card-image img{display:block;width:100%;height:100%;object-fit:contain}
.hme-new-home .hme-event-card-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:8px;padding:16px}
.hme-new-home .hme-event-card-more{margin-top:auto;padding-top:5px;color:#285c42;font-size:13px;font-weight:700}
.hme-new-home .hme-community{grid-template-columns:1fr;margin-top:40px}
.hme-new-home .hme-heritage-panel{padding:0;overflow:hidden;background:#f2f5ef}
.hme-new-home .hme-heritage-panel img{align-self:stretch;width:38%;height:auto;min-height:170px;aspect-ratio:auto;object-fit:cover;border-radius:0}
.hme-new-home .hme-heritage-panel div{padding:20px}
.hme-new-home .hme-social-panel{flex-direction:row;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;background:#f3f6f2}
.hme-new-home .hme-social-panel h2{font:700 16px/1.3 Roboto,Arial,sans-serif;color:#18372a}
.hme-new-home .hme-social-panel p{margin:2px 0 0;color:#52665b;font-size:13px}
.hme-new-home .hme-supporter-logos li{min-height:110px;padding:14px}
.hme-new-home .hme-supporter-logos img{height:82px}
.hme-new-home .hme-home-section{margin-top:40px}
@media(max-width:780px){.hme-new-home .hme-lead{grid-template-columns:1fr}.hme-new-home .hme-events-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.hme-new-home .hme-lead-main{padding:24px}.hme-new-home .hme-lead-body.has-image{grid-template-columns:minmax(0,1fr) minmax(76px,30%)}.hme-new-home .hme-lead-body h1{font-size:25px}.hme-new-home .hme-lead-photo{height:140px}.hme-new-home .hme-events-grid{grid-template-columns:1fr}.hme-new-home .hme-heritage-panel{flex-direction:column;align-items:stretch}.hme-new-home .hme-heritage-panel img{width:100%;height:180px;min-height:0}.hme-new-home .hme-supporter-logos{grid-template-columns:repeat(2,minmax(0,1fr))}.hme-new-home .hme-supporter-logos li{min-height:95px}.hme-new-home .hme-supporter-logos img{height:70px}}
@media(max-width:350px){.hme-new-home .hme-lead-body.has-image{grid-template-columns:1fr}.hme-new-home .hme-lead-photo{height:150px}}
.hme-new-home .hme-event-image-placeholder{display:flex;align-items:center;justify-content:center;background:#dce8d9;color:#365b44;font:700 17px/1.3 Roboto,Arial,sans-serif;letter-spacing:.02em}