/*
 * Memur Kahvesi - Premium Experience Layer
 * Blog, chat and profile surfaces. Loaded after premium-surfaces.css.
 */

/* Shared experience rail */
.mk-page-blog,
.mk-page-blog-category,
.mk-page-blog-post,
.mk-page-chat,
.mk-page-profile {
    --mk-experience-width: 1400px;
    --mk-experience-gutter: clamp(16px, 3vw, 32px);
    --mk-experience-line: #e5e7eb;
    --mk-experience-panel: #ffffff;
    --mk-experience-muted: #64748b;
    --mk-experience-ink: #111827;
    --mk-experience-soft: #f7f8fa;
    --mk-experience-red: #b42326;
    --mk-experience-blue: #2563eb;
    --mk-experience-cyan: #0891b2;
    --mk-experience-green: #059669;
    --mk-experience-amber: #b7791f;
}

.mk-page-blog .blog-section-wrap,
.mk-page-blog-category .blog-wrap,
.mk-page-blog-category .blog-section-wrap,
.mk-page-blog-post .blog-section-wrap,
.mk-page-chat .chat-page-modern,
.mk-page-profile .profile-page {
    width: min(var(--mk-experience-width), calc(100% - (var(--mk-experience-gutter) * 2)));
    max-width: none;
    margin-inline: auto;
}

/* Editorial product: blog */
.mk-page-blog .blog-hero,
.mk-page-blog-category .blog-sub-hero,
.mk-page-blog-post .post-hero {
    width: min(var(--mk-experience-width), calc(100% - (var(--mk-experience-gutter) * 2)));
    min-height: 172px;
    margin: 34px auto 24px;
    padding: 28px 36px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background:
        linear-gradient(100deg, rgba(15, 23, 42, .98) 0%, rgba(31, 41, 55, .96) 58%, rgba(127, 29, 29, .94) 100%);
    box-shadow: 0 22px 52px rgba(15, 23, 42, .16);
}

.mk-page-blog .blog-hero-inner,
.mk-page-blog-category .blog-hero-inner,
.mk-page-blog-post .blog-hero-inner {
    width: 100%;
    max-width: 920px;
    margin: 0;
    text-align: left;
}

.mk-page-blog .blog-eyebrow {
    margin-bottom: 12px;
    border-color: rgba(251, 191, 36, .35);
    background: rgba(15, 23, 42, .45);
    color: #fde68a;
}

.mk-page-blog .blog-hero h1,
.mk-page-blog-category .blog-sub-hero h1,
.mk-page-blog-post .post-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.mk-page-blog .blog-hero p,
.mk-page-blog-category .blog-sub-hero p,
.mk-page-blog-post .post-hero .post-lede {
    max-width: 760px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: .98rem;
    line-height: 1.6;
}

.mk-page-blog .blog-search {
    display: grid;
    grid-template-columns: minmax(220px, 520px) auto;
    gap: 10px;
    width: min(100%, 650px);
    margin: 20px 0 0;
}

.mk-page-blog .blog-search input {
    min-width: 0;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 6px;
    background: rgba(15, 23, 42, .42);
    color: #fff;
}

.mk-page-blog .blog-search input::placeholder {
    color: rgba(255, 255, 255, .66);
}

.mk-page-blog .blog-main-layout,
.mk-page-blog-category .blog-main-layout,
.mk-page-blog-post .blog-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 22px;
}

.mk-page-blog .blog-main-layout > main,
.mk-page-blog-category .blog-main-layout > section,
.mk-page-blog-post .blog-main-layout > main {
    min-width: 0;
}

.mk-page-blog .post-grid,
.mk-page-blog-category .post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mk-page-blog .post-card,
.mk-page-blog-category .post-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--mk-experience-line);
    border-radius: 8px;
    background: var(--mk-experience-panel);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mk-page-blog .post-card:hover,
.mk-page-blog-category .post-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .11);
}

.mk-page-blog .post-thumb,
.mk-page-blog-category .post-thumb {
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 270px;
    border-radius: 0;
    background: #eef2f7;
}

.mk-page-blog .post-thumb img,
.mk-page-blog-category .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mk-page-blog .post-body,
.mk-page-blog-category .post-body {
    padding: 18px 19px 19px;
}

