/** TW Care — before & after. All styles stay inside the plugin. */
.twc-ba {
  --twc-background: #ece5df;
  --twc-surface: #efebe4;
  --twc-ink: #141414;
  --twc-muted: #5c584f;
  --twc-line: #cfc9bd;
  --twc-accent: #000;
  --twc-gap: 24px;
  --twc-scroll-offset: 112px;
  width: 100%;
  max-width: 1300px;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 64px) 0;
  color: var(--twc-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  text-align: start;
  isolation: isolate;
  scroll-margin-top: var(--twc-scroll-offset);
}

.twc-ba,
.twc-ba * {
  box-sizing: border-box;
}

.twc-ba .twc-ba__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 32px;
}

.twc-ba .twc-ba__header > :first-child {
  min-width: 0;
}

.twc-ba .twc-ba__eyebrow,
.twc-ba .twc-ba__kicker {
  display: block;
  margin: 0 0 12px;
  color: var(--twc-muted);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.twc-ba .twc-ba__heading {
  max-width: 850px;
  margin: 0;
  color: var(--twc-ink);
  font-family: inherit;
  font-size: clamp(30px, 3.7vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.twc-ba .twc-ba__heading em {
  color: inherit;
  font-family: var(--twc-serif, "Playfair Display", Georgia, serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.035em;
}

.twc-ba .twc-ba__intro {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--twc-muted);
  font: inherit;
  font-size: 14px;
  line-height: 1.8;
}

.twc-ba .twc-ba__header > .twc-ba__intro {
  margin: 0;
  max-width: 850px;
}

.twc-ba .twc-ba__intro > .twc-ba__hint {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
}

.twc-ba div.twc-ba__nav,
.twc-ba .twc-ba__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.twc-ba [data-twc-prev],
.twc-ba [data-twc-next] {
  --twc-nav-fill: 105%;
  --twc-control-press: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--twc-line);
  border-radius: 50%;
  background: transparent;
  color: var(--twc-ink);
  box-shadow: none;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transform: scale(var(--twc-control-press));
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 220ms ease, color 220ms ease, opacity 160ms ease, transform 180ms ease;
}

.twc-ba [data-twc-prev]::before,
.twc-ba [data-twc-next]::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: var(--twc-accent);
  transform: translateY(var(--twc-nav-fill));
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  content: "";
}

.twc-ba [data-twc-prev] > span,
.twc-ba [data-twc-next] > span {
  display: inline-block;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.twc-ba [data-twc-prev] svg,
.twc-ba [data-twc-next] svg {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.twc-ba [data-twc-prev]:disabled,
.twc-ba [data-twc-next]:disabled {
  opacity: 0.34;
  cursor: default;
}

.twc-ba[data-layout="grid"] .twc-ba__nav,
.twc-ba[data-layout="grid"] .twc-ba__controls {
  display: none;
}

.twc-ba .twc-ba__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--twc-gap);
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 3px 3px 12px;
  list-style: none;
}

.twc-ba[data-layout="carousel"] .twc-ba__track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--twc-line) transparent;
  -webkit-overflow-scrolling: touch;
}

.twc-ba[data-layout="carousel"] .twc-ba__track::-webkit-scrollbar {
  height: 4px;
}

.twc-ba[data-layout="carousel"] .twc-ba__track::-webkit-scrollbar-track {
  background: transparent;
}

.twc-ba[data-layout="carousel"] .twc-ba__track::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--twc-line);
}

.twc-ba .twc-ba__card {
  --twc-card-border: var(--twc-line);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--twc-card-border, var(--twc-line));
  border-radius: 22px;
  background: var(--twc-surface);
  color: var(--twc-ink);
  box-shadow: none;
  scroll-margin-top: var(--twc-scroll-offset);
  scroll-snap-align: start;
  outline: 2px solid transparent;
  outline-offset: 1px;
  transition: border-color 180ms ease, outline-color 180ms ease;
}

