/* Shell (3307:6948)
   Figma 6jVr7YbefLWCQjcGuvD59L, "Your Feed - Member" frame, row below the site header (node 3307:6950)
   and the left nav column (node 3347:15453). Desktop only, BEM prefix dsc-.

   Row (3307:6950): display flex, gap 20px, padding-right 112px, align-items flex-start,
   width 100%, background #FFFFFF.

   Nav aside (3347:15453): width 320px, align-self stretch, background #FFFFFF,
   border-right 1px solid #EEEFF1, padding 20px 20px 20px 80px, display flex column,
   gap 20px, align-items flex-start.

   Breadcrumb (3347:15454): display flex, gap 8px, align-items center. Icons home-line and
   chevron-right, 20x20 and 16x16. Current-page text: Inter Semibold 14/20, color #465DA6.

   Page title (3347:15460): Inter Semibold 30/38, color #000000.

   Search input (3347:15461): height 40px, width 100%, background #FFFFFF,
   border 1px solid #D5D7DA, border-radius 8px, box-shadow 0 1px 1px rgba(10,13,18,0.05),
   padding 10px 14px, content gap 8px, icon 20x20. Placeholder text: Inter Regular 14/20,
   color #717680. Disabled (search ships in phase 3).

   Nav links (3347:15462): display flex column, gap 4px, width 100%. Each link
   (3347:15463): padding 12px, border-radius 6px, content gap 12px, icon 20x20, label
   Inter Semibold 14/20 color #414651. Active: background #FAFAFA. Inactive: background
   transparent.

   Create a post button (3347:15478): width 100%, background #465DA6, border 1px solid
   #465DA6, border-radius 8px, box-shadow 0 1px 2px rgba(10,13,18,0.05), padding 10px 16px,
   text Inter Semibold 14/20 color #FFFFFF, centered.

   Divider (3347:15479): 1px solid #EEEFF1, full width.

   Joined Groups header (3347:15480): display flex, justify-content space-between, width
   100%. Title Inter Semibold 16/24 color #000000. "See all" Inter Semibold 14/20
   color #5E69A8.

   Joined group row (3361:9557 etc.): display flex, gap 12px, align-items center, width
   100%. Logo 48x48, border-radius 8px, object-fit cover. Title Inter Semibold 14/20
   color rgba(0,0,0,0.88). Type label Inter Regular 12/18 color rgba(0,0,0,0.45).

   Main column (3352:3785 wrapper): margin 16px 0. Recent Posts rail: width 312px,
   background #FAFAFA, border-radius 8px (Task 6, not built here).
*/

/* Releases the theme's `body { min-width: 1300px !important }` (styles.css), which clipped 20px at 1280. */
body:has(.dsc-page) {
    min-width: 0 !important;
}

/* Figma is 1440 wide: gutters and columns scale down from there, the page centres above it. */
.dsc-page {
    --dsc-gutter: clamp(24px, 7.78vw, 112px);
    --dsc-gutter-sm: clamp(24px, 5.56vw, 80px);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-right: var(--dsc-gutter);
    background: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

.dsc-page * {
    box-sizing: border-box;
}

/* Your Groups (3314:19664) has no rail; main runs to x 1360 at 1440. */
.dsc-page--no-rail {
    padding-right: var(--dsc-gutter-sm);
}

/* ── Nav ──────────────────────────────────────────────── */
.dsc-nav {
    align-self: stretch;
    flex-shrink: 0;
    width: clamp(264px, 22.2vw, 320px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 20px 20px var(--dsc-gutter-sm);
    background: #FFFFFF;
    border-right: 1px solid #EEEFF1;
}

.dsc-nav__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsc-nav__breadcrumb-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.dsc-nav__breadcrumb-sep {
    display: block;
    width: 16px;
    height: 16px;
}

.dsc-nav__breadcrumb-current {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #465DA6;
}

.dsc-nav__title {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
    color: #000000;
    width: 100%;
}

.dsc-nav__search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(10, 13, 18, 0.05);
}

.dsc-nav__search-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dsc-nav__search-input {
    flex: 1 0 0;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #717680;
}

.dsc-nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.dsc-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    background: transparent;
}

.dsc-nav__link--active {
    background: #FAFAFA;
}

.dsc-nav__link-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dsc-nav__link-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #414651;
}

.dsc-nav__create {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background: #465DA6;
    border: 1px solid #465DA6;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
}

.dsc-nav__divider {
    width: 100%;
    height: 0;
    margin: 0;
    border: none;
    border-top: 1px solid #EEEFF1;
}

.dsc-nav__groups-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dsc-nav__groups-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #000000;
}

.dsc-nav__groups-seeall {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #5E69A8;
    text-decoration: none;
}

.dsc-nav__group {
    display: flex;
    text-decoration: none;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.dsc-nav__group-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #F5F5F5;
}

.dsc-nav__group-text {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dsc-nav__group-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dsc-nav__group-type {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.45);
}

