/* EX-028 Professional Feed v1 */

.professional-feed-main {
    min-height: 70vh;
    padding: 34px 0 72px;
    background: #f4f7fb;
}

.professional-feed-container {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
}

.professional-feed-container--single {
    width: min(calc(100% - 40px), 820px);
}

.professional-feed-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.professional-feed-heading h1 {
    margin: 4px 0 8px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.5;
}

.professional-feed-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.professional-feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.professional-feed-stream,
.professional-feed-list,
.professional-feed-sidebar {
    display: grid;
    gap: 16px;
}

.professional-post-composer,
.professional-feed-filter,
.professional-feed-notice,
.professional-feed-side-card,
.professional-post-card,
.professional-feed-empty {
    border: 1px solid #dfe7f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(12, 42, 89, 0.055);
}

.professional-post-composer {
    padding: 20px;
}

.professional-post-composer__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.professional-post-composer__identity > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.professional-post-composer__identity strong {
    color: #123c6c;
    font-size: 14px;
}

.professional-post-composer__identity span {
    color: var(--muted);
    font-size: 12px;
}

.professional-post-composer__form textarea,
.professional-post-edit-form textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #cfdaea;
    border-radius: 14px;
    background: #fbfdff;
    color: var(--text);
    font: inherit;
    line-height: 2;
}

.professional-post-composer__form textarea {
    min-height: 118px;
    padding: 14px 16px;
}

.professional-post-composer__form textarea:focus,
.professional-post-edit-form textarea:focus {
    outline: none;
    border-color: #0b4f93;
    box-shadow: 0 0 0 3px rgba(11, 79, 147, 0.08);
}

.professional-post-composer__counter {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    text-align: left;
}

.professional-post-composer__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.professional-post-media-picker {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 14px;
    border: 1px dashed #b8cce3;
    border-radius: 14px;
    background: #f8fbff;
    color: #0b4f93;
    cursor: pointer;
}

.professional-post-media-picker:hover {
    border-color: #0b4f93;
    background: #f1f7ff;
}

.professional-post-media-picker span {
    font-size: 13px;
    font-weight: 800;
}

.professional-post-media-picker small {
    color: var(--muted);
    font-size: 11px;
}

.professional-post-media-picker input {
    margin-top: 7px;
    width: 100%;
    font-size: 11px;
}

.professional-post-selection {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #eef6ff;
    color: #24527f;
    font-size: 12px;
}

.professional-post-composer__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #e7edf4;
}

.professional-post-composer__actions > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.professional-feed-filter,
.professional-feed-notice {
    padding: 15px 17px;
}

.professional-feed-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.professional-feed-filter > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.professional-feed-filter span,
.professional-feed-notice {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

.professional-feed-filter strong {
    color: var(--text);
    font-size: 14px;
}

.professional-feed-filter a,
.professional-feed-notice a {
    color: #0b4f93;
    font-weight: 800;
}

.professional-post-card {
    overflow: hidden;
}

.professional-post-card__header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 17px 18px 12px;
}

.professional-post-author-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 52px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #eaf3fc;
    color: #0b4f93;
    box-shadow: 0 4px 14px rgba(20, 43, 72, 0.12);
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.professional-post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professional-post-author-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.professional-post-author-name {
    color: #0b3f74;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.professional-post-author-name:hover {
    color: #0b4f93;
}

.professional-post-author-title {
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.professional-post-time {
    width: fit-content;
    color: #8492a6;
    font-size: 10px;
    text-decoration: none;
}

.professional-post-time:hover {
    color: #0b4f93;
}

.professional-post-body {
    padding: 0 18px 16px;
    color: #23364f;
    font-size: 14px;
    line-height: 2.15;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.professional-post-media {
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
    background: #edf2f7;
}

.professional-post-media--images {
    display: grid;
    gap: 2px;
    min-height: 260px;
}

.professional-post-media--count-1 {
    grid-template-columns: 1fr;
}

.professional-post-media--count-2,
.professional-post-media--count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.professional-post-media--count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 210px);
}

.professional-post-media--count-3 .professional-post-image:first-child {
    grid-row: 1 / -1;
}

.professional-post-image {
    min-height: 220px;
    display: block;
    overflow: hidden;
    background: #dfe7ef;
}

.professional-post-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    max-height: 520px;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.professional-post-image:hover img {
    transform: scale(1.015);
}

.professional-post-media--video {
    padding: 0;
    background: #0c1724;
}

.professional-post-media--video video {
    width: 100%;
    max-height: 560px;
    display: block;
    background: #0c1724;
}

