/**
 * Mezzo — Shared Page Layout Styles
 * Uses design token custom properties exclusively.
 * Shared by monitoring.html and privacy.html for base layout.
 */

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

.hidden {
  display: none !important;
}

/* ── Base ── */
html {
  overflow-y: scroll;
}

body {
  background: var(--surface);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════
   Page Layout
   ═══════════════════════════════════════════ */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.nav-scrolled {
  background: var(--surface-nav, rgba(240, 235, 226, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.type-nav-wordmark {
  text-decoration: none;
}

.nav-links,
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-link-quiet {
  color: var(--text-subdued);
}

.nav-link-accent {
  color: var(--hanko-fill);
}

.nav-link-active {
  color: var(--text-default);
  cursor: default;
  padding-bottom: 3px;
  border-bottom: 4px solid rgba(194, 92, 65, 0.5);
}

.nav-link-active:hover {
  opacity: 1;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-page-gap) 32px;
}

/* ═══════════════════════════════════════════
   Content Spacing
   ═══════════════════════════════════════════ */

.cal-heading {
  max-width: 560px;
  margin-bottom: var(--space-heading-to-content);
}

.cal-body {
  max-width: 460px;
  margin-bottom: var(--space-circle-to-button);
}

.cal-micro {
  margin-top: var(--space-button-to-micro);
  max-width: 460px;
}

.cal-micro-long {
  margin-top: var(--space-page-gap);
}

/* ═══════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════ */

.btn-wide {
  padding: 16px 64px;
  min-width: 240px;
}

.btn-recalibrate {
  background: none;
  border: none;
  color: var(--hanko-text);
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  margin-top: var(--space-heading-to-content);
  transition: var(--transition-hover);
}

.btn-recalibrate:hover {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   Ring Circle (Calibrating View)
   ═══════════════════════════════════════════ */

.ring-container {
  position: relative;
  width: var(--circle-within);
  height: var(--circle-within);
  margin-bottom: var(--space-circle-to-button);
}

.ring-variant {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.ring-variant.active {
  opacity: 1;
}

/* Gentle pulsating scale animation */
@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.ring-container.pulsing {
  animation: gentle-pulse 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (min-width: 900px) {
  .nav {
    padding-left: 120px;
    padding-right: 120px;
  }

  .cal-heading {
    max-width: 700px;
  }
}
