/* ============================================================
   Skaut Fryšták — public site styles
   Adapted from the design-system handoff (colors_and_type.css +
   UI kit). Everything is scoped under .public-root so the admin
   shell (app.css) stays untouched.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Bebas+Neue&display=swap');

/* ===== Tokens — light (default) ===== */
.public-root {
  /* Skautské brand barvy — ze znaku střediska */
  --skaut-green:       #155028;
  --skaut-green-hover: #0E3D1D;
  --skaut-green-deep:  #0D3D1E;
  --skaut-yellow:      #F5D914;
  --skaut-yellow-deep: #D4BA00;
  --skaut-red:         #C4302B;
  --skaut-red-deep:    #8F1F1B;
  --skaut-blue:        #1B3A6B;
  --skaut-blue-hover:  #264D8A;
  --skaut-brown:       #6F4E37;
  --skaut-sand:        #E8DCC4;
  --skaut-silver:      #C4C9CE;

  /* Neutrály — čisté, svěží, jemný zelený nádech */
  --bg:            #F4F6F3;
  --surface:       #FFFFFF;
  --surface-2:     #EAEEE8;
  --border:        #DDE3DA;
  --border-strong: #BFC8BB;
  --text:          #15201A;
  --text-muted:    #5A655E;
  --text-faint:    #8B958E;

  /* Sémantické aliasy */
  --color-primary:       var(--skaut-green);
  --color-primary-hover: var(--skaut-green-hover);
  --color-on-primary:    #FFFFFF;
  --color-accent:        var(--skaut-yellow);
  --color-danger:        var(--skaut-red);
  --color-link:          var(--skaut-green);

  /* Typografie */
  --font-display: 'Bebas Neue', 'Oswald', 'Impact', sans-serif;
  --font-body:    'Asap', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;

  --fs-2xs:  0.75rem;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.5rem;
  --fs-4xl:  3.5rem;
  --fs-5xl:  4.5rem;

  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-normal: 1.6;

  --tracking-display: 0.02em;
  --tracking-tight:   -0.01em;
  --tracking-wide:    0.04em;

  /* Spacing (8pt) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radii — sjednocená škála */
  --radius-sm:  10px;
  --radius-md:  10px;
  --radius-lg:  10px;
  --radius-xl:  14px;
  --radius-pill: 999px;

  /* Stíny */
  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 24, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 24, 20, 0.12);
  --shadow-xl: 0 24px 56px rgba(26, 24, 20, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;

  /* Container */
  --container-max: 1200px;
}

/* ===== Tokens — dark ===== */
.public-root[data-theme="dark"] {
  --skaut-green:       #3A9457;
  --skaut-green-hover: #4FB069;
  --skaut-green-deep:  #235D34;
  --skaut-yellow:      #FFE74A;
  --skaut-yellow-deep: #F5D914;
  --skaut-red:         #E85059;
  --skaut-blue:        #5A8FD8;
  --skaut-blue-hover:  #7AA8E5;
  --skaut-brown:       #B08E78;
  --skaut-sand:        #3A3328;
  --skaut-silver:      #6B7280;

  --bg:            #0F1419;
  --surface:       #1A2028;
  --surface-2:     #242C36;
  --border:        #2F3845;
  --border-strong: #475264;
  --text:          #F5EFE0;
  --text-muted:    #9AA0AA;
  --text-faint:    #6B7280;

  --color-primary:    var(--skaut-green);
  --color-on-primary: #0F1419;
  --color-link:       var(--skaut-green);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.7);
}

/* ===== Base ===== */
.public-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--text);
  background-color: var(--bg);
  /* Skautská textura — drobné listy v tlumených tónech */
  background-image: url("assets/leaves-v5.svg");
  background-size: 380px 380px;
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
}
.public-root *, .public-root *::before, .public-root *::after { box-sizing: border-box; }
.public-root img, .public-root svg { display: block; max-width: 100%; }

