/* =============================================================
   KOB Kysak – main-v3.css  (2026 refresh v3)
   Svetlá hlavička + sezónna krajina, Barlow, vzdušné panely, dark mode.
   Vychádza z main-v2.css (ostáva ako záloha).
   Fonty Barlow / Barlow Condensed sa načítavajú cez <link> v head.php.
   ============================================================= */


/* ---------------------------------------------------------------
   1. DESIGN TOKENS
--------------------------------------------------------------- */
:root {
  --c-green:         #1b7332;
  --c-green-dark:    #145927;
  --c-green-dim:     rgba(27, 115, 50, 0.09);
  --c-green-dim2:    rgba(27, 115, 50, 0.16);
  --c-orange:        #e07b0a;
  --c-orange-dim:    rgba(224, 123, 10, 0.12);

  --c-bg:            #f5f8f2;
  --c-surface:       #ffffff;
  --c-surface-alt:   #f3f6f3;

  --c-text:          #1c2b1e;
  --c-text-muted:    #4e6353;
  --c-text-light:    #8aa08e;

  --c-border:        rgba(27, 115, 50, 0.14);
  --c-border-mid:    rgba(27, 115, 50, 0.25);

  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.11), 0 2px 6px rgba(0,0,0,0.07);

  --radius-sm: 0.25rem;
  --radius:    0.5rem;
  --radius-lg: 0.875rem;

  --font: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;

  /* v3 */
  --font-display:    'Barlow Condensed', 'Arial Narrow', sans-serif;
  --c-heading:       #125624;
  --c-heading-strong:#0e3f1c;
  --c-link:          #1b7332;
  --c-pill:          #1b7332;
  --c-pill-hover:    #145927;
  --c-text-2:        #3f5143;
  --c-line:          #e3ebdf;
  --c-line-soft:     #eef2ec;
  --c-line-strong:   #d5e2d0;
  --c-line-hover:    #b9d3b0;
  --c-hover:         #f2f7ee;
  --c-chip:          #eef3ea;
  --c-chip-text:     #3d4f41;
  --c-chip-green:    #eef5ea;
  --c-warm:          #fff1de;
  --c-warm-2:        #fff8ef;
  --c-warm-text:     #9a4d00;
  --c-header-bg:     rgba(255, 255, 255, 0.9);
  --c-glass:         rgba(255, 255, 255, 0.75);
  --c-seg:           #f1f5ef;
  --c-footer:        #0f3d1c;
  --c-highlight:     #fff6e6;
  --shadow-panel:    0 1px 2px rgba(20,50,25,0.06), 0 12px 32px -12px rgba(20,50,25,0.18);
  --shadow-pop:      0 16px 40px -16px rgba(20,50,25,0.32);
  --radius-xl:       18px;
}

/* ---------------------------------------------------------------
   2. DARK MODE
--------------------------------------------------------------- */
[data-theme="dark"] {
  --c-green:         #2fa84e;
  --c-green-dark:    #1b7332;
  --c-green-dim:     rgba(47, 168, 78, 0.12);
  --c-green-dim2:    rgba(47, 168, 78, 0.20);
  --c-orange:        #f09520;
  --c-orange-dim:    rgba(240, 149, 32, 0.15);

  --c-bg:            #111814;
  --c-surface:       #1a2218;
  --c-surface-alt:   #212d1f;

  --c-text:          #c8e0cb;
  --c-text-muted:    #7a9e80;
  --c-text-light:    #4e6e52;

  --c-border:        rgba(47, 168, 78, 0.16);
  --c-border-mid:    rgba(47, 168, 78, 0.30);

  --shadow-xs:  0 1px 3px rgba(0,0,0,0.35);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.45);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.55);

  /* v3 */
  --c-heading:       #7fd394;
  --c-heading-strong:#e3f2e5;
  --c-link:          #5cc878;
  --c-pill:          #1b7332;
  --c-pill-hover:    #22893d;
  --c-text-2:        #a9c2ad;
  --c-line:          #2a3a2c;
  --c-line-soft:     #243024;
  --c-line-strong:   #33443a;
  --c-line-hover:    #3d5640;
  --c-hover:         #223022;
  --c-chip:          #23321f;
  --c-chip-text:     #a9c2ad;
  --c-chip-green:    #23321f;
  --c-warm:          #3a2a14;
  --c-warm-2:        #2a2214;
  --c-warm-text:     #f3b56b;
  --c-header-bg:     rgba(17, 24, 20, 0.88);
  --c-glass:         rgba(26, 34, 24, 0.8);
  --c-seg:           #111814;
  --c-footer:        #0b130e;
  --c-highlight:     #2a2214;
  --shadow-panel:    0 1px 2px rgba(0,0,0,0.4), 0 12px 32px -12px rgba(0,0,0,0.6);
  --shadow-pop:      0 16px 40px -16px rgba(0,0,0,0.7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-green:         #2fa84e;
    --c-green-dark:    #1b7332;
    --c-green-dim:     rgba(47, 168, 78, 0.12);
    --c-green-dim2:    rgba(47, 168, 78, 0.20);
    --c-orange:        #f09520;
    --c-orange-dim:    rgba(240, 149, 32, 0.15);
    --c-bg:            #111814;
    --c-surface:       #1a2218;
    --c-surface-alt:   #212d1f;
    --c-text:          #c8e0cb;
    --c-text-muted:    #7a9e80;
    --c-text-light:    #4e6e52;
    --c-border:        rgba(47, 168, 78, 0.16);
    --c-border-mid:    rgba(47, 168, 78, 0.30);
    --shadow-xs:  0 1px 3px rgba(0,0,0,0.35);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.45);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.55);

    /* v3 */
    --c-heading:       #7fd394;
    --c-heading-strong:#e3f2e5;
    --c-link:          #5cc878;
    --c-pill:          #1b7332;
    --c-pill-hover:    #22893d;
    --c-text-2:        #a9c2ad;
    --c-line:          #2a3a2c;
    --c-line-soft:     #243024;
    --c-line-strong:   #33443a;
    --c-line-hover:    #3d5640;
    --c-hover:         #223022;
    --c-chip:          #23321f;
    --c-chip-text:     #a9c2ad;
    --c-chip-green:    #23321f;
    --c-warm:          #3a2a14;
    --c-warm-2:        #2a2214;
    --c-warm-text:     #f3b56b;
    --c-header-bg:     rgba(17, 24, 20, 0.88);
    --c-glass:         rgba(26, 34, 24, 0.8);
    --c-seg:           #111814;
    --c-footer:        #0b130e;
    --c-highlight:     #2a2214;
    --shadow-panel:    0 1px 2px rgba(0,0,0,0.4), 0 12px 32px -12px rgba(0,0,0,0.6);
    --shadow-pop:      0 16px 40px -16px rgba(0,0,0,0.7);
  }
}

/* ---------------------------------------------------------------
   3. BASE
--------------------------------------------------------------- */
html { height: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background-color: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* jemné vrstevnice cez celú stránku */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='260' viewBox='0 0 640 260'%3E%3Cg fill='none' stroke='%231b7332' stroke-opacity='.055' stroke-width='1.3'%3E%3Cpath d='M-10 40 C90 10 170 64 320 36 S560 12 650 46'/%3E%3Cpath d='M-10 105 C100 75 180 128 320 100 S560 76 650 110'/%3E%3Cpath d='M-10 170 C110 140 190 192 320 164 S560 140 650 174'/%3E%3Cpath d='M-10 235 C120 205 200 256 320 228 S560 204 650 238'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 640px 260px;
}
[data-theme="dark"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='260' viewBox='0 0 640 260'%3E%3Cg fill='none' stroke='%238fbf9a' stroke-opacity='.045' stroke-width='1.3'%3E%3Cpath d='M-10 40 C90 10 170 64 320 36 S560 12 650 46'/%3E%3Cpath d='M-10 105 C100 75 180 128 320 100 S560 76 650 110'/%3E%3Cpath d='M-10 170 C110 140 190 192 320 164 S560 140 650 174'/%3E%3Cpath d='M-10 235 C120 205 200 256 320 228 S560 204 650 238'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='260' viewBox='0 0 640 260'%3E%3Cg fill='none' stroke='%238fbf9a' stroke-opacity='.045' stroke-width='1.3'%3E%3Cpath d='M-10 40 C90 10 170 64 320 36 S560 12 650 46'/%3E%3Cpath d='M-10 105 C100 75 180 128 320 100 S560 76 650 110'/%3E%3Cpath d='M-10 170 C110 140 190 192 320 164 S560 140 650 174'/%3E%3Cpath d='M-10 235 C120 205 200 256 320 228 S560 204 650 238'/%3E%3C/g%3E%3C/svg%3E");
  }
}

body > .main { flex: 1 0 auto; width: 100%; }

:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }

/* Scope theme transitions to key elements only (avoid janky animations on every element) */
body, .site-header, .site-footer,
.home-tile, .page-tile,
.dropdown-menu, .modal-content,
.image-block, .random-picture,
.form-control, .custom-select,
.dashboard-panel, .main > .row:first-child {
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

/* ---------------------------------------------------------------
   4. HLAVIČKA + NAVIGÁCIA (v3)
   Svetlá priesvitná lišta, oranžová identitná linka hore,
   pill hover, aktívna položka = zelená pill. Veľkosti v px –
   menu sa pri A+ nerozsype.
--------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--c-header-bg);
  border-top: 4px solid #e07b0a;
  border-bottom: 1px solid var(--c-line);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}

.site-nav { padding: 8px 0; }

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 16px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.site-brand-mark { height: 44px; width: auto; display: block; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1; }
.site-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-heading);
}
.site-brand-sub { font-size: 12.5px; color: var(--c-text-muted); margin-top: 3px; }

.site-nav .navbar-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18.5px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--c-text);
  padding: 8px 13px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus,
.site-nav .navbar-nav .show > .nav-link {
  background: var(--c-green-dim);
  color: var(--c-heading-strong);
}
.site-nav .navbar-nav .active > .nav-link,
.site-nav .navbar-nav .active > .nav-link:hover {
  background: var(--c-pill);
  color: #ffffff;
}
.site-nav .dropdown-toggle::after { margin-left: 0.3em; vertical-align: 0.15em; opacity: 0.7; }

.site-dropdown {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  padding: 6px;
  min-width: 220px;
  margin-top: 6px;
}
.site-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--c-text);
}
.site-dropdown .dropdown-item:hover,
.site-dropdown .dropdown-item:focus {
  background: var(--c-hover);
  color: var(--c-heading-strong);
}
.site-dropdown .dropdown-item .oi { color: var(--c-link); font-size: 13px; width: 16px; text-align: center; top: 0; }
.site-dropdown .dropdown-divider { border-top-color: var(--c-line); margin: 4px 6px; }

/* pravá skupina: 2 %, Aa, prihlásenie / používateľ, burger */
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.site-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.site-login,
.site-user-btn { background: var(--c-pill); color: #ffffff !important; }
.site-login:hover,
.site-user-btn:hover,
.site-user-btn:focus { background: var(--c-pill-hover); color: #ffffff !important; }
.site-user-btn .oi { font-size: 13px; top: 0; }
.site-user-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.site-user-btn.dropdown-toggle::after { margin-left: 2px; }

.site-pill-2p {
  font-size: 16px;
  padding: 7px 12px;
  border-color: #f0b46a;
  color: var(--c-warm-text) !important;
  background: var(--c-warm-2);
}
.site-pill-2p:hover { background: var(--c-warm); }

/* Aa – ponuka zobrazenia */
.site-display { position: relative; }
.site-aa {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  color: var(--c-heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.site-aa:hover,
.site-aa[aria-expanded="true"] { border: 2px solid var(--c-link); }

.site-display-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 360px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  color: var(--c-text);
}
.site-display-pop[hidden] { display: none !important; }
.site-display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-heading);
}
.site-display-row { display: flex; flex-direction: column; gap: 7px; }
.site-display-label { font-size: 14px; font-weight: 600; color: var(--c-text-muted); }

.site-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--c-seg);
}
.site-seg button {
  height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--c-text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.site-seg button:hover { background: var(--c-hover); }
.site-seg button[aria-pressed="true"] { background: var(--c-pill); color: #ffffff; }
.site-seg .site-seg-a0 { font-size: 13px; font-weight: 700; }
.site-seg .site-seg-a1 { font-size: 16px; font-weight: 700; }
.site-seg .site-seg-a2 { font-size: 20px; font-weight: 700; }

/* burger */
.site-burger {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: 12px;
  background: var(--c-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-burger-lines,
.site-burger-lines::before,
.site-burger-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-heading);
}
.site-burger-lines { position: relative; }
.site-burger-lines::before,
.site-burger-lines::after { content: ''; position: absolute; left: 0; }
.site-burger-lines::before { top: -6px; }
.site-burger-lines::after { top: 6px; }

/* mobilné / tabletové menu (< 1200 px) */
@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse {
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .site-nav .navbar-nav {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--c-line);
  }
  .site-nav .navbar-nav .nav-link { padding: 10px 14px; }
  .site-nav .navbar-nav .site-dropdown {
    border: 0;
    box-shadow: none;
    background: transparent;
    margin: 0 0 4px;
    padding: 0 0 0 14px;
  }
  .site-nav-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 8px;
    padding: 14px 0 16px;
    border-top: 1px solid var(--c-line);
  }
  .site-display-inline { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 420px; }
}
@media (min-width: 1200px) {
  .site-actions { margin-left: 12px; }
}

