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

/* ===== HERO THEME ===== */
.article-hero { background: #fefce8; }
.article-tag-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
.article-hero-sub { color: #1a1a1a; }
.article-meta-read { color: #555; }
.article-meta-sep { color: #999; }
.article-cta { background: #eef5e8; border: 2px solid var(--brand-green); }
.article-cta p { color: #444; }
.article-cta a.secondary { color: var(--brand-green-dark); border: 2px solid var(--brand-green); font-weight: 700; }

/* ===== 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: #fefce8; color: #1a4a7a; }
.sp-human .system-panel-header { background: #eef5e8; color: var(--brand-green-dark); }
.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: #fefce8; color: #2a5a9a; border-right: 1px solid #e0ecf8; }
.sp-human .sys-label { background: #eef5e8; 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;
  padding: 3px 8px; border-radius: 4px;
  border: 1.5px solid transparent;
}
.b-input    .bug-type-badge { background: #fff;    color: #c04040; border-color: #c04040; }
.b-state    .bug-type-badge { background: #fefce8; color: #c07820; border-color: #c07820; }
.b-output   .bug-type-badge { background: #eef5e8; color: #2a5a9a; border-color: #2a5a9a; }
.b-feedback .bug-type-badge { background: #fff;    color: #5a2a9a; border-color: #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: #eef5e8;
  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: #eef5e8;
  border: 1.5px solid #c8ddb0;
  border-radius: 10px;
}
.flt-num {
  width: 28px; height: 28px; flex-shrink: 0;
  background: #fff; border: 2px solid var(--brand-green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: var(--brand-green-dark);
}
.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: #fefce8;
  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: var(--brand-green-dark); margin-bottom: 10px;
}
.naming-callout-text {
  font-size: 14px; color: #3a5a1a; line-height: 1.7;
}
.naming-callout-text em { color: #9c6f00; font-style: normal; font-weight: 900; }

/* ===== SYSTEM ARCHITECTURE DIAGRAM ===== */
.system-arch {
  background: #eef5e8;
  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: var(--brand-green); 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: #fefce8; 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; }
}

/* Heading/CTA text darkened to read on the pale hero/CTA background (was inheriting white from blog.css) */
.article-hero h1 { color: #1a1a1a; }
.article-hero h1 em { color: var(--brand-green-dark); }
.article-cta h3 { color: #1a1a1a; }
