:root {
  --bg: #f6f3ec;
  --ink: #1f1b16;
  --ink-soft: #56504a;
  --accent: #c4402b;
  --accent-soft: #e8dfcb;
  --line: #d8cfbc;
  --live: #3e6b4f;
  --ai: #4a5a8c;
  --ai-soft: rgba(74, 90, 140, 0.07);
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stub-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- fold-out page nav, top-right on every page --- */
.nav-fold {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

.nav-fold__toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(31, 27, 22, 0.14);
}
.nav-fold__toggle svg {
  width: 18px;
  height: 18px;
}

.nav-fold__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(31, 27, 22, 0.16);
  transition: max-height 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.nav-fold__panel.is-open {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .nav-fold__panel { transition: none; }
}

.nav-fold__list {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
}

.nav-fold__link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-fold__link:hover {
  background: var(--accent-soft);
}
.nav-fold__link.is-current {
  color: var(--accent);
  font-weight: 600;
}

/* --- reaction stamps --- */
.stamp-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdf8;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: transform 0.08s ease, background 0.15s ease;
}
.stamp:active {
  transform: scale(0.92) rotate(-3deg);
  background: var(--accent-soft);
}

.stamp__emoji {
  font-size: 0.72rem;
}

.stamp__count {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-soft);
}
.stamp__count.is-hot {
  color: var(--accent);
  font-weight: 600;
}

/* one-shot pop when a stamp is pressed */
@keyframes stamped {
  0% { transform: scale(1); }
  40% { transform: scale(1.35) rotate(-6deg); }
  100% { transform: scale(1); }
}
.stamp.is-stamped .stamp__emoji {
  animation: stamped 0.32s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .stamp.is-stamped .stamp__emoji { animation: none; }
  .stamp:active { transform: none; }
}

