/* Sign-in, checking and the static pages (404, terms, policy). Tokens and buttons live in tokens.css. */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header--plain {
  border-bottom-color: transparent;
  background: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  max-width: var(--content-width);
  min-height: 56px;
  margin: 0 auto;
  padding: var(--s-2) var(--s-4);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}

.site-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 var(--s-2);
  border-radius: var(--r-2);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}

.site-switch:hover {
  background: var(--surface-3);
  color: var(--text);
}

.site-switch__icon {
  flex: none;
}

@media (max-width: 30rem) {
  .site-switch__label {
    display: none;
  }
}

/* ---------- Sign-in and checking ---------- */

.signin {
  display: grid;
  place-items: center;
  padding: var(--s-6) var(--s-4) var(--s-7);
}

.signin__card {
  display: grid;
  gap: var(--s-4);
  width: 100%;
  max-width: 26rem;
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
}

.signin__mark {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.signin__head {
  display: grid;
  gap: var(--s-1);
}

.signin__eyebrow {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.signin__title {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.signin__lead {
  color: var(--text-2);
}

.signin__button {
  width: 100%;
}

.signin__note {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: var(--fs-xs);
}

/* ---------- Documents (terms, policy, 404) ---------- */

.document {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--s-7) var(--s-4) var(--s-6);
  font-size: var(--fs-md);
  line-height: 1.6;
}

.document__title {
  margin: 0 0 var(--s-1);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.document__updated {
  margin: 0 0 var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.document h2 {
  margin: var(--s-6) 0 var(--s-2);
  font-size: var(--fs-lg);
  font-weight: 600;
}

.document h3 {
  margin: var(--s-5) 0 var(--s-1);
  color: var(--text-2);
  font-size: var(--fs-md);
  font-weight: 600;
}

.document p {
  margin: 0 0 var(--s-3);
}

.document ul {
  margin: 0 0 var(--s-3);
  padding-left: 1.2rem;
}

.document li + li {
  margin-top: 6px;
}

.document strong {
  font-weight: 600;
}

/* ---------- Status pages (404) ---------- */

.document--status {
  padding-top: var(--s-7);
}

.document__code {
  margin: 0 0 var(--s-2);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.document__lead {
  color: var(--text-2);
}

.document--status .btn-row {
  margin-top: var(--s-5);
}
