.home-page #court-schedule-title{font-weight:640}
.home-page .court-schedule-open{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:14px;padding:0 16px;border:1px solid #0875d1;border-radius:999px;background:#0875d1;color:#fff;font-size:12px;font-weight:650;line-height:1.2;text-decoration:none;box-shadow:0 2px 7px rgba(8,117,209,.16);transition:background .18s ease,transform .18s ease} /* taste-skill-ignore: preserve the existing Home opener outside this modal-only visual scope. */
.home-page .court-schedule-open:hover{background:#0568bc;border-color:#0568bc;transform:translateY(-1px)}
.home-page .court-schedule-open:focus-visible,.home-page .court-schedule-close:focus-visible,.home-page .court-source-link:focus-visible,.home-page .court-day-picker button:focus-visible,.home-page .court-week-toggle:focus-visible{outline:3px solid #0875d1;outline-offset:3px}
.home-page .court-schedule-dialog{--court-badminton-fill:#d7e9f5;--court-badminton-ink:#244b6a;--court-badminton-badge:#416f91;--court-volleyball-fill:#f3e2b9;--court-volleyball-ink:#624914;--court-volleyball-badge:#8e6719;--court-basketball-fill:#d4e8db;--court-basketball-ink:#24543a;--court-basketball-badge:#3c7051;width:min(1260px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 18px);box-sizing:border-box;margin:auto;padding:15px 18px 13px;border:1px solid #d6dfe4;border-radius:16px;background:#fff;color:#273139;font-family:Inter,Arial,sans-serif;overflow:auto;overscroll-behavior:contain}
.home-page .court-schedule-dialog::backdrop{background:rgba(18,27,34,.56);backdrop-filter:blur(4px)}
body.court-schedule-active{overflow:hidden}
.home-page .court-schedule-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px;padding-bottom:8px;border-bottom:1px solid #d7e0e5} /* taste-skill-ignore: retain the owner's approved modal header-divider convention. */
.home-page .court-schedule-header h2{margin:0;font-size:21px;line-height:1.15;font-weight:650;letter-spacing:-.03em}
.home-page .court-schedule-close{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:1px solid #d3dde2;border-radius:6px;background:#fff;color:#3c4c55;font:21px/1 Arial,sans-serif;cursor:pointer}
/* A compact four-part toolbar keeps hours, sport key and PDF together. */
.home-page .court-hours{display:grid;grid-template-columns:max-content max-content minmax(0,1fr) max-content;align-items:center;gap:8px;width:100%;margin:0 0 9px}
.home-page .court-hours>p:not(.court-schedule-source){display:grid;align-content:center;gap:3px;width:max-content;min-height:55px;max-width:100%;box-sizing:border-box;margin:0;padding:7px 12px;border:1px solid #d7e1e6;border-radius:8px;background:#f5f8fa}
.home-page .court-hours strong{color:#52616c;font-size:11px;font-weight:600;line-height:1.2}
.home-page .court-hours-separator{display:none}
.home-page .court-hours-value{display:block;color:#273139;font-size:16px;font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.home-page .court-hours .court-legend{grid-column:3;justify-self:end;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:5px 7px;min-width:0;max-width:100%;margin:0;padding:0;list-style:none;color:#35434d;font-size:10.5px;line-height:1.2}
.home-page .court-legend li{display:inline-flex;align-items:center;gap:6px;min-height:30px;box-sizing:border-box;padding:4px 9px;border:1px solid rgba(50,65,75,.13);border-radius:999px;line-height:1;white-space:nowrap}
.home-page .court-sport-icon{display:block;flex:none;width:18px;height:18px;overflow:visible}
.home-page .court-legend .court-sport-icon{width:17px;height:17px}
.home-page .court-hours .court-schedule-source{grid-column:4;justify-self:end;display:flex;align-items:center;justify-content:flex-end;margin:0;padding:0;border:0;color:inherit}
.home-page .court-schedule-source a.court-source-link{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:30px;box-sizing:border-box;padding:0 12px;border:1px solid #0875d1;border-radius:999px;background:#0875d1;color:#fff;font-size:10.5px;font-weight:650;line-height:1;text-decoration:none;white-space:nowrap;transition:background .16s ease,border-color .16s ease}
.home-page .court-schedule-source a.court-source-link:hover{background:#075fa8;border-color:#075fa8}
.home-page .court-table-wrap{overflow-x:auto;border:1px solid #a5afb8;border-radius:8px;isolation:isolate;-webkit-overflow-scrolling:touch}
.home-page .court-timetable,.home-page .court-daily-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;color:#273139;font-size:12px;line-height:1.25}
.home-page .court-timetable{min-width:880px}
.home-page .court-timetable th,.home-page .court-timetable td,.home-page .court-daily-table th,.home-page .court-daily-table td{box-sizing:border-box;padding:6px 6px;border-right:1px solid #a5afb8;border-bottom:1px solid #a5afb8;text-align:center;vertical-align:middle}
.home-page .court-timetable tr>*:last-child,.home-page .court-daily-table tr>*:last-child{border-right:0}
.home-page .court-timetable tbody tr:last-child>*,.home-page .court-daily-table tbody tr:last-child>*{border-bottom:0}
.home-page .court-day-heading{font-size:11.5px;font-weight:650;line-height:1.2}
.home-page .court-timetable .court-time{position:sticky;left:0;z-index:2;width:101px;padding:6px 7px;background:#f4f6f7;text-align:left;font-size:12px;font-weight:650}
.home-page .court-time>span{display:block;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.2}
.home-page .court-time small{display:inline-block;margin-top:3px;padding:1px 5px;border:1px solid #b8c3ca;border-radius:3px;background:#fff;color:#465661;font-size:9.5px;font-weight:650;line-height:1.25}
.home-page .court-cell-title{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;margin:0;font-size:12px;font-weight:650;line-height:1.2}
.home-page .court-cell-title .court-sport-icon{width:18px;height:18px}
.home-page .court-cell-mode{display:inline-flex;align-items:center;justify-content:center;min-height:18px;box-sizing:border-box;margin-top:3px;padding:1px 6px;border:0;border-radius:4px;background:var(--court-badminton-badge);color:#fff;font-size:10px;font-weight:650;line-height:1.2;white-space:nowrap}
.home-page .court-badminton .court-cell-mode{background:var(--court-badminton-badge)}
.home-page .court-volleyball .court-cell-mode{background:var(--court-volleyball-badge)}
.home-page .court-basketball .court-cell-mode{background:var(--court-basketball-badge)}
.home-page .court-cell-mode:empty{display:none}
.home-page .court-schedule-dialog .court-badminton{background:var(--court-badminton-fill);color:var(--court-badminton-ink)}
.home-page .court-schedule-dialog .court-volleyball{background:var(--court-volleyball-fill);color:var(--court-volleyball-ink)}
.home-page .court-schedule-dialog .court-basketball{background:var(--court-basketball-fill);color:var(--court-basketball-ink)}
.home-page .court-timetable tbody .court-slot{height:44px}
.home-page .court-schedule-dialog .court-early-heading{display:flex;align-items:center;justify-content:center;gap:11px;flex-wrap:wrap;margin:0}
.home-page .court-schedule-dialog .court-early-access-slot .court-early-title{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;margin:0;font-size:12.5px;line-height:1.2}
.home-page .court-schedule-dialog .court-early-access-slot .court-early-title .court-sport-icon{width:18px;height:18px}
.home-page .court-schedule-dialog .court-early-heading .court-cell-mode{min-height:20px;margin:0;padding:2px 8px;font-size:10px}
.home-page .court-schedule-dialog .court-early-hours{display:block;margin:4px 0 0;font-size:11px;font-weight:700;line-height:1.25}
.home-page .court-schedule-dialog .court-early-door{display:inline-block;max-width:100%;box-sizing:border-box;margin:4px auto 0;padding:4px 8px;border-left:3px solid #748f80;border-radius:4px;background:#edf3ef;color:#304b3a;font-size:10.5px;font-weight:750;line-height:1.25}
.home-page .court-timetable .court-cleaning-slot,.home-page .court-daily-table .court-cleaning-slot{height:38px;background:#fffaf0;color:#4a4638}
.home-page .court-schedule-dialog .court-cleaning-title{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:5px;margin:0;white-space:nowrap;font-size:10.5px;font-weight:650;line-height:1.2}
.home-page .court-schedule-dialog .court-cleaning-time{display:inline-block;padding:2px 7px;border:1px solid #eadb9a;border-radius:4px;background:#fff0b5;color:#3c392b;font-size:10.5px;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}
.home-page .court-schedule-dialog .court-blank{background:#c4cbd1}
.home-page .court-schedule-dialog .court-schedule-notes{margin:9px 0 0;color:#3d4a54;font-size:12.5px;line-height:1.4}
.home-page .court-schedule-dialog .court-schedule-notes strong{color:#273139;font-weight:700}
.home-page .court-schedule-dialog .court-schedule-notes ul{margin:0;padding-left:17px}
.home-page .court-schedule-dialog .court-schedule-notes li+li{margin-top:3px}
.home-page .court-mobile-controls,.home-page .court-day-view{display:none}
.home-page .court-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){
 .home-page .court-schedule-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:13px 11px 12px;border-radius:14px}
 .home-page .court-schedule-header{margin-bottom:8px;padding-bottom:7px}
 .home-page .court-schedule-header h2{font-size:19px}
 .home-page .court-schedule-close{width:30px;height:30px}
 .home-page .court-hours{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:8px}
 .home-page .court-hours>p:not(.court-schedule-source){width:100%;min-width:0;min-height:51px;padding:6px 8px}
 .home-page .court-hours strong{font-size:10px}
 .home-page .court-hours-value{font-size:clamp(12px,3.5vw,14px)}
 .home-page .court-hours .court-legend{grid-column:1/-1;justify-self:start;justify-content:flex-start;gap:4px 5px}
 .home-page .court-legend li{min-height:27px;padding:3px 8px;font-size:10px}
 .home-page .court-legend .court-sport-icon{width:16px;height:16px}
 .home-page .court-hours .court-schedule-source{grid-column:1/-1;justify-self:stretch;width:100%}
 .home-page .court-schedule-source a.court-source-link{width:100%;min-height:36px;font-size:11px}
 .home-page .court-has-day-view .court-mobile-controls{display:block;margin-bottom:6px}
 .home-page .court-day-picker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
 .home-page .court-day-picker button{display:block;width:100%;min-height:34px;padding:0 2px;border:1px solid #bdc8cf;border-radius:5px;background:#fff;color:#45535d;font:600 10.5px/1.2 Inter,Arial,sans-serif;cursor:pointer}
 .home-page .court-day-picker button[aria-pressed="true"]{background:#0875d1;border-color:#0875d1;color:#fff}
 .home-page .court-week-toggle{display:inline-flex;align-items:center;min-height:26px;margin-top:3px;padding:0;border:0;background:none;color:#0875d1;font:650 10.5px/1.3 Inter,Arial,sans-serif;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
 .home-page .court-week-hint{display:none;margin:2px 0 5px;color:#61707b;font-size:10px;line-height:1.25}
 .home-page .court-has-day-view:not([data-court-view="week"]) .court-table-wrap{display:none}
 .home-page .court-has-day-view:not([data-court-view="week"]) .court-day-view{display:block;border:1px solid #a5afb8;border-radius:7px;overflow:hidden}
 .home-page .court-has-day-view[data-court-view="week"] .court-week-hint{display:block}
 .home-page .court-daily-table .court-time{width:82px;padding:5px 5px;font-size:11.5px}
 .home-page .court-daily-table .court-time small{font-size:8.5px;padding:1px 4px}
 .home-page .court-daily-table .court-slot{height:42px}
 .home-page .court-daily-table .court-cell-title{font-size:11.5px}
 .home-page .court-daily-table .court-cell-title .court-sport-icon{width:16px;height:16px}
 .home-page .court-daily-table .court-early-title{font-size:12px}
 .home-page .court-daily-table .court-early-title .court-sport-icon{width:17px;height:17px}
 .home-page .court-daily-table .court-early-heading{gap:9px}
 .home-page .court-daily-table .court-early-hours{font-size:10.5px}
 .home-page .court-daily-table .court-early-door{font-size:10px;padding:3px 6px}
 .home-page .court-daily-table .court-cleaning-title{gap:3px;font-size:10px}
 .home-page .court-daily-table .court-cleaning-time{padding:1px 4px;font-size:10px}
 .home-page .court-schedule-dialog .court-schedule-notes{font-size:11.5px;line-height:1.35}
}
@media(max-width:360px){
 .home-page .court-schedule-dialog{padding-inline:8px}
 .home-page .court-hours>p:not(.court-schedule-source){padding:5px 6px}
 .home-page .court-hours-value{font-size:11.5px}
 .home-page .court-legend li{padding:3px 6px;gap:4px;font-size:9.5px}
 .home-page .court-legend .court-sport-icon{width:15px;height:15px}
 .home-page .court-daily-table .court-time{width:76px}
 .home-page .court-daily-table .court-early-title .court-sport-icon{display:none}
 .home-page .court-daily-table .court-cleaning-title{font-size:8.5px}
 .home-page .court-daily-table .court-cleaning-time{font-size:8.5px;padding-inline:3px}
}
@media(prefers-reduced-motion:reduce){.home-page .court-schedule-open,.home-page .court-schedule-source a.court-source-link{transition:none}.home-page .court-schedule-open:hover{transform:none}}

.home-page .court-schedule-dialog:not([open]){display:none}
/* Match the Yoga modal's measured desktop width cap and 700px/90vh height rule. */
@media(min-width:901px){
 .home-page .court-schedule-dialog[open]{position:fixed;inset:0;display:flex;flex-direction:column;width:min(1440px,calc(100% - 32px));height:min(700px,90vh);max-height:min(700px,90vh);margin:auto}
 .home-page .court-timetable tbody .court-slot{height:56px}
 .home-page .court-timetable .court-cleaning-slot{height:42px}
 .home-page .court-legend li{padding:5px 9px 3px}
 .home-page .court-schedule-source a.court-source-link{padding:2px 12px 0}
 .home-page .court-hours{grid-template-columns:max-content max-content minmax(0,1fr) max-content;margin-top:10px;margin-bottom:15px}
 .home-page .court-schedule-dialog .court-schedule-notes{margin-top:20px}
}
.home-page .court-schedule-dialog .court-reservation-row .court-time{background:#f0e3b6;color:#3d371f}
.home-page .court-schedule-dialog .court-cleaning-row .court-time{background:#fffaf0;color:#4a4638}
.home-page .court-schedule-dialog .court-note-heading{color:#2d6789;font-weight:700;text-decoration:underline;text-decoration-color:#32769a;text-decoration-thickness:1px;text-underline-offset:2px}
.home-page .court-schedule-dialog .court-note-alert{color:#9d3434;font-weight:700}
.home-page .court-schedule-dialog .court-note-sport{display:inline-block;padding:2px 5px;border-radius:3px;background:#fff0b5;color:#3c392b;font-weight:700}
