/* ============================================================
   Reset & Base
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f2ee;
  color: #2c2c2c;
  min-height: 100vh;
}

/* ============================================================
   Layout
   ============================================================ */
.page { display: flex; min-height: 100vh; }

.main {
  flex: 1;
  max-width: 820px;
  padding: 40px 48px;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e0ddd8;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 0;
}

.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid #e0ddd8;
  margin-bottom: 16px;
}

.sidebar-logo .site-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b5451b;
  margin-bottom: 4px;
}

.sidebar-logo h1 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.sidebar-section-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #aaa;
  padding: 8px 20px 4px;
}

.sidebar-nav a {
  display: block;
  padding: 6px 20px;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  border-left: 2px solid transparent;
}

.sidebar-nav a:hover { color: #1a1a1a; border-left-color: #2b7a4b; }

.sidebar-nav .claim-link {
  padding: 4px 20px 4px 28px;
  font-size: 11px;
}

.verdict-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.dot-accurate   { background: #2b7a4b; }
.dot-mostly     { background: #c07c2a; }
.dot-inaccurate { background: #b5451b; }

/* ============================================================
   Article Header
   ============================================================ */
.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0ddd8;
}

.article-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.2;
}

.article-header .meta { font-size: 12px; color: #999; }

.article-header .meta a {
  color: #2b7a4b;
  text-decoration: none;
}

/* ============================================================
   Video Embed
   ============================================================ */
.video-embed {
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 8px;
  overflow: hidden;
  margin: 36px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.video-embed img { width: 100%; display: block; }

.video-embed .video-caption {
  padding: 14px 16px;
  font-size: 12px;
  color: #999;
}

.video-embed .video-caption a {
  color: #b5451b;
  text-decoration: none;
}

/* ============================================================
   Book Promo
   ============================================================ */
.book-promo {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.book-promo img {
  width: 72px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.book-promo-text { font-size: 13px; color: #555; line-height: 1.6; }
.book-promo-text a { color: #2b7a4b; }
.book-promo-text strong { color: #1a1a1a; }

/* ============================================================
   Blockquote
   ============================================================ */
blockquote {
  border-left: 3px solid #b5451b;
  margin: 20px 0;
  padding: 12px 16px;
  background: #fff9f6;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #4a3020;
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   Prose
   ============================================================ */
.prose {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 16px;
}

.prose a { color: #2b7a4b; }
.prose em { font-style: italic; }

/* ============================================================
   Screenshot Grid
   ============================================================ */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.screenshot-grid img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e0ddd8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ============================================================
   Section Divider
   ============================================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 20px;
}

.section-divider h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #b5451b;
  white-space: nowrap;
  font-weight: 700;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0ddd8;
}

/* ============================================================
   Exchange Blocks (GUY / GROK)
   ============================================================ */
.exchange { margin-bottom: 8px; }

/* GUY: prompt block */
.guy-block {
  background: #fff9f6;
  border-left: 3px solid #b5451b;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.guy-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b5451b;
  margin-bottom: 8px;
}

.guy-block p {
  font-size: 13px;
  color: #4a3020;
  line-height: 1.65;
  margin-bottom: 8px;
}

.guy-block p:last-child { margin-bottom: 0; }

.guy-block a { color: #2b7a4b; }

.guy-block img {
  display: block;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #e0ddd8;
  margin: 12px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* GROK: response block */
.grok-block {
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.grok-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #aaa;
  margin-bottom: 14px;
}

.thought-time {
  font-size: 10px;
  color: #bbb;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
}

.grok-block > p {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 10px;
}

.grok-block strong { color: #2c2c2c; }
.grok-block a { color: #2b7a4b; }
.grok-block em { font-style: italic; }

.grok-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid #ece9e4;
}

.grok-block h4:first-of-type { margin-top: 10px; padding-top: 10px; }

.grok-block h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
  margin: 12px 0 6px;
}

/* ============================================================
   QA Blocks (numbered fact-check items inside GROK responses)
   ============================================================ */
.qa-block {
  border: 1px solid #e0ddd8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.qa-claim {
  background: #f9f7f4;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid #e0ddd8;
}

.claim-number {
  font-size: 10px;
  font-weight: 700;
  color: #b5451b;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 24px;
  padding-top: 2px;
}

.claim-text {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.4;
}

.qa-response { padding: 14px 16px; }

.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.verdict-accurate   { background: #eaf6ef; color: #2b7a4b; border: 1px solid #c3e6d0; }
.verdict-mostly     { background: #fef6ec; color: #c07c2a; border: 1px solid #f5ddb0; }
.verdict-inaccurate { background: #fdf0ed; color: #b5451b; border: 1px solid #f0c4b5; }

.response-body { font-size: 13px; color: #555; line-height: 1.65; }
.response-body p { margin-bottom: 8px; }
.response-body p:last-child { margin-bottom: 0; }
.response-body strong { color: #2c2c2c; }
.response-body a { color: #2b7a4b; }
.response-body em { font-style: italic; }

.response-body ul,
.response-body ol {
  padding-left: 18px;
  margin: 8px 0;
}

.response-body li { margin-bottom: 4px; }

.scripture-refs {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ece9e4;
}

.scripture-refs .refs-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bbb;
  margin-bottom: 6px;
}

.scripture-refs ul { list-style: none; padding: 0; }

.scripture-refs li {
  font-size: 12px;
  color: #777;
  padding: 3px 0 3px 10px;
  border-left: 2px solid #e0ddd8;
  margin-bottom: 3px;
}

.scripture-refs li strong { color: #444; }

/* ============================================================
   Inline Icons
   ============================================================ */
.icon-inline {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-right: 4px;
}

.icon-starburst {
  display: block;
  margin: 24px auto;
  width: 23px;
  height: 23px;
}

/* ============================================================
   Lists directly inside GROK blocks (outside .response-body)
   ============================================================ */
.grok-block > ul,
.grok-block > ol {
  padding-left: 20px;
  margin: 10px 0 14px;
}

.grok-block > ul > li,
.grok-block > ol > li {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 10px;
}

.grok-block > ul > li > p {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 6px;
}

.grok-block > ul > li > p:last-child { margin-bottom: 0; }

.grok-block > ul > li > ul,
.grok-block > ol > li > ul {
  padding-left: 18px;
  margin: 6px 0 2px;
  list-style: disc;
}

.grok-block > ul > li > ul > li,
.grok-block > ol > li > ul > li {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 4px;
}

.grok-block > ul strong,
.grok-block > ol strong { color: #2c2c2c; }
.grok-block > ul em,
.grok-block > ol em { font-style: italic; }
.grok-block > ul a,
.grok-block > ol a { color: #2b7a4b; }

/* ============================================================
   Pros/Cons Block
   ============================================================ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #e0ddd8;
  border: 1px solid #e0ddd8;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0 16px;
}

.pros-cons-panel {
  background: #fff;
  padding: 14px 16px;
}

.pros-cons-panel.rebuttal {
  grid-column: 1 / -1;
  background: #f9f7f4;
}

.pros-cons-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.pros-cons-panel.pros .pros-cons-label { color: #2b7a4b; }
.pros-cons-panel.cons .pros-cons-label { color: #b5451b; }
.pros-cons-panel.rebuttal .pros-cons-label { color: #777; }

.pros-cons-panel p {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0;
}

.pros-cons-panel strong { color: #2c2c2c; }

/* ============================================================
   Region Header (continent labels in cross-cultural section)
   ============================================================ */
.grok-block h4.region {
  font-size: 11px;
  font-weight: 700;
  color: #777;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-top: none;
  margin: 20px 0 6px;
  background: #f9f7f4;
  border-radius: 4px;
  border-left: 3px solid #c07c2a;
}

/* ============================================================
   Big Answer Callout
   ============================================================ */
.big-answer {
  font-size: 36px;
  font-weight: 900;
  color: #2b7a4b;
  letter-spacing: -1px;
  line-height: 1;
  margin: 6px 0 14px;
}

/* ============================================================
   Summary Callout (green-accented blockquote variant)
   ============================================================ */
blockquote.summary-callout {
  border-left-color: #2b7a4b;
  background: #f0f8f4;
  color: #1e4a33;
  font-style: normal;
  margin: 16px 0;
}

blockquote.summary-callout strong { color: #1e4a33; }

/* ============================================================
   Responsive — Sidebar Drawer (≤ 860px)
   ============================================================ */
@media (max-width: 860px) {

  /* Hamburger button */
  .sidebar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 300;
    width: 36px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .sidebar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #2c2c2c;
    border-radius: 2px;
    transition: opacity 0.2s, transform 0.2s;
  }

  /* Animate to × when open */
  body.nav-open .sidebar-toggle span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }
  body.nav-open .sidebar-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .sidebar-toggle span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }

  /* Overlay */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
  }

  body.nav-open .sidebar-overlay {
    display: block;
  }

  /* Sidebar as off-screen drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 250;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
  }

  /* Main fills full width */
  .page {
    display: block;
  }

  .main {
    padding-top: 60px; /* clear the hamburger button */
  }
}

/* Hide hamburger on desktop */
@media (min-width: 861px) {
  .sidebar-toggle {
    display: none;
  }
}

/* ============================================================
   Responsive — Mobile Content (≤ 580px)
   ============================================================ */
@media (max-width: 580px) {

  .main {
    padding: 60px 20px 40px;
  }

  .article-header h2 {
    font-size: 20px;
  }

  /* Book promo stacks vertically */
  .book-promo {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-promo img {
    width: 60px;
  }

  /* Screenshot grid: single column */
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  /* Pros/cons grid: single column */
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .pros-cons-panel.rebuttal {
    grid-column: 1;
  }

  /* Big answer callout: scale down */
  .big-answer {
    font-size: 26px;
  }

  /* Video embed: tighten margins */
  .video-embed {
    margin: 20px 0;
  }

  /* Section divider: tighten */
  .section-divider {
    margin: 24px 0 14px;
  }
}

/* ============================================================
   Responsive — Tablet Content (581px – 860px)
   ============================================================ */
@media (min-width: 581px) and (max-width: 860px) {

  .main {
    max-width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }
}