.public-root h1, .public-root h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.public-root h1 { font-size: clamp(2.5rem, 6vw, var(--fs-5xl)); }
.public-root h2 { font-size: clamp(2rem, 4vw, var(--fs-3xl)); }
.public-root h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-xl); letter-spacing: var(--tracking-tight); line-height: var(--lh-snug); margin: 0; }
.public-root h4 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-lg); line-height: var(--lh-snug); margin: 0; }
.public-root h6 {
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--text-muted); margin: 0;
}
.public-root p { font-size: var(--fs-md); line-height: var(--lh-normal); color: var(--text); margin: 0; text-wrap: pretty; }

.public-root a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--dur-fast) var(--ease-out);
}
.public-root a:hover { text-decoration-thickness: 2px; }
.public-root ::selection { background: var(--skaut-yellow); color: #1A1814; }

/* ===== Typografické utility ===== */
.public-root .eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  line-height: 1.2;
}
.public-root .lead { font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--text); }
.public-root .meta-text { font-size: var(--fs-xs); color: var(--text-muted); }
.public-root .muted { color: var(--text-muted); }

.public-root .link {
  color: var(--skaut-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--skaut-green) 38%, transparent);
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 150ms;
}
.public-root .link:hover { text-decoration-color: var(--skaut-green); }

/* ===== Container ===== */
.public-root .container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 768px) {
  .public-root .container { padding-inline: var(--space-8); }
}

/* ===== Buttons ===== */
.public-root .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 22px;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.public-root .btn:active { transform: scale(0.98); }
.public-root .btn:focus-visible { outline: 3px solid var(--skaut-yellow); outline-offset: 2px; }
.public-root .btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.public-root .btn-primary:hover { background: var(--color-primary-hover); }
.public-root .btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.public-root .btn-secondary:hover { background: var(--surface-2); border-color: var(--text-muted); }
.public-root .btn-ghost { background: transparent; color: var(--color-link); padding-left: 8px; padding-right: 8px; min-height: 36px; }
.public-root .btn-ghost:hover { background: color-mix(in srgb, var(--skaut-blue) 8%, transparent); }
.public-root .btn-sm { padding: 7px 14px; min-height: 34px; font-size: var(--fs-sm); }
.public-root .btn-sm.btn-ghost { padding: 7px 10px; }

/* ===== Tagy oddílů (barva z DB přes inline --tag-color) ===== */
.public-root .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--tag-color, var(--surface-2));
  color: var(--tag-text, #fff);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}

/* ===== Header ===== */
.public-root .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.public-root .site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.public-root .brand-link { display: inline-flex; text-decoration: none !important; }
.public-root .brand { display: inline-flex; align-items: center; gap: 12px; }
.public-root .brand img { height: 48px; width: auto; }
.public-root .brand-sm img { height: 32px; }
.public-root .brand-text { display: flex; flex-direction: column; line-height: 1; }
.public-root .brand-word { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.05em; color: var(--skaut-green); }
.public-root .brand-sm .brand-word { font-size: 18px; }
.public-root .brand-sub { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; font-weight: 600; }
.public-root .brand-sm .brand-sub { font-size: 9px; }

.public-root .desktop-nav ul { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.public-root .desktop-nav a {
  color: var(--text); font-weight: 500; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
.public-root .desktop-nav a.active { color: var(--skaut-green); font-weight: 700; }
.public-root .desktop-nav a:hover { color: var(--skaut-green); }

.public-root .header-actions { display: flex; gap: 8px; align-items: center; }
.public-root .icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  padding: 0;
}
.public-root .icon-btn:hover { background: var(--surface-2); }
.public-root .mobile-only { display: none; }
@media (max-width: 880px) {
  .public-root .desktop-nav { display: none !important; }
  .public-root .mobile-only { display: flex !important; }
}

/* Mobile drawer */
.public-root .mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 20, 25, 0.6);
  z-index: 100;
}
.public-root .mobile-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(340px, 85vw);
  background: var(--surface);
  padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-xl);
}
.public-root .mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.public-root .mobile-drawer a {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 500; font-size: 16px;
  text-decoration: none;
}
.public-root .mobile-drawer a.active { background: var(--surface-2); color: var(--skaut-green); font-weight: 700; }

