/* =============================================================================
 * tour.css — the second page's own furniture.
 *
 * Everything shared with the home page comes from os.css / site.css / stage.css.
 * What is here is the tour's structural devices. The tier list carries the three ways
 * into the product — staff, public, members — labelled rather than numbered, because
 * they are three doors into one thing rather than a sequence.
 *
 * The furniture for the four-tier stack, the two ways modules cooperate and the two
 * services that are not apps came out on 2026-09-07 with the sections they dressed:
 * Michael's ruling that the site stops explaining how the product is built.
 * ========================================================================== */

.tour-hero {
  padding-bottom: clamp(30px, 4vw, 56px);
}

.tour-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 880px;
}

/* --- the three ways in --- */

.tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.tier {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-card);
  background: var(--floor);
  border: 1px solid var(--floor-line);
  border-top-color: var(--floor-line-top);
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.tier-n {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bright);
}

.tier p {
  font-size: var(--t-small);
  line-height: 1.6;
}

/* --- the lexicon table --- */

.lexicon {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--floor);
}

.lex-row {
  display: grid;
  grid-template-columns: 0.95fr 1fr 1fr 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  padding: 13px clamp(14px, 2vw, 22px);
  border-top: 1px solid var(--floor-line);
  font-size: var(--t-small);
  align-items: center;
}

/*
 * The reader's own column is lit. The other three stay legible rather than dimmed to
 * a whisper — the point of the table is that all four worlds are on it, and hiding
 * three of them would be arguing that only one exists.
 */
.lex-row [data-c] {
  color: var(--muted);
}
html[data-kind='chamber'] .lex-row [data-c='chamber'],
html[data-kind='business'] .lex-row [data-c='business'],
html[data-kind='association'] .lex-row [data-c='association'],
html[data-kind='nonprofit'] .lex-row [data-c='nonprofit'] {
  color: var(--ink);
  font-weight: 700;
}
html[data-kind='chamber'] .lex-head [data-c='chamber'],
html[data-kind='business'] .lex-head [data-c='business'],
html[data-kind='association'] .lex-head [data-c='association'],
html[data-kind='nonprofit'] .lex-head [data-c='nonprofit'] {
  color: var(--bright);
}
.lex-row:first-child {
  border-top: 0;
}

.lex-head {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--micro);
  background: var(--sunken);
}

.lex-k {
  font-family: var(--mono);
  color: var(--bright);
  font-weight: 700;
}

/* five columns is one too many below the desktop width; the reader's own kind is the
   one that survives, which is the whole argument of the section anyway */
@media (max-width: 1180px) {
  .lex-row {
    grid-template-columns: 0.95fr 1fr;
  }
  .lex-row [data-c],
  .lex-head [data-c] {
    display: none;
  }
  html[data-kind='chamber'] .lex-row [data-c='chamber'],
  html[data-kind='business'] .lex-row [data-c='business'],
  html[data-kind='association'] .lex-row [data-c='association'],
  html[data-kind='nonprofit'] .lex-row [data-c='nonprofit'],
  html[data-kind='chamber'] .lex-head [data-c='chamber'],
  html[data-kind='business'] .lex-head [data-c='business'],
  html[data-kind='association'] .lex-head [data-c='association'],
  html[data-kind='nonprofit'] .lex-head [data-c='nonprofit'] {
    display: block;
  }
}

@media (max-width: 1080px) {
  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .tiers {
    grid-template-columns: minmax(0, 1fr);
  }
  .lex-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .lex-head {
    display: none;
  }
  .lex-row span + span::before {
    content: attr(data-l);
  }
  .lex-row span:not(.lex-k) {
    color: var(--muted);
  }
  .lex-row .lex-k {
    font-size: var(--t-micro);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}
