/**
 * Loaded from /critical-layout.css (static file in /public).
 * If /_next/static/chunks/*.css fails, this still gives base layout + container.
 */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

body.theme-root {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: #1e293b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.main-surface {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.ltc-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 72rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .ltc-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ltc-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  /* Dropdown must not be clipped by sticky stacking contexts */
  overflow: visible;
}

/* Locale + header actions: always interactive, above page chrome */
.ltc-locale-switcher {
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.ltc-locale-menu {
  position: absolute;
  z-index: 200;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  min-width: 11rem;
  list-style: none;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

/**
 * Home “Key features” grid: fixed 1 → 2 → 3 columns (not auto-fit, which can
 * create 4+2 on wide viewports when Tailwind fails to load or is overridden).
 * #features bumps specificity so bundled CSS cannot override.
 */
section#features .ltc-features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  section#features .ltc-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  section#features .ltc-features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
