/*
  The talk companions' shared styles (issue #4941): the date-and-location stamp, the info
  button and its dialog, the "while we talked" panel, chips, and the back-pocket deck's scene
  model. Loaded after /site-assets/hapimatic-dark.css and /site-assets/site.css; every token has a
  fallback so a page still reads if the site assets are not served.
*/

.tc {
  --tc-bg: var(--t-bg);
  --tc-surface: var(--t-surface);
  --tc-raised: var(--t-raised);
  --tc-text: var(--t-text);
  --tc-text-2: var(--t-text-secondary);
  --tc-muted: var(--t-muted);
  --tc-mint: var(--t-accent);
  --tc-mint-deep: var(--t-accent-deep);
  --tc-violet: var(--t-line-art);
  --tc-line: var(--t-line);
  --tc-line-strong: var(--t-line-strong);
  --tc-font: var(--t-font);
  --tc-mono: var(--t-mono);
  margin: 0;
  background: var(--tc-bg);
  color: var(--tc-text);
  font-family: var(--tc-font);
  -webkit-font-smoothing: antialiased;
}

.tc *,
.tc *::before,
.tc *::after {
  box-sizing: border-box;
}

.tc a {
  color: var(--tc-mint);
}

.tc :focus-visible {
  outline: 2px solid var(--tc-mint);
  outline-offset: 3px;
}

.tc-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- the stamp and the info button (R-22) ---------- */

.tc-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: 500 0.8rem/1.4 var(--tc-mono);
  color: var(--tc-muted);
  letter-spacing: 0.01em;
}

.tc-info-btn {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--tc-line-strong);
  background: transparent;
  color: var(--tc-text-2);
  font: 700 1rem/1 var(--tc-font);
  font-style: italic;
  cursor: pointer;
}

.tc-info-btn:hover {
  border-color: var(--tc-mint);
  color: var(--tc-mint);
}

.tc-dialog {
  width: min(28rem, calc(100vw - 2rem));
  border: 1px solid var(--tc-line-strong);
  border-radius: 18px;
  background: var(--tc-surface);
  color: var(--tc-text);
  padding: 1.5rem 1.5rem 1.25rem;
  font-family: var(--tc-font);
}

.tc-dialog::backdrop {
  background: rgba(var(--t-shadow-rgb), 0.6);
}

.tc-dialog h2 {
  margin: 0 0 0.25rem;
  font: 700 1.2rem/1.25 var(--tc-font);
}

.tc-dialog .tc-dialog-stamp {
  margin: 0 0 1.1rem;
  font: 500 0.8rem/1.4 var(--tc-mono);
  color: var(--tc-muted);
}

.tc-dialog h3 {
  margin: 1rem 0 0.4rem;
  font: 600 0.72rem/1 var(--tc-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tc-muted);
}

.tc-dialog ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-dialog li {
  padding: 0.2rem 0;
  color: var(--tc-text-2);
}

.tc-dialog .tc-event {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 600;
}

.tc-dialog .tc-attribution {
  margin: 1.2rem 0 0;
  font: 500 0.78rem/1.4 var(--tc-mono);
  color: var(--tc-muted);
}

.tc-dialog .tc-close {
  margin-top: 1.25rem;
  width: 100%;
  min-height: 2.75rem;
  border-radius: 12px;
  border: 1px solid var(--tc-line-strong);
  background: var(--tc-raised);
  color: var(--tc-text);
  font: 600 0.95rem/1 var(--tc-font);
  cursor: pointer;
}

/* ---------- chips ---------- */

.tc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--tc-line-strong);
  background: rgba(var(--t-ink-rgb), 0.04);
  color: var(--tc-text);
  text-decoration: none;
  font: 500 1rem/1.25 var(--tc-font);
}

.tc .tc-chip {
  color: var(--tc-text);
}

.tc-chip:hover {
  border-color: var(--tc-mint);
}

.tc-chip kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 7px;
  background: rgba(var(--t-accent-rgb), 0.14);
  color: var(--tc-mint);
  font: 700 0.85rem/1 var(--tc-mono);
}

/* ---------- the "while we talked" panel (R-16: counts from data/live/events.json) ---------- */

.tc-while {
  border-radius: 18px;
  background: rgba(var(--t-surface-rgb), 0.82);
  border: 1px solid var(--tc-line-strong);
  padding: 1.4rem 1.6rem;
}

.tc-while[hidden] {
  display: none;
}

.tc-while h2 {
  margin: 0 0 0.9rem;
  font: 600 0.8rem/1 var(--tc-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tc-mint);
}

.tc-while .tc-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.2rem;
}

.tc-while .tc-num[hidden] {
  display: none;
}

