/* Day-first agenda: one readable programme, with editorial subject portraits. */
.agenda-shell{padding-bottom:72px}
.agenda-shell .demo-notice{display:flex;align-items:center;gap:14px;border:0;border-inline-start:3px solid var(--accent);border-radius:0;background:transparent;padding:4px 18px;margin-bottom:30px}
.agenda-shell .demo-notice>svg{display:block;width:26px;height:26px;flex-shrink:0;color:var(--muted)}
.agenda-shell .demo-notice strong{font-size:.82rem;line-height:1.6}
.agenda-shell .demo-notice p{font-size:.8rem;line-height:1.7;margin-top:2px;color:var(--muted)}
.agenda-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:30px;align-items:start}
.agenda-shell .agenda-sidebar{display:block;width:auto;margin:0;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);position:sticky;top:102px}
.agenda-filters>summary{font-size:.95rem;font-weight:600;padding:20px 22px;line-height:1.5;list-style:none}
.agenda-filters>summary:after{content:'+';position:absolute;inset-inline-end:20px;font-family:Arial,sans-serif;font-weight:400}
.agenda-filters[open]>summary:after{content:'−'}
.agenda-filter-content{padding:0 20px 22px}
.agenda-filter-content .field{width:100%;margin-bottom:20px}
.agenda-filter-content .field label{font-size:.76rem;margin-bottom:7px;color:var(--muted)}
.agenda-filter-content .field select{font-size:.82rem;min-height:48px;border-radius:9px;background:var(--card)}
.agenda-shell .category-filter{display:grid;gap:5px;margin-bottom:24px}
.agenda-shell .category-filter button{width:100%;padding:10px 12px;text-align:start;border:0;border-inline-start:3px solid transparent;border-radius:7px;background:transparent;font-size:.82rem;min-height:44px;line-height:1.6}
.agenda-shell .category-filter button[aria-pressed="true"]{background:var(--card);color:var(--text);border-inline-start-color:var(--accent)}
.agenda-shell .category-filter button:hover{background:var(--card)}
.agenda-shell .view-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:10px;background:var(--line);margin:0 0 16px}
.agenda-shell .view-switch button{min-width:0;font-size:.72rem;min-height:41px;line-height:1.6;padding:6px 5px;border:0;border-radius:7px;background:transparent;color:var(--text)}
.agenda-shell .view-switch button[aria-pressed="true"]{background:var(--card);color:var(--text);box-shadow:0 2px 5px rgb(8 46 73 / .06)}
.agenda-shell .print-button{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;min-height:42px;font-size:.78rem;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text);padding:8px 12px}
.agenda-shell .print-button svg{width:18px;height:18px;stroke-width:1.6}
.agenda-main{min-width:0}
.agenda-days{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-bottom:17px}
.agenda-days button{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);padding:11px 4px 10px;text-align:center;transition:background-color .18s,color .18s,border-color .18s}
.agenda-days button>span{display:block;font-size:.91rem;font-weight:600;line-height:1.7}
.agenda-days small{display:block;font-size:.66rem;font-weight:400;line-height:1.5;color:var(--muted);margin-top:2px}
.agenda-days button[aria-pressed="true"]{background:var(--text);color:var(--page);border-color:var(--text);box-shadow:inset 0 -4px var(--accent)}
.agenda-days button[aria-pressed="true"] small{color:var(--page)}
.agenda-days button:disabled{opacity:.48;cursor:default}
.agenda-shell .schedule-count{font-size:.76rem;color:var(--muted);margin:0 0 15px;line-height:1.7}
.agenda-shell .schedule-board,.agenda-shell .schedule-board[data-view="week"]{display:grid;grid-template-columns:1fr;gap:24px}
.agenda-shell .schedule-day,.agenda-shell .schedule-board[data-view="week"] .schedule-day{display:block;min-height:0;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--card);overflow:hidden;box-shadow:0 5px 18px rgb(8 46 73 / .035)}
.agenda-day-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;background:var(--surface);padding:16px 24px;border-bottom:1px solid var(--line)}
.agenda-day-heading h2{font-size:1.22rem;line-height:1.4;margin:0}
.agenda-day-heading>span{font:400 .72rem/1.5 Ubuntu,sans-serif;letter-spacing:.02em;color:var(--muted)}
.agenda-shell .day-sessions{display:block}
.agenda-shell .agenda-entry{display:grid;grid-template-columns:130px minmax(0,1fr) 100px;gap:24px;align-items:center;min-width:0;padding:24px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;transition:background-color .2s}
.agenda-shell .agenda-entry:last-child{border-bottom:0}
.agenda-shell .agenda-entry:hover{background:var(--surface);box-shadow:none}
.agenda-art{width:130px;text-align:center;align-self:center;min-width:0}
.agenda-shell .subject-mark{display:block;width:124px;height:124px;padding:0;margin:auto;border:1px solid var(--line);border-radius:50%;overflow:hidden;background:var(--surface)}
.agenda-shell .subject-mark .subject-art{display:block;width:100%;height:100%;object-fit:cover;filter:none}
.agenda-art figcaption{font-size:.69rem;line-height:1.5;color:var(--muted);margin-top:7px}
.agenda-copy{min-width:0}
.agenda-shell .agenda-copy h3{font-size:1.6rem;line-height:1.4!important;letter-spacing:normal;margin:0}
.agenda-shell .session-level{font-size:.86rem;line-height:1.7;color:var(--muted);margin-top:8px;max-width:38ch}
.agenda-shell .session-demo{font-size:.66rem;font-weight:400;line-height:1.5;padding:3px 9px;border-radius:5px;background:var(--accent-soft);color:var(--text);margin-top:14px}
.agenda-time{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:13px 10px;border-radius:12px;background:var(--surface);text-align:center;white-space:nowrap}
.agenda-time time:first-child{font:600 1.5rem/1.25 Ubuntu,sans-serif;color:var(--text)}
.agenda-time>span{font-size:.7rem;line-height:1.3;color:var(--muted)}
.agenda-time time:last-child{font:400 .9rem/1.25 Ubuntu,sans-serif;color:var(--muted)}
.agenda-shell .availability-note{font-size:.79rem;margin-top:25px}
html[lang="ar"] .agenda-shell .agenda-filters>summary{font-size:1.25rem;font-weight:300}
html[lang="ar"] .agenda-filter-content .field label{font-size:1rem}
html[lang="ar"] .agenda-filter-content .field select{font-size:1rem}
html[lang="ar"] .agenda-shell .category-filter button{font-size:1.08rem}
html[lang="ar"] .agenda-shell .view-switch button{font-size:.97rem}
html[lang="ar"] .agenda-shell .print-button{font-size:1rem}
html[lang="ar"] .agenda-days button>span{font-size:1.12rem;font-weight:300}
html[lang="ar"] .agenda-days small{font-size:.85rem}
html[lang="ar"] .agenda-shell .schedule-count{font-size:.98rem}
html[lang="ar"] .agenda-day-heading h2{font-size:1.6rem}
html[lang="ar"] .agenda-shell .agenda-copy h3{font-size:1.8rem}
html[lang="ar"] .agenda-shell .session-level{font-size:1.1rem}
html[lang="ar"] .agenda-shell .session-demo{font-size:.87rem}
html[lang="ar"] .agenda-art figcaption{font-size:.9rem}
html[lang="ar"] .agenda-shell .demo-notice strong{font-size:1.08rem;font-weight:300}
html[lang="ar"] .agenda-shell .demo-notice p{font-size:1rem}
@media(max-width:1100px){.agenda-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}.agenda-shell .agenda-entry{grid-template-columns:104px minmax(0,1fr) 88px;gap:18px;padding:20px}.agenda-art{width:104px}.agenda-shell .subject-mark{width:102px;height:102px}.agenda-time time:first-child{font-size:1.3rem}}
@media(max-width:900px){.agenda-layout{grid-template-columns:1fr;gap:20px}.agenda-shell .agenda-sidebar{position:static;background:var(--surface)}.agenda-filters>summary{padding:14px 20px}.agenda-filter-content{display:grid;grid-template-columns:1fr 1fr;gap:15px 20px;padding:5px 20px 20px}.agenda-filter-content .field{margin:0}.agenda-shell .category-filter{margin:0}.agenda-shell .view-switch{margin:0;align-self:center}.agenda-shell .print-button{align-self:center}.agenda-shell .demo-notice{margin-bottom:22px}.agenda-days button>span{font-size:.85rem}.agenda-days small{font-size:.66rem}}
@media(max-width:600px){.agenda-layout{gap:18px}.agenda-days{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:90px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:7px;gap:7px}.agenda-days button{scroll-snap-align:start;padding:9px 4px}.agenda-filter-content{grid-template-columns:1fr}.agenda-shell .category-filter{display:flex;flex-wrap:wrap}.agenda-shell .category-filter button{width:auto;flex:1;text-align:center;border-inline-start:0;border-bottom:3px solid transparent;padding:8px}.agenda-shell .category-filter button[aria-pressed="true"]{border-bottom-color:var(--accent)}.agenda-shell .agenda-entry{grid-template-columns:88px minmax(0,1fr);gap:9px 16px;padding:20px 16px}.agenda-art{width:88px;grid-column:1;grid-row:1/3}.agenda-shell .subject-mark{width:86px;height:86px}.agenda-copy{grid-column:2}.agenda-time{grid-column:2;display:flex;flex-direction:row;justify-content:flex-start;gap:9px;width:fit-content;border-radius:7px;padding:6px 10px}.agenda-time time:first-child,.agenda-time time:last-child{font-size:.87rem;color:var(--text)}.agenda-time>span{font-size:.72rem}.agenda-art figcaption{font-size:.65rem}.agenda-shell .agenda-copy h3{font-size:1.25rem}.agenda-shell .session-level{font-size:.8rem;margin-top:4px}.agenda-shell .session-demo{margin-top:9px;font-size:.6rem}.agenda-day-heading{padding:14px 17px}.agenda-day-heading h2{font-size:1.15rem}.agenda-shell .demo-notice{padding:3px 12px;gap:10px}.agenda-shell .demo-notice>svg{display:none}.agenda-shell .demo-notice p{font-size:.77rem}.agenda-shell .schedule-count{margin-bottom:12px}html[lang="ar"] .agenda-shell .agenda-copy h3{font-size:1.5rem}html[lang="ar"] .agenda-shell .session-level{font-size:1rem}html[lang="ar"] .agenda-art figcaption{font-size:.83rem}html[lang="ar"] .agenda-shell .session-demo{font-size:.8rem}html[lang="ar"] .agenda-shell .demo-notice p{font-size:.96rem}}
@media(max-width:359px){.agenda-shell .agenda-entry{grid-template-columns:76px minmax(0,1fr);gap:8px 12px;padding:18px 12px}.agenda-art{width:76px}.agenda-shell .subject-mark{width:74px;height:74px}.agenda-time{gap:7px;padding:6px 8px}.agenda-time time:first-child,.agenda-time time:last-child{font-size:.8rem}html[lang="ar"] .agenda-shell .agenda-copy h3{font-size:1.35rem}}
@media(prefers-reduced-motion:reduce){.agenda-shell *{transition:none!important;animation:none!important}}
@media print{.agenda-shell .agenda-sidebar,.agenda-days,.contact-strip,.site-footer{display:none!important}.agenda-layout{display:block}.agenda-shell .demo-notice{border:1px solid #082e49;padding:8px 12px;margin-bottom:15px}.agenda-shell .schedule-board{display:block!important}.agenda-shell .schedule-day{break-inside:avoid;margin-bottom:15px}.agenda-shell .agenda-entry{grid-template-columns:65px minmax(0,1fr) 90px!important;padding:12px!important;gap:15px!important}.agenda-shell .agenda-art{width:65px;grid-row:auto!important;grid-column:auto!important}.agenda-shell .subject-mark{width:60px;height:60px;print-color-adjust:exact}.agenda-copy,.agenda-time{grid-column:auto!important}.agenda-time{display:flex;flex-direction:column}.agenda-shell .agenda-copy h3,html[lang="ar"] .agenda-shell .agenda-copy h3{font-size:16pt}.agenda-shell .session-level{font-size:10pt}.agenda-art figcaption{font-size:8pt}}

/* Compact title and vertical rhythm keep the actual programme prominent. */
body[data-page="schedule"] .breadcrumb{display:none}
body[data-page="schedule"] .page-heading{padding-block:20px 22px}
body[data-page="schedule"] .page-heading h1{font-size:2.2rem}
body[data-page="schedule"] .page-intro{margin-top:5px}
.agenda-shell .demo-notice{margin-bottom:22px}
.agenda-shell .demo-notice>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px}
.agenda-shell .demo-notice p{margin:0}
.agenda-days button{padding-block:8px}
html[lang="ar"] .agenda-days button>span{font-size:1.02rem;line-height:1.5}
html[lang="ar"] .agenda-days small{font-size:.78rem;line-height:1.4}
.agenda-day-heading{padding-block:12px}
html[lang="ar"] .agenda-day-heading h2{font-size:1.4rem}
.agenda-shell .agenda-entry{padding-block:18px;grid-template-columns:116px minmax(0,1fr) 100px}
.agenda-art{width:116px}
.agenda-shell .subject-mark{width:108px;height:108px}
@media(max-width:1100px) and (min-width:601px){.agenda-shell .agenda-entry{grid-template-columns:104px minmax(0,1fr) 88px}.agenda-art{width:104px}.agenda-shell .subject-mark{width:100px;height:100px}}
@media(max-width:600px){.agenda-shell .agenda-entry{grid-template-columns:88px minmax(0,1fr)}.agenda-art{width:88px}.agenda-shell .subject-mark{width:86px;height:86px}.agenda-shell .demo-notice{margin-bottom:18px}}
@media(max-width:359px){.agenda-shell .agenda-entry{grid-template-columns:76px minmax(0,1fr)}.agenda-art{width:76px}.agenda-shell .subject-mark{width:74px;height:74px}}

@media(max-width:600px){.agenda-days{scrollbar-width:none}.agenda-days::-webkit-scrollbar{display:none;width:0;height:0}}

@media print{.agenda-shell .subject-mark{width:60px;height:60px;max-width:100%}.agenda-shell .agenda-art{width:65px}.agenda-shell .demo-notice p{font-size:10pt}.agenda-shell .demo-notice strong{font-size:11pt}}
/* Public timetable states; never substitute fictional sessions after a failed request. */
.schedule-load-state #schedule-status{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--muted);max-width:70ch;margin-bottom:18px}
.schedule-load-state [data-schedule-retry]{margin-bottom:28px}
.schedule-api-note{color:var(--muted);font-size:.9rem;line-height:1.8;margin-bottom:24px;padding-inline-start:16px;border-inline-start:3px solid var(--accent)}
.agenda-shell .schedule-api-note.demo-notice{display:block}
.schedule-mini[aria-busy="true"]{color:var(--muted);min-height:140px;align-content:center}
.schedule-mini .mini-level{font-size:.85rem;line-height:1.5;color:var(--muted)}
html[lang="ar"] .schedule-api-note{font-size:1rem}
/* Confirmed centre export: seven days, exact teacher and group information. */
.agenda-days{grid-template-columns:repeat(7,minmax(0,1fr))}
.schedule-total{font-size:1rem;color:var(--text);margin-block:0 20px}
.schedule-total:empty{display:none}
.schedule-export-date{display:block;font-size:.9em;margin-top:4px}
.agenda-shell .session-teacher{font-size:.88rem;line-height:1.65;margin-top:10px;color:var(--text)}
.agenda-shell .session-cohort{font-size:.75rem;line-height:1.65;margin-top:5px;color:var(--muted);overflow-wrap:anywhere}
.session-teacher bdi,.session-cohort bdi{font-family:Ubuntu,Arial,sans-serif;font-size:.85em}
html[lang="ar"] .agenda-shell .session-teacher{font-size:1rem}
html[lang="ar"] .agenda-shell .session-cohort{font-size:.94rem}
@media(max-width:600px){.agenda-days{grid-template-columns:none}.agenda-shell .session-teacher{margin-top:7px}.agenda-shell .session-cohort{font-size:.72rem}html[lang="ar"] .agenda-shell .session-cohort{font-size:.85rem}.schedule-total{font-size:.94rem}}
