
/* =========================================================
   GymSupps – detail produktu ve stylu čisté obsahové karty
   Cílí pouze na .basic-description
   ========================================================= */

.basic-description {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 36px auto 48px;
  padding: 56px 64px;
  color: #232329;
  background: #f5f5f6;
  border: 0;
  border-radius: 28px;
  box-shadow: none;
  font-size: 18px;
  line-height: 1.7;
}

.basic-description *,
.basic-description *::before,
.basic-description *::after {
  box-sizing: border-box;
}

/* Nadpis sekce */
.basic-description > h3:first-child {
  margin: 0 0 34px;
  padding: 0 0 20px;
  color: #202027;
  border-bottom: 1px solid #dedee1;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Hlavní mezititulky */
.basic-description h2 {
  max-width: 860px;
  margin: 54px auto 22px;
  color: #202027;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: center;
}

.basic-description h3:not(:first-child) {
  max-width: 860px;
  margin: 42px auto 18px;
  color: #202027;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

/* Běžný text */
.basic-description p,
.basic-description ul,
.basic-description ol {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.basic-description p {
  margin-top: 0;
  margin-bottom: 20px;
}

.basic-description strong {
  font-weight: 800;
}

.basic-description ul,
.basic-description ol {
  margin-top: 18px;
  margin-bottom: 28px;
  padding-left: 28px;
}

.basic-description li {
  margin-bottom: 10px;
  padding-left: 4px;
}

/* Zvýrazněný první odstavec */
.basic-description > h3:first-child + p {
  max-width: 860px;
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.65;
  text-align: center;
}

/* Upozornění / drobný text */
.basic-description small {
  display: block;
  max-width: 860px;
  margin: 30px auto;
  padding: 18px 20px;
  color: #5e5e66;
  background: #ececef;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}

/* Tabulky */
.basic-description table {
  display: table;
  width: 100% !important;
  max-width: 960px;
  margin: 22px auto 44px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedee1 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.basic-description table th,
.basic-description table td {
  padding: 12px 14px;
  border: 0 !important;
  border-right: 1px solid #e6e6e8 !important;
  border-bottom: 1px solid #e6e6e8 !important;
  vertical-align: middle;
}

.basic-description table tr:last-child td {
  border-bottom: 0 !important;
}

.basic-description table td:last-child,
.basic-description table th:last-child {
  border-right: 0 !important;
}

.basic-description table thead td,
.basic-description table thead th {
  background: #ececef;
  font-weight: 800;
}

.basic-description table tr:nth-child(even) td {
  background: #fafafa;
}

/* Odkazy */
.basic-description a {
  color: #202027;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Odstranění prázdných odstavců z editoru */
.basic-description p:empty {
  display: none;
}

/* Tablet */
@media (max-width: 991px) {
  .basic-description {
    margin: 28px auto 40px;
    padding: 42px 34px;
    border-radius: 24px;
    font-size: 17px;
  }

  .basic-description > h3:first-child {
    margin-bottom: 28px;
    font-size: 30px;
  }

  .basic-description h2 {
    margin-top: 44px;
    font-size: 30px;
  }

  .basic-description > h3:first-child + p {
    font-size: 19px;
  }
}

/* Mobil */
@media (max-width: 767px) {
  .basic-description {
    width: calc(100% - 24px);
    margin: 22px 12px 32px;
    padding: 28px 20px 32px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.6;
  }

  .basic-description > h3:first-child {
    margin-bottom: 22px;
    padding-bottom: 16px;
    font-size: 24px;
    line-height: 1.2;
  }

  .basic-description > h3:first-child + p {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.55;
    text-align: left;
  }

  .basic-description h2 {
    margin: 36px 0 18px;
    font-size: 25px;
    line-height: 1.22;
    text-align: left;
  }

  .basic-description h3:not(:first-child) {
    margin-top: 32px;
    font-size: 22px;
  }

  .basic-description p {
    margin-bottom: 17px;
  }

  .basic-description ul,
  .basic-description ol {
    margin-bottom: 24px;
    padding-left: 22px;
  }

  .basic-description small {
    margin: 24px 0;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
  }

  /* Tabulky zůstanou čitelné a lze je posouvat vodorovně */
  .basic-description table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 18px 0 34px;
    overflow-x: auto;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .basic-description table tbody,
  .basic-description table thead {
    min-width: 560px;
  }

  .basic-description table th,
  .basic-description table td {
    padding: 10px 11px;
  }
}

/* Velmi malé displeje */
@media (max-width: 380px) {
  .basic-description {
    width: calc(100% - 16px);
    margin-left: 8px;
    margin-right: 8px;
    padding: 24px 16px 28px;
  }

  .basic-description h2 {
    font-size: 23px;
  }
}
