:root {
  --brand-live: #961a32;
  --brand-homework: #bebebe;
  --bg: #f7f7f7;
  --text: #1d1d1f;
  --muted: #666666;
  --line: #e6e6eb;
  --hour-height: 60px;
  --hours-count: 14;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 22, 26, 0.12);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  padding: 48px 6vw 24px;
  background: var(--bg);
}

.site-header__content {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.header-top__text {
  flex: 1 1 300px;
}

/* Circular ghost button in details card */
.details-cta {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--brand-live);
  border-radius: 50%;
  background: rgba(150, 26, 50, 0.04);
  color: var(--brand-live);
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(150, 26, 50, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
  animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(150, 26, 50, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(150, 26, 50, 0.25), 0 3px 6px rgba(0, 0, 0, 0.12);
  }
}

.details-cta svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.details-cta__text {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
  pointer-events: none;
  color: inherit;
}

.details-cta:hover {
  width: 140px;
  padding: 0 18px 0 14px;
  border-radius: 24px;
  background: var(--brand-live);
  color: #fff;
  border-color: var(--brand-live);
  box-shadow: 0 8px 20px rgba(150, 26, 50, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
  animation: none; /* Stop pulse on hover */
}

.details-cta:hover .details-cta__text {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
}

.details-cta:hover svg {
  transform: translateX(-2px);
  color: #fff;
}

.details-cta:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(150, 26, 50, 0.25), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.details-cta:focus-visible {
  outline: 2px solid rgba(150, 26, 50, 0.5);
  outline-offset: 2px;
}

/* Show text by default on mobile (no hover state) */
@media (max-width: 1100px) {
  .details-cta {
    width: auto;
    padding: 0 18px 0 14px;
    border-radius: 24px;
    background: var(--brand-live);
    color: #fff;
    border-color: var(--brand-live);
    animation: none; /* No pulse on mobile */
  }
  
  .details-cta__text {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    color: #fff;
  }
  
  .details-cta svg {
    color: #fff;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--brand-live);
  margin-bottom: 8px;
  font-size: 1rem;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.0rem);
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.week-label {
  font-size: 0.75em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.legend__swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.legend__swatch--live {
  background-color: var(--brand-live);
}

.legend__swatch--homework {
  background-color: var(--brand-homework);
}

.event-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.filter-pill {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  border: none;
  background: transparent;
  transition: opacity 0.2s ease;
  user-select: none;
}

/* Toggle switch */
.filter-pill__checkbox {
  order: 1;
  z-index: 2;
}

/* Label capsule - extends from toggle */
.filter-pill__label {
  order: 2;
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 12px 0 8px;
  border-radius: 0 12px 12px 0;
  transition: all 0.3s ease;
  margin-left: -6px;
  width: 120px;
}

/* Live sessions - red capsule, white text */
.filter-pill--live .filter-pill__label {
  background: var(--brand-live);
  color: #fff;
}

/* Assignments - gray capsule, black text */
.filter-pill--homework .filter-pill__label {
  background: var(--brand-homework);
  color: #191919;
}

/* Green indicator light at the end */
.filter-pill::after {
  content: "";
  order: 3;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  margin-left: 8px;
  align-self: center;
}

/* Show green light when checked */
.filter-pill:has(input:checked)::after {
  opacity: 1;
}

/* Show green light when checked */
.filter-pill:has(input:checked)::after {
  opacity: 1;
}

.filter-pill:hover {
  opacity: 0.85;
}

.filter-pill:focus-within {
  outline: none;
}

.filter-pill.is-off {
  opacity: 0.4;
}

/* Dim capsule background when off */
.filter-pill.is-off .filter-pill__label {
  opacity: 0.6;
}

.filter-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Toggle Switch Track */
.filter-pill__checkbox {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* Toggle Switch Circle */
.filter-pill__checkbox::after {
  content: "";
  position: absolute;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Both filters - neutral dark gray when ON */
.filter-pill input:checked + .filter-pill__checkbox {
  background: #475569;
  border-color: #475569;
}

/* Thumb turns white when ON */
.filter-pill input:checked + .filter-pill__checkbox::after {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  left: 20px;
}

.filter-pill__label {
  display: flex;
  align-items: center;
  color: var(--text);
}

.filter-pill__title {
  font-size: 0.9rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: inherit;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 0 6vw 60px;
}

@media (min-width: 1200px) {
  .layout {
    grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
    align-items: start;
  }
}

.calendar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #f1f1f3;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.calendar-header {
  display: grid;
  grid-template-columns: 100px repeat(7, minmax(0, 1fr));
  padding: 18px 24px 12px;
  background-color: #fafafa;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.calendar-header__spacer {
  min-height: 1px;
}

.day-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.day-label span {
  font-size: 0.85rem;
  text-transform: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: normal;
}

/* Day name abbreviation logic: Full names on wide screens, abbreviations on medium screens */
.day-label__abbr {
  display: none !important; /* Hidden by default */
}

.day-label__full {
  display: block !important; /* Shown by default */
}

/* Medium screens (900px - 1199px): Use abbreviations to prevent text running together */
@media (max-width: 1199px) and (min-width: 900px) {
  .day-label__full {
    display: none !important;
  }
  
  .day-label__abbr {
    display: block !important;
  }
}

/* Smaller screens (below 900px but before mobile switcher): Also use abbreviations */
@media (max-width: 899px) and (min-width: 768px) {
  .day-label__full {
    display: none !important;
  }
  
  .day-label__abbr {
    display: block !important;
  }
}

.calendar-body {
  display: grid;
  grid-template-columns: 100px repeat(7, minmax(0, 1fr));
  position: relative;
}

.time-axis {
  display: flex;
  flex-direction: column;
  padding: 8px 12px 16px 16px;
  gap: 0;
}

.time-slot {
  height: var(--hour-height);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 6px;
}

.time-slot span {
  transform: translateY(-8px);
}

.day-column {
  min-height: calc(var(--hour-height) * var(--hours-count));
  border-left: 1px solid var(--line);
  position: relative;
  padding: 0 12px;
  background-image: linear-gradient(
    to bottom,
    transparent calc(var(--hour-height) - 1px),
    var(--line) calc(var(--hour-height) - 1px)
  );
  background-size: 100% var(--hour-height);
}

.day-column:first-of-type {
  border-left: none;
}

.calendar-event {
  position: absolute;
  left: 5px;
  right: 5px;
  border-radius: 12px;
  color: #fff;
  padding: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, height 0.2s ease;
  outline: none;
  height: var(--event-height, auto);
  min-height: var(--event-height, auto);
  overflow: hidden;
  z-index: 1;
}

.calendar-event:focus-visible {
  box-shadow: 0 0 0 3px rgba(150, 26, 50, 0.4),
    0 25px 70px rgba(15, 23, 42, 0.18);
}

.calendar-event:hover:not(.is-active) {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.calendar-event.is-expanded {
  height: auto;
  min-height: var(--event-height, auto);
  z-index: 5;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
  overflow: visible;
}

.calendar-event--live {
  background: var(--brand-live);
}

.calendar-event--homework {
  background: var(--brand-homework);
  color: #191919;
}

.calendar-event h3 {
  margin: 0;
  font-size: 0.81rem;
  font-weight: 500;
  line-height: 1.22;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  min-height: 0;
  flex: 1;
}

.calendar-event.is-expanded h3 {
  line-clamp: unset;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.calendar-event__time {
  font-weight: 300;
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 1px;
}

.calendar-event.is-compact:not(.is-expanded) .calendar-event__time {
  display: none;
}

.calendar-event.is-hidden {
  display: none;
}

.calendar-event.is-active {
  outline: 2px solid rgba(255, 255, 255, 0.7);
}

.event-details {
  position: sticky;
  top: 32px;
}

.details-card {
  position: relative;
  border: 1px solid #f1f1f3;
  border-radius: var(--radius);
  padding: 28px;
  padding-bottom: 80px; /* Extra space for the circular button */
  background-color: #fff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.details-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #191919;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px ridge #e0e0e0;
}

.details-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.details-time {
  margin: 0 0 8px;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--brand-live);
  display: block; /* Explicit default display state */
}

.details-time.is-hidden {
  display: none;
}

.details-description {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: pre-line;
}

.floating-details-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: none; /* Hidden by default, shown via JS */
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--brand-live);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(150, 26, 50, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
}

.floating-details-btn[aria-hidden="false"] {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: slideUpBounce 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpBounce {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-details-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(150, 26, 50, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-details-btn:active {
  transform: translateY(-1px);
}

.floating-details-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.floating-details-btn svg {
  width: 20px;
  height: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* Hide floating button on desktop where details panel is visible */
@media (min-width: 1200px) {
  .floating-details-btn {
    display: none !important;
  }
}

.site-footer {
  padding: 24px 6vw 48px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-note {
  margin: 6px 0 0;
  font-size: 0.85rem;
}

.footer-note code {
  background: #f6f6f9;
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .calendar-header {
    font-size: 0.8rem;
  }

  .calendar-event {
    padding: 10px 12px;
  }
}

@media (max-width: 720px) {
  .calendar-header,
  .calendar-body {
    grid-template-columns: 70px repeat(7, minmax(180px, 1fr));
  }

  .calendar {
    overflow-x: auto;
  }

  .calendar-body {
    overflow-x: auto;
  }

  .time-slot {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Embed Modal - Only shows when page is in iframe */
.embed-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 20px 20px;
}

.embed-modal[aria-hidden="false"] {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.embed-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.embed-modal__content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.embed-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.embed-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.embed-modal__close:focus-visible {
  outline: 2px solid var(--brand-live);
  outline-offset: 2px;
}

.embed-modal__content h2 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.3;
}

.embed-modal__content p {
  margin: 0 0 24px 0;
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

.embed-modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brand-live);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(150, 26, 50, 0.3);
}

.embed-modal__cta:hover {
  background: #7d1629;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(150, 26, 50, 0.4);
}

.embed-modal__cta:active {
  transform: translateY(0);
}

.embed-modal__cta:focus-visible {
  outline: 3px solid rgba(150, 26, 50, 0.5);
  outline-offset: 2px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .embed-modal__content {
    padding: 32px 24px;
  }
  
  .embed-modal__content h2 {
    font-size: 1.25rem;
  }
  
  .embed-modal__content p {
    font-size: 0.95rem;
  }
}

/* ============================================
   MOBILE DAY SWITCHER
   ============================================ */

/* Hide on desktop, show on mobile/tablet */
.day-switcher {
  display: block;
}

@media (min-width: 1200px) {
  .day-switcher {
    display: none;
  }
}

/* Hide main header date range on mobile */
.hide-on-mobile {
  display: inline;
}

@media (max-width: 767px) {
  .hide-on-mobile {
    display: none;
  }
}

/* ============================================
   DAY NAVIGATION BAR
   ============================================ */

.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  
  /* Sticky positioning with iOS safe area support */
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.day-nav__btn {
  /* Touch-friendly size */
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  
  /* Styling */
  border: 1.5px solid #d1d5db;
  border-radius: 50%;
  background: white;
  color: #475569;
  cursor: pointer;
  
  /* Flexbox centering for SVG */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Transitions */
  transition: all 0.2s ease;
}

.day-nav__btn:hover:not(:disabled) {
  background: var(--brand-live);
  border-color: var(--brand-live);
  color: white;
  transform: scale(1.05);
}

.day-nav__btn:active:not(:disabled) {
  transform: scale(0.95);
}

.day-nav__btn:disabled,
.day-nav__btn[aria-disabled="true"] {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.day-nav__btn:focus-visible {
  outline: 2px solid var(--brand-live);
  outline-offset: 2px;
}

.day-nav__current {
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  flex: 1;
  padding: 0 16px;
  color: #1e293b;
  
  /* Prevent text overflow on very narrow screens */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 400px) {
  .day-nav__current {
    font-size: 1rem;
    padding: 0 12px;
  }
  
  .day-nav__btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

/* ============================================
   VIEW TOGGLE PILLS
   ============================================ */

.view-toggle {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  justify-content: center;
  flex-wrap: wrap; /* Wrap on very narrow screens */
}

.view-toggle__pill {
  /* Touch-friendly size */
  padding: 10px 20px;
  min-height: 44px;
  
  /* Styling */
  border: 1.5px solid #d1d5db;
  border-radius: 22px;
  background: white;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  
  /* Transitions */
  transition: all 0.25s ease;
  
  /* Prevent text selection */
  user-select: none;
}

.view-toggle__pill:hover:not(.view-toggle__pill--active) {
  background: #f8f9fa;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.view-toggle__pill:active {
  transform: translateY(0);
}

.view-toggle__pill--active,
.view-toggle__pill[aria-checked="true"] {
  background: var(--brand-live);
  color: white;
  border-color: var(--brand-live);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.view-toggle__pill:focus-visible {
  outline: 2px solid var(--brand-live);
  outline-offset: 2px;
}

@media (max-width: 400px) {
  .view-toggle__pill {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* Hide 7-day option on mobile only (tablets can still use it) */
@media (max-width: 767px) {
  .view-toggle__pill[data-view="7"] {
    display: none;
  }
}

/* ============================================
   CALENDAR VIEW STATES
   ============================================ */

/* Base: All columns hidden by default when day switcher active */
.calendar.day-switcher-active .day-column,
.calendar.day-switcher-active .calendar-header > .day-label {
  display: none;
}

/* Show only visible columns */
.calendar.day-switcher-active .day-column.day-column--visible,
.calendar.day-switcher-active .calendar-header > .day-label.day-label--visible {
  display: block;
}

/* 1-Day View: Single column, full width */
@media (max-width: 1199px) {
  .calendar.view-1-day.day-switcher-active .calendar-header {
    grid-template-columns: 100px 1fr;
  }
  
  .calendar.view-1-day.day-switcher-active .calendar-body {
    grid-template-columns: 100px 1fr;
  }
}

/* 3-Day View: Three columns */
@media (max-width: 1199px) {
  .calendar.view-3-day.day-switcher-active .calendar-header {
    grid-template-columns: 80px repeat(3, minmax(0, 1fr));
  }
  
  .calendar.view-3-day.day-switcher-active .calendar-body {
    grid-template-columns: 80px repeat(3, minmax(0, 1fr));
  }
}

/* 7-Day View: Available on tablet (768-1199px), not on true mobile (<768px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .calendar.view-7-day.day-switcher-active {
    overflow-x: auto; /* Allow horizontal scroll if needed on smaller tablets */
  }
}

/* ============================================
   TRANSITIONS & ANIMATIONS
   ============================================ */

/* Smooth view transitions (respects prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .calendar-body,
  .calendar-header {
    transition: grid-template-columns 0.25s ease;
  }
  
  .day-column,
  .day-label {
    transition: opacity 0.2s ease;
  }
}

/* Reduced motion: Instant transitions */
@media (prefers-reduced-motion: reduce) {
  .calendar-body,
  .calendar-header,
  .day-column,
  .day-label {
    transition: none;
  }
}

