/* TSCM MATURITY ASSESSMENT  -  Base Design System */
/* Reskinned to match TALENT on demand site palette */

:root {
  /* Site-matching colours */
  --navy: #143660;
  --navy-light: #1e4d80;
  --navy-dark: #0d2540;
  /* Accent: cyan replaces gold throughout */
  --gold: #00b4d8;
  --gold-light: #33c5e2;
  --gold-dark: #0092b5;
  /* Neutrals */
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-100: #e8eaed;
  --gray-200: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  /* Semantic colours */
  --red: #dc2626;
  --red-light: #fecaca;
  --orange: #ea580c;
  --green: #16a34a;
  --green-light: #bbf7d0;
  --blue: #2563eb;
  /* Typography & layout  -  match site */
  --font-main: 'Trebuchet MS', Arial, sans-serif;
  --shadow: 0 2px 12px rgba(20,54,96,.08);
  --shadow-lg: 0 4px 16px rgba(20,54,96,.14);
  --radius: 12px;
  --transition: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- HEADER --- */
/* The JS renders a <header> inside #app  -  hide it since the site nav is already above */
#app > header { display: none !important; }

/* --- CONTAINER --- */
/* Scoped to #app so it doesn't override the site nav's .container */
#app .container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- CARDS --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.card h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}
.card h3 {
  font-size: 1rem;
  color: var(--navy-light);
  margin-bottom: 0.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
}
.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover { background: var(--navy-light); }
.btn-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- TABLES --- */
.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.scorecard-table th,
.scorecard-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.85rem;
}
.scorecard-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.scorecard-table tr:hover { background: var(--off-white); }

/* --- CTA SECTION --- */
.cta-section {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
}
.cta-section h2 { color: var(--navy); }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.cta-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.cta-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-text strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.cta-text p {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.4;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.muted { color: var(--gray-400); font-size: 0.8rem; }

/* --- FOOTER --- */
/* Hide the JS-rendered footer inside #app  -  the site footer is below the app div */
#app footer { display: none !important; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  header { flex-direction: column; text-align: center; gap: 0.5rem; }
  .cta-grid { grid-template-columns: 1fr; }
}

/* --- PRINT --- */
@media print {
  header { background: var(--white); color: var(--navy); box-shadow: none; border-bottom: 2px solid var(--navy); }
  header h1 span.gold { color: var(--navy); }
  .btn, .btn-group { display: none !important; }
  .card { box-shadow: none; border: 1px solid var(--gray-200); break-inside: avoid; }
  body { background: var(--white); }
}