/* ── Main / rail ──────────────────────────────────────── */
.dsc-main {
    flex: 1 0 0;
    min-width: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.dsc-rail {
    flex-shrink: 0;
    width: clamp(264px, 21.7vw, 312px);
    margin: 16px 0;
    background: #FAFAFA;
    border-radius: 8px;
}

/* Post card (3366:9974)
   Card: background #FFFFFF, border 1px solid #EEEFF1, radius 12px, padding 16px, column, gap 20px.
   Head: row, gap 16px, align center. Group logo 50x50 radius 8px; author avatar 24x24 round at
   bottom -4px / right -4px. Who column gap 4px: group Inter 600 14/20 #181D27; meta row gap 6px
   Inter 400 14/20 #8C8C8C with a 2px dot. dots-horizontal 20px, top right.
   Content: column, gap 12px, #181D27. Title Inter 600 16/24. Body Inter 400 14/20, 120px (6 lines),
   ellipsis.
   Actions: row, gap 16px. heart / message-square-02 20px, gap 6px, Inter 500 14/20 #8C8C8C.
   Share: share icon 20px, gap 8px, Inter 600 14/20 #5E69A8. */
.dsc-feed,
.dsc-feed__cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.dsc-card {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #EEEFF1;
    border-radius: 12px;
    color: #181D27;
}

.dsc-card__head {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dsc-card__logos {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.dsc-card__logo {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.dsc-card__logo--empty {
    background: #F5F5F5;
}

.dsc-card__avatar {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 24px;
    height: 24px;
    border-radius: 200px;
    object-fit: cover;
    background: #FFFFFF;
}

.dsc-card__who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dsc-card__group {
    font: 600 14px/20px Inter, sans-serif;
    color: #181D27;
}

.dsc-card__meta {
    display: flex;
    gap: 6px;
    align-items: center;
    font: 400 14px/20px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.dsc-card__more {
    align-self: flex-start;
    flex-shrink: 0;
}

.dsc-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dsc-card__title {
    margin: 0;
    font: 600 16px/24px Inter, sans-serif;
    color: #181D27;
}

.dsc-card__body {
    font: 400 14px/20px Inter, sans-serif;
    color: #181D27;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.dsc-card__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dsc-card__stat,
.dsc-card__share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    font: 500 14px/20px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-card__like {
    cursor: pointer;
}

.dsc-card__like[aria-pressed="true"] {
    color: #5E69A8;
}

.dsc-card__share {
    gap: 8px;
    font-weight: 600;
    color: #5E69A8;
    cursor: pointer;
}

.dsc-card__notice {
    font: 400 14px/20px Inter, sans-serif;
    color: #B42318;
}

/* Load more: secondary button in the shell's button style (3347:15478), no Figma frame for it. */
.dsc-feed__more {
    align-self: center;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font: 600 14px/20px Inter, sans-serif;
    color: #414651;
    cursor: pointer;
}

.dsc-feed__more:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Empty state, from "Your Groups - Empty" (3608:68073): centred, gap 12px, padding 32px 0.
   Title Inter 600 20/28 #1C1C1C. Text Inter 400 16/24 #595959, width 502px; link Inter 600
   #465DA6. */
.dsc-empty {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 0;
    text-align: center;
}

.dsc-empty__title {
    margin: 0;
    font: 600 20px/28px Inter, sans-serif;
    color: #1C1C1C;
}

.dsc-empty__text {
    max-width: 502px;
    font: 400 16px/24px Inter, sans-serif;
    color: #595959;
}

.dsc-empty__text a {
    font-weight: 600;
    color: #465DA6;
    text-decoration: none;
}

/* Recent Posts rail (3349:3553)
   Header "Recent Posts" Inter 600 16/24 #1C1C1C, padding 16px 16px 0. Row: padding 16px,
   border-bottom 1px solid rgba(217,217,217,0.5), none on the last. Row column gap 8px.
   Author line gap 10px: avatar 32 round; name Inter 500 12/18 #262626; time Inter 400 12/18
   #8C8C8C. Title Inter 400 14/20 #434343, 2 lines. Meta Inter 500 12/18 #8C8C8C, gap 4px. */
.dsc-rail__title {
    margin: 0;
    padding: 16px 16px 0;
    font: 600 16px/24px Inter, sans-serif;
    color: #1C1C1C;
}

.dsc-rail__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid rgba(217, 217, 217, 0.5);
}

.dsc-rail__row:last-child {
    border-bottom: 0;
}

.dsc-rail__author {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dsc-rail__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dsc-rail__name {
    font: 500 12px/18px Inter, sans-serif;
    color: #262626;
}

.dsc-rail__time {
    font: 400 12px/18px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-rail__post {
    font: 400 14px/20px Inter, sans-serif;
    color: #434343;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.dsc-rail__meta {
    display: flex;
    gap: 4px;
    align-items: center;
    font: 500 12px/18px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-rail__empty {
    padding: 16px;
    font: 400 14px/20px Inter, sans-serif;
    color: #8C8C8C;
}

/* Discover (3352:3863)
   Section head: column, gap 8px. Title Inter 600 16/24 #000000; text Inter 400 14/20 #535862. */
.dsc-section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dsc-section-head__title {
    margin: 0;
    font: 600 16px/24px Inter, sans-serif;
    color: #000000;
}

.dsc-section-head__text {
    font: 400 14px/20px Inter, sans-serif;
    color: #535862;
}

/* Group row (3383:1520, hover 3383:1708)
   Row: padding 16px, border-bottom 1px solid rgba(217,217,217,0.5), none on the last; content 40px
   tall, gap 10px. Logo tile 32x32 radius 4px, #EBF1FF, border 0.571px #F0F0F0, initials Inter 500
   13.714/20.571 #465DA6. Name Inter 500 14/20 #262626, ellipsis. Meta gap 6px: icon 10px, gap 4px,
   Inter 400 12/18 #8C8C8C, 2px dot. Hover: action on the right, gap 8px, Inter 600 14/20 #5E69A8. */
.dsc-group {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(217, 217, 217, 0.5);
}

.dsc-group:last-child {
    border-bottom: 0;
}

.dsc-group__link {
    display: flex;
    flex: 1 0 0;
    min-width: 0;
    gap: 10px;
    align-items: center;
    height: 40px;
    text-decoration: none;
}

.dsc-group__logo,
.dsc-group__initials {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 0.571px solid #F0F0F0;
}

.dsc-group__logo {
    object-fit: cover;
}

.dsc-group__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EBF1FF;
    font: 500 13.714px/20.571px Inter, sans-serif;
    color: #465DA6;
}

.dsc-group__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dsc-group__name {
    font: 500 14px/20px Inter, sans-serif;
    color: #262626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dsc-group__meta,
.dsc-group__type {
    display: flex;
    align-items: center;
    font: 400 12px/18px Inter, sans-serif;
    color: #8C8C8C;
    white-space: nowrap;
}

.dsc-group__meta {
    gap: 6px;
}

.dsc-group__type {
    gap: 4px;
}

.dsc-group__action {
    display: none;
    flex-shrink: 0;
    padding: 0;
    background: none;
    border: 0;
    font: 600 14px/20px Inter, sans-serif;
    color: #5E69A8;
    text-decoration: none;
    cursor: pointer;
}

.dsc-group:hover .dsc-group__action,
.dsc-group:focus-within .dsc-group__action,
.dsc-group__action--pending {
    display: inline-block;
}

.dsc-group__action--pending {
    color: #8C8C8C;
    cursor: default;
}

/* Your Groups (3314:19664, empty 3607:67575)
   No rail, main is 1020px. Sections gap 20px with a 1px #EEEFF1 divider between. Head to grid
   16px. Grid 2 columns, column gap 12px, row gap 16px. Heading row gap 8px; badge #EBF1FF,
   radius 16px, padding 2px 8px, Inter 500 12/18 #5E69A8. */
.dsc-groups,
.dsc-groups__section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dsc-groups__section {
    gap: 16px;
}

.dsc-groups__divider {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid #EEEFF1;
    opacity: 1;
}

.dsc-groups__heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dsc-badge {
    padding: 2px 8px;
    border-radius: 16px;
    background: #EBF1FF;
    font: 500 12px/18px Inter, sans-serif;
    color: #5E69A8;
    mix-blend-mode: multiply;
}

.dsc-groups__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 16px;
}

/* Group tile (3314:19715 pending, 3352:4574 joined), 108px tall even without a description.
   White, 1px #EEEFF1 border, radius 12px, padding 16px, gap 12px. Head row gap 12px: logo 44
   radius 4; name Inter 600 14/20 #181D27; meta as the group row, 4px below. Button white,
   1px #D5D7DA inside the 8px 14px padding (36px tall), radius 8px, shadow 0 1px 2px rgba(10,13,18,0.05),
   Inter 600 14/20 #414651, aligned to the top. Footer Inter 400 12/18 #434343. */
.dsc-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #EEEFF1;
    border-radius: 12px;
}

.dsc-tile__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.dsc-tile__logo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
}

.dsc-tile__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EBF1FF;
    font: 500 16px/24px Inter, sans-serif;
    color: #465DA6;
}

.dsc-tile__text {
    flex: 1 0 0;
    min-width: 0;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dsc-tile__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 600 14px/20px Inter, sans-serif;
    color: #181D27;
    text-decoration: none;
}

.dsc-tile__name:hover {
    color: #181D27;
    text-decoration: underline;
}

.dsc-tile__button {
    flex-shrink: 0;
    padding: 7px 13px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font: 600 14px/20px Inter, sans-serif;
    color: #414651;
    text-decoration: none;
    cursor: pointer;
}

.dsc-tile__button:hover {
    background: #F9FAFB;
    color: #414651;
}

.dsc-tile__button:disabled {
    background: #FFFFFF;
    cursor: default;
}

.dsc-tile__footer {
    min-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 400 12px/18px Inter, sans-serif;
    color: #434343;
}

/* ── Group Details (3331:2583) ────────────────────────── */
/* No outer rail; the 1040 wide page sits flush against the nav. */
.dsc-page--group {
    gap: 0;
    padding-right: var(--dsc-gutter-sm);
}

.dsc-page--group .dsc-main {
    margin: 0;
}

.dsc-group-page {
    width: 100%;
}

.dsc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font: 600 14px/20px Inter, sans-serif;
    color: #414651;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.dsc-button--primary {
    background: #465DA6;
    border-color: #465DA6;
    color: #FFFFFF;
}

.dsc-button:disabled {
    opacity: 0.6;
    cursor: default;
}

.dsc-link {
    padding: 0;
    background: none;
    border: 0;
    font: 600 14px/20px Inter, sans-serif;
    color: #5E69A8;
    text-decoration: none;
    cursor: pointer;
}

.dsc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Hero (3577:26952): padding-top 20, banner 149 tall behind a 184 row, tab bar 80. */
.dsc-hero {
    position: relative;
    padding-top: 20px;
    background: #FFFFFF;
}

.dsc-hero__banner {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 149px;
    background: #F6F9FF center / cover no-repeat;
}

.dsc-hero__row {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 184px;
    padding: 100px 20px 0;
}

.dsc-hero__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #FFFFFF;
    border: 2.1px solid #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.dsc-hero__logo img {
    object-fit: contain;
}

.dsc-hero__initials {
    font: 600 24px/32px Inter, sans-serif;
    color: #465DA6;
}

.dsc-hero__title {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font: 600 24px/32px Inter, sans-serif;
    color: #000000;
}

.dsc-hero__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.dsc-tabs {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    height: 80px;
    padding: 0 20px;
    border-bottom: 1px solid #D9D9D9;
}

.dsc-tabs__tab {
    padding-bottom: 11px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font: 500 14px/20px Inter, sans-serif;
    color: #717680;
    text-decoration: none;
}

.dsc-tabs__tab.is-active {
    border-bottom-color: #465DA6;
    font-weight: 600;
    color: #465DA6;
}

.dsc-group-body {
    padding: 20px 0 20px 20px;
}

.dsc-group-body--rail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.dsc-group-main {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sort row: Newest is the only order served. */
.dsc-sort__select {
    position: relative;
    display: inline-flex;
    width: 208px;
}

.dsc-sort__select select {
    width: 100%;
    padding: 9px 43px 9px 13px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font: 500 14px/20px Inter, sans-serif;
    color: #181D27;
    appearance: none;
    opacity: 1;
}

.dsc-sort__select img {
    position: absolute;
    right: 14px;
    top: 10px;
    pointer-events: none;
}

/* Pinned Posts: white, 1px #EEEFF1, radius 12, padding 20, gap 20. */
.dsc-pinned {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #EEEFF1;
    border-radius: 12px;
}

.dsc-pinned__head,
.dsc-members__head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    font: 600 14px/20px Inter, sans-serif;
    color: #181D27;
    cursor: pointer;
    text-align: left;
}

.dsc-pinned__chevron {
    margin-left: auto;
}

[data-dsc-collapse].is-collapsed [data-dsc-collapse-body] {
    display: none;
}

[data-dsc-collapse].is-collapsed [data-dsc-toggle] img:last-child {
    transform: rotate(180deg);
}

.dsc-pinned.is-collapsed {
    gap: 0;
}

.dsc-pinned__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dsc-pinned__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    min-height: 86px;
    padding: 9px 13px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    text-decoration: none;
}

.dsc-pinned__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font: 600 14px/20px Inter, sans-serif;
    color: #181D27;
}

