/* Vzhled webu (nový design) – nezávislý na style.css starého webu. */

:root {
  --n-orange: #c2510f;
  --n-orange-dark: #9a3f0a;
  --n-text: #1f1f1f;
  --n-bg: #ffffff;
  --n-bg-alt: #f6f3f0;
  --n-ph: #e4dfda;
  --n-ph-dark: #d3ccc5;
  --n-radius: 10px;
  --n-header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--n-header-h); }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--n-text);
  background: var(--n-bg);
  line-height: 1.6;
}

.n-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hlavička ---------- */

.n-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--n-orange);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.n-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--n-header-h);
}

.n-logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: .02em;
  line-height: 1;
}

/* „.CZ“ v logu o něco menší */
.n-logo span {
  font-size: .62em;
  font-weight: 700;
  margin-left: .05em;
}

.n-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.n-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  opacity: .9;
}

.n-nav a:hover, .n-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.n-nav-toggle, .n-burger { display: none; }

@media (max-width: 800px) {
  .n-burger {
    display: flex;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
  }

  .n-burger span,
  .n-burger span::before,
  .n-burger span::after {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    position: relative;
  }

  .n-burger span::before, .n-burger span::after { content: ""; position: absolute; }
  .n-burger span::before { top: -8px; }
  .n-burger span::after { top: 8px; }

  .n-nav {
    display: none;
    position: absolute;
    top: var(--n-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--n-orange-dark);
  }

  .n-nav a { padding: 14px 24px; border-top: 1px solid rgba(255, 255, 255, .15); }

  .n-nav-toggle:checked ~ .n-nav { display: flex; }
}

/* ---------- Tlačítka a štítky ---------- */

.n-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--n-orange);
  background: var(--n-orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.n-btn:hover { background: var(--n-orange-dark); border-color: var(--n-orange-dark); }

.n-btn--outline { background: transparent; color: var(--n-orange); }
.n-btn--outline:hover { background: var(--n-orange); color: #fff; border-color: var(--n-orange); }

.n-btn--light { background: #fff; border-color: #fff; color: var(--n-orange); }
.n-btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

.n-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fbe3d3;
  color: var(--n-orange-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.n-tag--light { background: rgba(255, 255, 255, .2); color: #fff; margin-bottom: 16px; }

/* ---------- Sekce ---------- */

/* Světlý přechod pod hlavičkou na každé stránce – pevná výška, ať vypadá
   všude stejně bez ohledu na délku stránky. */
main {
  display: block;
  background: linear-gradient(180deg, #fbefe6 0, var(--n-bg) 480px) no-repeat;
}

.n-section { padding: 72px 0; }
.n-section--alt { background: var(--n-bg-alt); }
/* Úvodní stránka: každá druhá vykreslená sekce šedá, ať je na stránce kterákoli
   (podle role nebo obsahu). Ostatní prvky (promo, nabídka instalace) se nepočítají. */
.n-stripes > :nth-child(even of .n-section) { background: var(--n-bg-alt); }

.n-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.n-section__head .n-heading { margin: 0; }

.n-heading {
  margin: 0 0 32px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--n-orange);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.n-grid { display: grid; gap: 24px; }
.n-grid--2 { grid-template-columns: repeat(2, 1fr); }
.n-grid--3 { grid-template-columns: repeat(3, 1fr); }
.n-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Promo plocha */

.n-promo { padding: 48px 0 24px; }

.n-promo__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--n-orange) 0%, var(--n-orange-dark) 100%);
  color: #fff;
}

.n-promo__text .n-btn { margin-top: 20px; }

.ph--promo { aspect-ratio: 16 / 10; }

/* Aplikace */

.n-app {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--n-radius);
  background: #fff;
  border: 2px solid var(--n-bg-alt);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.n-app:hover { border-color: var(--n-orange); box-shadow: 0 6px 24px rgba(194, 81, 15, .12); }

.n-app__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fbe3d3;
  font-size: 1.9rem;
}

.n-app__body { flex: 1; min-width: 0; }
.n-app__body h3 { margin: 0 0 10px; font-size: 1.1rem; }
.n-app__body .ph:last-child { margin-bottom: 0; }
.n-app__body p { margin: 0; }

.n-app__arrow { font-size: 1.4rem; font-weight: 700; color: var(--n-orange); }

/* Novinky */

.n-news {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

.n-news__side { display: grid; gap: 24px; }

.n-news__item { display: grid; grid-template-columns: 2fr 3fr; }
.n-news__item > .ph--img { aspect-ratio: auto; height: 100%; min-height: 140px; }

.n-card__body .n-tag { margin-bottom: 4px; }

/* Ikona přehrávání přes náhled videa */
.n-media--video { position: relative; }

.n-media--video { color: transparent; }

.n-media--video::before,
.n-media--video::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
}

.n-media--video::before {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(194, 81, 15, .9);
}

.n-media--video::after {
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}

/* Akce */

.n-event__body { display: flex; gap: 20px; align-items: flex-start; }
.n-event__body > div:last-child { flex: 1; }
.n-event__body h3 { margin: 0 0 10px; font-size: 1.15rem; }

.n-event__date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--n-orange);
  color: #fff;
  line-height: 1.1;
}

.n-event__date strong { font-size: 1.4rem; }
.n-event__date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }

/* Katalog služeb */

.n-catalog {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.n-catalog__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #fbe3d3;
  font-size: 2.8rem;
}

.n-catalog__text { flex: 1; min-width: 0; }
.n-catalog__text .n-heading { margin-bottom: 8px; }
.n-catalog__text p { margin: 0; max-width: 620px; }

