/* =====================================================
   DETAIL SOUBORU
===================================================== */

.soubor {
  position: relative;
}

.soubor-detail {
  position: relative;
  overflow: hidden;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 22px,
      var(--line-faint) 23px
    ),
    var(--paper);

  box-shadow:
    0 6px 18px rgba(0,0,0,.12),
    inset 0 0 0 1px rgba(0,0,0,.05);
}

.soubor-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}

.soubor-detail::after {
  content: "";
  display: block;
  clear: both;
}

/* =====================================================
   TYPOGRAFIE DETAILU
===================================================== */

.soubor-detail h1 {
  font-size: 1.8rem;
  letter-spacing: .03em;
  margin-bottom: 1.5rem;
}

.soubor-detail h2 {
  font-size: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.soubor-detail p,
.soubor-detail li {
  max-width: 65ch;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--ink-dark);
}

.soubor-detail a {
  color: var(--ink-red);
}

/* =====================================================
   TYPOGRAFICKÁ SAZBA
===================================================== */

.soubor {
  hyphens: auto;
  overflow-wrap: break-word;
}

.soubor p,
.soubor li {
  text-align: justify;
  text-justify: inter-word;
  widows: 2;
  orphans: 2;
  text-indent: 1.5em;
  margin: 0;
}

.soubor p + p {
  margin-top: 0;
}

.soubor p:nth-of-type(1),
.soubor p:nth-of-type(2) {
  text-indent: 0;
  margin-bottom: .25rem;
}

.soubor p:nth-of-type(3) {
  text-indent: 0;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.soubor p:nth-of-type(n+4) {
  text-indent: 1.5em;
}

.soubor-uvod {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

  .soubor-detail p,
  .soubor-detail li {
    max-width: 100%;
  }

  .soubor-detail a {
    display: inline;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: none;
  }

  .soubor-detail {
    overflow-x: hidden;
  }
}