/* ═══════════════════════════════════════════════════════════════
   Montreal ESK8 — rides.css
   Public ride calendar list.
   PR-60 / DIP-96: type floor — raised sub-9px (0.52–0.58rem) to 0.65rem
   matching DIP-32 dashboard.css readable floor.
═══════════════════════════════════════════════════════════════ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding: 0 48px;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  align-items: center;
}

.hero-text {
  z-index: 2;
  padding: 80px 0;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 0.9;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.construction {
  background: rgba(0, 212, 255, 0.03);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.rides-section {
  padding: 100px 48px;
}

.rides-section > .section-label,
.rides-section > .section-title,
.rides-section > .section-sub {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.rides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 40px auto 0;
}

.rides-state {
  grid-column: 1 / -1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  padding: 32px 0;
  margin: 0;
}

.rides-state.rides-error { color: var(--accent); }

/* PR-59 / DIP-95 — HUD loading (dashboard rings language, glass frame) */
.rides-state--loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 24px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 32px rgba(0, 212, 255, 0.04),
    inset 0 0 40px rgba(0, 212, 255, 0.02);
  border-radius: 4px;
}

.rides-state--loading .rides-state-text {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  animation: pulse 1.5s ease-in-out infinite;
}

.rides-state--loading .rides-state-tag {
  animation: pulse 1.5s ease-in-out infinite;
  animation-delay: 0.2s;
}

/* ── PR-93 / DIP-129 — skeleton card placeholders (Firestore perceived load) ── */
.rides-skeleton {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.rides-skeleton-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 4px;
  font-family: 'Share Tech Mono', monospace;
}

.rides-skeleton-text {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.rides-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.ride-card--skeleton {
  pointer-events: none;
  cursor: default;
  min-height: 220px;
}

.ride-card--skeleton:hover {
  border-color: var(--glass-border);
  background: var(--glass);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.04);
}

.ride-card-actions--skeleton {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* Shared skeleton bones (rides + spots) */
.skel {
  display: block;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 118, 188, 0.08) 0%,
    rgba(0, 212, 255, 0.16) 45%,
    rgba(0, 118, 188, 0.08) 90%
  );
  background-size: 220% 100%;
  animation: skel-shimmer 1.35s ease-in-out infinite;
}

.skel-line { height: 0.65rem; }
.skel-date { width: 42%; }
.skel-badge { width: 4.5rem; height: 1.1rem; }
.skel-title { width: 78%; height: 1.35rem; margin-top: 2px; }
.skel-route { width: 55%; }
.skel-desc { width: 100%; height: 0.72rem; }
.skel-desc--short { width: 68%; }
.skel-meta { width: 48%; margin-top: 6px; }
.skel-bar { width: 100%; height: 0.35rem; margin-top: 4px; border-radius: 99px; }
.skel-btn { width: 5.5rem; height: 2rem; border-radius: 2px; }

@keyframes skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skel {
    animation: none;
    background: rgba(0, 118, 188, 0.12);
  }
  .rides-state--loading .rides-state-text,
  .rides-state--loading .rides-state-tag {
    animation: none;
  }
}

/* Shared concentric HUD load rings (also used on spots) */
.hud-load-rings {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hud-load-ring {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
  animation: spin 20s linear infinite;
}

.hud-load-ring--1 {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(0, 118, 188, 0.35);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.08);
}

.hud-load-ring--2 {
  width: 44px;
  height: 44px;
  border: 1px dashed rgba(224, 32, 47, 0.32);
  animation-duration: 8s;
  animation-direction: reverse;
}

.hud-load-ring--3 {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  animation-duration: 4s;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.15);
}

/* PR-44 / DIP-80 — HUD empty placeholder (no-rides) */
.rides-state--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 32px rgba(0, 212, 255, 0.04),
    inset 0 0 40px rgba(0, 212, 255, 0.02);
  border-radius: 4px;
}

.rides-state-icon {
  display: flex;
  color: var(--cyan, #00d4ff);
  opacity: 0.45;
}
.rides-state-icon svg { width: 32px; height: 32px; }

.rides-state-text {
  margin: 0;
  max-width: 28ch;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.rides-state-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan, #00d4ff);
  opacity: 0.5;
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 3px 10px;
  border-radius: 2px;
}

/* PR-40 — shared HUD card border/glow (paired with .spot-card) */
.ride-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.04);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ride-card:hover {
  border-color: var(--border-mid);
  background: var(--card-hover);
  box-shadow: 0 0 36px rgba(0, 212, 255, 0.07);
}

.ride-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ride-card-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
}