/* ===== Announcement bar ===== */
.public-root .announcement {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--skaut-green);
}
.public-root .announcement-inner {
  display: flex; align-items: center; gap: 12px;
  padding-top: 10px; padding-bottom: 10px;
}
.public-root .announcement-content {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; flex: 1; min-width: 0; row-gap: 6px;
}
.public-root .announcement-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--skaut-green);
}
.public-root .announcement-label span {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
}
.public-root .announcement-text { font-size: 14px; color: var(--text); flex: 1 1 240px; min-width: 0; }
.public-root .announcement-close {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); padding: 6px; line-height: 0; border-radius: 6px;
}

/* ===== Footer ===== */
.public-root .site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 48px 0 28px;
  margin-top: auto;
}
.public-root .site-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.public-root .site-footer-about { font-size: 13px; color: var(--text-muted); margin-top: 14px; max-width: 260px; line-height: 1.5; }
.public-root .site-footer h6 { margin-bottom: 12px; }
.public-root .site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.public-root .foot-link {
  font-size: 14px; color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms, text-decoration-color 150ms;
}
.public-root .foot-link:hover { color: var(--skaut-green); text-decoration-color: var(--skaut-green); }
.public-root .social-row { display: flex; gap: 8px; margin-top: 16px; }
.public-root .social-btn {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none !important;
  transition: all 150ms;
}
.public-root .social-btn:hover { background: var(--skaut-green); border-color: var(--skaut-green); color: white; }
.public-root .site-footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px; padding-top: 20px;
  font-size: 12px; color: var(--text-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.public-root .footer-motto { font-family: var(--font-display); letter-spacing: 0.05em; color: var(--skaut-green); }

/* ===== Home — hero ===== */
.public-root .hero { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.public-root .hero-inner { padding-top: 40px; padding-bottom: 40px; }
.public-root .intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px; align-items: center;
}
.public-root .hero .eyebrow { margin-bottom: 14px; color: var(--skaut-green); }
.public-root .hero h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); line-height: 0.92; margin-bottom: 18px; }
.public-root .hero-text { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 520px; margin-bottom: 22px; }
.public-root .hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.public-root .hero-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #155028 0%, #0D3D1E 60%, #082414 100%);
  border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.public-root .hero-image > picture { display: contents; }
/* The asset is already cropped to 4:3; cover only guards against rounding. */
.public-root .hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Home — feed + upcoming ===== */
.public-root .home-main { padding-top: 48px; padding-bottom: 32px; }
.public-root .home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
}
.public-root .section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.public-root .section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin-top: 4px; }
.public-root .filter-row { display: flex; gap: 4px; flex-wrap: wrap; }
.public-root .filter-chip {
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: transparent; border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text);
  font-family: var(--font-body);
  transition: all 150ms;
}
.public-root .filter-chip:hover { background: var(--surface-2); }
.public-root .filter-chip.active { background: var(--skaut-green); color: white; border-color: var(--skaut-green); }

.public-root .stack-8 { display: flex; flex-direction: column; gap: 8px; }
.public-root .stack-10 { display: flex; flex-direction: column; gap: 10px; }
.public-root .stack-12 { display: flex; flex-direction: column; gap: 12px; }

