/* Schedule, Figma 2192:9580. Existing chrome and programme model are shared.
   Cream #f2ebe3; alternating bands #e7d8c6; Plum #47141f. */
.page-template-template-schedule {
    --schedule-stone: #e7d8c6;
    --schedule-rule: rgb(71 20 31 / 28%);
}
.page-template-template-schedule .schedule-hero {
    position: relative;
    display: block;
    min-height: 800px;
    padding: 125px 0 170px;
    overflow: clip;
    background: transparent;
    text-align: left;
}
.page-template-template-schedule .schedule-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1088px;
    text-align: left;
}
.page-template-template-schedule .schedule-hero__copy { max-width: 437px; }
.page-template-template-schedule .schedule-hero .eyebrow {
    margin: 0 0 3px;
    font: 600 14px/24px var(--font-mono);
    color: var(--color-maroon);
}
.page-template-template-schedule .schedule-hero__title {
    margin: 0;
    font: 600 48px/50px var(--font-accent);
    color: var(--color-maroon);
    text-transform: none;
}
.page-template-template-schedule .schedule-hero__flourish {
    display: block;
    margin: 17px 0 30px;
    max-width: 100%;
}
.page-template-template-schedule .schedule-hero__subtitle {
    max-width: none;
    margin: 0;
    font: var(--p3-font);
    color: var(--color-maroon);
}
.page-template-template-schedule .schedule-hero__actions {
    justify-content: flex-start;
    gap: 36px;
    margin-top: 60px;
}
.page-template-template-schedule .schedule-hero__actions .link-manicule {
    color: var(--color-maroon);
}
.page-template-template-schedule .schedule-hero__actions .link-manicule,
.page-template-template-schedule .schedule-closing__actions .link-manicule {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
}
.page-template-template-schedule .schedule-hero__actions .icon--manicule,
.page-template-template-schedule .schedule-closing__actions .icon--manicule { display: none; }
.page-template-template-schedule .schedule-hero__media {
    position: absolute;
    right: 0;
    bottom: 36px;
    width: min(75.56vw, 1088px);
    margin: 0;
    pointer-events: none;
}
.page-template-template-schedule .schedule-hero__image { display: block; width: 100%; height: auto; }
.page-template-template-schedule .schedule-filter {
    position: relative;
    background: var(--color-panel-light);
    border: 0;
    padding: 52px 0 40px;
    text-align: center;
    color: var(--color-maroon);
}
.page-template-template-schedule .schedule-filter::before,
.page-template-template-schedule .schedule-day:nth-child(even)::before,
.page-template-template-schedule .schedule-closing::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('../img/schedule/torn-stone.svg') center / 100% 80px no-repeat;
    pointer-events: none;
}
.page-template-template-schedule .schedule-filter .eyebrow,
.page-template-template-schedule .schedule-closing .eyebrow {
    font: 800 14px/20px var(--font-mono);
    color: var(--color-maroon);
    margin: 0 0 14px;
}
.page-template-template-schedule .schedule-filter h2 {
    margin: 0 0 24px;
    font: 600 32px/38px var(--font-accent);
    text-transform: none;
}
.page-template-template-schedule .schedule-filter__bar { gap: 12px; margin: 0; }
.page-template-template-schedule .schedule-filter__bar button {
    min-width: 112px;
    min-height: 44px;
    padding: 8px 20px;
    border: 1.5px solid var(--color-maroon);
    border-radius: 22px;
    background: var(--color-paper);
    color: var(--color-maroon);
    font: 600 14px/20px var(--font-mono);
    text-transform: uppercase;
}
.page-template-template-schedule .schedule-filter__bar button.is-active,
.page-template-template-schedule .schedule-filter__bar button:hover {
    background: var(--color-maroon);
    color: var(--color-paper);
}
.page-template-template-schedule .schedule-filter__help {
    margin: 30px 0 0;
    font: 600 11px/18px var(--font-mono);
    text-transform: uppercase;
}
.page-template-template-schedule .schedule-timeline { padding: 0; }
.page-template-template-schedule .schedule-day,
.page-template-template-schedule .schedule-day + .schedule-day {
    position: relative;
    margin: 0;
    padding: 90px 0 120px;
    overflow: clip;
    background: var(--color-panel-light);
    color: var(--color-maroon);
}
.page-template-template-schedule .schedule-day:nth-child(even) {
    background: var(--schedule-stone);
    overflow: visible;
}
.page-template-template-schedule .schedule-day:nth-child(even)::before {
    background-image: url('../img/schedule/torn-cream.svg');
}
.page-template-template-schedule .schedule-day:nth-child(even)::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    transform: rotate(180deg);
    background: url('../img/schedule/torn-cream.svg') center / 100% 80px no-repeat;
    z-index: 1;
    pointer-events: none;
}
.page-template-template-schedule .schedule-timeline__inner {
    position: relative;
    z-index: 2;
    width: min(100% - (var(--space-page) * 2), 1248px);
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
}
.page-template-template-schedule .schedule-day__header {
    align-self: start;
    display: block;
    min-height: 250px;
    margin: 0;
    padding: 30px 28px;
    border: 1.5px solid rgb(71 20 31 / 90%);
    border-radius: 24px;
    background: rgb(186 74 41 / 16%);
}
.page-template-template-schedule .schedule-day--4 .schedule-day__header { background: rgb(71 102 31 / 16%); }
.page-template-template-schedule .schedule-day--6 .schedule-day__header { background: rgb(0 89 102 / 16%); }
.page-template-template-schedule .schedule-day--0 .schedule-day__header { background: rgb(71 21 30 / 16%); }
.page-template-template-schedule .schedule-day__name {
    margin: 0 0 25px;
    color: var(--color-maroon);
    font: 600 32px/38px var(--font-accent);
    text-transform: none;
}
.page-template-template-schedule .schedule-day__meta { display: grid; gap: 20px; }
.page-template-template-schedule .schedule-day__date {
    color: inherit;
    font: 800 14px/20px var(--font-mono);
    text-transform: uppercase;
}
.page-template-template-schedule .schedule-day__theme {
    color: inherit;
    font: 600 14px/20px var(--font-mono);
    text-transform: uppercase;
}
.page-template-template-schedule .schedule-day__rows { gap: 0; }
.page-template-template-schedule [data-day-hidden],
.page-template-template-schedule .schedule-day__toggle[hidden] { display: none !important; }
.page-template-template-schedule .schedule-day__toggle {
    display: inline-block;
    min-height: 44px;
    margin: 16px 0 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-maroon);
    font: 600 14px/20px var(--font-mono);
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 4px;
    scroll-margin-top: calc(var(--header-h) + 20px);
    cursor: pointer;
}
.page-template-template-schedule .schedule-day__toggle:hover { text-decoration-thickness: 2px; }
.page-template-template-schedule .schedule-row {
    --cat-text: var(--color-maroon);
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 150px;
    gap: 20px;
    align-items: start;
    min-height: 88px;
    padding: 14px 0 18px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--schedule-rule);
    border-radius: 0;
    background: transparent;
    color: var(--color-maroon);
}
.page-template-template-schedule .schedule-row__time {
    display: block;
    border: 0;
    padding: 5px 0 0;
    text-align: left;
}
.page-template-template-schedule .schedule-row__time-val { font: 800 13px/20px var(--font-mono); }
.page-template-template-schedule .schedule-row__title {
    color: inherit;
    font: 600 20px/25px var(--font-accent);
}
.page-template-template-schedule .schedule-row__desc,
.page-template-template-schedule .schedule-row__loc,
.page-template-template-schedule .schedule-row__dur,
.page-template-template-schedule .schedule-row__session-by {
    margin: 4px 0 0;
    color: inherit;
    font: 400 12px/18px var(--font-sans);
}
.page-template-template-schedule .schedule-row__badge {
    display: block;
    justify-self: end;
    align-self: start;
    margin-top: 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: 800 13px/20px var(--font-mono);
    text-transform: uppercase;
    white-space: normal;
    text-align: right;
}
.page-template-template-schedule .schedule-row__session-list {
    grid-template-columns: 1fr;
    border-color: var(--schedule-rule);
}
.page-template-template-schedule .schedule-row__sessions-toggle { min-height: 24px; font-size: 12px; }
.page-template-template-schedule .schedule-day__art { position: absolute; z-index: 1; pointer-events: none; height: auto; }
.page-template-template-schedule .schedule-day__art--wednesday { width: 362px; left: -16px; bottom: 0; transform: scaleX(-1); }
/* Friday + Sunday collages from Figma 2192:9580 (9 Nov 2026). --k scales a whole composition
   (1 at desktop) so its pieces never drift apart. Figma draws the full day; a collapsed day
   (rows carry [data-day-hidden]) is shorter, so its band gets a min-height that keeps the same
   art, same size, under the card (Laura's choice). */
