*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

/* Global background color requested by user */
html,
body {
  background-color: #D8F1B1;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--color-neutral-800);
  /* keep color token fallback but overridden by html rule above */

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* normalize native controls to match site form styling */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-neutral-700) 16%, transparent 84%);
  background: rgba(255,255,255,0.92);
}

button {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-neutral-900);
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
}

h4 {
  font-size: var(--step-1);
}

h5,
h6 {
  font-size: var(--step-0);
}

a {
  color: var(--color-forest-600);
  text-decoration: underline;
  text-decoration-thickness: 0.125em;
  text-underline-offset: 0.125em;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-forest-700);
}

a:focus-visible {
  outline: 2px solid var(--color-forest-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul,
ol {
  padding-left: var(--space-m);
}

li {
  margin-bottom: var(--space-2xs);
}

blockquote {
  border-left: 4px solid var(--color-forest-300);
  padding-left: var(--space-m);
  margin: var(--space-m) 0;
  font-style: italic;
  color: var(--color-neutral-700);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--color-neutral-100);
  padding: 0.125em 0.25em;
  border-radius: var(--radius-sm);
}

pre {
  font-family: var(--font-mono);
  background-color: var(--color-neutral-100);
  padding: var(--space-s);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-m) 0;
}

th,
td {
  padding: var(--space-xs) var(--space-s);
  text-align: left;
  border-bottom: 1px solid var(--color-neutral-200);
}

th {
  font-weight: 600;
  background-color: var(--color-neutral-100);
}

.u-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.u-skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-forest-600);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.u-skip-link:focus {
  top: 6px;
}

.u-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.u-text-balance {
  text-wrap: balance;
}

.u-text-pretty {
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .u-hidden-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .u-hidden-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   Global background overrides
   Ensure the requested site-wide background (#D8F1B1) shows through by
   making common surface elements transparent. Use !important sparingly
   here because these intentionally override component-level backgrounds.
   ========================================================================== */

/* Make layout sections and card-like components transparent so the
   html/body background is visible site-wide */
.l-section,
.p-home__feature-card,
.p-guide__step,
.p-events__item,
.p-team__member,
.p-contact__info-item,
.p-home__hero,
.p-success__content,
.p-map__location,
.p-events__date {
  background: transparent !important;
}

/* Ensure overlays that previously used dark gradients are slightly more transparent */
.p-map__location-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent) !important;
}

/* Apply the same global background to footer to make the site uniform.
   Update footer text color for contrast on the light background. */
.l-footer {
  background: #D8F1B1 !important;
  color: var(--color-neutral-900) !important;
}

.c-footer__link {
  color: var(--color-forest-700) !important;
}

html,
body {
  background-color: #D8F1B1;
}

.l-header,
.l-container {
  background-color: #D8F1B1;
}
