/* mira-site/explore/explore.css (arch-100). The explore family: shared
   header, fixture grammar, cards, legend, and footer for the public build
   tour. Colors, type and spacing come from ../tokens.css. This file adds
   ONE additive family of custom properties: the cool slate "example data /
   not checked" set (the arch-85 unverified palette), which the frozen
   token file does not carry. tokens.css itself is untouched.
   Family grammar, kept consistent with the main site:
     teal  = machine-checked (seals, measured math, primary actions)
     gold  = citations and document names
     amber = a person to talk to (the refusal-warmth family)
     slate = example data and unchecked guesses (dashed, hatched, square) */

:root {
  --unv: #4d5a67;
  --unv-ink: #2f3941;
  --unv-bg: #eceff3;
  --unv-line: #93a2b1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Language siblings: exactly one is visible, chosen by html[data-lang]. */
html[data-lang="en"] .l-es { display: none; }
html[data-lang="es"] .l-en { display: none; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 20;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { left: 0.5rem; top: 0.5rem; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- shared header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; padding: 0.65rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.wordmark {
  font-family: var(--font-law);
  font-size: 1.5rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--accent); }
.wordmark small {
  display: block; font-family: var(--font-ui);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: -0.2rem;
}
.backlink {
  font-size: var(--fs-small); font-weight: 600;
  color: var(--accent-deep); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: var(--radius-chip);
  padding: 0.35rem 0.85rem; white-space: nowrap;
}
.backlink:hover { background: var(--accent-wash); color: var(--accent-deep); }
.lang {
  display: flex; border: 1.5px solid var(--line);
  border-radius: var(--radius-chip); overflow: hidden;
  background: var(--paper-raised); flex: none;
}
.lang button {
  font-family: var(--font-ui); font-size: var(--fs-small); font-weight: 600;
  padding: 0.55rem 0.9rem; min-height: 44px; min-width: 44px;
  border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
}
.lang button:hover { background: var(--accent-wash); color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button[aria-pressed="true"]:hover { background: var(--ink); color: var(--paper); }

/* ---------- page rhythm ---------- */
.xwrap { max-width: var(--maxw-prose); margin: 0 auto; padding: 0 1.25rem 2.5rem; }
.xwrap.xwide { max-width: var(--maxw-wide); }
.xhead { padding: 2.4rem 0 0.4rem; }
.kicker {
  font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 0.4rem;
}
h1 {
  font-family: var(--font-law);
  font-size: var(--fs-h2); line-height: 1.15; font-weight: 700;
  margin-bottom: 0.8rem;
}
.lead { color: var(--ink-soft); max-width: 38em; margin-bottom: 0.8rem; }
h2.xh {
  font-family: var(--font-law);
  font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.25; font-weight: 700;
  margin: 2.2rem 0 0.6rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.xnote { font-size: var(--fs-small); color: var(--ink-soft); max-width: 40em; margin-bottom: 0.8rem; }
.xprose p { margin-bottom: 0.9rem; max-width: 42em; }
.xprose p:last-child { margin-bottom: 0; }

/* ---------- state chips + the fixture grammar ---------- */
.chiprow { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.state-chip {
  display: inline-block;
  font-size: var(--fs-small); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-chip);
  padding: 0.16rem 0.7rem;
}
.state-chip.working { background: var(--accent); color: var(--paper-raised); }
.state-chip.build {
  background: var(--accent-wash); color: var(--accent-deep);
  border: 1.5px solid var(--accent);
}
.fixchip {
  display: inline-flex;
  background: var(--unv-ink); color: #fff;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 4px;
}
.fixture {
  background-color: var(--unv-bg);
  background-image: repeating-linear-gradient(45deg,
    rgba(77,90,103,0) 0, rgba(77,90,103,0) 9px,
    rgba(77,90,103,0.055) 9px, rgba(77,90,103,0.055) 18px);
  border: 2px dashed var(--unv-line); border-radius: var(--radius);
  padding: 0.9rem 1rem; margin: 1rem 0;
  color: var(--unv-ink); font-size: var(--fs-small);
}
.fixture .fixchip { margin-bottom: 0.5rem; }

/* ---------- the legend (how to read the labels) ---------- */
.legend-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0 0.4rem; }
.legend-list li { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; align-items: baseline; }
.legend-list .ltxt { color: var(--ink-soft); flex: 1 1 16em; min-width: 14em; }

/* ---------- cards ---------- */
.xcards { list-style: none; display: grid; gap: 1rem; margin: 1.4rem 0 0.6rem; }
.xcard {
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--pad-card);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem;
}
.xcard h3 { font-family: var(--font-law); font-size: var(--fs-h3); line-height: 1.3; }
.xcard p { color: var(--ink-soft); }
.xcard .go {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.5rem 1.2rem; margin-top: 0.4rem;
  border-radius: var(--radius); background: var(--accent);
  color: var(--paper-raised); font-weight: 700; text-decoration: none;
}
.xcard .go:hover { background: var(--accent-deep); color: var(--paper-raised); }
@media (min-width: 900px) {
  .xcards { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
}

/* ---------- shared footer ---------- */
.xfoot { border-top: 1px solid var(--line); margin-top: 2.6rem; padding: 1.6rem 1.25rem 2.8rem; }
.xfoot .foot-inner {
  max-width: var(--maxw-prose); margin: 0 auto;
  font-size: var(--fs-small); color: var(--ink-soft);
}
.xfoot p { margin-bottom: 0.6rem; }
.xfoot p:last-child { margin-bottom: 0; }
