/* Accessible (slabovidyashchie) version: unwrap Zero Block into normal flow.
   Everything here applies only while the widget keeps html.special on. */

html.special .t-rec,
html.special .t396,
html.special .t396__artboard,
html.special .t396__carrier,
html.special .t396__filter {
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  background-image: none !important;
}

html.special .t396__elem {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  transform: none !important;
  margin: 0 0 14px 0 !important;
  display: block !important;
}

html.special .tn-atom,
html.special .tn-atom__scale,
html.special .tn-atom__sbs-anim-wrapper {
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  white-space: normal !important;
  transform: none !important;
  background-image: none !important;
}

/* let the widget's own colour scheme through: Tilda's hardcoded white text on
   dark blocks would otherwise stay white on the widget's white background */
html.special .t-rec,
html.special .t-rec *:not(input):not(textarea):not(select) {
  color: inherit !important;
  background-color: transparent !important;
}

/* icons and logo must not blow up to their natural 512px */
html.special .t-rec img {
  width: auto !important;
  height: auto !important;
  max-width: 200px !important;
  max-height: 40px !important;
  object-fit: contain !important;
}

/* side section menu back into the flow, list expanded */
html.special .t450 {
  position: static !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html.special .t450__container {
  position: static !important;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
}

html.special .t450__top,
html.special .t450__menu,
html.special .t450__list,
html.special .t-menu__list {
  display: block !important;
  height: auto !important;
}

html.special .t-menusub,
html.special .t-menusub__menu,
html.special .t-menusub__content,
html.special .t-menusub__list {
  display: block !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  transform: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* mobile nav controls are redundant: the menu is already expanded */
html.special a[href="#menuopen"],
html.special .t-menuburger,
html.special .t450__burger_wrapper,
html.special .t450__overlay,
html.special .t450__close_wrapper,
html.special .t450__close {
  display: none !important;
}