.tc-while .tc-num b {
  display: block;
  font: 800 3.2rem/1 var(--tc-font);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.tc-while .tc-num span {
  display: block;
  margin-top: 0.4rem;
  font: 500 0.9rem/1.3 var(--tc-font);
  color: var(--tc-text-2);
}

.tc-while p {
  margin: 0.9rem 0 0;
  font: 500 0.78rem/1.4 var(--tc-mono);
  color: var(--tc-muted);
}

/* ---------- the back-pocket deck: one statement, one object (prototype v1 model) ---------- */

.tc-deck {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.tc-scene {
  position: absolute;
  inset: 0;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 4vw;
  padding: 8vh 7vw 10vh;
}

.tc-scene.is-current {
  display: grid;
}

.tc-scene .tc-eyebrow {
  margin: 0 0 1rem;
  font: 600 0.85rem/1 var(--tc-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tc-mint);
}

.tc-scene h1 {
  margin: 0;
  font: 800 clamp(2rem, 4.2vw, 4.4rem) / 1.05 var(--tc-font);
  letter-spacing: -0.025em;
}

.tc-scene .tc-points {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.tc-scene .tc-points li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--tc-line);
  font: 500 clamp(1rem, 1.35vw, 1.4rem) / 1.4 var(--tc-font);
  color: var(--tc-text-2);
}

.tc-scene [data-at] {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.tc-scene [data-at].on {
  opacity: 1;
  transform: none;
}

.tc-scene figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.tc-scene figure img {
  max-width: 100%;
  max-height: 64vh;
  border-radius: 14px;
  border: 1px solid var(--tc-line);
  object-fit: contain;
  background: var(--tc-surface);
}

.tc-scene figcaption,
.tc-scene .tc-source {
  font: 500 0.82rem/1.4 var(--tc-mono);
  color: var(--tc-muted);
  text-align: center;
}

.tc-deck-hud {
  position: fixed;
  left: 7vw;
  right: 7vw;
  bottom: 3.5vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 0.8rem/1 var(--tc-mono);
  color: var(--tc-muted);
  z-index: 2;
}

.tc-deck-hud a {
  color: var(--tc-muted);
  text-decoration: none;
  padding: 0.8rem 0;
}

.tc-tap {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.tc-tap-l {
  left: 0;
  width: 33vw;
}

.tc-tap-r {
  right: 0;
  width: 67vw;
}

@media (max-width: 760px) {
  .tc-deck {
    position: static;
    overflow: visible;
  }

  .tc-scene,
  .tc-scene.is-current {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2.5rem 1.25rem;
    border-bottom: 1px solid var(--tc-line);
  }

  .tc-scene [data-at] {
    opacity: 1;
    transform: none;
  }

  .tc-tap {
    display: none;
  }

  .tc-deck-hud {
    position: static;
    padding: 1rem 1.25rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-scene [data-at] {
    transition: none;
  }
}

/* ---------- the links page of a kit deck (engine v2.3, #5900) ---------- */
/* The delivered decks' links page (round 14, Matt, 2026-10-21; the stage chip first, M3, 2026-10-28) in
   the theme's tokens, under tc-* names so the delivered pages' own .hub, .tile, and .tc-chip rules are
   untouched. Phone-first at 393x852; two columns of groups from 900px. A chip keeps the bare `tile`
   class too, which the deck checks find (L44: the first chip opens the synced stage). */

body.tc:has(> .tc-hub) {
  background:
    radial-gradient(
      120% 60% at 50% -10%,
      rgba(var(--t-accent-rgb), 0.1),
      transparent 60%
    ),
    var(--tc-bg);
}
.tc-hub {
  max-width: 30rem;
  margin: 0 auto;
  padding: max(1.4rem, env(safe-area-inset-top)) 1rem
    max(2rem, env(safe-area-inset-bottom));
}
.tc-hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tc-hub-id {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.tc-hub h1 {
  margin: 0;
  font: 800 1.75rem/1.05 var(--t-font-display, var(--tc-font));
  letter-spacing: -0.02em;
}
.tc-hub .tc-who {
  margin: 0.25rem 0 0;
  color: var(--tc-text-2);
  font-weight: 600;
}
.tc-hub .tc-stamp {
  margin-top: 0.9rem;
}
.tc-link,
.tc-contact summary {
  --ic: 2.9rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 4.25rem;
  padding: 0.7rem 0.95rem;
  color: var(--tc-text);
  text-decoration: none;
}
.tc .tc-link {
  color: var(--tc-text);
}
.tc-link.is-hero {
  --ic: 3.1rem;
  margin-top: 1.3rem;
  padding: 1.05rem 1.1rem;
  border-radius: 20px;
  background: var(--tc-mint);
  box-shadow: 0 10px 30px -12px rgba(var(--t-accent-rgb), 0.55);
}
.tc .tc-link.is-hero,
.tc-link.is-hero .tc-tx b,
.tc-link.is-hero .tc-tx small,
.tc-link.is-hero .tc-chev {
  color: var(--tc-mint-deep);
}
.tc-link.is-hero .tc-tx b {
  font-size: 1.15rem;
}
.tc-link.is-hero .tc-tx small {
  opacity: 0.75;
}
.tc-link.is-hero:focus-visible {
  outline-color: var(--tc-text);
}
/* the stage chip leads; the self-paced deck sits under it, outlined, so the page keeps one filled call
   to action */
.tc-link.is-hero.is-alt {
  margin-top: 0.7rem;
  background: transparent;
  border: 1.5px solid rgba(var(--t-accent-rgb), 0.45);
  box-shadow: none;
}
.tc .tc-link.is-hero.is-alt,
.tc-link.is-hero.is-alt .tc-tx b,
.tc-link.is-hero.is-alt .tc-tx small,
.tc-link.is-hero.is-alt .tc-chev {
  color: var(--tc-mint);
}
.tc-link.is-hero.is-alt .tc-ic-deck {
  background: rgba(var(--t-accent-rgb), 0.14);
}
.tc-cols {
  display: grid;
  gap: 0 1.5rem;
}
.tc-hub .links h2 {
  margin: 1.6rem 0 0.5rem 0.3rem;
  font: 700 0.72rem/1 var(--tc-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tc-muted);
}
.tc-group {
  border-radius: 18px;
  background: rgba(var(--t-surface-rgb), 0.72);
  border: 1px solid var(--tc-line);
  overflow: hidden;
}
.tc-group > * + * {
  border-top: 1px solid var(--tc-line);
}
.tc-link.is-row:hover,
.tc-contact summary:hover {
  background: rgba(var(--t-ink-rgb), 0.04);
}
.tc-ic {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--ic, 3.4rem);
  height: var(--ic, 3.4rem);
  border-radius: calc(var(--ic, 3.4rem) * 0.26);
}
.tc-ic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tc-ic svg {
  width: 55%;
  height: 55%;
}
.tc-app {
  --ic: 3.4rem;
}
.tc-ic-deck {
  background: var(--tc-mint-deep);
  color: var(--tc-mint);
}
.tc-ic-dark {
  background: var(--t-black);
  border: 1px solid var(--tc-line);
}
.tc-ic-dark img {
  width: 58%;
  height: 58%;
}
.tc-ic-mark > img {
  width: 74%;
  height: 74%;
}
.tc-ic-photo > img {
  border-radius: 50%;
}
.tc-ic-bubble {
  background: rgba(var(--t-accent-rgb), 0.12);
  color: var(--tc-mint);
}
.tc-ic-bubble svg {
  width: 62%;
  height: 62%;
}
.tc-ic-bubble .tc-dot {
  fill: var(--tc-bg);
}
.tc-ic .tc-li {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 46%;
  height: 46%;
  border-radius: 5px;
  box-shadow: 0 0 0 2.5px var(--tc-surface);
}
.tc-chev {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: auto;
  color: var(--tc-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tc-tx {
  min-width: 0;
}
.tc-tx b {
  display: block;
  font: 700 1.02rem/1.2 var(--tc-font);
}
.tc-tx small {
  display: block;
  margin-top: 0.18rem;
  font: 500 0.78rem/1.3 var(--tc-font);
  color: var(--tc-muted);
}
.tc-contact summary {
  list-style: none;
  cursor: pointer;
}
.tc-contact summary::-webkit-details-marker {
  display: none;
}
.tc-contact[open] summary .tc-chev {
  transform: rotate(90deg);
}
.tc-contact form {
  padding: 0 0.95rem 1rem;
  display: grid;
  gap: 0.75rem;
}
.tc-contact label {
  display: grid;
  gap: 0.3rem;
  font: 600 0.85rem/1.3 var(--tc-font);
  color: var(--tc-text-2);
}
.tc-contact label small {
  font: 500 0.75rem/1.3 var(--tc-mono);
  color: var(--tc-muted);
}
.tc-contact input,
.tc-contact select,
.tc-contact textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 11px;
  border: 1px solid var(--tc-line-strong);
  background: var(--tc-bg);
  color: var(--tc-text);
  font: 500 1rem/1.4 var(--tc-font);
}
.tc-contact textarea {
  min-height: 7rem;
  resize: vertical;
}
.tc-contact button {
  min-height: 3rem;
  border-radius: 12px;
  border: 0;
  background: var(--tc-mint);
  color: var(--tc-mint-deep);
  font: 700 1rem/1 var(--tc-font);
  cursor: pointer;
}
.tc-contact .tc-note {
  margin: 0;
  font: 500 0.78rem/1.45 var(--tc-font);
  color: var(--tc-muted);
}
.tc-hub footer {
  margin-top: 2.2rem;
  text-align: center;
  font: 500 0.75rem/1.5 var(--tc-mono);
  color: var(--tc-muted);
}
@media (min-width: 900px) {
  .tc-hub {
    max-width: 62rem;
    padding-top: 3rem;
  }
  .tc-cols {
    grid-template-columns: 1fr 1fr;
  }
}