.n-card {
  background: #fff;
  border-radius: var(--n-radius);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.n-card--flush { padding: 0; overflow: hidden; }
.n-card--flush > .ph--img { border-radius: 0; }

/* Obrázek přes celou šířku karty (akce, novinky) – vždy 16:9, jiný poměr se ořízne. */
.n-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.n-card__body { padding: 24px; }

.n-footer { background: #1f1f1f; color: #fff; padding: 40px 0; }

.n-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.n-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9rem; }

.n-footer__links a { color: inherit; }

@media (max-width: 900px) {
  .n-grid--3, .n-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .n-news { grid-template-columns: 1fr; }
  .n-promo__card { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 700px) {
  .n-wrap { padding: 0 16px; }
  .n-section { padding: 48px 0; }
  .n-promo { padding: 24px 0 8px; }
  .n-promo__card { padding: 24px; gap: 24px; }
  .n-grid--2, .n-grid--3 { grid-template-columns: 1fr; }
  .n-heading { font-size: 1.5rem; }
  .n-btn { padding: 10px 18px; font-size: .85rem; }
  .n-footer__inner { flex-direction: column; align-items: flex-start; }
  .n-catalog { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
  .n-catalog__icon { width: 72px; height: 72px; border-radius: 18px; font-size: 2.1rem; }
}

/* ---------- Přihlášení a registrace ---------- */

/* Uživatelské menu v hlavičce – na desktopu rozbalovací (checkbox jako přepínač, bez JS). */
.n-account { position: relative; }

.n-account__toggle { display: none; }

.n-account__button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
}

.n-account__button::after { content: "▾"; font-size: .8em; }

.n-account__button:hover,
.n-account__toggle:checked + .n-account__button { background: #fff; color: var(--n-orange); }

.n-account__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  padding: 6px 0;
  background: #fff;
  border-radius: var(--n-radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.n-account__toggle:checked ~ .n-account__menu { display: block; }

.n-account__menu form { margin: 0; }

.n-nav .n-account__menu a,
.n-account__menu button {
  display: block;
  width: 100%;
  padding: 10px 18px;
  border: 0;
  background: none;
  color: var(--n-text);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-align: left;
  text-decoration: none;
  opacity: 1;
  cursor: pointer;
}

.n-nav .n-account__menu a:hover,
.n-account__menu button:hover { background: var(--n-bg-alt); color: var(--n-orange); }

/* Přepínač návštěvník / admin (VIP) – vzhled .p-seg z nastavení upozornění. */
.n-account__view { display: flex; justify-content: center; padding: 8px 18px 10px; border-bottom: 1px solid var(--n-bg-alt); }

/* Na mobilu jsou položky přímo v rozbaleném hlavním menu, jméno jen jako nadpis. */
@media (max-width: 800px) {
  .n-account__button {
    padding: 14px 24px 4px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
    border-radius: 0;
    font-size: .8rem;
    opacity: .75;
    pointer-events: none;
  }

  .n-account__button::after { content: none; }

  .n-account__menu { display: block; position: static; min-width: 0; padding: 0; background: none; border-radius: 0; box-shadow: none; }

  .n-nav .n-account__menu a,
  .n-account__menu button { padding: 14px 24px; color: #fff; }

  .n-nav .n-account__menu a { border-top: 0; }

  .n-account__view { justify-content: flex-start; padding: 10px 24px; border-bottom: 0; }

  .n-account__view .p-seg { border-color: #fff; }

  .n-account__view .p-seg span { color: #fff; }

  .n-account__view .p-seg input:checked + span { background: #fff; color: var(--n-orange); }

  .n-nav .n-account__menu a:hover,
  .n-account__menu button:hover { background: none; color: #fff; text-decoration: underline; text-underline-offset: 6px; }
}

/* Proužek s nabídkou instalace PWA na hlavní stránce (jen telefony a tablety). */
.n-install { background: #fbe3d3; color: var(--n-orange-dark); }
.n-install[hidden], .n-install [hidden] { display: none; }

.n-install__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.n-install__icon { flex: none; border-radius: 12px; }

.n-install__text { flex: 1; display: grid; gap: 2px; font-size: .9rem; line-height: 1.35; }

.n-install__close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.n-install__close:hover { background: rgba(0, 0, 0, .06); }

@media (max-width: 800px) {
  .n-install__inner { padding-left: 16px; padding-right: 8px; gap: 10px; }
}

/* Dialog po přesměrování ze Samsung Internetu do Chromu (?instalace=1). */
.n-install-dialog {
  width: min(360px, calc(100% - 32px));
  padding: 28px 24px 24px;
  border: 0;
  border-radius: 16px;
  text-align: center;
  color: var(--n-text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.n-install-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.n-install-dialog [hidden] { display: none; }
.n-install-dialog img { border-radius: 14px; }
.n-install-dialog h2 { margin: 12px 0 8px; font-size: 1.2rem; }
.n-install-dialog p { margin: 0 0 20px; line-height: 1.45; }
.n-install-dialog__actions { display: grid; gap: 10px; }

/* Tlačítko instalace PWA – ukáže ho až assets/js/pwa.js, když to prohlížeč umí. */
.n-nav__install {
  padding: 4px 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--n-orange);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
}

.n-nav__install[hidden] { display: none; }

.n-nav__install:hover { background: transparent; color: #fff; }

@media (max-width: 800px) {
  .n-nav__install { margin: 14px 24px; align-self: flex-start; }
}

.a-card { max-width: 440px; margin: 0 auto; }

.a-form { display: grid; gap: 16px; }

.a-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }

.a-form small { font-weight: 400; color: #6b625a; }

.a-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--n-ph-dark);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}

.a-form input:focus { outline: 2px solid var(--n-orange); outline-offset: -1px; border-color: transparent; }

.a-form .n-btn { justify-self: start; cursor: pointer; }

.a-error { padding: 12px 16px; border-radius: 8px; background: #fbe3d3; }

.a-note { margin: 24px 0 0; font-size: .9rem; }

.a-note a { color: var(--n-orange); font-weight: 600; }

.a-providers { display: grid; gap: 10px; }

.a-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--n-ph-dark);
  border-radius: 999px;
  background: #fff;
  color: var(--n-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.a-provider__icon { flex: none; width: 20px; height: 20px; }

.a-provider:hover { background: var(--n-bg-alt); }

.a-provider--facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.a-provider--facebook:hover { background: #166fe5; }

.a-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #6b625a;
  font-size: .85rem;
}

.a-divider::before, .a-divider::after { content: ""; flex: 1; height: 1px; background: var(--n-ph); }

/* ---------- Svozy odpadu (/odpady/) ---------- */

.w-page { padding-top: 48px; }

.w-error { padding: 16px 20px; border-radius: var(--n-radius); background: #fbe3d3; }

.w-swatch {
  display: inline-block;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  vertical-align: -2px;
  margin-right: 8px;
}

.w-next {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.w-next__item {
  display: flex;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid #ddd;
  border-radius: var(--n-radius);
  background: var(--n-bg-alt);
  line-height: 1.4;
}

.w-next__item .w-swatch { width: 18px; height: 18px; margin-top: 2px; margin-right: 12px; }
.w-next__item strong, .w-next__item span { display: block; }
.w-next__item em { font-style: normal; color: var(--n-orange); font-weight: 600; }

.w-changes {
  margin-bottom: 32px;
  padding: 18px 22px;
  border-left: 4px solid var(--n-orange);
  border-radius: var(--n-radius);
  background: #fbefe6;
}

.w-changes h2 { margin: 0 0 8px; font-size: 1.05rem; }
.w-changes ul { margin: 0; padding: 0; list-style: none; }
.w-changes li { padding: 2px 0; }
.w-changes__note { color: #6b625a; }

.w-months {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.w-month {
  align-self: start;
  border: 2px solid #8f8a85;
  border-radius: 8px;
  overflow: hidden;
}

.w-table th.w-month__label {
  padding: 8px 0;
  background: #d9d4cf;
  font-weight: 800;
  font-size: 1.1rem;
  border-bottom: 1px solid #b9b3ad;
}

.w-month__label small { font-weight: 600; font-size: .75em; color: #6b625a; }

.w-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
  font-weight: 600;
}

.w-table th {
  padding: 6px 0;
  background: #e7e4e1;
  font-weight: 600;
  font-size: .85rem;
  border-bottom: 1px solid #b9b3ad;
}

.w-table th:nth-child(n+6) { background: #cfe3bd; }

.w-day {
  height: 38px;
  padding: 0;
  border: 1px solid #d6d1cc;
  background: #fff;
}

.w-day.is-weekend { background: #dcecce; }
.w-day.has-pickup { font-weight: 800; }
.w-day.is-dark { color: #fff; }
.w-day.is-empty { background: #f4f2f0; }
.w-day.is-empty.is-weekend { background: #e6f0dc; }

/* Přesunutý / mimořádný svoz */
.w-day.is-changed { position: relative; }

.w-day.is-changed::after {
  content: "!";
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1;
}

.w-day.is-past { color: #9c958e; filter: grayscale(.7); opacity: .45; }

.w-day.is-today {
  position: relative;
  box-shadow: inset 0 0 0 3px var(--n-text);
  font-weight: 800;
  font-size: 1.05rem;
}

.w-day.is-today:not(.has-pickup) { background: #fbe3d3; }

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

@media (max-width: 700px) {
  .w-page { padding-top: 24px; }
  .w-next { gap: 10px; }
  .w-next__item { padding: 12px 14px; font-size: .9rem; }
  .w-months { grid-template-columns: 1fr; gap: 20px; }
  .w-day { height: 44px; font-size: 1.05rem; }

  /* Na mobilu se aktuální měsíc zobrazuje až od aktuálního týdne. */
  .w-table tr.is-past-week { display: none; }
}

/* ---------- Denní menu (/denni-menu/) ---------- */

.m-intro { margin: -8px 0 24px; color: #6b625a; }

.m-empty { padding: 16px 20px; border-radius: var(--n-radius); background: var(--n-bg-alt); }

.m-days {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.m-days__link {
  flex: none;
  min-width: 96px;
  padding: 8px 14px;
  border: 2px solid var(--n-ph);
  border-radius: var(--n-radius);
  background: var(--n-bg);
  color: var(--n-text);
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
}

.m-days__link strong, .m-days__link small { display: block; }
.m-days__link small { color: #6b625a; font-weight: 600; }
.m-days__link:hover { border-color: var(--n-orange); }
.m-days__link.is-active { border-color: var(--n-orange); background: var(--n-orange); color: #fff; }
.m-days__link.is-active small { color: #fff; opacity: .85; }

.m-day { margin-bottom: 40px; }
.m-day[hidden] { display: none; }

.m-day__title { margin: 0 0 16px; font-size: 1.3rem; }
.m-day__title em { margin-left: 6px; color: var(--n-orange); font-style: normal; font-size: .8em; }

.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}

.m-card {
  border: 1px solid #ddd;
  border-radius: var(--n-radius);
  background: var(--n-bg);
}

.m-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--n-radius) var(--n-radius) 0 0;
  background: var(--n-bg-alt);
  border-bottom: 1px solid #e6e1dc;
}

.m-card__head h3 { margin: 0; font-size: 1.1rem; }
.m-card__head span { color: #6b625a; font-size: .85rem; }
.m-card__badges { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.m-card__badges li { padding: 2px 9px; border-radius: 999px; background: #fdeee4; color: var(--n-orange-dark); font-size: .78rem; font-weight: 600; }

.m-card__actions { position: relative; align-self: center; margin: -6px -8px -6px auto; }

.m-card__toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #6b625a;
  cursor: pointer;
}
.m-card__toggle:hover, .m-card__toggle[aria-expanded="true"] { background: #ebe5df; color: var(--n-orange); }

.m-card__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 10;
  min-width: 220px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: var(--n-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.m-card__menu[hidden], .m-card__menu [hidden], .m-card[hidden], .m-empty[hidden] { display: none; }

.m-card__menu button, .m-card__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: .9rem;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.m-card__menu button:hover, .m-card__menu a:hover { background: var(--n-bg-alt); color: var(--n-orange); }
.m-card__menu svg { flex: none; width: 16px; height: 16px; color: #8a827a; }
.m-card__menu button:hover svg, .m-card__menu a:hover svg { color: inherit; }

.m-card__empty { margin: 0; padding: 16px 18px; color: #8a827a; font-size: .9rem; }
.m-card__notice { padding: 16px 18px; color: #5c554e; font-size: .95rem; }
.m-card__notice p { margin: 0; }
.m-card__notice p + p { margin-top: 4px; }
.m-card__notice p:first-child { font-weight: 700; color: #2b2622; }
.m-card.is-empty .m-card__head { background: #fbfaf9; }

.m-items { margin: 0; padding: 4px 18px 8px; list-style: none; }

.m-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dotted #d6d1cc;
  line-height: 1.4;
}

.m-item:last-child { border-bottom: 0; }
.m-item--soup { color: #4a443f; }
.m-item--soup b { font-weight: 700; }

.m-item__desc { display: block; color: #6b625a; font-size: .85rem; }

.m-item__allergens {
  margin-left: 4px;
  color: #a39b93;
  font-size: .75rem;
  white-space: nowrap;
}

.m-item__price { flex: none; font-weight: 700; white-space: nowrap; }
.m-item--soup .m-item__price { color: #6b625a; font-weight: 600; font-size: .85rem; }

@media (max-width: 700px) {
  .m-grid { grid-template-columns: 1fr; gap: 14px; }
  .m-days__link { min-width: 84px; padding: 6px 10px; }
  .m-items { padding: 2px 14px 6px; }
  .m-card__head { padding: 12px 14px; }
}

/* ---------- Naše deskovky (/nase-deskovky/) ---------- */

.d-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; color: #6b625a; font-size: .9rem; }
.d-stats b { color: var(--n-text); font-variant-numeric: tabular-nums; }

.d-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.d-controls[hidden] { display: none; }

.d-controls input,
.d-controls select {
  min-width: 0;
  padding: 8px 12px;
  border: 2px solid var(--n-ph);
  border-radius: var(--n-radius);
  background: var(--n-bg);
  color: var(--n-text);
  font: inherit;
  font-size: .9rem;
}

.d-controls input:focus,
.d-controls select:focus { outline: none; border-color: var(--n-orange); }

#d-q { flex: 1 1 180px; }
#d-players { width: 72px; }

.d-inline { display: inline-flex; align-items: center; gap: 8px; color: #6b625a; font-size: .9rem; font-weight: 600; }

.d-seg { display: inline-flex; border: 2px solid var(--n-ph); border-radius: var(--n-radius); overflow: hidden; background: var(--n-bg); }

.d-seg button {
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--n-text);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}

.d-seg button + button { border-left: 2px solid var(--n-ph); }
.d-seg button:hover { color: var(--n-orange); }
.d-seg button[aria-pressed="true"] { background: var(--n-orange); color: #fff; }

.d-tablebox { overflow-x: auto; border: 1px solid #ddd; border-radius: var(--n-radius); background: var(--n-bg); }

.d-table { width: 100%; min-width: 680px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }

.d-table th,
.d-table td { padding: 10px 14px; border-bottom: 1px solid #ece7e2; text-align: left; white-space: nowrap; }

.d-table tbody tr:last-child td { border-bottom: 0; }
.d-table tbody tr:hover td { background: #fdf8f4; }

.d-table th { background: var(--n-bg-alt); color: #6b625a; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.d-table th button { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.d-table th button:hover { color: var(--n-orange); }
.d-table th button:focus-visible { outline: 2px solid var(--n-orange); outline-offset: 2px; }
.d-table th button[data-dir]::after { content: attr(data-dir); color: var(--n-orange); }

.d-name { min-width: 180px; font-weight: 700; white-space: normal !important; }
.d-name small { display: block; color: #6b625a; font-size: .8rem; font-weight: 500; }

.d-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.d-chip--my { background: #fbe3d3; color: var(--n-orange-dark); }
.d-chip--ma { background: #dcecce; color: #3f6a22; }

.d-pips { display: inline-flex; gap: 3px; margin-right: 4px; vertical-align: middle; }
.d-pips i { width: 10px; height: 10px; border-radius: 2px; background: var(--n-ph); }
.d-pips i.is-on { background: var(--n-orange); }

.d-empty { margin: 0; padding: 24px; color: #6b625a; }

/* Výběr na deskohraní */
.d-star { width: 1%; padding-right: 0 !important; }

.d-star button {
  all: unset;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #b8afa6;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.d-star button::before { content: "☆"; }
.d-star button[aria-pressed="true"] { color: var(--n-orange); }
.d-star button[aria-pressed="true"]::before { content: "★"; }
.d-star button:hover { background: #fbe3d3; color: var(--n-orange); }
.d-star button:focus-visible { outline: 2px solid var(--n-orange); outline-offset: 1px; }
.d-star button:disabled { opacity: .5; cursor: wait; }

.d-table tbody tr.is-picked td { background: #fdf3ec; }

.d-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.d-picks {
  margin-bottom: 28px;
  padding: 20px 24px;
  border-radius: var(--n-radius);
  background: var(--n-bg-alt);
  border-left: 4px solid var(--n-orange);
}

.d-picks__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.d-picks__head h2 { margin: 0; font-size: 1.15rem; }
.d-picks__head span { color: #6b625a; font-size: .9rem; }

.d-picks__empty { margin: 0; color: #6b625a; font-size: .9rem; }
.d-picks__empty[hidden] { display: none; }

.d-picks__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }

.d-pick { padding: 10px 14px; border-radius: var(--n-radius); background: var(--n-bg); line-height: 1.35; }
.d-pick[hidden] { display: none; }
.d-pick strong, .d-pick span { display: block; }
.d-pick span { margin-top: 2px; color: #6b625a; font-size: .8rem; }
.d-note { max-width: 65ch; margin: 16px 0 0; color: #6b625a; font-size: .85rem; }

/* ---------- Placeholdery ---------- */

.ph {
  display: block;
  background: var(--n-ph);
  border-radius: 6px;
  margin-bottom: 12px;
}

.ph--line { height: 14px; }
.ph--subtitle { height: 20px; width: 75%; margin-top: 18px; }
.ph--title { height: 40px; margin-bottom: 16px; background: var(--n-ph-dark); }

.ph--img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  color: #9c938a;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, .35) 12px 24px),
    var(--n-ph);
  border-radius: var(--n-radius);
  margin: 0;
}

.ph--wide { aspect-ratio: 16 / 9; }

.ph--light { background: rgba(255, 255, 255, .3); }

.ph--w40 { width: 40%; }
.ph--w50 { width: 50%; }
.ph--w60 { width: 60%; }
.ph--w70 { width: 70%; }
.ph--w80 { width: 80%; }

/* ---------- Právní stránky ---------- */

.n-legal { max-width: 860px; }
/* ---------- Mapa (Pages/Shared/_MapFrame.cshtml, assets/js/map.js) ---------- */

.map-frame {
  width: 100%;
  height: 460px;
  border-radius: var(--n-radius);
  overflow: hidden;
  border: 1px solid var(--n-ph);
  background: var(--n-bg-alt);
  /* Leaflet dává svým ovládacím prvkům z-index až 1000 – bez vlastního
     stacking contextu by prosvítaly nad hlavičkou a menu. */
  isolation: isolate;
}
@media (min-width: 900px) {
  .map-frame { height: 550px; }
}

.leaflet-popup-content {
  font-family: inherit;
  font-size: .92rem;
  line-height: 1.45;
  margin: 10px 14px;
}

.map-popup-list {
  margin: 6px 0 0;
  padding-left: 18px;
}
.map-popup-list li { margin: 2px 0; }

.map-marker-icon,
.leaflet-div-icon.map-marker-icon,
.map-cluster-icon,
.leaflet-div-icon.map-cluster-icon {
  background: transparent;
  border: none;
}
.map-marker-icon span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--n-orange);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.map-cluster-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--n-orange);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.n-legal .n-heading { margin-bottom: 8px; }
.n-legal__date { margin: 0 0 32px; font-size: .9rem; opacity: .7; }
.n-legal h2 { margin: 40px 0 12px; font-size: 1.25rem; }
.n-legal ul { padding-left: 24px; }
.n-legal li { margin-bottom: 6px; }
.n-legal a { color: var(--n-orange); font-weight: 600; }
.n-legal__table { overflow-x: auto; margin: 16px 0; }
.n-legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.n-legal th, .n-legal td { padding: 10px 12px; border: 1px solid #e3e3e3; text-align: left; vertical-align: top; }
.n-legal th { background: var(--n-bg-alt); }
.n-legal__links { margin-top: 40px; }

/* ---------- Newsletter (/newsletter) ---------- */

/* Dokud se nenačte TinyMCE (nebo když se nenačte vůbec), je vidět textarea. */
.nl-editor { width: 100%; }

/* ---------- Správa uživatelů (/admin/uzivatele) ---------- */

.u-list { display: grid; gap: 16px; }

.u-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}

.u-user__info { min-width: 0; overflow-wrap: anywhere; }
.u-user__info small { color: #6b625a; }

.u-user__roles { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.u-user__roles label { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.u-user__roles .n-btn { padding: 6px 18px; cursor: pointer; }

@media (max-width: 700px) {
  .u-user { flex-direction: column; align-items: flex-start; }
}

/* ---------- Upozornění (panel _NewPushPanel, assets/js/push.js) ---------- */

/* Zvonek v hlavičce – na desktopu za menu, na mobilu před hamburgerem. */
.n-bell {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.n-bell:hover { background: rgba(255, 255, 255, .15); }

/* Se zvonkem jsou v hlavičce tři položky – menu má zůstat vpravo, ne uprostřed. */
.n-header__inner .n-nav { margin-left: auto; }

@media (max-width: 800px) {
  .n-bell { order: 0; margin: 0 8px 0 auto; }
}

.w-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.w-head .n-heading { margin-bottom: 0; }
.w-remind { cursor: pointer; }

/* Při otevřeném panelu se stránka pod ním neposouvá. */
.p-locked { overflow: hidden; }

.p-panel { position: fixed; inset: 0; z-index: 200; }
.p-panel[hidden], .p-panel [hidden] { display: none; }

.p-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .25s;
}

.p-panel__sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--n-bg);
  box-shadow: -8px 0 28px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .25s ease;
  outline: none;
}

.p-panel.is-open .p-panel__backdrop { opacity: 1; }
.p-panel.is-open .p-panel__sheet { transform: none; }

.p-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 24px;
  height: var(--n-header-h);
  background: var(--n-orange);
  color: #fff;
}

.p-panel__head h2 { margin: 0; font-size: 1.2rem; }

.p-panel__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.p-panel__close:hover { background: rgba(255, 255, 255, .15); }

.p-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px calc(32px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.p-status p { margin: 0 0 12px; }
.p-steps { margin: 0; padding-left: 20px; }

/* Nastavení webu (_NewSettingsPanel). */
.s-section h3 { margin: 0 0 4px; font-size: 1.05rem; }
.s-section__hint { margin: 0 0 8px; color: #6b625a; font-size: .85rem; }
.s-section__hint a { color: var(--n-orange); }

/* Zkouška a vypnutí – na konci panelu, pod nastavením a seznamem zařízení. */
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px; padding-top: 16px; border-top: 2px solid #e6e0da; }
.p-btn-small { padding: 6px 16px; font-size: .85rem; cursor: pointer; }
.p-status .n-btn, .p-actions .n-btn { cursor: pointer; }
.p-status .n-btn:disabled, .p-actions .n-btn:disabled { opacity: .6; cursor: default; }

.p-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--n-orange);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.p-settings { margin-top: 24px; padding-top: 8px; border-top: 2px solid #e6e0da; }
/* Nahoře není nic vidět (zapnuto a zkouška už proběhla) – čára by oddělovala prázdno. */
.p-status:not(:has(> :not([hidden]):not(:empty))) + .p-settings { margin-top: 0; padding-top: 0; border-top: 0; }

.p-note { margin: 12px 0 4px; padding: 10px 14px; border-radius: 8px; background: var(--n-bg-alt); font-size: .85rem; color: #6b625a; }
/* Ikonka „i“ před textem – kroužek s písmenem v barvě textu (SVG jako maska). */
.p-note--info { display: flex; align-items: flex-start; gap: 8px; }
.p-note--info::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm0 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM9 12.5H7V7h2v5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm0 3.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM9 12.5H7V7h2v5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Přepínač (toggle switch) – checkbox skrytý pod posuvníkem, funguje i klávesnicí. */
.p-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  cursor: pointer;
}

.p-switch + .p-switch { border-top: 1px solid #f0ebe6; }
/* Novinky a Svoz odpadu jsou samostatné sekce – silnější čára, mezi druhy odpadu zůstává tenká. */
.p-settings > .p-switch + .p-switch { border-top: 2px solid #e6e0da; }

.p-switch__text { display: grid; line-height: 1.35; }
.p-switch__text small { color: #6b625a; font-size: .8rem; }

.p-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.p-switch__track {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cfc8c1;
  transition: background .2s;
}

.p-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s;
}

.p-switch input:checked + .p-switch__track { background: var(--n-orange); }
.p-switch input:checked + .p-switch__track::after { transform: translateX(20px); }
.p-switch input:focus-visible + .p-switch__track { outline: 2px solid var(--n-orange); outline-offset: 2px; }
.p-switch input:disabled + .p-switch__track { opacity: .5; }
.p-switch:has(input:disabled) { cursor: default; }

.p-switch--sub { padding: 10px 0; }
.p-switch--sub .p-switch__text { display: flex; align-items: center; font-weight: 600; }

/* Termíny upozornění na svoz – dva sloupce, v každém přepínač a kolečko s hodinou. */
/* Sloupce sdílí řádky (subgrid) – kolečka jsou vždy ve stejné výšce, i kdyby se popisek zalomil. */
.p-when { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; padding: 12px 0 4px; }
.p-when__col { display: grid; grid-row: span 2; grid-template-rows: subgrid; justify-items: center; min-width: 0; }
.p-when__col .p-switch { width: 100%; max-width: 160px; gap: 8px; }
.p-when__col .p-switch__text { white-space: nowrap; }
/* Na hodně úzkém displeji se popisek zalomit smí – kolečka díky subgridu zůstanou zarovnaná. */
@media (max-width: 359px) { .p-when__col .p-switch__text { white-space: normal; } }

/* Přepínač dvou voleb (zatím jen návštěvník / admin v hlavičce). */
.p-seg { display: inline-flex; border: 2px solid var(--n-orange); border-radius: 999px; overflow: hidden; }
.p-seg label { position: relative; cursor: pointer; }
.p-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.p-seg span { display: block; padding: 6px 16px; color: var(--n-orange); font-size: .9rem; font-weight: 700; }
.p-seg input:checked + span { background: var(--n-orange); color: #fff; }
/* Fajfka za vybranou volbou – ať je jasné, co je vybrané. */
.p-seg input:checked + span::after { content: "✓"; margin-left: 6px; }
.p-seg input:focus-visible + span { outline: 2px solid var(--n-orange-dark); outline-offset: -4px; }
.p-seg input:disabled + span { opacity: .6; }

/* Kolečko s hodinami: 3 položky po 40 px (WHEEL_ITEM v push.js), vybraná uprostřed. */
.p-wheel { position: relative; width: 100%; max-width: 140px; }

.p-wheel::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 40px;
  border-radius: 8px;
  background: #fbe3d3;
  pointer-events: none;
}

.p-wheel__list {
  position: relative;
  height: 120px;
  padding: 40px 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  outline: none;
}

.p-wheel__list::-webkit-scrollbar { display: none; }
.p-wheel__list:focus-visible { box-shadow: inset 0 0 0 2px var(--n-orange); border-radius: 8px; }
.p-wheel__list.is-disabled { overflow: hidden; pointer-events: none; opacity: .5; }
.p-wheel:has(.is-disabled)::before { background: #efebe7; }

.p-wheel__item {
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: #8a827a;
  scroll-snap-align: center;
  cursor: pointer;
  user-select: none;
}

.p-wheel__item.is-selected { color: var(--n-orange-dark); font-size: 1.3rem; font-weight: 700; }

.p-saved { min-height: 1.4em; margin: 8px 0 0; text-align: center; color: #3f6a22; font-size: .85rem; font-weight: 600; }

.p-devices { margin-top: 24px; padding-top: 16px; border-top: 2px solid #e6e0da; }
.p-devices h3 { margin: 0 0 8px; font-size: 1rem; }
.p-devices .p-note { margin: 0 0 16px; }
.p-devices ul { margin: 0; padding: 0; list-style: none; }

.p-devices li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.p-devices li + li { border-top: 1px solid #f0ebe6; }
.p-devices li span { display: grid; line-height: 1.35; }
.p-devices small { color: #6b625a; font-size: .8rem; }

.p-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 300;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: var(--n-radius);
  background: #1f1f1f;
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
  transform: translateX(-50%);
}

.p-toast[hidden] { display: none; }

/* ---------- Log (/admin/log) ---------- */

.l-subheading { margin: 0 0 12px; font-size: 1.1rem; }
.l-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 16px; }
.l-filter select, .l-filter input { padding: 6px 10px; border: 1px solid #cfc8c1; border-radius: 8px; font: inherit; }
.l-filter input { flex: 1 1 220px; }
.l-filter .n-btn { padding: 6px 18px; cursor: pointer; }

.l-table { overflow-x: auto; margin-bottom: 16px; }
.l-table table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.l-table th, .l-table td { padding: 6px 8px; border-bottom: 1px solid #f0ebe6; text-align: left; vertical-align: top; }
.l-table th { background: var(--n-bg-alt); }
.l-meta { width: 1%; min-width: 9em; }
.l-meta > span { display: block; }
.l-meta > span + span { margin-top: 3px; }
.l-category { overflow-wrap: anywhere; color: #6b625a; }
.l-time { white-space: nowrap; font-variant-numeric: tabular-nums; color: #6b625a; }
.l-message { overflow-wrap: anywhere; }
.l-message small { display: block; color: #8a827a; }
.l-message pre { max-height: 300px; overflow: auto; margin: 4px 0 0; padding: 8px; border-radius: 6px; background: #f6f3f0; font-size: .75rem; white-space: pre-wrap; }

.l-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e8e3de; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.l-level--warning .l-badge { background: #fbe9b7; color: #7a5a00; }
.l-level--error .l-badge, .l-level--critical .l-badge { background: #f6c9c0; color: #8a1f0b; }

/* ---------- Jízdní řády (/jizdni-rady/) ---------- */

.t-table { width: 100%; max-width: 720px; border-collapse: collapse; }
.t-table th, .t-table td { padding: 8px 10px; border-bottom: 1px solid var(--n-ph); text-align: left; }
.t-table th { color: #6b625a; font-size: .85rem; }
.t-table tr.is-past { color: #a59d95; }
.t-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.t-line { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 40px; padding: 2px 8px; border-radius: 6px; background: var(--n-bg-alt); color: #1f1f1f; font-weight: 700; text-align: center; }
.t-line__ico { flex: none; width: 1em; height: .9em; fill: currentColor; }
.t-source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; color: #6b625a; font-size: .85rem; }
.t-delay { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #dcefd9; color: #23661a; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.t-delay.is-late { background: #fbe3d3; color: var(--n-orange-dark); }
.t-delay.is-unknown { background: var(--n-bg-alt); color: #8a827a; font-weight: 600; }
.t-vehicle, .t-later { display: block; color: #8a827a; font-size: .8rem; }
.t-tile__transfer { margin: 6px 0 0 6px; padding: 2px 0 2px 10px; border-left: 2px dashed var(--n-ph-dark); }
.t-tile__wait { display: block; color: #6b625a; font-size: .85rem; }
.t-tile__time--small { font-size: 1rem; }

/* Dlaždice pod sebou, rozbalovací: zabalená ukazuje jen nejbližší spoj (t-tile__summary). */
.t-tiles { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.t-tile { padding: 10px 16px; border: 2px solid #ddd; border-radius: var(--n-radius); background: #fff; cursor: pointer; }
.t-tile.is-open { padding-bottom: 16px; }
.t-tile { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.t-tile.is-dragging { position: relative; z-index: 5; border-color: var(--n-orange); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.t-tiles.is-sorting, .t-tiles.is-sorting .t-tile { cursor: grabbing; }
.t-tile__toggle { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.t-tile:hover .t-tile__toggle { color: var(--n-orange); }
.t-tile__chevron { flex: none; width: 14px; height: 14px; color: #8a827a; transition: transform .15s; }
.t-tile.is-open .t-tile__chevron { transform: rotate(180deg); }
.t-tile__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 0 4px; }
.t-tile__summary .t-delay { margin-left: 0; }
.t-tile__summary .t-tile__in { display: inline; font-size: 1.05rem; }
.t-tile__summary .t-tile__time { font-size: 1rem; }
.t-tile__arrow { color: #8a827a; }
.t-tile.is-open .t-tile__summary, .t-tile:not(.is-open) .t-tile__route, .t-tile:not(.is-open) .t-tile__body { display: none; }
.t-tile__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.t-tile__name { flex: 1; min-width: 0; margin: 0; font-size: 1.15rem; }
.t-tile__head .m-card__actions { margin: -8px -10px -8px auto; }
.t-tile__route { margin: 0 0 12px; color: #8a827a; font-size: .85rem; }
.t-tile__in { display: block; color: var(--n-orange); font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.t-tile__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.t-tile__line .t-delay { margin-left: 0; }
.t-tile__time { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.t-tile__detail { display: block; margin-top: 4px; color: #6b625a; font-size: .85rem; }
.t-tile__more { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--n-bg-alt); color: #6b625a; font-size: .85rem; }
.t-tile__more strong { color: var(--n-text); font-variant-numeric: tabular-nums; }
.t-tile__note { margin: 0; color: #8a827a; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.t-head .n-heading { margin: 0; }
.t-intro { margin: 24px 0 0; }
.t-search { display: inline-flex; flex: none; align-items: center; gap: 8px; cursor: pointer; }
/* Formulář dlaždice v panelu (p-panel). */
.t-tile-form { display: grid; gap: 14px; }
.t-tile-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.t-tile-form input { padding: 10px 12px; border: 1px solid var(--n-ph-dark); border-radius: 6px; font: inherit; font-weight: 400; }
.t-suggest { position: relative; }
.t-suggest__list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: 260px; overflow-y: auto; margin: 2px 0 0; padding: 4px 0; border: 1px solid var(--n-ph-dark); border-radius: 6px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); list-style: none; font-weight: 400; }
.t-suggest__list li { padding: 6px 10px; cursor: pointer; }
.t-suggest__list li:hover, .t-suggest__list li[aria-selected="true"] { background: var(--n-bg-alt); color: var(--n-orange); }
.t-tile-form__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.t-tile-form__buttons .n-btn { cursor: pointer; }
.t-tile-form__reset { margin: 10px 0 0; padding-top: 16px; border-top: 2px solid #e6e0da; }
/* Domácí zastávka – řádek pod dlaždicemi a panel s výběrem. */
.t-home { margin: 20px 0 0; color: #6b625a; font-size: .9rem; }
.t-home strong { color: var(--n-text); }
.t-home__intro { margin: 0 0 16px; color: #6b625a; }
.t-home__options { display: grid; gap: 8px; }
.t-home__option { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 2px solid #ddd; border-radius: var(--n-radius); background: #fff; color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.t-home__option small { color: #8a827a; font-size: .8rem; font-weight: 400; }
.t-home__option:hover, .t-home__option[aria-pressed="true"], .t-home__option[aria-expanded="true"] { border-color: var(--n-orange); }
.t-home__other { margin-top: 12px; }

/* ---------- Články (/clanek/…, /clanky/, sekce Novinky na úvodní stránce) ---------- */

.c-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.c-card { transition: box-shadow .15s; }
.c-card:hover { box-shadow: 0 6px 28px rgba(0, 0, 0, .12); }
.c-card:hover h3 { color: var(--n-orange); }
.c-card h3 { margin: 6px 0 4px; font-size: 1.15rem; line-height: 1.35; }
.c-card p { margin: 10px 0 0; color: #4a433d; font-size: .95rem; }
.c-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.c-card--compact .c-card__link:has(.n-card__img) { display: grid; grid-template-columns: 2fr 3fr; }
.c-card--compact .n-card__img { height: 100%; min-height: 140px; aspect-ratio: auto; }
.c-card--compact .n-card__body { padding: 16px 20px; }
.c-card--compact h3 { font-size: 1rem; }
@media (max-width: 480px) {
  .c-card--compact .c-card__link:has(.n-card__img) { display: flex; }
  .c-card--compact .n-card__img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}

.c-date { color: #6b625a; font-size: .85rem; }

.c-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.c-filter a {
  padding: 6px 14px;
  border: 2px solid var(--n-ph);
  border-radius: 999px;
  color: var(--n-text);
  font-size: .9rem;
  text-decoration: none;
}
.c-filter a:hover { color: var(--n-orange); }
.c-filter a[aria-current="page"] { background: var(--n-orange); border-color: var(--n-orange); color: #fff; }

/* Text i obrázek článku 800 px (+ okraje .n-wrap). */
.c-article { max-width: 848px; }
.c-back { display: inline-block; margin-bottom: 20px; color: var(--n-orange); font-size: .9rem; text-decoration: none; }
.c-back:hover { text-decoration: underline; }
.c-article__head .n-heading { margin: 0 0 6px; }
.c-article__head { margin-bottom: 28px; }
/* Obrázek článku na šířku textu (na mobilu od okraje k okraji). Na nízké
   obrazovce by 16:9 zabralo víc než celou výšku, proto je výška omezená a obrázek se ořízne. */
.c-article__media { margin-bottom: 32px; }
.c-article__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 70vh; object-fit: cover; border-radius: var(--n-radius); }
@media (max-width: 700px) {
  .c-article__media { padding: 0; }
  .c-article__img { border-radius: 0; }
}
.c-body { font-size: 1.05rem; line-height: 1.75; }
.c-body h2 { margin: 36px 0 12px; font-size: 1.4rem; }
.c-body h3 { margin: 28px 0 10px; font-size: 1.15rem; }
.c-body h4 { margin: 24px 0 8px; font-size: 1.05rem; }
.c-body p, .c-body ul, .c-body ol { margin: 0 0 18px; }
.c-body a { color: var(--n-orange); }
.c-body img { max-width: 100%; height: auto; border-radius: var(--n-radius); }
.c-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--n-orange); color: #4a433d; }
.c-body li > ul, .c-body li > ol { margin: 4px 0 0; }
.c-body table { display: block; max-width: 100%; overflow-x: auto; margin: 0 0 18px; border-collapse: collapse; font-size: .95rem; }
.c-body th, .c-body td { padding: 8px 12px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.c-body th { background: var(--n-bg-alt); }
.c-body td p, .c-body th p { margin: 0; }

/* ---------- Správa článků (/admin/clanky/) ---------- */

.ac-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .92rem; }
.ac-table th, .ac-table td { padding: 12px 14px; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.ac-table th { background: var(--n-bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #6b625a; }
.ac-table tbody tr:last-child td { border-bottom: 0; }
.ac-table small { color: #6b625a; }
.ac-title { color: var(--n-text); font-weight: 600; text-decoration: none; }
.ac-title:hover { color: var(--n-orange); }
.ac-actions { white-space: nowrap; }
.ac-actions a, .ac-actions button { margin-right: 12px; padding: 0; border: 0; background: none; color: var(--n-orange); font: inherit; cursor: pointer; text-decoration: none; }
.ac-actions a:hover, .ac-actions button:hover { text-decoration: underline; }
.ac-actions form { display: inline; }
.ac-actions button { color: #b3261e; }

.ac-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.ac-status--published { background: #dcf0dd; color: #1e6b25; }
.ac-status--planned { background: #dde9f7; color: #1d4f8a; }
.ac-status--draft { background: var(--n-ph); color: #4a433d; }

.ae { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ae-main { display: grid; gap: 16px; min-width: 0; }
.ae-side { display: grid; gap: 16px; position: sticky; top: calc(var(--n-header-h) + 16px); }

.ae-title {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--n-ph-dark);
  border-radius: 8px;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 700;
}
.ae-slug { display: flex; align-items: center; gap: 6px; color: #6b625a; font-size: .9rem; }
.ae-slug input { flex: 1; min-width: 0; padding: 4px 8px; border: 1px solid var(--n-ph-dark); border-radius: 6px; font: inherit; }

.ae-field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.ae-field small { font-weight: 400; color: #6b625a; }
.ae-field input, .ae-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--n-ph-dark);
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}
.ae-title:focus, .ae-slug input:focus, .ae-field input:focus, .ae-field textarea:focus { outline: 2px solid var(--n-orange); outline-offset: -1px; border-color: transparent; }

.ae-box { display: grid; gap: 14px; padding: 20px; }
.ae-box h2 { margin: 0; font-size: 1rem; }
.ae-box p { margin: 0; }
.ae-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ae-buttons .n-btn { cursor: pointer; }
.ae-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ae-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.ae-hint { color: #6b625a; font-size: .85rem; }
.ae-upload { cursor: pointer; }
.ae-message { margin-bottom: 20px; }

.c-draft { margin-bottom: 20px; padding: 12px 16px; border-radius: 8px; background: #dde9f7; }
.c-draft a { color: inherit; font-weight: 600; }

@media (max-width: 900px) {
  .ae { grid-template-columns: 1fr; }
  .ae-side { position: static; }
}

/* ---------- Statistiky pro správce (/admin/statistiky) ---------- */
.st-gap { margin-top: 40px; }
.st-h3 { margin: 16px 0 8px; font-size: .95rem; }
.st-muted { color: #6b625a; font-size: .85rem; }
.st-muted a { color: var(--n-orange); }
.st-list { margin: 8px 0 16px; padding-left: 20px; font-size: .9rem; }
.st-list small { color: #6b625a; }
.st-details { margin: 8px 0 16px; }
.st-details summary { cursor: pointer; color: #6b625a; font-size: .9rem; }
.st-details .l-table, .st-details .st-list { margin-top: 8px; }

.st-checks { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.st-check { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 10px 14px; border-left: 4px solid #9bc59d; border-radius: 6px; background: #eef6ee; font-size: .9rem; }
.st-check a { margin-left: auto; color: var(--n-orange); font-weight: 600; }
.st-check--info { border-color: #8db9e8; background: #edf4fb; }
.st-check--warning { border-color: #e6b422; background: #fdf5dc; }
.st-check--error { border-color: #d0492c; background: #fbe3dd; }

.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.st-tile { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--n-radius); background: var(--n-bg-alt); }
.st-tile b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.st-tile span { color: #6b625a; font-size: .8rem; }
.st-tile--bad { background: #fbe3dd; }

.st-chart { position: relative; height: 280px; margin-bottom: 8px; }
@media (min-width: 720px) { .st-chart { height: 340px; } }

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 32px; }
.st-bars { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.st-bars li { display: grid; grid-template-columns: 9em 1fr 3em; gap: 8px; align-items: center; }
.st-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.st-bar { height: 10px; border-radius: 5px; background: #f0ebe6; overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 5px; background: var(--n-orange); }

.st-pickup { margin-bottom: 16px; }
.st-pickup__head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.st-pickup__head small { color: #6b625a; }
.st-kind { padding: 1px 10px; border-left: 6px solid var(--kind); border-radius: 999px; background: #f0ebe6; font-size: .8rem; font-weight: 600; }
.st-num td + td, .st-num th + th { text-align: right; font-variant-numeric: tabular-nums; }