@media (max-width: 575.98px) {
  .site-nav > .container { padding-left: 16px; padding-right: 16px; }
  .site-brand { gap: 9px; margin-right: 8px; }
  .site-brand-mark { height: 34px; }
  .site-brand-name { font-size: 21px; }
  .site-brand-sub { display: none; }
  .site-actions { gap: 6px; }
  .site-pill { padding: 8px 12px; font-size: 16px; }
}
@media (max-width: 400px) {
  .site-user-name { display: none; }
  .site-brand-mark { height: 30px; }
}

/* ---------------------------------------------------------------
   4b. HERO (titulka) a PÁS KRAJINY (podstránky)
--------------------------------------------------------------- */
.site-hero {
  position: relative;
  height: 390px;
  overflow: hidden;
}
.site-hero-haze {
  position: absolute;
  left: -6%;
  top: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(closest-side, var(--k-haze1), var(--k-haze2) 58%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.site-hero-text {
  position: relative;
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.site-jubilee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--c-warm);
  color: var(--c-warm-text);
  font-weight: 600;
  font-size: 0.875rem;
}
.site-jubilee-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  background: #e07b0a;
  color: #1c1206;
  border-radius: 999px;
  padding: 1px 8px;
}
.site-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.75rem;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--c-heading-strong);
}
.site-hero-title span { color: var(--c-green); }

.site-band {
  position: relative;
  height: 140px;
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}

@media (max-width: 1199.98px) {
  .site-hero { height: 320px; }
  .site-hero-text { padding-top: 48px; }
  .site-hero-title { font-size: 3.25rem; }
}
@media (max-width: 575.98px) {
  .site-hero { height: 250px; }
  .site-hero-text { padding-top: 30px; padding-left: 16px; padding-right: 16px; }
  .site-hero-title { font-size: 2.5rem; }
  .site-band { height: 84px; }
}

/* staré plávajúce tlačidlá (ak by ich niečo ešte vložilo) – nahradené ponukou Aa */
#theme-toggle, #font-size-group { display: none !important; }

/* ---------------------------------------------------------------
   6. MAIN CONTENT (v3)
--------------------------------------------------------------- */
.main { padding-top: 1.75rem; padding-bottom: 3rem; }
.page-home .main { padding-top: 0; }

@media (max-width: 575.98px) {
  .main { padding-left: 16px; padding-right: 16px; }
}

/* Nadpis podstránky (Kalendár, Fotogaléria…) – Barlow Condensed, oranžová značka */
.main .page-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: left;
  color: var(--c-heading-strong);
  border-bottom: none;
}
.main .page-title::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 0.8em;
  border-radius: 3px;
  background: var(--c-orange);
}

@media (max-width: 575.98px) {
  .main .page-title { font-size: 1.75rem; }
}

/* ---------------------------------------------------------------
   7. GENERIC SEPARATOR  (.bottom-orange — starý kód ostatných stránok)
--------------------------------------------------------------- */
.bottom-orange {
  border-bottom: 2px solid var(--c-orange);
  padding-bottom: 0.3rem;
}

/* ---------------------------------------------------------------
   8. TITULKA (v3) — php/pages/home.php
   Prihlášky + preteky v jednom paneli cez spodok krajiny,
   Novinky + Odkazovač ako vzdušné panely, rýchle odkazy.
--------------------------------------------------------------- */
.home-dash {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: -60px;
  background: var(--c-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.home-dash-col { padding: 22px 26px 16px; min-width: 0; }
.home-dash-col + .home-dash-col { border-left: 1px solid var(--c-line); }
.home-dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.home-dash-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-heading);
}
.home-dash-note { font-size: 0.85rem; color: var(--c-text-muted); }

.home-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-link);
  white-space: nowrap;
}
.home-more:hover { color: var(--c-heading-strong); }

.home-list { list-style: none; margin: 0; padding: 0; }
.home-list > li + li { border-top: 1px solid var(--c-line-soft); }

.home-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 -10px;
  padding: 10px;
  border-radius: 10px;
  color: var(--c-text);
  text-decoration: none !important;
}
a.home-row:hover { background: var(--c-hover); color: var(--c-text); }
.home-row-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 1.03rem;
  line-height: 1.35;
}
.home-row-name a { color: inherit; }
.home-row-name a:hover { color: var(--c-link); }
.home-row-sub { display: block; font-size: 0.875rem; color: var(--c-text-muted); }

.home-chip {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--c-chip);
  color: var(--c-chip-text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.home-chip-soon { background: var(--c-warm); color: var(--c-warm-text); }

.home-event { padding-top: 7px; padding-bottom: 7px; }
.home-date { flex: 0 0 48px; text-align: center; line-height: 1; }
.home-date-d {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--c-link);
}
.home-date-m {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.home-event-text { flex: 1 1 auto; min-width: 0; }

.home-empty { margin: 4px 0 8px; font-size: 0.95rem; color: var(--c-text-muted); }

/* pozvánka do areálu stálych kontrol */
.home-invite {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--c-line);
  background: var(--c-glass);
  color: var(--c-text);
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.home-invite:hover { border-color: var(--c-line-hover); background: var(--c-surface); color: var(--c-text); }
.home-invite-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-warm);
  color: var(--c-warm-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.home-invite-icon .oi { top: 0; }
.home-invite-text { flex: 1 1 auto; min-width: 0; }
.home-invite-text strong { display: block; font-size: 1.06rem; font-weight: 700; }
.home-invite-text span { display: block; font-size: 0.94rem; color: var(--c-text-muted); }
.home-invite-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--c-link);
  white-space: nowrap;
}

/* Novinky + Odkazovač */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}
.home-panel {
  min-width: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.home-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px 6px;
}
.home-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-heading);
}
.home-panel-title::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 24px;
  border-radius: 3px;
  background: #e07b0a;
}
.home-panel-body { padding: 4px 26px 16px; }

/* novinky – výstup NewsFunctions::getNewsTiles(…, 'home-tile') */
.home-tile {
  display: flex;
  flex-direction: column;
  margin: 0 -14px;
  padding: 14px;
  border-radius: 12px;
  transition: background 0.13s ease;
}
.home-tile + .home-tile { border-top: 1px solid var(--c-line-soft); }
.home-tile:hover { background: var(--c-hover); }
.home-tile > .title {
  order: 2;
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-heading-strong);
  text-decoration: none;
  cursor: default;
}
.home-tile > .date {
  order: 1;
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--c-text-muted);
  text-decoration: none;
  cursor: default;
}
.home-tile > .content {
  order: 3;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--c-text-2);
  overflow-wrap: anywhere;
}
.home-tile > .content img { max-width: 100%; height: auto; }

/* náhodná fotka – spodok panelu Novinky */
.random-picture {
  position: relative;
  text-align: center;
  border-top: 1px solid var(--c-line);
  background: var(--c-surface-alt);
  overflow: hidden;
}
.random-picture a { position: relative; display: block; }
.random-picture img {
  display: block;
  max-width: 100%;
  max-height: 30rem;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.random-picture img.loaded { opacity: 1; }
.random-picture-caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  background: rgba(10, 20, 12, 0.62);
  border-left: 3px solid var(--c-orange);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.random-picture-caption.visible { opacity: 1; transform: translateY(0); }

/* odkazovač */
.home-write {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--c-chip-green);
  color: var(--c-heading) !important;
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  text-decoration: none !important;
}
.home-write:hover { background: var(--c-hover); }
.home-write .oi { font-size: 0.7rem; top: 0; }

.home-msg { display: flex; gap: 12px; padding: 13px 0; }
.home-msg + .home-msg { border-top: 1px solid var(--c-line-soft); }
.home-avatar {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.home-avatar-0 { background: #dcecd4; color: #125624; }
.home-avatar-1 { background: #fde7c8; color: #6b3600; }
.home-avatar-2 { background: #e6eef5; color: #284a63; }
[data-theme="dark"] .home-avatar-0 { background: #2a3d2b; color: #a6dcb2; }
[data-theme="dark"] .home-avatar-1 { background: #3a2a14; color: #f3b56b; }
[data-theme="dark"] .home-avatar-2 { background: #263240; color: #a9c8e0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home-avatar-0 { background: #2a3d2b; color: #a6dcb2; }
  :root:not([data-theme="light"]) .home-avatar-1 { background: #3a2a14; color: #f3b56b; }
  :root:not([data-theme="light"]) .home-avatar-2 { background: #263240; color: #a9c8e0; }
}
.home-msg-body { flex: 1 1 auto; min-width: 0; }
.home-msg-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.home-msg-name { font-weight: 700; font-size: 0.97rem; }
.home-msg-time { font-size: 0.84rem; color: var(--c-text-muted); }
.home-msg-text {
  margin-top: 2px;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--c-text-2);
  overflow-wrap: anywhere;
}
.home-msg-text img { max-height: 1.4em; vertical-align: middle; }
.home-more-bottom { display: inline-block; margin-top: 6px; }

/* rýchle odkazy */
.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.home-qtile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-text);
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.home-qtile:hover { border-color: var(--c-line-hover); background: var(--c-hover); color: var(--c-text); }
.home-qtile .oi { color: var(--c-link); font-size: 1.4rem; top: 0; }
.home-qtile strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--c-heading-strong);
}
.home-qtile span:last-child { font-size: 0.9rem; line-height: 1.45; color: var(--c-text-muted); }

@media (max-width: 991.98px) {
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767.98px) {
  .home-dash { grid-template-columns: minmax(0, 1fr); }
  .home-dash-col + .home-dash-col { border-left: 0; border-top: 1px solid var(--c-line); }
  .home-grid { margin-top: 28px; }
  .home-tiles { margin-top: 28px; }
}
@media (max-width: 575.98px) {
  .home-dash-col { padding: 18px 20px 12px; }
  .home-panel-head { padding: 18px 20px 4px; }
  .home-panel-body { padding: 4px 20px 14px; }
  .home-panel-title { font-size: 1.6rem; }
  .home-invite { padding: 12px 14px; gap: 12px; }
  .home-tiles { gap: 12px; }
  .home-qtile { padding: 16px; }
}

/* ---------------------------------------------------------------
   10. PAGE TILES  (full news / messages pages)
--------------------------------------------------------------- */
.page-tile {
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  background: var(--c-surface);
  border-radius: 14px;
  border: 1px solid var(--c-line);
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.page-tile:hover { border-color: var(--c-line-hover); }

.page-tile > .title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-heading-strong);
  text-decoration: none;
  margin-bottom: 0.2rem;
}

.page-tile .date {
  display: block;
  font-size: 0.74rem;
  color: var(--c-text-light);
  font-style: italic;
  text-decoration: none;
  cursor: default;
  margin-bottom: 0.3rem;
}

.page-tile .content {
  font-size: 0.92rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   11. TABLES
--------------------------------------------------------------- */

/* Ensure text color is set — Bootstrap default #212529 won't work in dark mode */
.table { color: var(--c-text); }

table.small-padding td {
  padding: 0.28rem 0.5rem;
  color: var(--c-text-muted);
  font-size: 0.88rem;
}

/* Green-tinted zebra (replaces Bootstrap's gray) */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: var(--c-green-dim);
  color: var(--c-text);
}

.table-striped tbody tr:nth-of-type(even) {
  background-color: transparent;
  color: var(--c-text);
}

/* Borders */
.table td, .table th { border-color: var(--c-border); }

.table thead th {
  border-bottom-color: var(--c-border-mid);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Highlighted row — upcoming or today's event */
table tr.highlight td {
  background: #fef5c0 !important;
  font-weight: 600;
  color: #3a2e00;
}

[data-theme="dark"] table tr.highlight td {
  background: #332e00 !important;
  color: #f0e080;
}

/* Invalid / cancelled */
table tr.invalid td,
table tr.invalid:nth-child(even) td {
  background: var(--c-surface-alt);
  color: var(--c-text-light);
}

table tr.not-active td { background-color: rgba(220,60,60,0.09); }

table tr.separator td { border-top: 2px solid var(--c-orange) !important; }

/* Event info panel (legacy) */
.event-info {
  background: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}

/* ---------------------------------------------------------------
   11b. PRIHLÁŠKA + ZOZNAM PRIHLÁSENÝCH (v3)
   php/pages/entry_form.php, entry_list.php, php/entry_event.php
--------------------------------------------------------------- */
.ef-eyebrow {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--c-text-muted);
}
.ef-eyebrow a { color: var(--c-link); }
.ef-title { margin-bottom: 18px; }
.ef-title a { color: inherit; }
.ef-title a:hover { color: var(--c-link); }

/* karta pretekov */
.ef-event {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
}
.ef-event-date {
  flex: 0 0 64px;
  padding: 8px 0 7px;
  border-radius: 14px;
  background: var(--c-chip-green);
  text-align: center;
  line-height: 1;
}
.ef-event-day {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--c-link);
}
.ef-event-month {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.ef-event-body { flex: 1 1 auto; min-width: 0; }
.ef-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
}
.ef-event-meta dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.ef-event-meta dd { margin: 1px 0 0; font-size: 1.02rem; font-weight: 600; color: var(--c-text); }
.ef-deadline {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: 1px;
}
.ef-deadline-ok { background: var(--c-chip-green); color: var(--c-link); }
.ef-deadline-soon { background: var(--c-warm); color: var(--c-warm-text); }
.ef-deadline-closed { background: rgba(192, 57, 43, 0.1); color: #b03a2e; }
.ef-event-info { margin: 10px 0 0; font-size: 0.95rem; color: var(--c-text-2); }
.ef-event-links { margin-top: 10px; }
.ef-event-actions { flex: 0 0 auto; align-self: center; display: flex; gap: 8px; }

/* pill tlačidlá */
.ef-btn-ghost,
.ef-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ef-btn-ghost {
  border: 1px solid var(--c-line-strong);
  background: var(--c-surface);
  color: var(--c-text) !important;
}
.ef-btn-ghost:hover { border-color: var(--c-line-hover); background: var(--c-hover); }
.ef-btn-ghost .oi { top: 0; font-size: 0.85em; color: var(--c-link); }
.ef-btn-primary { background: var(--c-pill); border: 1px solid var(--c-pill); color: #fff !important; }
.ef-btn-primary:hover { background: var(--c-green-dark); }
.ef-count {
  display: inline-block;
  min-width: 24px;
  margin-left: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--c-chip-green);
  color: var(--c-link);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}

/* správy */
.ef-flash,
.ef-locked-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 14px;
  font-weight: 600;
}
.ef-flash .oi, .ef-locked-banner .oi { top: 0; flex: 0 0 auto; }
.ef-flash-ok { background: var(--c-chip-green); border: 1px solid var(--c-line-hover); color: var(--c-link); }
.ef-flash-warn,
.ef-locked-admin { background: var(--c-warm); border: 1px solid rgba(224, 123, 10, 0.3); color: var(--c-warm-text); }
.ef-locked-banner:not(.ef-locked-admin) {
  background: rgba(192, 57, 43, 0.07);
  border: 1px solid rgba(192, 57, 43, 0.22);
  color: #b03a2e;
}

/* dva formuláre */
.ef-forms {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.ef-panel,
.el-panel {
  min-width: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  padding: 20px 24px 22px;
}
.ef-panel-other { background: var(--c-warm-2); }
.el-panel { overflow: hidden; }
.ef-panel-head,
.el-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.ef-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-heading);
}
.ef-panel-title::before {
  content: '';
  flex: 0 0 auto;
  width: 5px;
  height: 20px;
  border-radius: 3px;
  background: #e07b0a;
}
.ef-status {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--c-chip);
  color: var(--c-chip-text);
  font-size: 0.85rem;
  font-weight: 700;
}
.ef-status .oi { top: 1px; font-size: 0.8em; }
.ef-status-in { background: var(--c-chip-green); color: var(--c-link); border: 1px solid var(--c-line-hover); }
.ef-status-admin { background: var(--c-warm); color: var(--c-warm-text); }

