/* App shell utilities (replaces Tailwind CDN on crew/SC/landing pages). */

:root {
  --shell-brand-navy: #001a3f;
  --shell-brand-lime: #d2f55e;
  --shell-gray-900: #111827;
  --shell-white-10: rgba(255, 255, 255, 0.1);
  --shell-white-15: rgba(255, 255, 255, 0.15);
  --shell-white-20: rgba(255, 255, 255, 0.2);
  --shell-white-25: rgba(255, 255, 255, 0.25);
  --shell-white-70: rgba(255, 255, 255, 0.7);
  --shell-white-75: rgba(255, 255, 255, 0.75);
  --shell-navy-80: rgba(0, 26, 63, 0.8);
}

.bg-white { background: #fff; }
.bg-brandNavy { background: var(--shell-brand-navy); }
.bg-brandLime { background: var(--shell-brand-lime); }
.bg-white\/10 { background: var(--shell-white-10); }
.text-white { color: #fff; }
.text-gray-900 { color: var(--shell-gray-900); }
.text-brandNavy { color: var(--shell-brand-navy); }
.text-brandLime\/90 { color: rgba(210, 245, 94, 0.9); }
.text-white\/70 { color: var(--shell-white-70); }
.text-white\/75 { color: var(--shell-white-75); }
.text-brandNavy\/80 { color: var(--shell-navy-80); }

.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.no-underline { text-decoration: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shrink-0 { flex-shrink: 0; }
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-1 { margin-top: 0.25rem; }
.w-full { width: 100%; }
.w-8 { width: 2rem; }
.w-auto { width: auto; }
.h-8 { height: 2rem; }
.h-auto { height: auto; }
.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }
.min-h-\[52px\] { min-height: 52px; }
.min-h-\[88px\] { min-height: 88px; }
.max-w-3xl { max-width: 48rem; }
.max-w-lg { max-width: 32rem; }
.max-w-\[280px\] { max-width: 280px; }

.flex { display: flex; }
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.sticky { position: sticky; }
.fixed { position: fixed; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.z-50 { z-index: 50; }

.p-2 { padding: 0.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pb-\[calc\(5\.5rem\+env\(safe-area-inset-bottom\,0px\)\)\] {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
.pb-\[env\(safe-area-inset-bottom\,0px\)\] {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }

.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top: 1px solid var(--shell-white-10); }
.border-brandLime { border-color: var(--shell-brand-lime); }
.border-white\/25 { border-color: var(--shell-white-25); }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.drop-shadow-lg { filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.2)); }
.shadow-\[0_-4px_24px_rgba\(0\,26\,63\,0\.35\)\] {
  box-shadow: 0 -4px 24px rgba(0, 26, 63, 0.35);
}

.transition { transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.ring-2 { box-shadow: 0 0 0 2px var(--shell-white-20); }

.hidden { display: none; }
.col-span-1 { grid-column: span 1 / span 1; }

.hover\:bg-white\/20:hover { background: var(--shell-white-20); }
.hover\:bg-white\/15:hover { background: var(--shell-white-15); }
.hover\:border-brandLime\/60:hover { border-color: rgba(210, 245, 94, 0.6); }
.hover\:brightness-105:hover { filter: brightness(1.05); }
.active\:scale-\[0\.98\]:active { transform: scale(0.98); }

.focus-visible\:outline:focus-visible { outline: 2px solid var(--shell-brand-lime); outline-offset: 2px; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sm\:max-w-xs { max-width: 20rem; }
  .sm\:inline { display: inline; }
  .sm\:hidden { display: none; }
}

.load-timing {
  position: fixed;
  right: 8px;
  bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 26, 63, 0.82);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

body:not(:has(nav[aria-label="Crew navigation"])) .load-timing,
body:not(:has(nav[aria-label="Sales consultant navigation"])) .load-timing {
  bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}