/* --- reaction stamps on the moderator board --- */
.board-stamps {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.board-stamp {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf8;
}
.board-stamp__emoji {
  font-size: 1.1rem;
  line-height: 1;
}
.board-stamp__count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.board-stamp.is-hot {
  border-color: var(--accent);
}
.board-stamp.is-hot .board-stamp__count {
  color: var(--accent);
  font-weight: 600;
}

/* --- tab switcher (ask page) --- */
.tabs {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 4px;
  background: var(--accent-soft);
  border-radius: 999px;
}

.tab-btn {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.tab-btn.is-active {
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(31, 27, 22, 0.12);
}

.tab-panel[hidden] {
  display: none;
}

/* --- "happening now" banner (ask page) --- */
.now-banner {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border-radius: 4px;
}
.now-banner[hidden] {
  display: none;
}
.now-banner__text {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}
.now-banner__caveat {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* --- perforated stub edge, the signature element --- */
.stub-edge {
  position: relative;
  height: 1px;
  margin: 1.25rem 0;
  border-top: 2px dashed var(--line);
}
.stub-edge::before,
.stub-edge::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--line) inset;
}
.stub-edge::before { left: -24px; }
.stub-edge::after { right: -24px; }

/* --- attendee ask page --- */
.stage--ask {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.stub-card {
  width: 100%;
  max-width: 380px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 0 var(--line);
}

.stub-headline {
  margin: 0.5rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* the ask form is the point of the page — let it lead */
.stub-headline--hero {
  margin-top: 1.35rem;
  font-size: 2.1rem;
  line-height: 1.08;
}

.stub-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.ask-footnote {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.ask-footnote a {
  color: var(--ink-soft);
  text-decoration: none;
}
.ask-footnote a:hover {
  color: var(--accent);
}

.stub-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stub-input {
  font: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
}

.stub-input::placeholder {
  color: var(--ink-soft);
}

.stub-choice-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
}

.stub-choice-group[hidden] {
  display: none;
}

.stub-choice-group {
  display: flex;
  gap: 0.4rem;
  animation: split 0.22s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .stub-choice-group { animation: none; }
}
@keyframes split {
  from { opacity: 0; transform: scaleX(0.9); }
  to { opacity: 1; transform: scaleX(1); }
}

.stub-choice-button {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.25;
  padding: 0.7rem 0.35rem;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.stub-choice-button:active {
  transform: scale(0.97);
  background: var(--accent-soft);
}

.stub-button {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 3px;
  background: var(--accent);
  color: #fff5ee;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.stub-button:active {
  transform: scale(0.98);
}

.stub-status {
  margin: 1rem 0 0;
  min-height: 1.3em;
  font-size: 0.9rem;
}
.stub-status[data-state="ok"] {
  color: var(--live);
}
.stub-status[data-state="error"] {
  color: var(--accent);
}
.stub-ticket {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* --- moderator board --- */
.stage--board {
  min-height: 100vh;
  padding: 1.75rem 1.5rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.board-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.board-title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.board-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.board-summary {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border-radius: 4px;
}
.board-summary__heading {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.board-summary__text {
  margin: 0;
  font-size: 1rem;
}

.board-feed {
  margin-top: 2rem;
}
.board-feed__heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.feed-card {
  position: relative;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.9rem 1.1rem 1rem;
  animation: settle 0.25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .feed-card { animation: none; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-card__ticket {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.feed-card__text {
  margin: 0.25rem 0 0;
  font-size: 1.02rem;
  line-height: 1.4;
}

.feed-empty {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.feed-empty[hidden] {
  display: none;
}

/* --- question classification chips (My Questions tab, secondary action) --- */
.classify-row {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.classify-chip {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.classify-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff5ee;
}

/* --- category tag shown on the moderator board --- */
.feed-card__category {
  display: inline-block;
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* --- public session chat: floating button + bottom sheet --- */
.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff5ee;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(31, 27, 22, 0.24);
  transition: transform 0.1s ease;
}
.chat-fab:active {
  transform: scale(0.94);
}
.chat-fab svg {
  width: 22px;
  height: 22px;
}
.chat-fab__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-fab__badge[hidden] {
  display: none;
}

.chat-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(31, 27, 22, 0.35);
}
.chat-scrim[hidden] {
  display: none;
}
/* The full-screen sheet covers the scrim entirely on phones, so it would just
   be an unreachable overlay — only the desktop panel needs a backdrop. */
@media (max-width: 639px) {
  .chat-scrim {
    display: none;
  }
}

/* Full-screen on phones: the on-screen keyboard eats a bottom sheet, and
   100dvh (unlike 100vh) shrinks when the keyboard opens, so the composer
   stays put instead of being pushed off-screen. */
.chat-sheet {
  position: fixed;
  inset: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  animation: sheet-up 0.22s ease-out;
}
.chat-sheet[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .chat-sheet { animation: none; }
}
@keyframes sheet-up {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* On a desktop viewport there is no keyboard overlay, so keep it a panel. */
@media (min-width: 640px) {
  .chat-sheet {
    inset: auto;
    right: 1rem;
    bottom: 1rem;
    height: auto;
    max-height: 78vh;
    width: 380px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 -6px 24px rgba(31, 27, 22, 0.2);
  }
}

.chat-sheet__header {
  /* must not shrink past its content, or the close button gets clipped away;
     the max-height:340px rule below trims it for genuinely tiny viewports */
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
/* Without min-width:0 the nowrap scope line below expands this flex child and
   pushes the close button off the right edge of the screen. */
.chat-sheet__header > div {
  min-width: 0;
}

.chat-sheet__title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.chat-sheet__scope {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
  /* a long paper title must not eat three lines of a short screen */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf8;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.chat-list {
  list-style: none;
  margin: 0;
  padding: 0.9rem 1.1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* basis 0, not auto: a long thread must not use its content height as the
     flex basis, or it overflows the column and squeezes the composer */
  flex: 1 1 0;
  min-height: 0; /* lets the list actually scroll inside a fixed-height column */
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
/* With an empty thread, let the empty-state own the space instead of the list. */
.chat-sheet:has(.chat-empty:not([hidden])) .chat-list {
  flex: 0 0 auto;
}

.chat-msg {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  align-self: flex-start;
}
.chat-msg.is-mine {
  align-self: flex-end;
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}
.chat-msg__image {
  display: block;
  /* cap both axes so a portrait photo doesn't swallow the whole thread —
     tapping opens the full-size image anyway */
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 240px;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 0.35rem;
  background: var(--accent-soft);
}

/* attach control + pending preview inside the composer */
/* Takes whatever the composer group has left after the preview and Send.
   Sizing lives here rather than on the textarea, because an explicit height on
   a flex item defeats shrinking — that is what pushed Send off small screens. */
.chat-compose-row {
  flex: 1 1 auto;
  min-height: 2.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.chat-attach {
  flex: 0 0 auto;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
}
.chat-attach svg {
  width: 20px;
  height: 20px;
}
.chat-attach:active {
  background: var(--accent-soft);
}

.chat-pending {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.45rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.chat-pending[hidden] {
  display: none;
}
.chat-pending img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
}
.chat-pending button {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.chat-msg__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap; /* keep the line breaks people typed */
}
.chat-msg__meta {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-soft);
}

.chat-empty {
  flex: 1 1 0;
  min-height: 0; /* must yield space to the composer on short viewports */
  overflow: hidden;
  margin: 0;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.chat-empty[hidden] {
  display: none;
}

/* Composer owns the bottom third so there's real room to type.
   Sized in dvh so it shrinks with the on-screen keyboard rather than
   pushing the send button off-screen. */
/* Content-sized, not a rigid box: an attached preview or an open keyboard must
   never push Send out of reach. The one-third target lives on the typing area
   below, so the composer shrinks gracefully instead of overflowing. */
.chat-form {
  /* The composer group (text frame + Send) targets one third of the screen.
     It shrinks on a short keyboard-open viewport so Send is never pushed off,
     but never below its own content — squeezing past that made it spill over
     the notice line underneath. */
  height: 33vh;
  height: 33dvh;
  flex: 0 1 auto;
  min-height: min-content;
  max-height: 70dvh;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem 0.5rem;
  border-top: 1px solid var(--line);
}
.chat-input {
  flex: 1 1 auto;   /* width within the row; height comes from the row */
  min-width: 0;
  height: 100%;
  min-height: 0;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  resize: none;
}
.chat-send {
  flex: 0 0 auto;
  align-self: stretch;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff5ee;
  cursor: pointer;
}
.chat-send:active {
  transform: scale(0.98);
}
@media (min-width: 640px) {
  /* Desktop panel is short; a third of the viewport would swallow it. */
  .chat-form {
    height: auto;
  }
  .chat-compose-row {
    min-height: 76px;
  }
}

/* Small phone with a big keyboard up: trim the chrome so the composer and Send
   still fit rather than being pushed off the bottom. */
@media (max-height: 340px) {
  .chat-sheet__header {
    padding: 0.5rem 1.1rem 0.45rem;
  }
  .chat-sheet__title {
    font-size: 1rem;
  }
  .chat-sheet__scope {
    display: none;
  }
  .chat-form {
    padding-top: 0.5rem;
  }
  .chat-notice {
    font-size: 0.66rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  }
}

.chat-notice {
  flex: 0 0 auto;
  margin: 0;
  /* keep clear of the iPhone home indicator */
  padding: 0 1.1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* --- punch card --- */
.punch-summary {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.punch-summary strong {
  font-family: var(--font-mono);
  color: var(--accent);
}

.punch-day {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem 1.1rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.punch-day__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.punch-day__date {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.punch-holes {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.punch-hole {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px dashed var(--line);
  background: var(--bg);
}
/* a punched hole reads as knocked out: solid ink, no dashes */
.punch-hole.is-punched {
  border: 2px solid var(--accent);
  background: var(--accent);
}
.punch-hole.is-punched::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--bg);
}

.punch-day__count {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.punch-day.is-complete .punch-day__count {
  color: var(--live);
  font-weight: 600;
}

.punch-note {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* --- ConfCue ✦ answer block (My Questions tab) --- */
.ai-answer {
  margin-top: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-left: 2px solid var(--ai);
  background: var(--ai-soft);
  border-radius: 0 3px 3px 0;
}
.ai-answer__badge {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ai);
}
.ai-answer__text {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* --- extra top clearance for pages carrying the fixed nav-fold button --- */
.stage--with-nav {
  padding-top: 4.5rem;
}

/* --- schedule page --- */
.day-accordion {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  margin-top: 1.25rem;
  overflow: hidden;
}
.day-accordion:first-of-type {
  margin-top: 1.5rem;
}

.day-accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.day-accordion__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.day-accordion__date {
  margin: 0.2rem 0 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--ink-soft);
}

.day-accordion__chevron {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.day-accordion__header[aria-expanded="true"] .day-accordion__chevron {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .day-accordion__chevron { transition: none; }
}

.day-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .day-accordion__panel { transition: none; }
}

.day-accordion__panel-inner {
  padding: 0 1.1rem 1.1rem;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.session-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.9rem 1.1rem 1rem;
}

.session-card__time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.session-card__topic {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.session-card__presenter {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.session-card__doi {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.session-card__doi:hover {
  border-color: var(--accent);
}