.dsc-pinned__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font: 500 12px/18px Inter, sans-serif;
    color: #8C8C8C;
}

/* Rail (3577:27006): #FAFAFA, radius 8, sections padding 20 gap 16, 1px separators. */
.dsc-group-rail {
    flex-shrink: 0;
    width: clamp(264px, 21.7vw, 312px);
    background: #FAFAFA;
    border-radius: 8px;
}

.dsc-group-rail__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.dsc-group-rail__section + .dsc-group-rail__section {
    border-top: 1px solid #EEEFF1;
}

.dsc-group-rail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dsc-group-rail__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font: 600 16px/24px Inter, sans-serif;
    color: #1C1C1C;
}

.dsc-members__count {
    font: 500 12px/18px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-group-rail__title .dsc-dot,
.dsc-members__title .dsc-dot {
    color: #8C8C8C;
}

.dsc-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.dsc-about__text {
    max-height: 176px;
    overflow: hidden;
    white-space: pre-line;
    font: 400 14px/22px Inter, sans-serif;
    color: #262626;
}

.dsc-about.is-open .dsc-about__text {
    max-height: none;
}

.dsc-about__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font: 400 12px/20px Inter, sans-serif;
    color: #595959;
}

.dsc-about__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dsc-rail-resources,
.dsc-rail-members,
.dsc-members__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dsc-rail-resources a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
    text-decoration: none;
}

