/* ============================================================
   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;
}
}

/* =============================================
   Questions & Answers Hub
   ============================================= */

.questions-hero {
  background: #1a2b4a;
  background: linear-gradient(135deg, #1a2b4a 0%, #2563a8 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}

.questions-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.questions-hero .eyebrow {
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.questions-hero h1 {
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.questions-hero-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
}

@media (max-width: 575px) {
  .questions-hero {
    padding: 1.5rem 0 1.25rem;
  }
  .questions-hero h1 {
    font-size: 1.35rem;
  }
  .questions-hero-intro {
    font-size: 0.9rem;
  }
}

.questions-search-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.questions-submit-link {
  display: inline-block;
  padding: 0.45rem 1rem;
  color: var(--sag-blue);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--sag-blue);
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.questions-submit-link:hover {
  background: var(--sag-blue);
  color: #fff;
}

/* Filter bar */
.questions-filter-bar {
  background: #f8f9fb;
  border-bottom: 1px solid var(--sag-border);
  padding: 1rem 0;
}

.questions-search-form {
  margin-bottom: 0.75rem;
}

.questions-search-wrap {
  display: flex;
  gap: 0.5rem;
  max-width: 520px;
}

.questions-search-input {
  flex: 1;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--sag-border);
  border-radius: 6px;
  font-size: 0.95rem;
}

.questions-search-btn {
  padding: 0.45rem 1rem;
  background: var(--sag-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.questions-search-btn:hover {
  background: var(--sag-teal);
}

.questions-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: #e9edf3;
  color: var(--sag-blue);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.category-pill:hover,
.category-pill.active {
  background: var(--sag-blue);
  color: #fff;
}

/* Question grid */
.questions-featured,
.questions-latest,
.questions-results,
.questions-all {
  padding: 2.5rem 0;
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sag-navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-count {
  font-size: 1rem;
  font-weight: 400;
  color: var(--sag-text-muted);
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.questions-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Question card */
.question-card {
  background: var(--sag-white);
  border: 1px solid var(--sag-border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.question-card:hover {
  box-shadow: 0 4px 16px rgba(37,99,168,0.1);
  transform: translateY(-2px);
}

.question-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
}

.question-card-category {
  background: #e9edf3;
  color: var(--sag-blue);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.question-card-date {
  color: var(--sag-text-muted);
}

.question-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.question-card-title a {
  color: var(--sag-navy);
  text-decoration: none;
}

.question-card-title a:hover {
  color: var(--sag-blue);
  text-decoration: underline;
}

.question-card-excerpt {
  font-size: 0.9rem;
  color: var(--sag-text-muted);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.question-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sag-blue);
  text-decoration: none;
  margin-top: 0.25rem;
}

.question-card-link:hover {
  color: var(--sag-teal);
  text-decoration: underline;
}

/* Individual Q&A article */
.qa-article-header {
  background: linear-gradient(135deg, #1a2b4a 0%, #2563a8 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}

.qa-breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.qa-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.qa-breadcrumb a:hover {
  color: #fff;
}

.qa-breadcrumb span[aria-hidden] {
  color: rgba(255,255,255,0.4);
}

.qa-article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.qa-article-meta time {
  color: rgba(255,255,255,0.7);
}

.qa-article-header h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.qa-excerpt {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 760px;
}

.qa-article-body {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.qa-content {
  max-width: 820px;
}

.qa-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sag-navy);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sag-border);
}

.qa-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.qa-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sag-navy);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.qa-content p {
  line-height: 1.75;
  color: var(--sag-text);
  margin-bottom: 1rem;
}

.qa-content ul,
.qa-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.qa-content li {
  line-height: 1.7;
  color: var(--sag-text);
  margin-bottom: 0.3rem;
}

.qa-content strong {
  color: var(--sag-navy);
}

/* Related questions on article page */
.qa-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--sag-border);
}

.qa-related h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sag-navy);
  margin-bottom: 1.25rem;
}

/* Article footer */
.qa-article-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sag-border);
}

.qa-author-note {
  font-size: 0.88rem;
  color: var(--sag-text-muted);
}

.qa-back-link {
  color: var(--sag-blue);
  text-decoration: none;
  margin-left: 0.75rem;
}

.qa-back-link:hover {
  text-decoration: underline;
}

.no-results {
  color: var(--sag-text-muted);
  font-size: 0.95rem;
}
