:root{
  --t6-navy:#003982;
  --t6-yellow:#FFE627;
  --t6-ink:#0b1220;
  --t6-muted:#6b7280;
  --t6-border:rgba(0,0,0,.10);
  --t6-surface:#ffffff;
  --t6-surface2:#f7f9fc;
  --t6-shadow:0 14px 36px rgba(0,0,0,.08);
  --t6-event-text: #003982 !important;
}

/* Wrapper */
.t6cal{ max-width:1100px; margin:0 auto; }
.t6cal *{ box-sizing:border-box; }

/* Top bar */
.t6cal__topbar{
  background: linear-gradient(180deg, rgba(0,57,130,1) 0%, rgba(0,44,102,1) 100%);
  border-radius:18px;
  padding:14px;
  box-shadow: var(--t6-shadow);
  border:1px solid rgba(255,255,255,.08);
  margin:0 0 12px;
}

.t6cal__actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.t6cal__subscribe{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  background: var(--t6-yellow);
  color: #191a5c !important;
  font-weight:700;
  border:1px solid rgba(0,0,0,.12);
  transition: transform .06s ease, box-shadow .2s ease;
}
.t6cal__subscribe:hover{ transform: translateY(-1px); box-shadow:0 10px 24px rgba(0,0,0,.20); }

.t6cal__subscribe a{
 color: #191a5c !important;
}
/* Filters row */
.t6cal__filters{ margin-top:10px; }
.t6cal__filterRow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* Pills */
.t6cal__pills{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.t6calPill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
  font-weight:800;
  line-height:1;
}
.t6calPill:hover{ transform: translateY(-1px); box-shadow:0 10px 22px rgba(0,0,0,.20); }
.t6calPill__dot{
  width:10px; height:10px; border-radius:999px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.85);
}
.t6calPill--off{
  opacity:.55;
  background: rgba(255,255,255,.04);
}

/* All/None buttons */
.t6cal__bulk{ display:flex; gap:8px; }
.t6cal__btn{
  padding:9px 12px;
  border-radius:999px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.08);
  color:#fff;
  font-weight:800;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.t6cal__btn:hover{ transform: translateY(-1px); box-shadow:0 10px 22px rgba(0,0,0,.20); }
.t6cal__btn:active{ transform: translateY(0); box-shadow:none; }
.t6cal__btn--primary{
  background: var(--t6-yellow);
  color: var(--t6-ink);
  border-color: rgba(0,0,0,.12);
}

/* Calendar card */
.t6cal__card{
  background: var(--t6-surface);
  border:1px solid var(--t6-border);
  border-radius:18px;
  padding:12px;
  box-shadow: var(--t6-shadow);
}

/* FullCalendar: make it feel “Team6th” */
#t6-osmcal .fc{ font-size:14px; color: var(--t6-ink); }
#t6-osmcal .fc-toolbar-title{ font-size:18px; font-weight:900; color: var(--t6-ink); }

#t6-osmcal .fc .fc-scrollgrid,
#t6-osmcal .fc .fc-scrollgrid td,
#t6-osmcal .fc .fc-scrollgrid th{
  border-color: rgba(0,0,0,.08) !important;
}

#t6-osmcal .fc-button{
  border-radius:12px !important;
  border:1px solid rgba(0,0,0,.12) !important;
  background: var(--t6-surface2) !important;
  color: var(--t6-ink) !important;
  box-shadow:none !important;
  text-transform: capitalize;
  font-weight:800;
}
#t6-osmcal .fc-button:hover{
  box-shadow:0 10px 20px rgba(0,0,0,.10) !important;
  background:#fff !important;
}
#t6-osmcal .fc-button-primary:not(:disabled).fc-button-active{
  background: var(--t6-navy) !important;
  color:#fff !important;
  border-color: rgba(0,0,0,.12) !important;
}
#t6-osmcal .fc-today-button:disabled{ opacity:.55; }

/* Events — IMPORTANT: force text to use our computed colour */
#t6-osmcal .fc-event{
  border-radius:12px !important;
  border:0 !important;
  overflow:hidden;
}
#t6-osmcal .fc-daygrid-event{ padding:2px 6px !important; }
#t6-osmcal .fc-event .fc-event-main,
#t6-osmcal .fc-event .fc-event-title,
#t6-osmcal .fc-event .fc-event-time{
  color: var(--fc-event-text-color, #111) !important;
  font-weight:800;
}
#t6-osmcal .fc-event a{
  color: inherit !important;
  text-decoration: none !important;
}

/* Make day numbers a little clearer */
#t6-osmcal .fc-daygrid-day-number{ color: rgba(11,18,32,.65); font-weight:800; }

/* Modal */
.t6calModal{ position:fixed; inset:0; display:none; z-index:9999; }
.t6calModal.is-open{ display:block; }
.t6calModal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.t6calModal__panel{
  position:relative;
  margin:6vh auto;
  width:min(720px, calc(100% - 24px));
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  box-shadow:0 26px 80px rgba(0,0,0,.28);
  padding:16px;
}
.t6calModal__close{
  position:absolute; top:10px; right:12px;
  border:0; background:transparent;
  font-size:28px; line-height:1;
  cursor:pointer; opacity:.6;
}
.t6calModal__close:hover{ opacity:1; }
.t6calModal__title{ margin:0; font-size:20px; font-weight:1000; color: var(--t6-ink); }
.t6calModal__titleRow{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.t6calModal__chip{
  display:inline-flex; align-items:center;
  padding:6px 10px; border-radius:999px;
  font-size:12px; font-weight:900;
}
.t6calModal__meta{ margin-top:6px; color: rgba(11,18,32,.72); font-weight:700; }
.t6calModal__body{ margin-top:10px; display:grid; gap:10px; }
.t6calModal__line, .t6calModal__desc{
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,57,130,.06);
  color: var(--t6-ink);
  font-weight:700;
}
.t6calModal__desc{ white-space:pre-wrap; background: rgba(0,0,0,.03); }
.t6calModal__footer{
  margin-top:12px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

/* Mobile: make pills scroll horizontally instead of wrapping */
@media (max-width: 640px){
  .t6cal__pills{
    flex-wrap:nowrap;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .t6cal__pills::-webkit-scrollbar{ height:6px; }
  .t6cal__pills::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.18); border-radius:999px; }
}
/* === FORCE EVENT TEXT COLOUR (FullCalendar sometimes styles inner nodes) === */
#t6-osmcal .fc-event,
#t6-osmcal .fc-event *{
  color: #0b1220 !important;
}

/* Some FullCalendar builds use these wrappers */
#t6-osmcal .fc-event .fc-event-main-frame,
#t6-osmcal .fc-event .fc-event-main,
#t6-osmcal .fc-event .fc-event-title-container,
#t6-osmcal .fc-event .fc-event-title,
#t6-osmcal .fc-event .fc-event-time,
#t6-osmcal .fc-event a,
#t6-osmcal .fc-daygrid-event-harness a{
  color: #0b1220!important;
  text-decoration: none !important;
}

/* List view dot + text */
#t6-osmcal .fc-list-event .fc-list-event-title,
#t6-osmcal .fc-list-event .fc-list-event-time,
#t6-osmcal .fc-list-event a{
  color: #0b1220!important;
}
#t6-osmcal a { color:  #203050!important;
}
/* Centre subscribe button as primary action */
.t6cal__actions{
  justify-content: center;
}

.t6cal__subscribe{
  margin: 0 auto;
  font-size: 15px;
  padding: 12px 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
