/*
 * TFM Training Center — main page
 * /wp-content/themes/blocksy-child/css/tfm-training.css
 *
 * Loaded on: the Training Center main page (via php/tfm-training.php).
 * Colours: only the area variables from the global "TFM Color Theme CSS"
 * (--area-accent, --area-accent-soft, --area-accent-glow, --time-bg), each
 * with a fallback. The time-of-day colours of the background live in the
 * atmosphere layer below (section 1), the same way Academy and Village do it.
 *
 * Contents
 *  1. Atmosphere (fixed background layer, injected by JS)
 *  2. Hero / reception
 *  3. Door button (light-through-the-door-gap hover)
 *  4. Threshold
 *  5. Interior + section headings
 *  6. Monitor row
 *  7. Monitor building blocks (progress bar, countdown, screen, streak …)
 *  8. Wings and sections (layout from Elementor rows)
 *  9. Program cards
 * 10. Exit
 * 11. Enlarged broadcast (dialog)
 * 12. Logged-in / logged-out visibility
 * 13. Responsive + reduced motion
 *
 * Elementor notes (see CLAUDE.md):
 *  - Widget overrides use ".class, .class *" with !important because
 *    Elementor puts the class on the wrapper. text-shadow and padding stay
 *    without !important so the Elementor settings keep working.
 *  - Container ::before/::after belong to Elementor (background overlay),
 *    so container decoration is inserted by JS as real elements.
 */

/* ============================================================
   1. ATMOSPHERE
   Fixed layer behind everything. Each time of day gets its own
   colour, not just another shade of red:
     default  = light black, slight violet + crimson haze
     night    = deep black, barely any glow, faint stars
     sunrise  = soft orange morning light
     sunset   = orange-red dusk
   ============================================================ */

body.tfm-area-training {
  background-color: var(--time-bg, #0d0a10);
}

.tfm-tc-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.tfm-tc-atmo-color {
  position: absolute;
  inset: 0;
  transition: background 1.4s ease;
  background:
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(110, 40, 160, 0.26) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 84% 74%, rgba(150, 30, 70, 0.22) 0%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 60%);
}
body.tfm-time-night .tfm-tc-atmo-color {
  background:
    radial-gradient(ellipse 70% 55% at 20% 20%, rgba(60, 20, 90, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 60% 45% at 82% 76%, rgba(110, 15, 45, 0.14) 0%, transparent 62%);
}
body.tfm-time-sunrise .tfm-tc-atmo-color {
  background:
    radial-gradient(ellipse 75% 55% at 22% 18%, rgba(255, 150, 80, 0.26) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 82% 74%, rgba(200, 80, 110, 0.20) 0%, transparent 62%);
}
body.tfm-time-sunset .tfm-tc-atmo-color {
  background:
    radial-gradient(ellipse 75% 55% at 22% 20%, rgba(240, 90, 50, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 80% 72%, rgba(170, 30, 60, 0.26) 0%, transparent 60%);
}
/* "Time colours" switched off in the settings panel: stay on the default */
body.tfm-time-disabled .tfm-tc-atmo-color {
  background:
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(110, 40, 160, 0.26) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 84% 74%, rgba(150, 30, 70, 0.22) 0%, transparent 62%);
}

.tfm-tc-atmo-breathe {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(900px, 90vw);
  height: min(700px, 70vh);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--area-accent, #cc3355) 16%, transparent), transparent 70%);
  filter: blur(40px);
  animation: tfmTcBreathe 9s ease-in-out infinite;
}
@keyframes tfmTcBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.5; }
  50%      { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
}

.tfm-tc-atmo-stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
body.tfm-time-night .tfm-tc-atmo-stars {
  opacity: 1;
}
.tfm-tc-atmo-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffffff;
  animation: tfmTcTwinkle 4s ease-in-out infinite alternate;
}
@keyframes tfmTcTwinkle {
  from { opacity: 0.15; }
  to   { opacity: 0.8; }
}

/* ============================================================
   2. HERO / RECEPTION
   Container .tfm-tc-hero with the background image set in
   Elementor. The JS adds three real layers inside it:
   warm glow, light motes and the bottom fade.
   ============================================================ */

