/* Page-specific styles for: An Engineering Approach to Human Systems */

/* ===== HERO THEME ===== */
.article-hero { background: linear-gradient(160deg, #0a1a0a 0%, #0e2010 55%, #081408 100%); }
.article-tag-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.article-hero-sub { color: #7ac87a; }
.article-meta-read { color: #5a9a5a; }
.article-meta-sep { color: #2a5a2a; }
.article-cta { background: linear-gradient(135deg, #0a1a0a 0%, #0e2010 100%); border: 2px solid #1a4a1a; }
.article-cta p { color: #7ac87a; }
.article-cta a.secondary { color: #7ac87a; border: 2px solid #2a5a2a; }

/* ===== SYSTEM DIAGRAM PARALLEL ===== */
.system-parallel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.system-panel {
  border-radius: 12px;
  overflow: hidden;
}
.system-panel-header {
  padding: 10px 16px;
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.8px;
}
.sp-tech .system-panel-header { background: #0e1f3a; color: #4a9abb; }
.sp-human .system-panel-header { background: #1a2e0a; color: #62b517; }
.system-panel-body {
  background: #fff;
  border: 2px solid;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0;
}
.sp-tech .system-panel-body { border-color: #c8d8e8; }
.sp-human .system-panel-body { border-color: #c8ddb0; }
.system-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #f0f0f0;
}
.system-row:last-child { border-bottom: none; }
.sys-label {
  width: 80px; flex-shrink: 0;
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 8px;
}
.sp-tech .sys-label { background: #f0f5ff; color: #2a5a9a; border-right: 1px solid #e0ecf8; }
.sp-human .sys-label { background: #f4fae8; color: #3a7a0a; border-right: 1px solid #e0f0c8; }
.sys-value {
  flex: 1;
  font-size: 12px; color: #444; line-height: 1.55;
  padding: 12px 14px;
}
@media (max-width: 620px) {
  .system-parallel { grid-template-columns: 1fr; }
}

/* ===== BUG CARDS ===== */
.bug-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0;
}
.bug-card {
  background: #fff;
  border: 2px solid;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bug-card.b-input    { border-color: #c04040; }
.bug-card.b-state    { border-color: #c07820; }
.bug-card.b-output   { border-color: #2a5a9a; }
.bug-card.b-feedback { border-color: #5a2a9a; }

.bug-header {
  display: flex; align-items: center; gap: 10px;
}
.bug-type-badge {
  font-size: 9px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.5px; color: #fff;
  padding: 3px 8px; border-radius: 4px;
}
.b-input    .bug-type-badge { background: #c04040; }
.b-state    .bug-type-badge { background: #c07820; }
.b-output   .bug-type-badge { background: #2a5a9a; }
.b-feedback .bug-type-badge { background: #5a2a9a; }

.bug-title { font-size: 14px; font-weight: 900; }
.b-input    .bug-title { color: #8a1a1a; }
.b-state    .bug-title { color: #7a4a00; }
.b-output   .bug-title { color: #1a3a7a; }
.b-feedback .bug-title { color: #3a1a7a; }

.bug-symptom-label {
  font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  color: #888; margin-bottom: 2px;
}
.bug-symptom {
  font-size: 12px; color: #555; line-height: 1.55; font-style: italic;
}
.bug-fix-label {
  font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  color: #2a7a0a; margin-bottom: 2px;
}
.bug-fix {
  font-size: 12px; color: #333; line-height: 1.55;
}
@media (max-width: 600px) { .bug-grid { grid-template-columns: 1fr; } }

/* ===== PRINCIPLES DERIVATION ===== */
.principles-list {
  display: flex; flex-direction: column; gap: 0;
  margin: 28px 0;
  border: 2px solid #c8ddb0;
  border-radius: 12px;
  overflow: hidden;
}
.principle-item {
  display: flex; gap: 0; align-items: stretch;
  border-bottom: 1px solid #e8f0d8;
}
.principle-item:last-child { border-bottom: none; }
.principle-q {
  width: 200px; flex-shrink: 0;
  background: #f4fae8;
  border-right: 1px solid #e0f0c8;
  padding: 16px 18px;
  font-size: 13px; font-weight: 700; color: #2a6a0a; line-height: 1.5;
}
.principle-a {
  flex: 1;
  background: #fff;
  padding: 16px 18px;
  font-size: 13px; color: #444; line-height: 1.65;
}
@media (max-width: 640px) {
  .principle-item { flex-direction: column; }
  .principle-q { width: 100%; border-right: none; border-bottom: 1px solid #e0f0c8; }
}

/* ===== FEEDBACK LOOP TACTICS ===== */
.feedback-loop-tactics {
  display: flex; flex-direction: column; gap: 10px;
  margin: 28px 0;
}
.flt-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  background: #f4fae8;
  border: 1.5px solid #c8ddb0;
  border-radius: 10px;
}
.flt-num {
  width: 28px; height: 28px; flex-shrink: 0;
  background: #62b517; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff;
}
.flt-body { flex: 1; }
.flt-title { font-size: 14px; font-weight: 900; color: #1a1a1a; margin-bottom: 4px; }
.flt-desc  { font-size: 13px; color: #555; line-height: 1.6; }

/* ===== NAMING CALLOUT ===== */
.naming-callout {
  background: #0e2010;
  border: 2px solid #2a6a1a;
  border-radius: 12px;
  padding: 22px 26px;
  margin: 28px 0;
}
.naming-callout-label {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 2px; color: #62b517; margin-bottom: 10px;
}
.naming-callout-text {
  font-size: 14px; color: #7ac87a; line-height: 1.7;
}
.naming-callout-text em { color: #d1db24; font-style: normal; font-weight: 900; }

/* ===== SYSTEM ARCHITECTURE DIAGRAM ===== */
.system-arch {
  background: #f8faf4;
  border: 2px solid #c8ddb0;
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
}
.sys-arch-title {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.5px; color: #5a8a2a; margin-bottom: 20px;
  text-align: center;
}
.sys-arch-flow {
  display: flex; align-items: center; gap: 0; justify-content: center; flex-wrap: nowrap;
}
.sys-arch-node {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 2px solid #c8ddb0;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}
.sys-arch-node-label {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 6px;
}
.san-input   .sys-arch-node-label { color: #2a5a9a; }
.san-process .sys-arch-node-label { color: #2a7a0a; }
.san-output  .sys-arch-node-label { color: #9a4a00; }
.san-feedback .sys-arch-node-label { color: #7a1a7a; }
.sys-arch-node-examples {
  font-size: 11px; color: #666; line-height: 1.6;
}
.sys-arch-node-examples span {
  display: block;
}
.sys-arch-arrow {
  font-size: 20px; color: #62b517; font-weight: 900;
  flex-shrink: 0; padding: 0 6px;
}
.sys-arch-feedback-row {
  display: flex; justify-content: center; align-items: center;
  margin-top: 10px; gap: 8px;
}
.sys-arch-feedback-line {
  flex: 1; height: 2px; background: #c8ddb0; max-width: 420px;
  position: relative;
}
.sys-arch-feedback-label {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1px; color: #7a1a7a;
  text-align: center;
}
@media (max-width: 640px) {
  .sys-arch-flow { flex-direction: column; gap: 4px; }
  .sys-arch-arrow { transform: rotate(90deg); padding: 2px 0; }
  .sys-arch-feedback-row { flex-direction: column; }
}
