:root {
  --ihrl-navy: #0b1d4b;
  --ihrl-navy-2: #102c64;
  --ihrl-gold: #f0c664;
  --ihrl-gold-soft: rgba(240, 198, 100, 0.18);
  --ihrl-silver: #f3f6f9;
  --ihrl-border: rgba(11, 29, 75, 0.12);
  --ihrl-text: #203963;
  --ihrl-muted: rgba(32, 57, 99, 0.72);
  --shadow-soft: 0 20px 48px rgba(11, 29, 75, 0.08);
  --shadow-card: 0 10px 30px rgba(14, 23, 48, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

body.page-org-structure {
  background: #f5f7fb;
  color: var(--ihrl-text);
}

.org-structure-page {
  padding-bottom: 0;
}

.org-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(11, 29, 75, 0.96), rgba(11, 29, 75, 0.92));
  color: #fff;
  padding: 42px 0 28px;
  overflow: hidden;
}

.org-hero::before,
.org-hero::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.org-hero::after {
  inset: 12% -18% auto auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(240, 198, 100, 0.12);
  border: 1px solid rgba(255,255,255,0.1);
}

.org-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb-nav {
  margin-bottom: 18px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb .current {
  color: var(--ihrl-gold);
}

.org-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.org-hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
}

.org-hero h1 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.org-hero-description {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-outline,
.utility-action,
.view-toggle,
.zoom-btn,
.drawer-close,
.filter-trigger,
.search-result-item,
.accordion-button,
.department-link {
  transition: all 0.2s ease;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ihrl-gold);
  color: var(--ihrl-navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #e6b64b;
  box-shadow: 0 10px 26px rgba(240,198,100,0.35);
}

.btn-outline {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(255,255,255,0.08);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.network-panel {
  position: relative;
  width: min(100%, 420px);
  min-height: 290px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.network-panel::before,
.network-panel::after {
  content: "";
  position: absolute;
  inset: 18% 12% 22% 18%;
  border: 1px solid rgba(240,198,100,0.18);
  border-radius: 50%;
}

.network-panel::after {
  inset: 35% 26% 30% 26%;
  border-style: dashed;
}

.network-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 36px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--ihrl-navy);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(8, 17, 36, 0.18);
}

.node-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.node-2 { top: 34%; left: 20%; }
.node-3 { top: 34%; right: 18%; }
.node-4 { bottom: 15%; left: 50%; transform: translateX(-50%); }

.org-stats {
  margin-top: -18px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--ihrl-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px 18px 18px;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ihrl-gold-soft);
  border: 1px solid rgba(240,198,100,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ihrl-navy);
  font-size: 1.15rem;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ihrl-muted);
  font-weight: 700;
}

.stat-number {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  color: var(--ihrl-navy);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.org-explorer {
  padding-top: 36px;
  padding-bottom: 18px;
}

.org-toolbar {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--ihrl-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 20px 20px 10px;
  position: relative;
}

.toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 16px;
}

.search-wrap {
  position: relative;
  flex: 1 1 420px;
}

.search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ihrl-muted);
}

#orgSearch {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--ihrl-border);
  background: #f6f8fb;
  padding: 0 18px 0 46px;
  color: var(--ihrl-navy);
  font-size: 1rem;
}

#orgSearch:focus,
#departmentFilter:focus,
#levelFilter:focus,
.view-toggle:focus-visible,
.utility-action:focus-visible,
.zoom-btn:focus-visible,
.drawer-close:focus-visible,
.accordion-button:focus-visible,
.search-result-item:focus-visible,
.department-link:focus-visible {
  outline: 3px solid rgba(240,198,100,0.6);
  outline-offset: 2px;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--ihrl-border);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(9, 17, 36, 0.12);
  max-height: 260px;
  overflow: auto;
}

.search-result-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ihrl-navy);
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: #f4f7fb;
}

.search-result-item small {
  color: var(--ihrl-muted);
  font-size: 0.78rem;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.view-toggle {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ihrl-border);
  background: #fff;
  color: var(--ihrl-text);
  font-weight: 600;
  min-height: 42px;
}

.view-toggle.active {
  background: var(--ihrl-navy);
  border-color: var(--ihrl-navy);
  color: #fff;
}

.utility-button {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(11, 29, 75, 0.12);
  background: var(--ihrl-gold-soft);
  color: var(--ihrl-navy);
  font-weight: 700;
  padding: 0 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(11, 29, 75, 0.08);
}

