/* =========================================
   DRD – Base / Design tokens / Reset
   ========================================= */

/* Design tokens */
:root {
  --color-navy: #1f3f78;
  --color-teal: #007c9e;

  /* page background (neutral, not blue) */
  --color-bg: #f8fafc;

  --color-white: #ffffff;
  --color-text: #1f2533;
  --color-muted: #6d7485;
  --color-border: #dde3f0;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 28px rgba(10, 23, 55, 0.16);
  --transition-fast: 0.18s ease-out;
}

/* Reset / globals */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  background: var(--color-bg);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent; /* important: avoid any bottom flash color */
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;

  /* mobile-safe viewport height */
  min-height: 100dvh;

  overflow-x: hidden;

  /* safe area (iOS/Android) */
  padding-bottom: env(safe-area-inset-bottom);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

/* Background gradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px circle at -10% -10%, rgba(31, 63, 120, 0.28), transparent 60%),
    radial-gradient(1200px circle at 110% 110%, rgba(0, 124, 158, 0.26), transparent 58%),
    linear-gradient(180deg, #f5f7fd 0%, #f8fafc 42%, #edf2fb 100%);
  background-blend-mode: soft-light, soft-light, normal;
}

/* Better text wrapping (prevents ugly overflow on small screens) */
h1, h2, h3, p {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

/* Utilities */
.nowrap { white-space: nowrap; }
.nowrap-desktop { white-space: nowrap; }