.ride-card-private {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 90, 60, 0.35);
  padding: 3px 8px;
  margin-bottom: 10px;
}

.ride-card-full {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  margin-bottom: 10px;
  margin-left: 6px;
}

.ride-card-level {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(0,118,188,0.3);
  padding: 3px 8px;
  white-space: nowrap;
}

.ride-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1.05;
  margin: 0;
}

.ride-card-route {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0;
}

.ride-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.ride-card-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── PR-87 / DIP-123 — rider avatar "N going" preview on list cards ── */
.ride-going-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  min-height: 28px;
}

.ride-going-faces {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.ride-going-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg, #0a0e14);
  background: rgba(0, 118, 188, 0.25);
  overflow: hidden;
  flex-shrink: 0;
  margin-left: -8px;
  box-shadow: 0 0 0 1px rgba(0, 118, 188, 0.35);
}

.ride-going-faces .ride-going-avatar:first-child {
  margin-left: 0;
}

.ride-going-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ride-going-avatar--initials {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--blue, #0076bc);
  text-transform: uppercase;
  line-height: 1;
}

.ride-going-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-left: -6px;
  padding: 0 6px;
  border-radius: 14px;
  border: 2px solid var(--bg, #0a0e14);
  background: rgba(255, 255, 255, 0.06);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  box-shadow: 0 0 0 1px var(--border);
}

.ride-going-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── PR-54 / DIP-90 — ride capacity badge + fill bar ─────────── */
.ride-capacity {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.ride-capacity-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ride-capacity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(0, 118, 188, 0.35);
  background: rgba(0, 118, 188, 0.08);
  padding: 3px 8px;
  line-height: 1.2;
  white-space: nowrap;
}

.ride-capacity-full-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  white-space: nowrap;
}

.ride-capacity-track {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  overflow: hidden;
}

.ride-capacity-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--blue), rgba(0, 212, 255, 0.85));
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
  transition: width 0.25s ease;
}

.ride-capacity--open .ride-capacity-badge {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.ride-capacity--open .ride-capacity-track {
  display: none;
}

.ride-capacity--capped .ride-capacity-fill {
  width: 0;
  box-shadow: none;
}

.ride-capacity--low .ride-capacity-badge {
  color: var(--blue);
  border-color: rgba(0, 118, 188, 0.4);
}

.ride-capacity--mid .ride-capacity-badge {
  color: var(--text);
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.08);
}

.ride-capacity--mid .ride-capacity-fill {
  background: linear-gradient(90deg, var(--blue), rgba(0, 212, 255, 0.95));
}

.ride-capacity--high .ride-capacity-badge {
  color: var(--accent);
  border-color: rgba(255, 90, 60, 0.4);
  background: rgba(255, 90, 60, 0.08);
}

.ride-capacity--high .ride-capacity-fill {
  background: linear-gradient(90deg, rgba(255, 140, 60, 0.9), var(--accent));
  box-shadow: 0 0 10px rgba(255, 90, 60, 0.3);
}

.ride-capacity--full .ride-capacity-badge {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.ride-capacity--full .ride-capacity-fill {
  background: linear-gradient(90deg, rgba(140, 140, 150, 0.7), rgba(180, 180, 190, 0.55));
  box-shadow: none;
}

/* Detail fact cell: capacity widget fills the dd */
.ride-detail-fact .ride-capacity {
  margin-top: 0;
  min-width: 0;
}

.ride-detail-fact .ride-capacity-badge {
  font-size: 0.62rem;
}

.ride-detail-fact .ride-capacity-track {
  height: 5px;
}

.ride-card-cta {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 0.68rem;
  padding: 10px 18px;
}

.ride-card-title-link {
  color: inherit;
  text-decoration: none;
}

.ride-card-title-link:hover,
.ride-card-title-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.ride-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ── Ride detail page (PR-33) ───────────────────────────────── */

.ride-detail-section {
  padding: 100px 48px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.ride-detail-root {
  margin-top: 28px;
}

.ride-detail-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 32px rgba(224, 32, 47, 0.06);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ride-detail-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ride-detail-back-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  width: fit-content;
}

.ride-detail-back-link:hover,
.ride-detail-back-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.ride-detail-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.05;
  margin: 0;
}

.ride-detail-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.ride-detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
}

.ride-detail-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ride-detail-fact dt {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.ride-detail-fact dd {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0;
  line-height: 1.45;
}

.ride-detail-rsvp-state.is-active {
  color: var(--accent);
}

.ride-detail-section-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.ride-detail-spots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ride-detail-spot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.ride-detail-spot-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: var(--white);
  text-decoration: none;
}

