/* ── Core colour overrides ── */
[data-md-color-scheme="slate"] {
  --md-default-bg-color:           #0a0f1e;
  --md-default-bg-color--light:    #111827;
  --md-default-bg-color--lighter:  #1a2234;
  --md-default-bg-color--lightest: #1e2a40;

  --md-default-fg-color:           #ffffff;
  --md-default-fg-color--light:    rgba(255,255,255,0.87);
  --md-default-fg-color--lighter:  rgba(255,255,255,0.54);
  --md-default-fg-color--lightest: rgba(255,255,255,0.12);

  --md-primary-fg-color:           #00d4d8;
  --md-primary-fg-color--light:    #33dcdf;
  --md-primary-fg-color--dark:     #00b0b4;
  --md-primary-bg-color:           #ffffff;
  --md-primary-bg-color--light:    rgba(255,255,255,0.7);

  --md-accent-fg-color:            #00d4d8;
  --md-accent-fg-color--transparent: rgba(0,212,216,0.1);
  --md-accent-bg-color:            #0a0f1e;

  --md-typeset-a-color:            #00d4d8;
  --md-code-bg-color:              #111827;
  --md-code-fg-color:              #e2e8f0;
}

/* ── Header & nav ── */
.md-header,
.md-tabs {
  background-color: #080d18;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: #00d4d8 !important;
}