.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 200px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ihrl-muted);
  font-weight: 700;
}

#departmentFilter,
#levelFilter {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--ihrl-border);
  background: #f7f9fb;
  padding: 0 14px;
  color: var(--ihrl-navy);
  font-weight: 600;
}

.chart-surface {
  position: relative;
  margin-top: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.92));
  border: 1px solid var(--ihrl-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.chart-viewport {
  position: relative;
  overflow: auto;
  min-height: 480px;
  max-height: 820px;
  background:
    linear-gradient(to right, rgba(11,29,75,0.025), rgba(11,29,75,0.025)),
    radial-gradient(circle at top, rgba(240,198,100,0.10), transparent 50%);
}

.chart-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.chart-viewport::-webkit-scrollbar-thumb {
  background: rgba(11,29,75,0.18);
  border-radius: 999px;
}

.zoom-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.zoom-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--ihrl-border);
  background: rgba(255,255,255,0.9);
  color: var(--ihrl-navy);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(11,29,75,0.08);
}

.zoom-btn.reset {
  width: auto;
  padding: 0 12px;
}

.org-chart {
  position: relative;
  min-width: 100%;
  padding: 38px 20px 28px;
  transition: transform 0.22s ease;
  transform-origin: center center;
}

.org-chart.view-directory,
.org-chart.view-departments,
.org-chart.view-reporting,
.org-chart.view-compact {
  display: block;
}

.org-level {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  position: relative;
  margin: 0 auto 24px;
  max-width: 1200px;
}

.org-level:not(:last-child)::after {
  content: "";
  display: block;
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, rgba(11,29,75,0.2), rgba(240,198,100,0.72));
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
}

.org-card {
  position: relative;
  width: min(240px, 100%);
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--ihrl-border);
  border-radius: 20px;
  box-shadow: 0 14px 22px rgba(11,29,75,0.06);
  padding: 16px 14px 12px;
  text-align: left;
  color: var(--ihrl-text);
  cursor: pointer;
  min-height: 136px;
}

.org-card:hover,
.org-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(11,29,75,0.11);
}

.org-card.is-selected {
  border-color: rgba(240,198,100,0.9);
  box-shadow: 0 18px 30px rgba(240,198,100,0.18);
}

.org-card.is-related {
  border-color: rgba(11,29,75,0.22);
}

.org-card.is-muted {
  opacity: 0.32;
  filter: grayscale(0.1);
}

.org-card.is-leadership {
  background: linear-gradient(180deg, rgba(11,29,75,0.98), rgba(17,42,92,0.98));
  color: #fff;
}

.org-card.is-leadership .card-role,
.org-card.is-leadership .card-meta,
.org-card.is-leadership .card-badge,
.org-card.is-leadership .card-tag,
.org-card.is-leadership .card-link {
  color: rgba(255,255,255,0.78);
}

.org-card.is-leadership .card-name,
.org-card.is-leadership .card-title,
.org-card.is-leadership .count-label,
.org-card.is-leadership .card-link {
  color: #fff;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.photo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11,29,75,0.08), rgba(11,29,75,0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ihrl-navy);
  font-size: 1.2rem;
  font-weight: 800;
}

.org-card.is-leadership .photo-placeholder {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(240,198,100,0.16);
  padding: 5px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ihrl-navy);
}

.card-name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ihrl-navy);
  font-weight: 700;
}

.card-title {
  margin: 6px 0 8px;
  font-size: 0.76rem;
  color: var(--ihrl-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-role {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ihrl-text);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(11,29,75,0.08);
  color: var(--ihrl-muted);
  font-size: 0.74rem;
}

.count-label {
  font-weight: 700;
  color: var(--ihrl-navy);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--ihrl-navy);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.org-card.is-leadership .card-link {
  color: #fff;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.department-card {
  background: #fff;
  border: 1px solid var(--ihrl-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.department-card .department-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ihrl-gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ihrl-navy);
  margin-bottom: 16px;
}

.department-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--ihrl-navy);
}

.department-card p {
  margin: 0 0 18px;
  color: var(--ihrl-muted);
  line-height: 1.7;
}

.department-card .department-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(11,29,75,0.08);
  padding-top: 12px;
}

.department-card .department-count {
  font-weight: 700;
  color: var(--ihrl-navy);
}

.department-link {
  color: var(--ihrl-navy);
  font-weight: 700;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  letter-spacing: -0.04em;
}

.section-header p {
  margin: 0;
  color: var(--ihrl-muted);
}