.ef-form label,
.ef-stages legend {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-text-2);
}
.ef-hint { font-weight: 400; color: var(--c-text-muted); }
.ef-form .form-control { height: 42px; font-size: 1rem; border-radius: 10px; }
.ef-person {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.ef-person-label { font-size: 0.85rem; font-weight: 700; color: var(--c-text-2); }
.ef-person strong { font-size: 1.15rem; color: var(--c-text); }
.ef-field { margin-bottom: 14px; }
.ef-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 0 14px;
}
.ef-stages {
  margin: 2px 0 14px;
  padding: 12px 14px 4px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-surface);
}
.ef-stages legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; }
.ef-stage {
  clear: both;
  display: grid;
  grid-template-columns: minmax(48px, auto) minmax(0, 1fr) 84px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ef-form .ef-stage-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-heading);
}
.ef-error { clear: both; margin: 4px 0 10px; font-size: 0.9rem; font-weight: 600; color: #b03a2e; }
.ef-form .form-control.is-invalid { border-color: #c0392b; }

.ef-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
}
.ef-form-actions .btn { min-height: 44px; padding: 8px 22px; border-radius: 999px; font-weight: 700; }
.ef-form-actions .ef-btn-del { order: -1; margin-right: auto; }
.ef-form-actions .btn.is-sending { opacity: 0.75; }

.ef-entered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.ef-entered-label { font-size: 0.85rem; font-weight: 700; color: var(--c-text-2); margin-right: 2px; }
.ef-entered-chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  color: var(--c-text) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}
.ef-entered-chip:hover { border-color: var(--c-line-hover); background: var(--c-hover); }
.ef-entered-chip-active { background: var(--c-pill); border-color: var(--c-pill); color: #fff !important; }
.ef-entered-chip-active:hover { background: var(--c-green-dark); }
.ef-member-state { margin: -4px 0 14px; font-size: 0.92rem; font-weight: 600; color: var(--c-link); }
.ef-member-state .oi { top: 1px; font-size: 0.85em; }
.ef-other-empty { margin: 0; font-size: 0.95rem; color: var(--c-text-muted); }

.ef-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* zoznam prihlásených */
.el-export { display: flex; flex-wrap: wrap; gap: 8px; }
.el-empty { margin: 0; color: var(--c-text-muted); }
.el-summary { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.el-summary-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.el-summary-stage {
  min-width: 34px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-heading);
}
.el-cat-chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--c-chip);
  color: var(--c-chip-text);
  font-size: 0.85rem;
  font-weight: 600;
}
.el-cat-chip b { color: var(--c-link); margin-left: 2px; }
.el-table-wrap { margin: 0 -24px -22px; overflow-x: auto; }
.el-table { margin: 0; }
.el-table thead th {
  padding: 10px 14px;
  background: var(--c-surface-alt);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.el-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--c-line-soft);
  vertical-align: middle;
  color: var(--c-text);
}
.el-table tbody tr:hover td { background: var(--c-hover); }
.el-table th:first-child, .el-table td:first-child { padding-left: 24px; }
.el-table th:last-child, .el-table td:last-child { padding-right: 24px; }
.el-col-n { width: 1%; color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
.el-name { font-weight: 700; white-space: nowrap; }
.el-reg, .el-si { color: var(--c-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.el-col-cat { white-space: nowrap; }
.el-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--c-chip-green);
  color: var(--c-link);
  font-weight: 700;
  font-size: 0.92rem;
}
.el-none { color: var(--c-text-muted); }
.el-note, .el-acc { color: var(--c-text-2); font-size: 0.95rem; }
.el-lbl { display: none; }
.el-table tr.el-me td { background: var(--c-highlight); }
.el-table tr.el-me td:first-child { box-shadow: inset 4px 0 0 #e07b0a; }
.el-me-tag {
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--c-warm);
  color: var(--c-warm-text);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 1px;
}

/* stránka Prihlášky (entries.php) */
.en-intro { margin: -6px 0 18px; color: var(--c-text-muted); }
.en-panel { margin-bottom: 20px; }
.en-list { list-style: none; margin: 0 -24px -22px; padding: 0; }
.en-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  border-top: 1px solid var(--c-line-soft);
}
.en-item:hover { background: var(--c-hover); }
.en-item.en-kys { background: var(--c-highlight); box-shadow: inset 4px 0 0 #e07b0a; }
.en-date { flex: 0 0 58px; }
.en-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.en-name { font-size: 1.12rem; font-weight: 700; color: var(--c-text); }
a.en-name:hover { color: var(--c-link); }
.en-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.92rem; color: var(--c-text-muted); }
.en-links { margin-top: 6px; }
.en-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.en-deadline { display: flex; align-items: center; gap: 6px; font-size: 0.92rem; color: var(--c-text-2); }
.en-deadline .ef-deadline { margin-left: 0; }
.en-deadline-date { font-weight: 600; }
.en-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.en-actions .ef-btn-ghost, .en-actions .ef-btn-primary { padding: 6px 14px; font-size: 0.92rem; }
.en-count-link .oi { margin-right: 2px; }

.en-closed > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.en-closed > summary::-webkit-details-marker { display: none; }
.en-closed[open] > summary { margin-bottom: 14px; }
.en-toggle { font-family: var(--font-display); font-weight: 700; color: var(--c-link); }
.en-toggle .oi { top: 1px; font-size: 0.8em; transition: transform 0.15s ease; }
.en-closed[open] .en-toggle .oi { transform: rotate(180deg); }
.en-toggle-hide, .en-closed[open] .en-toggle-show { display: none; }
.en-closed[open] .en-toggle-hide { display: inline; }
.en-item-closed { padding-top: 11px; padding-bottom: 11px; }
.en-item-closed .en-name { font-size: 1rem; font-weight: 600; color: var(--c-text-2); }
.en-closed-date { flex: 0 0 150px; font-family: var(--font-display); font-weight: 700; color: var(--c-text-muted); }

@media (max-width: 767.98px) {
  .en-list { margin: 0 -16px -18px; }
  .en-item { flex-wrap: wrap; gap: 10px 14px; padding: 14px 16px; }
  .en-date { flex-basis: 52px; }
  .en-main { flex-basis: calc(100% - 66px); }
  .en-side { flex-basis: 100%; align-items: stretch; padding-left: 66px; }
  .en-actions { justify-content: flex-start; }
  .en-item-closed .en-main { flex-basis: 100%; }
  .en-closed-date { flex-basis: 100%; }
  .en-item-closed .en-actions { justify-content: flex-start; }
}
@media (max-width: 400px) {
  .en-side { padding-left: 0; }
}

[data-theme="dark"] .ef-deadline-closed,
[data-theme="dark"] .ef-locked-banner:not(.ef-locked-admin) { background: rgba(220, 80, 60, 0.12); border-color: rgba(220, 80, 60, 0.28); color: #f08a78; }
[data-theme="dark"] .ef-error { color: #f08a78; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ef-deadline-closed,
  :root:not([data-theme="light"]) .ef-locked-banner:not(.ef-locked-admin) { background: rgba(220, 80, 60, 0.12); border-color: rgba(220, 80, 60, 0.28); color: #f08a78; }
  :root:not([data-theme="light"]) .ef-error { color: #f08a78; }
}

@media (max-width: 991.98px) {
  .ef-forms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .ef-event { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .ef-event-date { flex-basis: 54px; }
  .ef-event-body { flex-basis: calc(100% - 70px); }
  .ef-event-actions { flex-basis: 100%; }
  .ef-event-actions > a { flex: 1 1 auto; justify-content: center; }
  .ef-panel, .el-panel { padding: 16px 16px 18px; }
  .el-table-wrap { margin: 0 -16px -18px; }
}
@media (max-width: 575.98px) {
  .ef-grid { grid-template-columns: minmax(0, 1fr); }
  .ef-form-actions .btn { flex: 1 1 auto; }
  .ef-form-actions .ef-btn-del { margin-right: 0; }

  /* zoznam – riadky pod sebou */
  .el-table thead { display: none; }
  .el-table, .el-table tbody { display: block; }
  .el-table tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    padding: 12px 16px 12px 44px;
    border-top: 1px solid var(--c-line-soft);
  }
  .el-table td { display: block; padding: 0 !important; border: 0; background: none !important; font-size: 0.92rem; }
  .el-table tr.el-me { background: var(--c-highlight); box-shadow: inset 4px 0 0 #e07b0a; }
  .el-table tr.el-me td:first-child { box-shadow: none; }
  .el-table td.el-col-n { position: absolute; left: 16px; top: 12px; width: auto; font-size: 1rem; }
  .el-table td.el-name { flex: 0 0 100%; white-space: normal; font-size: 1rem; }
  .el-table td.el-acc, .el-table td.el-note { flex: 0 0 100%; }
  .el-table td.el-reg:empty, .el-table td.el-si:empty,
  .el-table td.el-acc:empty, .el-table td.el-note:empty { display: none; }
  .el-table .el-lbl { display: inline; font-weight: 700; color: var(--c-text-muted); }
}

/* ---------------------------------------------------------------
   12. GALLERY
--------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 576px) {
  .gallery-grid      { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid-3col { grid-template-columns: repeat(3, 1fr); }
}

.image-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--c-surface);
  background-color: #0d1a0f;
  padding: 0;
  margin: 0;
  height: 220px;
  display: block;
  opacity: 0.01;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.45s ease;
}

.image-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* Bottom caption gradient overlay */
.image-block > p {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: flex-end;
  font-weight: 600;
  font-size: 0.88rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, transparent 55%);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.65);
  transition: background 0.24s ease;
}

.image-block:hover > p {
  background: linear-gradient(0deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.18) 65%);
}

/* ---------------------------------------------------------------
   14. FORMS & INPUTS
--------------------------------------------------------------- */
.custom-file-label::after { content: "Zvoľ" !important; }

input.datepicker { max-width: 110px; }

div.datepicker.datepicker-dropdown.dropdown-menu { z-index: 1000000 !important; }

.form-control {
  background-color: var(--c-surface);
  border-color: var(--c-border-mid);
  color: var(--c-text);
  border-radius: var(--radius-sm);
  font-family: var(--font);
}

.form-control:focus {
  background-color: var(--c-surface);
  border-color: var(--c-green);
  color: var(--c-text);
  box-shadow: 0 0 0 0.18rem var(--c-green-dim2);
}

.form-control::placeholder { color: var(--c-text-light); }

.form-control:disabled,
.form-control[readonly] {
  background-color: var(--c-surface-alt);
  color: var(--c-text-muted);
  opacity: 1;
}

.custom-select {
  background-color: var(--c-surface);
  border-color: var(--c-border-mid);
  color: var(--c-text);
}

/* ---------------------------------------------------------------
   15. BUTTONS
--------------------------------------------------------------- */
.btn-primary {
  background-color: var(--c-green);
  border-color: var(--c-green);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--c-green-dark);
  border-color: var(--c-green-dark);
}