.dsc-rail-resources__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -2px;
    background: #CDD8F9;
    border: 4px solid #EBF1FF;
    border-radius: 50%;
}

.dsc-rail-resources__name,
.dsc-rail-members__name,
.dsc-member__name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font: 500 14px/20px Inter, sans-serif;
    color: #414651;
}

.dsc-rail-members {
    gap: 12px;
}

.dsc-rail-members li,
.dsc-member {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dsc-rail-members__avatar,
.dsc-member__avatar {
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

/* Resources table (3567:28718). */
.dsc-table {
    background: #FFFFFF;
    border: 1px solid #E9EAEB;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(10, 13, 18, 0.1), 0 1px 2px rgba(10, 13, 18, 0.06);
    overflow: hidden;
}

.dsc-table__title {
    margin: 0;
    padding: 20px 24px 19px;
    border-bottom: 1px solid #E9EAEB;
    font: 600 16px/24px Inter, sans-serif;
    color: #1C1C1C;
}

.dsc-table table {
    width: 100%;
    border-collapse: collapse;
}

.dsc-table th {
    height: 44px;
    padding: 0 24px;
    background: #FAFAFA;
    border-bottom: 1px solid #E9EAEB;
    text-align: left;
    font: 500 12px/18px Inter, sans-serif;
    color: #535862;
}

.dsc-table td {
    height: 72px;
    padding: 0 24px;
    border-bottom: 1px solid #E9EAEB;
    font: 400 14px/20px Inter, sans-serif;
    color: #535862;
}

.dsc-table tr:last-child td {
    border-bottom: 0;
}

.dsc-table__col {
    width: 176px;
}

.dsc-table__file {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.dsc-table__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #CDD8F9;
    border-radius: 50%;
}

.dsc-table__name {
    font: 500 14px/20px Inter, sans-serif;
    color: #181D27;
}

.dsc-table__empty {
    padding: 24px;
    font: 400 14px/20px Inter, sans-serif;
    color: #535862;
}

/* Members panel (3567:29591): 604 wide, centred. */
.dsc-members {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 604px;
    margin: 0 auto;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #EEEFF1;
    border-radius: 12px;
}

.dsc-members__title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font: 600 16px/24px Inter, sans-serif;
    color: #000000;
}

.dsc-members__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

.dsc-members__search input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font: 400 14px/20px Inter, sans-serif;
    color: #181D27;
}

