/* explorer-web: site tokens on top of Tabler, plus the auth frame.
   No external fonts: system UI stack only (AGENTS.md, no third-party hosts). */

:root,
[data-bs-theme="light"] {
  --ex-fog: #eef2f0; /* page */
  --ex-paper: #ffffff; /* content column */
  --ex-ink: #1d2a2e; /* text */
  --ex-pine: #2f5d50; /* primary actions */
  --ex-pine-dark: #244a40;
  --ex-moss: #8fae93; /* contour lines */
  --ex-moss-index: #5f8466; /* every fifth contour */
  --ex-map: #dfe8e2; /* map panel */
  --ex-ochre: #c98a1e; /* focus ring only */

  --tblr-primary: var(--ex-pine);
  --tblr-primary-rgb: 47, 93, 80;
  --tblr-primary-fg: #ffffff;
  --tblr-primary-darken: var(--ex-pine-dark);
  --tblr-body-bg: var(--ex-fog);
  --tblr-body-color: var(--ex-ink);
}

[data-bs-theme="dark"] {
  --ex-fog: #121b1d;
  --ex-paper: #18242a;
  --ex-ink: #e3eae7;
  --ex-pine: #8cc2ad;
  --ex-pine-dark: #a3d1bf;
  --ex-moss: #2f4a43;
  --ex-moss-index: #4c7066;
  --ex-map: #152225;
  --ex-ochre: #e3a945;

  --tblr-primary: var(--ex-pine);
  --tblr-primary-rgb: 140, 194, 173;
  --tblr-primary-fg: #0f1f1a;
  --tblr-primary-darken: var(--ex-pine-dark);
  --tblr-body-bg: var(--ex-fog);
  --tblr-body-color: var(--ex-ink);
}

:focus-visible {
  outline: 3px solid var(--ex-ochre);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
}

/* ---- auth frame: contour-map panel + one narrow content column ---------------- */

.auth-page {
  background: var(--ex-fog);
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(22rem, 5fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-map {
  position: relative;
  overflow: hidden;
  background: var(--ex-map);
}

.auth-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-contours .contour {
  fill: none;
  stroke: var(--ex-moss);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

.auth-contours .contour-index {
  stroke: var(--ex-moss-index);
  stroke-width: 1.8;
}

.auth-brand {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(1.5rem, 6vh, 4rem);
  max-width: 26rem;
}

.auth-brand p {
  /* keeps the type readable where contour lines run underneath */
  text-shadow:
    0 0 6px var(--ex-map),
    0 0 14px var(--ex-map),
    0 0 24px var(--ex-map);
}

.auth-wordmark {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--ex-ink);
}

.auth-tagline {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ex-ink);
  opacity: 0.8;
}

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4.5rem);
  background: var(--ex-paper);
}

.auth-panel {
  width: 100%;
  max-width: 22rem;
}

.auth-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-lead {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tblr-secondary-color);
}

.auth-cta {
  gap: 0.5rem;
  justify-content: center;
}

.auth-foot {
  margin: 2.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--tblr-secondary-color);
}

.app-messages {
  margin-bottom: 1.25rem;
}

@media (max-width: 47.99rem) {
  .auth {
    grid-template-columns: 1fr;
    grid-template-rows: 11rem 1fr;
  }

  .auth-brand {
    bottom: 1.25rem;
  }

  .auth-wordmark {
    font-size: 3rem;
  }

  .auth-tagline {
    display: none;
  }

  .auth-main {
    justify-content: flex-start;
  }
}
