/* Mcaster1 TagStack Documentation — Shared Stylesheet */
:root {
  --bg:        #ffffff;
  --bg-nav:    #f8fafc;
  --bg-card:   #f1f5f9;
  --border:    #e2e8f0;
  --text:      #1f2937;
  --muted:     #6b7280;
  --accent:    #0ea5e9;
  --accent-dk: #0284c7;
  --green:     #22c55e;
  --yellow:    #f59e0b;
  --red:       #ef4444;
  --purple:    #7c3aed;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* ── Layout ── */
.site-header {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}
.site-header nav a:hover { background: var(--border); color: var(--text); }
.site-header nav a.active { background: var(--accent); color: #fff; }

.page-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Typography ── */
h1 { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 0.75rem; border-bottom: 2px solid var(--border); padding-bottom: 0.4rem; }
h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 1.75rem 0 0.5rem; }
h4 { font-size: 0.95rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 1.25rem 0 0.4rem; }
p  { margin-bottom: 0.9rem; color: var(--text); }
ul, ol { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.35rem; }
strong { color: var(--text); }
code {
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.875em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--accent-dk);
}
pre {
  background: #0d1117;
  color: #e6edf3;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  border: 1px solid #30363d;
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.card-grid .card { margin: 0; }
.card h3 { margin-top: 0; font-size: 1rem; }
.card p  { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ── Callouts ── */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-left: 4px solid var(--accent);
  background: #e0f2fe;
}
.callout.warn { border-color: var(--yellow); background: #fef9c3; }
.callout.tip  { border-color: var(--green);  background: #dcfce7; }
.callout.note { border-color: var(--muted);  background: var(--bg-card); }
.callout p { margin: 0; font-size: 0.92rem; }
.callout strong { display: block; margin-bottom: 0.25rem; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--bg-nav); color: var(--text); font-weight: 700; text-align: left; padding: 0.6rem 0.9rem; border-bottom: 2px solid var(--border); }
td { padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-card); }

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15em 0.5em;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.badge-live    { background: var(--green);  color: #fff; }
.badge-planned { background: var(--yellow); color: #78350f; }
.badge-wip     { background: var(--accent); color: #fff; }
.badge-future  { background: var(--muted);  color: #fff; }

/* ── Steps (how-to) ── */
.steps { counter-reset: step; list-style: none; margin: 0.75rem 0 1.5rem; padding: 0; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  min-width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Scenario cards ── */
.scenario {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.scenario-header {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.scenario-body {
  padding: 1.25rem 1.5rem;
  background: var(--bg);
}
.scenario-body h4 { margin-top: 0.75rem; }
.scenario-body p, .scenario-body li { font-size: 0.92rem; }

/* ── Hero strip ── */
.hero {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 2.4rem; }
.hero p  { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 640px; margin: 0.75rem auto 0; }

/* ── Roadmap timeline ── */
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 3rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline li.done::before  { background: var(--green);  box-shadow: 0 0 0 2px var(--green); }
.timeline li.wip::before   { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.timeline li.plan::before  { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.timeline li.future::before{ background: var(--muted);  box-shadow: 0 0 0 2px var(--muted); }
.timeline .tl-label { font-weight: 700; font-size: 0.95rem; }
.timeline .tl-meta  { font-size: 0.83rem; color: var(--muted); }
.timeline .tl-desc  { font-size: 0.92rem; margin-top: 0.25rem; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-nav);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 3rem;
}
