﻿/* ========================================================================== */
/* VIRTUAL FILE: base.css                                                      */
/* ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--navy-900);
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;
}

p {
  margin-top: 0;
  max-width: var(--content-reading);
}

small {
  font-size: var(--fs-body-sm);
}

.card-base {
  background: #fff;
  border: var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  color: var(--text);
  background: var(--white);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* iOS home-indicator safe area */
  padding-bottom: env(safe-area-inset-bottom);
}

/* Remove iOS tap flash on interactive elements */
a,
button,
[role="button"],
input[type="button"],
input[type="submit"] {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent double-tap zoom delay on buttons/links */
a,
button,
.btn,
label,
summary {
  touch-action: manipulation;
}

/* Prevent iOS from zooming into inputs (requires font-size ≥ 16px) */
@media (max-width: 820px) {
  input,
  select,
  textarea {
    font-size: max(16px, 1rem);
  }
}

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

iframe {
  max-width: 100%;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--blue-700);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

@media (max-width: 390px) {
  .container {
    width: calc(100% - 24px);
  }
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(47, 143, 240, 0.7);
  outline-offset: 3px;
}

::selection {
  background: rgba(47, 143, 240, 0.18);
  color: var(--navy-900);
}
/* Vertical flow rhythm utility */
.flow > * + * {
  margin-top: var(--space-3);
}

.flow.flow-tight > * + * {
  margin-top: var(--space-2);
}

.flow.flow-loose > * + * {
  margin-top: var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Headings */
/* ========================================================================== */