.twc-ba[data-layout="carousel"] .twc-ba__card {
  flex: 0 0 calc((100% - 2 * var(--twc-gap)) / 3);
}

.twc-ba .twc-ba__card.is-targeted {
  border-color: var(--twc-accent);
  outline-color: var(--twc-accent);
}

.twc-ba .twc-ba__compare {
  --twc-position: 50%;
  --twc-ratio: 4 / 5;
  --twc-fit: contain;
  --twc-focus: 50% 50%;
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: var(--twc-ratio);
  overflow: hidden;
  border: 0;
  border-radius: 21px 21px 0 0;
  background: var(--twc-background);
  line-height: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  isolation: isolate;
}

.twc-ba .twc-ba__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: var(--twc-fit, contain);
  object-position: var(--twc-focus, 50% 50%);
  background: var(--twc-background);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.twc-ba .twc-ba__image--after {
  z-index: 1;
}

.twc-ba .twc-ba__image--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--twc-position)) 0 0);
}

.twc-ba .twc-ba__label,
.twc-ba .twc-ba__label--before,
.twc-ba .twc-ba__label--after {
  position: absolute;
  top: 15px;
  z-index: 3;
  display: inline-block;
  padding: 8px 11px;
  border: 1px solid rgba(207, 201, 189, 0.7);
  border-radius: 7px;
  background: var(--twc-surface);
  color: var(--twc-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  pointer-events: none;
}

.twc-ba .twc-ba__label--before {
  left: 14px;
}

.twc-ba .twc-ba__label--after {
  right: 14px;
}

.twc-ba .twc-ba__divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--twc-position);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.twc-ba .twc-ba__handle {
  --twc-handle-scale: 1;
  --twc-handle-press: 1;
  position: absolute;
  z-index: 5;
  top: 50%;
  left: clamp(26px, var(--twc-position), calc(100% - 26px));
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid var(--twc-line);
  border-radius: 50%;
  background: #fff;
  color: var(--twc-ink);
  box-shadow: none;
  transform: translate(-50%, -50%) scale(calc(var(--twc-handle-scale) * var(--twc-handle-press)));
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.twc-ba .twc-ba__handle::before,
.twc-ba .twc-ba__handle::after {
  position: absolute;
  top: 21px;
  display: block;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: "";
}

.twc-ba .twc-ba__handle::before {
  left: 15px;
  transform: rotate(135deg);
}

.twc-ba .twc-ba__handle::after {
  right: 15px;
  transform: rotate(-45deg);
}

.twc-ba .twc-ba__range {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.twc-ba .twc-ba__range::-webkit-slider-runnable-track {
  height: 100%;
  border: 0;
  background: transparent;
}

.twc-ba .twc-ba__range::-moz-range-track {
  height: 100%;
  border: 0;
  background: transparent;
}

.twc-ba .twc-ba__range::-webkit-slider-thumb {
  width: 44px;
  height: 44px;
  border: 0;
  -webkit-appearance: none;
  background: transparent;
}

.twc-ba .twc-ba__range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.twc-ba .twc-ba__compare.is-keyboard-focus {
  outline: 3px solid var(--twc-accent);
  outline-offset: -4px;
}

@supports selector(:has(*)) {
  .twc-ba .twc-ba__compare:has(.twc-ba__range:focus-visible) {
    outline: 3px solid var(--twc-accent);
    outline-offset: -4px;
  }
}

.twc-ba:not(.twc-ba--gsap) .twc-ba__compare.is-dragging .twc-ba__handle,
.twc-ba:not(.twc-ba--gsap) .twc-ba__compare.is-keyboard-focus .twc-ba__handle {
  border-color: var(--twc-accent);
  background: var(--twc-accent);
  color: #fff;
}

.twc-ba .twc-ba__meta {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.twc-ba .twc-ba__meta .twc-ba__eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.twc-ba .twc-ba__meta time {
  color: var(--twc-muted);
  font-size: 11px;
}

.twc-ba .twc-ba__title {
  margin: 0 0 10px;
  color: var(--twc-ink);
  font-family: inherit;
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.twc-ba .twc-ba__title a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

.twc-ba .twc-ba__description {
  margin: 0 0 12px;
  color: var(--twc-muted);
  font: inherit;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.twc-ba .twc-ba__time {
  margin: 0 0 12px;
  color: var(--twc-muted);
  font: inherit;
  font-size: 11px;
  line-height: 1.65;
}

.twc-ba .twc-ba__link {
  --twc-cta-fill: 105%;
  --twc-control-press: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 48px;
  margin: auto 0 0;
  padding: 12px 17px;
  color: var(--twc-ink);
  border: 1px solid var(--twc-ink);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transform: scale(var(--twc-control-press));
  transition: border-color 250ms ease, color 250ms ease, transform 180ms ease;
  touch-action: manipulation;
}

.twc-ba .twc-ba__link::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: var(--twc-accent);
  transform: translateY(var(--twc-cta-fill));
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  content: "";
}

.twc-ba .twc-ba__link-label,
.twc-ba .twc-ba__link-arrow {
  display: inline-block;
  position: relative;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.twc-ba .twc-ba__link-arrow {
  font-size: 16px;
  line-height: 1;
}

.twc-ba .twc-ba__link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.twc-ba .twc-ba__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 18px;
  color: var(--twc-muted);
  font-size: 11px;
  line-height: 1.7;
}

.twc-ba .twc-ba__hint,
.twc-ba .twc-ba__browse-hint {
  max-width: 680px;
  margin: 0;
  color: var(--twc-muted);
  font: inherit;
}

.twc-ba [data-twc-status] {
  margin: 0;
  color: var(--twc-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.twc-ba .twc-ba__empty {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--twc-line);
  border-radius: 14px;
  background: var(--twc-surface);
  color: var(--twc-muted);
  font: inherit;
}

.twc-ba a:focus-visible,
.twc-ba button:focus-visible,
.twc-ba .twc-ba__track:focus-visible,
.twc-ba .twc-ba__card:focus-visible {
  outline: 2px solid var(--twc-accent);
  outline-offset: 4px;
}

.twc-ba .twc-ba__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* CSS remains a complete interaction fallback if the bundled GSAP cannot run. */
.twc-ba:not(.twc-ba--gsap) .twc-ba__link:focus-visible,
.twc-ba:not(.twc-ba--gsap) [data-twc-prev]:not(:disabled):focus-visible,
.twc-ba:not(.twc-ba--gsap) [data-twc-next]:not(:disabled):focus-visible {
  --twc-cta-fill: 0%;
  --twc-nav-fill: 0%;
  border-color: var(--twc-accent);
  color: #fff;
}

.twc-ba.twc-ba--gsap .twc-ba__card,
.twc-ba.twc-ba--gsap .twc-ba__meta,
.twc-ba.twc-ba--gsap .twc-ba__handle,
.twc-ba.twc-ba--gsap .twc-ba__link,
.twc-ba.twc-ba--gsap .twc-ba__link::before,
.twc-ba.twc-ba--gsap .twc-ba__link-label,
.twc-ba.twc-ba--gsap .twc-ba__link-arrow,
.twc-ba.twc-ba--gsap [data-twc-prev],
.twc-ba.twc-ba--gsap [data-twc-next],
.twc-ba.twc-ba--gsap [data-twc-prev]::before,
.twc-ba.twc-ba--gsap [data-twc-next]::before,
.twc-ba.twc-ba--gsap [data-twc-prev] > span,
.twc-ba.twc-ba--gsap [data-twc-next] > span {
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .twc-ba:not(.twc-ba--gsap) [data-twc-prev]:not(:disabled):hover,
  .twc-ba:not(.twc-ba--gsap) [data-twc-next]:not(:disabled):hover,
  .twc-ba:not(.twc-ba--gsap) .twc-ba__link:hover {
    --twc-cta-fill: 0%;
    --twc-nav-fill: 0%;
    border-color: var(--twc-accent);
    color: #fff;
  }

  .twc-ba:not(.twc-ba--gsap) .twc-ba__card:hover {
    border-color: var(--twc-accent);
  }

  .twc-ba:not(.twc-ba--gsap) .twc-ba__compare:hover .twc-ba__handle {
    border-color: var(--twc-accent);
    background: var(--twc-accent);
    color: #fff;
  }

  .twc-ba .twc-ba__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
  }

}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .twc-ba:not(.twc-ba--gsap) .twc-ba__card:hover .twc-ba__meta {
    transform: translateY(-5px);
  }

  .twc-ba:not(.twc-ba--gsap) .twc-ba__compare:hover .twc-ba__handle {
    --twc-handle-scale: 1.12;
  }

  .twc-ba:not(.twc-ba--gsap) .twc-ba__link:hover .twc-ba__link-label {
    transform: translateY(-1px);
  }

  .twc-ba:not(.twc-ba--gsap) .twc-ba__link:hover .twc-ba__link-arrow {
    transform: translate(3px, -3px);
  }

  .twc-ba:not(.twc-ba--gsap) [data-twc-next]:not(:disabled):hover > span {
    transform: translateX(4px);
  }

  .twc-ba:not(.twc-ba--gsap) [data-twc-prev]:not(:disabled):hover > span {
    transform: translateX(-4px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .twc-ba:not(.twc-ba--gsap) .twc-ba__link:active,
  .twc-ba:not(.twc-ba--gsap) [data-twc-prev]:not(:disabled):active,
  .twc-ba:not(.twc-ba--gsap) [data-twc-next]:not(:disabled):active {
    --twc-control-press: 0.96;
  }

  .twc-ba:not(.twc-ba--gsap) .twc-ba__compare.is-dragging .twc-ba__handle {
    --twc-handle-press: 0.96;
  }
}

@media (max-width: 1024px) {
  .twc-ba {
    --twc-gap: 20px;
  }

  .twc-ba .twc-ba__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .twc-ba[data-layout="carousel"] .twc-ba__card {
    flex-basis: calc((100% - var(--twc-gap)) / 2);
  }
}

@media (max-width: 640px) {
  .twc-ba {
    --twc-gap: 16px;
    --twc-scroll-offset: 96px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .twc-ba .twc-ba__header {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .twc-ba .twc-ba__heading {
    font-size: clamp(28px, 7.5vw, 38px);
  }

  .twc-ba .twc-ba__intro {
    margin-top: 12px;
    font-size: 12px;
  }

  .twc-ba div.twc-ba__nav,
  .twc-ba .twc-ba__controls {
    align-self: flex-end;
    gap: 5px;
  }

  .twc-ba [data-twc-prev],
  .twc-ba [data-twc-next] {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .twc-ba .twc-ba__track {
    grid-template-columns: minmax(0, 1fr);
  }

  .twc-ba[data-layout="carousel"] .twc-ba__card {
    flex-basis: 87%;
  }

  .twc-ba .twc-ba__meta {
    padding: 19px;
  }

  .twc-ba .twc-ba__footer {
    gap: 8px 16px;
    margin-top: 14px;
    font-size: 11px;
  }

  .twc-ba .twc-ba__footer .twc-ba__hint {
    flex: 1 1 210px;
  }
}

@media (max-width: 440px) {
  .twc-ba .twc-ba__header {
    flex-wrap: wrap;
  }

  .twc-ba .twc-ba__header > :first-child {
    flex: 1 1 100%;
  }

  .twc-ba div.twc-ba__nav,
  .twc-ba .twc-ba__controls {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twc-ba *,
  .twc-ba *::before,
  .twc-ba *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation: none !important;
  }
}
