/**
 * Styles for raw HTML/CSS widgets pasted directly into old rich-text body
 * fields (not real components), carried over as-is during Phase 4 import.
 * The "Schedule" and "Testing" pages use a CSS-only radio-button tab widget
 * authored this way in the original site; ported verbatim from the source
 * theme's apps/drupal/css/_drupal-styles.css so that markup keeps working.
 * Add to this file if other pages surface similar legacy embedded markup.
 */

.tab-label {
  padding: 0.75rem 1.5rem;
  color: #6b7280;
  background-color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  transition-property: all;
  transition-duration: 200ms;
  display: inline-block;
  cursor: pointer;
  border: none;
  margin-bottom: 0;
}

.tab-content-area {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: none;
  color: #121212;
}

input[type="radio"]:checked + .tab-label {
  color: #ed1c24;
  background-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.25);
}

#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3 {
  display: block;
}

#tab1:checked ~ .flex .tab-label[for="tab1"],
#tab2:checked ~ .flex .tab-label[for="tab2"] {
  color: #ed1c24;
  border-bottom-color: #ed1c24;
  font-weight: 700;
  background: #f8f9f9;
}

/* "Webinars" card titles (home page) keep the old Space DS ".headline"
   class in their migrated HTML -- that class was never a Tailwind utility
   (it's a Space DS-only name, e.g. "textXL-medium"), so it carries no
   styling at all in the new theme. The source site renders it in brand
   red; replicated directly since there is no equivalent utility class to
   safelist. */
.headline {
  color: var(--color-primary);
}

/* Webinar card byline ("Akhil Babu | date | time") keeps the old Space DS
   ".text-text-primaryDark" class in its migrated HTML -- same situation as
   ".headline": a Space DS-only name, never a Tailwind utility. */
.text-text-primaryDark {
  color: var(--color-primary);
}

.mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .mobile-only {
    display: block;
  }

  .tab-content-area,
  .tab-content-area .section {
    padding: 0;
  }
}