.professional-post-card__footer {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    color: #77869a;
    font-size: 11px;
}

.professional-post-card__footer a {
    color: #0b4f93;
    font-weight: 800;
    text-decoration: none;
}

.professional-post-manage {
    position: relative;
}

.professional-post-manage > summary {
    list-style: none;
    padding: 6px 9px;
    border: 1px solid #d8e2ed;
    border-radius: 9px;
    color: #52677f;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.professional-post-manage > summary::-webkit-details-marker {
    display: none;
}

.professional-post-manage__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    width: min(420px, 80vw);
    padding: 14px;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(12, 42, 89, 0.18);
}

.professional-post-edit-form {
    display: grid;
    gap: 10px;
}

.professional-post-edit-form label {
    display: grid;
    gap: 7px;
    color: #203b5c;
    font-size: 12px;
    font-weight: 800;
}

.professional-post-edit-form textarea {
    min-height: 120px;
    padding: 10px 12px;
}

.professional-post-edit-form small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
}

.professional-post-manage__panel > form:last-child {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf1f5;
}

.professional-post-delete {
    color: #a93434;
}

.professional-feed-sidebar {
    position: sticky;
    top: 104px;
}

.professional-feed-side-card {
    padding: 18px;
}

.professional-feed-side-card h2 {
    margin: 0 0 10px;
    color: #123c6c;
    font-size: 15px;
}

.professional-feed-side-card p,
.professional-feed-side-card li {
    color: #66768a;
    font-size: 12px;
    line-height: 1.95;
}

.professional-feed-side-card p {
    margin: 0;
}

.professional-feed-side-card ul {
    margin: 0;
    padding-right: 18px;
}

.professional-feed-side-card__note {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid #edf1f5;
}

.professional-feed-empty {
    padding: 32px 20px;
    color: var(--muted);
    text-align: center;
}

.professional-feed-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 4px;
}

.professional-feed-pagination span {
    color: var(--muted);
    font-size: 11px;
}

.expert-profile-posts {
    display: grid;
    gap: 14px;
}

.profile-section__header-action {
    margin-inline-start: auto;
    color: #0b4f93;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.profile-section__header-action:hover {
    text-decoration: underline;
}

.professional-post-card.is-compact {
    box-shadow: none;
    border-radius: 14px;
}

.professional-post-card.is-compact .professional-post-card__header {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding: 14px 14px 10px;
}

.professional-post-card.is-compact .professional-post-author-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}

.professional-post-card.is-compact .professional-post-body {
    padding-inline: 14px;
    font-size: 13px;
}

.professional-post-card.is-compact .professional-post-media--images {
    min-height: 180px;
}

.professional-post-card.is-compact .professional-post-image {
    min-height: 180px;
}

.professional-post-card.is-compact .professional-post-image img {
    max-height: 340px;
}

