/* ==========================================================================
   ELM-O-SANAT DEPARTMENT DETAIL MASTER STYLESHEET (MAYBACH / LUXPLUS SPEC)
   OCD Symmetry | Gold Bullion Monolith | Kinetic Cockpit | Process Dossier
   ========================================================================== */

.dept-page-body {
  background-color: var(--bg-deep-void);
  background-image:
    radial-gradient(ellipse 85% 42% at 50% 0%, #0b1b36 0%, #030916 48%, #02050b 100%),
    radial-gradient(circle at 82% 18%, rgba(215, 164, 59, 0.08), transparent 42%),
    linear-gradient(rgba(227, 193, 110, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 193, 110, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  color: var(--text-pure);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 84px;
}

.dept-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Floating Sub-Nav Breadcrumb + Quick Anchor Strip */
.dept-breadcrumb-nav {
  padding: 15px 0;
  border-bottom: 1px solid rgba(227, 193, 110, 0.14);
  background: rgba(3, 7, 15, 0.78);
  backdrop-filter: blur(12px);
}

.dept-breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dept-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.dept-breadcrumbs a {
  color: var(--gold-200);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dept-breadcrumbs a:hover {
  color: var(--text-pure-white);
}

.dept-breadcrumbs .sep {
  color: rgba(227, 193, 110, 0.35);
}

.dept-quick-anchors {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept-anchor-link {
  padding: 6px 13px;
  border: 1px solid rgba(227, 193, 110, 0.22);
  border-radius: 8px;
  background: rgba(212, 166, 68, 0.06);
  color: var(--gold-100);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s var(--ease-maybach);
}

.dept-anchor-link:hover {
  border-color: var(--hairline-gold-active);
  background: rgba(212, 166, 68, 0.16);
  color: var(--text-pure-white);
}

/* ==========================================================================
   DEPARTMENT HERO ATELIER SPLIT + SCULPTED GOLD BULLION MONOLITH
   ========================================================================== */
.dept-hero {
  padding: 52px 0 46px;
  position: relative;
}

.dept-hero-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: 40px;
  align-items: stretch;
}

.dept-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dept-hallmark-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-300);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.dept-hallmark-line > span:nth-child(-n+3) {
  white-space: nowrap;
}

.dept-hallmark-stamp {
  padding: 3px 8px;
  border: 1px solid rgba(227, 193, 110, 0.36);
  border-radius: 4px;
  background: rgba(215, 164, 59, 0.1);
  color: var(--gold-200);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.dept-title-main {
  font-size: clamp(1.95rem, 3.3vw, 2.75rem);
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 16px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dept-lead-text {
  font-size: 1.02rem;
  line-height: 1.88;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.dept-strategic-box {
  position: relative;
  background: linear-gradient(90deg, rgba(212, 166, 68, 0.09) 0%, rgba(8, 16, 30, 0.65) 100%);
  border: 1px solid rgba(227, 193, 110, 0.24);
  border-right: 3px solid var(--gold-300);
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 0.91rem;
  line-height: 1.75;
  color: var(--text-pure);
  margin-bottom: 24px;
}

.dept-strategic-box strong {
  color: var(--gold-200);
  font-weight: 800;
}

.dept-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sculpted Gold Bullion Monolith Card (Right Column) */
.dept-visual-card {
  --mx: 50%;
  --my: 25%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 28px 30px;
  clip-path: polygon(
    26px 0%,
    calc(100% - 26px) 0%,
    100% 26px,
    100% calc(100% - 26px),
    calc(100% - 26px) 100%,
    26px 100%,
    0% calc(100% - 26px),
    0% 26px
  );
  background:
    radial-gradient(260px circle at 100% 0%, rgba(242, 223, 168, 0.16), transparent 68%),
    radial-gradient(260px circle at 0% 100%, rgba(190, 140, 40, 0.16), transparent 68%),
    radial-gradient(380px circle at var(--mx) var(--my), rgba(251, 243, 222, 0.09), transparent 60%),
    linear-gradient(155deg, #0e1c36 0%, #060e1d 55%, #030710 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(227, 193, 110, 0.36),
    inset 0 2px 18px rgba(251, 243, 222, 0.12),
    inset 0 -16px 32px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.dept-visual-card::before {
  content: '';
  position: absolute;
  inset: 9px;
  clip-path: polygon(
    18px 0%,
    calc(100% - 18px) 0%,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    18px 100%,
    0% calc(100% - 18px),
    0% 18px
  );
  border: 1px solid rgba(227, 193, 110, 0.16);
  pointer-events: none;
}

.dept-visual-icon-stage {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-visual-icon-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(227, 193, 110, 0.35);
  animation: orbitSlowRotate 26s linear infinite;
}

.dept-visual-icon-stage::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 164, 59, 0.16), transparent 70%);
  border: 1px solid rgba(242, 223, 168, 0.22);
}

@keyframes orbitSlowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.dept-visual-icon {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
  background: linear-gradient(145deg, rgba(242, 223, 168, 0.24), rgba(145, 103, 25, 0.16));
  box-shadow: inset 0 0 0 1px rgba(242, 223, 168, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-100);
}

.dept-visual-card h3 {
  color: var(--text-pure-white);
  font-size: 1.24rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.dept-visual-card p {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.75;
  position: relative;
  z-index: 2;
}

.dept-stat-meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  width: 100%;
  border-top: 1px solid rgba(227, 193, 110, 0.16);
  font-size: 0.78rem;
  color: var(--gold-200);
  font-weight: 700;
  position: relative;
  z-index: 2;
}

/* KPI / SLA Executive Instrument Strip */
.dept-sla-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 24px;
  background:
    radial-gradient(240px circle at 100% 0%, rgba(227, 193, 110, 0.09), transparent 70%),
    linear-gradient(160deg, rgba(10, 20, 38, 0.9) 0%, rgba(4, 8, 16, 0.96) 100%);
  border: 1px solid rgba(227, 193, 110, 0.28);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(251, 243, 222, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.65);
}

.dept-sla-item {
  text-align: center;
  padding: 6px 10px;
  position: relative;
}

.dept-sla-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 14%;
  height: 72%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(227, 193, 110, 0.35), transparent);
}

.dept-sla-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold-200);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.dept-sla-lbl {
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CORE SERVICE PILLARS (2x2 SCULPTED GOLD BEVEL CARDS)
   ========================================================================== */
.dept-pillars-section {
  padding: 64px 0;
  border-top: 1px solid rgba(227, 193, 110, 0.12);
}

.section-head {
  text-align: center;
  margin-bottom: 38px;
}

.section-head-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold-300);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 900;
  color: var(--text-pure-white);
  margin-bottom: 8px;
  line-height: 1.35;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 720px;
  margin: 0 auto;
}

