/* Critical “HTML-first” shell styles for the SPA entry `index.html`.
   Externalized to reduce per-page HTML weight for SEO audits (text-to-HTML ratio). */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  background: #0f766e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  z-index: 50;
}

.skip-link:focus {
  left: 16px;
}

#app-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100vh;
  overflow: auto;
  background: linear-gradient(180deg, #f7fafc 0%, #edf6ff 100%);
  color: #1b2433;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: opacity 180ms ease;
}

html.app-ready #app-shell {
  display: none;
}

#app-shell .shell-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  min-height: 3.5rem;
}

#app-shell .shell-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

#app-shell .shell-cta-link {
  color: #0a6b7d;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #0a6b7d;
  border-radius: 9999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.9);
}

#app-shell .shell-hero {
  max-width: 72rem;
  width: 100%;
  margin: 3rem auto 0;
}

#app-shell .shell-eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: rgba(10, 107, 125, 0.08);
  color: #0a6b7d;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

#app-shell h1 {
  margin: 1rem 0 0;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.14;
  max-width: 26ch;
}

#app-shell p {
  margin: 1rem 0 0;
  max-width: 70ch;
  color: #3a4a63;
  font-size: 1rem;
  line-height: 1.65;
}

#app-shell .shell-route-copy {
  margin-top: 1rem;
  max-width: 72ch;
}

#app-shell .shell-route-chunk {
  margin-top: 0.75rem;
  color: #31415b;
  line-height: 1.65;
}

#app-shell .shell-sections {
  max-width: 72rem;
  width: 100%;
  margin: 1.5rem auto 0;
  display: grid;
  gap: 1rem;
}

#app-shell .shell-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  padding: 1.25rem;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

#app-shell .shell-card--wide {
  grid-column: 1 / -1;
}

#app-shell .shell-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

#app-shell .shell-link-grid a {
  display: block;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
}

#app-shell .shell-link-grid strong {
  display: block;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

#app-shell .shell-link-grid span {
  display: block;
  color: #475569;
  line-height: 1.5;
}