.btn-success {
  background-color: var(--c-green);
  border-color: var(--c-green);
  font-weight: 600;
}

.btn-success:hover, .btn-success:focus {
  background-color: var(--c-green-dark);
  border-color: var(--c-green-dark);
}

/* ---------------------------------------------------------------
   16. MODAL  (login)
--------------------------------------------------------------- */
.modal-content {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--radius-lg);
  color: var(--c-text);
  box-shadow: var(--shadow-md);
}

.modal-header, .modal-footer {
  border-color: var(--c-border);
}

.modal-header .close { color: var(--c-text-muted); }

/* ---------------------------------------------------------------
   17. PÄTA (v3)
--------------------------------------------------------------- */
.site-footer {
  margin-top: 1rem;
  background: var(--c-footer);
  border-top: 4px solid #e07b0a;
  color: #d6e8d8;
  font-size: 0.97rem;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 28px;
}
.site-footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
}
.site-footer-brand p { margin: 8px 0 14px; max-width: 380px; line-height: 1.6; color: #c3dbc6; }
.site-footer-2p {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: #e07b0a;
  color: #1c1206 !important;
  font-weight: 700;
  text-decoration: none !important;
}
.site-footer-2p:hover { background: #f09520; }
.site-footer-col { display: flex; flex-direction: column; gap: 8px; }
.site-footer-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f3b56b;
}
.site-footer-col a { color: #d6e8d8; }
.site-footer-col a:hover { color: #ffffff; }
.site-footer-bottom {
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: #a9c6ad;
}
@media (max-width: 767.98px) {
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
}

/* ---------------------------------------------------------------
   18. TYPOGRAPHY HELPERS
--------------------------------------------------------------- */
.type-hg {
  background-color: var(--c-orange-dim);
  color: var(--c-orange);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.84em;
}

.headermessage {
  margin: 1rem;
  color: white;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   19. MISC OVERRIDES
--------------------------------------------------------------- */
/* Bootstrap card in dark mode */
.card {
  background-color: var(--c-surface);
  border-color: var(--c-border);
  color: var(--c-text);
}

/* Jumbotron (announcement banners) */
.jumbotron {
  background-color: var(--c-surface-alt);
  color: var(--c-text);
  border-radius: var(--radius);
}

/* Admin highlight */
tr.not-active td { background-color: rgba(220,60,60,0.09); }

/* Alert links */
a { color: var(--c-green); }
a:hover { color: var(--c-green-dark); }

/* Calendar download link */
.stred { text-align: center; }

/* ---------------------------------------------------------------
   20. CALENDAR PAGE
--------------------------------------------------------------- */

/* Header row: year selector + actions */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cal-year-form { margin: 0; }

.cal-year-select {
  width: auto !important;
  min-width: 84px;
  display: inline-block;
  font-weight: 600;
  color: var(--c-text);
  background-color: var(--c-surface);
  border-color: var(--c-border-mid);
  border-radius: var(--radius);
}

.cal-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Table column widths */
.cal-col-date  { width: 100px; white-space: nowrap; }
.cal-col-entry { width: 110px; }
.cal-col-place { width: 160px; }
.cal-col-edit  { width: 40px; }

/* Date cell */
.cal-date {
  white-space: nowrap;
  font-size: 0.87rem;
  color: var(--c-text-muted);
}

/* Event name */
.cal-event-name {
  font-weight: 600;
  color: var(--c-green);
  display: block;
  margin-bottom: 0.1rem;
}

.cal-event-name a { color: var(--c-green); }
.cal-event-name a:hover { color: var(--c-green-dark); }

/* Deadline & entry list */
.cal-entry-cell { font-size: 0.83rem; }

.cal-deadline {
  display: block;
  font-size: 0.75rem;
  color: var(--c-text-light);
  margin-bottom: 0.15rem;
}

/* Place */
.cal-place { font-size: 0.87rem; }
.cal-place-name { color: var(--c-text-muted); font-size: 0.8rem; }

/* ---- Calendar link chips ---------------------------------------- */

.cal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.32rem;
}

.cal-lnk {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.22rem 0.58rem;
  border-radius: 2rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: filter 0.13s ease, opacity 0.13s ease;
}

.cal-lnk:hover { filter: brightness(1.12); opacity: 0.88; }

/* Zvýraznený link (posledne pridaný — home news tiles) */
.cal-lnk.lnk-active {
  box-shadow: 0 0 0 2px currentColor;
  font-weight: 700;
}

/* ROZPIS (0) — oranžový */
.lnk-t0 {
  background: var(--c-orange-dim);
  color: var(--c-orange);
  border: 1px solid rgba(224, 123, 10, 0.28);
}

/* POKYNY (2) — zelený */
.lnk-t2 {
  background: var(--c-green-dim);
  color: var(--c-green);
  border: 1px solid var(--c-border);
}

/* STARTOVKA (4) — modrý */
.lnk-t4 {
  background: rgba(30, 100, 180, 0.09);
  color: #1a60a0;
  border: 1px solid rgba(30, 100, 180, 0.22);
}

/* VYSLEDKY (6) — tučný zelený */
.lnk-t6 {
  background: var(--c-green-dim2);
  color: var(--c-green);
  border: 1px solid var(--c-border-mid);
  font-weight: 700;
}

/* MEDZICASY (7) — neutrálny */
.lnk-t7 {
  background: transparent;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border-mid);
}

/* FOTKY (8) — teplý */
.lnk-t8 {
  background: rgba(180, 80, 20, 0.09);
  color: #b05018;
  border: 1px solid rgba(180, 80, 20, 0.22);
}

/* ---- Past event rows (end_date > 7 days ago) -------------------- */

.cal-row-past td { opacity: 0.38; }
.cal-row-past:hover td { opacity: 0.65; }
.cal-row-past .cal-event-name,
.cal-row-past .cal-event-name a { color: var(--c-text-muted); }

/* ---- Dark mode adjustments for non-CSS-var colors --------------- */
/* Dark mode adjustments for non-CSS-var colors */
[data-theme="dark"] .lnk-t4 {
  background: rgba(60, 140, 220, 0.14);
  color: #60a8e0;
  border-color: rgba(60, 140, 220, 0.28);
}

[data-theme="dark"] .lnk-t8 {
  background: rgba(220, 110, 40, 0.14);
  color: #e08040;
  border-color: rgba(220, 110, 40, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lnk-t4 {
    background: rgba(60, 140, 220, 0.14);
    color: #60a8e0;
    border-color: rgba(60, 140, 220, 0.28);
  }
  :root:not([data-theme="light"]) .lnk-t8 {
    background: rgba(220, 110, 40, 0.14);
    color: #e08040;
    border-color: rgba(220, 110, 40, 0.28);
  }
}

/* ================================================================
   Interaktívna mapa – Miestne názvy  (?page=map)
   ================================================================ */

.map-page {
  margin: 0.75rem 0 1.5rem;
}

.map-admin-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#local-map {
  height: 76vh;
  min-height: 520px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  background: #c8d8c0;
}

/* Farebný krúžok – marker */
.map-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 1px 5px rgba(0,0,0,0.45);
  cursor: pointer;
  transition: transform 0.12s;
}
.map-marker:hover { transform: scale(1.35); }

/* Popup obsah */
.map-popup { font-size: 0.875rem; min-width: 160px; }

.map-popup-img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 0.4rem;
  display: block;
}

.map-popup-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-green);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.map-popup-desc {
  color: var(--c-text);
  font-size: 0.83rem;
  margin-bottom: 0.3rem;
  line-height: 1.45;
}

.map-popup-cat {
  font-size: 0.74rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Bodka v legende a popupe */
.map-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Leaflet overrides */
.leaflet-control-layers {
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22) !important;
  font-size: 0.83rem !important;
}
.leaflet-control-layers-list { padding: 2px 4px; }
.leaflet-popup-content-wrapper { border-radius: 10px !important; }
.leaflet-popup-tip-container { margin-top: -1px; }

/* Stály popisok pri bode — vždy svetlý (mapa je vždy svetlá) */
.leaflet-tooltip.map-label {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  border-left: 3.5px solid #999 !important;
  border-radius: 0 5px 5px 0 !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.6) !important;
  padding: 0 7px 0 5px !important;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 2;
}
.leaflet-tooltip.map-label::before { display: none; }

.leaflet-tooltip.map-label-landmark { border-left-color: #06681d !important; color: #06681d; }
.leaflet-tooltip.map-label-water    { border-left-color: #2196F3 !important; color: #1565C0; }
.leaflet-tooltip.map-label-path     { border-left-color: #4caf50 !important; color: #2e7d32; }
.leaflet-tooltip.map-label-control  { border-left-color: #9C27B0 !important; color: #6a1b9a; }
.leaflet-tooltip.map-label-other    { border-left-color: #607D8B !important; color: #37474f; }

/* ================================================================
   Trate / Okruhy  (?page=trails)
   ================================================================ */

.trails-page { margin: 0.75rem 0 1.5rem; }

.trails-admin-bar,
.trails-drawing-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

#trails-map {
  height: 76vh;
  min-height: 520px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

/* Výber farby trasy */
.trail-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.trail-color-opt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
}
.trail-color-opt span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.trail-color-opt input { margin: 0; cursor: pointer; }

/* Legenda trás */
.trails-legend {
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20);
  padding: 0.55rem 0.75rem;
  min-width: 180px;
  max-width: 260px;
  font-size: 0.82rem;
}
.trails-legend-title {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-green);
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 0.3rem;
}
.trails-legend-empty {
  color: #aaa;
  font-size: 0.78rem;
}
.trails-legend-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0;
  cursor: pointer;
  margin: 0;
  border-radius: 4px;
}
.trails-legend-row:hover { background: rgba(0,0,0,0.04); }
.trails-legend-row input[type="checkbox"] { cursor: pointer; margin: 0; flex-shrink: 0; }
.trails-legend-swatch {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.trails-legend-name {
  flex: 1;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trails-legend-km {
  color: #999;
  font-size: 0.74rem;
  flex-shrink: 0;
}

[data-theme="dark"] .trails-legend { background: rgba(26,34,24,0.96); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .trails-legend { background: rgba(26,34,24,0.96); }
}

/* Body na mape trás */
.tpt-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-orange, #e07b0a);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.leaflet-tooltip.tpt-label {
  background: rgba(255,255,255,0.93) !important;
  border: none !important;
  border-left: 3px solid #e07b0a !important;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: 0 1px 5px rgba(0,0,0,0.20) !important;
  padding: 0 6px 0 5px !important;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8a4a00;
  white-space: nowrap;
  line-height: 1.9;
}
.leaflet-tooltip.tpt-label::before { display: none; }

/* Vertex handle pri editácii trasy */
.trail-vertex {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  cursor: move;
}

/* Popup trasy */
.trail-popup { font-size: 0.9rem; }
.trail-popup-name { font-weight: 700; font-size: 1rem; color: var(--c-green); margin-bottom: 0.2rem; }
.trail-popup-desc { font-size: 0.83rem; color: var(--c-text); margin-bottom: 0.2rem; }
.trail-popup-meta { font-size: 0.75rem; color: #888; }

/* Tmavé pozadie okolo mapy v dark mode */
[data-theme="dark"] #local-map {
  background: #111814;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #local-map {
    background: #111814;
  }
}

/* ================================================================
   Vyskúšajte O-beh — Kysak  (/compass, ?page=vyskusaj_ob)
   ================================================================ */

.ob-public-page {
  margin: 0.5rem 0 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ob-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.25rem;
  color: #f3faf4;
  background:
    linear-gradient(125deg, rgba(27, 115, 50, 0.94) 0%, rgba(22, 90, 40, 0.88) 48%, rgba(224, 123, 10, 0.72) 100%),
    radial-gradient(ellipse at 85% 20%, rgba(255, 255, 255, 0.18), transparent 45%);
  box-shadow: 0 2px 14px rgba(27, 115, 50, 0.18);
}

.ob-hero-status {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1c2b1e;
  background: #ffd27a;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.ob-hero-place {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ob-hero-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.ob-hero-subtitle {
  margin: 0 0 0.75rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 236, 200, 0.95);
  letter-spacing: 0.01em;
}

