/* The site's own pages (events, home, Výbor, Kontakty) and the footer, inside
   the Neve header. Neve's fonts and colours: Albert Sans headings, Arial body,
   black on white. Content starts at the same left edge as the header's logo
   (both sit in Neve's .container); long text keeps a readable width. */

.ev {
  --ev-ink: #000;
  --ev-muted: #555;
  --ev-line: #e2e2e2;
  --ev-soft: #f5f5f5;
  --ev-radius: 10px;
  --ev-head: "Albert Sans", var(--nv-fallback-ff), sans-serif;
  color: var(--ev-ink);
  padding-top: 40px;
  padding-bottom: 72px;
}
.ev-head, .ev-crumbs, .ev-section, .ev-evening, .ev-pager, .ev-back, .ev-month, .ev-subscribe, .ev-years, .sl-prose {
  max-width: 880px;
}
.ev a { color: inherit; }
.ev-muted { color: var(--ev-muted); }

/* Headings */
.ev-h1 {
  font-family: var(--ev-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.ev-h2 {
  font-family: var(--ev-head);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 16px;
}
.ev-h3 { font-family: var(--ev-head); font-weight: 800; font-size: 1.1rem; margin: 32px 0 8px; }
.ev-lead { font-size: 1.1rem; line-height: 1.6; margin: 0 0 12px; max-width: 42em; }
.ev-cme { color: var(--ev-muted); font-size: 0.95rem; margin: 0; }
.ev-label { font-weight: 700; }
.ev-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.ev-head { margin-bottom: 40px; }
.ev-section { margin-top: 48px; }
.ev-head + .ev-section { margin-top: 0; }

/* Breadcrumbs */
.ev-crumbs { font-size: 0.9rem; color: var(--ev-muted); margin-bottom: 20px; }
.ev-crumbs a { color: var(--ev-muted); }
.ev-crumbs a:hover { color: var(--ev-ink); }

/* Buttons */
.ev-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--ev-ink);
  border-radius: 999px;
  background: var(--ev-ink);
  color: #fff !important;
  font: 700 0.95rem/1 var(--ev-head);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.ev-btn::-webkit-details-marker { display: none; }
.ev-btn:hover, .ev-btn:focus-visible { background: #2a2a2a; border-color: #2a2a2a; }
.ev-btn--ghost { background: transparent; color: var(--ev-ink) !important; }
.ev-btn--ghost:hover, .ev-btn--ghost:focus-visible { background: var(--ev-soft); border-color: var(--ev-ink); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }

/* "Pridať do kalendára" */
.ev-cal { position: relative; }
.ev-cal summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.ev-cal[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.ev-cal__menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.ev-cal__menu a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; }
.ev-cal__menu a:hover, .ev-cal__menu a:focus-visible { background: var(--ev-soft); }

/* Date badge */
.ev-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 72px;
  flex: none;
  border: 1px solid var(--ev-ink);
  border-radius: var(--ev-radius);
  text-decoration: none;
  line-height: 1.1;
  align-self: start;
}
.ev-date__wd, .ev-date__m { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.ev-date__d { font-family: var(--ev-head); font-weight: 800; font-size: 1.6rem; }

/* Evening in a list */
.ev-list { display: grid; }
.ev-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--ev-line);
}
.ev-list > .ev-row:first-child { border-top: 0; }
.ev-row__title { font-family: var(--ev-head); font-weight: 800; font-size: 1.2rem; line-height: 1.3; margin: 0 0 6px; }
.ev-row__title a { text-decoration: none; }
.ev-row__title a:hover { text-decoration: underline; }
.ev-row__meta { color: var(--ev-muted); font-size: 0.95rem; margin: 0 0 6px; }
.ev-row__chair { margin: 0 0 8px; }
.ev-row__prog summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 0;
  list-style: none;
}
.ev-row__prog summary::-webkit-details-marker { display: none; }
.ev-row__prog summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform 0.15s; }
.ev-row__prog[open] summary::before { transform: rotate(45deg); }
.ev-row__prog .ev-programme { margin-top: 8px; }

/* Month groups */
.ev-month { margin-top: 32px; }
.ev-month:first-of-type { margin-top: 8px; }
.ev-month__title {
  font-family: var(--ev-head);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ev-muted);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ev-ink);
}

