/* Pilgrim classes — [pilgrim_classes] and the class pages. From the Classes design. */

/* Groups */
.pgc { display: grid; gap: 64px; }
/* Jumping to a class group (e.g. /classes/#push) stops below the sticky header. */
.pgc-group { scroll-margin-top: calc(var(--pg-header-h, 86px) + 24px); }
.admin-bar .pgc-group { scroll-margin-top: calc(var(--pg-header-h, 86px) + 56px); }
.pgc-group::before { content: ''; display: block; height: 10px; margin-bottom: 40px; background: var(--pgc); }
.pgc-head { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.2fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.pgc-head .pg-eyebrow { margin: 0; }
html body .pgc .pgc-head__name, html body .pgc-head__name { margin: 8px 0 12px; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: clamp(56px, 7vw, 84px); font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--pg-black, #0F1512); }
.pgc-head__tag { margin: 0; font-size: 19px; font-weight: 500; }
.pgc-head__text { max-width: 520px; margin: 0; font-size: 16px; line-height: 1.7; color: var(--pg-muted, #4A4A44); }

/* Cards */
.pgc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.pgc-card { display: flex; flex-direction: column; margin: 0; background: var(--pg-sand, #EBE8E1); }
.pgc-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #8C5A48, #2A1F1A); }
html body .pgc-card__media img { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .6s ease; }
.pgc-card:hover .pgc-card__media img { transform: scale(1.03); }
.pgc-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 16px 16px 20px; }
html body .pgc .pgc-card__title, html body .pgc-card__title { margin: 0 0 6px; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: 0; text-transform: none; }
html body .pgc-card__title a { color: var(--pg-black, #0F1512); text-decoration: none; }
html body .pgc-card__body p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--pg-muted, #4A4A44); }
html body .pgc-card__more { margin-top: auto; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--pg-black, #0F1512); text-decoration: none; }
html body .pgc-card__more:hover { color: var(--pg-push, #B34A55); }
.pgc-card__more span { display: inline-block; transition: transform .2s ease; }
.pgc-card__more:hover span { transform: translateX(3px); }

/* Class page */
.pgc-banner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; padding: 56px var(--pg-inline, 48px); color: #fff; background: linear-gradient(90deg, var(--pg-black, #0F1512) 38%, #7A4A3A); }
.pgc-banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--pgc); }
.pgc-banner--photo { background: linear-gradient(90deg, rgba(15, 21, 18, .9) 30%, rgba(15, 21, 18, .25)), var(--pgc-img) center / cover no-repeat, var(--pg-black, #0F1512); }
.pgc-banner__inner { max-width: 720px; }
.pgc-crumbs { display: flex; gap: 8px; margin-bottom: 24px; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
html body .pgc-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
html body .pgc-crumbs a:hover { color: #fff; text-decoration: underline; }
html body .pgc-banner__pillar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #fff; }
.pgc-banner__pillar i { width: 12px; height: 12px; border-radius: 50%; background: var(--pgc); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
html body .pgc-banner__title { margin: 0; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: clamp(48px, 7vw, 84px); font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: uppercase; color: #fff; }
.pgc-banner__text { max-width: 520px; margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.pgc-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.pgc-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 56px; max-width: var(--pg-max, 1184px); margin: 0 auto; padding: 64px var(--pg-gutter, 24px); box-sizing: content-box; }
.pgc-about .pg-eyebrow, .pgc-when .pg-eyebrow { margin: 0 0 12px; }
.pgc-prose.pg-prose { max-width: none; margin: 0; padding: 0; }
.pgc-when { align-self: start; padding: 32px; background: var(--pg-sand, #EBE8E1); border-top: 4px solid var(--pgc); }
html body .pgc-when__title { margin: 0 0 18px; font-size: 34px; }
.pgc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.pgc-week li { display: grid; place-items: center; aspect-ratio: 1; margin: 0; border: 1px solid rgba(15, 21, 18, .2); font-size: 13px; font-weight: 500; color: rgba(15, 21, 18, .45); }
.pgc-week li.is-on { background: var(--pgc); border-color: var(--pgc); color: #fff; }
.pgc-week li.is-today { box-shadow: 0 0 0 2px var(--pg-blush, #EFC5C5), 0 0 0 3px var(--pg-black, #0F1512); }
.pgc-when__count { margin: 0 0 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--pg-muted, #4A4A44); }
.pgc-sessions { margin: 0; }
.pgc-sessions__day { padding: 12px 0; border-top: 1px solid rgba(15, 21, 18, .15); }
.pgc-sessions__day.is-today { margin: 0 -12px; padding: 12px; background: rgba(239, 197, 197, .55); border-top-color: transparent; }
.pgc-sessions dt { margin: 0 0 4px; font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 22px; font-weight: 500; }
.pgc-sessions__day.is-today dt::after { content: ' · Today'; font-family: var(--pg-sans, 'Jost', sans-serif); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--pg-push, #B34A55); }
.pgc-sessions dd { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; padding: 2px 0; font-size: 14px; }
.pgc-sessions__time { font-weight: 500; }
.pgc-sessions__meta { color: var(--pg-muted, #4A4A44); }
.pgc-when__none { margin: 0; color: var(--pg-muted, #4A4A44); }

.pgc-more { max-width: var(--pg-max, 1184px); margin: 0 auto; padding: 0 var(--pg-gutter, 24px) 80px; box-sizing: content-box; }
html body .pgc-more .pg-section-title { margin: 0 0 24px; }

@media (max-width: 900px) {
	.pgc-head { grid-template-columns: 1fr; }
	.pgc-body { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
}
@media (max-width: 767px) {
	.pgc-banner { min-height: 400px; padding: 40px var(--pg-gutter, 20px); }
	.pgc-when { padding: 24px 20px; }
}

/* Teacher pages: the classes they teach */
.pg-teacher__body .pgc-when { margin: 32px 0 8px; }
.pgc-when--teacher .pgc-sessions dd { align-items: center; }
.pgc-sessions__class { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.pgc-sessions__dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
html body .pgc-sessions__class a { color: var(--pg-black, #0F1512); text-decoration: none; }
html body .pgc-sessions__class a:hover { color: var(--pg-push, #B34A55); text-decoration: underline; text-underline-offset: 3px; }
