@media screen and (min-width: 100em) {
  html {
      font-size: 125% !important;
  }
}

@media screen and (min-width: 125em) {
  html {
      font-size: 125% !important;
  }
}

h1, h2, h3 {
  font-weight: 400 !important;
}

h1 {
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

h2 {
  margin-top: 25px !important;
  padding-top: 15px !important;
  text-transform: uppercase;
  font-size: 16px !important;
  border-top: 1px solid;
}

.three-thirds h2:after {
  content: var(--time-indicator, " (20-30 min)");
  font-size: 0.7em;
}

h3 {
  text-transform: uppercase;
  color: var(--md-primary-fg-color);
}

h4 {
  margin-top: 0px !important;
}

ul, ol {
  margin-bottom: 0px !important;
}

p, li {
  line-height: 1.3;
}

li {
  margin-bottom: 0.4em !important;
  margin-left: 12px !important;
}

.three-thirds li {
  list-style-type: none;
}

span.nikdy-nevynechej {
  color: orange;
  font-size: 0.6em;
}


.tretina {
  color: orange;
}

.swiper-pagination-bullet {
  width: 100px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  color: #000;
  opacity: 1;
  background: rgb(201, 201, 201);
  border-radius: 10px;
}

.swiper-pagination-bullet-active {
  color: #fff;
  background: var(--md-primary-fg-color);
}

.swiper-pagination {
  top: 2px !important;
  height: 20px;
}

.swiper-wrapper {
  margin-top: 10px;
}

footer {
  display: none;
}

.print-only {
  display: none;
}

span.screen-only {
  display: inline;
}

article li ul li {
  list-style-type: disc !important;
  /* margin-bottom: 0 !important; */
}

article hr {
  margin-top: 0.6rem !important;
  margin-bottom: 0.6rem !important;
  border-bottom: 1px solid #aaa !important;
}

.paticka-narrow {
  display: block;
}

.paticka-wide {
  display: none;
}

@media (min-width: 768px) {
  .paticka-narrow {
    display: none;
  }

  .paticka-wide {
    display: block;
  }
}


.md-main__inner.md-grid {
  margin-top: 0;
}

/* Hide Table of Contents */
.md-nav__list li label {
  display: none !important;
}
.md-nav__list li a {
  display: block !important;
}


.md-sidebar--secondary {
  display: none !important;
}

label.md-header__button.md-icon[for="__search"] {
  display: none !important;
}

.md-search {
  display: none !important;
}

#__search {
  display: none !important;
}

body[data-md-color-scheme="slate"] img#kruh-cirkve {
  filter: invert(0.88);
}

/* Most page - fullscreen modal */
.most-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--md-default-bg-color);
  z-index: 9999;
  overflow: hidden;
}

.most-modal.active {
  display: flex;
  flex-direction: column;
}

/* Landing page */
.most-landing {
  max-width: 600px;
  padding: 0;
}

.most-landing p {
  font-size: 1.1em;
  margin-bottom: 1.5em;
}

.most-landing ul {
  list-style: none;
  padding: 0;
}

.most-landing li {
  margin-bottom: 1em;
  margin-left: 0 !important;
}

.most-landing a {
  color: var(--md-primary-fg-color);
  text-decoration: underline;
}

.most-landing a:hover {
  text-decoration: none;
}

/* Header with close button */
.most-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  padding: 10px 15px;
  z-index: 10000;
}

.most-modal-close {
  font-size: 28px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--md-default-fg-color);
  padding: 8px 12px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.most-modal-close:hover {
  opacity: 1;
}

/* Container with chevrons on sides */
.most-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 50px 10px 20px;
  box-sizing: border-box;
}

/* Chevron navigation buttons */
.most-nav {
  background: none;
  border: none;
  font-size: 48px;
  color: var(--md-default-fg-color);
  cursor: pointer;
  padding: 20px;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.most-nav:hover {
  opacity: 1;
}

.most-nav:disabled {
  opacity: 0.15;
  cursor: default;
}

/* Main content area */
.most-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 800px;
  height: 100%;
  overflow: hidden;
  gap: 25px;
}

/* SVG container */
.most-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  flex-shrink: 0;
}

/* Caption area */
.most-caption {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15px 20px;
  height: 200px;
  flex-shrink: 0;
}

.most-caption-text {
  display: none;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.5;
  color: var(--md-default-fg-color);
  margin: 0;
}

.most-caption-text.active {
  display: block;
}

/* Hide captions when toggled off */
.most-modal.captions-hidden .most-caption {
  display: none;
}

/* SVG step visibility - hide future steps */
.most-svg .step-2,
.most-svg .step-3,
.most-svg .step-4,
.most-svg .step-5 {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show steps based on data-step attribute */
.most-modal[data-step="2"] .step-2,
.most-modal[data-step="3"] .step-2,
.most-modal[data-step="4"] .step-2,
.most-modal[data-step="5"] .step-2 {
  opacity: 1;
}

.most-modal[data-step="3"] .step-3,
.most-modal[data-step="4"] .step-3,
.most-modal[data-step="5"] .step-3 {
  opacity: 1;
}

.most-modal[data-step="4"] .step-4,
.most-modal[data-step="5"] .step-4 {
  opacity: 1;
}

.most-modal[data-step="5"] .step-5 {
  opacity: 1;
}

/* Portrait mobile */
@media (max-width: 600px) {
  .most-nav {
    font-size: 32px;
    padding: 10px;
  }

  .most-caption {
    padding: 10px 15px;
  }

  .most-caption-text {
    font-size: 1em;
  }
}

/* Very tight landscape (Safari with tabs visible) */
@media (max-height: 350px) and (orientation: landscape) {
  .most-container {
    padding: 2px 5px;
  }

  .most-header {
    padding: 0 5px;
  }

  .most-modal-close {
    font-size: 24px;
    padding: 4px 8px;
  }

  .most-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
  }

  .most-svg {
    width: 58vw;
    max-width: 58vw;
    max-height: 90dvh;
    flex-shrink: 0;
  }

  .most-caption {
    flex: 1;
    height: auto;
    padding: 2px 5px;
    display: flex;
    align-items: center;
  }

  .most-caption-text {
    font-size: 0.8em;
    line-height: 1.25;
    text-align: left;
  }

  .most-nav {
    font-size: 24px;
    padding: 3px;
  }

  /* When captions hidden, center SVG */
  .most-modal.captions-hidden .most-content {
    justify-content: center;
  }

  .most-modal.captions-hidden .most-svg {
    width: 70vw;
    max-width: 70vw;
  }
}

/* Landscape mode */
@media (max-height: 500px) and (min-height: 351px) and (orientation: landscape) {
  .most-container {
    padding: 5px 10px 5px;
  }

  .most-header {
    padding: 2px 10px;
  }

  .most-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    max-width: none;
    width: 100%;
    gap: 15px;
  }

  .most-svg {
    width: 58vw;
    max-width: 58vw;
    max-height: 85vh;
    flex-shrink: 0;
  }

  .most-caption {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 5px 10px;
    overflow-y: auto;
    max-height: 85vh;
    display: flex;
    align-items: center;
  }

  .most-caption-text {
    text-align: left;
    font-size: 1em;
    line-height: 1.4;
  }

  .most-nav {
    font-size: 28px;
    padding: 5px;
  }

  /* When captions hidden, center and enlarge SVG */
  .most-modal.captions-hidden .most-content {
    justify-content: center;
  }

  .most-modal.captions-hidden .most-svg {
    width: 70vw;
    max-width: 70vw;
  }
}
