/* ============================================================
   Shadow AI Guide – site.css
   Blueprint design tokens layered on top of Bootstrap
   ============================================================ */

:root {
  --sag-blue: #1e3a8a;
  --sag-teal: #0d9488;
  --sag-charcoal: #0f172a;
  --sag-muted: #475569;
  --sag-bg: #f8fafc;
  --sag-border: #e2e8f0;
  --sag-white: #ffffff;
}

/* Base */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--sag-charcoal);
  background: var(--sag-bg);
  line-height: 1.65;
}

/* Focus rings */
.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #1e3a8a55;
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  background: var(--sag-white);
  border-bottom: 1px solid var(--sag-border);
}

.site-header .navbar-brand {
  color: var(--sag-blue);
  font-size: 1.1rem;
}

.site-header .navbar-brand:hover {
  color: var(--sag-teal);
}

.site-header .nav-link {
  color: var(--sag-charcoal);
  font-size: 0.95rem;
}

.site-header .nav-link:hover {
  color: var(--sag-teal);
}

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--sag-blue);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   Site footer
   ============================================================ */
.site-footer {
  background: var(--sag-white);
  border-top: 1px solid var(--sag-border);
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--sag-muted);
  text-decoration: none;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a:hover {
  color: var(--sag-teal);
  text-decoration: underline;
}

/* ============================================================
   Homepage hero
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.eyebrow {
  color: var(--sag-teal);
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

/* Featured cards */
.featured-card {
  transition: box-shadow 0.15s, border-color 0.15s;
  border-color: var(--sag-border);
}

.featured-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--sag-teal);
}

.card-title-link {
  color: var(--sag-blue);
}

/* CTA section */
.cta-section {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

/* ============================================================
   Article pages
   ============================================================ */
.article-page {
  min-height: 60vh;
}

.article-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-bottom: 1px solid var(--sag-border);
}

.article-h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--sag-charcoal);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--sag-muted);
  max-width: 65ch;
}

/* Table of contents */
.toc {
  background: var(--sag-white);
  border: 1px solid var(--sag-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.toc-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sag-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.toc-list {
  padding-left: 1.25rem;
}

.toc-list li {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.toc-list a {
  color: var(--sag-blue);
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--sag-teal);
  text-decoration: underline;
}

/* Article body */
.article-content h2 {
  font-size: 1.5rem;
  color: var(--sag-charcoal);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sag-border);
}

.article-content h3 {
  font-size: 1.15rem;
  color: var(--sag-charcoal);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content a {
  color: var(--sag-blue);
}

.article-content a:hover {
  color: var(--sag-teal);
}

.article-content .table {
  font-size: 0.9rem;
}

/* FAQ */
.faq-section {
  background: var(--sag-white);
  border: 1px solid var(--sag-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.faq-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--sag-charcoal);
}

.faq-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sag-border);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sag-charcoal);
  margin-bottom: 0.35rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--sag-muted);
}

/* Related articles */
.related-guides {
  background: var(--sag-white);
  border: 1px solid var(--sag-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.related-list .related-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--sag-border);
  font-size: 0.95rem;
}

.related-list .related-item:last-child {
  border-bottom: none;
}

.related-list a {
  color: var(--sag-blue);
  text-decoration: none;
}

.related-list a:hover {
  color: var(--sag-teal);
  text-decoration: underline;
}

/* Author box */
.author-box {
  background: var(--sag-white);
  border: 1px solid var(--sag-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
}