/* What every page listing open outings shares: the chips (entry rule, seats) and the
   « ligne de sortie ouverte » (sortie/open-outings-rows.js). Loaded after randonnees.css,
   whose variables it uses. The /sorties-ouvertes blocks follow. */

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.chip:empty {
  display: none;
}

.chip-rule {
  background: #eef3fc;
  border-color: #c9d7f0;
  color: #0f2a63;
}

.chip-rule.is-open {
  background: #e7f5ec;
  border-color: #bfe3cb;
  color: #14532d;
}

/* --- Other open outings --------------------------------------------------------------------- */

.others {
  margin-top: 32px;
}

.others h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.others-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orow {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 14px 12px 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
}

.orow-date {
  flex: none;
  width: 54px;
  height: 60px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.orow-date small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orow-date b {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.orow-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orow-title {
  font-size: 16.5px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.orow-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.orow .chips-row {
  margin-top: 3px;
}

.orow .chip {
  height: 24px;
  font-size: 12px;
}

.orow svg {
  flex: none;
  width: 18px;
  height: 18px;
  opacity: 0.55;
}

@media (prefers-color-scheme: dark) {
  .chip-rule {
    background: rgba(26, 98, 240, 0.2);
    border-color: rgba(157, 192, 255, 0.45);
    color: #d6e4ff;
  }

  .chip-rule.is-open {
    background: rgba(22, 163, 74, 0.2);
    border-color: rgba(134, 239, 172, 0.45);
    color: #c6f6d5;
  }

  .orow-date {
    color: var(--ink);
  }
}

/* --- /sorties-ouvertes ---------------------------------------------------------------------- */

.oo-live {
  margin: 18px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}

.oo-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--depart);
}

.oo-live.is-off::before {
  background: var(--muted);
}

.oo-state {
  margin-top: 28px;
  padding: 26px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.oo-state h2 {
  font-size: 24px;
}

.oo-state p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

.oo-state .note {
  font-size: 13.5px;
  color: var(--muted);
}

.oo-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.oo-actions a,
.oo-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: 700 15px Manrope, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.oo-actions .primary {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}

.oo-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.oo-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oo-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.oo-card .tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eab308;
  color: #07132e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oo-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.oo-card .note {
  font-size: 13px;
  color: var(--muted);
}

.oo-card a.cta {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 800;
  text-decoration: none;
}

.oo-list {
  margin-top: 28px;
}

.oo-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 12px;
}

.oo-list-head h2 {
  font-size: 22px;
}

.oo-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.oo-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oo-organise {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.oo-how {
  margin-top: 44px;
}

.oo-how .kicker {
  color: var(--action);
}

.oo-how h2 {
  margin-top: 8px;
}

.oo-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  counter-reset: step;
}

.oo-steps li {
  counter-increment: step;
  padding: 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.oo-steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.oo-steps b {
  display: block;
  margin-top: 12px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.oo-steps p {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hidden {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  .oo-steps li::before {
    background: var(--action);
  }
}