.ob-hero-lead {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.ob-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.ob-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

.ob-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  color: var(--c-green);
  font-size: 0.75rem;
  font-weight: 800;
}

.ob-panel {
  background: var(--c-surface);
  border-radius: 12px;
  padding: 1.05rem 1.2rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--c-green);
}

.ob-intro > p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.ob-intro-more-link {
  margin-top: 0.35rem;
}

.ob-intro-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(27, 115, 50, 0.08);
  color: var(--c-green);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ob-intro-link:hover {
  background: rgba(27, 115, 50, 0.14);
  color: var(--c-green);
  text-decoration: none;
}

.ob-intro-link-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-muted, #6a7a6c);
}

.ob-intro-more {
  margin-top: 0.85rem;
  border-top: 1px solid rgba(27, 115, 50, 0.12);
  padding-top: 0.75rem;
}

.ob-intro-more-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  color: var(--c-green);
  font-weight: 700;
  font-size: 0.95rem;
  user-select: none;
}

.ob-intro-more-toggle::-webkit-details-marker {
  display: none;
}

.ob-intro-more-toggle::before {
  content: "＋";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(27, 115, 50, 0.12);
  color: var(--c-green);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.ob-intro-more[open] .ob-intro-more-toggle::before {
  content: "−";
}

.ob-intro-more-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-muted, #6a7a6c);
  letter-spacing: 0.01em;
}

.ob-intro-more-body {
  margin-top: 0.95rem;
  padding-top: 0.15rem;
}

.ob-intro-h {
  margin: 1.15rem 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--c-text);
}

.ob-intro-more-body > .ob-intro-h:first-child {
  margin-top: 0;
}

.ob-intro-steps {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.ob-intro-steps li {
  margin-bottom: 0.4rem;
}

.ob-intro-note {
  margin: 0 0 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(27, 115, 50, 0.06);
  border-left: 3px solid var(--c-green);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ob-intro-note a {
  color: var(--c-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ob-intro-map {
  margin: 0.75rem 0 1rem;
}

.ob-intro-map img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ob-intro-map figcaption {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--c-muted, #6a7a6c);
  max-width: 40rem;
}

.ob-intro-legend {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.4rem 1rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.ob-intro-legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ob-legend-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.ob-legend-purple { background: #c44ad1; }
.ob-legend-brown { background: #a56a2a; }
.ob-legend-green { background: #3a9a3a; }
.ob-legend-yellow { background: #f0d84a; }
.ob-legend-blue { background: #3a7fd4; }
.ob-legend-black { background: #222; }

.ob-intro-pictos {
  list-style: none;
  margin: 0.65rem 0 0.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}

.ob-intro-pictos li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
}

.ob-intro-pictos img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ================================================================
   Orientačný beh — detail  (/orientacny-beh)  — rovnaký jazyk ako /compass
   ================================================================ */

.ob-backlink {
  margin: -0.35rem 0 0;
  font-size: 0.88rem;
}

.ob-backlink a {
  color: var(--c-muted, #6a7a6c);
  font-weight: 600;
  text-decoration: none;
}

.ob-backlink a:hover {
  color: var(--c-green);
}

.ob-about-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.ob-about-flow li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.ob-about-flow strong {
  display: block;
  font-size: 0.95rem;
  color: var(--c-text);
}

.ob-about-flow span:not(.ob-section-num) {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--c-muted, #6a7a6c);
}

.ob-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}

.ob-thumb-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 11rem));
}

.ob-thumb-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 48rem;
  gap: 0.85rem;
}

@media (max-width: 575px) {
  .ob-thumb-grid-3 {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }
}

.ob-thumb {
  margin: 0;
}

.ob-thumb a {
  display: block;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
}

.ob-thumb a:focus {
  outline: 2px solid var(--c-green, #1b7332);
  outline-offset: 2px;
}

.ob-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f4f6f4;
  transition: opacity 0.15s ease;
}

.ob-thumb a:hover img {
  opacity: 0.92;
}

.ob-thumb-grid-3 .ob-thumb img {
  aspect-ratio: 4 / 3;
  object-position: center 35%;
}

.ob-thumb figcaption {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: var(--c-muted, #6a7a6c);
}

.ob-pictos-label {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-muted, #6a7a6c);
}

.ob-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(10rem, 0.8fr);
  gap: 1rem 1.25rem;
  align-items: start;
  margin-top: 0.75rem;
}

.ob-map-thumb {
  margin: 0;
}

.ob-map-thumb img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ob-map-thumb figcaption {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--c-muted, #6a7a6c);
}

.ob-intro-legend-compact {
  grid-template-columns: 1fr;
  margin: 0;
  gap: 0.4rem;
  font-size: 0.86rem;
}

@media (max-width: 575px) {
  .ob-thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ob-map-row {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .ob-thumb img,
[data-theme="dark"] .ob-map-thumb img,
[data-theme="dark"] .ob-intro-pictos img {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1a2218;
}

[data-theme="dark"] .ob-intro-link {
  background: rgba(47, 168, 78, 0.12);
}

[data-theme="dark"] .ob-intro-link:hover {
  background: rgba(47, 168, 78, 0.2);
}

[data-theme="dark"] .ob-intro-note {
  background: rgba(47, 168, 78, 0.1);
}

.ob-section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 0.65rem;
}

/* Zbaliteľné sekcie na /compass (pri oskenovanej kontrole default zatvorené)
   Bootstrap reboot: summary { display: list-item } → native ▼ samotný nad h2.
   Musí byť flex riadok [icon] [title]; marker skryť vo WebKit aj Firefox. */
.ob-fold.ob-panel {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.ob-fold > summary.ob-fold-summary {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
  cursor: pointer;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}

.ob-fold > summary.ob-fold-summary::-webkit-details-marker {
  display: none !important;
}

.ob-fold > summary.ob-fold-summary::marker {
  content: none;
  display: none;
  font-size: 0;
  color: transparent;
}

.ob-fold-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(27, 115, 50, 0.12);
  color: var(--c-green);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.ob-fold-icon::before {
  content: "+";
}

.ob-fold[open] > .ob-fold-summary .ob-fold-icon::before {
  content: "−";
}

.ob-fold > summary.ob-fold-summary > .ob-section-title {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  margin: 0;
  line-height: 1.3;
}

.ob-fold-body {
  margin-top: 0.75rem;
  padding-top: 0.15rem;
}

.ob-fold-body > p:last-child,
.ob-fold-body > .ob-compass-app:last-child,
.ob-fold-body > .ob-route-grid:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .ob-fold-icon {
  background: rgba(47, 168, 78, 0.18);
}

.ob-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ob-app-download-lead,
.ob-routes-lead {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  color: var(--c-text);
  opacity: 0.9;
}

.ob-store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 440px;
}

.ob-store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem 0.6rem;
  border-radius: 12px;
  background: rgba(27, 115, 50, 0.04);
  border: 1px solid rgba(27, 115, 50, 0.1);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ob-store-card:hover {
  background: rgba(27, 115, 50, 0.08);
  border-color: rgba(27, 115, 50, 0.22);
  text-decoration: none;
  color: inherit;
  transform: translateY(-1px);
}

.ob-store-label {
  font-weight: 700;
  color: var(--c-green);
  font-size: 0.95rem;
}

.ob-store-sub {
  font-size: 0.78rem;
  color: var(--c-muted, #6a7a6c);
}

@media (max-width: 420px) {
  .ob-store-grid {
    grid-template-columns: 1fr;
    max-width: 220px;
    margin: 0 auto;
  }
}

.ob-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.ob-route-card {
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}

.ob-route-card:hover {
  box-shadow: 0 4px 16px rgba(27, 115, 50, 0.1);
}

.ob-route-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.ob-route-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.ob-route-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  background: var(--c-green);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ob-route-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--c-green);
  line-height: 1.25;
}

.ob-route-diff {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.ob-route-diff-a { color: #b84a0a; }
.ob-route-diff-b { color: var(--c-orange); }
.ob-route-diff-c { color: #2a8a45; }

.ob-route-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.ob-route-chips li {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(224, 123, 10, 0.12);
  color: #9a5508;
  font-size: 0.78rem;
  font-weight: 600;
}

.ob-route-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  flex: 1 1 auto;
}

.ob-route-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.ob-qr-wrap {
  padding: 0.55rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ob-qr {
  border-radius: 6px;
  display: block;
  max-width: 100%;
  height: auto;
}

.ob-qr-hint {
  font-size: 0.8rem;
  color: var(--c-muted, #6a7a6c);
}

.ob-placeholder {
  font-size: 0.88rem;
}

.ob-compass-app {
  font-size: 0.85rem;
  margin: 1rem 0 0;
  word-break: break-all;
}

.ob-funding {
  border-top-color: #0b4f9c;
  background: linear-gradient(180deg, #f7fafc 0%, #fff 100%);
}

.ob-funding-text {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1.45;
  color: #123a6b;
  text-align: center;
}

.ob-funding-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.35rem 2rem;
}

.ob-funding-logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 4.5rem;
}

.ob-funding-logo img {
  display: block;
  height: auto;
  max-height: 58px;
  width: auto;
  max-width: min(100%, 200px);
  object-fit: contain;
}

.ob-funding-logo-min img {
  max-height: 52px;
  max-width: min(100%, 210px);
}

/* Široké claim logo Región Šariš — vizuálna výška blízko ministerstva */
.ob-funding-logo-saris img {
  max-height: 50px;
  max-width: min(100%, 200px);
}

.ob-funding-logo figcaption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-muted, #6a7a6c);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.ob-funding-footer {
  margin-top: 0.25rem;
}

/* Fotka informačnej tabule pri štarte */
.ob-stand-photo {
  margin: 0;
  padding: 0;
}
.ob-stand-photo a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}
.ob-stand-photo img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}
.ob-stand-photo figcaption {
  margin: 0.5rem 0.15rem 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--c-muted, #6a7a6c);
  text-align: center;
}

.ob-funding-footer .ob-funding-text {
  font-size: 0.98rem;
}

@media (max-width: 575px) {
  .ob-funding-logos {
    gap: 1.1rem 1.35rem;
  }
  .ob-funding-logo {
    min-height: 3.75rem;
  }
  .ob-funding-logo img {
    max-height: 48px;
  }
  .ob-funding-logo-min img {
    max-height: 44px;
    max-width: min(100%, 180px);
  }
  .ob-funding-logo-saris img {
    max-height: 42px;
    max-width: min(100%, 170px);
  }
}

.ob-alt-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.35rem 0 0.15rem;
  color: var(--c-muted, #6a7a6c);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ob-alt-divider::before,
.ob-alt-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27, 115, 50, 0.28), transparent);
}

.ob-alt-divider span {
  flex: 0 0 auto;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(27, 115, 50, 0.07);
  border: 1px solid rgba(27, 115, 50, 0.12);
}

.ob-section-num-alt {
  background: var(--c-orange);
}

.ob-map-section.ob-panel {
  padding-bottom: 1rem;
  border-top-color: var(--c-orange);
}

.ob-map-intro {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
  max-width: 42rem;
}

.ob-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

/* Kotva z úvodu — sticky navbar nesmie prekryť tlačidlo */
#ob-btn-scan-pole {
  scroll-margin-top: 5.5rem;
}

.ob-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ob-map-hint {
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.ob-map-layer-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.ob-map-layer-switch-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-text-muted, #4e6353);
  margin-right: 0.1rem;
}

.ob-map-layer-btn {
  border: 1px solid var(--c-border-mid, rgba(27, 115, 50, 0.25));
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: 2rem;
  padding: 0.28rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ob-map-layer-btn:hover {
  background: var(--c-green-dim, rgba(27, 115, 50, 0.09));
}

.ob-map-layer-btn.active {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}

#ob-public-map {
  height: min(72vh, 640px);
  min-height: 280px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
  background: #e8efe8;
  border: 1px solid rgba(27, 115, 50, 0.1);
}

/* QR z kolíka — banner + skener */
.ob-control-focus {
  margin: 0;
}

.ob-control-focus-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(224, 123, 10, 0.35);
  border-left: 4px solid var(--c-orange);
  padding: 1rem 1.1rem 0.95rem;
}

.ob-control-focus-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.ob-control-focus-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ob-control-focus-code {
  flex: 0 0 auto;
  min-width: 2.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--c-green);
}

.ob-control-focus-picto {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2px;
}

.ob-control-focus-text {
  flex: 1 1 12rem;
  min-width: 0;
}

.ob-control-focus-label {
  display: block;
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-bottom: 0.15rem;
}

.ob-control-focus-desc {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text);
  text-transform: lowercase;
  line-height: 1.25;
}

