:root {
  --bg: #0d0d0d;
  --surface: #1c1c1c;
  --surface-2: #333333;
  --text: #ffffff;
  --muted: #b5b5b5;
  --accent: #e30613;
  --accent-dark: #a30410;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  position: relative;
}

/* Graffiti-style football pitch backdrop for the whole site (portrait, full width) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('images/home/pitch-graffiti.svg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  opacity: 0.16;
  animation: pitchGlow 7s ease-in-out infinite;
}

body > * {
  position: relative;
  z-index: 1;
}

@keyframes pitchGlow {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(2400px, calc(100% - 4rem));
  margin: 0 auto;
}

.hero {
  background: radial-gradient(circle at top right, rgba(227, 6, 19, 0.16), transparent 32%),
    radial-gradient(circle at bottom left, rgba(227, 6, 19, 0.08), transparent 40%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  padding-top: 5rem; /* clearance for the fixed nav bar */
}

.compact-hero {
  min-height: auto;
}

.page-heading {
  padding: 2.5rem 0 3.5rem;
}

.page-heading-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.page-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.btn-light {
  background: #ffffff;
  color: var(--accent);
}

.btn.btn-light:hover {
  background: #e6e6e6;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:disabled:hover {
  background: inherit;
}

.admin-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-menu-item:hover,
.admin-menu-item:focus-visible {
  background: var(--accent-dark);
}

.admin-menu-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-menu-item-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.admin-menu-item-secondary:hover,
.admin-menu-item-secondary:focus-visible {
  background: var(--surface-2);
}

.admin-menu-item-light {
  background: #ffffff;
  color: var(--accent);
}

.admin-menu-item-light:hover,
.admin-menu-item-light:focus-visible {
  background: #e6e6e6;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  backdrop-filter: blur(12px);
  background: rgba(13, 13, 13, 0.85);
  /* Černý pruh navigace roztažený přes celou šířku okna */
  box-shadow: 0 0 0 100vmax rgba(13, 13, 13, 0.85);
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid var(--border);
}

.logo {
  order: 2;
  flex: 0 0 auto;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.logo .logo-accent {
  color: var(--accent);
}

.nav-menu {
  order: 1;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Kept in markup for possible future use — the hamburger menu now covers navigation at every screen size */
.nav-links {
  display: none;
}

.nav-actions {
  order: 3;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

/* Temporarily hidden nav items — keep in markup for future use */
.nav-links a.nav-link-hidden {
  display: none;
}

.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-avatar:hover,
.nav-avatar:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 2px solid var(--muted);
  border-radius: 999px;
  padding: 2px;
  background: var(--surface);
}

.lang-toggle-option {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle-option:hover:not(.active),
.lang-toggle-option:focus-visible:not(.active) {
  color: var(--text);
}

.lang-toggle-option.active {
  background: var(--accent);
  color: #ffffff;
}

.lit-table-wrap {
  overflow-x: auto;
}

.lit-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.lit-table th,
.lit-table td {
  text-align: left;
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: baseline;
}

.lit-table thead th {
  cursor: pointer;
  user-select: none;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
  transition: color 0.2s ease;
}

.lit-table thead th.is-sortable:hover {
  color: var(--text);
}

.lit-table thead th .sort-arrow {
  margin-left: 0.3rem;
  opacity: 0.35;
  font-size: 0.75em;
}

.lit-table thead th.active {
  color: var(--text);
}

.lit-table thead th.active .sort-arrow {
  opacity: 1;
  color: var(--accent);
}

.lit-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

.lit-table td.lit-cell-title {
  font-weight: 700;
}

.lit-table td.lit-cell-author {
  color: var(--muted);
}

.lit-table td.lit-cell-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.lit-table td.lit-cell-link a:hover {
  text-decoration: underline;
}

.countdown-num {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
}

.countdown-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.hero-content {
  padding: 3.5rem 0 2.5rem;
}

.featured-article-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.1rem;
  max-width: 520px;
}

.featured-article-divider {
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.featured-article-image-link {
  display: block;
}

.featured-article-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

#uvod.section {
  padding-top: 2.5rem;
}

.accent-text {
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-2);
}

/* Mission hero — statické tvrzení projektu nahoře, beze fotky (jen typografie) */
.mission-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.mission-hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.mission-hero-actions .btn {
  margin-top: 0;
}

.mission-hero-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mission-hero-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.mission-hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  padding: 1.8rem;
  overflow: hidden;
}

.mission-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.35) 0%, rgba(13, 13, 13, 0.55) 45%, rgba(13, 13, 13, 0.92) 100%),
    radial-gradient(circle at 30% 20%, rgba(227, 6, 19, 0.22), transparent 55%);
}

