@charset "utf-8";
/* MSP-1 Spec / Docs layout */

/* --------------------------------------------------
   Root variables
   -------------------------------------------------- */
:root {
  --bg: #f3f4f6;
  --bg-alt: #ffffff;
  --fg: #111827;
  --muted: #4b5563;
  --accent: #2563eb;
  --border: #e5e7eb;

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* --------------------------------------------------
   Global reset / base
   -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
}

/* Optional: if you ever want a totally plain body layout */
.body-plain {
  background: var(--bg);
}

/* --------------------------------------------------
   Overall page wrapper
   -------------------------------------------------- */

.page-wrap {
  width: 100%;
  max-width: 1040px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.5rem;
}

/* Main content shell (card) */
.shell {
  width: 100%;
  max-width: 1000px;
  background: var(--bg-alt);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2rem 2.25rem 2.4rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  margin: 1.5rem auto 0;
}

/* Narrower variant if needed on some pages */
.container--narrow {
  max-width: 800px;
}

/* --------------------------------------------------
   Typography
   -------------------------------------------------- */

h1,
h2,
h3,
h4 {
  color: var(--fg);
  font-weight: 600;
}

h1 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 2rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

h4 {
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
}

ul,
ol {
  padding-left: 1.25rem;
  margin-top: 0.3rem;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
}

li + li {
  margin-top: 0.25rem;
}

.small {
  font-size: 0.82rem;
  color: var(--muted);
}

.note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------------------------
   Links
   -------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   Site header / top nav
   -------------------------------------------------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 0.5rem;
}

.site-title-block {
  max-width: 520px;
}

.site-title-block h1 {
  margin: 0.1rem 0 0.25rem;
  font-size: 1.9rem;
}

.site-title-block p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Main horizontal nav */
.primary-nav a {
 display: inline-flex;
  align-items: center;
  line-height: 1;
font-size: 0.86rem;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
    align-items: center;
}

.primary-nav a {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.04);
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover {
  background: rgba(37, 99, 235, 0.09);
}

/* --------------------------------------------------
   MSP-1 pill / badge
   -------------------------------------------------- */

.pill,
.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--accent);
  font-size: 0.60rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pill {
  margin-top: 0.2rem;
}

/* --------------------------------------------------
   Hero block (for home/intro)
   -------------------------------------------------- */

.hero {
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 0.65rem;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 38rem;
}

/* Quick links / callouts under hero */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.links a {
  font-size: 0.83rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
}

.links a span {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.7rem;
  margin-left: 0.45rem;
  color: var(--muted);
}

/* --------------------------------------------------
   Cards, sections, group headings
   -------------------------------------------------- */

.card {
  margin-top: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.card h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.group-heading {
  margin-top: 1.6rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .card-grid.two-col {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   Sidebar-style sections for lists on home
   -------------------------------------------------- */

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.columns > div {
  flex: 1 1 230px;
}

/* --------------------------------------------------
   Navigation / contents blocks inside content
   -------------------------------------------------- */

nav.contents {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f9fafb;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.8rem;
}

nav.contents h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

nav.contents ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --------------------------------------------------
   Code & preformatted blocks
   -------------------------------------------------- */

code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  background: #f3f4f6;
  border-radius: 3px;
  padding: 0.12rem 0.3rem;
  border: 1px solid #e5e7eb;
  color: #0f172a;
}

pre {
  background: #111827;
  border-radius: 10px;
  border: 1px solid #1f2937;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0.7rem 0 1rem;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e5e7eb;
}

/* --------------------------------------------------
   Tables
   -------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.7rem 0 1rem;
  font-size: 0.85rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--fg);
}

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */

.site-footer {
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
}

/* --------------------------------------------------
   Responsive tweaks
   -------------------------------------------------- */

@media (max-width: 800px) {
  .page-wrap {
    margin: 1.8rem auto 2.4rem;
    padding: 0 1.1rem;
  }

  .shell {
    padding: 1.7rem 1.5rem 2rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav ul {
    flex-wrap: wrap;
  }
}
