/* ═══════════════════════════════════════════════
        HCSL ORG CHART — CSS
        Brand palette sourced from hcsl.in website
        ═══════════════════════════════════════════════ */

:root {
  --hcsl-navy: #1a3a6b;
  --hcsl-navy-dark: #0f2448;
  --hcsl-green: #1a7a3a;
  --hcsl-purple: #6b2d8b;
  --hcsl-blue-dept: #1a3a6b;
  --hcsl-blue-mid: #2e5fa3;
  --hcsl-blue-staff: #3b73c4;
  --line-color: #8faad4;
  --line-width: 1px;
  --v-gap: 10px;
  --h-pad: 5px;
}

.page-header {
  background: var(--hcsl-navy-dark);
  color: #fff;
  text-align: center;
  padding: 14px 20px 12px;
  border-bottom: 3px solid #c8a400;
  letter-spacing: 0.6px;
}
.page-header h1 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.page-header p {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 3px;
  font-weight: 400;
}

.chart-wrap {
  overflow: auto;
  padding: 28px 24px 60px;
  text-align: center;
}

.chart-inner {
  display: inline-block;
  text-align: left;
}

.box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  min-width: 84px;
  min-height: 34px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.box:focus {
  outline: 3px solid #f0c040;
  outline-offset: 2px;
  z-index: 10;
}
.box:focus:not(:focus-visible) {
  outline: none;
}

.b-chair {
  background: var(--hcsl-navy-dark);
  border-top: 3px solid #c8a400;
}
.b-ceo {
  background: var(--hcsl-green);
  border-top: 3px solid #6ddc8f;
}
.b-asst {
  background: var(--hcsl-purple);
  border-top: 3px solid #c07ee0;
}
.b-dept {
  background: var(--hcsl-blue-dept);
  border-top: 3px solid #7aaee8;
}
.b-mid {
  background: var(--hcsl-blue-mid);
  border-top: 3px solid #8fc4f8;
}
.b-staff {
  background: var(--hcsl-blue-staff);
  border-top: 3px solid #a8d4ff;
}

.v-down {
  width: var(--line-width);
  background: var(--line-color);
  height: var(--v-gap);
  margin: 0 auto;
  flex-shrink: 0;
}

.v-down.v-down-cfo{
    height: 20px;
}

.stub-up {
  width: var(--line-width);
  background: var(--line-color);
  height: var(--v-gap);
  flex-shrink: 0;
}

.stub-up.stub-up-1 {
  height: 96px;
}

.h-bar {
  position: absolute;
  top: 0;
  height: var(--line-width);
  background: var(--line-color);
  pointer-events: none;
}

.h-side-line {
  height: var(--line-width);
  background: var(--line-color);
  flex-shrink: 0;
}
.h-side-line-left {
  width: 44px;
}
.h-side-line-right {
  width: 44px;
}

.sib-wrap {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.sib-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--h-pad);
}

.node-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ceo-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ceo-side {
  display: flex;
  align-items: center;
}

#chart {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  padding: 12px 20px;

  border-top: 1px solid #dce4f0;
  font-size: 12px;
  margin-bottom: 36px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.glossary {
  border-top: 1px solid var(--line-color);
  padding: 24px 0;
}
.glossary-inner {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  justify-content: space-between;
  gap: 24px;
}
.glossary-group h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 3px;
}
.glossary-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.glossary-group li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.glossary-group li span {
  font-weight: 700;
  min-width: 52px;
  flex-shrink: 0;
}

.dark-theme,
.grey-theme {
  --line-color: Var(--yellow-light-color);
}


.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* 
.abbr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 16px;
}
.abbr-table caption {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: left;
  padding-bottom: 8px;
  color: var(--hcsl-navy);
}
.abbr-table th {
  background: var(--hcsl-navy-dark);
  color: #fff;
  text-align: left;
  padding: 6px 10px;
  font-weight: 600;
}
.abbr-table td {
  padding: 5px 10px;
  border-bottom: 1px solid #dce4f0;
  color: #333;
}
.abbr-table td:first-child {
  font-weight: 700;
  color: var(--hcsl-navy);
  white-space: nowrap;
}
.abbr-table tr:nth-child(even) td {
  background: #f4f7fb;
}
.abbr-table tr:hover td {
  background: #e8f0f8;
} */