/* CTW Data Solutions — ISO 27001 ISMS Custom Styles */

:root {
  --md-primary-fg-color:        #0A2540;
  --md-primary-fg-color--light: #1A56DB;
  --md-primary-fg-color--dark:  #061828;
  --md-accent-fg-color:         #00A3E0;
  --md-typeset-a-color:         #1A56DB;
}

/* Header branding */
.md-header {
  background: linear-gradient(135deg, #0A2540 0%, #1A3A5C 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Confidential banner */
.md-header::after {
  content: "🔒 CONFIDENTIAL — Authorised Access Only";
  display: block;
  background: #00A3E0;
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 3px 0;
}

/* Status badges */
.status-implemented {
  background: #D1FAE5;
  color: #065F46;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
}

.status-progress {
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
}

.status-planned {
  background: #F3F4F6;
  color: #6B7280;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
}

.status-na {
  background: #F3F4F6;
  color: #9CA3AF;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8em;
}

/* Risk ratings */
.risk-high   { color: #991B1B; font-weight: 700; }
.risk-medium { color: #92400E; font-weight: 700; }
.risk-low    { color: #065F46; font-weight: 700; }

/* Classification tags */
.class-topsecret   { background: #FEE2E2; color: #991B1B; padding: 2px 8px; border-radius: 4px; font-size: 0.8em; font-weight: 700; }
.class-confidential { background: #FEF3C7; color: #92400E; padding: 2px 8px; border-radius: 4px; font-size: 0.8em; font-weight: 700; }
.class-internal    { background: #EFF6FF; color: #1E40AF; padding: 2px 8px; border-radius: 4px; font-size: 0.8em; font-weight: 700; }

/* Table improvements */
.md-typeset table:not([class]) th {
  background: #0A2540;
  color: white;
}

.md-typeset table:not([class]) tr:nth-child(even) {
  background: #F8FAFC;
}

/* Navigation sidebar */
.md-nav__title {
  font-weight: 700;
  color: #0A2540;
}

/* Footer */
.md-footer {
  background: #0A2540;
}

/* Admonition custom colours */
.md-typeset .admonition.security,
.md-typeset details.security {
  border-color: #00A3E0;
}
.md-typeset .admonition.security > .admonition-title,
.md-typeset details.security > summary {
  background-color: #EAF6FD;
  border-color: #00A3E0;
}
