/* Shared by every page: base type, buttons, and the small sign-in / chooser /
   error pages. The handbook page adds handbook.css on top. */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
}
a { color: var(--kery-graphite); }
a:hover { color: var(--kery-terra); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px; box-sizing: border-box;
  border: 0; border-radius: var(--radius-pill);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
}
.btn-accent { background: var(--accent); color: var(--text-on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.btn-outline { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--kery-graphite); color: var(--text); }
.btn-block { display: flex; width: 100%; }

/* --- small pages ------------------------------------------------------------ */

.simple {
  min-height: 100vh; box-sizing: border-box;
  background: var(--kery-stone);
  padding: clamp(24px, 5vw, 56px) 16px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.simple-logo { height: 46px; width: auto; align-self: flex-start; }
.simple-card {
  width: 100%; max-width: 520px; box-sizing: border-box;
  background: var(--surface-raised); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
}
.simple-card h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.lede { margin: 0; font-size: 1.0625rem; }
.muted { margin: 0; color: var(--text-secondary); }
.tiny { margin: 0; font-size: 0.875rem; color: var(--text-secondary); }
.choose { display: grid; gap: 12px; }
.choose .btn { height: auto; min-height: 56px; padding: 10px 28px; flex-direction: column; gap: 0; }
.choose-note { font-size: 0.8125rem; font-weight: 400; opacity: 0.85; }

.preview-banner {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  background: var(--kery-yellow-3); color: var(--kery-graphite);
  text-align: center; font-size: 0.875rem; font-weight: 500; padding: 6px 16px;
}