.tfm-tc-hero {
  position: relative !important;
  overflow: hidden !important;
  background-color: var(--time-bg, #0d0a10);
}
/* content above the injected layers */
.tfm-tc-hero > .e-con-inner,
.tfm-tc-hero > .elementor-element {
  position: relative;
  z-index: 3;
}

.tfm-tc-hero-glow,
.tfm-tc-hero-motes,
.tfm-tc-hero-fade {
  position: absolute;
  pointer-events: none;
}
/* warm light spilling over the image */
.tfm-tc-hero-glow {
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 55% 60% at 50% 40%, rgba(255, 210, 180, 0.16), transparent 70%);
}
/* bottom fade into the page background, for text legibility */
.tfm-tc-hero-fade {
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  z-index: 1;
  background: linear-gradient(to top, var(--time-bg, #0d0a10) 0%, transparent 100%);
}
.tfm-tc-hero-motes {
  inset: 0;
  z-index: 2;
}
.tfm-tc-mote {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 225, 205, 0.7);
  filter: blur(1px);
  animation: tfmTcMote 14s ease-in-out infinite;
}
@keyframes tfmTcMote {
  0%   { transform: translateY(0);      opacity: 0; }
  20%  { opacity: 0.9; }
  100% { transform: translateY(-140px); opacity: 0; }
}

/* Heading widget */
.tfm-tc-hero-eyebrow,
.tfm-tc-hero-eyebrow * {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
  color: color-mix(in srgb, var(--area-accent-soft, #e06080) 70%, var(--ink, #f6f1ea)) !important;
}
.tfm-tc-hero-eyebrow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
}

/* Heading widget. Line break and <em> can be typed into the title:
   Come in.<br><em>You deserve to rest.</em> */
.tfm-tc-hero-title,
.tfm-tc-hero-title * {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 500 !important;
  font-size: clamp(2.4rem, 5.6vw, 4rem) !important;
  line-height: 1.08 !important;
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-hero-title em,
.tfm-tc-hero-title em * {
  font-style: italic !important;
  color: var(--area-accent-soft, #e06080) !important;
}
.tfm-tc-hero-title {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 1px 5px rgba(0, 0, 0, 1);
}

/* Divider widget: the gradient comes from the global colour theme
   (.elementor-divider-separator), here only width and thickness. */
.tfm-tc-hero-line .elementor-divider-separator {
  width: 160px !important;
  margin: 0 auto !important;
  border-top: 0 !important;
  height: 2px !important;
}

/* Text-editor widget */
.tfm-tc-hero-subtitle,
.tfm-tc-hero-subtitle * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 300 !important;
  line-height: 1.7 !important;
  color: var(--body-text, #e4ddf0) !important;
}
.tfm-tc-hero-subtitle {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.tfm-tc-hero-subtitle p:last-child {
  margin-bottom: 0 !important;
}

/* ============================================================
   3. DOOR BUTTON — Button widget with class .tfm-tc-door
   On hover a thin vertical slit of light opens behind the
   label, as if a door were opened a crack.
   .tfm-tc-door--small = compact version (monitors).
   ============================================================ */

.tfm-tc-door .elementor-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 52px;
  padding: 14px 34px;
  overflow: hidden !important;
  isolation: isolate;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--area-accent, #cc3355) 45%, transparent) !important;
  background: rgba(13, 8, 12, 0.45) !important;
  backdrop-filter: blur(6px);
  color: var(--ink, #f6f1ea) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  transition: border-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease !important;
}
.tfm-tc-door .elementor-button * {
  color: inherit !important;
  fill: currentColor !important;
}
.tfm-tc-door .elementor-button::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -10%;
  bottom: -10%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--area-accent-soft, #e06080) 55%, #fff4ea), transparent);
  box-shadow: 0 0 18px 6px var(--area-accent-glow, rgba(204, 51, 85, 0.4));
  opacity: 0;
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}
.tfm-tc-door .elementor-button:hover,
.tfm-tc-door .elementor-button:focus-visible {
  border-color: var(--area-accent, #cc3355) !important;
  box-shadow: 0 0 34px -6px var(--area-accent-glow, rgba(204, 51, 85, 0.4)) !important;
}
.tfm-tc-door .elementor-button:hover::before,
.tfm-tc-door .elementor-button:focus-visible::before {
  width: 34%;
  opacity: 1;
}
.tfm-tc-door .elementor-button:focus-visible {
  outline: 2px solid var(--area-accent-soft, #e06080) !important;
  outline-offset: 3px;
}

.tfm-tc-door--small .elementor-button {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.7rem !important;
  background: color-mix(in srgb, var(--area-accent, #cc3355) 14%, transparent) !important;
}

/* ============================================================
   4. THRESHOLD — container .tfm-tc-threshold
   The sentence fades in once it scrolls into view (JS adds
   .is-visible), then two lines slide together like door halves.
   ============================================================ */

.tfm-tc-threshold-text,
.tfm-tc-threshold-text * {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(1.4rem, 3vw, 1.9rem) !important;
  color: var(--ink, #f6f1ea) !important;
  text-align: center !important;
}
.tfm-tc-threshold-text {
  transition: opacity 1.6s ease, transform 1.6s ease;
}
/* only hidden once the JS is running, so the text never stays invisible */
.tfm-tc-js .tfm-tc-threshold:not(.is-visible) .tfm-tc-threshold-text {
  opacity: 0;
  transform: translateY(10px);
}
.tfm-tc-threshold.is-visible .tfm-tc-threshold-text {
  opacity: 0.92;
}

.tfm-tc-seam {
  position: relative;
  width: 160px;
  height: 2px;
  margin: 30px auto 0;
}
.tfm-tc-seam::before,
.tfm-tc-seam::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 2px;
  background: color-mix(in srgb, var(--area-accent, #cc3355) 70%, transparent);
  transition: transform 1.8s cubic-bezier(0.6, 0, 0.2, 1) 0.4s;
}
.tfm-tc-seam::before { left: 0;  transform: translateX(-120%); }
.tfm-tc-seam::after  { right: 0; transform: translateX(120%); }
.tfm-tc-threshold.is-visible .tfm-tc-seam::before,
.tfm-tc-threshold.is-visible .tfm-tc-seam::after {
  transform: none;
}

/* ============================================================
   5. INTERIOR + SECTION HEADINGS
   Container .tfm-tc-inside around monitors and wings. The JS
   adds faint scanlines ("you are being watched").
   ============================================================ */

.tfm-tc-inside {
  position: relative !important;
}
.tfm-tc-scanlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 400px at 50% 0%, color-mix(in srgb, var(--area-accent, #cc3355) 8%, transparent), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}
.tfm-tc-inside > .e-con-inner,
.tfm-tc-inside > .elementor-element {
  position: relative;
  z-index: 1;
}

/* Heading widget */
.tfm-tc-h2,
.tfm-tc-h2 * {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600 !important;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem) !important;
  line-height: 1.15 !important;
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-h2 .elementor-heading-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--area-accent, #cc3355), transparent);
}

/* Text-editor widget */
.tfm-tc-sub,
.tfm-tc-sub * {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 1.15rem !important;
  color: var(--muted, #b6afc7) !important;
}
.tfm-tc-sub p:last-child {
  margin-bottom: 0 !important;
}

/* ============================================================
   6. MONITOR ROW — container .tfm-tc-monitors (2 : 1 : 1)
   Forced into a grid so the widths do not depend on Elementor's
   flex values. Works for boxed (.e-con-inner) and full width.
   ============================================================ */

.tfm-tc-monitors.e-con-full,
.tfm-tc-monitors.e-con-boxed > .e-con-inner {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr !important;
  gap: 20px !important;
  align-items: stretch !important;
}
.tfm-tc-monitors > .e-con,
.tfm-tc-monitors > .e-con-inner > .e-con {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* One monitor = container .tfm-tc-monitor (column) */
.tfm-tc-monitor {
  position: relative !important;
  padding: 18px 20px 20px;
  border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(30, 14, 22, 0.92), rgba(14, 8, 12, 0.96)) !important;
  border: 1px solid color-mix(in srgb, var(--area-accent, #cc3355) 26%, transparent) !important;
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, 0.35),
    0 24px 50px -28px rgba(0, 0, 0, 0.9),
    0 0 40px -22px var(--area-accent-glow, rgba(204, 51, 85, 0.4)) !important;
}
/* the last block of a monitor sits at the bottom */
.tfm-tc-mon-foot {
  margin-top: auto !important;
}

/* Inner layout of the broadcast monitor: screen | info */
.tfm-tc-live.e-con-full,
.tfm-tc-live.e-con-boxed > .e-con-inner {
  display: grid !important;
  grid-template-columns: 1.15fr 1fr !important;
  gap: 18px !important;
}
.tfm-tc-live > .e-con,
.tfm-tc-live > .e-con-inner > .e-con {
  width: 100% !important;
  min-width: 0 !important;
}

/* Header row of a monitor: label left, id right */
.tfm-tc-mon-head {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
.tfm-tc-mon-head > .elementor-element,
.tfm-tc-mon-head > .e-con-inner > .elementor-element {
  flex-grow: 0 !important;
  width: auto !important;
}

/* Text-editor / heading: "Now broadcasting" */
.tfm-tc-mon-label,
.tfm-tc-mon-label * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.66rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
  margin: 0 !important;
}
/* Text-editor: "CH 01" */
.tfm-tc-mon-id,
.tfm-tc-mon-id * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.66rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--muted, #b6afc7) !important;
  margin: 0 !important;
}

/* Heading widget: programme / broadcast title */
.tfm-tc-mon-title,
.tfm-tc-mon-title * {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600 !important;
  font-size: 1.45rem !important;
  line-height: 1.2 !important;
  color: var(--ink, #f6f1ea) !important;
}

/* Text-editor: small grey info lines ("Until 21:30 · …", "Watched 4×") */
.tfm-tc-mon-text,
.tfm-tc-mon-text * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  color: var(--muted, #b6afc7) !important;
}
.tfm-tc-mon-text b,
.tfm-tc-mon-text strong {
  color: var(--ink, #f6f1ea) !important;
  font-weight: 500 !important;
}
.tfm-tc-mon-text p:last-child {
  margin-bottom: 0 !important;
}

/* Row of info lines next to each other (container) */
.tfm-tc-meta {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}
.tfm-tc-meta > .elementor-element,
.tfm-tc-meta > .e-con-inner > .elementor-element {
  flex-grow: 0 !important;
  width: auto !important;
}

/* Text link inside a monitor: Button widget with .tfm-tc-link */
.tfm-tc-link .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0;
  padding: 6px 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
  transition: color 0.25s ease !important;
}
.tfm-tc-link .elementor-button * {
  color: inherit !important;
  fill: currentColor !important;
}
.tfm-tc-link .elementor-button:hover {
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-link .elementor-button:focus-visible {
  outline: 2px solid var(--area-accent-soft, #e06080) !important;
  outline-offset: 3px;
}

/* ============================================================
   7. MONITOR BUILDING BLOCKS
   ============================================================ */

/* --- Progress Bar widget with .tfm-tc-progress ---
   Thin glowing line. Title, inner text and percentage are hidden;
   the numbers are shown by separate text widgets next to it. */
.tfm-tc-progress .elementor-title,
.tfm-tc-progress .elementor-progress-text,
.tfm-tc-progress .elementor-progress-percentage {
  display: none !important;
}
.tfm-tc-progress .elementor-progress-wrapper {
  height: 4px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
.tfm-tc-progress .elementor-progress-bar {
  height: 4px !important;
  line-height: 4px !important;
  border-radius: 4px !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--area-accent, #cc3355) 70%, transparent), var(--area-accent-soft, #e06080)) !important;
  box-shadow: 0 0 10px var(--area-accent-glow, rgba(204, 51, 85, 0.4)) !important;
}

/* --- Signal strength: text-editor .tfm-tc-signal ("Signal: <b>strong</b>")
   The JS puts four little bars in front of the text. */
.tfm-tc-signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
}
.tfm-tc-signal-bars i {
  width: 3px;
  border-radius: 1px;
  background: var(--area-accent-soft, #e06080);
}
.tfm-tc-signal-bars i:nth-child(1) { height: 4px; }
.tfm-tc-signal-bars i:nth-child(2) { height: 7px; }
.tfm-tc-signal-bars i:nth-child(3) { height: 10px; }
.tfm-tc-signal-bars i:nth-child(4) { height: 12px; opacity: 0.35; }

/* --- Broadcast screen: container .tfm-tc-screen ---
   Background image/video can be set in Elementor. Without one the
   JS draws a slowly turning spiral as placeholder picture. The JS
   also adds scanlines, flicker, the LIVE badge and the zoom icon. */
.tfm-tc-screen {
  position: relative !important;
  aspect-ratio: 16 / 10;
  overflow: hidden !important;
  cursor: zoom-in;
  border-radius: 10px !important;
  border: 1px solid color-mix(in srgb, var(--area-accent, #cc3355) 30%, transparent) !important;
  background-color: #050304;
  background-image: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--area-accent, #cc3355) 40%, #120810), #050304 72%);
}
.tfm-tc-screen:focus-visible {
  outline: 2px solid var(--area-accent-soft, #e06080);
  outline-offset: 3px;
}
.tfm-tc-screen-spiral,
.tfm-tc-screen-scan,
.tfm-tc-screen-flicker {
  position: absolute;
  pointer-events: none;
}
.tfm-tc-screen-spiral {
  inset: -40%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--area-accent, #cc3355) 55%, transparent) 0 12deg, transparent 12deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 62%);
          mask: radial-gradient(circle, #000 0 18%, transparent 62%);
  opacity: 0.8;
  animation: tfmTcSpin 22s linear infinite;
}
@keyframes tfmTcSpin {
  to { transform: rotate(360deg); }
}
.tfm-tc-screen-scan {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
}
.tfm-tc-screen-flicker {
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  animation: tfmTcFlicker 5s steps(1) infinite;
}
@keyframes tfmTcFlicker {
  0%, 100% { opacity: 0; }
  47%      { opacity: 1; }
  48%      { opacity: 0; }
  83%      { opacity: 0.6; }
  84%      { opacity: 0; }
}
.tfm-tc-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--area-accent, #cc3355);
  color: #ffffff;
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
}
.tfm-tc-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: tfmTcPulse 1.4s ease-in-out infinite;
}
@keyframes tfmTcPulse {
  50% { opacity: 0.2; }
}
.tfm-tc-screen-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink, #f6f1ea);
  font-size: 0.8rem;
  pointer-events: none;
}

/* --- Your status: heading .tfm-tc-day ("Day 3 <span>of 7</span>") --- */
.tfm-tc-day,
.tfm-tc-day * {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 2.1rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-day span {
  font-size: 0.5em !important;
  font-weight: 500 !important;
  color: var(--muted, #b6afc7) !important;
}

/* Condition box: container .tfm-tc-state with two text widgets
   .tfm-tc-state-label ("Condition") and .tfm-tc-state-value */
.tfm-tc-state {
  padding: 10px 12px;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--area-accent, #cc3355) 9%, transparent) !important;
  border-left: 2px solid var(--area-accent, #cc3355) !important;
  gap: 2px !important;
}
.tfm-tc-state-label,
.tfm-tc-state-label * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.6rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
  margin: 0 !important;
}
.tfm-tc-state-value,
.tfm-tc-state-value * {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 1.08rem !important;
  color: var(--ink, #f6f1ea) !important;
  margin: 0 !important;
}

/* Logged-out invitation text (text-editor) */
.tfm-tc-guest-text,
.tfm-tc-guest-text * {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 1.12rem !important;
  color: var(--muted, #b6afc7) !important;
}

/* --- Next session: Countdown widget (Elementor Pro) with .tfm-tc-countdown ---
   Shown as one line of glowing digits. Labels stay hidden; switch
   "Show Label" off in Elementor or leave it, both look the same. */
.tfm-tc-countdown .elementor-countdown-wrapper {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
.tfm-tc-countdown .elementor-countdown-item {
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
}
.tfm-tc-countdown .elementor-countdown-item + .elementor-countdown-item::before {
  content: ':';
  font-family: 'Jost', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--muted, #b6afc7);
  padding: 0 0.1em;
}
.tfm-tc-countdown .elementor-countdown-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
}
.tfm-tc-countdown .elementor-countdown-digits {
  font-family: 'Jost', sans-serif !important;
  font-variant-numeric: tabular-nums;
  font-size: 2rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
  color: var(--ink, #f6f1ea) !important;
  text-shadow: 0 0 18px var(--area-accent-glow, rgba(204, 51, 85, 0.4));
}
.tfm-tc-countdown .elementor-countdown-label {
  display: none !important;
}

/* --- Streak: container .tfm-tc-streak (row) with heading
   .tfm-tc-streak-count ("5") and text .tfm-tc-streak-label.
   The JS reads the number and adds a row of seven dots below. */
.tfm-tc-streak {
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--area-accent, #cc3355) 25%, transparent) !important;
}
.tfm-tc-streak > .elementor-element,
.tfm-tc-streak > .e-con-inner > .elementor-element {
  flex-grow: 0 !important;
  width: auto !important;
}
.tfm-tc-streak-count,
.tfm-tc-streak-count * {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.9rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-streak-label,
.tfm-tc-streak-label * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  color: var(--muted, #b6afc7) !important;
  margin: 0 !important;
}
.tfm-tc-dots {
  display: flex;
  gap: 5px;
  flex-basis: 100%;
}
.tfm-tc-dots i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}
.tfm-tc-dots i.is-on {
  background: var(--area-accent, #cc3355);
  box-shadow: 0 0 8px var(--area-accent-glow, rgba(204, 51, 85, 0.4));
}

/* ============================================================
   8. WINGS AND SECTIONS
   No forced grid: the layout is built in Elementor. One row
   container per line, holding one wing (full width) or two wings
   side by side. Stacking on mobile is set per breakpoint in
   Elementor (row → column).
   ============================================================ */

/* A row that holds an open wing wraps, so the open wing takes the
   full line and its neighbour moves below it. */
.e-con:has(> .tfm-tc-wing.is-open),
.e-con-inner:has(> .tfm-tc-wing.is-open) {
  flex-wrap: wrap !important;
}

/* One wing = container .tfm-tc-wing (column, no padding: the roof
   beam runs edge to edge; the padding sits on .tfm-tc-wing-body) */
.tfm-tc-wing {
  position: relative !important;
  gap: 0 !important;
  padding: 0 !important;
  border-radius: 6px 6px 14px 14px !important;
  background: linear-gradient(180deg, rgba(28, 12, 20, 0.9), rgba(14, 8, 12, 0.95)) !important;
  border: 1px solid color-mix(in srgb, var(--area-accent, #cc3355) 22%, transparent) !important;
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.9) !important;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.tfm-tc-wing:not(.is-locked):hover,
.tfm-tc-wing.is-open {
  border-color: color-mix(in srgb, var(--area-accent, #cc3355) 55%, transparent) !important;
  box-shadow:
    0 26px 50px -30px rgba(0, 0, 0, 0.9),
    0 0 36px -16px var(--area-accent-glow, rgba(204, 51, 85, 0.4)) !important;
}
/* expanded wing takes the full row (works in a flex row and,
   should the parent ever be an Elementor grid container, there too) */
.tfm-tc-wing.is-open {
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-column: 1 / -1;
}

/* Roof beam: heading widget .tfm-tc-roof ("East Wing") */
.tfm-tc-roof {
  width: 100% !important;
  margin: 0 !important;
}
.tfm-tc-roof .elementor-heading-title {
  display: block;
  padding: 11px 22px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #050304, #0d0609);
  border-bottom: 2px solid color-mix(in srgb, var(--area-accent, #cc3355) 55%, transparent);
}
.tfm-tc-roof,
.tfm-tc-roof * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.66rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
}

/* Body: container .tfm-tc-wing-body (padding set in Elementor) */
.tfm-tc-wing-body {
  flex-grow: 1 !important;
}

/* Heading widget: wing name */
.tfm-tc-wing-title,
.tfm-tc-wing-title * {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 600 !important;
  font-size: 1.85rem !important;
  line-height: 1.12 !important;
  color: var(--ink, #f6f1ea) !important;
}
/* Text-editor: "3 programs" */
.tfm-tc-wing-count,
.tfm-tc-wing-count * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
  margin: 0 !important;
}
/* Text-editor: description */
.tfm-tc-wing-text,
.tfm-tc-wing-text * {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.14rem !important;
  line-height: 1.55 !important;
  color: var(--body-text, #e4ddf0) !important;
}
.tfm-tc-wing-text p:last-child {
  margin-bottom: 0 !important;
}

/* "Enter →": Button widget .tfm-tc-enter. Opens the programs of its
   wing (JS) when the wing contains a .tfm-tc-programs container;
   otherwise it is a normal link. */
.tfm-tc-enter {
  margin-top: auto !important;
}
.tfm-tc-enter .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px;
  padding: 8px 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
}
.tfm-tc-enter .elementor-button * {
  color: inherit !important;
  fill: currentColor !important;
}
.tfm-tc-enter .elementor-button:hover {
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-enter .elementor-button:focus-visible {
  outline: 2px solid var(--area-accent-soft, #e06080) !important;
  outline-offset: 3px;
}
.tfm-tc-enter .elementor-button-icon {
  transition: transform 0.3s ease;
}
.tfm-tc-enter .elementor-button:hover .elementor-button-icon {
  transform: translateX(4px);
}
.tfm-tc-wing.is-open .tfm-tc-enter .elementor-button-icon {
  transform: rotate(90deg);
}

/* Locked section: add .is-locked to the wing container. Text-editor
   .tfm-tc-lock carries the condition; the JS puts a closed-door
   silhouette in front of it. */
.tfm-tc-wing.is-locked {
  filter: grayscale(0.85);
  opacity: 0.62;
}
.tfm-tc-wing.is-locked .tfm-tc-roof .elementor-heading-title {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.tfm-tc-wing.is-locked .tfm-tc-roof,
.tfm-tc-wing.is-locked .tfm-tc-roof * {
  color: var(--muted, #b6afc7) !important;
}
.tfm-tc-lock {
  margin-top: auto !important;
}
.tfm-tc-lock .elementor-widget-container,
.tfm-tc-lock-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tfm-tc-lock .elementor-widget-container {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}
.tfm-tc-lock,
.tfm-tc-lock * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.76rem !important;
  color: var(--muted, #b6afc7) !important;
}
.tfm-tc-lock p {
  margin: 0 !important;
}
.tfm-tc-lock b,
.tfm-tc-lock strong {
  color: var(--ink, #f6f1ea) !important;
  font-weight: 500 !important;
}
.tfm-tc-door-icon {
  flex-shrink: 0;
  width: 22px;
  height: 30px;
}

/* ============================================================
   9. PROGRAM CARDS
   Container .tfm-tc-programs inside a wing (closed until the wing
   opens). Later a Loop Grid with the Loop Item "TFM Program Card";
   until then plain containers .tfm-tc-prog.
   ============================================================ */

.tfm-tc-js .tfm-tc-wing:not(.is-open) .tfm-tc-programs {
  display: none !important;
}
/* in the editor the programs stay visible so they can be edited */
body.elementor-editor-active .tfm-tc-programs {
  display: flex !important;
}
.tfm-tc-wing.is-open .tfm-tc-programs {
  animation: tfmTcReveal 0.5s ease both;
}
@keyframes tfmTcReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Three columns, whether the cards are containers or a Loop Grid */
.tfm-tc-programs.e-con-full,
.tfm-tc-programs.e-con-boxed > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}
.tfm-tc-programs > .e-con,
.tfm-tc-programs > .e-con-inner > .e-con {
  width: 100% !important;
  min-width: 0 !important;
}
.tfm-tc-programs .elementor-loop-container {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}
.tfm-tc-programs > .elementor-widget-loop-grid,
.tfm-tc-programs > .e-con-inner > .elementor-widget-loop-grid {
  grid-column: 1 / -1;
}

/* One card: container .tfm-tc-prog (HTML tag "a" + link, or a Loop Item) */
.tfm-tc-prog {
  overflow: hidden !important;
  gap: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid color-mix(in srgb, var(--area-accent, #cc3355) 20%, transparent) !important;
  text-decoration: none !important;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tfm-tc-prog:hover {
  border-color: var(--area-accent, #cc3355) !important;
  transform: translateY(-2px);
}
.tfm-tc-prog:focus-visible {
  outline: 2px solid var(--area-accent-soft, #e06080);
  outline-offset: 3px;
}
/* Image widget .tfm-tc-prog-img: fixed 16:9, cropped */
.tfm-tc-prog-img {
  width: 100% !important;
  margin: 0 !important;
}
.tfm-tc-prog-img img {
  display: block;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0 !important;
}
/* Heading widget: program name */
.tfm-tc-prog-title,
.tfm-tc-prog-title * {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--ink, #f6f1ea) !important;
}
/* Tags: text-editor .tfm-tc-tags, one tag per line (Shift+Enter).
   The JS splits lines into pills. */
.tfm-tc-tags p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 !important;
}
.tfm-tc-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--area-accent, #cc3355) 30%, transparent);
  font-family: 'Jost', sans-serif !important;
  font-size: 0.6rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
}

/* ============================================================
   10. EXIT — Button widget .tfm-tc-exit (small, at the very bottom)
   plus optional text-editor .tfm-tc-exit-note below it
   ============================================================ */

.tfm-tc-exit .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 6px;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--muted, #b6afc7) !important;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease !important;
}
.tfm-tc-exit .elementor-button * {
  color: inherit !important;
  fill: currentColor !important;
}
.tfm-tc-exit .elementor-button:hover,
.tfm-tc-exit .elementor-button:focus-visible {
  opacity: 1;
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-exit .elementor-button:focus-visible {
  outline: 2px solid var(--muted, #b6afc7) !important;
  outline-offset: 3px;
}
.tfm-tc-exit-note,
.tfm-tc-exit-note * {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 0.95rem !important;
  color: var(--muted, #b6afc7) !important;
  text-align: center !important;
}
.tfm-tc-exit-note {
  opacity: 0.55;
}

/* ============================================================
   11. ENLARGED BROADCAST (dialog, built by the JS)
   ============================================================ */

.tfm-tc-tv {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 1px solid var(--area-accent, #cc3355);
  border-radius: 14px;
  background: #050304;
  color: var(--ink, #f6f1ea);
  box-shadow: 0 0 80px -10px var(--area-accent-glow, rgba(204, 51, 85, 0.4));
}
.tfm-tc-tv::backdrop {
  background: rgba(4, 2, 3, 0.86);
  backdrop-filter: blur(4px);
}
.tfm-tc-tv .tfm-tc-screen {
  aspect-ratio: 16 / 9;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: default;
}
.tfm-tc-tv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
}
.tfm-tc-tv-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
}
.tfm-tc-tv-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tfm-tc-tv-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--area-accent-soft, #e06080);
}
.tfm-tc-tv-link:hover {
  color: var(--ink, #f6f1ea);
}
/* the theme styles <button> globally, hence !important */
.tfm-tc-tv-close {
  min-height: 40px !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: none !important;
  color: var(--ink, #f6f1ea) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  cursor: pointer;
}
.tfm-tc-tv-close:hover {
  border-color: var(--area-accent, #cc3355) !important;
}
.tfm-tc-tv-link:focus-visible,
.tfm-tc-tv-close:focus-visible {
  outline: 2px solid var(--area-accent-soft, #e06080) !important;
  outline-offset: 3px;
}

/* ============================================================
   12. LOGGED-IN / LOGGED-OUT VISIBILITY
   WordPress puts body.logged-in on the page for signed-in users.
   .tfm-tc-member = only for signed-in users,
   .tfm-tc-guest  = only for visitors.
   (Elementor Pro "Display Conditions" do the same server-side and
   can be used instead.) The editor always shows both.
   ============================================================ */

body.logged-in:not(.elementor-editor-active) .tfm-tc-guest,
body:not(.logged-in):not(.elementor-editor-active) .tfm-tc-member {
  display: none !important;
}

/* ============================================================
   14. ON-AIR STRIP — container .tfm-tc-onair (layout "G")
   Slim bar that overlaps the bottom edge of the hero: small live
   screen (.tfm-tv-mini, built by tfm-training-tv.js), info column
   .tfm-tc-onair-info (meta row .tfm-tc-onair-meta, title, progress)
   and the "Tune in" button.
   ============================================================ */

.e-con.tfm-tc-onair {
  position: relative;
  z-index: 4;
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px !important;
  width: 100%;
  max-width: 980px;
  margin: -64px auto 0 !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: rgba(12, 6, 10, 0.88) !important;
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--area-accent, #cc3355) 26%, transparent) !important;
  box-shadow: 0 16px 40px -20px #000000, 0 0 40px -24px var(--area-accent-glow, rgba(204, 51, 85, 0.4)) !important;
}
.tfm-tc-onair > .tfm-tv-mini {
  width: 100% !important;
  padding: 0 !important;
}
.tfm-tc-onair .tfm-tv-mini .tfm-tv-screen {
  border-radius: 7px;
}
.e-con.tfm-tc-onair-info {
  gap: 4px !important;
  padding: 0 !important;
  min-width: 0;
}
.e-con.tfm-tc-onair-meta {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 14px !important;
  padding: 0 !important;
}
.tfm-tc-onair-meta > .elementor-element {
  width: auto !important;
  flex: 0 0 auto !important;
}
.tfm-tc-onair-label,
.tfm-tc-onair-label * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
  margin: 0 !important;
}
.tfm-tc-onair-text,
.tfm-tc-onair-text * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.72rem !important;
  color: var(--muted, #b6afc7) !important;
  margin: 0 !important;
}
.tfm-tc-onair-title,
.tfm-tc-onair-title * {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--ink, #f6f1ea) !important;
  margin: 0 !important;
}
.tfm-tc-onair .tfm-tc-progress {
  margin-top: 6px !important;
}
.tfm-tc-onair > .tfm-tc-door {
  width: auto !important;
}
/* room in the hero for the strip that overlaps its bottom edge */
.e-con.tfm-tc-hero:has(+ .tfm-tc-inside .tfm-tc-onair) {
  padding-bottom: 96px !important;
}

/* ============================================================
   15. SUBJECT FILE — container .tfm-tc-file (layout "G")
   .tfm-tc-file-sum   = the closed line (number, program, next door)
   .tfm-tc-file-body  = the content that folds open; it holds one
                        container .tfm-tc-file-inner with three
                        columns .tfm-tc-file-col.
   The JS adds the "Open file" toggle and makes the whole closed line
   clickable. Visitors see .tfm-tc-file--guest (no body).
   ============================================================ */

.e-con.tfm-tc-file {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 58px auto 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 4px 14px 14px 14px !important;
  background: linear-gradient(180deg, #241318, #140a0e) !important;
  border: 1px solid color-mix(in srgb, var(--area-accent, #cc3355) 26%, transparent) !important;
  box-shadow: 0 30px 60px -30px #000000, 0 0 50px -26px var(--area-accent-glow, rgba(204, 51, 85, 0.4)) !important;
}
/* folder tab, inserted by the JS as a real element */
.tfm-tc-file-tab {
  position: absolute;
  top: -27px;
  left: -1px;
  padding: 6px 16px;
  border-radius: 8px 8px 0 0;
  background: #241318;
  border: 1px solid color-mix(in srgb, var(--area-accent, #cc3355) 26%, transparent);
  border-bottom: 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  color: var(--area-accent-soft, #e06080);
}

/* --- closed line --- */
.e-con.tfm-tc-file-sum {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px !important;
  padding: 16px 20px !important;
}
.tfm-tc-js .tfm-tc-file:not(.tfm-tc-file--guest) .tfm-tc-file-sum {
  cursor: pointer;
}
.tfm-tc-file--guest .tfm-tc-file-sum {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.tfm-tc-file-sum > .e-con,
.tfm-tc-file-col > .e-con {
  padding: 0 !important;
  gap: 2px !important;
  min-width: 0;
}
.tfm-tc-file-sum .elementor-element,
.tfm-tc-file-inner .elementor-element {
  width: 100% !important;
}
.tfm-tc-file-sum > .tfm-tc-door {
  width: auto !important;
}
.tfm-tc-file-label,
.tfm-tc-file-label * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.58rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  line-height: 1.5 !important;
  text-transform: uppercase !important;
  color: var(--muted, #b6afc7) !important;
  margin: 0 !important;
}
.tfm-tc-file-number,
.tfm-tc-file-number * {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2 !important;
  color: var(--ink, #f6f1ea) !important;
  white-space: nowrap;
}
.tfm-tc-file-day,
.tfm-tc-file-day * {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-file-prog .tfm-tc-progress {
  margin-top: 6px !important;
}
.tfm-tc-file .tfm-tc-guest-text,
.tfm-tc-file .tfm-tc-guest-text * {
  font-size: 1.05rem !important;
  margin: 0 !important;
}
/* countdown in the closed line: smaller digits */
.tfm-tc-file-count .elementor-countdown-digits,
.tfm-tc-file-count .elementor-countdown-item + .elementor-countdown-item::before {
  font-size: 1.15rem !important;
}
.tfm-tc-file-count .elementor-countdown-digits {
  font-weight: 400 !important;
  color: var(--area-accent-soft, #e06080) !important;
}
/* the next door is already open: no countdown (set by the JS) */
.tfm-tc-file-count.is-idle {
  display: none !important;
}

/* toggle, inserted by the JS */
.tfm-tc-file-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.64rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
  white-space: nowrap;
  cursor: pointer;
}
.tfm-tc-file-toggle:hover {
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-file-toggle:focus-visible {
  outline: 2px solid var(--area-accent-soft, #e06080) !important;
  outline-offset: 3px;
}
.tfm-tc-file-toggle i {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: transform 0.4s ease;
}
.tfm-tc-file-toggle i::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 44%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.tfm-tc-file.is-open .tfm-tc-file-toggle i {
  transform: rotate(180deg);
}

/* --- body: folds with the grid-rows trick (only with JS) --- */
.e-con.tfm-tc-file-body,
.e-con.tfm-tc-file-inner {
  padding: 0 !important;
}
.tfm-tc-js .e-con.tfm-tc-file-body {
  display: grid !important;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.tfm-tc-js .tfm-tc-file.is-open .e-con.tfm-tc-file-body {
  grid-template-rows: 1fr;
}
.tfm-tc-js .e-con.tfm-tc-file-inner {
  min-height: 0;
  overflow: hidden !important;
}
body.elementor-editor-active .e-con.tfm-tc-file-body {
  display: flex !important;
}
.e-con.tfm-tc-file-inner {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
}
.tfm-tc-file-inner > .e-con {
  width: 100% !important;
}
.e-con.tfm-tc-file-col {
  gap: 0 !important;
  padding: 18px 20px !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.1) !important;
}
.e-con.tfm-tc-file-col + .e-con.tfm-tc-file-col {
  border-left: 1px dashed rgba(255, 255, 255, 0.08) !important;
}
.tfm-tc-file-h,
.tfm-tc-file-h * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.58rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--area-accent-soft, #e06080) !important;
  margin: 0 0 6px !important;
}
.e-con.tfm-tc-file-row {
  padding: 8px 0 !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07) !important;
}
.e-con.tfm-tc-file-row:last-child {
  border-bottom: 0 !important;
}
.tfm-tc-file-value,
.tfm-tc-file-value * {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.1rem !important;
  line-height: 1.3 !important;
  color: var(--ink, #f6f1ea) !important;
  margin: 0 !important;
}
.tfm-tc-file-obs,
.tfm-tc-file-obs * {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 1.05rem !important;
  line-height: 1.45 !important;
  color: var(--body-text, #e4ddf0) !important;
}
.tfm-tc-file-obs {
  margin-bottom: 16px !important;
}
.tfm-tc-file-obs p {
  margin: 0 !important;
}
.tfm-tc-file .tfm-tc-streak {
  padding: 0 !important;
  border-top: 0 !important;
}
.tfm-tc-file .tfm-tc-streak .elementor-element {
  width: auto !important;
}
/* "Your next door" column as a highlighted box */
.e-con.tfm-tc-file-door {
  gap: 4px !important;
}
.tfm-tc-file-door > .elementor-element:first-child ~ .elementor-element {
  position: relative;
}
.tfm-tc-file-door-title,
.tfm-tc-file-door-title * {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--ink, #f6f1ea) !important;
}
.tfm-tc-file-door .tfm-tc-door {
  margin-top: 14px !important;
}
.tfm-tc-file-door .tfm-tc-door .elementor-button {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   16. WINGS AS A LIST — layout "G"
   .tfm-tc-wings (column) holds one .tfm-tc-wing per section:
   .tfm-tc-wing-head  row: name (roof + title), info (count, text),
                      "Enter" button; the whole row opens the wing
   .tfm-tc-programs   program cards, open below the head
   "{n}" in .tfm-tc-wing-count is replaced by the number of cards;
   the JS adds one small progress mark per program to the info.
   ============================================================ */

.e-con.tfm-tc-wings {
  gap: 12px !important;
  padding: 0 !important;
}
.tfm-tc-wings > .tfm-tc-wing {
  width: 100% !important;
  border-radius: 12px !important;
}
.e-con.tfm-tc-wing-head {
  display: grid !important;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px !important;
  padding: 14px 20px !important;
}
.tfm-tc-js .tfm-tc-wing:not(.is-locked) .tfm-tc-wing-head {
  cursor: pointer;
}
.tfm-tc-wing-head > .e-con {
  padding: 0 !important;
  gap: 2px !important;
  min-width: 0;
}
.tfm-tc-wing-head .elementor-element {
  width: 100% !important;
}
.tfm-tc-wing-head > .tfm-tc-enter {
  width: auto !important;
  margin: 0 !important;
}
/* roof becomes a small eyebrow inside the head */
.tfm-tc-wing-head .tfm-tc-roof .elementor-heading-title {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.tfm-tc-wing-head .tfm-tc-roof,
.tfm-tc-wing-head .tfm-tc-roof * {
  font-size: 0.6rem !important;
  letter-spacing: 0.22em !important;
}
.tfm-tc-wing-head .tfm-tc-wing-title,
.tfm-tc-wing-head .tfm-tc-wing-title * {
  font-size: 1.4rem !important;
}
.tfm-tc-wing-head .tfm-tc-wing-text,
.tfm-tc-wing-head .tfm-tc-wing-text * {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.84rem !important;
  line-height: 1.5 !important;
  color: var(--muted, #b6afc7) !important;
}
.tfm-tc-wing-mini {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.tfm-tc-wing-mini i {
  width: 34px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.tfm-tc-wing-mini i.is-on {
  background: var(--area-accent-soft, #e06080);
  box-shadow: 0 0 6px var(--area-accent-glow, rgba(204, 51, 85, 0.4));
}
.tfm-tc-wing-mini i.is-done {
  background: color-mix(in srgb, var(--area-accent-soft, #e06080) 55%, transparent);
}
.tfm-tc-wings .tfm-tc-programs {
  padding: 0 20px 20px !important;
}
.tfm-tc-wing.is-locked .tfm-tc-wing-head .tfm-tc-roof .elementor-heading-title {
  border: 0;
}

/* program card: text part below the picture */
.e-con.tfm-tc-prog-body {
  gap: 6px !important;
  padding: 12px 14px 14px !important;
}
.tfm-tc-prog-body .tfm-tc-meta {
  padding: 0 !important;
}

/* ============================================================
   13. RESPONSIVE + REDUCED MOTION
   ============================================================ */

@media (max-width: 1024px) {
  .tfm-tc-monitors.e-con-full,
  .tfm-tc-monitors.e-con-boxed > .e-con-inner {
    grid-template-columns: 1fr 1fr !important;
  }
  .tfm-tc-monitor--live {
    grid-column: 1 / -1;
  }
  .tfm-tc-programs.e-con-full,
  .tfm-tc-programs.e-con-boxed > .e-con-inner,
  .tfm-tc-programs .elementor-loop-container {
    grid-template-columns: 1fr 1fr !important;
  }
  .e-con.tfm-tc-file-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .e-con.tfm-tc-file-col.tfm-tc-file-door {
    grid-column: 1 / -1;
    border-left: 0 !important;
  }
}

@media (max-width: 767px) {
  /* "Tune in", "Open your file" and the exit link at the bottom of the
     program and step pages: 44px tap areas on phones. */
  .tfm-tc-link .elementor-button {
    padding: 14px 0;
  }
  .tfm-tc-exit .elementor-button {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .tfm-tc-monitors.e-con-full,
  .tfm-tc-monitors.e-con-boxed > .e-con-inner,
  .tfm-tc-live.e-con-full,
  .tfm-tc-live.e-con-boxed > .e-con-inner,
  .tfm-tc-programs.e-con-full,
  .tfm-tc-programs.e-con-boxed > .e-con-inner,
  .tfm-tc-programs .elementor-loop-container {
    grid-template-columns: 1fr !important;
  }

  /* on-air strip: screen + info, button on its own line */
  .e-con.tfm-tc-onair {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px 14px !important;
    margin-top: -48px !important;
  }
  .tfm-tc-onair > .tfm-tc-door {
    grid-column: 1 / -1;
    width: 100% !important;
  }
  .tfm-tc-onair > .tfm-tc-door .elementor-button {
    width: 100%;
    justify-content: center;
  }
  .tfm-tc-onair-title,
  .tfm-tc-onair-title * {
    font-size: 1.1rem !important;
  }

  /* file: number + toggle, then program, then next door */
  .e-con.tfm-tc-file {
    margin-top: 50px !important;
  }
  .e-con.tfm-tc-file-sum,
  .tfm-tc-file--guest .e-con.tfm-tc-file-sum {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px !important;
    padding: 14px 16px !important;
  }
  .tfm-tc-file-sum > .tfm-tc-file-prog {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .tfm-tc-file-sum > .tfm-tc-file-next {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .tfm-tc-file-sum > .tfm-tc-file-toggle {
    grid-column: 2;
    grid-row: 1;
  }
  .tfm-tc-file-toggle span {
    display: none;
  }
  .tfm-tc-file--guest .tfm-tc-file-sum > .tfm-tc-door {
    grid-column: 1 / -1;
    width: 100% !important;
  }
  .tfm-tc-file--guest .tfm-tc-file-sum > .tfm-tc-door .elementor-button {
    width: 100%;
    justify-content: center;
  }
  .e-con.tfm-tc-file-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .e-con.tfm-tc-file-col {
    padding: 14px 16px !important;
  }
  .e-con.tfm-tc-file-col + .e-con.tfm-tc-file-col {
    border-left: 0 !important;
  }

  /* wings: name + Enter, info below */
  .e-con.tfm-tc-wing-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px !important;
    padding: 14px 16px !important;
  }
  .tfm-tc-wing-head > .tfm-tc-wing-info {
    grid-column: 1;
    grid-row: 2;
  }
  .tfm-tc-wing-head > .tfm-tc-enter {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .tfm-tc-wings .tfm-tc-programs {
    padding: 0 16px 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tfm-tc-atmo-breathe,
  .tfm-tc-atmo-star,
  .tfm-tc-mote,
  .tfm-tc-screen-spiral,
  .tfm-tc-screen-flicker,
  .tfm-tc-live-badge::before,
  .tfm-tc-wing.is-open .tfm-tc-programs {
    animation: none !important;
  }
  .tfm-tc-mote {
    display: none;
  }
  .tfm-tc-js .e-con.tfm-tc-file-body,
  .tfm-tc-file-toggle i {
    transition: none !important;
  }
  .tfm-tc-threshold-text,
  .tfm-tc-seam::before,
  .tfm-tc-seam::after,
  .tfm-tc-door .elementor-button::before {
    transition: none !important;
  }
}