/* Feed item (compact) */
.public-root .feed-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color 150ms;
}
.public-root .feed-item:hover { border-color: var(--border-strong); }
.public-root .feed-item-icon {
  width: 36px; height: 36px; border-radius: 50%;
  color: white;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.public-root .feed-item-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.public-root .feed-item-date { font-size: 11px; color: var(--text-muted); }
.public-root .feed-item-title {
  font-size: 14px; font-weight: 600; margin-top: 2px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.public-root .feed-item-body { min-width: 0; }

/* Event card (kompaktní — home) */
.public-root .event-card-compact {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px; align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color 150ms;
}
.public-root .event-card-compact:hover { border-color: var(--border-strong); }
.public-root .date-block {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  text-align: center;
  flex-shrink: 0;
}
.public-root .date-block-day { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--skaut-green); }
.public-root .date-block-month { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 700; margin-top: 2px; }
.public-root .event-card-compact .ec-title {
  font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.public-root .ec-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.public-root .ec-meta span { display: inline-flex; align-items: center; gap: 4px; }
.public-root .tag-row { display: flex; gap: 4px; flex-wrap: wrap; }

/* Event card (kalendář — plný řádek) */
.public-root .event-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color 150ms;
}
.public-root .event-card:hover { border-color: var(--border-strong); }
.public-root .event-card .date-block { min-width: 64px; }
.public-root .event-card .date-block-day { font-size: 32px; }
.public-root .event-card .ec-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.public-root .event-card .ec-meta { font-size: 13px; gap: 12px; margin-bottom: 0; }
.public-root .event-card .tag-row { margin-top: 8px; }
@media (max-width: 640px) {
  .public-root .event-card { grid-template-columns: 60px 1fr; }
  .public-root .event-card .ec-detail-btn { display: none; }
}

/* ===== Kalendář ===== */
.public-root .page-main { padding-top: 48px; padding-bottom: 48px; }
.public-root .page-head { margin-bottom: 28px; }
.public-root .page-head .eyebrow { margin-bottom: 8px; }
.public-root .page-head h1 { margin-bottom: 8px; }
.public-root .page-head-lead { color: var(--text-muted); max-width: 600px; }

.public-root .cal-toolbar {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.public-root .cal-filters { display: flex; align-items: center; gap: 12px; flex: 1; flex-wrap: wrap; min-width: 0; }
.public-root .cal-filters-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted);
}
.public-root .cal-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.public-root .filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--bg); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text); font-family: var(--font-body);
  transition: all 150ms;
  white-space: nowrap;
}
.public-root .filter-tag:hover { border-color: var(--text-muted); }
.public-root .filter-tag .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot-color, var(--text-muted)); }
.public-root .filter-tag.active {
  background: var(--dot-color, var(--skaut-green));
  border-color: var(--dot-color, var(--skaut-green));
  color: var(--chip-text, #fff);
}
.public-root .filter-tag.active .dot { background: var(--chip-text, #fff); }

.public-root .cal-tabs {
  display: flex; gap: 4px;
  background: var(--surface-2); padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
}
.public-root .toggle-btn {
  padding: 6px 14px; border-radius: 6px;
  background: transparent; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-muted); font-family: var(--font-body);
  transition: all 150ms;
}
.public-root .toggle-btn:hover { color: var(--text); }
.public-root .toggle-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.public-root .cal-empty {
  padding: 48px; text-align: center; color: var(--text-muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}

/* Archiv — seskupení po letech */
.public-root .cal-archive { display: flex; flex-direction: column; gap: 10px; }
.public-root .archive-year {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.public-root .archive-year-head {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-body); text-align: left;
  transition: background 150ms;
  color: var(--text);
}
.public-root .archive-year-head:hover { background: var(--surface-2); }
.public-root .archive-year-label { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.02em; color: var(--text); }
.public-root .archive-year-count {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--surface-2);
}
.public-root .archive-year-head .chev { margin-left: auto; transition: transform 200ms; color: var(--text-muted); }
.public-root .archive-year-head .chev.open { transform: rotate(180deg); }
.public-root .archive-year-body { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }

/* ===== Detail akce ===== */
.public-root .event-type-chip {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 4px 10px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
}
.public-root .detail-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 32px;
  overflow: hidden;
}
.public-root .detail-row {
  display: grid;
  grid-template-columns: 24px 120px 1fr;
  gap: 16px; align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.public-root .detail-row:last-child { border-bottom: none; }
.public-root .detail-row .icon { color: var(--skaut-green); }
.public-root .detail-row-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); padding-top: 2px;
}
.public-root .detail-row-value { font-size: 16px; color: var(--text); }
.public-root .event-body { font-size: 17px; line-height: 1.65; margin-bottom: 32px; max-width: 760px; }
.public-root .event-body img { border-radius: var(--radius-md); }
.public-root .section-title-icon { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.public-root .section-title-icon .icon { color: var(--skaut-green); }

/* ===== Galerie ===== */
.public-root .breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.public-root .breadcrumbs a { color: var(--skaut-green); font-weight: 600; text-decoration: none; }
.public-root .breadcrumbs a:hover { text-decoration: underline; }
.public-root .breadcrumbs .current { color: var(--text); font-weight: 600; }
.public-root .breadcrumbs .icon { color: var(--text-muted); }

.public-root .folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.public-root .folder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px; cursor: pointer;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px; align-items: center;
  text-decoration: none !important;
  transition: border-color 150ms;
}
.public-root .folder-card:hover { border-color: var(--border-strong); }
.public-root .folder-card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--skaut-green) 12%, var(--surface));
  display: flex; align-items: center; justify-content: center;
  color: var(--skaut-green);
}
.public-root .folder-card-title { font-size: 17px; font-weight: 700; color: var(--text); }
.public-root .folder-card-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.public-root .album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.public-root .album-card {
  background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none !important;
  transition: box-shadow 200ms, transform 200ms;
}
.public-root .album-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.public-root .album-card-cover {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--skaut-green) 0%, var(--skaut-green-deep) 100%);
  position: relative;
}
.public-root .album-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.public-root .album-card-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.6); color: white;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.public-root .album-card-body { padding: 14px 16px; }
.public-root .album-card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.public-root .album-card-date { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.public-root .photo-meta { margin-bottom: 16px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--text-muted); }
.public-root .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.public-root .photo-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  background: var(--surface-2);
  border: none; padding: 0;
  transition: transform 200ms;
}
.public-root .photo-tile:hover { transform: scale(1.03); }
.public-root .photo-tile img { width: 100%; height: 100%; object-fit: cover; }

