/* ============================================================================
   Who's Who directory table
   Brand tokens mirror style.css: navy #00053c, orange #fe5900.
   Scoped to .ww-* so nothing here can leak into other pages.
   ============================================================================ */

.ww-table-wrap {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(3, 70, 102, 0.14);
  overflow-x: auto;
}

.ww-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
}

/* ---- Header row ---------------------------------------------------------- */
.ww-table thead th {
  background: linear-gradient(135deg, #00053c 0%, #1b2a6b 100%);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  text-align: center;
  padding: 18px 20px;
  border: none;
}
.ww-table thead th:first-child { text-align: left; padding-left: 34px; }

/* ---- Body rows ----------------------------------------------------------- */
.ww-table tbody tr { border-bottom: 1px solid #eef1f6; }
.ww-table tbody tr:last-child { border-bottom: none; }
/* Striping is set in the markup, not by :nth-child, because each officer may be
   followed by an attached row for their personal staff officer. */
.ww-table tbody tr.is-alt { background: #fafbfd; }
.ww-table tbody tr:hover { background: #f4f7fc; }

/* An officer with an attached staff row keeps no rule between the two. */
.ww-table tbody tr.has-aide { border-bottom: none; }

/* Personal staff officer (PPS / PS / SPA / PA): the same three columns, set
   quieter and indented so it reads as belonging to the officer above it. */
.ww-table tbody tr.ww-aide td { padding-top: 0; padding-bottom: 16px; }
.ww-aide .ww-profile { padding-left: 34px !important; }
.ww-aide .ww-profile::before { display: none; }
.ww-aide .ww-person { padding-left: 80px; }
.ww-table .ww-aide-name {
  margin: 0;
  color: var(--text-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}
.ww-table .ww-aide .ww-desig span,
.ww-table .ww-aide .ww-contact li { font-size: var(--fs-small); color: var(--text-muted); }
.ww-aide .ww-contact i { color: #7f9dc4; }

.ww-table td {
  padding: 18px 16px;
  vertical-align: middle;
  border: none;
}

/* Blue accent bar on the left edge of every row. */
.ww-profile {
  position: relative;
  padding-left: 34px !important;
  min-width: 260px;
}
.ww-profile::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 2px;
  background: #1a5fb4;
}

.ww-person { display: flex; align-items: center; gap: 16px; }

.ww-photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--text-accent);
  background: #eef1f6;
}
.ww-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ww-table .ww-name {
  font-size: var(--fs-h6);
  text-align: left;
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  line-height: var(--lh-snug);
  margin: 0;
}
.ww-table .ww-sub {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  line-height: var(--lh-snug);
  text-align: left;
  margin: 3px 0 0;
}

/* ---- Designation --------------------------------------------------------- */
.ww-table .ww-desig {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  text-align: left;
  color: var(--text-body);
  line-height: var(--lh-snug);
  min-width: 180px;
}
.ww-table .ww-desig span { display: block; }
.ww-desig .ww-desig-2 { color: var(--text-muted); font-size: var(--fs-small); }

/* ---- Contact ------------------------------------------------------------- */
.ww-contact { min-width: 225px; }
.ww-contact ul { list-style: none; margin: 0; padding: 0; }
.ww-table .ww-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  color: var(--text-body);
  word-break: break-word;
}
.ww-contact li + li { margin-top: 4px; }
.ww-contact i { color: #1a5fb4; font-size: 15px; flex: 0 0 auto; }
.ww-contact a { color: var(--text-body); }
.ww-contact a:hover { color: var(--text-accent); text-decoration: underline; }

/* ---- Mobile: the table becomes a stack of cards --------------------------- */
@media (max-width: 767px) {
  .ww-table thead { display: none; }
  .ww-table, .ww-table tbody, .ww-table tr, .ww-table td { display: block; width: 100%; }

  .ww-table tbody tr {
    padding: 6px 0 14px;
    border-bottom: 1px solid #eef1f6;
  }
  .ww-table td { padding: 6px 16px 6px 30px; min-width: 0; }

  .ww-profile::before { top: 14px; bottom: 6px; left: 12px; }
  .ww-aide .ww-person { padding-left: 0; }
  .ww-table tbody tr.ww-aide { padding-top: 0; border-top: 1px dashed #e4e9f2; }
  .ww-photo { flex-basis: 56px; width: 56px; height: 56px; }

  /* Label the two data columns, since the header row is gone. */
  .ww-desig::before,
  .ww-contact::before {
    display: block;
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
  }
  .ww-desig::before { content: "Designation"; }
  .ww-contact::before { content: "Contact"; }
}
