/* ========== jsbf schedule (responsive tables) ========== */

.jsbf-schedule {
  --jsbf-gap: 1.25rem;
  --jsbf-accent: #0a6cff;
  --jsbf-border: #e5e7eb;
  --jsbf-muted: #6b7280;
  --jsbf-bg: #ffffff;
  --jsbf-row: #fafafa;
  color: #111827;
}

@media (prefers-color-scheme: dark) {
  .jsbf-schedule {
    --jsbf-accent: #6aa8ff;
    --jsbf-border: #374151;
    --jsbf-muted: #9ca3af;
    --jsbf-bg: #111827;
    --jsbf-row: #1f2937;
    color: #f3f4f6;
  }
}

.jsbf-schedule {
  background: var(--jsbf-bg);
  padding: 0.5rem;
  border-radius: 8px;
}

.jsbf-schedule__date {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--jsbf-accent);
  border-left: 4px solid var(--jsbf-accent);
  padding-left: 0.5rem;
}

.jsbf-schedule__game {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--jsbf-border);
  border-radius: 8px;
  background: var(--jsbf-row);
  margin-bottom: var(--jsbf-gap);
}

/* --- tables (shared) --- */
.jsbf-schedule table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.jsbf-schedule th,
.jsbf-schedule td {
  border: 1px solid var(--jsbf-border);
  padding: 0.5rem 0.6rem;
  vertical-align: middle;
}

.jsbf-schedule th {
  background: rgba(10,108,255,0.08);
  color: inherit;
  text-align: center;
  font-weight: 700;
}

.jsbf-schedule__meta th,
.jsbf-schedule__meta td {
  font-size: 0.95rem;
}

.jsbf-schedule__score th,
.jsbf-schedule__score td {
  text-align: center;
}

.jsbf-schedule__score td:first-child,
.jsbf-schedule__meta td:first-child {
  text-align: left;
  font-weight: 600;
}

/* 審判情報 */
.jsbf-schedule__refs {
  font-size: 0.9rem;
  color: var(--jsbf-muted);
  margin-top: 0.25rem;
}

/* 日程結果ページ日付部分 */
.month-area {
    display: inline-block;
    width: 10%;
    line-height: 22px;
    margin-right: 2%;
    vertical-align: top;
}
.month-big {
    font-size: 24px;
    font-weight: bold;
}
.month-big, .month-small {
    color: #A69258;
}

.month-small {
    font-size: 14px;
}

.calendar-month {
    display: inline-block;
    width: 89%;
}

.calendar-month li {
    display: inline-block;
    border-right: 1px solid #A69258;
    text-align: center;
}

li a, p a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    text-decoration-color: rgba(0, 0, 0, .3);
    text-decoration-thickness: 1px;
}



/* --- responsive --- */
@media (max-width: 768px) {
  .jsbf-schedule__game {
    padding: 0.75rem;
  }

  .jsbf-schedule th,
  .jsbf-schedule td {
    padding: 0.45rem 0.5rem;
    font-size: 0.92rem;
  }

  /* スコアの列を横スクロールに */
  .jsbf-schedule__score {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--jsbf-border);
  }

  .jsbf-schedule__score table,
  .jsbf-schedule__score {
    min-width: 560px; /* 1st~totalまでの列が潰れない幅 */
  }
}

.jsbf-schedule .error {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 0.5rem 0;
}

@media (prefers-color-scheme: dark) {
  .jsbf-schedule .error {
    color: #fecaca;
    background: #451919;
    border-color: #7f1d1d;
  }
}

.jsbf-schedule .empty {
  color: var(--jsbf-muted);
  font-style: italic;
  padding: 0.25rem 0;
}