/* The programme */
.ev-programme p { margin: 0 0 12px; }
.ev-programme ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: talk; }
.ev-programme li {
  counter-increment: talk;
  position: relative;
  padding: 10px 0 10px 40px;
  border-top: 1px solid var(--ev-line);
}
.ev-programme li:first-child { border-top: 0; }
.ev-programme li::before {
  content: counter(talk);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ev-soft);
  font: 700 0.8rem/26px var(--ev-head);
  text-align: center;
}
.ev-talk { display: block; font-weight: 600; line-height: 1.45; }
.ev-authors { display: block; color: var(--ev-muted); font-size: 0.93rem; margin-top: 3px; }
.ev-chair { font-size: 1.02rem; }
.ev-note { color: var(--ev-muted); font-size: 0.95rem; }

/* The next evening, large */
.ev-featured {
  border: 2px solid var(--ev-ink);
  border-radius: 16px;
  padding: 28px;
}
.ev-featured__head { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; margin-bottom: 20px; }
.ev-featured__title { font-family: var(--ev-head); font-weight: 800; font-size: 1.55rem; line-height: 1.2; margin: 0 0 6px; }
.ev-featured__title a { text-decoration: none; }
.ev-featured__title a:hover { text-decoration: underline; }
.ev-featured .ev-actions { margin-bottom: 0; }

.ev-empty { background: var(--ev-soft); border-radius: 16px; padding: 28px; }
.ev-empty p { margin: 0; max-width: 40em; }

/* A single evening */
.ev-status {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font: 700 0.8rem/1.4 var(--ev-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ev-status--next { background: var(--ev-ink); color: #fff; }
.ev-status--soon { border: 1px solid var(--ev-ink); }
.ev-status--past { background: var(--ev-soft); color: var(--ev-muted); }
.ev-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px 32px;
  margin: 24px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--ev-line);
  border-bottom: 1px solid var(--ev-line);
}
.ev-facts dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ev-muted); margin-bottom: 4px; }
.ev-facts dd { margin: 0; padding: 0; font-size: 1.05rem; line-height: 1.45; }
.ev-programme--page { margin-top: 40px; }
.ev-programme--page .ev-chair { margin-bottom: 16px; }
.ev-evening .ev-cme { margin-top: 24px; }
.ev-back { margin-top: 32px; }

/* Previous / next */
.ev-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.ev-pager a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  text-decoration: none;
  font-family: var(--ev-head);
  font-weight: 800;
  line-height: 1.3;
}
.ev-pager a:hover, .ev-pager a:focus-visible { border-color: var(--ev-ink); }
.ev-pager span { display: block; font: 400 0.85rem/1.4 var(--nv-fallback-ff), sans-serif; color: var(--ev-muted); margin-bottom: 4px; }
.ev-pager__next { text-align: right; grid-column: 2; }

/* Archive: search and years */
.ev-search { margin: 0 0 32px; }
.ev-search__label { display: block; font-weight: 700; margin-bottom: 8px; }
.ev-search__field { display: flex; gap: 8px; }
.ev-search input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--ev-ink);
  border-radius: 999px;
  font-size: 1rem;
  background: #fff;
}
.ev-search input[type="search"]:focus { outline: 3px solid rgba(0, 0, 0, 0.18); outline-offset: 2px; }
.ev-search__status { color: var(--ev-muted); font-size: 0.95rem; margin: 12px 0 0; min-height: 1.4em; }
.ev-search__results { list-style: none; margin: 0; padding: 0; }
.ev-search__results li { padding: 14px 0; border-top: 1px solid var(--ev-line); }
.ev-search__results a { font-family: var(--ev-head); font-weight: 800; text-decoration: none; }
.ev-search__results a:hover { text-decoration: underline; }
.ev-search__results .ev-hit__meta { display: block; color: var(--ev-muted); font-size: 0.9rem; margin-top: 2px; }
.ev-search__results .ev-hit__snip { display: block; font-size: 0.95rem; margin-top: 4px; }
.ev-search__results mark { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }
.ev-search__more { margin-top: 12px; }

