/* =========================================================
   Достъпност (WCAG 2.1 AA) – допълнения към темата dd_kidsschool_23
   Зарежда се последен, за да надделява над template.css.
   ========================================================= */

/* Текст само за екранни четци */
.dd-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Линк „Към основното съдържание“ – видим само при фокус */
.dd-skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 10000;
  padding: 10px 16px;
  background: #ffffff;
  color: #7a0e38;
  font: bold 16px Arial, Helvetica, sans-serif;
  border: 3px solid #7a0e38;
  border-radius: 4px;
  text-decoration: underline;
}
.dd-skip-link:focus {
  top: 8px;
}

/* Основното съдържание получава фокус от skip линка, без рамка около цялата колона */
#dd-main-content:focus {
  outline: none;
}

/* Видим фокус за всички интерактивни елементи (template.css го маха с outline:none) */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:not([tabindex="-1"]):focus,
ul.dd-hmenu a:focus,
ul.dd-vmenu a:focus {
  outline: 3px solid #7a0e38 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #ffffff !important;
}
/* Браузърите, които различават мишка от клавиатура – без рамка при клик */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Заглавията h1 изглеждат като досегашните h2 */
h1.dd-postheader {
  margin: 5px 0;
  font-size: 18px;
  line-height: normal;
}

/* Линковете в текста не трябва да се различават само по цвят */
.dd-postcontent p a,
.dd-postcontent li a,
.dd-postcontent td a,
.dd-postcontent a:link,
.dd-postcontent a:visited {
  text-decoration: underline;
}
.dd-postcontent a:hover,
.dd-postcontent a:focus {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Бутон „Към началото“ – вече е <button>, запазваме стария вид */
button#toTop {
  font-family: verdana, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

/* Бутон за пауза на слайдшоуто */
.slider-wrapper {
  position: relative;
}
/* скрит, докато скриптът не го постави върху слайдера – без „подскачане“ при зареждане */
.dd-slider-toggle {
  visibility: hidden;
}
#slider .dd-slider-toggle {
  visibility: visible;
}
.dd-slider-toggle {
  position: absolute;
  right: 0;
  bottom: -40px;
  z-index: 60;
  padding: 6px 12px;
  background: #ffffff;
  color: #7a0e38;
  border: 2px solid #7a0e38;
  border-radius: 4px;
  font: bold 13px Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.dd-slider-toggle:hover {
  background: #7a0e38;
  color: #ffffff;
}

/* Без анимации за хора, които са ги изключили в системата */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Текстът на изображения с много текст (покани, програми, календари) */
details.dd-image-text {
  margin: 8px 0 16px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #c9a0b4;
  border-radius: 4px;
  text-align: left;
}
details.dd-image-text summary {
  cursor: pointer;
  font-weight: bold;
  color: #7a0e38;
}
details.dd-image-text ul {
  margin: 6px 0 6px 18px;
}

/* Достатъчно голяма площ за натискане (WCAG 2.2 – 2.5.8, минимум 24×24 px) */
.dd-blockcontent ul.menu > li > a,
.dd-blockcontent ul.menu > li > span {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
  min-width: 24px;
}
.breadcrumbs a,
ol.nav > li > a {
  display: inline-block;
  min-height: 24px;
  line-height: 24px;
}