.ob-control-focus-hint {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.84rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}

.ob-control-focus-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-green);
  text-decoration: none !important;
}

.ob-control-focus-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.15rem;
}

.ob-control-focus-link:hover {
  text-decoration: underline !important;
}

.ob-desc-item--focus {
  border-color: rgba(224, 123, 10, 0.55);
  background: rgba(224, 123, 10, 0.1);
  box-shadow: 0 0 0 2px rgba(224, 123, 10, 0.2);
}

@keyframes ob-desc-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(224, 123, 10, 0.25); }
  50% { box-shadow: 0 0 0 5px rgba(224, 123, 10, 0.45); }
}

.ob-desc-item--pulse {
  animation: ob-desc-pulse 1.1s ease-in-out 3;
}

body.ob-qr-modal-open {
  overflow: hidden;
}

.ob-qr-modal[hidden] {
  display: none !important;
}

.ob-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ob-qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 18, 0.55);
}

.ob-qr-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--c-surface);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 1.1rem 1.15rem 1.15rem;
}

.ob-qr-modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.ob-qr-modal-title {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-green);
}

.ob-qr-modal-lead {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.45;
}

.ob-qr-scanner-wrap {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.ob-qr-video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  background: #000;
}

.ob-qr-scanner-status {
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  color: #c8e0cb;
  background: rgba(27, 115, 50, 0.85);
}

.ob-qr-manual label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text);
}

.ob-qr-manual-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.ob-qr-manual-row input {
  max-width: 8rem;
}

.ob-descriptions {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(27, 115, 50, 0.12);
}

.ob-descriptions-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-green);
}

.ob-descriptions-lead {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--c-muted, #6a7a6c);
}

.ob-desc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.45rem;
}

.ob-desc-item {
  display: grid;
  grid-template-columns: 2.6rem 2.2rem 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(27, 115, 50, 0.04);
  border: 1px solid rgba(27, 115, 50, 0.08);
  font-size: 0.9rem;
}

.ob-desc-picto-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ob-desc-picto-empty {
  display: inline-block;
  background: #eee;
}

.ob-desc-code {
  font-weight: 800;
  color: var(--c-orange);
  font-size: 0.95rem;
}

.ob-desc-text {
  color: var(--c-text);
  text-transform: lowercase;
}

[data-theme="dark"] .ob-desc-item {
  background: rgba(47, 168, 78, 0.08);
  border-color: rgba(47, 168, 78, 0.16);
}

[data-theme="dark"] .ob-desc-picto-img {
  /* IOF piktogramy sú vždy čierne na bielom */
  background: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .ob-hero {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .ob-store-card {
  background: rgba(47, 168, 78, 0.08);
  border-color: rgba(47, 168, 78, 0.18);
}

[data-theme="dark"] .ob-route-chips li {
  background: rgba(240, 149, 32, 0.16);
  color: #f0b060;
}

[data-theme="dark"] .ob-qr-wrap {
  background: #111814;
  border-color: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ob-store-card {
    background: rgba(47, 168, 78, 0.08);
    border-color: rgba(47, 168, 78, 0.18);
  }
  :root:not([data-theme="light"]) .ob-route-chips li {
    background: rgba(240, 149, 32, 0.16);
    color: #f0b060;
  }
  :root:not([data-theme="light"]) .ob-qr-wrap {
    background: #111814;
    border-color: rgba(255, 255, 255, 0.08);
  }
}

#ob-btn-gps.active {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}

.ob-mark-icon {
  background: none !important;
  border: none !important;
}

.ob-mark {
  position: relative;
  width: 28px;
  height: 28px;
  pointer-events: auto;
}

.ob-mark-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* IOF kontrola — priehľadný krúžok, neprekrýva objekt */
.ob-mark-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 2.5px solid #c44dff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.ob-mark--pulse .ob-mark-circle,
.ob-mark--pulse .ob-mark-start {
  /* musí zachovať translate(-50%,-50%), inak sa stred posunie vľavo-hore */
  animation: ob-mark-blink 0.9s ease-in-out infinite;
}

@keyframes ob-mark-blink {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 0 rgba(224, 123, 10, 0));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.35);
    filter: drop-shadow(0 0 8px rgba(224, 123, 10, 0.85));
  }
}

.ob-mark-icon.ob-mark--pulse {
  z-index: 800 !important;
}

.ob-focus-label {
  background: none !important;
  border: none !important;
}

.ob-focus-label-text {
  display: inline-block;
  margin-left: 18px;
  margin-top: -8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #e07b0a;
  text-shadow:
    0 0 3px #fff,
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff;
  pointer-events: none;
  white-space: nowrap;
}

.ob-place-tip {
  background: #1b7332 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  padding: 4px 6px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  max-width: 160px;
}
.ob-place-tip.is-selected {
  background: #e07b0a !important;
}
.ob-place-tip::before {
  border-right-color: #1b7332 !important;
}
.ob-place-tip.is-selected::before {
  border-right-color: #e07b0a !important;
}
.ob-place-tip-rich {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.ob-place-tip-rich img {
  background: #fff;
  border-radius: 3px;
  padding: 1px;
}
.ob-place-tip-rich span {
  font-weight: 600;
  text-transform: lowercase;
  line-height: 1.2;
}

.ob-mark-start {
  overflow: visible;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
}

/* Kód vedľa krúžku (smer podľa labelX/labelY z Mapperu) */
.ob-mark-code {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(var(--ox, 16px), var(--oy, -10px));
  font-size: 0.78rem;
  font-weight: 800;
  color: #7a1fa2;
  text-shadow:
    0 0 3px #fff,
    0 0 3px #fff,
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.ob-control-popup {
  font-size: 0.88rem;
  min-width: 10rem;
}

.ob-control-popup-head {
  margin-bottom: 0.4rem;
}

.ob-control-popup-body {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ob-control-popup-picto {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2px;
}

.ob-control-popup-desc {
  flex: 1 1 auto;
  font-weight: 600;
  color: #1c2b1e;
  text-transform: lowercase;
  line-height: 1.3;
}

.ob-control-focus {
  margin: 0 0 1rem;
}

.ob-safety-warn {
  border-top-color: var(--c-orange);
  background: linear-gradient(180deg, #fff8e8 0%, #fffbea 100%);
}

.ob-safety-warn .ob-section-title {
  color: #9a5508;
}

.ob-safety-lead {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  max-width: 40rem;
}

.ob-safety-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ob-safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(224, 123, 10, 0.16);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ob-safety-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: rgba(224, 123, 10, 0.14);
  color: #b86a0a;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.ob-safety-icon .oi {
  font-size: 0.85rem;
}

[data-theme="dark"] .ob-safety-warn {
  background: rgba(224, 123, 10, 0.1);
}

[data-theme="dark"] .ob-safety-warn .ob-section-title {
  color: #f0b060;
}

[data-theme="dark"] .ob-safety-list li {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(240, 149, 32, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ob-safety-warn {
    background: rgba(224, 123, 10, 0.1);
  }
  :root:not([data-theme="light"]) .ob-safety-list li {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(240, 149, 32, 0.2);
  }
}

@media (max-width: 575px) {
  #ob-public-map {
    height: 58vh;
    min-height: 240px;
    border-radius: 8px;
  }
  .ob-map-toolbar .ob-section-title {
    width: 100%;
  }
  .ob-map-actions .btn {
    flex: 1 1 auto;
  }
}

/* Kalibrácia admin */
.ob-calib-page { margin: 0.75rem 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.ob-calib-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .ob-calib-maps { grid-template-columns: 1fr; }
}
#ob-calib-omap, #ob-calib-osm {
  height: 55vh;
  min-height: 320px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.ob-calib-row { font-size: 0.85rem; font-family: monospace; margin-top: 0.25rem; }
.ob-calib-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* Admin — umiestnenie kontrol */
.ob-place-page { margin: 0.75rem 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.ob-place-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .ob-place-layout { grid-template-columns: 1fr; }
}
.ob-place-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 70vh;
}
.ob-place-status {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--c-text);
}
.ob-place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ob-place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  border-top: 1px solid rgba(27, 115, 50, 0.12);
}
.ob-place-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.5rem;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(27, 115, 50, 0.08);
  cursor: pointer;
  font-size: 0.86rem;
}
.ob-place-item-desc {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--c-text-muted);
}
.ob-place-item-state {
  font-weight: 700;
  color: var(--c-text-muted);
}
.ob-place-item.is-placed .ob-place-item-state { color: var(--c-green); }
.ob-place-item.is-missing { opacity: 0.72; }
.ob-place-item.is-active {
  background: rgba(224, 123, 10, 0.12);
  border-left: 3px solid var(--c-orange);
}
.ob-place-map-wrap { padding: 0.5rem; }
#ob-place-map {
  height: min(70vh, 640px);
  width: 100%;
  border-radius: 10px;
  background: #1a2218;
}
.ob-place-mark {
  background: transparent !important;
  border: none !important;
}
.ob-place-mark span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(27, 115, 50, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.ob-place-mark.is-selected span {
  background: var(--c-orange);
  transform: scale(1.15);
}
.ob-admin-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── Štatistika skenov kontrol (/compass/stats, admin) ── */
.cs-page { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.cs-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.cs-area-name { color: var(--c-green); margin-right: auto; }
.cs-note { font-size: 0.85rem; color: var(--c-text-muted); }
.cs-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cs-kpi { display: flex; flex-direction: column; }
.cs-kpi-value { font-size: 1.8rem; font-weight: 700; color: var(--c-green); line-height: 1.1; }
.cs-kpi-label { font-size: 0.85rem; color: var(--c-text-muted); }
.cs-timeline, .cs-hours { display: grid; grid-template-columns: repeat(var(--cs-cols, 24), 1fr); gap: 2px; height: 140px; align-items: end; }
.cs-hours { --cs-cols: 24; height: 80px; }
.cs-tl-col { height: 100%; display: flex; align-items: flex-end; background: var(--c-surface-alt); border-radius: 2px; }
.cs-tl-bar { width: 100%; background: var(--c-green); border-radius: 2px 2px 0 0; }
.cs-tl-col:hover .cs-tl-bar { background: var(--c-orange); }
.cs-tl-axis { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--c-text-light); margin-top: 0.3rem; }
.cs-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.cs-side { display: flex; flex-direction: column; gap: 1rem; }
.cs-table { color: var(--c-text); }
.cs-table th { border-top: 0; font-weight: 600; color: var(--c-text-muted); font-size: 0.85rem; }
.cs-table td { border-color: var(--c-border); }
.cs-bar-cell { width: 45%; position: relative; }
.cs-bar { display: inline-block; height: 0.7rem; background: var(--c-green); border-radius: 0.35rem; vertical-align: middle; min-width: 2px; }
.cs-bar-num { margin-left: 0.4rem; font-weight: 600; }
.cs-row-zero td { color: var(--c-orange); }
.cs-row-zero .cs-bar { background: transparent; }
.cs-hbar-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; font-size: 0.9rem; }
.cs-hbar-label { width: 2.4rem; color: var(--c-text-muted); }
.cs-hbar { flex: 1; height: 0.7rem; background: var(--c-surface-alt); border-radius: 0.35rem; overflow: hidden; }
.cs-hbar > span { display: block; height: 100%; background: var(--c-green); }
.cs-hbar-num { width: 2.5rem; text-align: right; font-weight: 600; }
.cs-source-row { display: flex; justify-content: space-between; padding: 0.25rem 0; border-bottom: 1px solid var(--c-border); font-size: 0.9rem; }
.cs-source-row:last-child { border-bottom: 0; }
@media (max-width: 767px) {
  .cs-kpis { grid-template-columns: repeat(2, 1fr); }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-timeline { gap: 1px; }
}

