/* ==========================================================================
   Gatherings — in-person circles that only run if they fill.
   A feature layer on dea.css. Every colour, space and type step is a token;
   if you are about to type a '#', reach for tokens.css instead.
   ========================================================================== */

/* --------------------------------------------------------------- breadcrumb */
.gth-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase;
  color: var(--color-dusk);
}
.gth-crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.gth-crumbs li { list-style: none; display: flex; align-items: center; gap: .5rem; }
.gth-crumbs li + li::before { content: "/"; color: var(--color-haze); }
.gth-crumbs a { color: var(--color-dusk); text-decoration: none; }
.gth-crumbs a:hover { color: var(--color-bolt); }
.gth-crumbs [aria-current="page"] { color: var(--color-ink); }

/* --------------------------------------------------------------------- hero */
.gth-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--color-haze);
  padding-block: clamp(2.5rem, 8vw, var(--space-9)) clamp(2rem, 5vw, var(--space-8));
}
/* First light on the ridge, not a gradient button. Warm, low, mostly ground. */
.gth-hero::before {
  content: ""; position: absolute; inset: auto 0 -45% 0; height: 95%;
  background: radial-gradient(
    58% 100% at 50% 100%,
    color-mix(in srgb, var(--color-sun) 16%, transparent) 0%,
    color-mix(in srgb, var(--color-bolt) 7%, transparent) 42%,
    transparent 74%);
  z-index: -2; pointer-events: none;
}
.gth-hero__inner { max-width: 46rem; }
.gth-hero__kicker { display: flex; align-items: center; gap: .6rem; }
.gth-hero__bolt { color: var(--color-bolt); }
.gth-hero h1 { max-width: 20ch; }
.gth-hero--one h1 { max-width: 24ch; }

/* ------------------------------------------------- hero, with a photograph */
/* The painted sunrise below the hero was standing in for a picture. Once a
   real one is behind the copy the two fight for the same z-index, so the
   painted one steps aside on this variant only — the detail page still has
   it. Everything else about the hero is unchanged. */
.gth-hero--film::before { content: none; }

/* The shared scrim in sales.css is tuned for a hero whose copy stops around
   half-width. This one runs to 46rem inside a 72rem wrap, so the sand has to
   hold further right before it lets the ridge through, or the lede lands on
   an amber sky. Measured, not guessed: worst case on this page is the lede. */
.gth-hero--film .page-hero__scrim {
  background:
    linear-gradient(100deg,
      color-mix(in srgb, var(--color-sand) 99%, transparent) 0%,
      color-mix(in srgb, var(--color-sand) 95%, transparent) 56%,
      color-mix(in srgb, var(--color-sand) 72%, transparent) 78%,
      color-mix(in srgb, var(--color-sand) 12%, transparent) 100%),
    linear-gradient(to bottom,
      transparent 62%,
      color-mix(in srgb, var(--color-sand) 62%, transparent) 100%);
}
@media (max-width: 62rem) {
  .gth-hero--film .page-hero__scrim {
    background: linear-gradient(to bottom,
      color-mix(in srgb, var(--color-sand) 96%, transparent) 0%,
      color-mix(in srgb, var(--color-sand) 91%, transparent) 58%,
      color-mix(in srgb, var(--color-sand) 62%, transparent) 100%);
  }
}

/* ------------------------------------------------------ the why-it-works band */
/* Was a flat deep-plum panel; now the same plum arrives as a scrimmed
   photograph. Atmosphere only — it is not the valley, it is not a venue, and
   nothing here says otherwise. */
.gth-film .film__media img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center 55%;
}
/* Cliffs at night are already dark, but the stars are not, and the copy sits
   over the bottom-left corner where the rock is brightest. Deeper than the
   shared scrim, for that reason. */