.level-steps {
  display: grid;
  gap: 18px;
  position: relative;
}

.level-step {
  position: relative;
  padding: 22px 20px 20px 84px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--ihrl-border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.level-step::before {
  content: attr(data-number);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ihrl-gold-soft);
  color: var(--ihrl-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.level-step h3 {
  margin: 0 0 8px;
  color: var(--ihrl-navy);
  font-size: 1.1rem;
}

.level-step p {
  margin: 0;
  color: var(--ihrl-muted);
  line-height: 1.7;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.accordion {
  display: grid;
  gap: 16px;
}

.accordion-item {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--ihrl-border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-weight: 700;
  color: var(--ihrl-navy);
}

.accordion-button i {
  transition: transform 0.2s ease;
}

.accordion-item.is-open .accordion-button i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease;
}

.accordion-panel {
  padding: 0 20px 18px;
}

.accordion-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ihrl-muted);
  line-height: 1.8;
}

.utility-bar {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--ihrl-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.utility-title {
  font-weight: 700;
  color: var(--ihrl-navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.utility-action {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ihrl-border);
  background: #fff;
  padding: 0 16px;
  color: var(--ihrl-navy);
  font-weight: 700;
}

.utility-action:hover,
.utility-action:focus-visible {
  background: var(--ihrl-gold-soft);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 34, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 30;
}

.drawer-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.org-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--ihrl-border);
  box-shadow: -16px 0 32px rgba(11,29,75,0.12);
  transform: translateX(104%);
  transition: transform 0.24s ease;
  z-index: 40;
  display: flex;
  flex-direction: column;
}

.org-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(11,29,75,0.08);
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.drawer-kicker {
  margin: 0 0 8px;
  color: var(--ihrl-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

#drawerTitle {
  margin: 0;
  color: var(--ihrl-navy);
  font-size: 1.5rem;
  line-height: 1.25;
}

.drawer-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ihrl-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ihrl-navy);
  font-size: 1.5rem;
}

.drawer-content {
  overflow: auto;
  padding: 20px;
}

.drawer-info-card {
  background: #f7f9fb;
  border: 1px solid rgba(11,29,75,0.08);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.drawer-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.drawer-detail {
  background: #fff;
  border: 1px solid rgba(11,29,75,0.08);
  border-radius: 14px;
  padding: 14px;
}

.drawer-detail h4 {
  margin: 0 0 8px;
  color: var(--ihrl-navy);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-detail p,
.drawer-detail li {
  margin: 0;
  color: var(--ihrl-muted);
  line-height: 1.7;
}

.drawer-detail ul {
  margin: 0;
  padding-left: 18px;
}

.drawer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ihrl-navy);
  font-weight: 700;
}

.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;
}

.section-space {
  padding-top: 36px;
  padding-bottom: 18px;
}

.newsletter-card {
  background: linear-gradient(180deg, rgba(11, 29, 75, 0.98), rgba(20, 42, 89, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.newsletter-card h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
}

.newsletter-card p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  max-width: 720px;
}

@media (max-width: 991px) {
  .org-hero-inner,
  .department-grid,
  .responsibility-grid {
    grid-template-columns: 1fr;
  }

  .org-hero {
    padding-top: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .org-toolbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .toolbar-top {
    gap: 12px;
  }

  .toolbar-actions {
    width: 100%;
  }

  .view-toggle {
    flex: 1 1 calc(50% - 8px);
  }

  .org-card {
    width: min(100%, 280px);
  }

  .chart-surface {
    border-radius: 20px;
  }

  .chart-viewport {
    min-height: 440px;
  }

  .zoom-controls {
    top: 12px;
    right: 12px;
  }

  .utility-bar {
    align-items: flex-start;
  }
}

@media print {
  body {
    background: #fff;
  }

  .header,
  .footer,
  .org-toolbar,
  .zoom-controls,
  .org-drawer,
  .drawer-backdrop,
  .utility-bar,
  .hero-actions {
    display: none !important;
  }

  .org-hero {
    background: #fff !important;
    color: var(--ihrl-navy) !important;
    border-bottom: 1px solid var(--ihrl-border);
  }

  .org-hero h1,
  .org-hero p,
  .breadcrumb a,
  .breadcrumb .current {
    color: var(--ihrl-navy) !important;
  }

  .chart-viewport {
    overflow: visible;
    max-height: none;
  }

  .org-chart {
    transform: none !important;
    padding-top: 10px;
  }
}
