/* FT-ish inline module styling (kept separate from Tailwind pipeline) */
.ft-module {
  margin: 2.5rem auto;
  max-width: 48rem; /* match article width */
  padding: 0 1rem;
}

.ft-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.10),
    0 12px 28px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.25rem;
}

.ft-card[data-href] {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ft-card[data-href]:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.10),
    0 14px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.ft-card[data-href]:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.35);
  outline-offset: 3px;
}

.ft-kicker {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.ft-logo {
  height: 22px;
  width: auto;
  opacity: 0.85;
}

.ft-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ft-cta .ft-logo {
  height: 26px;
  opacity: 0.95;
}

.ft-title {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.ft-body {
  color: #111827;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ft-cta {
  margin: 0.75rem 0 0;
  color: rgba(17, 24, 39, 0.7);
  font-weight: 600;
}

.ft-carousel {
  position: relative;
  margin: 0.75rem 0 1rem;
}

.ft-carousel-dots {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

.ft-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.18);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.ft-carousel-dot.is-active {
  background: rgba(17, 24, 39, 0.55);
}

.ft-carousel-dot:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.35);
  outline-offset: 2px;
}

.ft-carousel-track {
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff; /* was dark; keep FT-like white frame */
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Media frame (keeps consistent FT-ish proportions and clips any baked-in borders) */
.ft-media {
  aspect-ratio: 16 / 9;
}

.ft-carousel-slide {
  display: none;
}

.ft-carousel-slide.is-active {
  display: block;
}

.ft-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  border: 0;
  outline: 0;
  background: transparent;
  transform: scale(var(--ft-video-zoom, 1));
  transform-origin: 50% 50%;
}

/* Crop helpers (set via JS based on data-crops) */
.ft-video.crop-left { object-position: 20% 50%; }
.ft-video.crop-right { object-position: 80% 50%; }
.ft-video.crop-up,
.ft-video.crop-top { object-position: 50% 20%; }
.ft-video.crop-down,
.ft-video.crop-bottom { object-position: 50% 80%; }
.ft-video.crop-center { object-position: 50% 50%; }

/* Hide native controls even if someone accidentally adds `controls` */
.ft-video::-webkit-media-controls,
.ft-video::-webkit-media-controls-panel,
.ft-video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none;
}

.ft-carousel-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  line-height: 2.25rem;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease-in-out, background 140ms ease-in-out;
}

.ft-carousel-prev { left: -0.5rem; }
.ft-carousel-next { right: -0.5rem; }

.ft-carousel:hover .ft-carousel-btn {
  opacity: 1;
  pointer-events: auto;
}

.ft-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Touch devices: no hover, keep controls visible */
@media (hover: none), (pointer: coarse) {
  .ft-carousel-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .ft-module { padding: 0 0.75rem; }
  .ft-card { padding: 1rem; }
}


