/* ==========================================================================
   OL Tips Split — module.css
   2026 OneLife Theme
   Figma: Onelife-Website node 1009:14994
   Split: frosted glass tip list + tall photo (flippable left/right)
   Column widths via Layout > Content Column Width (%)
   ========================================================================== */

.ol-ts {
  --ol-ts-bg: #000000;
  --ol-ts-card-bg: rgba(255, 255, 255, 0.35);
  --ol-ts-card-border: #FFFFFF;
  --ol-ts-heading: #FFFFFF;
  --ol-ts-body: #FFFFFF;
  --ol-ts-tip-title: #FFFFFF;
  --ol-ts-tip-body: #FFFFFF;
  --ol-ts-check: #FFFFFF;
  --ol-ts-btn-bg: #FFFFFF;
  --ol-ts-btn-color: #000000;
  --ol-ts-overlay: 0.35;
  --ol-ts-focal: 50% 50%;
  --ol-ts-content-pct: 65%;

  width: 100%;
  background-color: var(--ol-ts-bg);
}

.ol-ts__inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 80px 0;
  box-sizing: border-box;
  min-height: 716px;
}

.ol-ts--content-right .ol-ts__inner {
  flex-direction: row-reverse;
}


/* ==========================================================================
   Content column + glass card
   ========================================================================== */

.ol-ts__content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex: 1 1 var(--ol-ts-content-pct);
  width: var(--ol-ts-content-pct);
  max-width: none;
  min-width: 0;
  padding: 32px 80px;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.ol-ts__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  padding: 32px 24px;
  box-sizing: border-box;
  background-color: var(--ol-ts-card-bg);
  border: 0.5px solid var(--ol-ts-card-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .ol-ts__card {
    background-color: rgba(40, 40, 40, 0.85);
  }
}

.ol-ts__heading {
  margin: 0;
  width: 100%;
  font-family: 'Rubik', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
  color: var(--ol-ts-heading);
  word-break: break-word;
}

.ol-ts__body {
  margin: 0;
  width: 100%;
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--ol-ts-body);
  word-break: break-word;
}


/* ==========================================================================
   Tip checklist
   ========================================================================== */

.ol-ts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.ol-ts__item {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.ol-ts__item-title-row,
.ol-ts__item-desc-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.ol-ts__check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--ol-ts-check);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ol-ts__check svg {
  display: block;
  width: 20px;
  height: 20px;
}

.ol-ts__check--spacer {
  visibility: hidden;
}

.ol-ts__item-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: var(--ol-ts-tip-title);
  word-break: break-word;
}

.ol-ts__item-desc {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--ol-ts-tip-body);
  word-break: break-word;
}


/* ==========================================================================
   Button
   ========================================================================== */

.ol-ts__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  padding: 8px 16px;
  box-sizing: border-box;
  background-color: var(--ol-ts-btn-bg);
  color: var(--ol-ts-btn-color);
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.ol-ts__btn:hover {
  opacity: 0.9;
}

.ol-ts__btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}


/* ==========================================================================
   Media column
   ========================================================================== */

.ol-ts__media-col {
  position: relative;
  flex: 1 1 calc(100% - var(--ol-ts-content-pct));
  width: calc(100% - var(--ol-ts-content-pct));
  max-width: none;
  min-width: 0;
  min-height: 480px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.ol-ts__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ol-ts-focal);
  display: block;
}

.ol-ts__overlay {
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: var(--ol-ts-overlay);
  pointer-events: none;
}

.ol-ts__image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a303b 0%, #1a1a1a 100%);
}


/* ==========================================================================
   Screen-reader only
   ========================================================================== */

.ol-ts-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .ol-ts__inner {
    flex-direction: column;
    min-height: 0;
    padding: 0;
  }

  .ol-ts--content-right .ol-ts__inner {
    flex-direction: column;
  }

  .ol-ts__content-col,
  .ol-ts__media-col {
    width: 100%;
    max-width: none;
    flex: none;
  }

  .ol-ts__content-col {
    padding: 48px 40px;
    order: 1;
  }

  .ol-ts__media-col {
    min-height: 360px;
    aspect-ratio: 4 / 3;
    order: 2;
  }
}

@media (max-width: 767px) {
  .ol-ts__content-col {
    padding: 40px 24px;
  }

  .ol-ts__card {
    gap: 24px;
    padding: 24px 20px;
  }

  .ol-ts__heading {
    font-size: 24px;
    line-height: 32px;
  }

  .ol-ts__body {
    font-size: 16px;
    line-height: 26px;
  }

  .ol-ts__item-title {
    font-size: 16px;
    line-height: 26px;
  }

  .ol-ts__media-col {
    min-height: 280px;
  }
}

@media (max-width: 390px) {
  .ol-ts__content-col {
    padding: 32px 16px;
  }
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ol-ts__btn {
    transition: none;
  }
}
