/* Semana: una grilla compartida de días y bloques, como un horario. */
body.week-mode .intro{display:none}
body.week-mode .brand-header{padding-block:4px}
body.week-mode .brand img{width:320px;padding:19px}
body.week-mode .calendar{width:calc(100% - 40px);max-width:1800px;padding-top:10px}
body.week-mode .calendar-actions{padding-bottom:10px}
body.week-mode .date-heading{margin:14px 0}
body.week-mode .date-heading h2{font-size:26px}
body.week-mode .date-heading .eyebrow{display:none}
body.week-mode .date-heading .muted{font-size:13px;margin-top:5px}
.timetable-scroll{width:100%;overflow:auto;border:1px solid var(--line);max-height:calc(100dvh - 285px);min-height:220px;overscroll-behavior:contain;scrollbar-gutter:stable}
.timetable{width:100%;min-width:1000px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px}
.timetable caption{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.timetable .hour-column{width:76px}
.timetable th,.timetable td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:top}
.timetable tr>*:last-child{border-right:0}
.timetable tr:last-child>*{border-bottom:0}
.timetable thead th{position:sticky;top:0;z-index:2;background:var(--ink);color:white;text-align:center;font-size:13px;padding:10px 6px;text-transform:capitalize}
.timetable thead th small{display:inline-block;margin-left:6px;background:var(--orange);color:#1d1d1b;padding:1px 5px;font-size:10px}
.timetable .week-corner{left:0;z-index:3;font-size:11px}
.timetable .week-hour{position:sticky;left:0;z-index:1;padding:12px 6px;background:var(--paper);text-align:center;font-size:12px}
.week-hour strong,.week-hour span{display:block}.week-hour span{font-size:11px;font-weight:500;color:var(--muted);margin-top:3px}
.timetable td{padding:5px;background:#fafaf8}
.timetable td.is-today{background:var(--paper)}
.timetable th.is-today{box-shadow:inset 0 -3px var(--orange)}
.week-activity{display:block;width:100%;text-align:left;border:1px solid #e0e2de;border-left:3px solid var(--ink);padding:6px 8px;background:#fff;color:var(--ink);margin:0 0 5px;line-height:1.25;transition:background .12s}
.week-activity:last-child{margin-bottom:0}
.week-activity:hover{background:var(--paper)}
.week-activity:focus-visible{outline-offset:-2px}
.week-activity>strong{display:block;font-size:12px;font-weight:800;overflow-wrap:anywhere}
.week-card-head{display:flex;justify-content:space-between;gap:4px;align-items:center;margin-bottom:3px}
.week-card-head .kind{font-size:9px;letter-spacing:.04em}
.week-card-head .state{font-size:9px;padding:1px 4px}
.week-card-head .state-next,.week-card-head .state-ended{display:none}
.week-place{display:block;font-size:10px;margin-top:4px;color:var(--muted)}
.week-activity.suspended{border-left-color:var(--orange);background:var(--paper)}
.week-activity.live{border-left-color:var(--green)}
.week-free{display:block;text-align:center;padding:18px 0;color:#929b9f;font-size:16px}
.timetable .week-empty{padding:35px;text-align:center;font-size:15px}
.week-hint{font-size:12px;color:var(--muted);margin:0 0 8px}
.workshop-dialog{width:min(580px,calc(100vw - 32px));max-height:90dvh;border:1px solid var(--line);padding:0;color:var(--ink)}
.workshop-dialog::backdrop{background:rgba(24,34,40,.55)}
.dialog-panel{padding:24px}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.dialog-top h2{font-size:20px}.dialog-top button{border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:8px 12px}
.workshop-dialog .activity{padding:0;border:0}.workshop-dialog .activity h3{font-size:27px}.workshop-dialog .activity p{font-size:15px}.workshop-dialog .activity-audience{min-height:0}.dialog-notes{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
@media(max-width:700px){body.week-mode .calendar{width:calc(100% - 24px)}body.week-mode .date-heading h2{font-size:21px}.timetable-scroll{max-height:65dvh}.timetable{min-width:1000px}.dialog-panel{padding:20px}}
@media print{.timetable-scroll{max-height:none;overflow:visible;border:0}.timetable{min-width:0}.timetable th,.timetable .week-hour{position:static}.timetable tr{break-inside:avoid}.week-activity{break-inside:avoid}.week-hint,.workshop-dialog{display:none}}
