/* Shared brand and course navigation */
.brand { min-width: 0; }
.brand img { display: block; width: auto; height: 59px; }
.masthead { display: flex; align-items: center; gap: 18px; max-width: 1192px; width: calc(100% - clamp(56px,9vw,160px)); margin: auto; min-height: 76px; }
.masthead .back-link { margin-left: auto; }
.masthead .brand { margin-right: auto; }
.back-link, .return-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; color: var(--teal-ink); font-size: 15px; font-weight: 750; }
.back-link:hover, .return-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.animal-back { display: inline-flex; }
.calendar-page .head-inner { height: 72px; }
.contact { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; min-height: 44px; border-radius: 999px; padding: 0 21px; }
.calendar-intro { position: relative; isolation: isolate; overflow: hidden; background: #fbf5e7; border-bottom: 1px solid var(--line); color: var(--teal-deep); }
.intro-inner { min-height: clamp(210px,18.7vw,294px); position: relative; display: flex; align-items: center; }
.intro-type { position: relative; z-index: 1; padding: 22px 0 24px; animation: appear .5s ease-out both; }
.winter-label { margin: 0 0 10px; color: var(--teal-ink); font: 800 14px/1.1 var(--display); letter-spacing: .14em; display: flex; gap: 10px; align-items: center; }
.winter-label span { font-size: 22px; letter-spacing: .04em; }
.intro-type h1 { font: 900 clamp(38px,4.9vw,75px)/1.18 var(--display); letter-spacing: -.05em; margin: 0; color: var(--teal-deep); text-shadow: 0 2px var(--surface), 0 4px var(--logo-mint); }
.intro-type h1 em { font-style: normal; color: var(--apricot-ink); }
.intro-dates { display: flex; align-items: center; gap: 10px; margin: 19px 0 0; font-weight: 800; letter-spacing: .02em; font-size: 17px; }
.intro-dates span { width: 27px; height: 1px; background: var(--logo-mint); }
.herd { width: 53%; max-height: 93%; height: auto; position: absolute; right: -1%; bottom: 2%; object-fit: contain; object-position: right bottom; }
.calendar-section { padding-block: 30px 0; scroll-margin-top: 8px; }
.calendar-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.calendar-heading h2, .calendar-enroll h2, .detail-body h2, .course-detail h2 { color: var(--teal-ink); margin: 0; font: 900 clamp(23px,2.2vw,32px)/1.3 var(--display); }
.calendar-heading p { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.calendar-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 19px #25483913; }
.calendar-grid {
  --option-height: clamp(78px, 6.4vw, 92px);
  --choice-gap: 28px;
  --date-height: 36px;
  --week-content: calc(var(--option-height) + var(--choice-gap) + var(--option-height));
  border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed;
}
.week-column { width: 74px; }
.calendar-grid thead { background: var(--mint-paper); color: var(--teal-deep); }
.calendar-grid thead th { padding: 11px 2px; border-right: 1px solid var(--line); font-weight: 750; font-size: 16px; text-align: center; line-height: 1.2; }
.calendar-grid thead th:last-child { border-right: 0; }
.calendar-grid thead .week-head { font-size: 13px; background: var(--leaf-paper); color: var(--leaf-ink); }
.calendar-grid tbody tr:first-child > * { border-top: 1px solid var(--line); }
.week { background: var(--leaf-paper); text-align: center; color: var(--leaf-ink); border-right: 1px solid var(--line); }
.week span, .week strong { display: block; }
.week span { font-size: 13px; }
.week strong { line-height: 1.4; font-size: 16px; font-weight: 800; }
.day { height: var(--date-height); color: var(--teal-ink); font-weight: 800; font-size: 16px; padding: 5px 12px 2px; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.day:last-child { border-right: 0; }
.calendar-grid tbody:first-of-type .event-row > td:empty { border-right: 1px solid var(--line); }
.ceremony-cell { padding: 3px 7px 9px; text-align: center; border-right: 1px solid var(--line); }
.ceremony { color: var(--teal-ink); font: 800 20px/1.3 var(--display); }
.event-cell, .choice-cell { padding: 0 8px 9px; }
.event-cell .event { min-height: var(--week-content); }
.event {
  --event-ink: var(--leaf-ink); --event-paper: var(--leaf-paper); --art: url('./media/farm-v01.jpg');
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--option-height);
  overflow: hidden; color: var(--event-ink); border-radius: 8px; padding: 9px 15px; background: var(--event-paper);
  transition: transform .18s, box-shadow .18s;
}
.event::before { content: ''; position: absolute; z-index: -1; inset: 0 0 0 auto; width: 65%; background: var(--art) center / cover; mask-image: linear-gradient(to right,transparent 0%,#000 45%); }
.event:not(.is-full):hover { transform: translateY(-1px); box-shadow: 0 3px 8px #254b4133; }
.event:focus-visible { outline-offset: -3px; z-index: 1; }
.event-copy { display: block; }
.event strong, .event small { display: block; width: fit-content; }
.event strong { font: 900 clamp(18px,1.8vw,26px)/1.25 var(--display); letter-spacing: .005em; }
.event small { margin-top: 2px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.event-arrow { display: grid; flex: none; align-items: center; justify-items: center; border-radius: 50%; width: 30px; height: 30px; background: var(--surface); color: var(--teal-ink); }
.event-arrow .icon { width: 17px; height: 17px; }
.farm::before { width: 50%; background-position: 73% 52%; }
.farm.is-full {
  --event-paper: color-mix(in srgb, var(--leaf-paper) 60%, var(--surface));
  cursor: default;
  pointer-events: none;
}
.farm.is-full::before { opacity: .30; }
.farm.is-full .event-arrow { display: none; }
.full-label { display: inline-block; width: fit-content; margin-top: 5px; padding: 2px 8px; border-radius: 999px; background: var(--rose-paper); color: var(--rose-ink); font: 800 12px/1.3 system-ui, sans-serif; white-space: nowrap; }
.choice-label { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: var(--choice-gap); margin: 0 5px; color: var(--muted); letter-spacing: .06em; font-size: 13px; font-weight: 800; }
.choice-label::before, .choice-label::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.expedition { --event-paper: var(--mint-paper); --event-ink: var(--teal-deep); --art: url('./media/expedition-strip-v01.jpg'); }
.market { --event-paper: var(--apricot-paper); --event-ink: var(--apricot-ink); --art: url('./media/market-strip-v01.jpg'); }
.reading { --event-paper: var(--rose-paper); --event-ink: var(--rose-ink); --art: url('./media/reading-v01.jpg'); }
.reading::before { width: 46%; background-position: 30% 43%; }
.reading strong span + span { margin-left: .35em; }
.hatched { background-image: repeating-linear-gradient(-45deg,transparent,transparent 7px,color-mix(in srgb,var(--line),transparent 72%) 7px,color-mix(in srgb,var(--line),transparent 72%) 8px); background-size: 11.314px 11.314px; }
.event-row .hatched { background-position-y: calc(0px - var(--date-height)); }
.out-of-range { border-left: 1px solid var(--line); }
.calendar-enroll { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 35px 32px; border-bottom: 1px solid var(--line); }
.calendar-enroll p { margin: 5px 0 0; color: var(--muted); }
.contact { background: var(--teal-ink); color: var(--on-dark); white-space: nowrap; }
.contact:hover { background: var(--teal-deep); }
.course-detail, .detail-body { padding-block: 38px 48px; }
.course-detail { width: min(1060px,calc(100% - 68px)); margin: auto; }
.course-detail > .detail-hero, .detail-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(25px,5vw,80px); }
.course-detail > .detail-hero { background: linear-gradient(110deg, var(--mint-paper), var(--paper) 62%); border-block: 1px solid var(--line); padding: 36px 0; }
.course-detail > .detail-hero img, .detail-photo { display: block; width: 100%; height: clamp(260px,28vw,395px); object-fit: cover; border-radius: 14px; }
.course-detail h1, .detail-copy h1 { font: 900 clamp(38px,5vw,68px)/1.18 var(--display); color: var(--teal-ink); margin: 12px 0; text-wrap: balance; }
.detail-kicker,.detail-dates { font-weight: 800; color: var(--muted); }
.detail-summary,.detail-copy p { font-size: 17px; }
.course-detail > section + section { padding-top: 26px; }
.night-page .detail-hero { background: var(--apricot-paper); padding-block: 33px; }
.night-page .detail-photo { height: clamp(250px,25vw,350px); object-fit: contain; background: var(--surface); }
.night-page .eyebrow { font-size: 14px; font-weight: 700; color: var(--muted); }
.detail-body h2 { margin-bottom: 16px; }
.night-page .skip-link:not(:focus) { position: absolute; clip-path: inset(50%); }
@media(max-width: 850px) {
  .week-column { width: 56px; }
  .event { padding-inline: 10px; }
  .event strong { font-size: 19px; }
  .farm small, .reading small { font-size: 12px; }
  .herd { width: 48%; right: -2%; }
}
@media(max-width: 650px) {
  .masthead { width: calc(100% - 32px); min-height: 60px; gap: 7px; }
  .brand img { width: auto; height: 52px; }
  .calendar-page .head-inner { height: 61px; }
  .calendar-page .shell { width: calc(100% - 28px); }
  .intro-inner { min-height: 151px; }
  .intro-type { padding: 18px 0 22px; }
  .winter-label { font-size: 11px; letter-spacing: .12em; gap: 6px; margin-bottom: 7px; }
  .winter-label span { font-size: 17px; }
  .intro-type h1 { font-size: clamp(26px,7.6vw,43px); letter-spacing: -.04em; }
  .intro-dates { font-size: 13px; margin-top: 10px; gap: 6px; }
  .intro-dates span { width: 16px; }
  .herd { width: 48%; right: -3%; bottom: 3%; }
  .calendar-section { padding-top: 18px; }
  .calendar-heading { margin-bottom: 9px; gap: 5px; }
  .calendar-heading h2,.calendar-enroll h2 { font-size: 22px; }
  .calendar-heading p { font-size: 12px; }
  .calendar-sheet { border-radius: 10px; }
  .week-column { width: 29px; }
  .calendar-grid { --option-height: 66px; --choice-gap: 24px; --date-height: 27px; }
  .calendar-grid thead .week-head { font-size: 11px; }
  .calendar-grid thead th { padding: 8px 0 7px; font-size: 13px; }
  .week { padding: 0; }
  .week strong { writing-mode: vertical-rl; margin: 4px auto 0; letter-spacing: .15em; font-size: 13px; }
  .week span { font-size: 9px; }
  .day { font-size: 13px; padding: 3px 2px 2px; text-align: center; }
  .event-cell, .choice-cell { padding: 0 4px 5px; }
  .ceremony-cell { padding: 0 2px 4px; }
  .ceremony { font-size: 15px; white-space: nowrap; }
  .event { padding: 8px; border-radius: 5px; gap: 2px; }
  .event strong { font-size: 16px; line-height: 1.2; }
  .event small { font-size: 12px; }
  .event-arrow { width: 22px; height: 22px; }
  .event-arrow .icon { width: 13px; height: 13px; }
  .farm strong,.reading strong { font-size: 15px; }
  .farm strong span,.reading strong span { display: block; }
  .reading strong span + span { margin-left: 0; }
  .farm::before,.reading::before { opacity: .38; width: 46%; }
  .farm.is-full { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .farm.is-full::before { opacity: .24; }
  .full-label { margin-top: 3px; padding: 1px 6px; font-size: 11px; }
  .farm .event-arrow,.reading .event-arrow { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; }
  .farm small,.reading small { font-size: 11px; line-height: 1.35; padding-right: 10px; }
  .choice-label { font-size: 12px; margin-inline: 2px; }
  .expedition::before,.market::before { width: 51%; }
  .calendar-enroll { display: block; padding-block: 24px; }
  .calendar-enroll p { font-size: 14px; margin-bottom: 12px; }
  .animal-back { display: inline-flex; font-size: 12px!important; }
  .animal-back ~ .header-cta { display: none; }
  .course-detail { width: calc(100% - 32px); padding-block: 12px 88px; }
  .course-detail > .detail-hero,.detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .course-detail > .detail-hero,.night-page .detail-hero { padding-block: 22px; }
  .course-detail > .detail-hero img,.night-page .detail-photo { height: clamp(185px,58vw,280px); }
  .course-detail h1,.detail-copy h1 { font-size: 36px; margin: 8px 0; }
  .detail-kicker,.detail-dates { font-size: 14px; }
  .detail-summary,.detail-copy p { font-size: 15px; }
  .detail-body { padding-block: 24px; }
}
@media(max-width: 380px) {
  .calendar-page .shell { width: calc(100% - 18px); }
  .calendar-heading p { font-size: 11px; }
  .farm,.reading { padding-inline: 5px; }
  .intro-inner { min-height: 139px; }
  .farm strong,.reading strong { font-size: 14px; }
}