.dept-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-pillar-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  padding: 28px 26px;
  clip-path: polygon(
    18px 0%,
    calc(100% - 18px) 0%,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    18px 100%,
    0% calc(100% - 18px),
    0% 18px
  );
  background:
    radial-gradient(220px circle at 100% 0%, rgba(227, 193, 110, 0.11), transparent 68%),
    radial-gradient(380px circle at var(--mx) var(--my), rgba(242, 223, 168, 0.09), transparent 62%),
    linear-gradient(155deg, rgba(11, 21, 41, 0.9) 0%, rgba(4, 9, 18, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(227, 193, 110, 0.24),
    inset 0 1px 0 rgba(251, 243, 222, 0.1);
  overflow: hidden;
  transition: transform 0.38s var(--ease-maybach), box-shadow 0.38s var(--ease-maybach);
}

.service-pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 243, 222, 0.08), transparent);
  transform: skewX(-24deg);
  pointer-events: none;
  transition: left 0.85s var(--ease-maybach);
}

.service-pillar-card:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow:
    inset 0 0 0 1.5px rgba(242, 223, 168, 0.5),
    inset 0 2px 14px rgba(251, 243, 222, 0.12);
}

.service-pillar-card:hover::after {
  left: 195%;
}

.pillar-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(227, 193, 110, 0.3);
  background: rgba(215, 164, 59, 0.09);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold-200);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.pillar-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-pure-white);
  margin-bottom: 10px;
  line-height: 1.45;
}

.pillar-desc {
  font-size: 0.89rem;
  line-height: 1.84;
  color: var(--text-muted);
}

/* ==========================================================================
   MAYBACH GLASS COCKPIT SIMULATOR SECTION (#simulator)
   ========================================================================== */
.dept-interactive-section {
  padding: 68px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 15, 30, 0.92) 50%, transparent 100%);
  border-top: 1px solid rgba(227, 193, 110, 0.12);
  border-bottom: 1px solid rgba(227, 193, 110, 0.12);
}

.widget-glass-box {
  --mx: 50%;
  --my: 15%;
  position: relative;
  background:
    radial-gradient(280px circle at 100% 0%, rgba(227, 193, 110, 0.1), transparent 70%),
    radial-gradient(280px circle at 0% 100%, rgba(190, 140, 40, 0.1), transparent 70%),
    radial-gradient(520px circle at var(--mx) var(--my), rgba(242, 223, 168, 0.05), transparent 65%),
    linear-gradient(155deg, rgba(11, 22, 42, 0.94) 0%, rgba(3, 7, 15, 0.98) 100%);
  border: 1px solid var(--hairline-gold-active);
  border-radius: 20px;
  padding: 36px;
  box-shadow:
    inset 0 1px 0 rgba(251, 243, 222, 0.1),
    0 28px 68px rgba(0, 0, 0, 0.88),
    0 0 36px rgba(212, 166, 68, 0.08);
}