.ride-detail-spot-link:hover,
.ride-detail-spot-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.ride-detail-empty {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.ride-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* PR-85 / DIP-121 — copy/share ride link */
.ride-copy-link {
  cursor: pointer;
  font-family: inherit;
}

.ride-copy-link.is-copied {
  border-color: var(--accent, #00e5ff);
  color: var(--accent, #00e5ff);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.18);
}

.ride-copy-link-status {
  margin: 8px 0 0;
  min-height: 1.1em;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ride-copy-link-status.is-visible {
  opacity: 1;
  color: var(--accent, #00e5ff);
}

.ride-copy-link-status.is-error {
  color: var(--danger, #ff5c5c);
}

/* PR-86 / DIP-122 — download single-ride .ics */
.ride-ics-btn {
  cursor: pointer;
  font-family: inherit;
}

.ride-ics-btn.is-done {
  border-color: var(--accent, #00e5ff);
  color: var(--accent, #00e5ff);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.18);
}

.ride-ics-status {
  margin: 4px 0 0;
  min-height: 1.1em;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ride-ics-status.is-visible {
  opacity: 1;
  color: var(--accent, #00e5ff);
}

.ride-ics-status.is-error {
  color: var(--danger, #ff5c5c);
}

.ride-detail-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.ride-detail-back {
  font-size: 0.68rem;
  padding: 10px 18px;
}

@media (max-width: 900px) {
  .ride-detail-section { padding: 72px 20px 60px; }
  .ride-detail-card { padding: 22px 18px 26px; }
  .ride-detail-facts { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ride-card-actions { flex-direction: column; align-items: stretch; }
  .ride-card-actions .ride-card-cta { align-self: stretch; text-align: center; }
}

/* PR-26 — inline RSVP on public ride cards (mirrors dash-rsvp, public tokens) */
/* PR-47 / DIP-83 — Going/Maybe/Cancel distinguished by glyph + border style, not color alone */
.ride-rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
}

.ride-rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  min-height: 36px;
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

/* Glyphs: shape/symbol cue independent of color (a11y) */
.ride-rsvp-btn::before {
  font-size: 0.85em;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.9;
}

.ride-rsvp-btn[data-rsvp="going"] {
  border-style: solid;
  border-width: 1px;
}
.ride-rsvp-btn[data-rsvp="going"]::before {
  content: "\2713"; /* ✓ */
}

.ride-rsvp-btn[data-rsvp="maybe"] {
  border-style: dashed;
  border-width: 1px;
}
.ride-rsvp-btn[data-rsvp="maybe"]::before {
  content: "?";
}

.ride-rsvp-btn[data-rsvp="cancelled"],
.ride-rsvp-btn--cancel {
  border-style: double;
  border-width: 3px;
  color: var(--muted);
  border-color: var(--border);
}
.ride-rsvp-btn[data-rsvp="cancelled"]::before,
.ride-rsvp-btn--cancel::before {
  content: "\00D7"; /* × */
}

.ride-rsvp-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Active: Going = solid success fill; Maybe = dashed warn outline (not same green) */
.ride-rsvp-btn[data-rsvp="going"].active {
  color: var(--success, #00c264);
  border-style: solid;
  border-color: rgba(0, 194, 100, 0.55);
  background: rgba(0, 194, 100, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 194, 100, 0.25);
}

.ride-rsvp-btn[data-rsvp="maybe"].active {
  color: var(--warn, #f0a500);
  border-style: dashed;
  border-color: rgba(240, 165, 0, 0.55);
  background: rgba(240, 165, 0, 0.1);
  box-shadow: none;
}

.ride-rsvp-btn[data-rsvp="cancelled"]:hover,
.ride-rsvp-btn--cancel:hover {
  color: var(--accent);
  border-color: rgba(224, 32, 47, 0.55);
  background: rgba(224, 32, 47, 0.06);
}

.ride-rsvp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ride-rsvp-error {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .ride-rsvp-btn {
    min-height: 44px;
    padding: 10px 14px;
  }
}

.rides-cta {
  padding: 80px 48px 100px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.rides-cta .section-title {
  margin-bottom: 16px;
}

.rides-cta .section-sub {
  max-width: 520px;
  margin: 0 auto 28px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0 20px;
    padding-top: var(--nav-h);
    min-height: auto;
  }
  .hero-text { padding: 48px 0 24px; }
  .hero-visual { height: 280px; }
  .rides-section { padding: 60px 20px; }
  .rides-cta { padding: 60px 20px 80px; }
}

@media (max-width: 480px) {
  .rides-grid { grid-template-columns: 1fr; }
}