:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --text: #16181d;
  --muted: #5b6472;
  --accent: #b4232a;
  --accent-dark: #941c22;
  --line: #e3e6ea;
  --soft-red: #fff0f1;
  --soft-blue: #eef4fb;
  --shadow: 0 8px 28px rgba(22,24,29,.055);
  --radius: 12px;
  --content: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151b;
    --surface: #171c24;
    --surface-alt: #1d2430;
    --text: #eef2f7;
    --muted: #a8b2c1;
    --accent: #ef6269;
    --accent-dark: #d94b53;
    --line: #303947;
    --soft-red: #321f26;
    --soft-blue: #202d3e;
    --shadow: 0 8px 28px rgba(0,0,0,.2);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }

/* Wide Container (1120px) */
.container {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 3px solid var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--surface);
  font-size: 16px;
  font-weight: 900;
}
.brand-text span { color: var(--accent); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 10px;
  font-size: 14px;
  font-weight: 650;
}
.main-nav a {
  padding: 20px 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  transition: all .15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}
.header-search {
  margin-left: auto;
  position: relative;
  width: 240px;
}
.header-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 24px;
  padding: 10px 38px 10px 16px;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
}
.header-search input:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 6px 10px;
  font-size: 18px;
}
.mobile-menu {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  gap: 8px;
}
.mobile-menu.open {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mobile-menu a {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-alt);
  font-size: 14px;
  font-weight: 600;
}

/* Hero Section (Wide Banner with Prague art & Czech Flag) */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(112deg, #f8fbff 0%, #ffffff 45%, #e7f1fb 100%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(112deg, #171f2b 0%, #171c24 48%, #243247 100%);
  }
}
.hero-grid {
  min-height: 350px;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 16px;
  position: relative;
}
.hero-copy {
  padding: 36px 0 32px;
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-size: clamp(18px, 2.3vw, 25px);
  font-weight: 750;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.eyebrow time { color: var(--accent); }
.hero-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: -2px;
  color: var(--accent);
  margin: 4px 0 20px;
  font-weight: 900;
  text-transform: uppercase;
}
.date-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  transition: transform .15s, border-color .15s;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: #c8cdd4;
  color: var(--text);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.holiday-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #f5dadd;
  border-radius: 12px;
  background: var(--soft-red);
  max-width: 440px;
}
.flag {
  width: 32px;
  height: 22px;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #fff 0 50%, #d7141a 50% 100%);
  border: 1px solid rgba(0,0,0,0.1);
}
.flag:before {
  content: "";
  position: absolute;
  left: 0; top: 0; width: 0; height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #11457e;
}
.holiday-callout strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}
.holiday-callout small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.hero-art {
  align-self: stretch;
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prague-art {
  width: 100%;
  height: 100%;
  max-height: 360px;
  position: absolute;
  inset: 0;
}
.flag-float {
  position: absolute;
  right: 8%;
  top: 14%;
  width: 84px;
  height: 56px;
  transform: rotate(7deg);
  filter: drop-shadow(0 8px 10px rgba(30,45,65,.14));
}
.flag-float .flag { width: 100%; height: 100%; border: 0; }
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f8fbff 0%, rgba(248,251,255,.28) 28%, transparent 60%);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero-art:after {
    background: linear-gradient(90deg, #171f2b 0%, rgba(23,31,43,.28) 32%, transparent 65%);
  }
}

/* Ad Slot (Reserved min-height to prevent CLS) */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--surface-alt), #f0f2f5);
  border: 1px dashed #cbd2dc;
  border-radius: 8px;
  color: #8791a1;
  font-size: 13px;
  line-height: 1.5;
  margin: 20px auto;
}
.ad-leaderboard {
  min-height: 90px;
  width: 100%;
}

