/* =====================================================================
   NEXUS · §4.7 Presidential Directives Tracker
   ===================================================================== */

body.nx-presidential { background: linear-gradient(180deg, var(--nx-ink-950), var(--nx-ink-900)); color: #FFF; min-height: 100vh; margin: 0; }
.pres-shell { max-width: 1440px; margin: 0 auto; padding: 20px; }

.pres-hero {
  padding: 22px 28px;
  border-radius: 14px;
  background: radial-gradient(60% 100% at 100% 0%, rgba(212, 175, 55, 0.16), transparent 60%),
              linear-gradient(135deg, #1a1104, var(--nx-ink-900));
  border: 1px solid rgba(212, 175, 55, 0.28);
  margin-bottom: 16px;
}
.pres-hero .kicker { font-family: var(--font-mono); font-size: 11px; color: #F5D97F; letter-spacing: 0.14em; font-weight: var(--fw-black); }
.pres-hero h1 { font-size: 28px; font-weight: var(--fw-black); letter-spacing: -0.02em; margin: 4px 0 4px; }
.pres-hero .lead { color: rgba(255,255,255,0.75); font-size: 14px; max-width: 780px; }

/* KPIs */
.pres-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 800px) { .pres-kpis { grid-template-columns: repeat(2, 1fr); } }
.pres-kpi {
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  border-top: 3px solid #F5D97F;
}
.pres-kpi.warn  { border-top-color: var(--nx-amber-500); }
.pres-kpi.alert { border-top-color: #EF4444; }
.pres-kpi.ok    { border-top-color: #10B981; }
.pres-kpi .lbl { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.12em; font-weight: var(--fw-black); text-transform: uppercase; }
.pres-kpi .val { font-family: var(--font-mono); font-size: 24px; font-weight: var(--fw-black); margin-top: 4px; }

/* Directives list */
.pres-list { display: flex; flex-direction: column; gap: 12px; }
.pres-dir {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  border-left: 4px solid #F5D97F;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  transition: transform 200ms var(--ease-out);
}
.pres-dir:hover { transform: translateY(-2px); }
.pres-dir.overdue { border-left-color: #EF4444; background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), rgba(15, 23, 42, 0.75) 30%); }
.pres-dir.on-track { border-left-color: #10B981; }

.pres-dir .seal {
  width: 68px; height: 68px; border-radius: 12px;
  background: linear-gradient(135deg, #F5D97F, #B08B26);
  color: #1a1104;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: var(--fw-black);
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.pres-dir .body .code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #F5D97F;
  letter-spacing: 0.14em;
  font-weight: var(--fw-black);
  margin-bottom: 4px;
}
.pres-dir .body h3 {
  font-size: 17px;
  font-weight: var(--fw-black);
  color: #FFF;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.pres-dir .body .meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pres-dir .body .meta strong { color: #FFF; font-weight: var(--fw-black); }
.pres-dir .body .bar-lbl { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; margin-bottom: 4px; }
.pres-dir .body .bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.pres-dir .body .bar .fill { height: 100%; background: linear-gradient(90deg, var(--nx-teal-500), var(--nx-teal-300)); border-radius: 3px; }
.pres-dir.overdue .body .bar .fill { background: linear-gradient(90deg, #EF4444, #FCA5A5); }
.pres-dir .body .bottleneck {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #EF4444;
  border-radius: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.pres-dir .body .bottleneck strong { color: #FCA5A5; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 2px; }

.pres-dir .rail {
  text-align: right;
  min-width: 160px;
  display: flex; flex-direction: column; gap: 6px;
}
.pres-dir .rail .status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-black);
  letter-spacing: 0.06em;
}
.pres-dir .rail .status.in-progress { background: rgba(6, 182, 212, 0.16); color: var(--nx-teal-300); }
.pres-dir .rail .status.overdue     { background: rgba(239, 68, 68, 0.18); color: #FCA5A5; }
.pres-dir .rail .status.on-track    { background: rgba(16, 185, 129, 0.18); color: #6EE7B7; }
.pres-dir .rail .deadline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-weight: var(--fw-bold);
}
.pres-dir .rail .btn {
  margin-top: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  color: #FFF;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
}
.pres-dir .rail .btn:hover { background: rgba(255,255,255,0.14); }