@media (max-width: 900px) {
    .professional-feed-layout {
        grid-template-columns: 1fr;
    }

    .professional-feed-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .professional-feed-main {
        padding-top: 24px;
    }

    .professional-feed-container,
    .professional-feed-container--single {
        width: min(calc(100% - 24px), 1180px);
    }

    .professional-feed-heading,
    .professional-feed-filter,
    .professional-post-composer__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .professional-post-composer__media,
    .professional-feed-sidebar {
        grid-template-columns: 1fr;
    }

    .professional-post-card__header {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        padding-inline: 14px;
    }

    .professional-post-author-avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .professional-post-body {
        padding-inline: 14px;
    }

    .professional-post-media--images,
    .professional-post-media--count-2,
    .professional-post-media--count-3,
    .professional-post-media--count-4 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .professional-post-media--count-3 .professional-post-image:first-child {
        grid-row: auto;
    }

    .professional-post-image {
        min-height: 220px;
    }

    .professional-post-manage__panel {
        position: fixed;
        inset: auto 12px 12px 12px;
        width: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* EX-028 Professional Feed v2: secure rich editor */
.professional-rich-editor {
    display: grid;
    gap: 0;
    border: 1px solid #cfdaea;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.professional-rich-editor:focus-within {
    border-color: #0b4f93;
    box-shadow: 0 0 0 3px rgba(11, 79, 147, 0.08);
}

.professional-rich-editor__toolbar,
.professional-rich-editor__surface {
    display: none;
}

.professional-rich-editor.is-enhanced .professional-rich-editor__toolbar {
    display: flex;
}

.professional-rich-editor.is-enhanced .professional-rich-editor__surface {
    display: block;
}

.professional-rich-editor.is-enhanced > textarea[data-rich-editor-fallback] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.professional-rich-editor > textarea[data-rich-editor-fallback] {
    width: 100%;
    min-height: 132px;
    padding: 14px 16px;
    resize: vertical;
    border: 0;
    background: #fbfdff;
    color: var(--text);
    font: inherit;
    line-height: 2;
}

.professional-rich-editor > textarea[data-rich-editor-fallback]:focus {
    outline: none;
}

.professional-rich-editor__toolbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid #e3eaf2;
    background: #f8fbff;
}

.professional-rich-editor__tool,
.professional-rich-editor__size-control select {
    min-height: 34px;
    border: 1px solid #d6e1ec;
    border-radius: 8px;
    background: #fff;
    color: #274b70;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.professional-rich-editor__tool {
    min-width: 36px;
    padding: 6px 9px;
    cursor: pointer;
}

.professional-rich-editor__tool:hover,
.professional-rich-editor__tool.is-active {
    border-color: #0b4f93;
    background: #eef6ff;
    color: #0b4f93;
}

.professional-rich-editor__size-control select {
    padding: 4px 8px;
}

.professional-rich-editor__separator {
    width: 1px;
    height: 24px;
    margin-inline: 2px;
    background: #dfe7ef;
}

.professional-rich-editor__surface {
    min-height: 150px;
    max-height: 420px;
    overflow-y: auto;
    padding: 14px 16px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    line-height: 2.05;
    outline: none;
    overflow-wrap: anywhere;
}

.professional-rich-editor__surface:empty::before {
    content: attr(data-placeholder);
    color: #9aa8ba;
    pointer-events: none;
}

.professional-rich-editor__surface p,
.professional-rich-editor__surface ul,
.professional-rich-editor__surface ol,
.professional-rich-editor__surface blockquote,
.professional-post-body p,
.professional-post-body ul,
.professional-post-body ol,
.professional-post-body blockquote {
    margin: 0 0 0.75em;
}

.professional-rich-editor__surface p:last-child,
.professional-rich-editor__surface ul:last-child,
.professional-rich-editor__surface ol:last-child,
.professional-rich-editor__surface blockquote:last-child,
.professional-post-body p:last-child,
.professional-post-body ul:last-child,
.professional-post-body ol:last-child,
.professional-post-body blockquote:last-child {
    margin-bottom: 0;
}

.professional-rich-editor__surface ul,
.professional-rich-editor__surface ol,
.professional-post-body ul,
.professional-post-body ol {
    padding-right: 24px;
}

.professional-rich-editor__surface blockquote,
.professional-post-body blockquote {
    padding: 8px 14px;
    border-right: 3px solid #4d8dca;
    background: #f5f9fd;
    color: #435970;
}

.feed-text-small {
    font-size: 12px;
}

.feed-text-normal {
    font-size: 14px;
}

.feed-text-large {
    font-size: 18px;
    line-height: 1.9;
}

.professional-post-body {
    white-space: normal;
}

.professional-post-security-note {
    margin-top: 10px;
    padding: 9px 12px;
    border: 1px solid #d9ebe4;
    border-radius: 10px;
    background: #f3fbf7;
    color: #41695b;
    font-size: 10px;
    line-height: 1.9;
}

.professional-post-card.is-compact .professional-post-body.is-clamped {
    position: relative;
    max-height: 13.5em;
    overflow: hidden;
}

.professional-post-card.is-compact .professional-post-body.is-clamped::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3.5em;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.96)
    );
    pointer-events: none;
}

.professional-post-card.is-compact .professional-post-media--video video {
    max-height: 300px;
}

@media (max-width: 680px) {
    .professional-rich-editor__toolbar {
        gap: 5px;
    }

    .professional-rich-editor__separator {
        display: none;
    }

    .professional-rich-editor__tool,
    .professional-rich-editor__size-control select {
        min-height: 32px;
        font-size: 11px;
    }
}


/* EX-028 Professional Feed v2.1: selection-aware editor and multi-image picker */
.professional-rich-editor__selection-hint {
    padding: 7px 11px;
    border-bottom: 1px solid #e9eef5;
    background: #fbfdff;
    color: #64748b;
    font-size: 10px;
    line-height: 1.8;
    transition: background 0.18s ease, color 0.18s ease;
}

.professional-rich-editor__selection-hint.is-warning {
    background: #fff7e8;
    color: #8a5b00;
}

.professional-post-image-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 11px;
}

.professional-post-image-preview__item {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce6f0;
    border-radius: 12px;
    background: #fff;
}

.professional-post-image-preview__item img {
    display: block;
    width: 100%;
    height: 104px;
    object-fit: cover;
    background: #edf2f7;
}