.public-root .lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 20, 25, 0.92);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  outline: none;
}
.public-root .lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
}
.public-root .lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.public-root .lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: white; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.public-root .lightbox-nav.prev { left: 20px; }
.public-root .lightbox-nav.next { right: 20px; }
.public-root .lightbox-counter { position: absolute; bottom: 24px; color: white; font-size: 14px; }

/* ===== Článek ===== */
.public-root .article-header {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  padding-top: 8px;
  padding-bottom: 28px;
}
.public-root .article-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--skaut-green); margin-bottom: 14px;
}
.public-root .article-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.02;
  margin-bottom: 18px;
}
.public-root .article-perex {
  font-size: 19px; line-height: 1.5;
  color: var(--text-muted);
  max-width: 680px; margin: 0 auto 22px;
}
.public-root .article-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  justify-content: center;
  font-size: 13px; color: var(--text-muted);
  padding-top: 16px; border-top: 1px solid var(--border);
  max-width: 680px; margin: 0 auto;
}
.public-root .article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.public-root .article-body { max-width: 720px; margin: 0 auto; }
.public-root .article-body p { font-size: 17px; line-height: 1.75; margin-bottom: 20px; color: var(--text); }
.public-root .article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  padding-right: 10px;
  padding-top: 6px;
  color: var(--skaut-green);
}
.public-root .article-body h2 {
  font-size: 26px;
  margin-top: 44px; margin-bottom: 14px;
  letter-spacing: 0; text-transform: none;
  font-family: var(--font-body); font-weight: 700; line-height: 1.25;
}
.public-root .article-body ul { list-style: none; padding: 0; margin: 0 0 24px 0; }
.public-root .article-body ol { margin: 0 0 24px 0; }
.public-root .article-body li { font-size: 16px; line-height: 1.55; margin-bottom: 8px; }
.public-root .article-body ul > li { position: relative; padding-left: 26px; }
.public-root .article-body ul > li::before {
  content: "";
  position: absolute;
  left: 6px; top: 10px;
  width: 7px; height: 7px;
  background: var(--skaut-green);
  border-radius: 50%;
}
.public-root .article-body blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 19px; line-height: 1.55; color: var(--text);
}
.public-root .article-body img { border-radius: var(--radius-md); margin: 32px auto; }