.gth-film .film__scrim {
  background:
    linear-gradient(to top,
      color-mix(in srgb, var(--color-deep) 95%, transparent) 0%,
      color-mix(in srgb, var(--color-deep) 86%, transparent) 42%,
      color-mix(in srgb, var(--color-deep) 46%, transparent) 74%,
      color-mix(in srgb, var(--color-deep) 20%, transparent) 100%),
    linear-gradient(to right,
      color-mix(in srgb, var(--color-deep) 72%, transparent) 0%,
      color-mix(in srgb, var(--color-deep) 30%, transparent) 55%,
      transparent 78%);
}
@media (max-width: 56rem) {
  .gth-film .film__scrim {
    background: linear-gradient(to top,
      color-mix(in srgb, var(--color-deep) 96%, transparent) 0%,
      color-mix(in srgb, var(--color-deep) 88%, transparent) 50%,
      color-mix(in srgb, var(--color-deep) 48%, transparent) 100%);
  }
}
/* dea.css only recolours links under .panel--deep / .on-deep, and neither is
   on this band any more. */
.gth-film .film__body a { color: var(--color-sun); }
.gth-film .film__body a:hover { color: var(--color-deep-ink); }

.gth-when {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem var(--space-3);
}
.gth-when__zone {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase;
  color: var(--color-dusk);
}

/* ------------------------------------------------------------------- how it works */
.gth-how { background: var(--color-dune); border-bottom: 1px solid var(--color-haze); }
.gth-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: gth;
}
.gth-steps li { display: flex; flex-direction: column; gap: var(--space-2); }
.gth-steps__n {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: var(--tracking-mono-label);
  color: var(--color-bolt);
}
.gth-steps h2 { font-size: var(--scale-step-1); }
.gth-steps p { font-size: .94rem; color: var(--color-dusk); margin: 0; }
/* On The Desert Chapter the steps follow the list (or its empty panel) inside one
   section; without this the heading sits almost on the panel's bottom edge. */
.gth-seat { margin-top: var(--space-7); }

/* ------------------------------------------------------------------- the list */
.gth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }

.gth-card {
  display: grid; gap: var(--space-4);
  grid-template-columns: auto 1fr auto;
  align-items: start;
  background: var(--color-shell);
  border: 1px solid var(--color-haze);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color .16s ease, transform .16s ease;
}
.gth-card:hover { border-color: color-mix(in srgb, var(--color-bolt) 45%, var(--color-haze)); }

/* The date block: display face, tabular, small enough to read as a stamp. */
.gth-card__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 4.25rem; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-haze); border-top: 3px solid var(--color-bolt);
  border-radius: var(--radius-sm);
  background: var(--color-sand);
  text-decoration: none;
}
.gth-card__month {
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase;
  color: var(--color-dusk);
}
.gth-card__day {
  font-family: var(--font-display); font-size: var(--scale-step-3);
  font-weight: var(--weight-display-black); line-height: 1;
  color: var(--color-ink); font-variant-numeric: tabular-nums;
}

.gth-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.gth-card__head h2 { font-size: var(--scale-step-2); margin: 0; }
.gth-card__head a { color: inherit; text-decoration: none; }
.gth-card__head a:hover { color: var(--color-bolt); }

.gth-card__when { margin: 0; color: var(--color-dusk); font-size: .94rem; }
.gth-card__sep { padding-inline: .4rem; color: var(--color-haze); }
.gth-card__summary { margin: 0; max-width: 52ch; }

.gth-card__aside {
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3);
  text-align: right;
}
.gth-card__price {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; font-size: var(--scale-step-2);
  font-weight: var(--weight-display-semi); color: var(--color-ink);
  font-variant-numeric: tabular-nums; line-height: 1;
}

@media (max-width: 46rem) {
  .gth-card { grid-template-columns: auto 1fr; }
  .gth-card__aside {
    grid-column: 1 / -1; flex-direction: row; align-items: center;
    justify-content: space-between; text-align: left;
    border-top: 1px solid var(--color-haze); padding-top: var(--space-3);
  }
}

/* ----------------------------------------------------------- the seat counter */
/* The whole promise of this feature is that this number is true. It gets the
   mono face and the tabular figures every other honest number on the site gets,
   and it never gets a colour that implies urgency it has not earned. */
.gth-count {
  margin: 0;
  font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase;
  color: var(--color-dusk); font-variant-numeric: tabular-nums;
}
.gth-count--big { font-size: .8rem; color: var(--color-ink); }

