/* Organizational structure page */
.org-hero {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(201,162,39,.16), transparent 50%),
    linear-gradient(155deg, #0f2744 0%, #1a3a6b 60%, #1e4a7a 100%);
  color: #fff;
  padding: 48px 0 52px;
}
.org-bc {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: .9rem; color: rgba(255,255,255,.75); margin-bottom: 16px;
}
.org-bc a { color: #fff; font-weight: 700; }
.org-bc a:hover { color: #fbbf24; }
.org-kicker { color: #fbbf24; font-weight: 800; font-size: .88rem; margin-bottom: 10px; }
.org-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; margin: 0 0 12px; }
.org-lead { max-width: 720px; line-height: 1.9; color: rgba(255,255,255,.9); margin: 0 0 20px; }
.org-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.org-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; font-weight: 800; font-size: .95rem;
}
.org-btn--gold { background: #c9a227; color: #12263f; }
.org-btn--ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }

.org-section { padding: 52px 0; }
.org-section--muted { background: #f8fafc; }
.org-h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 900; color: #12263f; margin: 0 0 12px;
}
.org-h2::before {
  content: ""; width: 6px; height: 24px; border-radius: 99px;
  background: linear-gradient(180deg, #c9a227, #b8911f);
}
.org-intro { color: #64748b; margin: 0 0 22px; max-width: 720px; line-height: 1.8; font-weight: 600; }

.org-ranks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.org-ranks > div {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px;
}
.org-ranks h3 { margin: 0 0 12px; color: #1e3a5f; font-size: 1.05rem; font-weight: 800; }
.org-ranks ol { margin: 0; padding-inline-start: 1.2rem; color: #334155; font-weight: 600; line-height: 1.9; }
.org-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.org-chips li {
  background: #eef2ff; color: #1e3a5f; font-weight: 800; font-size: .85rem;
  padding: 6px 12px; border-radius: 999px;
}

.org-tree {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 24px 18px;
}
.org-node {
  display: block; width: fit-content; margin: 0 auto 12px;
  background: #1e3a5f; color: #fff; font-weight: 800;
  padding: 10px 18px; border-radius: 10px; text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(18, 38, 63, .18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
a.org-node {
  cursor: pointer;
}
a.org-node:hover {
  filter: brightness(1.1);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(18, 38, 63, .24);
}
.org-node--top { background: #12263f; }
.org-node--main { background: #254a73; border: 2px solid #c9a227; }
.org-side {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px;
}
.org-side span {
  background: #f1f5f9; color: #64748b; border: 1px dashed #94a3b8;
  padding: 8px 12px; border-radius: 8px; font-size: .85rem; font-weight: 700;
}
.org-chip-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #1e3a5f;
  border: 1.5px solid #c9a227;
  padding: 9px 14px; border-radius: 999px;
  font-size: .86rem; font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(201, 162, 39, .12);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.org-chip-link i { font-size: .75rem; color: #c9a227; }
.org-chip-link:hover {
  background: #c9a227; color: #12263f;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(201, 162, 39, .28);
}
.org-chip-link:hover i { color: #12263f; }
.org-branches {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.org-branches article {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px;
}
.org-branches h3 {
  margin: 0 0 10px; font-size: .98rem; color: #fff; background: #1e3a5f;
  padding: 0; border-radius: 8px; text-align: center; overflow: hidden;
}
.org-branch-title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; color: #fff; text-decoration: none; font-weight: 800;
  transition: background .15s, color .15s;
}
.org-branch-title i { font-size: .75rem; color: #fde68a; }
.org-branch-title:hover { background: #254a73; color: #fde68a; }
.org-branches ul { list-style: none; margin: 0; padding: 0; }
.org-branches li {
  padding: 0; border-bottom: 1px solid #eef2f7;
  font-size: .88rem; font-weight: 600; color: #334155;
}
.org-branches li:last-child { border-bottom: 0; }
.org-unit-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 6px; color: #1e3a5f; text-decoration: none; font-weight: 700;
  border-radius: 8px; transition: background .15s, color .15s, padding-inline .15s;
}
.org-unit-link i {
  font-size: .7rem; color: #c9a227; opacity: .85;
  transition: transform .15s ease;
}
.org-unit-link:hover {
  background: #fff7e6; color: #9a7b1a;
  padding-inline: 10px 6px;
}
.org-unit-link:hover i { transform: translateX(-3px); opacity: 1; }
html[dir="ltr"] .org-chip-link i,
html[dir="ltr"] .org-branch-title i,
html[dir="ltr"] .org-unit-link i {
  transform: scaleX(-1);
}
html[dir="ltr"] .org-unit-link:hover i { transform: scaleX(-1) translateX(-3px); }

.org-group { margin-bottom: 28px; }
.org-group__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.org-group__head h3 { margin: 0; font-size: 1.15rem; color: #12263f; font-weight: 900; }
.org-group-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #1e3a5f; text-decoration: none;
  border-bottom: 2px solid #c9a227;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.org-group-link i { font-size: .75rem; color: #c9a227; }
.org-group-link:hover { color: #9a7b1a; border-color: #9a7b1a; }
html[dir="ltr"] .org-group-link i { transform: scaleX(-1); }
.org-group__head span {
  font-size: .8rem; font-weight: 800; color: #1e3a5f;
  background: #e8f0fe; padding: 4px 10px; border-radius: 999px;
}

.org-staff-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.org-card {
  display: flex; gap: 16px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 18px; padding: 18px; align-items: flex-start;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.org-card:hover {
  border-color: #c9a227;
  box-shadow: 0 14px 34px rgba(18,38,63,.1);
  transform: translateY(-2px);
}
.org-card__photo {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(145deg, #1e3a5f, #3b82f6);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.7rem;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 2px #c9a227,
    0 10px 22px rgba(18,38,63,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.org-card__photo { color: #fff; text-decoration: none; }
a.org-card__photo:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 2px #b8911f,
    0 14px 28px rgba(18,38,63,.2);
}
.org-card__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.org-card__body { min-width: 0; flex: 1; }
.org-card__body h4 { margin: 0 0 4px; font-size: 1.02rem; color: #12263f; font-weight: 800; }
.org-card__title { margin: 0 0 8px; color: #b8911f; font-weight: 700; font-size: .9rem; }
.org-staff-name {
  color: inherit; text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.org-staff-name:hover {
  color: #9a7b1a;
  border-bottom-color: #c9a227;
}
.org-card__job {
  font-size: .88rem; color: #475569; line-height: 1.7; margin-bottom: 8px;
}
.org-card__job p { margin: 0 0 6px; }
.org-card__bio { font-size: .88rem; color: #334155; margin-bottom: 8px; }
.org-card__bio summary {
  cursor: pointer; font-weight: 800; color: #1e3a5f; list-style: none;
}
.org-card__bio summary::-webkit-details-marker { display: none; }
.org-card__bio[open] summary { margin-bottom: 6px; }
.org-card__meta {
  display: flex; flex-wrap: wrap; gap: 10px; font-size: .82rem; font-weight: 700;
}
.org-card__meta a { color: #1e3a5f; }
.org-card__meta a:hover { color: #c9a227; }
.org-empty {
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px;
  padding: 24px; text-align: center; color: #64748b; font-weight: 700;
}

.org-task-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.org-task-list li {
  position: relative;
  padding: 14px 16px;
  padding-inline-start: 44px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.7;
}
.org-task-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 900;
}
.org-subunits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.org-subunit {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px 16px; color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.org-subunit:hover { border-color: #c9a227; box-shadow: 0 8px 22px rgba(18,38,63,.08); }
.org-subunit strong { color: #12263f; font-weight: 800; }
.org-subunit span { font-size: .8rem; color: #64748b; font-weight: 700; }

.org-profile-hero {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(201,162,39,.16), transparent 50%),
    linear-gradient(155deg, #0f2744 0%, #1a3a6b 60%, #1e4a7a 100%);
  color: #fff;
  padding: 40px 0 56px;
}
.org-profile-hero__inner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.org-profile-avatar {
  width: 148px; height: 148px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 4px solid rgba(255,255,255,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  font-size: 3rem; font-weight: 900;
}
.org-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-profile-hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 900; }
.org-profile-role { margin: 0 0 16px; opacity: .92; font-weight: 700; font-size: 1.05rem; }
.org-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.org-profile-layout {
  display: grid; grid-template-columns: 1.55fr .9fr; gap: 20px; align-items: start;
}
.org-profile-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 22px 24px; margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.org-profile-card h2 {
  margin: 0 0 14px; font-size: 1.08rem; color: #1e3a5f; font-weight: 900;
  display: flex; align-items: center; gap: 10px;
}
.org-profile-card h2 i { color: #c9a227; }
.org-profile-prose {
  color: #334155;
  line-height: 1.85;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.org-profile-prose > *:first-child { margin-top: 0; }
.org-profile-prose > *:last-child { margin-bottom: 0; }
.org-profile-prose p {
  margin: 0 0 14px;
  font-size: .98rem;
}
.org-profile-prose h3,
.org-profile-prose .org-bio-section__title {
  display: block !important;
  margin: 22px 0 12px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1.02rem !important;
  font-weight: 900 !important;
  color: #12263f !important;
  line-height: 1.4 !important;
  min-height: 0 !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}
.org-profile-prose ul,
.org-profile-prose ol {
  list-style: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.org-profile-prose li {
  display: block !important;
  position: relative;
  margin: 0 !important;
  padding: 12px 14px !important;
  padding-inline-start: 18px !important;
  background: #f8fafc;
  border: 1px solid #e8eef6;
  border-radius: 12px;
  border-inline-start: 3px solid #c9a227;
  color: #334155 !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
  justify-content: initial !important;
  align-items: initial !important;
  gap: 0 !important;
}
.org-profile-prose li strong {
  display: block;
  color: #12263f;
  font-weight: 900;
  margin-bottom: 4px;
}
.org-profile-prose li .org-bio-meta {
  display: block;
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.org-profile-prose .org-bio-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.org-profile-prose .org-bio-chips li {
  display: inline-flex !important;
  align-items: center !important;
  width: auto;
  padding: 7px 12px !important;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  border-inline-start: 1px solid #e2e8f0;
  background: #fff;
  font-size: .84rem !important;
  font-weight: 800 !important;
  color: #1e3a5f !important;
}
.org-card__bio .org-profile-prose,
.org-card__bio div {
  max-height: none;
}
.org-card__bio .org-profile-prose li {
  padding: 8px 10px !important;
  font-size: .84rem !important;
}
.org-profile-meta {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 12px; background: #f8fafc;
  border-inline-start: 3px solid #c9a227;
  text-decoration: none; color: inherit; margin-bottom: 10px;
  transition: background .15s;
}
.org-profile-meta:hover { background: #fff7e6; }
.org-profile-meta i {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: #fff7e6; color: #c9a227;
}
.org-profile-meta small { display: block; color: #64748b; font-size: .78rem; font-weight: 700; }
.org-profile-meta strong { color: #12263f; font-size: .92rem; }

@media (max-width: 900px) {
  .org-ranks, .org-branches, .org-profile-layout { grid-template-columns: 1fr; }
  .org-profile-hero__inner { flex-direction: column; text-align: center; }
  .org-profile-actions { justify-content: center; }
}
@media (max-width: 560px) {
  .org-card { flex-direction: column; align-items: center; text-align: center; }
  .org-card__meta { justify-content: center; }
}
