:root{
  --bg:#FBF6EF; --bg-alt:#F3E9DC; --ink:#2A2420; --ink-soft:#6B5F55;
  --accent:#8A6642; --accent-deep:#6B4A2C; --gold:#C9972E; --sage:#6E7B58;
  --line:#E4D8C8; --white:#FFFFFF; --ph:#EADFCB; --ph-ink:#9C8F7C;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; font-family:'Karla',sans-serif; background:var(--bg); color:var(--ink);}
h1,h2,h3{font-family:'Fraunces',serif; margin:0;}
a{color:var(--accent); text-decoration:none;}
a:hover{color:var(--accent-deep);}
button{font-family:'Karla',sans-serif; cursor:pointer;}
img{max-width:100%; display:block;}

.wrap{max-width:1200px; margin:0 auto; padding-left:64px; padding-right:64px; box-sizing:border-box;}
@media (max-width:768px){ .wrap{padding-left:20px; padding-right:20px;} }

/* Segéd-osztály flex/grid oszlopokra a főoldalon (hero, "Hogyan működik?"
   lépések): böngésző-alapértelmezés szerint egy flex/grid elem nem
   zsugorodhat a saját tartalmának (pl. egy hosszabb cím) min-content
   szélessége alá, még akkor sem, ha a szülő flex-wrap:wrap vagy
   minmax(0,1fr) grid track méretezést használ — ez okozott vízszintes
   kicsúszást keskeny (mobil) nézetben. */
.no-overflow-shrink{min-width:0;}
.home-steps-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width:820px){ .home-steps-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:480px){ .home-steps-grid{grid-template-columns:1fr;} }

.home-intro-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:40px;}
@media (max-width:700px){ .home-intro-grid{grid-template-columns:1fr; gap:32px;} }

