/* Night tokens from the home maquette. System fonts only: no remote sheet. */

.base-explorer {
  --bg: #111419;
  --bg2: #161A20;
  --panel: #1A1F26;
  --ink: #ECEAE4;
  --mute: #959CA5;
  --dim: #5E6670;
  --line: rgba(236, 234, 228, .11);
  --line2: rgba(236, 234, 228, .22);
  --sig: #FF6A2B;
  --volt: #F2C300;
  --teal: #2FB3A8;
  --pad: clamp(16px, 3vw, 40px);
  --sans: system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.base-explorer { overflow-x: clip; max-width: 100%; }

.base-explorer a { color: inherit; }
.base-explorer button,
.base-explorer input,
.base-explorer select { font: inherit; color: inherit; }

.base-explorer .wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.base-explorer .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.base-explorer .top {
  display: flex;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.base-explorer .brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.base-explorer .brand b { font-weight: 500; letter-spacing: -.03em; }

.base-explorer .banner {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  color: var(--volt);
  background: var(--bg2);
}

.base-explorer h1 {
  font-weight: 400;
  letter-spacing: -.04em;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 18px 0 8px;
  overflow-wrap: anywhere;
}

.base-explorer .lead {
  color: var(--mute);
  max-width: 62ch;
  margin: 0 0 22px;
}

.base-explorer .layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 48px;
}

.base-explorer .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  min-width: 0;
}

.base-explorer details.filters { min-width: 0; }

.base-explorer details.filters > summary {
  display: none;
}

.base-explorer .count {
  margin: 0 0 12px;
  color: var(--mute);
  font-size: 14px;
}

.base-explorer label {
  display: block;
  margin: 0 0 12px;
  color: var(--mute);
  font-size: 13px;
}

.base-explorer main input[type="search"],
.base-explorer main select,
.base-explorer main button {
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  background: var(--bg);
  border: 1px solid var(--line2);
  padding: 10px;
  border-radius: 2px;
  font-size: 16px;
}

.base-explorer main button {
  margin-top: 4px;
  color: #111;
  background: var(--ink);
  cursor: pointer;
}

.base-explorer .cards { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.base-explorer .card {
  display: block;
  min-width: 0;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--line);
  text-decoration: none;
}

.base-explorer .card:hover { border-color: var(--line2); }

.base-explorer .card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.base-explorer .when,
.base-explorer .summary { margin: 8px 0 0; overflow-wrap: anywhere; }

.base-explorer .summary { color: var(--mute); }

.base-explorer .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.base-explorer .tag {
  border: 1px solid var(--line2);
  padding: 2px 8px;
  color: var(--mute);
}

.base-explorer .tag.type {
  color: var(--bg);
  background: var(--sig);
  border-color: var(--sig);
}

.base-explorer .pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.base-explorer .pager a { color: var(--teal); }

.base-explorer .empty {
  color: var(--mute);
  padding: 20px;
  border: 1px dashed var(--line2);
}

@media (max-width: 800px) {
  .base-explorer .layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 390px) {
  .base-explorer .top { padding: 10px 0; }
  .base-explorer .banner { margin-top: 10px; padding: 8px 10px; }
  .base-explorer h1 { font-size: 1.5rem; margin: 10px 0 4px; }
  .base-explorer .lead { margin-bottom: 10px; }
  .base-explorer details.filters > summary {
    display: block;
    cursor: pointer;
    margin: 0 0 12px;
    padding: 10px 12px;
    background: var(--panel);
    border: 1px solid var(--line2);
    color: var(--ink);
    font-size: 16px;
  }
  .base-explorer details.filters > summary::-webkit-details-marker { display: none; }
}

/* Barre du site fixe (64 px) au-dessus de l'explorateur. */
.base-explorer { padding-top: 64px; }