/* Search Panel */
.search-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: 20px 0 24px;
  position: relative;
}
.search-panel .input-wrap {
  position: relative;
  flex: 1;
}
.search-panel .input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search-panel input {
  width: 100%;
  border: 1px solid #d6dce4;
  border-radius: 9px;
  padding: 14px 16px 14px 48px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.search-panel input:focus {
  border-color: var(--accent);
}
.suggestions {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 6px;
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
}
.suggestions.show { display: block; }
.suggestion {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
}
.suggestion:hover {
  background: var(--surface-alt);
  color: var(--accent);
}
.suggestion span:last-child {
  color: var(--muted);
  font-size: 12px;
}

/* Section Headings */
.section { margin: 32px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.text-link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

/* Upcoming 7 Days (Grid 7 columns on Desktop) */
.upcoming-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
}
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.day-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
  min-height: 106px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
  transition: transform .15s, border-color .15s;
}
.day-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.day-card .weekday { font-size: 13px; color: var(--muted); }
.day-card .day-date { font-weight: 750; color: var(--accent); font-size: 14px; }
.day-card .names { font-size: 14px; line-height: 1.35; margin-top: 4px; font-weight: 600; }

/* 2 Banner CTA Features */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0 32px;
}
.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  min-height: 94px;
  border: 1px solid transparent;
}
.feature-card.calendar { background: var(--soft-red); border-color: #f7e0e2; }
.feature-card.names { background: var(--soft-blue); border-color: #e0eaf7; }
.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: 0 0 auto;
}
.feature-card.names .feature-icon { color: #1b2b44; }
.feature-card h3 { margin: 0 0 2px; font-size: 17px; font-weight: 750; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.feature-arrow { margin-left: auto; font-size: 24px; color: var(--accent); font-weight: 700; }
.feature-card.names .feature-arrow { color: #1b2b44; }

/* Content Layout (Main column 1fr + Sidebar 300px) */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.article-intro { line-height: 1.75; }
.article-intro h2 { margin-bottom: 16px; }
.article-intro p { margin-bottom: 16px; color: var(--text); }
.article-intro strong { color: var(--text); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar .ad-slot { margin: 0; min-height: 300px; width: 100%; }
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}
.side-card h3 { margin: 0 0 12px; font-size: 17px; font-weight: 750; }
.side-list { list-style: none; }
.side-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
}
.side-list li:last-child { border-bottom: 0; }
.side-list .count {
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-alt);
  border-radius: 20px;
  padding: 2px 8px;
}
.holiday-mini {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
}
.holiday-mini strong { display: block; color: var(--text); font-size: 14.5px; }

/* FAQ Accordion */
.faq-list { display: grid; gap: 10px; }
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 18px;
}
summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary:after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 700; }
details[open] summary:after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; font-size: 15px; line-height: 1.6; }

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.blog-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--surface);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.blog-art {
  height: 130px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #dceaf7, #f6e6ce);
}
.blog-art svg { width: 100%; height: 100%; display: block; }
.blog-content { padding: 14px; flex: 1; }
.blog-meta { font-size: 12px; color: var(--accent); margin-bottom: 6px; font-weight: 600; }
.blog-content h3 { font-size: 16px; line-height: 1.35; margin: 0 0 8px; font-weight: 700; color: var(--text); }
.blog-content p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Footer (Full Wide 4 columns) */
.footer {
  margin-top: 48px;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding: 36px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-brand p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 250px;
  margin: 12px 0;
}
.footer-col h3 { font-size: 14.5px; margin-bottom: 12px; font-weight: 750; }
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  padding: 3px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12.5px;
}
.footer-bottom .legal { display: flex; gap: 12px; flex-wrap: wrap; }

/* Responsive adjustments */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .upcoming-grid { grid-template-columns: repeat(4, 1fr); }
  .day-card:nth-child(n+5) { display: none; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .upcoming-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Data Tables & Helpers */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}
.data-table th, .data-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.data-table th {
  background: var(--surface-alt);
  font-weight: 700;
}
.pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 24px;
}
.pill {
  padding: 6px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}
.greeting-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