/* ===== O nás ===== */
.public-root .about-intro { margin-bottom: 56px; max-width: 760px; }
.public-root .about-intro .lead { margin-bottom: 16px; }
.public-root .oddil-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; margin-top: 24px; }
.public-root .oddil-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.public-root .oddil-card.no-schedule { grid-template-columns: 1fr; }
.public-root .oddil-body { padding: 28px; border-right: 1px solid var(--border); }
.public-root .oddil-card.no-schedule .oddil-body { border-right: none; }
.public-root .oddil-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.public-root .oddil-badge {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--badge-color, var(--skaut-green));
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px;
  color: var(--badge-text, #fff);
  flex-shrink: 0;
}
.public-root .oddil-head h3 { font-size: 22px; margin-bottom: 2px; }
.public-root .oddil-desc { font-size: 16px; line-height: 1.65; color: var(--text); margin-bottom: 18px; }
.public-root .oddil-contact { display: flex; gap: 14px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.public-root .oddil-contact span { display: inline-flex; gap: 6px; align-items: center; }
.public-root .oddil-sched { padding: 24px; background: var(--surface-2); }
.public-root .oddil-sched .eyebrow { margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.public-root .sched-rows { display: flex; flex-direction: column; gap: 12px; }
.public-root .sched-row { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed var(--border-strong); }
.public-root .sched-row:last-child { padding-bottom: 0; border-bottom: none; }
.public-root .sched-group { font-size: 14px; font-weight: 700; color: var(--text); }
.public-root .sched-time { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.public-root .sched-day { font-family: var(--font-display); font-size: 20px; color: var(--text); line-height: 1; }
.public-root .sched-hours { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.public-root .sched-place {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
  display: inline-flex; gap: 6px; align-items: center;
}
@media (max-width: 720px) {
  .public-root .oddil-card { grid-template-columns: 1fr; }
  .public-root .oddil-body { border-right: none; border-bottom: 1px solid var(--border); }
  .public-root .oddil-card.no-schedule .oddil-body { border-bottom: none; }
}

/* ===== Kontakt ===== */
.public-root .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.public-root .contact-grid h3 { margin-bottom: 14px; }
.public-root .contact-card {
  padding: 16px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; gap: 14px; align-items: flex-start;
}
.public-root .contact-badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--badge-color, var(--skaut-green));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px;
  color: var(--badge-text, #fff);
  flex-shrink: 0;
}
.public-root .contact-card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.public-root .contact-card-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.public-root .contact-card a { font-size: 13px; color: var(--skaut-green); margin-top: 4px; display: inline-block; }
.public-root .contact-socials { margin-top: 28px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface-2); }
.public-root .contact-socials h6 { margin-bottom: 12px; }
.public-root .contact-map {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1F7A3A 0%, #155028 100%);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
}
.public-root .contact-map-label { position: absolute; bottom: 14px; left: 16px; color: rgba(255,255,255,0.7); font-size: 11px; }

/* ===== Videa ===== */
.public-root .video-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; }
.public-root .video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.public-root .video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.public-root .video-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.public-root .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.public-root .video-frame-link {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-decoration: none !important;
  background: linear-gradient(135deg, var(--skaut-green) 0%, var(--skaut-green-deep) 100%);
}
.public-root .video-card-body { padding: 14px 16px; }
.public-root .video-card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.public-root .video-card-date { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.public-root .video-empty {
  padding: 64px 32px; text-align: center; color: var(--text-muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

/* ===== Dokumenty ke stažení ===== */
.public-root .doc-section { margin: 8px 0 32px; max-width: 760px; }
.public-root .doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.public-root .doc-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: border-color 150ms, box-shadow 150ms;
}
.public-root .doc-card:hover { border-color: var(--skaut-green); box-shadow: var(--shadow-sm); }
.public-root .doc-card__ic {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--skaut-green) 12%, var(--surface));
  display: flex; align-items: center; justify-content: center;
  color: var(--skaut-green); flex-shrink: 0;
}
.public-root .doc-card__body { min-width: 0; }
.public-root .doc-card__name {
  display: block; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.public-root .doc-card__meta { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.public-root .doc-card__dl { color: var(--text-muted); display: inline-flex; }
.public-root .doc-card:hover .doc-card__dl { color: var(--skaut-green); }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .public-root .home-grid { grid-template-columns: 1fr; }
  .public-root .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .public-root .contact-grid { grid-template-columns: 1fr; }
  .public-root .video-grid { grid-template-columns: 1fr; }
  .public-root .doc-grid { grid-template-columns: 1fr; }
}