.dsc-members__search input::placeholder {
    color: #717680;
}

.dsc-members__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #EEEFF1;
}

.dsc-members__head {
    justify-content: space-between;
    font: 600 14px/22px Inter, sans-serif;
    color: #262626;
}

.dsc-members__list {
    gap: 16px;
}

.dsc-member {
    padding: 2px 0;
}

.dsc-member__badge {
    padding: 2px 8px;
    background: #EBF1FF;
    border-radius: 16px;
    mix-blend-mode: multiply;
    font: 500 12px/18px Inter, sans-serif;
    color: #5E69A8;
}

.dsc-members__none {
    font: 400 14px/20px Inter, sans-serif;
    color: #717680;
}

/* Flex rows above would otherwise override the hidden attribute. */
.dsc-page [hidden] {
    display: none !important;
}

/* Select a group (3359:7977) and Compose a post (3361:8293). Figma borders are inside, so padding drops 1px. */
.dsc-modal {
    box-sizing: border-box;
    max-height: calc(100vh - 48px);
    padding: 24px;
    background: #FFFFFF;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 24px -4px rgba(10, 13, 18, 0.08), 0 8px 8px -4px rgba(10, 13, 18, 0.03);
    font-family: Inter, sans-serif;
    color: #181D27;
}

.dsc-modal[open] {
    display: flex;
    flex-direction: column;
}

.dsc-modal::backdrop {
    background: rgba(0, 0, 0, 0.2);
}

.dsc-modal--select {
    width: 534px;
    max-height: min(608px, calc(100vh - 48px));
}

.dsc-modal--compose {
    width: 620px;
}

.dsc-modal [hidden] {
    display: none !important;
}

.dsc-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.dsc-modal__title {
    margin: 0;
    font: 600 18px/28px Inter, sans-serif;
    color: #181D27;
}

.dsc-modal__close {
    display: flex;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.dsc-modal__sub {
    margin-top: 8px;
    font: 400 14px/20px Inter, sans-serif;
    color: #535862;
}

.dsc-modal__empty {
    margin-top: 20px;
    font: 400 14px/20px Inter, sans-serif;
    color: #535862;
}

.dsc-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.dsc-modal__button {
    flex: 1 1 0;
    padding: 9px 17px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font: 600 16px/24px Inter, sans-serif;
    color: #414651;
    cursor: pointer;
}

.dsc-modal__button--primary {
    background: #465DA6;
    border-color: #465DA6;
    color: #FFFFFF;
}

.dsc-modal__button:disabled {
    opacity: 0.6;
    cursor: default;
}

.dsc-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    margin-top: 20px;
    overflow-y: auto;
}

.dsc-choice {
    display: flex;
    flex-shrink: 0;
    align-items: flex-start;
    gap: 16px;
    padding: 15px;
    background: #FFFFFF;
    border: 1px solid #E9EAEB;
    border-radius: 8px;
    cursor: pointer;
}

.dsc-choice:has(input:checked) {
    background: #EBF1FF;
    border-color: #909ECA;
}

.dsc-choice:has(input:focus-visible) {
    outline: 2px solid #465DA6;
    outline-offset: 2px;
}

.dsc-choice__logo {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
}

.dsc-choice__logo--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #EBF1FF;
    border: 0.5px solid #F0F0F0;
    font: 500 12px/18px Inter, sans-serif;
    color: #465DA6;
}

.dsc-choice__text {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
}

.dsc-choice__name {
    font: 500 14px/20px Inter, sans-serif;
    color: #414651;
}

.dsc-choice__meta {
    font: 400 14px/20px Inter, sans-serif;
    color: #535862;
}

.dsc-choice:has(input:checked) .dsc-choice__meta {
    color: #465DA6;
}

.dsc-choice__check {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    margin-left: -12px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
}

.dsc-choice__check img {
    visibility: hidden;
}

.dsc-choice:has(input:checked) .dsc-choice__check {
    background: #465DA6;
    border-color: #465DA6;
}

