/* The school noticeboard: clear times, quiet surfaces, room for the original. */
.clubs-view { margin-top: 32px; }
.clubs-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 8px 0 25px; border-bottom: 1px solid var(--line,#e4e8e1); }
.clubs-term { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3,#718176); }
.clubs-header h2 { font-size: clamp(24px,3vw,34px); line-height: 1.18; letter-spacing: -.04em; margin: 0; color: var(--ink,#203b34); }
.clubs-school { font-size: 12px; color: var(--ink-2,#52645c); margin: 9px 0 0; }
.clubs-source-actions { display: flex; gap: 8px; flex-shrink: 0; }
.clubs-controls { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; }
.clubs-search { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 480px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2,#d3dacf); border-radius: 12px; background: var(--surface,#fffefb); color: var(--ink-3,#718176); }
.clubs-search input { width: 100%; min-width: 0; padding: 10px 0; font: inherit; font-size: 13px; border: 0; background: transparent; outline: none; color: var(--ink,#203b34); }
.clubs-search input::placeholder { color: var(--ink-3,#718176); }
.clubs-search:focus-within { border-color: var(--accent,#2d5746); }
.clubs-grade-label { display: flex; align-items: center; gap: 8px; color: var(--ink-2,#52645c); font-size: 11px; font-weight: 700; }
.clubs-grade-label select { border: 1px solid var(--line-2,#d3dacf); border-radius: 11px; height: 44px; padding: 0 28px 0 12px; background: var(--surface,#fffefb); color: var(--ink,#203b34); font: inherit; font-size: 12px; cursor: pointer; }
.clubs-grade-label select:disabled { opacity: .5; cursor: default; }
.clubs-all-school { display: inline-flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--line-2,#d3dacf); border-radius: 11px; padding: 0 14px; font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--ink-2,#52645c); background: transparent; cursor: pointer; transition: background .18s,border-color .18s; }
.clubs-all-school[aria-pressed="true"] { background: var(--accent-soft,#e6efe3); border-color: var(--accent,#2d5746); color: var(--accent,#2d5746); }
.clubs-days-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.clubs-days { display: flex; gap: 6px; flex-wrap: wrap; }
.clubs-day { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-2,#52645c); background: transparent; cursor: pointer; transition: background .18s,color .18s; }
.clubs-day:hover { background: var(--surface-2,#f3f5f1); }
.clubs-day.on { background: var(--accent,#2d5746); color: var(--accent-ink,#fff); }
.clubs-day-count { font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 500; opacity: .7; }
.clubs-day.today:not(.on) { border-color: var(--line-2,#d3dacf); }
.clubs-today { white-space: nowrap; font-size: 11px; color: var(--ink-3,#718176); }
.clubs-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 12px; min-height: 23px; }
.clubs-results-head p { font-size: 12px; color: var(--ink-2,#52645c); margin: 0; }
.clubs-results-head b { color: var(--ink,#203b34); }
.clubs-reset { padding: 3px 0; font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2,#52645c); background: none; border: 0; cursor: pointer; }
.clubs-table-wrap { overflow-x: auto; border: 1px solid var(--line,#e4e8e1); border-radius: 15px; background: var(--surface,#fffefb); }
.clubs-table { width: 100%; min-width: 990px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.clubs-table th { text-align: left; vertical-align: middle; padding: 14px 10px; font-size: 10px; font-weight: 700; color: var(--ink-2,#52645c); background: var(--surface-2,#f3f5f1); border-bottom: 1px solid var(--line,#e4e8e1); }
.clubs-table th:first-child { width: 21%; padding-left: 18px; }
.clubs-table th.clubs-teacher-column { width: 13%; }
.clubs-table th.clubs-grade-column { width: 9%; }
.clubs-table th.clubs-room-column { width: 10%; }
.clubs-table th.clubs-day-column { width: 9.4%; }
.clubs-table.is-filtered { min-width: 700px; }
.clubs-table.is-filtered th:first-child { width: 29%; }
.clubs-table.is-filtered th.clubs-teacher-column { width: 18%; }
.clubs-table.is-filtered th.clubs-grade-column { width: 17%; }
.clubs-table.is-filtered th.clubs-day-column { width: 21%; }
.clubs-table.is-filtered th.clubs-room-column { width: 15%; }
.clubs-table td { padding: 15px 10px; font-size: 11px; vertical-align: top; line-height: 1.55; color: var(--ink-2,#52645c); border-bottom: 1px solid var(--line,#e4e8e1); }
.clubs-table td:first-child { padding-left: 18px; }
.clubs-table tr:last-child td { border-bottom: 0; }
.clubs-table tr:hover td { background: var(--surface-2,#f3f5f1); }
.clubs-table th.today { color: var(--accent,#2d5746); }
.clubs-table td.today { background: color-mix(in srgb,var(--accent-soft,#e6efe3) 28%,transparent); }
.clubs-row-number { display: block; margin: 0 0 3px; font-size: 9px; color: var(--ink-3,#718176); font-variant-numeric: tabular-nums; }
.clubs-name { margin: 0; color: var(--ink,#203b34); font-size: 12px; font-weight: 750; line-height: 1.45; }
.clubs-group { display: inline-block; font-size: 10px; color: var(--ink-3,#718176); margin-top: 3px; }
.clubs-time { display: block; color: var(--ink,#203b34); white-space: nowrap; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 0; }
.clubs-no-session { color: var(--ink-3,#718176); opacity: .4; }
.clubs-row-detail { margin-top: 6px; font-size: 10px; color: var(--ink-3,#718176); }
.clubs-row-detail summary { width: fit-content; cursor: pointer; font-size: 10px; list-style-position: inside; }
.clubs-row-detail p { margin: 5px 0 0; }
.clubs-cards { display: none; }
.clubs-card { padding: 18px; border: 1px solid var(--line,#e4e8e1); border-radius: 15px; background: var(--surface,#fffefb); animation: clubsArrival .28s ease-out both; animation-delay: calc(min(var(--club-order,0),8) * 24ms); }
.clubs-card-head { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; }
.clubs-card .clubs-name { font-size: 15px; }
.clubs-card-grade { flex-shrink: 0; max-width: 42%; font-size: 10px; line-height: 1.45; text-align: right; color: var(--ink-3,#718176); }
.clubs-card-meta { display: flex; gap: 15px; flex-wrap: wrap; font-size: 11px; color: var(--ink-2,#52645c); margin-top: 10px; }
.clubs-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.clubs-card-meta .i { width: 13px; height: 13px; color: var(--ink-3,#718176); }
.clubs-card-sessions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.clubs-session { display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 8px 10px; background: var(--surface-2,#f3f5f1); font-size: 11px; color: var(--ink-2,#52645c); }
.clubs-session strong { color: var(--ink,#203b34); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.clubs-session.today { background: var(--accent-soft,#e6efe3); }
.clubs-no-times { margin: 14px 0 0; font-size: 11px; color: var(--ink-3,#718176); }
.clubs-empty { padding: 42px 24px; text-align: center; background: var(--surface-2,#f3f5f1); border-radius: 15px; border: 1px dashed var(--line-2,#d3dacf); }
.clubs-empty h3 { margin: 0; font-size: 16px; color: var(--ink,#203b34); }
.clubs-empty p { margin: 9px 0 18px; font-size: 12px; color: var(--ink-2,#52645c); }
.clubs-grade-note { margin: 14px 0 0; font-size: 11px; color: var(--ink-3,#718176); }
.clubs-source-notes { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line,#e4e8e1); color: var(--ink-3,#718176); font-size: 11px; line-height: 1.8; }
.clubs-source-notes summary { cursor: pointer; width: fit-content; }
.clubs-source-notes ul { margin: 9px 0 0; padding-left: 17px; max-width: 850px; }
.clubs-photo-header { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.clubs-photo-header h3 { margin: 0; font-size: 17px; }
.clubs-photo-header button { flex-shrink: 0; }
.clubs-photo { display: block; width: 100%; height: auto; border-radius: 9px; }
.clubs-photo-caption { color: var(--ink-3,#718176); font-size: 11px; margin: 12px 0 0; }
@keyframes clubsArrival { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .clubs-table-wrap { display: none; }
  .clubs-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .clubs-today { display: none; }
  .clubs-controls { gap: 9px; }
}
@media (max-width: 600px) {
  .clubs-view { margin-top: 24px; }
  .clubs-header { align-items: flex-start; flex-direction: column; gap: 16px; padding-bottom: 21px; }
  .clubs-header h2 { font-size: 27px; }
  .clubs-source-actions .btn { padding: 8px 12px; font-size: 11px; }
  .clubs-controls { flex-wrap: wrap; margin-top: 20px; }
  .clubs-search { flex-basis: 100%; max-width: none; }
  .clubs-grade-label { flex: 1; }
  .clubs-grade-label select { flex: 1; }
  .clubs-days { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding: 3px 0; }
  .clubs-day { white-space: nowrap; padding: 8px 10px; }
  .clubs-day-count { display: none; }
  .clubs-results-head { margin-top: 15px; }
  .clubs-cards { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .clubs-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .clubs-card { animation: none; }
  .clubs-day,.clubs-all-school { transition: none; }
}