.professional-post-image-preview__copy {
    display: grid;
    gap: 2px;
    padding: 7px 9px;
}

.professional-post-image-preview__copy strong {
    overflow: hidden;
    color: #253b56;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.professional-post-image-preview__copy span {
    color: var(--muted);
    font-size: 9px;
}

.professional-post-image-preview__remove {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(13, 35, 59, 0.82);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.professional-post-media-clear {
    align-self: flex-start;
    margin-top: 7px;
    padding: 4px 8px;
    border: 1px solid #cbd8e6;
    border-radius: 7px;
    background: #fff;
    color: #7f1d1d;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

@media (max-width: 680px) {
    .professional-post-image-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* EX-028 Professional Feed v2.2: full-page post editor */
.professional-post-manage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid #d8e2ed;
    border-radius: 9px;
    background: #fff;
    color: #315777;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.professional-post-manage-link:hover {
    border-color: #b9cade;
    background: #f7fbff;
    color: #0b4f93;
}

.professional-post-edit-page {
    width: min(100% - 32px, 980px);
}

.professional-post-edit-heading {
    align-items: end;
}

.professional-post-editor-card {
    max-width: 860px;
    margin-inline: auto;
}

.professional-post-existing-media {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid #dde7f1;
    border-radius: 14px;
    background: #f9fbfd;
}

.professional-post-existing-media__header strong,
.professional-post-danger-zone strong {
    display: block;
    color: #173b63;
    font-size: 13px;
}

.professional-post-existing-media__header span,
.professional-post-danger-zone span {
    display: block;
    margin-top: 3px;
    color: #6e7e91;
    font-size: 10px;
    line-height: 1.8;
}

.professional-post-existing-media__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.professional-post-existing-media__item,
.professional-post-existing-media__video {
    overflow: hidden;
    border: 1px solid #d9e4ef;
    border-radius: 12px;
    background: #fff;
    transition: opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.professional-post-existing-media__item img {
    display: block;
    width: 100%;
    height: 135px;
    object-fit: cover;
    background: #edf2f7;
}

.professional-post-existing-media__video video {
    display: block;
    width: 100%;
    max-height: 430px;
    background: #0c1724;
}

.professional-post-existing-media__control {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    color: #3d536c;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.professional-post-existing-media__control input {
    width: 16px;
    height: 16px;
    accent-color: #c13b3b;
}

.professional-post-existing-media__item.is-marked-for-removal,
.professional-post-existing-media__video.is-marked-for-removal {
    border-color: #e5abab;
    background: #fff3f3;
    opacity: 0.62;
}

.professional-post-existing-media__item.is-marked-for-removal img,
.professional-post-existing-media__video.is-marked-for-removal video {
    filter: grayscale(0.75);
}

.professional-post-edit-actions {
    align-items: center;
}

.professional-post-edit-actions__buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.professional-post-danger-zone {
    max-width: 860px;
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #efd0d0;
    border-radius: 14px;
    background: #fffafa;
}

.professional-post-danger-zone strong {
    color: #8d2626;
}

@media (max-width: 680px) {
    .professional-post-edit-page {
        width: min(100% - 20px, 980px);
    }

    .professional-post-existing-media__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .professional-post-edit-actions,
    .professional-post-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .professional-post-edit-actions__buttons {
        width: 100%;
    }

    .professional-post-edit-actions__buttons .btn {
        flex: 1 1 0;
    }
}


/* EX-028 Professional Feed v2.4: Like, Comment, Copy Link */
.professional-post-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 8px 16px;
    border-top: 1px solid #edf1f6;
    color: #60758d;
    font-size: 13px;
}

.professional-post-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
}

.professional-post-stat svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.professional-post-stat--likes.is-liked {
    color: #d93b62;
}

.professional-post-stat--likes.is-liked svg {
    fill: currentColor;
}

.professional-post-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 5px 10px;
    border-top: 1px solid #edf1f6;
    border-bottom: 1px solid #edf1f6;
}

.professional-post-action-form {
    margin: 0;
}

.professional-post-action {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #425d7a;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.professional-post-action:hover {
    background: #f1f6fb;
    color: #0b57a5;
}

.professional-post-action svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.professional-post-action.is-liked {
    color: #d93b62;
}

.professional-post-action.is-liked svg {
    fill: currentColor;
}

.professional-post-action:disabled {
    opacity: .55;
    cursor: wait;
}

.professional-post-interaction-message {
    min-height: 0;
    padding: 0 16px;
    color: #13764b;
    font-size: 12px;
    line-height: 1.8;
    transition: padding .15s ease;
}