.page-template-template-schedule .schedule-day { --k: 1; }
/* Friday (06 Friday / Mexico Day): notebook (Literature_01, 496x445 turned -9.99deg, box 565.7x524.3
   at x -187) with the ochre marigold (Flower_07_Ochre 279x272 at x -75, 183 under the box top) on it.
   Box top = card top + 414 (Figma 554 - card 140); collapsed: 20 under the card. */
.page-template-template-schedule .schedule-day--5 { --fri-top: calc(var(--k) * 414px + 90px); }
.page-template-template-schedule .schedule-day--5:has(.schedule-row[data-day-hidden]) {
    --fri-top: calc(90px + 250px + 20px);
    min-height: calc(90px + 250px + 20px + var(--k) * 565px);
}
.page-template-template-schedule .schedule-day__art--literature {
    width: calc(var(--k) * 496px);
    left: calc(var(--k) * -152.15px);
    top: calc(var(--fri-top) + var(--k) * 39.65px);
    transform: rotate(-9.99deg);
}
.page-template-template-schedule .schedule-day__art--flower {
    width: calc(var(--k) * 279.04px);
    left: calc(var(--k) * -75px);
    top: calc(var(--fri-top) + var(--k) * 183px);
}
/* Sunday (08 Sunday / Closing Day, 1300 high in Figma): pieces placed from the band bottom.
   The typewriter and the pressed sunflower are page-level layers in Figma: they run over the
   torn edge into the closing band (54 / 115 below), so this band clips sideways only. The grey
   marigold is clipped by the band, as in Figma. Group top = bottom - 428 (ochre marigold). */