.site-header{width:100%; display:flex; flex-wrap:wrap; align-items:center; gap:18px; padding:18px 64px; box-sizing:border-box; border-bottom:1px solid var(--line); background:var(--bg); position:sticky; top:0; z-index:20;}
.site-header .logo{display:flex; align-items:center; gap:10px; color:var(--ink);}
.site-header .logo .mark{width:36px;height:36px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Fraunces',serif;font-weight:600;font-size:18px;}
.site-header .logo .word{font-family:'Fraunces',serif; font-size:20px; font-weight:600;}

/* Közösségi ikonok — mindig láthatóak a fejlécben, logó mellett (nem csak a
   lábléc alján), mert fontos hogy szem előtt legyenek. */
.site-header-social{display:flex; gap:8px; align-items:center;}
.site-header-social a{display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:var(--bg-alt); color:var(--ink-soft); transition:background .15s ease, color .15s ease;}
.site-header-social a:hover{background:var(--accent); color:#fff;}
.site-header-social svg{width:15px; height:15px;}
/* A nav-social (a mobil legördülő menü alján megjelenő ikonsor) csak
   keskeny nézetben látszik — asztalin ott az eredeti, fejléc tetején lévő
   .site-header-social already látható, nem kell duplán megjelennie a nav
   végén is. */
.nav-social{display:none;}

.site-header nav{display:flex; gap:36px; align-items:center; margin-left:auto;}
.site-header nav a{color:var(--ink-soft); font-size:15px; font-weight:500;}
.site-header nav a.current{color:var(--accent); font-weight:600;}
.site-header nav a.btn{color:#fff;}
.site-header nav a.btn:hover{color:#fff;}

/* Hamburger gomb — csak keskeny nézetben látszik */
.nav-toggle{display:none; width:38px; height:38px; padding:0; border:none; background:transparent; border-radius:10px; align-items:center; justify-content:center; flex-direction:column; gap:5px; flex-shrink:0;}
.nav-toggle:hover{background:var(--bg-alt);}
.nav-toggle span{display:block; width:21px; height:2px; background:var(--ink); border-radius:2px; transition:transform .2s ease, opacity .2s ease;}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

@media (max-width:900px){
  .site-header{padding:14px 20px; position:sticky;}
  /* Mobilon a jobb felső sarok a hamburgeré — a közösségi ikonok innen
     eltűnnek a fejléc tetejéről, de a nyitott menü alján megjelennek
     (.nav-social), így továbbra is elérhetők maradnak. */
  .site-header-social{display:none;}
  .nav-toggle{display:flex; margin-left:auto;}
  .site-header nav{
    display:none;
    position:absolute; left:0; right:0; top:100%;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--bg); border-bottom:1px solid var(--line);
    padding:6px 20px 18px; margin-left:0;
    max-height:calc(100vh - 100%);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    box-shadow:0 14px 28px rgba(42,36,32,.08);
  }
  .site-header nav.open{display:flex;}
  .site-header nav a{padding:13px 0; border-bottom:1px solid var(--line); font-size:16px;}
  .site-header nav a.btn{margin-top:12px; text-align:center; border-bottom:none; padding:12px 22px;}
  .site-header nav .nav-social{display:flex; justify-content:center; gap:10px; margin-top:16px;}
}
.btn{display:inline-block; background:var(--accent); color:#fff; padding:10px 22px; border-radius:999px; font-size:15px; font-weight:600; border:none;}
.btn:hover{color:#fff; background:var(--accent-deep);}
.btn-outline{display:inline-block; border:1px solid var(--ink); color:var(--ink); padding:10px 22px; border-radius:999px; font-size:15px; font-weight:600;}

.site-footer{width:100%; background:var(--ink); color:#EFE6DA; padding:56px 64px 28px; box-sizing:border-box;}
.site-footer a{color:#EFE6DA;}
.site-footer a:hover{color:var(--gold);}
.site-footer .cols{display:flex; justify-content:space-between; flex-wrap:wrap; gap:40px;}
.site-footer .col{display:flex; flex-direction:column; gap:10px;}
.site-footer .col-label{font-size:13px; text-transform:uppercase; letter-spacing:0.08em; color:#8A7D6E;}
.site-footer .legal{border-top:1px solid #4A423A; margin-top:32px; padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:#8A7D6E;}
.site-footer .legal a{color:#8A7D6E;}
.site-footer .social-row{display:flex; gap:10px; margin-top:2px;}
.site-footer .social-row a{display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); color:#EFE6DA; transition:background .15s ease, color .15s ease;}
.site-footer .social-row a:hover{background:var(--accent); color:#fff;}
.site-footer .social-row svg{width:18px; height:18px;}
.footer-cols-right{display:flex; gap:64px; flex-wrap:wrap;}

@media (max-width:768px){
  .site-footer{padding:40px 20px 24px; box-sizing:border-box;}
  .site-footer .cols{gap:32px;}
  .footer-cols-right{gap:32px;}
  .site-footer .legal{flex-direction:column; gap:10px;}
}
.admin-footer-link{opacity:0.75;}
.admin-footer-link:hover{opacity:1;}

/* --- Vissza a tetejére gomb --- */
#scroll-top-btn{position:fixed; right:22px; bottom:22px; width:44px; height:44px; border-radius:50%; background:var(--accent); color:#fff; border:none; font-size:18px; line-height:1; box-shadow:0 4px 16px rgba(0,0,0,0.18); cursor:pointer; opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .2s, transform .2s, visibility .2s; z-index:20;}
#scroll-top-btn.visible{opacity:1; visibility:visible; transform:translateY(0);}
#scroll-top-btn:hover{background:var(--accent-deep);}
@media (max-width:640px){ #scroll-top-btn{right:16px; bottom:16px; width:40px; height:40px; font-size:16px;} }

.newsletter-form{display:flex; gap:10px; flex-wrap:wrap; justify-content:center;}
.newsletter-form input[type=email]{flex:1; min-width:200px; padding:12px 14px; border-radius:10px; border:1px solid #4A423A; background:#332B25; color:#fff; font-size:14px;}
.newsletter-form input[type=email]::placeholder{color:#9C8F7C;}
.newsletter-form button{background:var(--accent); color:#fff; border:none; padding:12px 20px; border-radius:10px; font-weight:600; font-size:14px;}
.newsletter-note{font-size:12px; color:#8A7D6E; margin-top:8px;}
.form-flash{font-size:13px; padding:10px 14px; border-radius:10px; margin-bottom:12px; max-width:420px;}
.form-flash.ok{background:#2f3d28; color:#d7e6c9;}
.form-flash.err{background:#4a2320; color:#f0c9c4;}

/* süti-sáv */
#cookie-banner{position:fixed; left:16px; right:16px; bottom:16px; max-width:520px; margin:0 auto; background:var(--ink); color:#EFE6DA; padding:18px 20px; border-radius:14px; font-size:13px; line-height:1.6; box-shadow:0 8px 24px rgba(0,0,0,0.25); z-index:100; display:none;}
#cookie-banner a{color:var(--gold);}
#cookie-banner .row{display:flex; justify-content:flex-end; gap:10px; margin-top:12px;}
#cookie-banner button{border:none; padding:9px 18px; border-radius:999px; font-size:13px; font-weight:600;}
#cookie-banner .accept{background:var(--accent); color:#fff;}
#cookie-banner .reject{background:transparent; color:#C9BEB0; border:1px solid #4A423A;}

/* legal oldalak (adatkezelés / ászf) */
.legal-page{max-width:820px; margin:0 auto; padding:64px 64px 96px; box-sizing:border-box;}
.legal-page h1{font-size:34px; margin-bottom:8px;}
.legal-page .updated{font-size:13px; color:var(--ink-soft); margin-bottom:32px;}
.legal-page h2{font-size:20px; margin-top:36px; margin-bottom:12px;}
.legal-page p, .legal-page li{font-size:15px; line-height:1.75; color:var(--ink-soft);}
.legal-page ul{padding-left:20px;}
.legal-page .todo{background:#FCEFE0; border:1px dashed var(--gold); color:var(--accent-deep); padding:12px 16px; border-radius:10px; font-size:13px; margin:16px 0;}

/* jelentkezési űrlap */
.app-wrap{max-width:760px; margin:0 auto; padding:64px 20px 96px; box-sizing:border-box;}
.app-intro{margin-bottom:8px;}
.app-intro h1{font-size:36px; margin-bottom:14px;}
.app-intro p{font-size:16px; line-height:1.7; color:var(--ink-soft); margin:0;}
.app-criteria{background:var(--bg-alt); border-radius:16px; padding:22px 26px; margin:32px 0; font-size:14px; color:var(--ink-soft); line-height:1.8;}
.app-criteria strong{color:var(--ink);}
.app-success{background:#EEF3E6; border:1px solid var(--sage); color:#3E4A32; padding:32px; border-radius:16px; text-align:center; margin-top:32px;}
.app-success h2{font-size:24px; margin-bottom:10px; color:#3E4A32;}
.app-success p{margin:0 0 18px; font-size:15px; line-height:1.6;}
.app-form{display:flex; flex-direction:column; gap:22px; margin-top:36px;}
.app-form .field{display:flex; flex-direction:column; gap:6px;}
.app-form label{font-size:14px; font-weight:600;}
.app-form .hint{font-size:12.5px; color:var(--ink-soft); font-weight:400;}
.app-form input[type=text],
.app-form input[type=email],
.app-form input[type=tel],
.app-form input[type=url],
.app-form select,
.app-form textarea{font-family:'Karla',sans-serif; font-size:15px; padding:12px 14px; border-radius:10px; border:1px solid var(--line); background:var(--white); color:var(--ink); width:100%;}
.app-form input:focus, .app-form select:focus, .app-form textarea:focus{outline:none; border-color:var(--accent);}
.app-form input[type=file]{font-family:'Karla',sans-serif; font-size:13.5px; color:var(--ink-soft); padding:4px 0; border:none; background:none;}
.app-form textarea{resize:vertical; min-height:110px;}
.app-form .radio-row{display:flex; gap:20px; flex-wrap:wrap;}
.app-form .radio-row label{display:flex; align-items:center; gap:8px; font-weight:500; font-size:14px; cursor:pointer;}
.app-form .two-col{display:grid; grid-template-columns:1fr 1fr; gap:22px;}
@media (max-width:600px){ .app-form .two-col{grid-template-columns:1fr;} }
.app-form .consent{display:flex; align-items:flex-start; gap:10px; font-size:13.5px; color:var(--ink-soft);}
.app-form .consent input{margin-top:3px;}
.app-form .field-error{color:#B23B2E; font-size:13px;}
.app-form .field.has-error input,
.app-form .field.has-error select,
.app-form .field.has-error textarea{border-color:#B23B2E;}
.app-form .form-error-banner{background:#FBEAE7; border:1px solid #E3A79C; color:#8C2E22; padding:14px 18px; border-radius:10px; font-size:14px;}
.app-form button[type=submit]{align-self:flex-start; border:none; padding:14px 32px; font-size:15px;}

/* --- Szavazás (publikus) --- */
.form-flash-page{font-size:14px; padding:12px 16px; border-radius:10px; margin:20px 0; max-width:520px;}
.form-flash-page.ok{background:#EEF3E6; color:#3E4A32; border:1px solid var(--sage);}
.form-flash-page.err{background:#FBEAE7; color:#8C2E22; border:1px solid #E3A79C;}

.vote-wrap{max-width:1180px; margin:0 auto; padding:64px 20px 96px; box-sizing:border-box;}
.vote-intro{max-width:640px; margin-bottom:8px;}
.vote-intro h1{font-size:32px; margin:14px 0;}
.vote-intro p{font-size:16px; line-height:1.7; color:var(--ink-soft); margin:0;}
.vote-deadline{font-size:14px; color:var(--ink-soft); margin-top:10px;}
.vote-deadline strong{color:var(--ink);}
.vote-closed-note{background:#FCEFE0; border:1px dashed var(--gold); color:var(--accent-deep); padding:12px 16px; border-radius:10px; font-size:14px; margin:20px 0;}
.vote-empty-note{color:var(--ink-soft); font-size:14.5px; margin:16px 0;}

/* Amíg a szavazás nyitva van, nem mutatunk jelölthöz köthető számokat — csak
   egy név nélküli, színenkénti sávot arról, hogyan oszlik meg a 100% a három
   jelölt között. A pontos állás csak lezárás után válik láthatóvá. */
.vote-megoszlas{display:flex; width:100%; height:14px; border-radius:999px; overflow:hidden; background:var(--bg-alt); margin:28px 0 10px;}
.vote-megoszlas-seg{flex-basis:0; min-width:2px; transition:flex-grow .3s ease;}
.vote-megoszlas-note{font-size:13px; color:var(--ink-soft); margin:0 0 8px;}

.vote-cards{display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; margin:32px 0;}
@media (max-width:820px){ .vote-cards{grid-template-columns:1fr;} }
.vote-card{background:var(--white); border:1px solid var(--line); border-radius:16px; padding:22px; display:flex; flex-direction:column; gap:10px; scroll-margin-top:100px;}
.vote-card:target, .vote-card.is-shared{border-color:var(--accent); box-shadow:0 6px 24px rgba(193,89,43,0.15);}
.vote-card-photo{width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:12px; background:var(--ph);}
.vote-card-photo-ph{display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-size:44px; font-weight:600; color:var(--ph-ink);}
.vote-card h3{font-size:19px;}
.vote-card-bio{font-size:13.5px; line-height:1.6; color:var(--ink-soft); margin:0;}
.vote-card-audio{width:100%; margin-top:4px;}
.vote-card-demo-link{font-size:13.5px; font-weight:600;}
.vote-card-bar{background:var(--bg-alt); border-radius:999px; height:9px; overflow:hidden; margin-top:6px;}
.vote-card-bar-fill{background:var(--sage); height:100%; border-radius:999px;}
.vote-card-pct{font-size:12.5px; color:var(--ink-soft); font-weight:600;}
.vote-card-pick{display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; margin-top:8px; cursor:pointer;}
.vote-card-actions{display:flex; align-items:center; gap:10px; margin-top:2px;}
.vote-share-btn{background:none; border:1px solid var(--line); color:var(--accent-deep); font-size:12.5px; font-weight:600; padding:7px 14px; border-radius:999px;}
.vote-share-btn:hover{border-color:var(--accent); background:var(--bg-alt);}
.vote-share-note{font-size:12px; color:var(--sage); font-weight:600; opacity:0; transition:opacity .2s; word-break:break-all;}
.vote-share-note.show{opacity:1;}

.vote-form{max-width:520px; margin:36px auto 0; background:var(--bg-alt); padding:28px; border-radius:16px;}

.vote-megye-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; margin:28px 0;}
@media (max-width:820px){ .vote-megye-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .vote-megye-grid{grid-template-columns:1fr;} }
.vote-megye-card{background:var(--white); border:1px solid var(--line); border-radius:14px; padding:20px; display:flex; flex-direction:column; gap:6px;}
.vote-megye-card:hover{border-color:var(--accent);}
.vote-megye-card h3{font-size:17px; color:var(--ink);}
.vote-megye-deadline{font-size:12.5px; color:var(--ink-soft);}
.vote-megye-card.is-closed{opacity:0.65;}
.vote-closed-section{margin-top:48px; border-top:1px solid var(--line); padding-top:28px;}
.vote-closed-section h2{font-size:20px; margin-bottom:6px;}

/* --- Előadók (publikus) --- */
.eloadok-wrap{max-width:1180px; margin:0 auto; padding:64px 20px 96px; box-sizing:border-box;}
.eloadok-intro{max-width:640px; margin-bottom:16px;}
.eloadok-intro h1{font-size:34px; margin:14px 0;}
.eloadok-intro p{font-size:16px; line-height:1.7; color:var(--ink-soft); margin:0;}
.eloadok-empty{color:var(--ink-soft); font-size:15px; margin-top:24px;}
.eloadok-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; margin-top:36px;}
@media (max-width:900px){ .eloadok-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:600px){ .eloadok-grid{grid-template-columns:1fr;} }
.eloadok-card{background:var(--white); border:1px solid var(--line); border-radius:16px; padding:22px; display:flex; flex-direction:column; gap:8px;}
.eloadok-card-photo{width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:12px; background:var(--ph);}
.eloadok-card-photo-ph{display:flex; align-items:center; justify-content:center; font-family:'Fraunces',serif; font-size:44px; font-weight:600; color:var(--ph-ink);}
.eloadok-card-megye{font-size:12px; text-transform:uppercase; letter-spacing:0.03em; color:var(--accent-deep); font-weight:600;}
.eloadok-card h3{font-size:19px; margin:0;}
.eloadok-card-bio{font-size:13.5px; line-height:1.6; color:var(--ink-soft); margin:0;}
.eloadok-card-megjelenes{font-size:12.5px; color:var(--gold); font-weight:600; margin:0;}
.eloadok-card-links{display:flex; gap:10px; margin-top:4px;}
.eloadok-card-links a{font-size:13px; font-weight:600; padding:8px 16px; border-radius:999px; border:1px solid var(--line); color:var(--ink);}
.eloadok-card-links a:hover{background:var(--bg-alt);}

/* --- Hírek (publikus) --- */
.hirek-list{display:flex; flex-direction:column; gap:36px; margin-top:36px;}
.hirek-post{border-bottom:1px solid var(--line); padding-bottom:36px;}
.hirek-post:last-child{border-bottom:none;}
.hirek-post-photo{width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:16px; margin-bottom:16px; background:var(--ph);}
.hirek-post-date{display:block; font-size:12.5px; text-transform:uppercase; letter-spacing:0.03em; color:var(--accent-deep); font-weight:600; margin-bottom:6px;}
.hirek-post h2{font-size:23px; margin:0 0 10px;}
.hirek-post p{font-size:15.5px; line-height:1.75; color:var(--ink-soft); margin:0; white-space:pre-wrap;}

.hirek-pagination{display:flex; align-items:center; justify-content:center; gap:18px; margin:40px 0 8px; flex-wrap:wrap;}
.hirek-pagination-nav{font-size:14px; font-weight:600; color:var(--accent-deep); white-space:nowrap;}
.hirek-pagination-nums{display:flex; gap:6px; flex-wrap:wrap; justify-content:center;}
.hirek-pagination-num{display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; font-size:14px; font-weight:600; color:var(--ink-soft); border:1px solid var(--line);}
.hirek-pagination-num:hover{border-color:var(--accent); color:var(--accent-deep);}
.hirek-pagination-num.is-current{background:var(--accent); border-color:var(--accent); color:#fff;}

/* --- főoldal: legfrissebb hírek --- */
.home-hirek-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:24px;}
@media (max-width:900px){ .home-hirek-grid{grid-template-columns:1fr;} }
.home-hirek-card{display:flex; flex-direction:column; gap:8px; background:var(--white); border:1px solid var(--line); border-radius:16px; padding:20px; color:var(--ink);}
.home-hirek-card:hover{border-color:var(--accent);}
.home-hirek-card-photo{width:100%; aspect-ratio:4/3; height:auto; object-fit:cover; border-radius:10px; margin-bottom:4px; background:var(--ph);}
.home-hirek-card-date{font-size:12px; text-transform:uppercase; letter-spacing:0.03em; color:var(--accent-deep); font-weight:600;}
.home-hirek-card h3{font-size:17px; margin:0;}
.home-hirek-card p{font-size:13.5px; line-height:1.6; color:var(--ink-soft); margin:0;}

/* --- főoldal hero: "tovább olvasom" --- */
.hero-photo-box{aspect-ratio:4/5;}
/* Mobilon a lap egyből a kezdőképpel induljon (a szöveg alá kerül), és a kép
   16:9 arányú legyen — kevésbé "lapos", mint az asztali 4:5, de a mobil
   szélességhez jobban illő, kevésbé magas doboz. */
@media (max-width:768px){
  .hero-photo-box{aspect-ratio:1/1; order:-1;}
}

.hero-more{margin-top:-8px;}
.hero-more summary{cursor:pointer; color:var(--accent-deep); font-weight:600; font-size:15px; list-style:none; display:inline-flex; align-items:center; gap:5px;}
.hero-more summary::-webkit-details-marker{display:none;}
.hero-more summary::after{content:'→'; display:inline-block; transition:transform .15s;}
.hero-more[open] summary::after{transform:rotate(90deg);}
.hero-more p{margin:14px 0 0; font-size:16px; line-height:1.7; color:var(--ink-soft); max-width:480px;}
