/* Pilgrim timetable — [pilgrim_timetable]. From the Timetable design. */

.pgt { --pgt-push: #B34A55; --pgt-practice: #C9A63E; --pgt-pause: #4E6B56; }
.pgt-dot { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; margin-top: 2px; }

/* Week grid */
.pgt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pgt-scroll:focus-visible { outline: 2px solid var(--pg-black, #0F1512); outline-offset: 4px; }
.pgt-table { width: 100%; min-width: 1000px; margin: 0; border: 0; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.pgt-table td, .pgt-table th { padding: 0; border: 0; background: none; vertical-align: top; }
.pgt-table thead td { width: 106px; }
.pgt-table tbody tr { height: 72px; }
.pgt-table thead th { padding: 8px; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 20px; font-weight: 500; text-align: center; color: var(--pg-black, #0F1512); }
/* Today: the whole column turns light pink */
.pgt-table thead th.is-today { background: rgba(239, 197, 197, .55); }
.pgt-table td.is-today, .pgt-table td.is-today.is-empty { background: rgba(239, 197, 197, .38); }
.pgt-table td.is-today .pgt-class { background: #F3D4D2; }
.pgt-when { padding: 6px 4px 6px 0 !important; font-size: 12px; font-weight: 400; line-height: 1.35; text-align: left; vertical-align: middle !important; color: var(--pg-black, #0F1512); }
.pgt-table td { height: 1px; }
.pgt-table td.is-empty { background: rgba(235, 232, 225, .45); }
.pgt-class { display: flex; gap: 8px; align-items: flex-start; height: 100%; min-height: 72px; padding: 8px; background: var(--pg-sand, #EBE8E1); font-size: 12px; line-height: 1.4; color: var(--pg-muted, #4A4A44); box-sizing: border-box; }
.pgt-class b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pg-black, #0F1512); }
.pgt-class__meta, .pgt-class__note { display: block; }
.pgt-class__note { font-style: italic; }
html body .pgt-class a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(15, 21, 18, .3); }
html body .pgt-class a:hover { color: var(--pg-push, #B34A55); }

/* Day by day (phones) */
.pgt-days { display: none; }
.pgt-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 0 0 16px; }
html body .pgt-tabs button { min-height: 44px; margin: 0; padding: 0; border: 1px solid rgba(15, 21, 18, .2); border-radius: 0; background: transparent; color: var(--pg-black, #0F1512); font-family: var(--pg-sans, 'Jost', sans-serif); font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }
html body .pgt-tabs button.is-today { background: rgba(239, 197, 197, .55); }
html body .pgt-tabs button[aria-selected="true"] { background: var(--pg-black, #0F1512); border-color: var(--pg-black, #0F1512); color: #fff; }
.pgt-tabs button:focus-visible { outline: 2px solid var(--pg-push, #B34A55); outline-offset: 2px; }
html body .pgt-daylist__title { margin: 0 0 10px; font-size: 26px; }
.pgt-daylist + .pgt-daylist { margin-top: 28px; }
.pgt-days.is-tabbed .pgt-daylist + .pgt-daylist { margin-top: 0; }
.pgt-days.is-tabbed .pgt-daylist__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pgt-daylist ul { margin: 0; padding: 0; list-style: none; }
.pgt-daylist li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 0 0 6px; }
.pgt-daylist__time { align-self: center; font-size: 12px; line-height: 1.35; }
.pgt-daylist .pgt-class { min-height: 0; font-size: 13px; }
.pgt-daylist__none { margin: 0; padding: 16px; background: rgba(235, 232, 225, .6); color: var(--pg-muted, #4A4A44); }

/* Legend */
.pgt-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 13px; }
.pgt-legend li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.pgt-legend .pgt-dot { margin: 0; }

@media (max-width: 860px) {
	.pgt-week { display: none; }
	.pgt-days { display: block; }
}

/* Class names link to their class page */
html body .pgt-class b a { color: inherit; text-decoration: none; }
html body .pgt-class b a:hover { color: var(--pg-push, #B34A55); text-decoration: underline; text-underline-offset: 3px; }
