/* DS Market – „Aktuálně v DS Marketu“ na homepage (aktuality-home.css v1)
   Blok se zobrazí jen tehdy, když jsou v Aktualitách platné zprávy. */

.dsm-ah {
  --ah-dark: #214d32;
  --ah-ink: #1d3a26;
  --ah-text: #46564a;
  --ah-muted: #5b6a5f;
  --ah-green: #1f861d;
  --ah-soft: #eef5ee;
  --ah-line: #dfe9e0;
  font-family: var(--template-font, "Source Sans 3"), system-ui, sans-serif;
  color: #26352a;
  margin: 28px 0 0;
}
.dsm-ah *, .dsm-ah *::before, .dsm-ah *::after { box-sizing: border-box; }

.dsm-ah__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 14px;
}
.dsm-ah__title {
  margin: 0 !important; padding: 0 !important; text-align: left !important;
  font: 700 22px/1.25 var(--template-headings-font, "Exo 2"), sans-serif;
  color: var(--ah-ink) !important; display: flex; align-items: center; gap: 10px;
}
.dsm-ah__title::before, .dsm-ah__title::after { content: none !important; display: none !important; }
.dsm-ah__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--ah-green); flex: 0 0 10px;
  box-shadow: 0 0 0 0 rgba(31,134,29,.45); animation: dsmAhPulse 2.4s ease-out infinite;
}
@keyframes dsmAhPulse {
  0% { box-shadow: 0 0 0 0 rgba(31,134,29,.45); }
  70% { box-shadow: 0 0 0 9px rgba(31,134,29,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,134,29,0); }
}
@media (prefers-reduced-motion: reduce) { .dsm-ah__dot { animation: none; } }
.dsm-ah__all {
  font-size: 15px; font-weight: 700; color: #1f6f1d !important; text-decoration: none !important; white-space: nowrap;
}
.dsm-ah__all:hover { text-decoration: underline !important; }

.dsm-ah__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dsm-ah__grid--1 { grid-template-columns: minmax(0, 1fr); }
.dsm-ah__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dsm-ah__card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--ah-line); border-radius: 16px;
  padding: 16px 18px 16px 20px; overflow: hidden;
  text-decoration: none !important; color: inherit !important;
  transition: border-color .2s, box-shadow .2s;
}
.dsm-ah__card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ah-green);
}
.dsm-ah__card--expedice::before { background: #e0a800; }
.dsm-ah__card--prodejna::before { background: #2f6fb0; }
.dsm-ah__card:hover { border-color: #b8d3b8; box-shadow: 0 8px 22px rgba(33,77,50,.09); }
.dsm-ah__card:hover .dsm-ah__name { text-decoration: underline; text-underline-offset: 3px; }

.dsm-ah__cal {
  flex: 0 0 54px; text-align: center; border-radius: 11px; overflow: hidden;
  border: 1px solid #c9dcc9; background: #fff; line-height: 1;
}
.dsm-ah__cal-m {
  display: block; background: var(--ah-dark); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 0 4px;
}
.dsm-ah__card--expedice .dsm-ah__cal-m { background: #8a6a00; }
.dsm-ah__card--prodejna .dsm-ah__cal-m { background: #2f6fb0; }
.dsm-ah__cal-d {
  display: block; font: 800 22px var(--template-headings-font, "Exo 2"), sans-serif;
  color: var(--ah-ink); padding: 7px 0 7px;
}
.dsm-ah__thumb {
  flex: 0 0 54px; height: 54px; border-radius: 11px; overflow: hidden; background: var(--ah-soft);
}
.dsm-ah__thumb img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }

.dsm-ah__body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.dsm-ah__state {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--ah-soft); color: var(--ah-dark);
}
.dsm-ah__state--soon { background: #fff4cc; color: #6b5200; }
.dsm-ah__state--now { background: #fde2e1; color: #8c1d18; }
.dsm-ah__card--prodejna .dsm-ah__state--soon { background: #e3eefa; color: #1f4f80; }
.dsm-ah__name {
  font-weight: 700; font-size: 16.5px; line-height: 1.3; color: var(--ah-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dsm-ah__sub {
  font-size: 14px; line-height: 1.45; color: var(--ah-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dsm-ah__sub strong { color: var(--ah-text); font-weight: 700; }

@media (max-width: 991px) {
  .dsm-ah__grid, .dsm-ah__grid--2 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 767px) {
  .dsm-ah { margin: 18px 0 6px; }
  .dsm-ah__title { font-size: 19px; }
  .dsm-ah__all { font-size: 14px; }
  .dsm-ah__card { padding: 13px 14px 13px 17px; gap: 12px; border-radius: 14px; }
  .dsm-ah__cal, .dsm-ah__thumb { flex-basis: 48px; }
  .dsm-ah__thumb { height: 48px; }
  .dsm-ah__cal-d { font-size: 19px; padding: 6px 0; }
  .dsm-ah__name { font-size: 15.5px; }
}
