/* SSIS.tips – shared stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:    #1a56db;
  --brand-dk: #1e40af;
  --text:     #1e293b;
  --muted:    #64748b;
  --border:   #e2e8f0;
  --stripe:   #f8fafc;
  --radius:   6px;
  --max:      860px;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

/* ── Header ── */
.site-header {
  background: var(--brand-dk);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header img { width: 36px; height: 36px; flex-shrink: 0; }
.site-header a { text-decoration: none; }
.site-header .wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.site-header .tagline {
  font-size: 0.8rem;
  color: #93c5fd;
  margin-top: 1px;
}

/* ── Main layout ── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* ── Hero (home only) ── */
.hero { margin-bottom: 40px; }
.hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}
.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}

/* ── Cards (home nav links) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}
.card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #dbeafe;
}
.card .card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 4px;
}
.card .card-desc {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── CTA box ── */
.cta-box + .cta-box { margin-top: 16px; }
.cta-box.cta-training { border-left-color: #0891b2; }
.training-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.cta-box {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 22px 26px;
  background: var(--stripe);
}
.cta-box h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cta-box p { font-size: 0.95rem; color: var(--muted); margin-bottom: 6px; }
.cta-box a { color: var(--brand); font-weight: 500; }
.cta-box .byline { font-size: 0.8rem; color: #94a3b8; margin-top: 14px; }

/* ── Reference page ── */
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.breadcrumb { font-size: 0.875rem; color: var(--muted); margin-bottom: 32px; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* TOC */
.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--stripe);
  margin-bottom: 40px;
  display: inline-block;
  min-width: 240px;
}
.toc-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.toc ul { list-style: none; padding: 0; }
.toc li + li { margin-top: 5px; }
.toc a { color: var(--brand); text-decoration: none; font-size: 0.9rem; }
.toc a:hover { text-decoration: underline; }

/* Sections */
.ref-section { margin-bottom: 48px; }
.ref-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

/* Reference table */
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0;
}
.ref-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--stripe);
  border-bottom: 1px solid var(--border);
}
.ref-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ref-table tr:last-child td { border-bottom: none; }
.ref-table tr:nth-child(even) td { background: var(--stripe); }

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82em;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: #0f4c8a;
  white-space: nowrap;
}

/* Back-to-top */
.back-top {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}
.back-top:hover { color: var(--brand); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}
.site-footer a { color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .ref-table th, .ref-table td { padding: 8px 10px; }
}
