:root {
  /* Abstractions */
  --color-bg: white;
  --color-text: black;
  --color-text-reversed: white;
  --color-text-subtle: var(--zinc-500);
  --color-link: var(--blue-700);
  --color-border-light: var(--zinc-100);
  --color-border: var(--zinc-200);
  --color-border-dark: var(--zinc-400);
  --color-selected: var(--blue-100);
  --color-selected-dark: var(--blue-300);
  --color-highlight: var(--yellow-200);

  /* Accent colors */
  --color-primary: var(--zinc-900);
  --color-secondary: var(--zinc-100);
  --color-negative: var(--red-600);
  --color-positive: var(--green-600);

  /* SVG color values */
  --color-filter-text: invert(0);
  --color-filter-text-reversed: invert(1);
  --color-filter-negative: invert(22%) sepia(85%) saturate(1790%) hue-rotate(339deg) brightness(105%) contrast(108%);
  --color-filter-positive: invert(44%) sepia(89%) saturate(409%) hue-rotate(89deg) brightness(94%) contrast(97%);
}



* {
  border-color: var(--color-border);
  scrollbar-color: #C1C1C1 transparent;
  scrollbar-width: thin;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-synthesis-weight: none;
  overscroll-behavior: none;
  text-rendering: optimizeLegibility;
}

.turbo-progress-bar {
  background-color: var(--color-primary);
}

::selection {
  background-color: var(--color-selected);
}

.badge {
  display: inline-block;
  font-size: 1em;
  font-weight: 600;
  padding: 0.15em 0.85em;
  border-radius: 1em;
  line-height: 1;
  margin-left: 0.5em;
  margin-right: 0.2em;
  background: #e5e7eb;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.badge--success {
  background: var(--color-positive, #22c55e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34,197,94,0.12);
}

.badge--muted {
  background: #e5e7eb;
  color: #374151;
}

.badge--info {
  background: #2563eb;
  color: #fff;
}

.badge-founders-circle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #fbf6ec;
  border: 1px solid #e7d7b5;
  color: #8c6818;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}

.badge-founders-circle--compact {
  padding: 0.1rem 0.45rem;
  font-size: 0.625rem;
}

/* Post status pills — used to label rides/stays as offering vs wanted (and
   stays' confirmed/pending states). Filled = "available now" / "you're in";
   dashed outline = "wanted / open"; this mirrors the filled-vs-outlined
   convention used on the coordination board's cards and dots. */
.post-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 0.2rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* Offering — filled, reads as "here, ready". */
.post-pill--offering-ride {
  background: var(--color-brand-primary);
  color: #fff;
  border: 1px solid var(--color-brand-primary);
}
.post-pill--offering-stay {
  background: var(--color-brand-gold);
  color: #fff;
  border: 1px solid var(--color-brand-gold);
}

/* Wanted — dashed outline, reads as "open, looking". */
.post-pill--wanted-ride {
  background: transparent;
  color: var(--color-brand-primary);
  border: 1px dashed var(--color-brand-primary);
}
.post-pill--wanted-stay {
  background: transparent;
  color: var(--color-brand-gold);
  border: 1px dashed var(--color-brand-gold);
}

/* Confirmed/checked-in — solid stay color, strongest "you're in" signal. */
.post-pill--confirmed-stay {
  background: var(--color-brand-gold);
  color: #fff;
  border: 1px solid var(--color-brand-gold);
}

/* Pending — neutral amber so it doesn't compete with offering/wanted colors. */
.post-pill--pending {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

/* Unmatched-row disclosure (matching page). Native <details>/<summary>. */
.unmatched-row > summary {
  list-style: none;
}
.unmatched-row > summary::-webkit-details-marker { display: none; }
.unmatched-row[open] > summary .unmatched-row__chev {
  transform: rotate(180deg);
}