.md-header__title {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ── Sidebar & TOC ── */
.md-nav__link--active {
  color: #00d4d8 !important;
  font-weight: 600;
}

/* ── Headings ── */
.md-typeset h1 {
  color: #ffffff;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

.md-typeset h2 {
  color: #00d4d8;
  font-weight: 700;
  border-bottom: 1px solid rgba(0,212,216,0.25);
  padding-bottom: 6px;
}

.md-typeset h3 {
  color: #00d4d8;
  font-weight: 600;
}

.md-typeset h4 {
  color: #00d4d8;
}

/* ── Horizontal rule ── */
.md-typeset hr {
  border-color: rgba(0,212,216,0.2);
}

/* ── Blockquote ── */
.md-typeset blockquote {
  border-left: 4px solid #00d4d8;
  background: rgba(0,212,216,0.05);
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  color: rgba(255,255,255,0.8);
  font-style: italic;
}

/* ── Section label chip (e.g. "VALUE PROPOSITION") ── */
.section-label {
  display: inline-block;
  border: 1px solid #00d4d8;
  color: #00d4d8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

/* ── Stat grid (large cyan numbers) ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #00d4d8;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  display: block;
  letter-spacing: 0.3px;
}

/* ── Card grid (2-column, cyan left border) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.card {
  background: #111827;
  border: 1px solid rgba(0,212,216,0.15);
  border-left: 3px solid #00d4d8;
  border-radius: 4px;
  padding: 24px;
}

.card h3 {
  color: #00d4d8 !important;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  border: none !important;
  padding: 0 !important;
}

/* ── Values grid (leadership page) ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.value-card {
  border: 1px solid rgba(0,212,216,0.2);
  border-top: 4px solid #00d4d8;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
}

.value-card h4 {
  color: #00d4d8 !important;
  margin-top: 0;
  font-size: 0.95rem;
}

.value-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

/* ── Foundation banner ── */
.foundation-banner {
  text-align: center;
  border: 2px solid #00d4d8;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  background-color: rgba(0,212,216,0.05);
}

.foundation-banner h3 {
  margin-top: 0 !important;
  color: #00d4d8 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none !important;
  padding: 0 !important;
}

.foundation-banner p {
  margin-bottom: 0;
  font-weight: bold;
  letter-spacing: 3px;
  color: #ffffff;
}

/* ── Culture bar ── */
.culture-bar {
  text-align: center;
  border-top: 2px solid #00d4d8;
  border-bottom: 2px solid #00d4d8;
  padding: 15px;
  background-color: rgba(0,212,216,0.05);
  border-radius: 4px;
  margin: 20px 0;
}

.culture-bar p {
  margin-bottom: 0;
  font-weight: bold;
  letter-spacing: 3px;
  color: #ffffff;
}

/* ── Principle cards (numbered) ── */
.principle {
  border-left: 3px solid #00d4d8;
  background: #111827;
  border-radius: 0 4px 4px 0;
  padding: 20px 24px;
  margin: 16px 0;
}

.principle h3 {
  color: #00d4d8 !important;
  margin-top: 0;
  border: none !important;
  padding: 0 !important;
}

/* ── Role cards (experience page) ── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.role-card {
  background: #111827;
  border: 1px solid rgba(0,212,216,0.15);
  border-top: 3px solid #00d4d8;
  border-radius: 4px;
  padding: 24px;
}

.role-card h3 {
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0;
  border: none !important;
  padding: 0 !important;
}

.role-card .org {
  color: #00d4d8;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

.role-card ul {
  padding-left: 16px;
  margin: 0;
}

.role-card li {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ── Misc ── */
.md-content__inner {
  padding-top: 1.5rem;
}

strong {
  color: rgba(255,255,255,0.95);
}

/* ════════════════════════════════════════
   CUTOVER FAILURE EQUATION
   ════════════════════════════════════════ */

.ceq-wrapper {
  margin: 32px 0;
}

/* Intro / formula text */
.ceq-intro {
  text-align: center;
  margin-bottom: 28px;
}

.ceq-formula-text {
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}

.ceq-tagline {
  font-size: 0.82rem;
  color: #00d4d8;
  font-style: italic;
  margin: 0;
}

/* Formula boxes row */
.ceq-boxes {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ceq-box {
  background: #111827;
  border: 2px solid rgba(0,212,216,0.4);
  border-radius: 6px;
  padding: 14px 16px;
  text-align: center;
  flex: 1;
  min-width: 110px;
  max-width: 155px;
}

.ceq-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.ceq-box-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  line-height: 1.4;
}

.ceq-box-impact {
  background: rgba(0,212,216,0.12);
  border-color: #00d4d8;
  border-width: 2px;
}

.ceq-box-impact .ceq-box-title {
  color: #00d4d8;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.ceq-operator {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  padding: 0 2px;
  flex-shrink: 0;
}

/* Column grid: 1fr [2fr decision group] 1fr */
.ceq-columns {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
  align-items: start;
}

/* Outer columns */
.ceq-col {
  background: #111827;
  border: 1px solid rgba(0,212,216,0.2);
  border-top: 3px solid #00d4d8;
  border-radius: 0 0 4px 4px;
  padding: 16px;
}

/* Decision bracket group */
.ceq-decision-group {
  display: flex;
  flex-direction: column;
}

.ceq-decision-bracket {
  background: rgba(0,212,216,0.08);
  border: 1px solid rgba(0,212,216,0.35);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00d4d8;
}

.ceq-decision-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(0,212,216,0.35);
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.ceq-decision-inner .ceq-col {
  border: none;
  border-top: 3px solid #00d4d8;
  border-radius: 0;
  background: #111827;
}

.ceq-decision-inner .ceq-col:first-child {
  border-right: 1px solid rgba(0,212,216,0.2);
}

/* Column internals */
.ceq-col-time {
  font-size: 0.68rem;
  font-weight: 700;
  color: #00d4d8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ceq-col-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,212,216,0.15);
}

.ceq-col-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin: 0 0 10px;
  line-height: 1.5;
}

.ceq-badge {
  display: inline-block;
  background: rgba(0,212,216,0.12);
  border: 1px solid rgba(0,212,216,0.5);
  color: #00d4d8;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}

/* Lists */
.ceq-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ceq-list li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.68);
  padding: 4px 0 4px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  line-height: 1.4;
}

.ceq-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #00d4d8;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Sub-sections inside Execute column */
.ceq-sub-section {
  margin-bottom: 4px;
}

.ceq-sub-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: #00d4d8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 14px 0 6px;
}

.ceq-integrity-note {
  margin-top: 14px;
  background: rgba(0,212,216,0.07);
  border-left: 3px solid #00d4d8;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

/* Timing bar */
.ceq-timing-bar {
  margin-top: 16px;
  text-align: center;
  padding: 12px 20px;
  background: rgba(0,212,216,0.05);
  border: 1px solid rgba(0,212,216,0.18);
  border-radius: 4px;
}

.ceq-timing-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-right: 8px;
}

.ceq-timing-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #00d4d8;
}

/* Responsive — stack on small screens */
@media (max-width: 768px) {
  .ceq-columns {
    grid-template-columns: 1fr;
  }
  .ceq-decision-inner {
    grid-template-columns: 1fr;
  }
  .ceq-decision-inner .ceq-col:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(0,212,216,0.2);
  }
  .ceq-boxes {
    justify-content: flex-start;
  }
  .ceq-box {
    min-width: 80px;
    padding: 10px 12px;
  }
}

/* ── Profile header ── */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #00d4d8;
  flex-shrink: 0;
}

.profile-text {
  flex: 1;
}

@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