/* ---------------------------------------------------------------
   KRAJINA – farby podľa ročného obdobia (php/krajina.php)
--------------------------------------------------------------- */
.ob-krajina.k-jar { --k-bg: #f5faf2; --k-sky0: #f6fbf3; --k-sky1: #eaf5e6; --k-sky2: #fcefe6; --k-glow: #f8c879; --k-sun: #f7c46c; --k-sunop: 0.6; --k-far: #e2edd2; --k-mid: #c8e2a6; --k-hill: #8fc46c; --k-contour: #ffffff; --k-contourop: 0.32; --k-front: #62aa5c; --k-treeA: #3f8a45; --k-treeB: #4f9a4f; --k-treeF: #2f7a3a; --k-river: #e6f4f8; --k-birds: 0.45; --k-flowers: 0.95; --k-leaves: 0; --k-snow: 0; --k-caps: 0; --k-stars: 0; --k-haze1: rgba(247,250,243,0.95); --k-haze2: rgba(247,250,243,0.7); }
.ob-krajina.k-leto { --k-bg: #f2f8f3; --k-sky0: #eef7fb; --k-sky1: #f1f8ee; --k-sky2: #fcecd2; --k-glow: #f6b25a; --k-sun: #f4a945; --k-sunop: 0.7; --k-far: #dbe7c5; --k-mid: #b4d38d; --k-hill: #74a955; --k-contour: #ffffff; --k-contourop: 0.3; --k-front: #4d9049; --k-treeA: #2f6f38; --k-treeB: #3a7a3f; --k-treeF: #285f31; --k-river: #e3f1f5; --k-birds: 0.5; --k-flowers: 0; --k-leaves: 0; --k-snow: 0; --k-caps: 0; --k-stars: 0; --k-haze1: rgba(247,250,243,0.95); --k-haze2: rgba(247,250,243,0.7); }
.ob-krajina.k-jesen { --k-bg: #faf5ec; --k-sky0: #fbf7ef; --k-sky1: #f7ecda; --k-sky2: #f5d6ae; --k-glow: #ef9a3c; --k-sun: #ec9138; --k-sunop: 0.6; --k-far: #e8dcc2; --k-mid: #d9c690; --k-hill: #b4a35a; --k-contour: #ffffff; --k-contourop: 0.3; --k-front: #8e8a45; --k-treeA: #d27a26; --k-treeB: #e2b03a; --k-treeF: #5f6e35; --k-river: #eef1ec; --k-birds: 0.35; --k-flowers: 0; --k-leaves: 0.9; --k-snow: 0; --k-caps: 0; --k-stars: 0; --k-haze1: rgba(247,250,243,0.95); --k-haze2: rgba(247,250,243,0.7); }
.ob-krajina.k-zima { --k-bg: #f3f6f8; --k-sky0: #f2f6f9; --k-sky1: #e9f0f5; --k-sky2: #f3efe9; --k-glow: #f2d3a0; --k-sun: #f1cf95; --k-sunop: 0.5; --k-far: #e1e9ef; --k-mid: #d3dfe7; --k-hill: #edf2f5; --k-contour: #b7c7d3; --k-contourop: 0.6; --k-front: #e3ebf0; --k-treeA: #36614c; --k-treeB: #406b55; --k-treeF: #2f5643; --k-river: #cfe0ea; --k-birds: 0; --k-flowers: 0; --k-leaves: 0; --k-snow: 0.9; --k-caps: 1; --k-stars: 0; --k-haze1: rgba(247,250,243,0.95); --k-haze2: rgba(247,250,243,0.7); }
[data-theme="dark"] .ob-krajina.k-jar { --k-bg: #0f1712; --k-sky0: #0c1520; --k-sky1: #13212f; --k-sky2: #233038; --k-glow: #9fb6d6; --k-sun: #e8eef5; --k-sunop: 0.85; --k-far: #1a2a29; --k-mid: #1d382b; --k-hill: #22472e; --k-contour: #8fbf9a; --k-contourop: 0.18; --k-front: #193524; --k-treeA: #0f2619; --k-treeB: #13301e; --k-treeF: #0b1f13; --k-river: #2a4050; --k-birds: 0; --k-flowers: 0.45; --k-leaves: 0; --k-snow: 0; --k-caps: 0; --k-stars: 0.75; --k-haze1: rgba(15,23,18,0.9); --k-haze2: rgba(15,23,18,0.6); }
[data-theme="dark"] .ob-krajina.k-leto { --k-bg: #0f1712; --k-sky0: #0d1622; --k-sky1: #152434; --k-sky2: #2c2f38; --k-glow: #a9bcd8; --k-sun: #eef2f6; --k-sunop: 0.85; --k-far: #1b2b2a; --k-mid: #1f3a2c; --k-hill: #24472f; --k-contour: #8fbf9a; --k-contourop: 0.18; --k-front: #193524; --k-treeA: #10261a; --k-treeB: #132c1e; --k-treeF: #0c1f14; --k-river: #2a4050; --k-birds: 0; --k-flowers: 0; --k-leaves: 0; --k-snow: 0; --k-caps: 0; --k-stars: 0.75; --k-haze1: rgba(15,23,18,0.9); --k-haze2: rgba(15,23,18,0.6); }
[data-theme="dark"] .ob-krajina.k-jesen { --k-bg: #13140f; --k-sky0: #10141c; --k-sky1: #1b2029; --k-sky2: #33302a; --k-glow: #c9b48f; --k-sun: #f1e6d0; --k-sunop: 0.8; --k-far: #26291f; --k-mid: #2f3324; --k-hill: #3a3a22; --k-contour: #c9b98a; --k-contourop: 0.16; --k-front: #2c2c1a; --k-treeA: #6b3d16; --k-treeB: #6e5418; --k-treeF: #232914; --k-river: #2f3a3c; --k-birds: 0; --k-flowers: 0; --k-leaves: 0.5; --k-snow: 0; --k-caps: 0; --k-stars: 0.7; --k-haze1: rgba(15,23,18,0.9); --k-haze2: rgba(15,23,18,0.6); }
[data-theme="dark"] .ob-krajina.k-zima { --k-bg: #10151a; --k-sky0: #0c121b; --k-sky1: #141d2a; --k-sky2: #222b36; --k-glow: #a9bfdc; --k-sun: #eef3f8; --k-sunop: 0.85; --k-far: #1e2832; --k-mid: #232e38; --k-hill: #2b3640; --k-contour: #9fb3c4; --k-contourop: 0.3; --k-front: #26313a; --k-treeA: #0f2219; --k-treeB: #132a20; --k-treeF: #0d1d16; --k-river: #3a4c5c; --k-birds: 0; --k-flowers: 0; --k-leaves: 0; --k-snow: 0.7; --k-caps: 0.85; --k-stars: 0.8; --k-haze1: rgba(15,23,18,0.9); --k-haze2: rgba(15,23,18,0.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ob-krajina.k-jar { --k-bg: #0f1712; --k-sky0: #0c1520; --k-sky1: #13212f; --k-sky2: #233038; --k-glow: #9fb6d6; --k-sun: #e8eef5; --k-sunop: 0.85; --k-far: #1a2a29; --k-mid: #1d382b; --k-hill: #22472e; --k-contour: #8fbf9a; --k-contourop: 0.18; --k-front: #193524; --k-treeA: #0f2619; --k-treeB: #13301e; --k-treeF: #0b1f13; --k-river: #2a4050; --k-birds: 0; --k-flowers: 0.45; --k-leaves: 0; --k-snow: 0; --k-caps: 0; --k-stars: 0.75; --k-haze1: rgba(15,23,18,0.9); --k-haze2: rgba(15,23,18,0.6); }
  :root:not([data-theme="light"]) .ob-krajina.k-leto { --k-bg: #0f1712; --k-sky0: #0d1622; --k-sky1: #152434; --k-sky2: #2c2f38; --k-glow: #a9bcd8; --k-sun: #eef2f6; --k-sunop: 0.85; --k-far: #1b2b2a; --k-mid: #1f3a2c; --k-hill: #24472f; --k-contour: #8fbf9a; --k-contourop: 0.18; --k-front: #193524; --k-treeA: #10261a; --k-treeB: #132c1e; --k-treeF: #0c1f14; --k-river: #2a4050; --k-birds: 0; --k-flowers: 0; --k-leaves: 0; --k-snow: 0; --k-caps: 0; --k-stars: 0.75; --k-haze1: rgba(15,23,18,0.9); --k-haze2: rgba(15,23,18,0.6); }
  :root:not([data-theme="light"]) .ob-krajina.k-jesen { --k-bg: #13140f; --k-sky0: #10141c; --k-sky1: #1b2029; --k-sky2: #33302a; --k-glow: #c9b48f; --k-sun: #f1e6d0; --k-sunop: 0.8; --k-far: #26291f; --k-mid: #2f3324; --k-hill: #3a3a22; --k-contour: #c9b98a; --k-contourop: 0.16; --k-front: #2c2c1a; --k-treeA: #6b3d16; --k-treeB: #6e5418; --k-treeF: #232914; --k-river: #2f3a3c; --k-birds: 0; --k-flowers: 0; --k-leaves: 0.5; --k-snow: 0; --k-caps: 0; --k-stars: 0.7; --k-haze1: rgba(15,23,18,0.9); --k-haze2: rgba(15,23,18,0.6); }
  :root:not([data-theme="light"]) .ob-krajina.k-zima { --k-bg: #10151a; --k-sky0: #0c121b; --k-sky1: #141d2a; --k-sky2: #222b36; --k-glow: #a9bfdc; --k-sun: #eef3f8; --k-sunop: 0.85; --k-far: #1e2832; --k-mid: #232e38; --k-hill: #2b3640; --k-contour: #9fb3c4; --k-contourop: 0.3; --k-front: #26313a; --k-treeA: #0f2219; --k-treeB: #132a20; --k-treeF: #0d1d16; --k-river: #3a4c5c; --k-birds: 0; --k-flowers: 0; --k-leaves: 0; --k-snow: 0.7; --k-caps: 0.85; --k-stars: 0.8; --k-haze1: rgba(15,23,18,0.9); --k-haze2: rgba(15,23,18,0.6); }
}

.ob-krajina { background: var(--k-bg); }
.ob-krajina-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.ob-krajina .k-s0 { stop-color: var(--k-sky0); }
.ob-krajina .k-s1 { stop-color: var(--k-sky1); }
.ob-krajina .k-s2 { stop-color: var(--k-sky2); }
.ob-krajina .k-g0 { stop-color: var(--k-glow); stop-opacity: 0.5; }
.ob-krajina .k-g1 { stop-color: var(--k-glow); stop-opacity: 0; }
.ob-krajina .k-sun { fill: var(--k-sun); opacity: var(--k-sunop); }
.ob-krajina .k-birds { opacity: var(--k-birds); }
.ob-krajina .k-far { fill: var(--k-far); }
.ob-krajina .k-mid { fill: var(--k-mid); }
.ob-krajina .k-hill { fill: var(--k-hill); }
.ob-krajina .k-front { fill: var(--k-front); }
.ob-krajina .k-contour { stroke: var(--k-contour); stroke-opacity: var(--k-contourop); }
.ob-krajina .k-tree-a { fill: var(--k-treeA); }
.ob-krajina .k-tree-b { fill: var(--k-treeB); }
.ob-krajina .k-tree-f { fill: var(--k-treeF); }
.ob-krajina .k-flowers { opacity: var(--k-flowers); }
.ob-krajina .k-leaves { opacity: var(--k-leaves); }
.ob-krajina .k-snow { fill: #b4c4d1; opacity: var(--k-snow); }
.ob-krajina .k-stars { fill: #ffffff; opacity: var(--k-stars); }
.ob-krajina .k-river { stroke: var(--k-river); opacity: 0.9; }

/* ---------------------------------------------------------------
   KRAJINA – živé prvky na titulke (php/krajina.php + js/krajina.js)
   Animuje sa len počas krátkej udalosti (trieda egg-* na <svg>),
   inak je scéna statická. prefers-reduced-motion = bez pohybu.
--------------------------------------------------------------- */
.ob-krajina .k-cap { fill: #ffffff; opacity: var(--k-caps); }
.ob-krajina .k-cloud { fill: #ffffff; opacity: 0.6; }
[data-theme="dark"] .ob-krajina .k-cloud { opacity: 0.05; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ob-krajina .k-cloud { opacity: 0.05; }
}
.site-hero-text { pointer-events: none; }
.site-hero-text > * { pointer-events: auto; }

/* postavičky */
.ob-krajina .k-egg { opacity: 0; }
.ob-krajina .k-leg { fill: none; stroke: #2b3a2f; stroke-width: 2.6; stroke-linecap: round; }
.ob-krajina .k-limb { fill: none; stroke: #e9b892; stroke-width: 2; stroke-linecap: round; }
.ob-krajina .k-shirt { fill: none; stroke: #e07b0a; stroke-width: 5.5; stroke-linecap: round; }
.ob-krajina .k-shirt-2 { stroke: #2f8f46; }
.ob-krajina .k-map { fill: #ffffff; stroke: #e07b0a; stroke-width: 1; }
.ob-krajina .k-skin { fill: #efc39c; }
.ob-krajina .k-bubble circle { fill: #ffffff; stroke: #e07b0a; stroke-width: 1.4; }
.ob-krajina .k-bubble text,
.ob-krajina .k-pip text,
.ob-krajina .k-kod,
.ob-krajina .k-finish text {
  font-family: var(--font-display);
  font-weight: 800;
}
.ob-krajina .k-bubble text { font-size: 12px; fill: #9a4d00; }
.ob-krajina .k-deer-body { fill: #a8743f; }
.ob-krajina .k-deer-neck { fill: none; stroke: #a8743f; stroke-width: 3.4; stroke-linecap: round; }
.ob-krajina .k-deer-leg { fill: none; stroke: #8a5c32; stroke-width: 1.7; stroke-linecap: round; }
.ob-krajina .k-pip text {
  font-size: 15px;
  fill: #9a4d00;
  stroke: #ffffff;
  stroke-width: 3px;
  paint-order: stroke;
}
.ob-krajina .k-pip-ring { fill: none; stroke: #e07b0a; stroke-width: 2.5; }

/* kontroly – kliknutím sa orazia */
.ob-krajina .k-ctrl { cursor: pointer; }
.ob-krajina .k-hit { fill: transparent; }
.ob-krajina .k-ring { fill: none; stroke: #e07b0a; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ob-krajina .k-ctrl:hover .k-ring { opacity: 0.35; }
.ob-krajina .k-kod {
  font-size: 13px;
  fill: #1b7332;
  stroke: #ffffff;
  stroke-width: 3px;
  paint-order: stroke;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ob-krajina .k-ctrl.is-punched .k-kod { opacity: 1; }
.ob-krajina .k-ctrl.is-punched .k-ring { animation: kRing 0.7s ease-out; }
.ob-krajina .k-finish { opacity: 0; pointer-events: none; }
.ob-krajina .k-finish rect { fill: #1b7332; }
.ob-krajina .k-finish text { font-size: 17px; fill: #ffffff; letter-spacing: 0.02em; }
.ob-krajina .is-finished .k-finish { animation: kFinish 5s ease forwards; }

/* udalosť: bežec */
.egg-run .k-runner { animation: kRun 11s linear forwards; }
.egg-run .k-leg-a, .egg-run .k-arm-a { animation: kLeg 0.3s ease-in-out infinite alternate; }
.egg-run .k-leg-b { animation: kLeg 0.3s ease-in-out infinite alternate-reverse; }
.egg-run .k-pip { animation: kPip 11s linear forwards; }
.egg-run .k-pip-ring { transform-box: fill-box; transform-origin: center; animation: kPipRing 11s linear forwards; }

/* udalosť: zablúdený orientačník */
.egg-lost .k-lost { animation: kLost 7s ease-in-out forwards; }
.egg-lost .k-lost-map { animation: kLostMap 7s ease-in-out forwards; }
.egg-lost .k-bubble { animation: kBubble 7s ease forwards; }

/* udalosť: srnka */
.egg-deer .k-deer { animation: kDeer 8s ease-in-out forwards; }
.ob-krajina .k-deer-head { transform-origin: -6px -16px; }
.egg-deer .k-deer-head { animation: kDeerHead 8s ease-in-out forwards; }

/* udalosť: poryv vetra (stromy, mraky, vtáky, lístie / sneh podľa obdobia) */
.ob-krajina .k-tree { transform-box: fill-box; transform-origin: 50% 100%; }
.egg-wind .k-tree { animation: kSway 4.2s ease-in-out forwards; animation-delay: calc(var(--i) * 70ms); }
.egg-wind .k-cloud { animation: kCloud 6s ease-in-out forwards; }
.egg-wind .k-cloud-2 { animation-duration: 5.4s; }
.egg-wind .k-birds { animation: kBirds 6s ease-in-out forwards; }
.ob-krajina .k-birds path { transform-box: fill-box; transform-origin: center; }
.egg-wind .k-birds path { animation: kFlap 0.4s ease-in-out infinite alternate; }
.ob-krajina .k-leaf, .ob-krajina .k-snow circle { transform-box: fill-box; transform-origin: center; }
.egg-wind .k-leaf { animation: kLeaf 5.5s ease-in forwards; }
.egg-wind .k-leaf:nth-child(2n) { animation-delay: 0.3s; }
.egg-wind .k-leaf:nth-child(3n) { animation-delay: 0.6s; }
.egg-wind .k-snow circle { animation: kSnow 5.5s ease-in-out forwards; }
.egg-wind .k-snow circle:nth-child(2n) { animation-delay: 0.25s; }
.egg-wind .k-snow circle:nth-child(3n) { animation-delay: 0.5s; }

@keyframes kLeg { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
@keyframes kRun {
  0%   { transform: translate(1468px, 306px); opacity: 0; }
  3%   { transform: translate(1440px, 302px); opacity: 1; }
  14%  { transform: translate(1350px, 281px); }
  22%  { transform: translate(1260px, 254px); }
  30%  { transform: translate(1170px, 228px); }
  36%  { transform: translate(1120px, 219px); }
  42%  { transform: translate(1086px, 215.5px); }
  56%  { transform: translate(1086px, 215.5px); }
  64%  { transform: translate(1040px, 215.7px); }
  72%  { transform: translate(1000px, 219.5px); }
  80%  { transform: translate(960px, 226.6px); }
  86%  { transform: translate(930px, 234px); }
  93%  { transform: translate(880px, 250px); opacity: 1; }
  100% { transform: translate(840px, 266px); opacity: 0; }
}
@keyframes kPip {
  0%, 43% { opacity: 0; transform: translate(1068px, 178px); }
  45%, 54% { opacity: 1; transform: translate(1068px, 174px); }
  58%, 100% { opacity: 0; transform: translate(1068px, 170px); }
}
@keyframes kPipRing {
  0%, 43% { transform: scale(0.4); }
  52%, 100% { transform: scale(1.6); }
}
@keyframes kLost {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { transform: translateX(14px); opacity: 1; }
  84%  { transform: translateX(14px); opacity: 1; }
  96%, 100% { transform: translateX(0); opacity: 0; }
}
@keyframes kLostMap {
  0%, 26% { transform: rotate(0deg); }
  34%, 54% { transform: rotate(180deg); }
  62%, 100% { transform: rotate(360deg); }
}
@keyframes kBubble {
  0%, 36% { opacity: 0; transform: translate(13px, -35px) scale(0.6); }
  42%, 76% { opacity: 1; transform: translate(13px, -39px) scale(1); }
  82%, 100% { opacity: 0; transform: translate(13px, -41px) scale(1); }
}
@keyframes kDeer {
  0%   { transform: translate(10px, 0) scale(1, 1); opacity: 0; }
  8%   { transform: translate(0, 0) scale(1, 1); opacity: 1; }
  40%  { transform: translate(-32px, -2px) scale(1, 1); }
  68%  { transform: translate(-32px, -2px) scale(1, 1); }
  70%  { transform: translate(-32px, -2px) scale(-1, 1); }
  78%  { transform: translate(-16px, -9px) scale(-1, 1); }
  86%  { transform: translate(0, -1px) scale(-1, 1); }
  93%  { transform: translate(14px, -8px) scale(-1, 1); opacity: 1; }
  100% { transform: translate(26px, 0) scale(-1, 1); opacity: 0; }
}
@keyframes kDeerHead {
  0%, 44% { transform: rotate(0deg); }
  50%, 60% { transform: rotate(14deg); }
  64%, 100% { transform: rotate(0deg); }
}
@keyframes kSway {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(2.6deg); }
  50%  { transform: rotate(-1.2deg); }
  75%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
@keyframes kCloud {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-22px); }
  100% { transform: translateX(0); }
}
@keyframes kBirds {
  0%   { transform: translate(0, 0); opacity: var(--k-birds); }
  60%  { transform: translate(-260px, -34px); opacity: 0; }
  61%  { transform: translate(90px, 16px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: var(--k-birds); }
}
@keyframes kFlap { from { transform: scaleY(1); } to { transform: scaleY(0.45); } }
@keyframes kLeaf {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  80%  { transform: translate(-70px, 120px) rotate(260deg); opacity: 0; }
  81%  { transform: translate(30px, -30px) rotate(0deg); opacity: 0; }
  100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}
@keyframes kSnow {
  0%   { transform: translate(0, 0); opacity: 1; }
  75%  { transform: translate(-40px, 70px); opacity: 0; }
  76%  { transform: translate(20px, -30px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes kRing {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes kFinish {
  0%   { opacity: 0; transform: translate(1035px, 70px) scale(0.85); }
  10%  { opacity: 1; transform: translate(1035px, 60px) scale(1); }
  85%  { opacity: 1; transform: translate(1035px, 60px) scale(1); }
  100% { opacity: 0; transform: translate(1035px, 56px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ob-krajina-svg *, .ob-krajina-svg { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------
   KALENDÁR (v3) – jeden vzdušný panel, mesiace ako medzititulky
--------------------------------------------------------------- */
.page-calendar .table-responsive {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
}
.cal-table { margin-bottom: 0; }
.cal-table.table-striped tbody tr:nth-of-type(odd),
.cal-table.table-striped tbody tr:nth-of-type(even) { background-color: transparent; }
.cal-table thead th {
  background: var(--c-surface-alt);
  border-top: 0;
  border-bottom: 1px solid var(--c-line);
  padding: 12px 14px;
}
.cal-table td { padding: 12px 14px; border-top: 1px solid var(--c-line-soft); vertical-align: middle; }
.cal-table tbody tr:not(.cal-month):hover td { background: var(--c-hover); }
.cal-table .cal-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-link);
}
.cal-table .cal-event-name { font-size: 1.05rem; }
.cal-table tr.cal-month td {
  padding: 20px 14px 6px;
  border-top: 1px solid var(--c-line);
  background: transparent;
}
.cal-table tbody tr.cal-month:first-child td { border-top: 0; }
.cal-month-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-heading);
}
.cal-month-bar { width: 5px; height: 18px; border-radius: 3px; background: #e07b0a; }

/* naše (KYS) preteky – jemne teplé pozadie namiesto žltej */
.cal-table tr.highlight td {
  background: var(--c-highlight) !important;
  color: var(--c-text);
  font-weight: inherit;
}
.cal-table tr.highlight td:first-child { box-shadow: inset 4px 0 0 #e07b0a; }
[data-theme="dark"] .cal-table tr.highlight td { color: var(--c-text); }
.cal-table tr.highlight td.cal-date { color: var(--c-link); }

/* mobil: riadky pod sebou namiesto širokej tabuľky */
@media (max-width: 575.98px) {
  .page-calendar .table-responsive { overflow: visible; }
  .page-calendar .cal-table thead { display: none; }
  .page-calendar .cal-table,
  .page-calendar .cal-table tbody { display: block; width: 100%; }
  .page-calendar .cal-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--c-line-soft);
  }
  .page-calendar .cal-table td { display: block; padding: 0; border: 0; grid-column: 1 / -1; }
  .page-calendar .cal-table td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right; }
  .page-calendar .cal-table .cal-date { grid-column: 1; font-size: 1rem; }
  .page-calendar .cal-table .cal-entry-cell { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .page-calendar .cal-table .cal-deadline { display: inline; margin: 0; }
  .page-calendar .cal-table tr.cal-month { display: block; padding: 18px 16px 4px; }
  .page-calendar .cal-table tr.cal-month td { padding: 0; border: 0; }
  .page-calendar .cal-table tbody tr.highlight { background: var(--c-highlight); box-shadow: inset 4px 0 0 #e07b0a; }
  .page-calendar .cal-table tr.highlight td { background: transparent !important; }
  .page-calendar .cal-table tr.highlight td:first-child { box-shadow: none; }
  .page-calendar .cal-table tbody tr:not(.cal-month):hover td { background: transparent; }
}

.cal-year-select { border-radius: 999px; padding-left: 14px; padding-right: 28px; }
.cal-header .btn { border-radius: 999px; }