.professional-post-interaction-message:not(:empty) {
    padding-top: 7px;
    padding-bottom: 3px;
}

.professional-post-interaction-message.is-error {
    color: #a42b2b;
}

.professional-post-comments-preview {
    display: grid;
    gap: 8px;
    padding: 8px 14px 12px;
}

.professional-post-comments-preview__list,
.professional-post-comments-list {
    display: grid;
    gap: 9px;
}

.professional-post-comments-preview__all {
    width: fit-content;
    color: #526b84;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.professional-post-comments-preview__all:hover {
    color: #0b57a5;
}

.professional-post-comment {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.professional-post-comment__avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe5ef;
    border-radius: 50%;
    background: #eef5fb;
    color: #174b78;
    font-size: 13px;
    font-weight: 900;
}

.professional-post-comment__bubble {
    min-width: 0;
    padding: 9px 11px 10px;
    border-radius: 13px;
    background: #f5f8fb;
}

.professional-post-comment__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.professional-post-comment__header > div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.professional-post-comment__author {
    color: #173b63;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.professional-post-comment__time {
    color: #8a99aa;
    font-size: 11px;
}

.professional-post-comment__body {
    margin: 5px 0 0;
    color: #334a62;
    font-size: 14px;
    line-height: 2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.professional-post-comment__delete {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b9bad;
    font: inherit;
    font-size: 17px;
    cursor: pointer;
}

.professional-post-comment__delete:hover {
    background: #ffecec;
    color: #a52f2f;
}

.professional-post-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.professional-post-comment-form textarea {
    width: 100%;
    min-height: 40px;
    max-height: 160px;
    resize: vertical;
    padding: 9px 12px;
    border: 1px solid #d7e2ed;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #233c56;
    font: inherit;
    font-size: 14px;
    line-height: 1.9;
}

.professional-post-comment-form textarea:focus {
    border-color: #7aa5d2;
    box-shadow: 0 0 0 3px rgba(31, 101, 171, .08);
}

.professional-post-comment-form button {
    min-height: 40px;
    padding: 8px 13px;
    border: 0;
    border-radius: 10px;
    background: #0b57a5;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.professional-post-comment-form button:disabled {
    opacity: .6;
    cursor: wait;
}

.professional-post-comment-login {
    color: #728397;
    font-size: 12px;
}

.professional-post-comment-login a {
    color: #0b57a5;
    font-weight: 900;
}

.professional-post-comments-panel {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 55, 90, .05);
}

.professional-post-comments-panel__header {
    margin-bottom: 14px;
}

.professional-post-comments-panel__header span {
    color: #e67817;
    font-size: 12px;
    font-weight: 900;
}

.professional-post-comments-panel__header h2 {
    margin: 3px 0 0;
    color: #173b63;
    font-size: 20px;
}

.professional-post-comments-panel__header small {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    place-items: center;
    margin-inline-start: 6px;
    border-radius: 999px;
    background: #eef5fb;
    color: #0b57a5;
    font-size: 11px;
}

.professional-post-comment-form--standalone {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f6;
}

.professional-post-comments-login-card,
.professional-post-comments-empty {
    padding: 12px 14px;
    border: 1px dashed #d5e1ed;
    border-radius: 12px;
    background: #fbfdff;
    color: #6c7e91;
    font-size: 13px;
    line-height: 1.9;
}

.professional-post-comments-login-card {
    margin-bottom: 14px;
}

.professional-post-comments-login-card a {
    color: #0b57a5;
    font-weight: 900;
}

.professional-post-comments-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.professional-post-card.is-compact .professional-post-actions {
    margin-top: 0;
}

.professional-post-card.is-compact .professional-post-card__footer {
    border-top: 0;
}

@media (max-width: 680px) {
    .professional-post-action {
        gap: 5px;
        font-size: 13px;
    }

    .professional-post-action svg {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .professional-post-comment-form {
        grid-template-columns: 1fr;
    }

    .professional-post-comment-form button {
        width: 100%;
    }

    .professional-post-comments-panel {
        padding: 14px;
    }
}


/* Professional feed toolbar alignment with /experts v1 */
.professional-feed-heading.experts-page-toolbar {
    align-items: center;
    gap: 18px;
}

.professional-feed-heading.experts-page-toolbar .section-eyebrow--block {
    margin-bottom: 2px !important;
    color: #ff8c42;
    font-size: 11px !important;
    font-weight: 900;
    line-height: 1.5 !important;
}

@media (max-width: 700px) {
    .professional-feed-heading.experts-page-toolbar {
        align-items: flex-start;
        gap: 9px;
    }
}
