/* Page-specific styles */

/* ===== HERO THEME ===== */
.article-hero { background: linear-gradient(160deg, #0d1f3c 0%, #122a4a 55%, #173560 100%); }
.article-tag-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tag-explainer { background: #1a3a6a; }
.tag-ai        { background: #4a6a20; }
.article-hero-sub { color: #8eadc8; }
.article-meta-author { color: #d1db24; }
.article-meta-date, .article-meta-read { color: #6a8aaa; }
.article-meta-sep { color: #3a5a7a; }
.article-cta { background: linear-gradient(135deg, #0c1829 0%, #162640 100%); border: 2px solid #253347; }
.article-cta p { color: #8eadc8; }
.article-cta a.secondary { color: #8eadc8; border: 2px solid #2a4a6a; }

.article-body em { font-style: italic; color: #2a4a0a; }

/* Learning objective callout */
.lo-callout {
  background: #0c1829;
  border-radius: 14px;
  padding: 6px 8px;
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}
.lo-callout-label {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #d1db24;
  padding: 14px 20px 0;
}
.lo-callout-source {
  font-size: 11px;
  font-weight: 700;
  color: #4a7aaa;
  padding: 2px 20px 12px;
}
.lo-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid #1e3250;
}
.lo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #162640;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.lo-text strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 3px;
}
.lo-text span {
  font-size: 13px;
  color: #6a9ac0;
  line-height: 1.5;
}

.callout.blue  { border-color: #4a8aaa; background: #f0f6ff; }
.callout.blue /* Data pipeline visual */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 28px 0;
  flex-wrap: wrap;
}
.pipeline-step {
  flex: 1;
  min-width: 110px;
  background: #fff;
  border: 2px solid #a8c96a;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}
.pipeline-step-num {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 4px;
}
.pipeline-step-name {
  font-size: 14px;
  font-weight: 900;
  color: #1a2a0a;
  margin-bottom: 4px;
}
.pipeline-step-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
}
.pipeline-arrow {
  font-size: 20px;
  color: #a8c96a;
  padding: 0 4px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
}

/* Neural net diagram */
.nn-diagram {
  background: #0c1829;
  border-radius: 14px;
  padding: 28px;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.nn-diagram-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #4a7aaa;
}
.nn-diagram svg { width: 100%; max-width: 500px; }

/* Overfitting illustration */
.overfit-block {
  background: #fff;
  border: 2px solid #dde8c8;
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
}
.overfit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid #dde8c8;
}
.overfit-row:last-child { border-bottom: none; }
.overfit-cell {
  padding: 18px 20px;
}
.overfit-cell:first-child { border-right: 2px solid #dde8c8; }
.overfit-cell-label {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.overfit-cell-label.bad  { color: #c04040; }
.overfit-cell-label.good { color: #2a7a2a; }
.overfit-cell p { font-size: 13px; color: #444; line-height: 1.6; font-weight: 600; }

/* Profession grid */
.profession-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.profession-card {
  background: #fff;
  border: 2px solid #dde8c8;
  border-radius: 10px;
  padding: 16px 18px;
}
.profession-card-role {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #62b517;
  margin-bottom: 6px;
}
.profession-card-question {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  line-height: 1.55;
}
@media (max-width: 560px) { .profession-grid { grid-template-columns: 1fr; } }

/* LLM formula */
.llm-formula {
  background: #0c1829;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.llm-formula-title {
  font-size: 9px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2.5px; color: #4a7aaa; margin-bottom: 4px;
}
.llm-formula-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.llm-formula-term {
  font-size: 14px; font-weight: 900;
  padding: 8px 14px; border-radius: 8px;
}
.llm-formula-term.t1 { background: #1a3a1a; color: #62b517; border: 1.5px solid #62b517; }
.llm-formula-term.t2 { background: #1a2a3a; color: #6aaad0; border: 1.5px solid #3a7aaa; }
.llm-formula-term.t3 { background: #2a2a1a; color: #d1db24; border: 1.5px solid #d1db24; }
.llm-formula-plus { font-size: 18px; color: #4a6a8a; font-weight: 900; }
.llm-formula-eq   { font-size: 18px; color: #4a6a8a; font-weight: 900; }

/* Agentic vs Non-Agentic */
.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.agent-card {
  border-radius: 12px;
  padding: 22px 20px;
  border: 2px solid;
}
.agent-card.non-agentic { border-color: #3a7aaa; background: #f0f6ff; }
.agent-card.agentic     { border-color: #8a3aaa; background: #f8f0ff; }
.agent-card-label {
  font-size: 9px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 8px;
}
.non-agentic .agent-card-label { color: #3a7aaa; }
.agentic     .agent-card-label { color: #8a3aaa; }
.agent-card-title { font-size: 15px; font-weight: 900; color: #1a1a1a; margin-bottom: 8px; }
.agent-card-def   { font-size: 12px; color: #444; line-height: 1.6; margin-bottom: 12px; }
.agent-card-flow  {
  font-size: 11px; font-weight: 800; color: #fff;
  padding: 7px 10px; border-radius: 7px; line-height: 1.6;
}
.non-agentic .agent-card-flow { background: #2a5a8a; }
.agentic     .agent-card-flow { background: #6a2a9a; }
.agent-card-examples { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.agent-ex {
  font-size: 10px; font-weight: 800; color: #555;
  padding: 2px 7px; border-radius: 4px; background: rgba(0,0,0,0.07);
}
@media (max-width: 600px) { .agent-grid { grid-template-columns: 1fr; } }

/* AI history timeline */
.ai-timeline {
  margin: 28px 0;
  position: relative;
  padding-left: 28px;
}
.ai-timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, #62b517, #4a7aaa, #d1db24);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding: 0 0 18px 20px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -21px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #fff;
}
.timeline-year { font-size: 10px; font-weight: 900; color: #888; margin-bottom: 2px; letter-spacing: 1px; }
.timeline-event { font-size: 14px; font-weight: 900; color: #1a2a0a; margin-bottom: 2px; }
.timeline-desc  { font-size: 13px; color: #555; line-height: 1.5; }

/* AI threat cards */
.threat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}
.threat-card {
  background: #0c1829;
  border-radius: 10px;
  padding: 16px 18px;
  border-left: 3px solid;
}
.threat-card.tc-input   { border-color: #c04040; }
.threat-card.tc-dev     { border-color: #d1db24; }
.threat-card-label {
  font-size: 8px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 5px;
}
.tc-input .threat-card-label { color: #c04040; }
.tc-dev   .threat-card-label { color: #d1db24; }
.threat-card-name { font-size: 13px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.threat-card-desc { font-size: 12px; color: #6a9ac0; line-height: 1.5; }
@media (max-width: 560px) { .threat-grid { grid-template-columns: 1fr; } }

/* Shift comparison */
.shift-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #dde8c8;
  margin: 28px 0;
}
.shift-col { padding: 20px; }
.shift-col.classical { background: #f4fae8; }
.shift-col.ai-sys    { background: #0c1829; }
.shift-col-label {
  font-size: 9px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 10px;
}
.classical .shift-col-label { color: #4a8c11; }
.ai-sys    .shift-col-label { color: #4a7aaa; }
.shift-item {
  font-size: 12px; font-weight: 700; line-height: 1.5;
  padding: 5px 0; border-bottom: 1px solid;
}
.classical .shift-item { color: #333; border-color: #dde8c8; }
.ai-sys    .shift-item { color: #8eadc8; border-color: #1e3250; }
.shift-item:last-child { border-bottom: none; }
@media (max-width: 560px) { .shift-compare { grid-template-columns: 1fr; } }
