/* Styles for the generated /formations pages (see tools/).
   Matches the app's visual language: dark navy, blue accent, Sora display. */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-wght.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #020617;
  --surface: #0f172a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(106, 92, 255, 0.08), transparent 70%),
    radial-gradient(700px 500px at -10% 30%, rgba(59, 130, 246, 0.06), transparent 70%);
}

a { color: var(--blue-light); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── Header / footer chrome ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-header .container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header nav { display: flex; align-items: center; gap: 16px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
}

.nav-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.nav-link:hover { color: var(--text); }

.cta {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}
.cta:hover { background: var(--blue-light); }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

main.container { padding-top: 40px; padding-bottom: 90px; }

.site-footer {
  padding-top: 28px;
  padding-bottom: 56px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer nav { margin-bottom: 8px; }

/* ── Content ────────────────────────────────────────────────────── */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 640px;
}

section { margin: 44px 0; }

h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue-light);
  margin-bottom: 14px;
}

h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

section p { margin-bottom: 14px; max-width: 720px; }

/* Diagram + intro split */
.formationLayout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
  margin: 8px 0 12px;
}

.diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 10px;
}

.diagram svg { width: 100%; height: auto; display: block; border-radius: 8px; }

.diagram figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  transition: background 0.15s, transform 0.15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 14px rgba(59, 130, 246, 0.25);
}
.btn:hover { background: var(--blue-light); transform: translateY(-1px); }

.btnNote { font-size: 13px; color: var(--muted); margin-top: 10px; }

.pointList {
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.pointList li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  padding: 12px 16px;
}

.pointList a { text-decoration: none; }
.pointList a:hover { text-decoration: underline; }

.roleGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.roleCard {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.roleCard p { font-size: 14px; color: var(--muted); margin: 0; }

.roleNum {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #60a5fa, #1d4ed8);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  max-width: 720px;
}

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--display);
  font-size: 15px;
}

details.faq p { margin: 10px 0 2px; color: var(--muted); }

.ctaBlock {
  background: linear-gradient(160deg, #0d1e3a, var(--surface));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 12px 44px rgba(59, 130, 246, 0.12);
}

/* Hub */
.hubGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.hubCard {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hubCard:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.55);
}

.hubCard h2 { margin: 12px 0 4px; font-size: 18px; color: var(--text); }
.hubCard p { font-size: 13px; color: var(--muted); }
.hubDiagram svg { width: 100%; height: auto; border-radius: 8px; }

@media (max-width: 720px) {
  .formationLayout { grid-template-columns: 1fr; }
  .diagram { max-width: 340px; }
  .container { padding-left: 20px; padding-right: 20px; }
}
