@charset "UTF-8";

/* Schedule — brand-aligned calendar (loads after page-common.css) */

.schedule-card {
  overflow: visible;
}

.schedule-container {
  max-width: 100%;
  margin: 0;
  color: var(--page-text, #1e293b);
}

.schedule-top-bar {
  margin-bottom: 24px;
}

.schedule-main-title {
  font-size: clamp(20px, 3vw, 26px) !important;
  font-weight: 800 !important;
  color: var(--page-navy, #0B1E3F) !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.35 !important;
}

.schedule-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.btn-month-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8edf4;
  color: var(--page-navy, #0B1E3F) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-month-nav:hover {
  background: var(--page-orange, #FF6600);
  color: #fff !important;
  text-decoration: none !important;
}

.schedule-pc-view {
  display: block !important;
  width: 100%;
}

.schedule-modern-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 6px 6px !important;
  margin: 0;
  background: transparent !important;
  border: none !important;
}

.schedule-modern-table th {
  background-color: var(--page-navy, #0B1E3F) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 6px;
  text-align: center;
  border-radius: 6px;
  border: none !important;
  letter-spacing: 0.02em;
  vertical-align: middle;
  line-height: 1.3;
}

.schedule-modern-table th.col-cat { width: 9%; }
.schedule-modern-table th.col-group { width: 18.2%; }

.schedule-modern-table td {
  border: 1px solid #d8dee8 !important;
  border-radius: 6px;
  padding: 11px 8px;
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
  color: var(--page-text, #1e293b);
  background-color: #ffffff;
}

.schedule-modern-table td.td-date {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  line-height: 1.3;
}

.schedule-modern-table tr.row-active td.td-slot.slot-empty {
  color: #94a3b8;
}

.schedule-modern-table tr.row-empty td {
  background-color: #f1f4f8 !important;
  border-color: #d8dee8 !important;
  color: #94a3b8;
}

.schedule-modern-table tr.row-empty td.td-date {
  background-color: #f1f4f8 !important;
  color: var(--page-text, #1e293b);
}

.schedule-modern-table .sunday-text,
.sp-sunday {
  color: #dc2626 !important;
}

.schedule-modern-table .saturday-text,
.sp-saturday {
  color: #2563eb !important;
}

.schedule-sp-view {
  display: none !important;
  width: 100%;
}

.sp-day-card {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d8dee8;
}

.sp-day-header {
  background-color: #eef1f5;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--page-navy, #0B1E3F);
  border-bottom: 1px solid #d8dee8;
}

.sp-day-body {
  background-color: #ffffff;
  padding: 10px 14px;
}

.sp-event-item {
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: var(--page-text, #1e293b);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sp-event-item:last-child {
  border-bottom: none;
}

.sp-event-label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--page-muted, #64748b);
  font-size: 12px;
  min-width: 7.5em;
}

.sp-event-time {
  flex: 1;
}

.sp-day-empty {
  padding: 8px 14px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #94a3b8;
  background: #f8fafc;
  border-radius: 6px;
}

.no-schedule-box {
  text-align: center;
  color: var(--page-muted, #64748b);
  padding: 40px 16px;
  font-size: 15px;
}

.schedule-lead {
  margin: 0 0 4px;
  color: var(--page-muted, #64748b);
  font-size: 14px;
  line-height: 1.7;
}

.schedule-sync {
  margin: 0 0 20px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  overflow: hidden;
}

.schedule-sync__summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--page-navy, #0B1E3F);
  line-height: 1.5;
}

.schedule-sync__summary::-webkit-details-marker {
  display: none;
}

.schedule-sync__summary::after {
  content: "＋";
  float: right;
  font-weight: 800;
  color: #2563eb;
}

.schedule-sync[open] .schedule-sync__summary::after {
  content: "−";
}

.schedule-sync__body {
  padding: 0 16px 16px;
  color: var(--page-text, #1e293b);
  font-size: 14px;
  line-height: 1.8;
}

.page-shell .schedule-sync__body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--page-text, #1e293b);
}

.schedule-sync__steps {
  margin-bottom: 14px !important;
}

.schedule-sync__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-sync__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  color: #fff !important;
  background: var(--page-navy, #0B1E3F);
}

.schedule-sync__btn:hover {
  opacity: 0.92;
  text-decoration: none !important;
}

.schedule-sync__btn--low { background: #0EA5E9; }
.schedule-sync__btn--high { background: #008837; }
.schedule-sync__btn--junior { background: #2563EB; }
.schedule-sync__btn--highschool { background: #FF6600; }

.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.schedule-filter-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #fff;
  color: var(--page-navy, #0B1E3F);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.schedule-filter-btn:hover,
.schedule-filter-btn:focus {
  border-color: var(--page-navy, #0B1E3F);
  outline: none;
}

.schedule-filter-btn__short {
  display: none;
}

.schedule-filter-btn__full {
  display: inline;
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--page-muted, #64748b);
}

.schedule-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.schedule-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 12px;
}

.schedule-legend__swatch--low { background: #0EA5E9; }
.schedule-legend__swatch--high { background: #008837; }
.schedule-legend__swatch--junior { background: #2563EB; }
.schedule-legend__swatch--highschool { background: #FF6600; }

.schedule-fullcalendar {
  width: 100%;
  min-height: 480px;
}

.schedule-fullcalendar .fc {
  font-family: inherit;
}

.schedule-fullcalendar .fc .fc-toolbar {
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-fullcalendar .fc .fc-toolbar-title {
  font-size: 1.15em;
  font-weight: 800;
  color: var(--page-navy, #0B1E3F);
}

.schedule-fullcalendar .fc .fc-button {
  background: #e8edf4;
  border: none;
  color: var(--page-navy, #0B1E3F);
  font-weight: 700;
  text-transform: none;
  box-shadow: none;
  font-size: 13px;
}

.schedule-fullcalendar .fc .fc-prev-button,
.schedule-fullcalendar .fc .fc-next-button {
  font-size: 22px;
  line-height: 1;
  min-width: 36px;
  padding: 4px 10px;
}

.schedule-fullcalendar .fc .fc-button:hover {
  background: #d7dee8;
  color: var(--page-navy, #0B1E3F);
}

.schedule-fullcalendar .fc .fc-button-primary:not(:disabled).fc-button-active,
.schedule-fullcalendar .fc .fc-button-primary:not(:disabled):active {
  background: var(--page-navy, #0B1E3F);
  color: #fff;
}

.page-shell .schedule-fullcalendar .fc .fc-col-header-cell-cushion,
.page-shell .schedule-fullcalendar .fc .fc-daygrid-day-number,
.page-shell .schedule-fullcalendar .fc a.fc-daygrid-day-number,
.page-shell .schedule-fullcalendar .fc a.fc-col-header-cell-cushion {
  color: var(--page-navy, #0B1E3F);
  text-decoration: none;
}

.page-shell .schedule-fullcalendar .fc .is-saturday,
.page-shell .schedule-fullcalendar .fc .fc-day-sat,
.page-shell .schedule-fullcalendar .fc .fc-day-sat .fc-col-header-cell-cushion,
.page-shell .schedule-fullcalendar .fc .fc-day-sat .fc-daygrid-day-number,
.page-shell .schedule-fullcalendar .fc .fc-day-sat a,
.page-shell .schedule-fullcalendar .fc .is-saturday .fc-col-header-cell-cushion,
.page-shell .schedule-fullcalendar .fc .is-saturday .fc-daygrid-day-number,
.page-shell .schedule-fullcalendar .fc .is-saturday a,
.page-shell .schedule-fullcalendar .fc .is-saturday .fc-list-day-text,
.page-shell .schedule-fullcalendar .fc .is-saturday .fc-list-day-side-text {
  color: #2563eb !important;
}

.page-shell .schedule-fullcalendar .fc .is-sunday,
.page-shell .schedule-fullcalendar .fc .fc-day-sun,
.page-shell .schedule-fullcalendar .fc .fc-day-sun .fc-col-header-cell-cushion,
.page-shell .schedule-fullcalendar .fc .fc-day-sun .fc-daygrid-day-number,
.page-shell .schedule-fullcalendar .fc .fc-day-sun a,
.page-shell .schedule-fullcalendar .fc .is-sunday .fc-col-header-cell-cushion,
.page-shell .schedule-fullcalendar .fc .is-sunday .fc-daygrid-day-number,
.page-shell .schedule-fullcalendar .fc .is-sunday a,
.page-shell .schedule-fullcalendar .fc .is-sunday .fc-list-day-text,
.page-shell .schedule-fullcalendar .fc .is-sunday .fc-list-day-side-text {
  color: #dc2626 !important;
}

.page-shell .schedule-fullcalendar .fc td.fc-day-sat,
.page-shell .schedule-fullcalendar .fc td.is-saturday,
.page-shell .schedule-fullcalendar .fc .fc-daygrid-day.fc-day-sat,
.page-shell .schedule-fullcalendar .fc .fc-daygrid-day.is-saturday,
.page-shell .schedule-fullcalendar .fc .fc-timegrid-col.fc-day-sat,
.page-shell .schedule-fullcalendar .fc .fc-timegrid-col.is-saturday,
.page-shell .schedule-fullcalendar .fc .fc-day-sat .fc-daygrid-day-frame,
.page-shell .schedule-fullcalendar .fc .is-saturday .fc-daygrid-day-frame,
.page-shell .schedule-fullcalendar .fc .fc-col-header-cell.fc-day-sat,
.page-shell .schedule-fullcalendar .fc .fc-col-header-cell.is-saturday {
  background: #dbeafe !important;
  background-color: #dbeafe !important;
}

.page-shell .schedule-fullcalendar .fc td.fc-day-sun,
.page-shell .schedule-fullcalendar .fc td.is-sunday,
.page-shell .schedule-fullcalendar .fc .fc-daygrid-day.fc-day-sun,
.page-shell .schedule-fullcalendar .fc .fc-daygrid-day.is-sunday,
.page-shell .schedule-fullcalendar .fc .fc-timegrid-col.fc-day-sun,
.page-shell .schedule-fullcalendar .fc .fc-timegrid-col.is-sunday,
.page-shell .schedule-fullcalendar .fc .fc-day-sun .fc-daygrid-day-frame,
.page-shell .schedule-fullcalendar .fc .is-sunday .fc-daygrid-day-frame,
.page-shell .schedule-fullcalendar .fc .fc-col-header-cell.fc-day-sun,
.page-shell .schedule-fullcalendar .fc .fc-col-header-cell.is-sunday {
  background: #fee2e2 !important;
  background-color: #fee2e2 !important;
}

.page-shell .schedule-fullcalendar .fc .fc-list-day.fc-day-sat th,
.page-shell .schedule-fullcalendar .fc .fc-list-day.is-saturday th {
  background: #dbeafe !important;
}

.page-shell .schedule-fullcalendar .fc .fc-list-day.fc-day-sun th,
.page-shell .schedule-fullcalendar .fc .fc-list-day.is-sunday th {
  background: #fee2e2 !important;
}

.page-shell .schedule-fullcalendar .fc .fc-event,
.page-shell .schedule-fullcalendar .fc .fc-event-title,
.page-shell .schedule-fullcalendar .fc .fc-event-time,
.page-shell .schedule-fullcalendar .fc .fc-list-event-title,
.page-shell .schedule-fullcalendar .fc .rinkai-fc-ev,
.page-shell .schedule-fullcalendar .fc .rinkai-fc-ev__time,
.page-shell .schedule-fullcalendar .fc .rinkai-fc-ev__title {
  border: none;
  font-weight: 400 !important;
}

.page-shell .schedule-fullcalendar .fc .rinkai-fc-ev__title {
  display: block;
}

.page-shell .schedule-fullcalendar .fc .rinkai-fc-ev__cat {
  display: block;
  font-size: 0.92em;
  opacity: 0.9;
}

.page-shell .schedule-fullcalendar .fc .rinkai-fc-ev__place {
  display: none !important;
}

.page-shell .schedule-fullcalendar .fc .fc-daygrid-event,
.page-shell .schedule-fullcalendar .fc .fc-daygrid-block-event .fc-event-time,
.page-shell .schedule-fullcalendar .fc .fc-daygrid-block-event .fc-event-title,
.page-shell .schedule-fullcalendar .fc .fc-h-event .fc-event-title,
.page-shell .schedule-fullcalendar .fc .fc-h-event .fc-event-main,
.page-shell .schedule-fullcalendar .fc .fc-h-event .fc-event-main-frame {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.3;
}

.page-shell .schedule-fullcalendar .fc .fc-daygrid-event {
  padding: 2px 4px;
  align-items: flex-start;
}

.page-shell .schedule-fullcalendar .fc .fc-daygrid-event-harness {
  overflow: visible;
}

.page-shell .schedule-fullcalendar .fc .fc-daygrid-day-events {
  margin: 0;
}

.page-shell .schedule-fullcalendar.fc .fc-list-event-time,
.page-shell #schedule-fullcalendar .fc-list-event-time,
#schedule-fullcalendar .fc-list-event-time,
#schedule-fullcalendar td.fc-list-event-time {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  visibility: hidden !important;
}

.page-shell .schedule-fullcalendar .fc .fc-list-event-graphic {
  padding-right: 8px;
}

@media (max-width: 768px) {
  .schedule-card.page-card--pad {
    padding: 16px 12px 20px;
  }

  .schedule-top-bar {
    margin-bottom: 12px;
  }

  .schedule-lead {
    font-size: 13px;
    margin-bottom: 0;
  }

  .schedule-sync {
    margin-bottom: 14px;
  }

  .schedule-sync__summary {
    font-size: 13px;
    padding: 12px;
  }

  .schedule-sync__body {
    padding: 0 12px 12px;
  }

  .schedule-sync__btn {
    width: 100%;
    font-size: 12px;
  }

  .schedule-pc-view {
    display: none !important;
  }
  .schedule-sp-view {
    display: block !important;
  }
  .schedule-nav-row {
    flex-wrap: wrap;
  }

  .schedule-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
  }

  .schedule-filter-btn {
    flex: none;
    width: 100%;
    min-height: 36px;
    font-size: 12px;
    padding: 6px 4px;
  }

  .schedule-filter-btn__full {
    display: none;
  }

  .schedule-filter-btn__short {
    display: inline;
  }

  .schedule-legend {
    gap: 6px 10px;
    margin-bottom: 12px;
    font-size: 11px;
  }

  .schedule-fullcalendar {
    min-height: 0;
  }

  .page-shell .schedule-fullcalendar .fc .fc-toolbar.fc-header-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }

  .page-shell .schedule-fullcalendar .fc .fc-toolbar-chunk {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
  }

  .page-shell .schedule-fullcalendar .fc .fc-toolbar-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    line-height: 1.2 !important;
  }

  .page-shell .schedule-fullcalendar .fc .fc-button {
    font-size: 12px;
    padding: 4px 8px;
    min-height: 32px;
  }

  .page-shell .schedule-fullcalendar .fc .fc-prev-button,
  .page-shell .schedule-fullcalendar .fc .fc-next-button {
    font-size: 20px;
    min-width: 32px;
    padding: 2px 8px;
  }

  .page-shell .schedule-fullcalendar .fc .fc-footer-toolbar {
    margin-top: 10px;
  }

  .page-shell .schedule-fullcalendar .fc .fc-list {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
  }

  .page-shell .schedule-fullcalendar .fc .fc-list-event-title {
    font-size: 14px !important;
    font-weight: 400 !important;
    white-space: normal;
  }

  .page-shell .schedule-fullcalendar .fc .fc-list-day-cushion {
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .page-shell .schedule-fullcalendar .fc .fc-daygrid-event {
    font-size: 10px;
    padding: 2px 3px;
    white-space: normal !important;
  }

  .page-shell .schedule-fullcalendar .fc .fc-daygrid-day-number {
    font-size: 11px;
    padding: 2px;
  }
}
