/* ============================================================
   URBAN GLIDE — V2 accordion for Tech Platform pillar (dark)
   Wraps .x-depot-mods in .x-depot-acc. One-at-a-time expand.
   ============================================================ */

.x-depot-acc { gap: var(--s12); }

/* Reset the original .x-depot-mod box so the button owns padding/grid */
.x-depot-acc .x-depot-mod {
  display: block;
  padding: 0;
  overflow: hidden;
}
.x-depot-acc .x-depot-mod:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
}
.x-depot-acc .x-depot-mod:has(.x-depot-mod-head[aria-expanded="true"]) {
  border-color: var(--green);
  background: rgba(168,192,56,0.05);
}

.x-depot-mod-head {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  gap: var(--s12);
  align-items: center;
  padding: 14px;
  text-align: left;
  background: transparent;
  color: #fff;
  border-radius: 10px;
  transition: background .2s ease;
}
.x-depot-mod-head:hover { background: rgba(255,255,255,0.03); }

.x-depot-acc .x-depot-mod-num {
  margin: 0;
}

.x-depot-acc .x-depot-mod-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.x-depot-acc-chev {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.55);
  transition: transform .25s ease, color .2s ease;
  justify-self: end;
}
.x-depot-mod-head[aria-expanded="true"] .x-depot-acc-chev {
  transform: rotate(180deg);
  color: var(--green);
}

.x-depot-mod-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2,.7,.3,1);
}
.x-depot-mod-head[aria-expanded="true"] + .x-depot-mod-body-wrap {
  grid-template-rows: 1fr;
}
.x-depot-mod-body-inner {
  overflow: hidden;
  min-height: 0;
}

/* Body padding aligns with the name column (32px num + 12px gap = 44px) */
.x-depot-acc .x-depot-mod-body {
  padding: 0 14px 16px 58px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .x-depot-acc .x-depot-mod-body { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .x-depot-mod-body-wrap,
  .x-depot-acc-chev,
  .x-depot-acc .x-depot-mod { transition: none; }
}
