/* services/shared/static/css/base.css */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Body ── */
body {
  font-family: var(--font);
  font-size: var(--font-size);
  color: var(--ink);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Viewing-As Banner ─────────────────────────── */
.viewing-as-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--bg-hover);
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-sm);
  color: var(--ink-2);
  z-index: 1000;
}

.viewing-as-clear {
  background: transparent;
  border: 1px solid var(--bg-hover);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: var(--font-size-sm);
  color: var(--accent);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.viewing-as-clear:hover {
  border-color: var(--accent);
}