/* Standardized Precision Instrument Controls */
.calc-slider-group {
  margin-bottom: 20px;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-200);
  margin-bottom: 9px;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(227, 193, 110, 0.22), rgba(255, 255, 255, 0.12));
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: var(--gradient-gold);
  border: 1px solid var(--gold-100);
  box-shadow: 0 0 14px rgba(227, 193, 110, 0.65);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: rotate(45deg) scale(1.15);
}

.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--gold-100);
  background: var(--gradient-gold);
  box-shadow: 0 0 14px rgba(227, 193, 110, 0.65);
  cursor: pointer;
}

.sim-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(2, 6, 15, 0.92);
  border: 1px solid var(--hairline-gold);
  border-radius: 10px;
  color: var(--text-pure-white);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 6px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sim-select:focus {
  border-color: var(--hairline-gold-active);
  box-shadow: 0 0 18px rgba(212, 166, 68, 0.18);
}

.stat-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.87rem;
}

.stat-metric-row:last-child {
  border-bottom: none;
}

/* Harmonized Architectural Plates (Zero Pill Clutter for Static Badges) */
.risk-status-line {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 10px;
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.08);
  color: #fde047;
}

.sub-agent-node {
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   DYNAMIC DOMAIN DOSSIER (TIMELINE WORKFLOW & DOCS CHECKLIST)
   ========================================================================== */
.dept-dossier-section {
  padding: 68px 0 48px;
}

.dept-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.dossier-panel {
  --mx: 50%;
  --my: 0%;
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), rgba(227, 193, 110, 0.07), transparent 62%),
    linear-gradient(155deg, rgba(10, 20, 38, 0.84) 0%, rgba(4, 8, 16, 0.95) 100%);
  border: 1px solid var(--hairline-gold);
  border-radius: 18px;
  padding: 28px;
  box-shadow:
    inset 0 1px 0 rgba(251, 243, 222, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.7);
}

.dossier-direct-btn {
  margin-top: 22px;
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
}

.dossier-panel h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure-white);
  margin-bottom: 6px;
}

.dossier-panel .sub {
  font-size: 0.84rem;
  color: var(--text-subtle);
  margin-bottom: 22px;
}

.workflow-steps-list {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Connected Gold Timeline Axis */
.workflow-steps-list::before {
  content: '';
  position: absolute;
  top: 26px;
  bottom: 26px;
  right: 30px;
  width: 1px;
  background: linear-gradient(180deg, rgba(227, 193, 110, 0.45), rgba(227, 193, 110, 0.12));
  pointer-events: none;
}

.workflow-step-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(2, 6, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-maybach);
}

.workflow-step-item:hover {
  border-color: rgba(227, 193, 110, 0.32);
  transform: translateX(-3px);
}

.workflow-step-num {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(242, 223, 168, 0.2), rgba(145, 103, 25, 0.14));
  border: 1px solid var(--hairline-gold-active);
  color: var(--gold-100);
  font-size: 0.84rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.workflow-step-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-pure-white);
  margin-bottom: 3px;
}

.workflow-step-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.required-docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.required-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(2, 6, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--text-platinum);
  line-height: 1.65;
}

.required-doc-item::before {
  content: '✓';
  color: var(--gold-200);
  font-weight: 900;
}

/* ==========================================================================
   STRATEGIC FAQ ACCORDION
   ========================================================================== */
.dept-faq-section {
  padding: 28px 0 64px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 940px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(155deg, rgba(10, 20, 38, 0.78) 0%, rgba(4, 8, 16, 0.92) 100%);
  border: 1px solid var(--hairline-gold);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.open {
  border-color: var(--hairline-gold-active);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-pure-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.faq-q-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-index-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border: 1px solid rgba(227, 193, 110, 0.25);
  border-radius: 6px;
  background: rgba(212, 166, 68, 0.08);
  flex-shrink: 0;
}

.faq-toggle-icon {
  color: var(--gold-200);
  font-size: 1.2rem;
  font-weight: 800;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-maybach);
}

.faq-answer-inner {
  padding: 0 22px 18px 54px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ==========================================================================
   5x2 SIBLING DEPARTMENT SWITCHER (GOLD BULLION TILES)
   ========================================================================== */
.dept-switcher-strip {
  padding: 0 0 58px;
}

.dept-switcher-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.dept-switch-link {
  padding: 12px 14px;
  background: linear-gradient(155deg, rgba(10, 20, 38, 0.78) 0%, rgba(4, 8, 16, 0.92) 100%);
  border: 1px solid var(--hairline-gold);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.79rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-maybach);
}