.dsc-choice:has(input:checked) .dsc-choice__check img {
    visibility: visible;
}

.dsc-compose {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.dsc-compose .dsc-modal__head {
    margin-bottom: -4px;
}

.dsc-compose .dsc-modal__actions {
    margin-top: 12px;
}

.dsc-compose__who {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dsc-compose__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 200px;
    object-fit: cover;
}

.dsc-compose__avatar--empty {
    background: #F5F5F5;
}

.dsc-compose__group {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 220px;
    height: 40px;
    padding: 9px 13px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    filter: drop-shadow(0 1px 1px rgba(10, 13, 18, 0.05));
    cursor: pointer;
}

.dsc-compose__group-name {
    flex: 1 1 0;
    overflow: hidden;
    font: 500 14px/20px Inter, sans-serif;
    color: #181D27;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dsc-compose__input {
    box-sizing: border-box;
    width: 100%;
    padding: 9px 13px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    font: 400 16px/24px Inter, sans-serif;
    color: #181D27;
}

.dsc-compose__input::placeholder {
    color: #717680;
}

.dsc-compose__body {
    height: 180px;
    resize: vertical;
}

.dsc-compose__error {
    font: 400 14px/20px Inter, sans-serif;
    color: #D92D20;
}

/* Post page (3453:3816), comment rules (3740:26991), one thread (3739:26022). Borders sit inside
   in Figma, so bordered boxes drop 1px of padding. The reply box, collapsed thread, thread view
   link, empty and blocked states have no frame. */
.dsc-page--post {
    gap: 24px;
}

.dsc-page--post .dsc-main {
    margin: 24px 0;
}

.dsc-post-page {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.dsc-post-col {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dsc-post {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #181D27;
}

.dsc-post__head {
    display: flex;
    gap: 16px;
    align-items: center;
    min-height: 44px;
}

.dsc-post__back {
    flex-shrink: 0;
    display: flex;
}

.dsc-post__logos {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.dsc-post__logo {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.dsc-post__logo--empty {
    background: #F5F5F5;
}

.dsc-post__avatar {
    position: absolute;
    left: 22px;
    top: 22px;
    width: 24px;
    height: 24px;
    border-radius: 200px;
    object-fit: cover;
    background: #FFFFFF;
}

.dsc-post__who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.dsc-post__group,
.dsc-post__group:hover {
    font: 600 14px/20px Inter, sans-serif;
    color: #181D27;
    text-decoration: none;
}

.dsc-post__meta {
    display: flex;
    gap: 6px;
    align-items: center;
    font: 400 14px/20px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-post__dots {
    flex-shrink: 0;
}

.dsc-post__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dsc-post__title {
    margin: 0;
    font: 600 24px/32px Inter, sans-serif;
    color: #181D27;
    overflow-wrap: anywhere;
}

.dsc-post__body {
    font: 400 16px/24px Inter, sans-serif;
    color: #181D27;
    overflow-wrap: anywhere;
}

.dsc-post__body p {
    margin: 0 0 12px;
    color: inherit;
}

.dsc-post__body > :last-child {
    margin-bottom: 0;
}

.dsc-post__body img {
    max-width: 100%;
    height: auto;
}

.dsc-post__foot {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0 12px;
}

.dsc-post__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dsc-post__share {
    margin-left: auto;
}

.dsc-composer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.dsc-composer__avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 200px;
    object-fit: cover;
}

.dsc-composer__field {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 9px 13px;
    background: #FFFFFF;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
    position: relative;
}

.dsc-mentions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 20;
    width: 280px;
    max-width: 100%;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid #E9EAEB;
    border-radius: 8px;
    box-shadow: 0 12px 16px -4px rgba(10, 13, 18, 0.08), 0 4px 6px -2px rgba(10, 13, 18, 0.03);
}

.dsc-mentions__item {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    font: 500 14px/20px Inter, sans-serif;
    color: #181D27;
    cursor: pointer;
}

.dsc-mentions__item[aria-selected="true"],
.dsc-mentions__item:hover {
    background: #FAFAFA;
}

.dsc-mentions__item img {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 200px;
    object-fit: cover;
}

.dsc-mentions__item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dsc-composer__field textarea {
    flex: 1 0 0;
    min-width: 0;
    height: 24px;
    max-height: 144px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    outline: 0;
    resize: none;
    font: 400 16px/24px Inter, sans-serif;
    color: #181D27;
}

.dsc-composer__field textarea::placeholder,
.dsc-composer__field--link,
.dsc-composer__field--link:hover {
    font: 400 16px/24px Inter, sans-serif;
    color: #717680;
    text-decoration: none;
}

.dsc-composer__field--link span {
    flex: 1 0 0;
}

.dsc-composer__send {
    flex-shrink: 0;
    display: flex;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.dsc-composer__send:disabled {
    cursor: default;
}

.dsc-composer__error {
    flex-basis: 100%;
    font: 400 14px/20px Inter, sans-serif;
    color: #B42318;
}

.dsc-composer__blocked {
    font: 400 14px/20px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-composer--reply {
    margin-top: 8px;
}

.dsc-comments {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.dsc-comments__title {
    margin: 0;
    font: 600 18px/28px Inter, sans-serif;
    color: #181D27;
}

.dsc-comments__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.dsc-comments__list.is-empty {
    display: none;
}

.dsc-comments__empty {
    font: 400 14px/20px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-comments__more {
    width: 100%;
}

.dsc-button--sm {
    padding: 7px 13px;
}

.dsc-comment {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
}

.dsc-comment--top {
    padding: 4px 0;
}

.dsc-comment__side {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dsc-comment--top > .dsc-comment__side {
    gap: 0;
}

.dsc-comment__avatar {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 200px;
    object-fit: cover;
    background: #FFFFFF;
}

.dsc-comment__line {
    display: none;
    flex: 1 0 0;
    width: 2px;
    border-radius: 0 0 1px 1px;
    background: #F0F0F0;
}

.dsc-comment.has-kids > .dsc-comment__side > .dsc-comment__line {
    display: block;
}

.dsc-comment__own {
    grid-area: 1 / 2;
    min-width: 0;
}

.dsc-comment:not(.has-kids) > .dsc-comment__own {
    padding-bottom: 2px;
}

.dsc-comment--top:not(.has-kids) > .dsc-comment__own {
    padding-bottom: 10px;
}

.dsc-comment__head {
    display: flex;
    gap: 6px;
    align-items: center;
    color: #8C8C8C;
}

.dsc-comment__name {
    font: 600 14px/20px Inter, sans-serif;
    color: #181D27;
}

.dsc-comment__time {
    font: 400 12px/18px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-comment__text {
    padding-top: 4px;
    font: 400 14px/20px Inter, sans-serif;
    color: #181D27;
    overflow-wrap: anywhere;
}

.dsc-mention {
    font-weight: 500;
    color: #5E69A8;
}

.dsc-comment__actions {
    display: flex;
    gap: 16px;
    align-items: center;
    height: 20px;
    margin-top: 8px;
}

.dsc-comment__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    font: 500 12px/18px Inter, sans-serif;
    color: #8C8C8C;
}

.dsc-comment__reply {
    cursor: pointer;
}

.dsc-comment__rail {
    grid-area: 2 / 1;
    position: relative;
    display: none;
}

.dsc-comment.has-replies > .dsc-comment__rail {
    display: block;
}

.dsc-comment.is-collapsed > .dsc-comment__rail {
    height: 24px;
}

.dsc-comment__toggle {
    position: absolute;
    top: 4px;
    left: 6px;
    display: flex;
    padding: 0;
    background: #FFFFFF;
    border: 0;
    cursor: pointer;
}

.dsc-comment__plus,
.dsc-comment.is-collapsed > .dsc-comment__rail .dsc-comment__minus {
    display: none;
}

.dsc-comment.is-collapsed > .dsc-comment__rail .dsc-comment__plus {
    display: block;
}

/* --dsc-from is where the line to the first reply starts: under the toggle, or at the actions without one. */
.dsc-comment__kids {
    grid-area: 2 / 2;
    display: none;
    min-width: 0;
    padding-top: 5px;
    --dsc-from: -5px;
}

.dsc-comment--top > .dsc-comment__kids {
    padding: 8px 0 2px;
    --dsc-from: -8px;
}

.dsc-comment.has-replies > .dsc-comment__kids {
    --dsc-from: 23px;
}

.dsc-comment--top.has-replies > .dsc-comment__kids {
    --dsc-from: 20px;
}

.dsc-comment.has-kids > .dsc-comment__kids {
    display: block;
}

.dsc-comment.is-collapsed > .dsc-comment__kids {
    display: none;
}

/* --dsc-to is where the line stops on the last row: the bottom of its connector. */
.dsc-comment__kid {
    position: relative;
    padding-top: 16px;
    --dsc-to: 33px;
}

.dsc-comment__kid--more {
    padding-top: 12px;
    --dsc-to: 22.54px;
}

.dsc-comment--top > .dsc-comment__kids > .dsc-comment__kid--more {
    padding: 14px 0 2px 8px;
    --dsc-to: 24.54px;
}

.dsc-comment__kid::before,
.dsc-comment__kid::after {
    content: "";
    position: absolute;
    background: #F0F0F0;
}

.dsc-comment__kid::before {
    left: -28px;
    top: 31px;
    width: 44px;
    height: 2px;
    border-radius: 1px;
}

.dsc-comment__kid--more::before {
    top: 20.54px;
    width: 31px;
}

.dsc-comment--top > .dsc-comment__kids > .dsc-comment__kid--more::before {
    top: 22.54px;
    width: 39px;
}

.dsc-comment__kid::after {
    left: -29px;
    top: 0;
    bottom: 0;
    width: 2px;
}

.dsc-comment__kid:first-child::after {
    top: var(--dsc-from);
}

.dsc-comment__kid:last-child::after {
    bottom: auto;
    height: var(--dsc-to);
    border-radius: 0 0 1px 1px;
}

.dsc-comment__kid:first-child:last-child::after {
    height: calc(var(--dsc-to) - var(--dsc-from));
}

.dsc-comment__more,
.dsc-comment__more:hover {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    font: 400 12px/18px Inter, sans-serif;
    color: #8C8C8C;
    text-decoration: none;
    cursor: pointer;
}

.dsc-comment__more img {
    background: #FFFFFF;
}

.dsc-comment__more:disabled {
    cursor: default;
}

.dsc-post-rail {
    flex-shrink: 0;
    width: clamp(264px, 21.7vw, 312px);
    background: #FAFAFA;
    border-radius: 8px;
}

.dsc-post-rail__group,
.dsc-post-rail__author {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dsc-post-rail__group {
    padding: 16px;
    border-bottom: 1px solid rgba(217, 217, 217, 0.5);
}

.dsc-post-rail__author {
    padding: 20px;
}

.dsc-post-rail__title,
.dsc-post-rail__title a,
.dsc-post-rail__title a:hover {
    margin: 0;
    font: 600 16px/24px Inter, sans-serif;
    color: #1C1C1C;
    text-decoration: none;
}

.dsc-post-rail .dsc-about__text {
    max-height: 88px;
}

.dsc-post-rail .dsc-about.is-open .dsc-about__text {
    max-height: none;
}

.dsc-poster {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dsc-poster__avatar {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.dsc-poster__avatar > img:first-child {
    display: block;
    width: 32px;
    height: 32px;
    border: 0.615px solid #F4F4F4;
    border-radius: 200px;
    object-fit: cover;
}

.dsc-poster__verified {
    position: absolute;
    left: 20.9px;
    top: 21.5px;
}

.dsc-poster__who {
    flex: 1 0 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dsc-poster__name {
    font: 500 14px/20px Inter, sans-serif;
    color: #414651;
}

.dsc-poster__org {
    display: flex;
    gap: 6px;
    align-items: center;
    font: 400 12px/20px Inter, sans-serif;
    color: #595959;
}

/* Cards link to the post page; the links keep the card's own text style. */
.dsc-card__title a,
.dsc-card__title a:hover,
a.dsc-card__body,
a.dsc-card__body:hover {
    color: #181D27;
    text-decoration: none;
}

a.dsc-card__stat,
a.dsc-card__stat:hover {
    color: #8C8C8C;
    text-decoration: none;
}

.dsc-post--placeholder {
    gap: 12px;
}

/* A comment that arrived live fades in like a new post. */
@media (prefers-reduced-motion: no-preference) {
    .dsc-comment--new > .dsc-comment__own {
        animation: dsc-card-new 2s ease-out;
    }
}

/* A post that arrived live fades in from the selected-row blue. */
@media (prefers-reduced-motion: no-preference) {
    .dsc-card--new {
        animation: dsc-card-new 2s ease-out;
    }
}

@keyframes dsc-card-new {
    from { background-color: #EBF1FF; }
}

/* Interaction effects (not in Figma, agreed for phase 1). Motion only when the user allows it. */
.dsc-card__heart--on,
.dsc-card__like[aria-pressed="true"] .dsc-card__heart {
    display: none;
}

.dsc-card__like[aria-pressed="true"] .dsc-card__heart--on {
    display: block;
}

.dsc-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dsc-card:hover {
    border-color: #D9D9D9;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
}

.dsc-card--placeholder {
    gap: 12px;
}

.dsc-card--placeholder:hover {
    border-color: #EEEFF1;
    box-shadow: none;
}

.dsc-ph {
    display: block;
    height: 14px;
    width: 100%;
    border-radius: 4px;
    background: #F0F0F0;
}

.dsc-ph--head {
    width: 40%;
    height: 24px;
}

.dsc-ph--title {
    width: 70%;
    height: 20px;
}

.dsc-ph--short {
    width: 55%;
}

/* View skeletons while a view loads in place; sized to the view they stand in for. */
.dsc-tile--placeholder {
    min-height: 108px;
}

.dsc-rail--placeholder {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 320px;
    padding: 16px;
}

.dsc-hero--placeholder {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px 16px;
}

.dsc-ph--banner {
    height: 149px;
    border-radius: 0;
}

.dsc-hero--placeholder .dsc-ph--banner {
    margin: -20px -20px 0;
    width: calc(100% + 40px);
}

@media (prefers-reduced-motion: no-preference) {
    .dsc-card__like.is-popping .dsc-card__heart--on {
        animation: dsc-pop 0.3s ease-out;
    }

    [data-dsc-like-count].is-ticking,
    [data-dsc-comment-count].is-ticking {
        display: inline-block;
        animation: dsc-tick 0.4s ease-out;
    }

    .dsc-ph {
        animation: dsc-shimmer 1.2s ease-in-out infinite;
    }
}

@keyframes dsc-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes dsc-tick {
    0% { transform: translateY(-4px); opacity: 0.4; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes dsc-shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── Narrow desktop ───────────────────────────────────── */
/* Below 1100 the main column gets too tight next to a rail: the side rail goes and the group rail
   drops under the posts; group tiles go to one column. */
@media (max-width: 1099px) {
    .dsc-page > .dsc-rail {
        display: none;
    }

    .dsc-group-body--rail {
        flex-direction: column;
        align-items: stretch;
    }

    .dsc-group-rail,
    .dsc-post-rail {
        width: 100%;
    }

    .dsc-post-page {
        flex-direction: column;
        align-items: stretch;
    }

    .dsc-groups__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Mobile has its own design, not built yet; hidden until then. Also in _DefaultLayout's critical CSS. */
@media (max-width: 768px) {
    .dsc-desktop {
        display: none;
    }
}