.mission-hero-visual::after {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 4px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.mission-hero-visual-side {
  z-index: 1;
  position: absolute;
  top: 1.8rem;
  right: 1.6rem;
  max-width: 8rem;
  text-align: right;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.mission-hero-visual-main {
  position: relative;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

@media (max-width: 900px) {
  .mission-hero-visual {
    aspect-ratio: 16 / 9;
  }
}

/* "Kdo jste?" — 3 karty podle publika */
.who-section-heading {
  text-align: center;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.who-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.who-card {
  position: relative;
  display: block;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.6rem 3.4rem;
  text-decoration: none;
  color: inherit;
  min-height: 320px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.who-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.35) 0%, rgba(13, 13, 13, 0.55) 40%, rgba(13, 13, 13, 0.95) 100%);
  -webkit-backdrop-filter: grayscale(0.6);
  backdrop-filter: grayscale(0.6);
}

.who-card:hover,
.who-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.who-card-icon,
.who-card h3,
.who-card p,
.who-card-arrow {
  position: relative;
  z-index: 1;
}

.who-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: rgba(13, 13, 13, 0.6);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.who-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #ffffff;
}

.who-card p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.who-card-arrow {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.2s ease;
}

.who-card:hover .who-card-arrow,
.who-card:focus-visible .who-card-arrow {
  background: var(--accent-dark);
}

@media (max-width: 900px) {
  .who-grid {
    grid-template-columns: 1fr;
  }
}

/* Nejnovější příběh — hlavní článek + citát dne vedle sebe */
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.story-quote-col {
  align-self: center;
}

.story-quote {
  position: relative;
  padding: 2.2rem 1.6rem 1.6rem;
}

.story-quote-mark {
  position: absolute;
  top: 0.4rem;
  left: 1.4rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
}

.story-quote .eyebrow {
  margin-bottom: 1.4rem;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

/* Banner nad úvodním textem — velký nadpis + slogan, bez fotky */
.uvod-banner {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 1.5rem;
  margin-bottom: 2.5rem;
}

.uvod-banner h2 {
  margin: 0 0 1rem;
}

.uvod-banner-tagline {
  display: inline-block;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.85rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1,
h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin: 0 0 1rem;
}

/* Skrytý, dokud JS nedosadí skutečný hlavní článek – zabraňuje probliknutí
   výchozího textu "Behind the Scenes" před tím, než se z databáze načte
   reálný obsah. */
.featured-article-text {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.featured-article-text.is-visible {
  opacity: 1;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.live-badge::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hero-text {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
}

.btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
}

.hero-card,
.card,
.post-card,
.quote-card,
.chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-card {
  padding: 1.4rem;
  border-top: 3px solid var(--accent);
}

.hero-card ul,
.card ul {
  padding-left: 1rem;
  color: var(--muted);
}

.login-required-layout {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.login-required-text {
  flex: 1 1 320px;
}

.support-donate {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.login-required-layout .support-donate {
  flex: 0 1 340px;
  margin-top: 0;
}

.support-donate img {
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  flex-shrink: 0;
}

.support-donate-account {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0.1rem 0 0.4rem;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 6rem;
}

.alt-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.alt-section .post-card,
.alt-section .card {
  background: var(--bg);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
}

.section-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.section-title-link:hover h2 {
  color: var(--accent);
}

.content-grid,
.blog-grid,
.quotes-grid {
  display: grid;
  gap: 1.2rem;
}

.content-grid {
  grid-template-columns: 1.3fr 0.7fr;
}

.content-grid-single {
  grid-template-columns: 1fr;
}

.login-required-note {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}

.login-required-text {
  flex: 1;
}

.login-required-qr {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  max-width: 140px;
}

.login-required-qr img {
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.login-required-qr span {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .login-required-note {
    flex-direction: column;
    align-items: center;
  }
}

.uvod-features-title {
  margin: 2.5rem 0 1.2rem;
}

.uvod-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.uvod-features .card h4 {
  margin-top: 0;
}

.uvod-features .card p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .uvod-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .uvod-features {
    grid-template-columns: 1fr;
  }
}

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.quotes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.post-card,
.quote-card,
.chapter-card {
  padding: 1.25rem;
}

.chapter-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 3px solid var(--accent);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.chapter-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.chapter-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin: 0.2rem 0 0.5rem;
}

.chapter-card p {
  color: var(--muted);
  margin: 0;
}

.chapter-card .eyebrow {
  margin: 0;
}

.post-card {
  border-top: 3px solid var(--accent);
}

.quote-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quote-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.user-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.user-table th,
.user-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.user-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.user-row td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.user-row:last-child td {
  border-bottom: none;
}

.user-row-name {
  font-weight: 700;
}

.user-row-email {
  color: var(--muted);
  font-size: 0.85rem;
}

.user-role-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.user-role-badge.is-admin {
  border-color: var(--accent);
  color: var(--accent);
}

.gdpr-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  white-space: nowrap;
}

.gdpr-badge.is-ok {
  border-color: #2e7d32;
  color: #4caf50;
}

.gdpr-badge.is-missing {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.btn-icon-only {
  padding: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.user-row-actions {
  white-space: nowrap;
}

.user-row-actions .btn {
  margin-right: 0.5rem;
}

.user-row-actions .btn:last-child {
  margin-right: 0;
}

.user-row-actions .btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.user-detail-row td {
  background: var(--surface-2);
  white-space: normal;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .user-table th,
  .user-table td {
    white-space: normal;
  }
}

.quote-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.featured-quote {
  min-height: 220px;
  border-left: 4px solid var(--accent);
}

.quote-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  margin-top: 0;
}

.quote-author {
  color: var(--accent);
  font-weight: 700;
}

.quote-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.quote-action {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
}

.quote-list-item {
  min-height: 160px;
  position: relative;
}

.quote-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.quote-filter-button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quote-filter-button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.quote-filter-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.quote-filter-count {
  opacity: 0.75;
  font-weight: 500;
}

.quote-category-badge {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.quote-edit-button,
.quote-delete-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.quote-delete-button {
  color: var(--muted);
}

.quote-delete-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.quote-form-section {
  margin-bottom: 1.5rem;
}

.quote-form-card {
  max-width: 680px;
}

/* Širší varianta karty (např. přihlášení se souhlasy) – kolem poloviny
   šířky obrazovky na větších displejích, na mobilu beze změny. */
.wide-auth-card {
  max-width: 560px;
}

@media (min-width: 900px) {
  .wide-auth-card {
    max-width: 50vw;
  }
}

@media (min-width: 1600px) {
  .wide-auth-card {
    max-width: 900px;
  }
}

/* Panel se souhlasy (GDPR + upozornění) – přehlednější karty místo
   jednoho splývajícího odstavce textu. */
.consent-panel {
  margin-top: 0.5rem;
}

.consent-item {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  gap: 0.9rem;
  align-items: flex-start;
  font-weight: normal;
  margin-top: 0.85rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.consent-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.consent-item:has(input:checked) {
  border-color: var(--accent);
  background: rgba(227, 6, 19, 0.09);
}

.consent-item input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.consent-item span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.consent-item span strong {
  color: #ffffff;
}

.quote-form-card h3 {
  margin-top: 0;
}

.quote-form-card label {
  display: block;
  margin-top: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-weight: 600;
}

.quote-form-card textarea,
.quote-form-card input,
.quote-form-card select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
}

.quote-form-card input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.quote-form-card textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.filter-box {
  position: relative;
}

.filter-box::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  border: 2px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}

.filter-box::after {
  content: '';
  position: absolute;
  left: 1.75rem;
  top: 50%;
  width: 7px;
  height: 2px;
  transform: translateY(0.55rem) rotate(45deg);
  transform-origin: left center;
  background: var(--muted);
  pointer-events: none;
}

.filter-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.85rem 1.1rem 0.85rem 2.75rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.filter-input::placeholder {
  color: var(--muted);
}

.filter-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}

.form-status {
  margin-top: 0.9rem;
  color: var(--accent);
  min-height: 1.4rem;
  font-weight: 600;
}

.hidden {
  display: none;
}

.chapter-locked {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.chapter-locked .lock-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.75rem;
}

/* Úvod článku s fotkou na pozadí (napodobuje titulní stranu PDF podkladu) –
   tmavý přechod přes fotku kvůli čitelnosti textu, štítek/nadpis/podtitulek/
   perex se vykreslí přes ni. Bez fotky zůstává běžný tmavý .hero vzhled. */
.article-hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.25) 0%,
    rgba(13, 13, 13, 0.55) 45%,
    rgba(13, 13, 13, 0.96) 100%
  );
}