.ev-years ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.ev-years a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  text-decoration: none;
  font-family: var(--ev-head);
  font-weight: 800;
}
.ev-years a span { font: 400 0.8rem var(--nv-fallback-ff), sans-serif; color: var(--ev-muted); }
.ev-years a:hover, .ev-years a:focus-visible { border-color: var(--ev-ink); }
.ev-years a[aria-current="page"] { background: var(--ev-ink); border-color: var(--ev-ink); color: #fff; }
.ev-years a[aria-current="page"] span { color: #ccc; }
.ev-pager + .ev-years { margin-top: 32px; }
.ev-subscribe { margin-top: 40px; color: var(--ev-muted); font-size: 0.95rem; }

/* --- Site pages ------------------------------------------------------------ */

/* Home */
.sl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ev-line);
}
.sl-hero__greeting { font-size: 1.1rem; font-style: italic; color: var(--ev-muted); margin: 0 0 8px; }
.sl-hero__title { font-size: clamp(2rem, 4.4vw, 3rem); }
.sl-hero .ev-lead { max-width: 36em; }
.sl-hero__logo { width: 100%; height: auto; justify-self: end; }
.sl-home-events { max-width: none; }
.sl-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.sl-section-head a { font-weight: 700; text-decoration: none; }
.sl-section-head a:hover { text-decoration: underline; }
.ev-empty p + p { margin-top: 8px; }

.sl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; margin-top: 48px; }
.sl-card { background: var(--ev-soft); border-radius: 16px; padding: 28px; }
.sl-card p { margin: 0 0 10px; }
.sl-card p:last-child { margin-bottom: 0; }
.sl-card a { font-weight: 700; }
.sl-card__title { font-family: var(--ev-head); font-weight: 800; font-size: 1.25rem; margin: 0 0 12px; }
.sl-big-link { font-family: var(--ev-head); font-size: 1.35rem; font-weight: 800 !important; }

/* Výbor */
.sl-group { margin-top: 40px; }
.sl-group:first-of-type { margin-top: 0; }
.sl-group__title { font-family: var(--ev-head); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ev-muted); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ev-ink); }
.sl-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.sl-person { border: 1px solid var(--ev-line); border-radius: var(--ev-radius); padding: 18px 20px; }
.sl-person__role { font: 700 0.75rem/1.4 var(--ev-head); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 6px; }
.sl-person__name { font-family: var(--ev-head); font-weight: 800; font-size: 1.05rem; line-height: 1.35; margin: 0 0 6px; }
.sl-person__mail { color: var(--ev-muted) !important; font-size: 0.93rem; overflow-wrap: anywhere; }
.sl-person__mail:hover { color: var(--ev-ink) !important; }

/* Kontakty */
.sl-prose p { margin: 0 0 14px; line-height: 1.65; }
.sl-prose a { font-weight: 700; }