.gth-meter {
  position: relative; height: 5px; border-radius: 3px;
  background: var(--color-dune); overflow: hidden;
}
.gth-meter__fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--color-bolt); border-radius: 3px;
}
/* Where the threshold sits. A mark, not a goalpost animation. */
.gth-meter__mark {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: var(--color-ink); opacity: .55;
}

/* ------------------------------------------------------------------- detail */
.gth-flash { padding-top: var(--space-5); }

.gth-detail {
  display: grid; gap: var(--space-6) var(--space-7);
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
  align-items: start;
}
.gth-detail__main h2 { font-size: var(--scale-step-2); }
.gth-explainer { max-width: 54ch; }

@media (max-width: 60rem) {
  .gth-detail { grid-template-columns: 1fr; }
  /* On a phone the thing you came to do goes first. */
  .gth-detail__side { order: -1; }
}
@media (min-width: 60.001rem) {
  .gth-detail__side { position: sticky; top: var(--space-5); }
}

.gth-facts { margin: 0; display: grid; gap: var(--space-3); }
.gth-facts > div {
  display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-3);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-haze);
}
.gth-facts dt {
  font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase;
  color: var(--color-sun-ink);
}
.gth-facts dd { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.gth-facts dd small { color: var(--color-dusk); font-size: .84rem; }

@media (max-width: 34rem) {
  .gth-facts > div { grid-template-columns: 1fr; gap: .3rem; }
}

.gth-ask { color: var(--color-dusk); font-size: .94rem; }

/* --------------------------------------------------------- the take-a-seat card */
.gth-take { gap: var(--space-4); }
.gth-take__price { font-size: var(--scale-step-3); }
.gth-take__price small { display: inline-block; margin-left: .35rem; }
.gth-take__have { margin: 0; font-size: .96rem; }
.gth-take__note { margin: 0; font-size: .84rem; color: var(--color-dusk); }
.gth-take form { margin: 0; }
.gth-take__deadline {
  margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--color-haze);
  display: flex; flex-direction: column; gap: .2rem;
  font-size: .94rem; color: var(--color-ink);
}

.gth-empty { max-width: 44rem; }
.gth-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.gth-why { max-width: 46rem; }

/* --------------------------------------------------------------- the door list */
/* Held in one hand, in a room, probably badly lit. Everything is big, the tap
   targets clear 44px, and nothing depends on hover. */
.gth-door { padding-block: var(--space-6) var(--space-8); }
.gth-door__title { font-size: var(--scale-step-3); }
.gth-door__when { color: var(--color-dusk); font-size: .94rem; margin: 0; }

.gth-door__tally {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-deep); color: var(--color-deep-ink);
  border-radius: var(--radius-md);
}
.gth-door__tally-n {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; font-size: var(--scale-step-4);
  font-weight: var(--weight-display-black); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gth-door__tally-of {
  font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase;
  color: var(--color-sun-ink);
}

.gth-door__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.gth-door__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-shell);
  border: 1px solid var(--color-haze);
  border-radius: var(--radius-md);
}
.gth-door__row.is-here {
  background: var(--color-dune);
  border-color: color-mix(in srgb, var(--color-sage) 55%, var(--color-haze));
}
.gth-door__list--quiet .gth-door__row { background: transparent; padding-block: var(--space-3); }

.gth-door__who { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.gth-door__name {
  font-family: var(--font-display); font-size: max(1.25rem, var(--scale-step-1));
  color: var(--color-ink); line-height: 1.2;
  overflow-wrap: anywhere;
}
.gth-door__meta {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: var(--tracking-mono-label);
  color: var(--color-dusk); overflow-wrap: anywhere;
}
.gth-door__btn { min-height: 2.9rem; padding-inline: var(--space-5); }
.gth-door__in {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase;
  color: var(--color-sage);
}
.gth-door__hint { font-size: .88rem; color: var(--color-dusk); margin: 0; }

@media (max-width: 30rem) {
  .gth-door__row { align-items: stretch; }
  .gth-door__row form, .gth-door__btn { width: 100%; }
}