.mk-page-blog .post-cat,
.mk-page-blog-category .post-cat {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff1f2;
    color: #9f1239;
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.mk-page-blog .post-card h3,
.mk-page-blog-category .post-card h3 {
    margin: 11px 0 7px;
    font-size: 1.16rem;
    line-height: 1.35;
}

.mk-page-blog .post-title-anchor,
.mk-page-blog-category .post-title-anchor {
    color: var(--mk-experience-ink);
    text-decoration: none;
}

.mk-page-blog .post-excerpt,
.mk-page-blog-category .post-excerpt {
    min-height: 3.15em;
    margin: 0 0 14px;
    color: var(--mk-experience-muted);
    font-size: .9rem;
    line-height: 1.58;
}

.mk-page-blog .post-meta,
.mk-page-blog-category .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    color: #718096;
    font-size: .78rem;
}

.mk-page-blog .post-card-readmore,
.mk-page-blog-category .post-card-readmore {
    margin-top: 16px;
}

.mk-page-blog .blog-button-readmore,
.mk-page-blog-category .blog-button-readmore {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff7f7;
    color: #991b1b;
    font-size: .82rem;
    font-weight: 800;
}

.mk-page-blog .blog-sidebar,
.mk-page-blog-category .blog-sidebar,
.mk-page-blog-post .blog-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
    min-width: 0;
}

.mk-page-blog .sidebar-card,
.mk-page-blog-category .sidebar-card,
.mk-page-blog-post .sidebar-card,
.mk-page-blog .sidebar-cta,
.mk-page-blog-category .sidebar-cta,
.mk-page-blog-post .sidebar-cta {
    border: 1px solid var(--mk-experience-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .055);
}

.mk-page-blog .sidebar-card,
.mk-page-blog-category .sidebar-card,
.mk-page-blog-post .sidebar-card {
    padding: 17px;
}

.mk-page-blog .cat-list li,
.mk-page-blog-category .cat-list li,
.mk-page-blog-post .cat-list li {
    min-height: 42px;
    border-bottom: 1px solid #eef2f7;
}

.mk-page-blog .cat-list li:last-child,
.mk-page-blog-category .cat-list li:last-child,
.mk-page-blog-post .cat-list li:last-child {
    border-bottom: 0;
}

.mk-page-blog .blog-featured-section {
    margin-bottom: 24px;
}

.mk-page-blog .featured-grid {
    gap: 16px;
}

.mk-page-blog-category .blog-category-page {
    margin-top: 0;
}

.mk-page-blog-category .blog-sub-hero {
    width: 100%;
    margin-top: 34px;
}

.mk-page-blog-category .cat-stats {
    position: absolute;
    right: 32px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 800;
    transform: translateY(-50%);
}

.mk-page-blog-post .post-hero {
    min-height: 210px;
}

.mk-page-blog-post .post-byline {
    margin-top: 14px;
}

.mk-page-blog-post .blog-post-wrap {
    width: auto;
    max-width: none;
    padding: 0;
}

.mk-page-blog-post .blog-post {
    overflow: hidden;
    border: 1px solid var(--mk-experience-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}

.mk-page-blog-post .post-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 420px;
    max-height: 560px;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--mk-experience-line);
    border-radius: 0;
    background: #f3f5f8;
}

.mk-page-blog-post .post-feature img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    margin: auto;
    object-fit: contain;
}

.mk-page-blog-post .post-content,
.mk-page-blog-post .post-tags,
.mk-page-blog-post .post-share,
.mk-page-blog-post .related,
.mk-page-blog-post .comments {
    margin-inline: clamp(22px, 5vw, 64px);
}

.mk-page-blog-post .post-content {
    padding-top: 34px;
    color: #273244;
    font-size: 1rem;
    line-height: 1.78;
}

.mk-page-blog-post .post-content h2,
.mk-page-blog-post .post-content h3 {
    color: var(--mk-experience-ink);
    line-height: 1.3;
}

.mk-page-blog-post .post-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 18px;
    border-top: 1px solid var(--mk-experience-line);
    border-bottom: 1px solid var(--mk-experience-line);
}

/* Conversation product: chat */
.mk-page-chat {
    background:
        linear-gradient(180deg, #f4f7fa 0, #f8fafc 230px, #f7f8fa 100%);
}

.mk-page-chat .chat-page-modern {
    margin-top: 28px;
    margin-bottom: 40px;
    padding: 0;
}

.mk-page-chat .rooms-header-modern {
    overflow: hidden;
    margin-bottom: 14px;
    padding: 18px 20px 14px;
    border: 1px solid #27364c;
    border-radius: 8px;
    background: linear-gradient(110deg, #101827 0%, #182337 68%, #0f4c5c 100%);
    color: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
}

.mk-page-chat .rooms-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mk-page-chat .rooms-title h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.mk-page-chat .rooms-title p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .68);
}