.article-hero-photo .nav {
  position: relative;
  z-index: 1;
  background: rgba(13, 13, 13, 0.55);
}

.article-hero-photo .page-heading {
  position: relative;
  z-index: 1;
}

.article-hero-photo h1 {
  color: #ffffff;
}

.article-hero-subtitle {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
  max-width: 640px;
  margin: 0 0 1rem;
}

.article-hero-perex {
  max-width: 620px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Obrázky uvnitř textu článku (např. clanek-car-coaching.html) */
.article-body {
  max-width: 760px;
  font-size: 1.05rem;
}

.article-body p {
  line-height: 1.75;
  margin: 0 0 1.4rem;
}

/* Nadpisy odstavců (## v textu článku) – bez tohohle by šlo o obyčejný
   odstavcový text, ne o výrazný časopisový nadpis jako v PDF podkladu.
   Krátká červená linka nad nadpisem opakuje motiv, který web už používá
   jinde (viz .featured-article-divider na homepage). */
.article-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 2.4rem 0 1rem;
}

.article-body > h3:first-child {
  margin-top: 0;
}

.article-body h3::before {
  content: '';
  display: block;
  width: 3.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 0.9rem;
}

.article-image {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin: 0.5rem 0 1.8rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Magazínové bloky uvnitř textu článku – štítek, zvýrazněná citace, karty a
   statistiky vedle sebe (viz syntaxe #tag / > citace / ::grid v clanky-sprava.html) */
.article-tag {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  margin: 2.6rem 0 0.6rem;
}

.article-body > .article-tag:first-child {
  margin-top: 0;
}

/* Nadpis hned po štítku patří k sobě – nechceme mezi nimi stejnou velkou
   mezeru jako před "osamělým" nadpisem. */
.article-tag + h3 {
  margin-top: 0.4rem;
}

.article-tag + h3::before {
  display: none;
}

.article-quote {
  position: relative;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.4;
  padding: 2.4rem 2rem 1.8rem;
  border-radius: 12px;
  margin: 0.5rem 0 1.8rem;
}

.article-quote::before {
  content: '\201C';
  position: absolute;
  top: 0.3rem;
  left: 1.7rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
}

.article-quote p {
  margin: 0;
}

.article-indent {
  margin: 0 0 1.2rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.2rem;
}

.article-card h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
}

.article-stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.article-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-card h3,
.card h3 {
  margin-top: 0;
}

.card h4 {
  margin: 1.1rem 0 0.25rem;
  font-size: 1rem;
  line-height: 1.4;
}

.card h4 + p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Postřehy pod sebou v listu */
.postreh-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 820px;
}

