/* ==========================================================================
   PPCM Theme — About
   ========================================================================== */

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(27, 42, 74, 0.18);
}

.timeline-item {
  position: relative;
  padding: 0 0 26px 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.16);
}

.timeline-item__title {
  margin: 0 0 6px;
}

.timeline-item__meta {
  color: var(--color-text-muted);
  font-weight: 600;
  margin: 0 0 10px;
}

/* Leadership cards */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.leader-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.leader-card__photo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 1px solid var(--color-border);
}

.leader-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.14), rgba(255, 107, 53, 0.14));
  border: 1px solid var(--color-border);
}

.leader-card__name { margin: 0 0 4px; font-size: clamp(0.95rem, 1.8vw, 1.1rem); }
.leader-card__role { margin: 0; color: var(--color-accent); font-weight: 700; font-size: 0.88rem; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.value-card__title { margin: 0 0 8px; }
.value-card__desc { margin: 0; color: var(--color-text-muted); }

/* Governance org chart (detailed hierarchy) */
.orgchart {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 16px;
  background: #1b2a4a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  color: var(--color-white);
  overflow: hidden;
}

.orgchart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.orgchart__tier {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.orgchart__tier--1 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.35fr);
}

.orgchart__tier--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orgchart__tier--3 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
  justify-self: center;
  width: 100%;
}

.orgchart__tier--4 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.orgchart__tier--5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.orgchart__node {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.orgchart__node--board,
.orgchart__node--coo {
  border-color: rgba(52, 211, 153, 0.85);
  background: rgba(16, 185, 129, 0.12);
}

.orgchart__node--audit {
  background: rgba(255, 255, 255, 0.05);
}

.orgchart__node--advisory {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.24);
}

.orgchart__node--dashed {
  border-style: dashed;
}

.orgchart__node-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.38);
  font-size: 15px;
}

.orgchart__node-title {
  margin: 0 0 8px;
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1.35;
}

.orgchart__node-people {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.45;
}

.orgchart__node-meta {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}

.orgchart__node-kpis {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  line-height: 1.5;
}

.orgchart__legend {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  margin-left: auto;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  width: fit-content;
  max-width: 100%;
}

.orgchart__legend p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.orgchart__legend p:last-child {
  margin-bottom: 0;
}

.orgchart__legend-line {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
}

.orgchart__legend-line--dashed {
  border-top-style: dashed;
}

.orgchart__legend-box {
  width: 16px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  display: inline-block;
}

.orgchart__legend-box--dashed {
  border-style: dashed;
}

.orgchart__dotted-line-label {
  position: absolute;
  right: 20px;
  top: 52%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  pointer-events: none;
  z-index: 1;
}

/* Solid vertical connectors between tiers */
.orgchart__tier--2::before,
.orgchart__tier--3::before,
.orgchart__tier--4::before,
.orgchart__tier--5::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 2px;
  height: 12px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.45);
}

/* Dotted reporting line: Finance & Compliance -> Audit committee */
#orgchart-finance::before {
  content: "";
  position: absolute;
  top: -210px;
  right: 28%;
  width: 2px;
  height: 210px;
  border-right: 2px dashed rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
  .leadership-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .orgchart {
    padding: 18px;
  }

  .orgchart__tier--1,
  .orgchart__tier--2 {
    grid-template-columns: 1fr;
  }

  .orgchart__tier--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .orgchart__tier--5 {
    grid-template-columns: 1fr;
  }

  #orgchart-finance::before,
  .orgchart__dotted-line-label {
    display: none;
  }
}

@media (max-width: 768px) {
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }

  .orgchart__tier--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orgchart__legend {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .leadership-grid { grid-template-columns: 1fr; }

  .orgchart__tier--4 {
    grid-template-columns: 1fr;
  }

  .orgchart__node-title {
    font-size: 0.95rem;
  }

  .orgchart__node-people,
  .orgchart__node-meta,
  .orgchart__node-kpis {
    font-size: 0.8rem;
  }

  .orgchart__tier--2::before,
  .orgchart__tier--3::before,
  .orgchart__tier--4::before,
  .orgchart__tier--5::before {
    display: none;
  }
}

.policies-governance__docs-subsection {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.policies-governance__docs-subsection-title {
  margin: 0 0 10px;
}

.policies-governance__docs-subsection-intro {
  margin: 0 0 var(--space-5);
  color: var(--color-text-muted);
}