/* Menu: the current page, in the header and the phone menu */
.nav-ul .current-menu-item > .wrap > a { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Menu on phones and tablets (below Neve's 960 px breakpoint). Neve hid the
   three links behind a hamburger in a full-height drawer; here the drawer's
   list shows as a strip under the logo instead, so every page is one tap away.
   CSS only, so the 404 and search pages keep the WordPress markup. */
@media (max-width: 959px) {
  .header-main[data-show-on="mobile"] .builder-item--nav-icon,
  .header-menu-sidebar .close-sidebar-panel,
  .header-menu-sidebar-overlay { display: none !important; }
  .menu_sidebar_slide_left .header-menu-sidebar {
    position: static;
    transform: none;
    visibility: visible;
    width: auto;
    height: auto;
    z-index: auto;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
  }
  .header-menu-sidebar-inner {
    display: block;
    opacity: 1;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-menu-sidebar-inner .builder-item { padding: 0; }
  .header-menu-sidebar .nav-menu-primary { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
  .header-menu-sidebar .nav-ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 28px;
    width: auto;
    margin: 0;
  }
  .header-menu-sidebar .nav-ul li { width: auto; margin: 0; flex: none; }
  .header-menu-sidebar .nav-ul li > .wrap { padding: 0; }
  .header-menu-sidebar .nav-ul li:not([class*=block]) > .wrap > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0;
    border-bottom: 3px solid transparent;
    border-top: 3px solid transparent;
    color: var(--ev-ink, #000);
    font: 700 0.95rem/1.2 "Albert Sans", Arial, sans-serif;
    white-space: nowrap;
    text-decoration: none;
  }
  .header-menu-sidebar .nav-ul li:not([class*=block]) > .wrap > a:hover { border-bottom-color: #bdbdbd; }
  .header-menu-sidebar .nav-ul li.current-menu-item:not([class*=block]) > .wrap > a { border-bottom-color: #000; text-decoration: none; }
  .header-menu-sidebar .nav-ul a::after { display: none !important; }
  .header-main[data-show-on="mobile"] .builder-item--logo { --padding: 12px 0; }
}
@media (max-width: 380px) {
  .header-menu-sidebar .nav-ul { gap: 20px; }
}

/* Footer (on every page) */
.sl-footer { background: var(--nv-dark-bg, #14171c); color: #fff; margin-top: 0; font-size: 0.95rem; }
.sl-footer a { color: #fff; }
.sl-footer a:hover { color: #cfcfcf; }
.sl-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 48px; padding-top: 48px; padding-bottom: 40px; }
.sl-footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.sl-footer__brand img { flex: none; border-radius: 50%; }
.sl-footer__brand p { margin: 0; line-height: 1.5; }
.sl-footer__brand span { color: #b5b5b5; font-size: 0.88rem; font-style: italic; }
.sl-footer__title { font: 800 0.8rem/1.4 "Albert Sans", Arial, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #b5b5b5; margin: 0 0 12px; }
.sl-footer p { margin: 0 0 10px; line-height: 1.6; }
.sl-footer ul { list-style: none; margin: 0; padding: 0; }
.sl-footer li { margin: 0 0 6px; }
.sl-footer p.sl-footer__bottom { margin: 0; border-top: 1px solid #2c3036; padding: 18px 0 24px; color: #9a9a9a; font-size: 0.85rem; }

@media (max-width: 860px) {
  .sl-hero { grid-template-columns: minmax(0, 1fr) 170px; gap: 32px; }
  .sl-footer__grid { grid-template-columns: 1fr 1fr; }
  .sl-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .ev { padding-top: 24px; padding-bottom: 48px; }
  .header .neve-site-logo { max-width: 64px !important; } /* keeps the site name on two lines */
  .sl-hero { grid-template-columns: 1fr; padding-bottom: 36px; }
  .sl-hero__logo { display: none; } /* the header already shows the emblem */
  .sl-card { padding: 22px; }
  .sl-footer__grid { grid-template-columns: 1fr; padding-top: 36px; }
  .ev-row, .ev-featured__head { grid-template-columns: 52px 1fr; gap: 14px; }
  .ev-date { width: 52px; min-height: 62px; }
  .ev-date__d { font-size: 1.35rem; }
  .ev-featured { padding: 20px; border-radius: 12px; }
  .ev-featured__title { font-size: 1.3rem; }
  .ev-pager { grid-template-columns: 1fr; }
  .ev-pager__next { grid-column: 1; }
  .ev-programme li { padding-left: 36px; }
  .ev-search__field .ev-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ev-row__prog summary::before { transition: none; }
}

/* Cookie banner (public/assets/sslba.js) and its "Nastavenia cookies" link in the footer.
   Both answers look the same: refusing is as easy as agreeing. */
.sl-footer__link { background: none; border: 0; padding: 0; margin: 0; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.sl-footer__link:hover, .sl-footer__link:focus-visible { color: #cfcfcf; text-decoration: underline; }
.sl-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000000; background: #fff; color: #000; border-top: 1px solid #e2e2e2; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12); }
.sl-consent[hidden] { display: none; }
.sl-consent__inner { display: flex; align-items: center; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.sl-consent__text { margin: 0; font-size: 0.95rem; line-height: 1.5; flex: 1; }
.sl-consent__text a { color: #000; text-decoration: underline; }
.sl-consent__actions { display: flex; gap: 12px; flex: none; }
.sl-consent__btn { min-height: 44px; padding: 0 22px; border: 2px solid #000; border-radius: 999px; background: #000; color: #fff; font: 700 0.95rem/1 "Albert Sans", Arial, sans-serif; cursor: pointer; }
.sl-consent__btn:hover, .sl-consent__btn:focus-visible { background: #2a2a2a; border-color: #2a2a2a; color: #fff; }
.sl-consent__btn:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
@media (max-width: 700px) {
  .sl-consent__inner { flex-direction: column; align-items: stretch; }
  .sl-consent__actions > * { flex: 1; }
}