.dept-switch-link span.num {
  color: var(--gold-300);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.dept-switch-link:hover,
.dept-switch-link.active {
  border-color: var(--hairline-gold-active);
  background: linear-gradient(145deg, rgba(212, 166, 68, 0.18), rgba(10, 20, 38, 0.92));
  color: var(--text-pure-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   GRAND CLOSING VAULT CTA RIBBON
   ========================================================================== */
.dept-cta-ribbon {
  padding: 16px 0 84px;
  text-align: center;
}

.cta-box {
  position: relative;
  clip-path: polygon(
    24px 0%,
    calc(100% - 24px) 0%,
    100% 24px,
    100% calc(100% - 24px),
    calc(100% - 24px) 100%,
    24px 100%,
    0% calc(100% - 24px),
    0% 24px
  );
  background:
    radial-gradient(280px circle at 100% 0%, rgba(227, 193, 110, 0.15), transparent 70%),
    radial-gradient(280px circle at 0% 100%, rgba(190, 140, 40, 0.15), transparent 70%),
    linear-gradient(155deg, rgba(16, 30, 56, 0.92) 0%, rgba(4, 9, 18, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(242, 223, 168, 0.42),
    0 24px 64px rgba(0, 0, 0, 0.85);
  padding: 46px 32px;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 9px;
  clip-path: polygon(
    18px 0%,
    calc(100% - 18px) 0%,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    18px 100%,
    0% calc(100% - 18px),
    0% 18px
  );
  border: 1px solid rgba(227, 193, 110, 0.18);
  pointer-events: none;
}

.cta-box h3 {
  font-size: clamp(1.42rem, 2.4vw, 1.85rem);
  font-weight: 900;
  color: var(--text-pure-white);
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 650px;
  margin: 0 auto 28px;
  line-height: 1.85;
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-dept-consult {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
  background: var(--gradient-gold);
  border: none;
  color: #03070f;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-maybach), filter 0.25s var(--ease-maybach);
  filter: drop-shadow(0 8px 22px rgba(212, 166, 68, 0.3));
}

.btn-dept-consult:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 12px 28px rgba(212, 166, 68, 0.5));
}

.btn-dept-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-gold);
  border-radius: 10px;
  color: var(--text-pure);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-dept-back:hover {
  background: rgba(212, 166, 68, 0.14);
  border-color: var(--hairline-gold-active);
}

@media (max-width: 960px) {
  .dept-breadcrumb-row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
  .dept-breadcrumbs,
  .dept-quick-anchors {
    justify-content: center;
  }
  .dept-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .dept-hero-copy {
    align-items: center;
    text-align: center;
  }
  .dept-hallmark-line {
    justify-content: center;
    text-align: center;
  }
  .dept-lead-text {
    text-align: center;
    max-width: 600px;
    margin-bottom: 18px;
  }
  .dept-strategic-box {
    text-align: center;
    border-right: 1px solid rgba(227, 193, 110, 0.24);
    border-top: 2.5px solid var(--gold-300);
    margin-bottom: 20px;
  }
  .dept-hero-actions {
    justify-content: center;
    width: 100%;
  }
  .dept-grid-cards,
  .dept-dossier-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-pillar-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .dossier-panel h3,
  .dossier-panel .sub {
    text-align: center;
  }
  .dept-sla-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dept-sla-item:nth-child(2)::after {
    display: none;
  }
  .dept-switcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dept-container {
    padding: 0 14px;
  }
  .dept-hero {
    padding: 28px 0 26px;
  }
  .dept-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-dept-consult,
  .btn-dept-back {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 12px 18px;
  }
  .widget-glass-box {
    padding: 20px 14px;
  }
  .widget-glass-box .section-head {
    margin-bottom: 18px !important;
  }
  .calc-slider-group {
    margin-bottom: 12px;
  }
  .calc-slider-label {
    font-size: 0.82rem;
    margin-bottom: 6px;
  }
  .sim-select {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .dossier-panel {
    padding: 20px 14px;
  }
  .workflow-steps-list::before {
    display: none;
  }
  .workflow-step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 12px;
  }
  .required-doc-item {
    justify-content: center;
    text-align: center;
    padding: 12px;
  }
  .dept-switcher-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .dept-switch-link {
    justify-content: center;
    text-align: center;
  }
  .cta-box {
    padding: 32px 18px;
  }
  .cta-buttons-row {
    flex-direction: column;
    align-items: stretch;
  }
  .faq-question-btn {
    padding: 15px 14px;
    font-size: 0.88rem;
  }
  .faq-answer-inner {
    padding: 0 14px 16px;
    text-align: center;
  }
}
