/* A department page: cover with the title inside, section tabs, a feed of posts from its channels and a rail (who's here, conversation, about, code box).
   The department's colour is --dc. Reuses the shared .idc / .idb channel box. */
.dp { background: var(--bg, #f4f5f8); padding-bottom: 60px; }
.dp-cover { position: relative; background: linear-gradient(135deg, var(--dc), color-mix(in srgb, var(--dc) 45%, #0b1030)); color: #fff; }
.dp-cover-in { width: min(100% - 2 * var(--gutter, 16px), 1240px); margin: 0 auto; padding: calc(var(--header-h, 64px) + 20px) 0 34px; display: flex; flex-direction: column; gap: 56px; }
.dp-back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #0b0b0d; font: 700 13px/1 var(--dp-sans); text-decoration: none; white-space: nowrap; }
.dp-cover-row { display: flex; flex-direction: column; gap: 22px; }
.dp-kicker { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font: 800 11px/1 var(--dp-sans); letter-spacing: .14em; text-transform: uppercase; }
.dp-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.dp-cover h1 { margin: 0; color: #fff; font: 800 clamp(44px, 9vw, 64px)/1 var(--dp-sans); letter-spacing: -.03em; text-transform: none; }
.dp-blurb { max-width: 560px; margin: 12px 0 0; font: 500 16px/1.5 var(--dp-sans); opacity: .92; }
.dp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.dp-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: #0b0b0d; border: 1.5px solid #fff; font: 700 14px/1 var(--dp-sans); text-decoration: none; white-space: nowrap; }
.dp-btn--dark { background: #0b0b0d; border-color: #0b0b0d; color: #fff; }
@media (min-width: 768px) { .dp-cover-row { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.dp-tabs { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--tm-line, #e6e8ee); }
.dp-tabs-in { display: flex; gap: 28px; width: min(100% - 2 * var(--gutter, 16px), 1240px); margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.dp-tabs-in::-webkit-scrollbar { display: none; }
.dp-tabs a { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 56px; color: var(--ink-soft, #4a5160); font: 700 15px/1 var(--dp-sans); text-decoration: none; white-space: nowrap; }
.dp-tabs a.is-on { color: var(--ink, #0b0b0d); }
.dp-tabs a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--dc); }

.dp-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; width: min(100% - 2 * var(--gutter, 16px), 1240px); margin: 26px auto 0; }
@media (min-width: 980px) { .dp-body { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; } .dp-body--solo { grid-template-columns: minmax(0, 1fr); } }
.dp-feed { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dp-post { background: #fff; border: 1px solid var(--tm-line, #e6e8ee); border-radius: 20px; padding: 18px; }
.dp-post-head { display: flex; align-items: center; gap: 12px; }
.dp-av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad, linear-gradient(135deg, #7b93e2, #313de0 55%, #5b2fd1)) center / cover; color: #fff; font: 800 18px/1 var(--dp-sans); text-decoration: none; }
.dp-who { display: block; color: var(--ink, #0b0b0d); font: 800 14px/1.2 var(--dp-sans); text-decoration: none; }
a.dp-who:hover { color: var(--accent, #313de0); }
.dp-when { display: block; margin-top: 2px; color: var(--ink-soft, #4a5160); font: 500 12px/1.3 var(--dp-sans); }
.dp-title { margin: 12px 0 12px; color: var(--ink, #0b0b0d); font: 700 17px/1.3 var(--dp-sans); text-transform: none; letter-spacing: 0; }
.dp-media { position: relative; display: block; width: 100%; height: 0; padding-bottom: 52%; overflow: hidden; border: 0; border-radius: 14px; background: #1a1d29; cursor: pointer; }
.dp-media-bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.dp-media--audio, .dp-media--instrumental { background-color: #eceef4; }
.dp-media--audio .dp-media-bg, .dp-media--instrumental .dp-media-bg { background-size: contain; }
.dp-media em { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink, #0b0b0d); font: 800 11px/1 var(--dp-sans); font-style: normal; }
.dp-post-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.dp-state { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #e7f6ec; color: #17803d; font: 800 12px/1 var(--dp-sans); }
.dp-state--members { background: #fff3d6; color: #a06a00; }
.dp-state--locked { background: #ffe4e4; color: #c02626; }
.dp-price { font: 800 15px/1 var(--dp-sans); }
.dp-open { margin-left: auto; min-height: 44px; padding: 0 24px; border: 1.5px solid #cfd3dc; border-radius: 999px; background: #fff; color: var(--ink, #0b0b0d); font: 700 14px/1 var(--dp-sans); cursor: pointer; }
.dp-open:hover { border-color: var(--accent, #313de0); }

.dp-rail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dp-box { background: #fff; border: 1px solid var(--tm-line, #e6e8ee); border-radius: 20px; padding: 18px; }
.dp-label { margin: 0 0 12px; color: var(--ink-soft, #4a5160); font: 800 11px/1 var(--dp-sans); letter-spacing: .12em; text-transform: uppercase; }
.dp-chans { display: flex; flex-direction: column; gap: 12px; }
.dp-chans--wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dp-topics { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dp-topics li b { display: block; font: 700 15px/1.3 var(--dp-sans); }
.dp-topics li span { color: var(--ink-soft, #4a5160); font: 500 12px/1.3 var(--dp-sans); }
.dp-about-copy { margin: 0 0 12px; color: var(--ink-soft, #4a5160); font: 500 14px/1.55 var(--dp-sans); }
.dp-facts { display: flex; gap: 24px; margin: 0; }
.dp-facts span { color: var(--ink-soft, #4a5160); font: 600 12px/1.3 var(--dp-sans); }
.dp-facts b { display: block; color: var(--ink, #0b0b0d); font: 800 20px/1.2 var(--dp-sans); }
.dp-box--code { padding: 0; background: transparent; border: 0; }
.dp-open--buy { border: 0; background: var(--grad, linear-gradient(135deg, #7b93e2, #313de0 55%, #5b2fd1)); color: #fff; }
.dp-media--product { background-color: #f1f2f6; }
.dp-media--product .dp-media-bg { background-size: contain; }
/* the department's phone artwork on the cover (wide screens): it sits at the right edge of the page frame and the title stays on the left */
.dp-cover { overflow: hidden; }
.dp-art { display: none; }
@media (min-width: 900px) {
  .dp-cover--art .dp-cover-in { min-height: 320px; }
  .dp-cover--art .dp-cover-row { max-width: 58%; flex-direction: column; align-items: flex-start; }
  .dp-art { display: block; position: absolute; z-index: 0; right: max(24px, calc(50% - 620px)); bottom: 0; top: 24px; width: min(40%, 520px); pointer-events: none; }
  .dp-art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
  .dp-cover-in { position: relative; z-index: 1; }
}
/* a locked or members-only item the visitor has no access to: the picture is blurred and a lock sits over it; the click opens the unlock gate */
.dp-media--locked .dp-media-bg { filter: blur(14px) brightness(.8); transform: scale(1.12); }
.dp-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; background: rgba(11, 11, 13, .82); color: #fff; font: 800 13px/1 var(--dp-sans); font-style: normal; white-space: nowrap; }
