/* ==========================================================================
   Concept page – exemplary daily routine
   ========================================================================== */

.concept-routine {
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 9vw, 9rem) 0;
  background: #eaf5f3;
}

.concept-routine::before,
.concept-routine::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.concept-routine::before {
  top: -8rem;
  left: -9rem;
  width: 27rem;
  height: 27rem;
  border-radius: 48% 52% 62% 38% / 43% 38% 62% 57%;
  background: var(--mh-primary, #5cc0c7);
  opacity: 0.12;
}

.concept-routine::after {
  right: -10rem;
  bottom: -11rem;
  width: 30rem;
  height: 30rem;
  border-radius: 54% 46% 39% 61% / 45% 59% 41% 55%;
  background: var(--mh-yellow, #e0e26b);
  opacity: 0.2;
}

.concept-routine__inner {
  width: min(100% - 3rem, 1240px);
  margin-inline: auto;
}

.concept-routine__table-wrapper {
  overflow: hidden;
  border: 1px solid rgb(0 89 93 / 9%);
  border-radius: 2.5rem 2.5rem 0.75rem 2.5rem;
  background: #ffffff;
  box-shadow: 0 24px 60px rgb(0 89 93 / 11%);
}

.concept-routine__table {
  width: 100%;
  border-collapse: collapse;
}

.concept-routine__table th,
.concept-routine__table td {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid #dce9e7;
  text-align: left;
  vertical-align: top;
}

.concept-routine__table thead th {
  background: var(--mh-dark-teal, #00595d);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.concept-routine__table thead th:first-child {
  padding-left: 2rem;
}

.concept-routine__table tbody tr {
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.concept-routine__table tbody tr:nth-child(even) {
  background: #f6faf9;
}

.concept-routine__table tbody tr:hover {
  background: #eef7f5;
}

.concept-routine__table tbody th {
  width: 19%;
  padding-left: 2rem;
  color: var(--mh-dark-teal, #00595d);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.concept-routine__table tbody th::before {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.75rem;
  border: 3px solid var(--mh-primary, #5cc0c7);
  border-radius: 50%;
  background: #ffffff;
  content: "";
  vertical-align: 0.05em;
}

.concept-routine__table tbody td:nth-child(2) {
  width: 26%;
  color: var(--mh-dark-teal, #00595d);
}

.concept-routine__table tbody td:last-child {
  color: #5d6969;
  line-height: 1.6;
}

.concept-routine__table tbody tr:last-child th,
.concept-routine__table tbody tr:last-child td {
  border-bottom: 0;
}

.concept-routine__note {
  max-width: 850px;
  margin: 1.6rem auto 0;
  color: #647171;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

/* Tablet */

@media (max-width: 900px) {
  .concept-routine__table-wrapper {
    overflow-x: auto;
  }

  .concept-routine__table {
    min-width: 800px;
  }
}

/* Mobile cards */

@media (max-width: 640px) {
  .concept-routine {
    padding-block: 4.5rem;
  }

  .concept-routine__inner {
    width: min(100% - 2rem, 1240px);
  }

  .concept-routine__table-wrapper {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .concept-routine__table,
  .concept-routine__table tbody {
    display: block;
    min-width: 0;
  }

  .concept-routine__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .concept-routine__table tbody tr {
    display: block;
    margin-bottom: 1rem;
    padding: 1.4rem;
    border-radius: 1.6rem 1.6rem 0.5rem 1.6rem;
    background: #ffffff;
    box-shadow: 0 12px 32px rgb(0 89 93 / 9%);
  }

  .concept-routine__table tbody tr:nth-child(even),
  .concept-routine__table tbody tr:hover {
    background: #ffffff;
  }

  .concept-routine__table th,
  .concept-routine__table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .concept-routine__table tbody th {
    width: auto;
    margin-bottom: 0.65rem;
    padding-left: 0;
    color: var(--mh-primary-dark, #52acb2);
  }

  .concept-routine__table tbody th::before {
    margin-right: 0.55rem;
  }

  .concept-routine__table tbody td:nth-child(2) {
    width: auto;
    margin-bottom: 0.65rem;
    color: var(--mh-dark-teal, #00595d);
    font-size: 1.08rem;
  }

  .concept-routine__table tbody td:last-child {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .concept-routine__note {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .concept-routine__table tbody tr {
    transition: none;
  }
}