.page-template-template-schedule .schedule-timeline .schedule-day.schedule-day--0 { overflow-x: clip; overflow-y: visible; }
.page-template-template-schedule .schedule-day--0:has(.schedule-row[data-day-hidden]) {
    min-height: calc(90px + 250px + 20px + var(--k) * 428px);
}
.page-template-template-schedule .schedule-day__art--ochre { width: calc(var(--k) * 277px); left: calc(var(--k) * -135px); bottom: calc(var(--k) * 154px); }
.page-template-template-schedule .schedule-day__art--sunday {
    width: calc(var(--k) * 279.04px);
    left: calc(var(--k) * 51px);
    bottom: calc(var(--k) * -29px);
    clip-path: inset(0 0 calc(var(--k) * 29px) 0);
}
.page-template-template-schedule .schedule-day__art--typewriter { width: calc(var(--k) * 552px); left: calc(var(--k) * -265px); bottom: calc(var(--k) * -54px); z-index: 3; transform: scaleX(-1); } /* flipped in Figma */
.page-template-template-schedule .schedule-day__art--pressed { width: calc(var(--k) * 278px); left: calc(var(--k) * 118px); bottom: calc(var(--k) * -115px); z-index: 3; }
.page-template-template-schedule .schedule-closing {
    position: relative;
    margin: 0;
    border: 0;
    background: var(--color-stone-dark);
    padding: 100px 0 120px;
}
.page-template-template-schedule .schedule-closing::before {
    background: var(--color-stone-dark);
    mask: url('../img/schedule/torn-cream.svg') center / 100% 80px no-repeat;
}
.page-template-template-schedule .schedule-closing::after {
    /* Seam fix (6 Nov 2026): the Join band's background PNG has a transparent
       torn top, so the paper texture showed as a strip between this stone band
       and the clay. Run the stone 120px under the Join band (z-index 1 paints
       over it), so the tear reveals stone, not body texture. */
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--color-stone-dark);
    z-index: 0;
    pointer-events: none;
}
.page-template-template-schedule .schedule-closing__note {
    max-width: 840px;
    margin: 0 auto 50px;
    color: var(--color-maroon);
    font: 600 24px/32px var(--font-accent);
}
.page-template-template-schedule .schedule-closing__actions { gap: 36px; }
@media (min-width: 1600px) {
    .page-template-template-schedule .schedule-hero__media { right: calc((100vw - 1600px) / 2); }
}
@media (max-width: 1100px) {
    .page-template-template-schedule .schedule-hero { min-height: 650px; padding: 90px 0 130px; }
    .page-template-template-schedule .schedule-hero__copy { max-width: 38%; }
    .page-template-template-schedule .schedule-hero__media { width: 78%; }
    .page-template-template-schedule .schedule-timeline__inner { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
    .page-template-template-schedule .schedule-day__header { padding: 26px 20px; }
    .page-template-template-schedule .schedule-row { grid-template-columns: 85px minmax(0, 1fr) 95px; gap: 14px; }
    .page-template-template-schedule .schedule-day__art--wednesday { max-width: 240px; }
    .page-template-template-schedule .schedule-day { --k: .62; }
}
@media (max-width: 760px) {
    .page-template-template-schedule .schedule-day__toggle { scroll-margin-top: 160px; }
    .page-template-template-schedule .schedule-hero { min-height: 0; padding: 60px 0 0; display: flex; flex-direction: column; }
    .page-template-template-schedule .schedule-hero__copy { max-width: 437px; }
    .page-template-template-schedule .schedule-hero__inner { width: calc(100% - 40px); }
    .page-template-template-schedule .schedule-hero__title { font-size: 42px; line-height: 46px; }
    .page-template-template-schedule .schedule-hero__actions { margin-top: 30px; }
    .page-template-template-schedule .schedule-hero__media { position: relative; width: 115%; align-self: flex-end; bottom: auto; margin: -5px -10% 25px 0; }
    .page-template-template-schedule .schedule-filter { padding: 45px 0 40px; }
    .page-template-template-schedule .schedule-filter h2 { font-size: 28px; margin-bottom: 24px; }
    .page-template-template-schedule .schedule-filter__bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .page-template-template-schedule .schedule-filter__bar button { min-width: 0; width: 100%; }
    .page-template-template-schedule .schedule-day,
    .page-template-template-schedule .schedule-day + .schedule-day { padding: 65px 0 80px; }
    .page-template-template-schedule .schedule-timeline__inner { grid-template-columns: 1fr; gap: 30px; }
    .page-template-template-schedule .schedule-day__header { min-height: 0; padding: 24px; }
    .page-template-template-schedule .schedule-day__name { margin-bottom: 15px; }
    .page-template-template-schedule .schedule-day__meta { gap: 10px; }
    .page-template-template-schedule .schedule-row { grid-template-columns: 75px minmax(0, 1fr); gap: 8px 16px; min-height: 100px; }
    .page-template-template-schedule .schedule-row__time { grid-row: 1 / 3; padding: 2px 0 0; }
    .page-template-template-schedule .schedule-row__title { font-size: 19px; }
    .page-template-template-schedule .schedule-row__badge { grid-column: 2; justify-self: start; margin: 0; text-align: left; font-size: 11px; }
    .page-template-template-schedule .schedule-row__session { overflow-wrap: anywhere; }
    .page-template-template-schedule .schedule-day__art { display: none; }
    .page-template-template-schedule .schedule-closing { padding: 75px 0 85px; }
    .page-template-template-schedule .schedule-closing__note { font-size: 22px; line-height: 29px; }
}
