/* ============================================================
   INTO THE WILD — WORKSHOP PROGRAMME PAGE
   Page-specific styles (schedule, chips, timeline, modal, responsive).
   Loaded only by the Workshop Programme page, in addition to styles.css.
   ============================================================ */

/* ============================================================
   WORKSHOP PROGRAMME — interactive schedule
   ============================================================ */
.schedule .tabs__nav.sched-areas { justify-content: center; margin-bottom: 2.25rem; }

/* space selector chips */
.sched-spaces {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.75rem;
}
.sched-chip {
  font-family: var(--font-heading);
  font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--earth-warm);
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(196,145,42,0.35);
  border-radius: 2rem;
  background: rgba(255,255,255,0.35);
  transition: all 0.25s var(--ease);
  line-height: 1.2;
}
.sched-chip:hover { border-color: var(--gold); color: var(--earth); background: rgba(196,145,42,0.08); }
.sched-chip.active {
  background: var(--gold); border-color: var(--gold);
  color: var(--white); box-shadow: 0 4px 14px var(--gold-glow);
}

/* day blocks */
.sched-content { display: flex; flex-direction: column; gap: 3rem; }
.sched-day__title {
  font-family: var(--font-heading);
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.6rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(196,145,42,0.2);
}
.sched-timeline { max-width: 760px; }
.sched-empty { color: var(--earth-warm); font-style: italic; }

/* clickable session items */
.sched-item__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem; font-size: 1.35rem; }
.sched-fac { font-size: 0.95rem; font-style: normal; color: var(--sage); font-family: var(--font-body); }
.sched-item--open { cursor: pointer; }
.sched-item--open .sched-item__title { transition: color 0.22s var(--ease); }
.sched-item--open:hover .sched-item__title,
.sched-item--open:focus-visible .sched-item__title { color: var(--gold-deep); }
.sched-item--open:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.sched-plus {
  display: inline-block; margin-left: 0.55rem;
  width: 1.15rem; height: 1.15rem; line-height: 1.05rem; text-align: center;
  font-family: var(--font-body); font-size: 0.95rem; font-style: normal;
  color: var(--gold-deep); border: 1px solid rgba(196,145,42,0.45); border-radius: 50%;
  transition: all 0.22s var(--ease); transform: translateY(-2px);
}
.sched-item--open:hover .sched-plus { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* wild-craft stall cards */
.sched-stalls { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.sched-stall { cursor: pointer; }
.sched-stall .craft-card__name { display: flex; align-items: center; justify-content: space-between; }
.sched-stall:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- modal ---------- */
.wsm { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.wsm[hidden] { display: none; }
.wsm__overlay { position: absolute; inset: 0; background: rgba(15,11,4,0.72); backdrop-filter: blur(3px); animation: fadeIn 0.25s var(--ease); }
.wsm__card {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  background: var(--cream);
  border: 1px solid rgba(196,145,42,0.4);
  border-radius: 6px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: wsmIn 0.32s var(--ease-slow);
}
@keyframes wsmIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.wsm__close {
  position: absolute; top: 0.75rem; right: 1rem;
  font-size: 1.9rem; line-height: 1; color: var(--earth-warm);
  transition: color 0.2s; z-index: 2;
}
.wsm__close:hover { color: var(--gold-deep); }
.wsm__eyebrow { font-family: var(--font-heading); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.5rem; }
.wsm__title { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.1; color: var(--earth); margin-bottom: 0.35rem; }
.wsm__sub { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--sage); }
.wsm__meta { font-size: 0.95rem; color: var(--earth-warm); margin-top: 0.25rem; }
.wsm__rule { width: 48px; height: 2px; background: var(--gold); margin: 1.25rem 0; }
.wsm__text { margin-bottom: 1.1rem; }
.wsm__text p { font-size: 1.02rem; line-height: 1.7; color: var(--earth-warm); margin-bottom: 0.85rem; }
.wsm__text p:last-child { margin-bottom: 0; }
.wsm__bio-label { font-family: var(--font-heading); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin: 1.5rem 0 0.7rem; }
.wsm__list { display: flex; flex-direction: column; gap: 0.7rem; }
.wsm__list li { font-family: var(--font-display); font-size: 1.15rem; color: var(--earth); }
.wsm__list li span { font-family: var(--font-body); font-size: 0.92rem; font-style: normal; color: var(--earth-warm); }
.wsm__link { display: inline-block; margin-top: 1.4rem; font-family: var(--font-heading); font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-deep); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.wsm__link:hover { color: var(--earth); }

@media (max-width: 640px) {
  .sched-item__title { font-size: 1.2rem; }
  .sched-timeline { padding-left: 2.2rem; }
  .sched-timeline .timeline__item::before { left: -2.2rem; }
}

/* schedule — stall notes */
.sched-note { color: var(--earth-warm); font-style: italic; font-size: 1rem; margin-bottom: 1.6rem; max-width: 640px; }
.sched-stall__days { display: inline-block; font-family: var(--font-heading); font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); background: rgba(196,145,42,0.12); padding: 0.2rem 0.55rem; border-radius: 1rem; margin-bottom: 0.6rem; }

/* ============================================================
   WORKSHOP PROGRAMME — responsive polish
   ============================================================ */
/* keep scrolled-to content clear of the fixed nav + ticker */
.sched-content { scroll-margin-top: 116px; }
.schedule .sched-areas { scroll-margin-top: 116px; }

/* larger, easier close target on the modal (works on all devices) */
.wsm__close {
  top: 0.4rem; right: 0.5rem;
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; line-height: 1;
}
.wsm__close:hover { background: rgba(196,145,42,0.1); }

/* bigger touch targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .sched-chip { padding: 0.7rem 1.15rem; }
  .sched-plus { width: 1.4rem; height: 1.4rem; line-height: 1.32rem; transform: translateY(-1px); }
  .sched-item--open .timeline__item, .sched-item { -webkit-tap-highlight-color: rgba(196,145,42,0.15); }
}

/* tablet — comfortable two-up stalls, roomier timeline */
@media (max-width: 900px) {
  .sched-timeline { max-width: 100%; }
}

/* phones */
@media (max-width: 560px) {
  .schedule .tabs__nav.sched-areas { justify-content: stretch; }
  .schedule .sched-areas .tabs__btn { flex: 1 1 0; padding: 0.9rem 0.5rem; font-size: 0.62rem; text-align: center; }
  .sched-spaces { gap: 0.5rem; }
  .sched-chip { font-size: 0.6rem; letter-spacing: 0.1em; }
  .sched-content { gap: 2.4rem; }
  .sched-day__title { font-size: 0.64rem; letter-spacing: 0.2em; }
  .sched-item__title { font-size: 1.15rem; }
  .sched-fac { font-size: 0.9rem; }
  .sched-note { font-size: 0.95rem; }
  .wsm { padding: 0.75rem; }
  .wsm__card { padding: 1.75rem 1.35rem; max-height: 90vh; }
  .wsm__title { font-size: clamp(1.6rem, 8vw, 2rem); }
  .wsm__text p { font-size: 1rem; line-height: 1.65; }
}

/* very small phones — prevent any cramping */
@media (max-width: 360px) {
  .sched-timeline { padding-left: 1.9rem; }
  .timeline__item::before { left: -1.9rem; }
  .sched-chip { padding: 0.6rem 0.85rem; }
}