.mk-page-chat .rooms-tabs-wrapper {
    margin-top: 14px;
}

.mk-page-chat .rooms-tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: thin;
}

.mk-page-chat .room-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.mk-page-chat .room-pill:hover,
.mk-page-chat .room-pill.active {
    border-color: rgba(103, 232, 249, .48);
    background: rgba(8, 145, 178, .24);
    color: #fff;
}

.mk-page-chat .pill-count {
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .4);
    font-size: .72rem;
    text-align: center;
}

.mk-page-chat .chat-layout-modern {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
    min-height: min(680px, calc(100vh - 245px));
    max-height: 760px;
}

.mk-page-chat .chat-window-modern,
.mk-page-chat .online-users-sidebar {
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .075);
}

.mk-page-chat .chat-window-modern {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
}

.mk-page-chat .chat-header-bar {
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid #e8edf2;
    background: #fbfcfd;
}

.mk-page-chat .room-avatar,
.mk-page-chat .user-card-avatar {
    border-radius: 50%;
}

.mk-page-chat .chat-messages-stream {
    overflow-y: auto;
    padding: 18px;
    background:
        linear-gradient(rgba(248, 250, 252, .94), rgba(248, 250, 252, .94)),
        radial-gradient(circle at 1px 1px, #d9e1ea 1px, transparent 0);
    background-size: auto, 20px 20px;
}

.mk-page-chat .message-input-area {
    padding: 12px;
    border-top: 1px solid #e5eaf0;
    background: #fff;
}

.mk-page-chat .input-field-wrapper {
    border: 1px solid #ccd6e2;
    border-radius: 8px;
    background: #fff;
}

.mk-page-chat .message-textarea {
    min-height: 52px;
    max-height: 130px;
}

.mk-page-chat .send-message-btn {
    min-height: 40px;
    border-radius: 6px;
    background: #0e7490;
    box-shadow: none;
}

.mk-page-chat .online-users-sidebar {
    display: flex;
    flex-direction: column;
}

.mk-page-chat .sidebar-header {
    min-height: 64px;
    padding: 14px 16px;
    border-bottom: 1px solid #e8edf2;
    background: #fbfcfd;
}

.mk-page-chat .users-list-container {
    overflow-y: auto;
    padding: 8px;
}

.mk-page-chat .user-card {
    min-height: 58px;
    padding: 9px;
    border-radius: 6px;
}

.mk-page-chat .user-card:hover {
    background: #f1f5f9;
}

/* Identity product: profile */
.mk-page-profile {
    background: linear-gradient(180deg, #f4f6f8 0, #fafafa 220px, #f7f8fa 100%);
}

.mk-page-profile .profile-page {
    margin-top: 30px;
    margin-bottom: 42px;
    padding: 0;
}

.mk-page-profile .profile-container {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.mk-page-profile .profile-sidebar {
    position: sticky;
    top: 88px;
    min-width: 0;
}

.mk-page-profile .profile-card,
.mk-page-profile .content-section {
    border: 1px solid var(--mk-experience-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.mk-page-profile .profile-card {
    padding: 24px 18px 18px;
}

.mk-page-profile .profile-avatar {
    width: 104px;
    height: 104px;
    margin-inline: auto;
}

.mk-page-profile .profile-username {
    margin: 15px 0 8px;
    font-size: 1.55rem;
    line-height: 1.2;
    text-align: center;
}

.mk-page-profile .profile-role-badge,
.mk-page-profile .profile-role-pill {
    justify-content: center;
}

.mk-page-profile .profile-bio,
.mk-page-profile .profile-forum-signature {
    color: var(--mk-experience-muted);
    font-size: .85rem;
    line-height: 1.55;
}

.mk-page-profile .profile-stats-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.mk-page-profile .stat-mini {
    display: grid;
    place-items: center;
    min-height: 74px;
    padding: 10px 6px;
    border: 1px solid #e7ebf0;
    border-radius: 6px;
    background: #f8fafc;
    text-align: center;
}

.mk-page-profile .stat-mini .stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
}

.mk-page-profile .stat-mini .stat-label {
    justify-content: center;
    margin-top: 6px;
    color: #64748b;
    font-size: .72rem;
}

.mk-page-profile .profile-info-chip,
.mk-page-profile .profile-meta {
    border-radius: 6px;
    background: #f8fafc;
}

.mk-page-profile .profile-content {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.mk-page-profile .content-section {
    padding: 22px;
}

.mk-page-profile .content-section > h2,
.mk-page-profile .content-section > h3 {
    margin-top: 0;
    color: var(--mk-experience-ink);
}

.mk-page-profile .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mk-page-profile .stat-box {
    min-height: 112px;
    padding: 14px 10px;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
    background: #f8fafc;
    box-shadow: none;
}

.mk-page-profile .stat-box .stat-icon {
    width: 36px;
    height: 36px;
}

.mk-page-profile .stat-box .stat-number {
    margin-top: 7px;
    font-size: 1.25rem;
}

.mk-page-profile .invite-stats-bar,
.mk-page-profile .invite-info-grid {
    gap: 8px;
}

.mk-page-profile .profile-invitation-center {
    border-left: 3px solid #d5a72e;
}

.mk-page-profile .profile-invitation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.mk-page-profile .profile-invitation-heading h2 {
    margin-bottom: 5px;
}

.mk-page-profile .profile-invitation-heading p,
.mk-page-profile .profile-invitation-actions p {
    margin: 0;
    color: var(--mk-text-muted, #64748b);
}

.mk-page-profile .profile-invitation-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}

.mk-page-profile .profile-invitation-actions form {
    margin: 0;
}

.mk-page-profile .form-group input,
.mk-page-profile .form-group select,
.mk-page-profile .form-group textarea {
    border-radius: 6px;
}

/* Focus and motion */
.mk-page-blog a:focus-visible,
.mk-page-blog button:focus-visible,
.mk-page-chat a:focus-visible,
.mk-page-chat button:focus-visible,
.mk-page-profile a:focus-visible,
.mk-page-profile button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

/* Responsive experience rules */
@media (max-width: 1100px) {
    .mk-page-blog .blog-main-layout,
    .mk-page-blog-category .blog-main-layout,
    .mk-page-blog-post .blog-main-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .mk-page-profile .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mk-page-blog .blog-main-layout,
    .mk-page-blog-category .blog-main-layout,
    .mk-page-blog-post .blog-main-layout,
    .mk-page-chat .chat-layout-modern,
    .mk-page-profile .profile-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-page-blog .blog-sidebar,
    .mk-page-blog-category .blog-sidebar,
    .mk-page-blog-post .blog-sidebar,
    .mk-page-profile .profile-sidebar {
        position: static;
    }

    .mk-page-blog .blog-sidebar,
    .mk-page-blog-category .blog-sidebar,
    .mk-page-blog-post .blog-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mk-page-chat .chat-layout-modern {
        min-height: 650px;
        max-height: none;
    }

    .mk-page-chat .online-users-sidebar {
        max-height: 320px;
    }

    .mk-page-profile .profile-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 0 18px;
        align-items: center;
    }

    .mk-page-profile .profile-avatar {
        grid-row: 1 / span 4;
    }

    .mk-page-profile .profile-stats-mini,
    .mk-page-profile .profile-info-chip,
    .mk-page-profile .profile-meta,
    .mk-page-profile .profile-actions,
    .mk-page-profile .profile-card > .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .mk-page-blog,
    .mk-page-blog-category,
    .mk-page-blog-post,
    .mk-page-chat,
    .mk-page-profile {
        --mk-experience-gutter: 12px;
    }

    .mk-page-blog .blog-hero,
    .mk-page-blog-category .blog-sub-hero,
    .mk-page-blog-post .post-hero {
        min-height: 0;
        margin-top: 16px;
        padding: 22px 18px;
    }

    .mk-page-blog .blog-search {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mk-page-blog .blog-search .blog-button {
        min-width: 74px;
        padding-inline: 12px;
    }

    .mk-page-blog .post-grid,
    .mk-page-blog-category .post-grid,
    .mk-page-blog .blog-sidebar,
    .mk-page-blog-category .blog-sidebar,
    .mk-page-blog-post .blog-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-page-blog-category .cat-stats {
        position: static;
        width: max-content;
        margin-top: 14px;
        transform: none;
    }

    .mk-page-blog-post .post-feature {
        min-height: 260px;
        max-height: 430px;
    }

    .mk-page-blog-post .post-feature img {
        max-height: 430px;
    }

    .mk-page-blog-post .post-content,
    .mk-page-blog-post .post-tags,
    .mk-page-blog-post .post-share,
    .mk-page-blog-post .related,
    .mk-page-blog-post .comments {
        margin-inline: 16px;
    }

    .mk-page-chat .rooms-header-modern {
        padding: 16px 14px 12px;
    }

    .mk-page-chat .rooms-header-content {
        align-items: flex-start;
    }

    .mk-page-chat .chat-layout-modern {
        min-height: calc(100vh - 185px);
    }

    .mk-page-chat .chat-messages-stream {
        padding: 12px;
    }

    .mk-page-chat .online-users-sidebar {
        display: none;
    }

    .mk-page-chat .online-users-sidebar.is-open {
        display: flex;
    }

    .mk-page-profile .profile-card {
        display: block;
        padding: 20px 14px 14px;
    }

    .mk-page-profile .profile-avatar {
        width: 92px;
        height: 92px;
    }

    .mk-page-profile .profile-stats-mini,
    .mk-page-profile .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mk-page-profile .content-section {
        padding: 17px 14px;
    }

    .mk-page-profile .profile-invitation-heading,
    .mk-page-profile .profile-invitation-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .mk-page-profile .profile-invitation-heading .btn,
    .mk-page-profile .profile-invitation-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-page-blog .post-card {
        transition: none;
    }
}

/* Compact editorial cards for the blog index. */
.mk-page-blog .post-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 320px));
    justify-content: start;
    gap: 14px;
}

.mk-page-blog .post-card {
    width: 100%;
    max-width: 320px;
}

@media (min-width: 1181px) {
    .mk-page-blog .post-grid {
        grid-template-columns: repeat(3, minmax(0, 320px));
        justify-content: space-between;
        column-gap: 22px;
    }
}

.mk-page-blog .post-thumb {
    aspect-ratio: 2 / 1;
    max-height: 175px;
}

.mk-page-blog .post-body {
    padding: 13px 14px 14px;
    gap: .42rem;
}

.mk-page-blog .post-card h3 {
    margin: 8px 0 5px;
    font-size: 1rem;
    line-height: 1.32;
}

.mk-page-blog .post-excerpt {
    min-height: 2.95em;
    margin-bottom: 9px;
    display: -webkit-box;
    overflow: hidden;
    font-size: .82rem;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mk-page-blog .post-meta {
    gap: 5px 8px;
    font-size: .73rem;
}

.mk-page-blog .post-card-readmore {
    margin-top: 10px;
}

.mk-page-blog .blog-button-readmore {
    min-height: 34px;
    padding: .45rem .68rem;
    font-size: .78rem;
}

@media (max-width: 680px) {
    .mk-page-blog .post-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mk-page-blog .post-card {
        max-width: none;
    }
}
.mk-page-profile .profile-invitation-list {
    margin-top: 18px;
    border-top: 1px solid var(--mk-line, #e4dfd7);
    padding-top: 16px;
}

.mk-page-profile .profile-invitation-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.mk-page-profile .profile-invitation-list-heading h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mk-page-profile .profile-invitation-list-heading > span,
.mk-page-profile .profile-invitation-kicker {
    color: var(--mk-text-muted, #64748b);
    font-size: .78rem;
    font-weight: 800;
}

.mk-page-profile .profile-invitation-item {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--mk-line, #e4dfd7);
    border-radius: 8px;
    background: var(--mk-surface, #fff);
}

.mk-page-profile .profile-invitation-item + .profile-invitation-item {
    margin-top: 8px;
}

.mk-page-profile .profile-invitation-item.is-used {
    background: var(--mk-surface-muted, #f8fafc);
}

.mk-page-profile .profile-invitation-code-wrap {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.mk-page-profile .profile-invitation-code-wrap .invite-code {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    text-overflow: clip;
    user-select: all;
}

.mk-page-profile .profile-invitation-code-wrap small {
    color: var(--mk-text-muted, #64748b);
}

.mk-page-profile .profile-invitation-meta {
    display: grid;
    gap: 5px;
    color: var(--mk-text-muted, #64748b);
    font-size: .82rem;
}

.mk-page-profile .profile-invitation-meta span,
.mk-page-profile .profile-invitation-item-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mk-page-profile .profile-invitation-item-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.mk-page-profile .profile-invitation-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    border: 1px dashed var(--mk-line, #e4dfd7);
    border-radius: 8px;
    color: var(--mk-text-muted, #64748b);
}

@media (max-width: 860px) {
    .mk-page-profile .profile-invitation-item {
        grid-template-columns: 1fr;
    }

    .mk-page-profile .profile-invitation-item-actions {
        justify-content: flex-start;
    }
}