/* Autor slabým písmem vedle předmětu */
.postreh-autor {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.6rem;
  white-space: nowrap;
}

.komentar-nick {
  width: 100%;
  max-width: 320px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  margin-bottom: 0.5rem;
}

.komentar-nick::placeholder {
  color: var(--muted);
}

/* Pole pro komentář stejným písmem jako zbytek stránky */
.komentar-form textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  resize: vertical;
}

.komentar-form textarea::placeholder {
  color: var(--muted);
}

.komentare {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.komentare h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.komentar {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
}

.komentar .komentar-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.komentar p {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
}

.komentar-form textarea {
  margin-top: 0.5rem;
}

.komentar-login-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.komentar-login-note a {
  color: var(--accent);
}

.komentar-delete {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-top: 0.3rem;
}

.komentar-delete:hover {
  color: var(--accent);
}

.chapters-rail {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 0.6rem;
}

.chapters-rail-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.chapters-rail-link:hover,
.chapters-rail-link:focus-visible {
  background: var(--accent);
  color: #ffffff;
}

.chapters-rail-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
  min-width: 1.6rem;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.chapters-rail-link:hover .chapters-rail-num,
.chapters-rail-link:focus-visible .chapters-rail-num {
  color: #ffffff;
}

.chapters-rail-text {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}

.chapters-rail-link:hover .chapters-rail-text,
.chapters-rail-link:focus-visible .chapters-rail-text {
  max-width: 220px;
  opacity: 1;
}

@media (max-width: 1300px) {
  .chapters-rail {
    display: none;
  }
}

@media (min-width: 1301px) {
  /* Keep page content clear of the fixed chapters rail on the left edge. */
  .container {
    padding-left: 6rem;
  }
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-footer-tagline {
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.site-footer-qr {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer-qr img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
  flex-shrink: 0;
}

.site-footer-qr-text p {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.site-footer-qr-text span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer-bottom a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero-content,
  .content-grid,
  .blog-grid,
  .quotes-grid,
  .mission-hero-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-top: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .page-heading-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Fullscreen mobilní menu (hamburger) */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.4rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4rem;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.1rem, 9vw, 2.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  cursor: pointer;
  text-align: left;
}

.mobile-menu-toggle-item[aria-expanded='true'] {
  color: var(--accent);
}

.mobile-menu-chevron {
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-menu-toggle-item[aria-expanded='true'] .mobile-menu-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: max-height 0.3s ease;
}

.mobile-submenu.is-open {
  max-height: 640px;
}

.mobile-submenu-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}

.mobile-submenu-link::after {
  content: '›';
  margin-left: auto;
  color: var(--muted);
  font-size: 1.2rem;
}

.mobile-submenu-bar {
  width: 3px;
  height: 1.3rem;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.mobile-submenu-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
  min-width: 1.8rem;
}

.mobile-submenu-text {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  padding: 1rem 1.4rem;
  margin-top: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
}

.mobile-menu-cta-divider {
  width: 1px;
  height: 1.4rem;
  background: rgba(255, 255, 255, 0.4);
}

.mobile-menu-cta-arrow {
  margin-left: auto;
}


