/* Blog system */
body.blog-page .layout-grid {

    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
}
body.blog-page .layout-grid > .sidebar { display: none; }
body.blog-page .main-content {
    width: 100%;
    max-width: none;
    padding: 0;
}
.blog-page-shell {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 16px clamp(10px, 1.6vw, 22px) 96px;
}
.blog-hero-card,
.blog-filter-card,
.blog-panel,
.blog-post-card,
.blog-empty-state,
.blog-readable-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15,23,42,.09);
    overflow: hidden;
}
.blog-hero-card { margin-bottom: 16px; }
.blog-hero-banner {
    position: relative;
    height: clamp(180px, 25vw, 180px);
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #7c3aed, #db2777);
}
.blog-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-hero-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(2, 6, 23, .20), rgba(2, 6, 23, .72));*/
}
.blog-hero-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    z-index: 2;
}
.blog-back-profile,
.blog-owner-settings-link,
.blog-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    background: rgba(15,23,42,.62);
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(10px);
}
.blog-primary-link { color: #0f172a; background: #f8fafc; border-color: rgba(15,23,42,.10); }
.blog-owner-settings-link.is-active {
    background: rgba(79,70,229,.86);
    border-color: rgba(255,255,255,.46);
}
.blog-hero-info {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 0 22px 20px;
    margin-top: -42px;
    position: relative;
    z-index: 3;
}
.blog-hero-avatar,
.blog-panel-avatar {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 14px 30px rgba(15,23,42,.20);
    background: #fff;
}
.blog-hero-copy { flex: 1; min-width: 0; }
.blog-hero-copy h1 {
    margin: 0 0 4px;
    font-size: clamp(1.7rem, 3vw, 3rem);
    letter-spacing: -.05em;
    color: #ffffff;    text-shadow: #000000 1px 4px 5px;
}
.blog-tagline {
    color: #475569;
    font-size: .98rem;
    margin: 0 0 8px;
}
.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #334155;
    font-weight: 700;
}
.blog-hero-meta span {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 12px;
}
.blog-layout {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(190px, 240px);
    gap: 12px;
    align-items: start;
}
.blog-sidebar {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding-bottom: 12px;
}
.blog-sidebar::-webkit-scrollbar { width: 8px; }
.blog-sidebar::-webkit-scrollbar-thumb { background: rgba(100,116,139,.32); border-radius: 999px; }
.blog-panel { padding: 14px; }
.blog-panel h2,
.blog-panel h3 { margin: 0 0 10px; color: #0f172a; }
.blog-owner-panel { text-align: center; }
.blog-owner-panel .blog-panel-avatar { width: 78px; height: 78px; border-radius: 20px; margin: -2px auto 8px; display: block; }
.blog-owner-panel p { color: #64748b; margin: 0 0 12px; font-weight: 800; }
.blog-about {
    color: #334155;
    line-height: 1.5;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 12px;
    text-align: left;
}
.blog-contact-list { display: grid; gap: 8px; margin-top: 12px; text-align: left; }
.blog-contact-list a,
.blog-contact-list span {
    color: #0f172a;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.blog-owner-tools label,
.blog-settings-form label,
.blog-post-form label { display: block; font-weight: 900; color: #334155; margin: 10px 0 6px; }
.blog-owner-tools input,
.blog-owner-tools textarea,
.blog-owner-tools select,
.blog-settings-form input,
.blog-settings-form textarea,
.blog-settings-form select,
.blog-filter-form input,
.blog-filter-form select {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 11px 12px;
    font: inherit;
    background: #fff;
    color: #0f172a;
}
.blog-form-row,
.blog-settings-grid,
.blog-settings-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}
.blog-checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 28px !important;
}
.blog-checkbox-row input { width: auto !important; }
.blog-upload-inline {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
    margin: 14px 0;
}
.blog-post-preview {
    width: 86px;
    height: 74px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
}
.blog-file-btn input { display: none; }
.blog-file-btn span,
.blog-primary-btn,
.blog-filter-form button {
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 900;
    padding: 12px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 26px rgba(37,99,235,.26);
}
.blog-small-danger {
    border: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 900;
    padding: 8px 12px;
    cursor: pointer;
}
.blog-upload-progress {
    margin-top: 8px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}
.blog-upload-progress.hidden { display: none; }
.blog-upload-progress b { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #7c3aed); }
.blog-upload-progress span { display: none; }
.blog-form-status { color: #475569; font-weight: 800; margin-top: 8px; }
.blog-filter-card { padding: 12px; margin-bottom: 14px; }
.blog-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.blog-filter-form input[name="q"] {
    flex: 1 1 220px;
    min-width: 0;
}
.blog-filter-form select {
    flex: 1 1 150px;
    min-width: 0;
}
.blog-filter-form button {
    flex: 0 0 auto;
    min-height: 46px;
}
.blog-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.blog-section-title h2 { margin: 0; font-size: 1.25rem; }
.blog-section-title span {
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 900;
}
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 14px;
    justify-content: start;
    align-items: start;
}
.blog-post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: initial;
}
.blog-post-menu-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 8;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(15,23,42,.88);
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 12px 30px rgba(15,23,42,.25);
    cursor: pointer;
}
.blog-post-menu-toggle[aria-expanded="true"] { background: #0f6fec; }
.blog-post-action-menu[hidden] { display: none !important; }
.blog-post-action-menu {
    position: absolute;
    left: calc(100% + -211px);
    right: auto;
    top: 54px;
    z-index: 40;
    width: 196px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 62px rgba(15, 23, 42, .2);
    backdrop-filter: blur(12px);
}
.blog-post-action-menu .content-interaction-bar {
    display: grid;
    gap: 6px;
}
.blog-post-action-menu .content-action-btn,
.blog-post-action-menu .content-card-reaction-bar,
.blog-post-action-menu .share-count-chip,
.blog-post-action-menu .wallpaper-mini-btn,
.blog-post-action-menu .blog-inline-edit,
.blog-post-action-menu .blog-inline-delete {
    width: 100%;
    min-height: 34px;
    margin: 0;
    justify-content: center;
    border-radius: 12px;
    box-shadow: none;
    font-size: 13px;
    white-space: nowrap;
}
.blog-post-action-menu .content-card-reaction-bar {
    background: #f8fafc;
    padding: 4px 8px;
    min-height: 34px;
}
.blog-post-action-menu .content-card-reaction-bar .reaction-picker,
.blog-post-action-menu .content-card-reaction-bar [data-reaction-picker] {
    left: auto;
    right: 0;
    z-index: 60;
}
.blog-post-image-link {
    display: block;
    position: relative;
    height: 190px;
    background: #e2e8f0;
    overflow: hidden;
}
.blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    display: block;
    transition: transform .24s ease;
}
.blog-post-card:hover .blog-post-image { transform: scale(1.04); }
.blog-featured-badge,
.blog-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(15,23,42,.78);
    color: #fff;
    font-weight: 900;
    backdrop-filter: blur(8px);
}
.blog-status-badge { left: auto; right: 12px; background: rgba(234,88,12,.86); }
.blog-post-body { padding: 13px; display: grid; gap: 8px; flex: 1; }
.blog-post-meta-line { display: flex; flex-wrap: wrap; gap: 7px; }
.blog-post-meta-line span {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 9px;
    color: #475569;
    font-size: .82rem;
    font-weight: 900;
}
.blog-post-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.18; }
.blog-post-body h3 a { color: #0f172a; text-decoration: none; }
.blog-post-body p { margin: 0; color: #475569; line-height: 1.5; }
.blog-post-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}
.blog-post-stat {
    min-width: 0;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--blog-stat-border, rgba(79,70,229,.18));
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blog-stat-bg, rgba(79,70,229,.08)), rgba(255,255,255,.78));
    color: var(--blog-stat-text, #1e293b);
    font-size: .8rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.blog-post-stat-icon {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--blog-stat-accent, #4f46e5);
}
.blog-post-stat-icon-views {
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 999px 999px 999px 999px / 74% 74% 74% 74%;
}
.blog-post-stat-icon-views::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
}
.blog-post-stat-icon-reactions {
    border-radius: 999px;
    background: radial-gradient(circle at 34% 32%, rgba(255,255,255,.72) 0 2px, transparent 3px),
        linear-gradient(135deg, var(--blog-stat-accent, #4f46e5), #fb7185);
    box-shadow: 0 6px 14px rgba(79,70,229,.18);
}
.blog-post-theme-style2 { --blog-stat-accent: #b45309; --blog-stat-bg: rgba(180,83,9,.1); --blog-stat-border: rgba(180,83,9,.22); }
.blog-post-theme-style3 { --blog-stat-accent: #334155; --blog-stat-bg: rgba(51,65,85,.08); --blog-stat-border: rgba(51,65,85,.18); }
.blog-post-theme-style4 { --blog-stat-accent: #0f766e; --blog-stat-bg: rgba(15,118,110,.08); --blog-stat-border: rgba(15,118,110,.2); }
.blog-post-theme-style5 { --blog-stat-accent: #1e3a8a; --blog-stat-bg: rgba(30,58,138,.08); --blog-stat-border: rgba(30,58,138,.2); }
.blog-post-theme-style6 { --blog-stat-accent: #db2777; --blog-stat-bg: rgba(219,39,119,.08); --blog-stat-border: rgba(219,39,119,.2); }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-tags span {
    border-radius: 999px;
    padding: 6px 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
    font-size: .82rem;
}
.blog-post-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: #64748b;
    font-weight: 900;
}
.blog-empty-state { padding: 30px 16px; text-align: center; color: #64748b; }
.blog-side-list { display: grid; gap: 10px; }
.blog-side-post {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px;
    align-items: center;
    padding: 7px;
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid #e2e8f0;
}
.blog-side-post img,.blog-side-post video { width: 56px; height: 50px; object-fit: cover; object-position: 50% 35%; border-radius: 11px; }
.blog-side-post strong { display: block; font-size: .86rem; line-height: 1.15; }
.blog-side-post small { color: #64748b; font-weight: 800; }
.blog-side-empty { color: #64748b; background: #f8fafc; border-radius: 14px; padding: 12px; }
.blog-pulse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.blog-pulse-grid span { background: linear-gradient(135deg, #eff6ff, #f5f3ff); padding: 14px; border-radius: 18px; text-align: center; }
.blog-pulse-grid strong { display: block; font-size: 1.4rem; color: #1d4ed8; }
.blog-pulse-grid small { color: #64748b; font-weight: 900; }
.blog-up-button {
    position: fixed;
    right: 22px;
    bottom: 88px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 0;
    background: #0f172a;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(15,23,42,.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: .18s ease;
    z-index: 60;
}
.blog-up-button.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.blog-settings-card { margin-top: 18px; }
.blog-settings-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 14px; }
.blog-settings-head h2 { margin: 0; }
.blog-settings-head p { margin: 4px 0 0; color: #64748b; }
.blog-settings-view-link {
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
}
.blog-settings-form { display: grid; gap: 10px; }
.blog-settings-upload-card {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px;
}
.blog-settings-preview img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; background: #e2e8f0; }
.blog-settings-avatar-preview img { width: 120px; height: 120px; border-radius: 30px; }
.blog-settings-upload-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.blog-settings-upload-actions button,
.blog-settings-actions button {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
}
.blog-settings-upload-actions button { background: #e0e7ff; color: #3730a3; }
.blog-settings-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.profile-banner-link-stack {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 3;
}
.profile-banner-link-stack .profile-banner-shop-link,
.profile-banner-blog-link {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(15,23,42,.70);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(8px);
}
.profile-blog-link { text-decoration: none; }
.blog-single-shell { max-width: 1320px; }
.blog-single-hero {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15,23,42,.10);
    border: 1px solid rgba(15,23,42,.08);
    overflow: hidden;
    margin-bottom: 22px;
    position: relative;
}
.blog-single-hero .blog-back-profile {top: 18px; left: 18px; z-index: 2; }
.blog-single-cover { width: 100%; height: clamp(260px, 40vw, 260px); object-fit: cover; display: block; }
.blog-single-heading { padding: 28px; }
.blog-single-heading h1 { font-size: clamp(2rem, 5vw, 4.8rem); letter-spacing: -.055em; line-height: .95; margin: 12px 0; }
.blog-single-heading p { color: #475569; font-size: 1.12rem; line-height: 1.55; }
.blog-single-author { display: flex; align-items: center; gap: 10px; font-weight: 900; color: #334155; }
.blog-single-author img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.blog-single-heading .blog-post-meta-line span{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-single-author-chip{
    gap: 7px;
    padding: 5px 10px 5px 6px !important;
}
.blog-single-author-chip img{
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #fff;
}
.blog-single-author-chip b,
.blog-single-author-chip a{
    color: inherit;
    text-decoration: none;
    font-weight: 900;
}
.blog-single-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.blog-single-main { min-width: 0; }
.blog-readable-card { padding: clamp(20px, 4vw, 46px); }
.blog-readable-body { font-size: 1.1rem; line-height: 1.8; color: #1f2937; white-space: normal; }
.blog-single-tags { margin-top: 26px; }
.blog-vote-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.blog-vote-btn,
.blog-view-chip {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    padding: 10px 14px;
    font-weight: 900;
}
.blog-vote-btn { cursor: pointer; }
.blog-vote-btn.is-active { background: #0f172a; color: #fff; }
@media (max-width: 1180px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; max-height: none; overflow: visible; }
    .blog-posts-grid {
        grid-template-columns: minmax(0, min(100%, 420px));
    }
    .blog-post-action-menu { width: min(196px, calc(100% - 20px)); }
    .blog-single-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .blog-page-shell { padding-left: 10px; padding-right: 10px; }
    .blog-hero-info { align-items: center; padding: 0 16px 18px; margin-top: -42px; }
    .blog-hero-avatar { width: 86px; height: 86px; border-radius: 22px; }
    .blog-form-row,
    .blog-settings-grid,
    .blog-settings-upload-grid { grid-template-columns: 1fr; }
    .blog-filter-form > * { flex-basis: 100%; }
    .blog-post-image-link { height: 210px; }
    .blog-settings-head { display: block; }
    .blog-settings-card {
        margin-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    }
    .blog-settings-form {
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    }
    .blog-settings-actions {
        position: sticky;
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        z-index: 3;
        flex-wrap: wrap;
        padding: 12px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        border-radius: 18px;
        background: rgba(248, 250, 252, 0.96);
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.12);
        backdrop-filter: blur(8px);
    }
    .blog-settings-actions .blog-primary-btn {
        width: 100%;
    }
    .profile-banner-link-stack { left: 12px; right: 12px; justify-content: center; }
}

/* Full-width/edge blog experience */
body.blog-page .layout-grid {

    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
body.blog-page .layout-grid > .sidebar { display: none !important; }
body.blog-page .main-content { width: 100%; max-width: none; padding: 0; margin: 0; gap: 0; }
body.blog-page .blog-page-shell { width: min(var(--site-max-width, 1440px), 100%); max-width: var(--site-max-width, 1440px); margin: 0 auto; padding: 0 clamp(10px, 1.6vw, 24px) 28px; }
body.blog-page .blog-hero-card,
body.blog-page .blog-single-hero { border-radius: 0 0 28px 28px; margin-left: calc(-1 * clamp(10px, 1.6vw, 24px)); margin-right: calc(-1 * clamp(10px, 1.6vw, 24px)); }
body.blog-page .blog-layout { max-width: 100%; }

/* Real blog editor */
.blog-editor { border: 1px solid rgba(15,23,42,.14); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.blog-editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-bottom: 1px solid rgba(15,23,42,.1); background: linear-gradient(180deg,#f8fafc,#eef2ff); }
.blog-editor-toolbar button { width: auto; padding: 8px 10px; border-radius: 10px; background: #111827; color: #fff; font-weight: 900; font-size: 12px; }
.blog-rich-editor { min-height: 240px; padding: 16px; outline: none; color: #111827; line-height: 1.65; font-size: 16px; background: linear-gradient(180deg,#fff,#fbfdff); }
.blog-rich-editor:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.blog-rich-editor h2 { font-size: 26px; line-height: 1.15; margin: 12px 0; }
.blog-rich-editor blockquote { margin: 12px 0; padding: 12px 16px; border-left: 5px solid #2563eb; background: #eff6ff; border-radius: 12px; }
.blog-rich-editor video,.blog-readable-body video { display: block; width: 100%; max-height: 560px; border-radius: 18px; background: #0f172a; object-fit: contain; }
.blog-editor-hidden { display: none !important; }
.blog-readable-body { font-size: 17px; line-height: 1.75; color: #1f2937; }
.blog-readable-body h2 { font-size: 30px; margin: 22px 0 12px; }
.blog-readable-body h3 { font-size: 24px; margin: 18px 0 10px; }
.blog-readable-body blockquote { margin: 18px 0; padding: 16px 18px; border-left: 5px solid #2563eb; background: #eff6ff; border-radius: 14px; }
.blog-readable-body a { color: #2563eb; font-weight: 800; }
.blog-readable-body ul,
.blog-readable-body ol { padding-left: 24px; }

/* Shared content cards in feed/profile */
.shared-content-card { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 14px; padding: 12px; border: 1px solid rgba(15,23,42,.12); border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(15,23,42,.08); text-decoration: none; color: inherit; overflow: hidden; }
.shared-content-card:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(15,23,42,.12); }
.shared-content-image { width: 100%; height: 140px; object-fit: cover; border-radius: 14px; background: #e5e7eb; }
.shared-content-copy { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.shared-content-kicker { font-size: 12px; font-weight: 1000; color: #2563eb; text-transform: uppercase; letter-spacing: .04em; }
.shared-content-copy h3 { margin: 0; font-size: 18px; color: #0f172a; }
.shared-content-copy p { margin: 0; color: #475569; line-height: 1.35; }
.shared-content-copy strong { color: #16a34a; font-size: 18px; }
.shared-content-copy span { color: #64748b; font-weight: 800; font-size: 13px; }

@media (max-width: 700px) {
  .shared-content-card { grid-template-columns: 1fr; }
  .shared-content-image { height: 190px; }
  body.blog-page .blog-page-shell { padding-left: 0; padding-right: 0; }
  body.blog-page .blog-layout,
  body.blog-page .blog-filter-card,
  body.blog-page .blog-posts-section,
  body.blog-page .blog-panel { border-radius: 0; }
}


/* share/blog upgrade: full-width blog page and real editor */
body.blog-page .main-content,
.blog-main-edge .main-content { max-width: none; width: 100%; }
.blog-page-shell { width: min(var(--site-max-width, 1440px), 100vw); max-width: var(--site-max-width, 1440px); margin: 0 auto; padding: 0 10px 24px; }
.blog-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(260px, 340px); gap: 16px; align-items: start; width: 100%; }
.blog-feed { min-width: 0; }
.blog-post-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.blog-sidebar { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.blog-editor { border: 1px solid rgba(15,23,42,.14); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.blog-editor-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-bottom: 1px solid rgba(15,23,42,.1); background: linear-gradient(180deg,#f8fafc,#eef2ff); }
.blog-editor-toolbar button { width: auto; padding: 8px 10px; border-radius: 10px; background: #111827; color: #fff; font-weight: 900; font-size: 12px; border: 0; cursor: pointer; }
.blog-editor-toolbar button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,23,42,.18); }
.blog-editor-surface { min-height: 240px; padding: 16px; outline: 0; line-height: 1.7; font-size: 15px; }
.blog-editor-surface:empty:before { content: attr(placeholder); color: #94a3b8; pointer-events: none; }
.blog-editor-surface h2,.blog-editor-surface h3 { margin: 12px 0 8px; }
.blog-editor-surface blockquote { border-left: 5px solid #111827; margin: 12px 0; padding: 10px 14px; background: #f8fafc; border-radius: 12px; }
.blog-editor-hidden { display: none !important; }
@media (max-width: 980px) {
  .blog-page-shell { padding: 0; }
  .blog-layout { display: block; }
  .blog-sidebar { position: static; max-height: none; overflow: visible; margin: 10px 0; }
  .blog-post-grid { grid-template-columns: 1fr; }
  .blog-hero-card { border-radius: 0; }
}

/* === Blog post view layout repair built from includes (11).zip === */
body.blog-post-page .blog-single-shell {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.blog-post-page .blog-single-hero {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 1181px) {
  /* The generic .blog-layout rule is 3 columns; single post must be article + sidebar. */
  body.blog-post-page .blog-single-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 920px) minmax(300px, 340px) !important;
    gap: 18px !important;
    align-items: start !important;
    width: 100% !important;
    justify-content: center !important;
  }
  body.blog-post-page .blog-single-main {
    grid-column: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 920px !important;
  }
  body.blog-post-page .blog-right-sidebar,
  body.blog-post-page .blog-single-layout > aside.blog-sidebar {
    grid-column: 2 !important;
    position: sticky !important;
    top: 76px !important;
    max-height: calc(100dvh - 94px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    overscroll-behavior: contain;
  }
}

body.blog-post-page .blog-readable-body,
body.blog-post-page .blog-post-signature,
body.blog-post-page .blog-single-tags,
body.blog-post-page .blog-top-comments-preview,
body.blog-post-page .blog-readable-card > .content-interaction-bar {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.blog-top-comments-preview {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, .1);
}
.blog-top-comments-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.blog-top-comments-preview h3 {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.blog-top-comments-preview .post-top-comment {
  margin-top: 0;
}

.blog-post-signature {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248,250,252,.96), rgba(239,246,255,.92));
  color: #0f172a;
}
.blog-post-signature img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(15,23,42,.14);
}
.blog-post-signature span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.blog-post-signature strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.45;
}
.blog-signature-mini,
.blog-signature-create {
  margin-top: 14px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.09);
  background: #f8fafc;
}
.blog-signature-mini span,
.blog-signature-create span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}
.blog-signature-mini strong {
  display: block;
  color: #0f172a;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  body.blog-post-page .blog-single-layout { display: block !important; }
  body.blog-post-page .blog-right-sidebar,
  body.blog-post-page .blog-single-layout > aside.blog-sidebar {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 16px;
  }
}

/* === Blog editor lightbox repair === */
.blog-owner-tools-launch{text-align:center;background:linear-gradient(135deg,#eff6ff,#faf5ff)!important}.blog-editor-launch-copy{color:#64748b;line-height:1.45}.blog-editor-open-btn{width:100%;justify-content:center}.blog-editor-lightbox.hidden{display:none!important}.blog-editor-lightbox{position:fixed;inset:0;z-index:10500;display:grid;place-items:center;padding:18px}.blog-editor-lightbox-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.72);backdrop-filter:blur(14px)}.blog-editor-lightbox-dialog{position:relative;width:min(var(--site-max-width, 1440px),98vw);height:min(900px,94dvh);display:flex;flex-direction:column;overflow:hidden;border-radius:30px;background:linear-gradient(180deg,#ffffff,#f8fafc);box-shadow:0 40px 110px rgba(0,0,0,.42);border:1px solid rgba(255,255,255,.55)}.blog-editor-lightbox-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid rgba(15,23,42,.1);background:linear-gradient(135deg,#111827,#312e81);color:#fff}.blog-editor-lightbox-head h2{margin:0;font-size:28px}.blog-editor-lightbox-head p{margin:4px 0 0;color:#dbeafe}.blog-editor-lightbox-close{width:44px;height:44px;border-radius:999px;background:#fff;color:#111827;font-size:26px;line-height:1}.blog-post-form-lightbox{flex:1 1 auto;overflow:auto;padding:20px}.blog-editor-form-grid{display:grid;grid-template-columns:minmax(0,1fr)320px;gap:18px}.blog-editor-form-main,.blog-editor-form-side{display:flex;flex-direction:column;gap:12px}.blog-editor-form-side{position:sticky;top:0;align-self:start;background:#fff;border:1px solid rgba(15,23,42,.1);border-radius:22px;padding:16px;box-shadow:0 18px 45px rgba(15,23,42,.08)}.blog-form-row.single{display:flex;flex-direction:column;gap:12px}.blog-editor-upload-status{align-self:center;color:#475569;font-size:12px;font-weight:800}.blog-editor-surface img{max-width:100%;border-radius:16px;display:block;margin:12px auto;box-shadow:0 16px 40px rgba(15,23,42,.12)}.blog-editor-modal-open{overflow:hidden}.blog-upload-cover-inline{flex-direction:column;align-items:stretch}.blog-upload-cover-inline .blog-post-preview{width:100%;height:180px;object-fit:cover;border-radius:18px}@media(max-width:900px){.blog-editor-lightbox{padding:0}.blog-editor-lightbox-dialog{width:100vw;height:100dvh;border-radius:0}.blog-editor-form-grid{grid-template-columns:1fr}.blog-editor-form-side{position:relative}}
.blog-editor-lightbox[hidden],
.blog-editor-lightbox[aria-hidden="true"],
.blog-editor-lightbox.hidden{
  display:none!important;
  pointer-events:none!important;
}

.blog-single-reaction-row { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:28px; }
.blog-single-reaction-bar { flex:1 1 auto; }
.blog-single-reaction-row .blog-view-chip { flex:0 0 auto; }
@media (max-width: 640px) { .blog-single-reaction-row { align-items:flex-start; } }

/* ===== Blog makeover additions ===== */
.blog-showcase-grid{
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(280px,.95fr);
  gap:18px;
  margin:18px 0;
}
.blog-theme-panel,
.blog-showcase-feature,
.blog-showcase-rail{
  border-radius:28px;
  overflow:hidden;
}
.blog-showcase-feature{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.9fr);
  min-height:410px;
  background:#fff;
  box-shadow:0 20px 60px rgba(15,23,42,.12);
  border:1px solid rgba(15,23,42,.08);
}
.blog-showcase-image,
.blog-showcase-image img{display:block;width:100%;height:100%}
.blog-showcase-image img{object-fit:cover}
.blog-showcase-copy{display:flex;flex-direction:column;justify-content:center;gap:14px;padding:28px 30px}
.blog-showcase-copy h2{margin:0;font-size:clamp(28px,3vw,48px);line-height:1.02}
.blog-showcase-copy h2 a{color:inherit;text-decoration:none}
.blog-showcase-copy p{margin:0;color:#475569;line-height:1.7;font-size:15px}
.blog-showcase-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.blog-showcase-rail{background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 18px 48px rgba(15,23,42,.1);padding:20px}
.blog-showcase-rail-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:13px;text-transform:uppercase;letter-spacing:.18em;color:#475569}
.blog-showcase-rail-list{display:flex;flex-direction:column;gap:12px}
.blog-spotlight-item{display:grid;grid-template-columns:72px 34px minmax(0,1fr);gap:12px;align-items:center;text-decoration:none;color:inherit;padding:8px 0;border-bottom:1px solid rgba(148,163,184,.2)}
.blog-spotlight-item:last-child{border-bottom:0}
.blog-spotlight-item img{width:72px;height:72px;border-radius:16px;object-fit:cover;box-shadow:0 8px 24px rgba(15,23,42,.12)}
.blog-spotlight-number{display:grid;place-items:center;width:34px;height:34px;border-radius:999px;background:#0f172a;color:#fff;font-weight:900;font-size:12px}
.blog-spotlight-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.blog-spotlight-copy small{color:#64748b}
.blog-spotlight-copy strong{font-size:14px;line-height:1.35}
.blog-field-help{display:block;margin-top:6px;color:#64748b;font-size:12px;line-height:1.4}
.blog-primary-btn,.blog-secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:999px;padding:12px 18px;font-weight:800;text-decoration:none;border:0;cursor:pointer}
.blog-primary-btn{background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;box-shadow:0 14px 35px rgba(79,70,229,.28)}
.blog-secondary-btn{background:#fff;border:1px solid rgba(15,23,42,.12);color:#0f172a}
.blog-post-card .blog-post-meta-line span{display:inline-flex;align-items:center;gap:6px}
.blog-post-card .blog-post-meta-line span + span::before,
.blog-showcase-copy .blog-post-meta-line span + span::before,
.blog-single-heading .blog-post-meta-line span + span::before{content:"";display:inline-block;width:14px;height:1px;background:currentColor;opacity:.35;margin-right:6px}
.blog-post-card{transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease}
.blog-post-card:hover{transform:translateY(-4px)}
.blog-post-theme-style1{background:#101826;color:#fff;border:0;border-top:6px solid #f59e0b;box-shadow:0 22px 54px rgba(15,24,38,.22)}
.blog-post-theme-style1 .blog-post-body h3{font-size:26px}
.blog-post-theme-style1 .blog-post-body h3 a,
.blog-post-theme-style1 .blog-post-body p{color:#fff}
.blog-post-theme-style1 .blog-post-meta-line span,
.blog-post-theme-style1 .blog-tags a,
.blog-post-theme-style1 .blog-post-stat{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);color:#e0f2fe}
.blog-post-theme-style2{background:#fffaf0;border:1px dashed rgba(120,78,39,.38);border-radius:10px;box-shadow:0 10px 26px rgba(120,78,39,.1)}
.blog-post-theme-style2 .blog-post-image-link{margin:10px 10px 0;border-radius:6px;height:165px}
.blog-post-theme-style2 .blog-post-body h3,
body.blog-theme-style2 .blog-single-heading h1,
body.blog-theme-style2 .blog-readable-body h2,
body.blog-theme-style2 .blog-readable-body h3{font-family:Georgia,"Times New Roman",serif}
.blog-post-theme-style3,.blog-readable-theme-style3{border-radius:0!important;box-shadow:none;border:1px solid #111827}
.blog-post-theme-style3 .blog-post-image-link{height:150px;filter:grayscale(.9)}
.blog-post-theme-style3 .blog-post-body{text-align:center;padding:18px}
.blog-post-theme-style3 .blog-post-body h3 a{text-transform:uppercase;letter-spacing:.08em}
.blog-post-theme-style4{border-radius:8px;border:2px solid #111827;box-shadow:7px 7px 0 #22c55e;background:#fff}
.blog-post-theme-style4 .blog-post-body{border-top:6px solid #111827}
.blog-post-theme-style4 .blog-post-meta-line span{border-radius:6px;background:#dcfce7;color:#14532d;border-color:#86efac}
.blog-post-theme-style5{background:#fffef9;border:1px solid rgba(30,58,138,.25);border-top:7px solid #1e3a8a}
.blog-post-theme-style5 .blog-post-body h3,
body.blog-theme-style5 .blog-single-heading h1,
body.blog-theme-style5 .blog-readable-body h2,
body.blog-theme-style5 .blog-readable-body h3{font-family:Georgia,"Times New Roman",serif;letter-spacing:.02em;text-transform:uppercase}
.blog-post-theme-style5 .blog-post-meta-line span{background:#1e3a8a;color:#fff;border-color:#1e3a8a}
.blog-post-theme-style6{background:linear-gradient(180deg,#fff,#fff6fb);border-color:rgba(219,39,119,.22);border-radius:30px;box-shadow:0 22px 55px rgba(219,39,119,.12)}
.blog-post-theme-style6 .blog-post-image-link{margin:12px 12px 0;border-radius:24px}
.blog-post-theme-style6 .blog-post-body{background:rgba(255,255,255,.72);border-radius:0 0 28px 28px}

body.blog-theme-style1{background:#eef4ff}
body.blog-theme-style1 .blog-hero-card{border:0;background:#101826;box-shadow:0 24px 70px rgba(15,24,38,.22)}
body.blog-theme-style1 .blog-hero-info{background:linear-gradient(135deg,rgba(16,24,38,.92),rgba(37,99,235,.74));padding-top:18px;margin-top:0}
body.blog-theme-style1 .blog-style-badge,
body.blog-theme-style1 .blog-spotlight-number{background:#f59e0b;color:#101826}
body.blog-theme-style1 .blog-hero-copy h1,
body.blog-theme-style1 .blog-tagline,
body.blog-theme-style1 .blog-hero-meta{color:#fff}
body.blog-theme-style1 .blog-showcase-feature{background:#101826;color:#fff}
body.blog-theme-style1 .blog-showcase-copy p,body.blog-theme-style1 .blog-showcase-rail-head{color:#dbeafe}
body.blog-theme-style1 .blog-panel,
body.blog-theme-style1 .blog-filter-card,
body.blog-theme-style1 .blog-readable-card{border-top:4px solid #f59e0b}

body.blog-theme-style2{background:#f4efe3}
body.blog-theme-style2 .blog-page-shell{padding-top:12px}
body.blog-theme-style2 .blog-hero-card,
body.blog-theme-style2 .blog-showcase-feature,
body.blog-theme-style2 .blog-showcase-rail,
body.blog-theme-style2 .blog-panel,
body.blog-theme-style2 .blog-filter-card,
body.blog-theme-style2 .blog-post-card,
body.blog-theme-style2 .blog-readable-card{background:#fffaf0;border:1px dashed rgba(120,78,39,.38);border-radius:10px;box-shadow:0 14px 34px rgba(120,78,39,.1)}
body.blog-theme-style2 .blog-page-shell,
body.blog-theme-style2 .blog-readable-body,
body.blog-theme-style2 .blog-single-heading,
body.blog-theme-style2 .blog-showcase-copy h2{font-family:Georgia,"Times New Roman",serif}
body.blog-theme-style2 .blog-hero-copy h1{font-family:Georgia,"Times New Roman",serif;color:#5f3b18;text-shadow:none}
body.blog-theme-style2 .blog-style-badge,
body.blog-theme-style2 .blog-spotlight-number{background:#7c4a1e;color:#fff}
body.blog-theme-style2 .blog-panel h3,
body.blog-theme-style2 .blog-section-title h2{border-bottom:2px solid rgba(120,78,39,.2);padding-bottom:8px}

body.blog-theme-style3{background:#fff}
body.blog-theme-style3 .blog-hero-card,
body.blog-theme-style3 .blog-showcase-feature,
body.blog-theme-style3 .blog-showcase-rail,
body.blog-theme-style3 .blog-panel,
body.blog-theme-style3 .blog-filter-card,
body.blog-theme-style3 .blog-post-card,
body.blog-theme-style3 .blog-readable-card,
body.blog-theme-style3 .blog-single-hero{border-radius:0;box-shadow:none;border:1px solid #111827}
body.blog-theme-style3 .blog-hero-banner{height:clamp(140px,18vw,220px)}
body.blog-theme-style3 .blog-hero-banner img,
body.blog-theme-style3 .blog-showcase-image img{filter:grayscale(.95)}
body.blog-theme-style3 .blog-hero-info{align-items:center;justify-content:center;text-align:center;margin-top:0;padding:28px}
body.blog-theme-style3 .blog-hero-avatar{display:none}
body.blog-theme-style3 .blog-showcase-copy{text-align:center}
body.blog-theme-style3 .blog-showcase-actions{justify-content:center}
body.blog-theme-style3 .blog-showcase-copy h2,
body.blog-theme-style3 .blog-hero-copy h1{font-size:clamp(34px,4vw,62px);font-weight:300;letter-spacing:.08em;text-transform:uppercase;color:#111827;text-shadow:none}

body.blog-theme-style4{background:#eef2f7}
body.blog-theme-style4 .blog-hero-card,
body.blog-theme-style4 .blog-showcase-feature,
body.blog-theme-style4 .blog-post-card,
body.blog-theme-style4 .blog-readable-card{border-radius:8px;border:2px solid #111827;box-shadow:8px 8px 0 #22c55e;background:#fff}
body.blog-theme-style4 .blog-panel,
body.blog-theme-style4 .blog-filter-card{border-radius:8px;border:2px solid rgba(15,23,42,.65);box-shadow:5px 5px 0 rgba(34,197,94,.55)}
body.blog-theme-style4 .blog-page-shell{max-width:var(--site-max-width, 1440px)}
body.blog-theme-style4 .blog-hero-copy h1{color:#111827;text-shadow:none;letter-spacing:0}
body.blog-theme-style4 .blog-style-badge,
body.blog-theme-style4 .blog-filter-form button,
body.blog-theme-style4 .blog-spotlight-number{border-radius:6px;background:#22c55e;color:#052e16}

body.blog-theme-style5{background:#f6f5ef}
body.blog-theme-style5 .blog-hero-card,
body.blog-theme-style5 .blog-showcase-feature,
body.blog-theme-style5 .blog-showcase-rail,
body.blog-theme-style5 .blog-panel,
body.blog-theme-style5 .blog-filter-card,
body.blog-theme-style5 .blog-post-card,
body.blog-theme-style5 .blog-readable-card,
body.blog-theme-style5 .blog-single-hero{background:#fffef9;border:1px solid rgba(30,58,138,.25);border-radius:4px;box-shadow:0 18px 42px rgba(30,58,138,.1)}
body.blog-theme-style5 .blog-showcase-copy h2,
body.blog-theme-style5 .blog-hero-copy h1{font-family:Georgia,"Times New Roman",serif;text-transform:uppercase;letter-spacing:.05em;text-shadow:none;color:#1e3a8a}
body.blog-theme-style5 .blog-style-badge,
body.blog-theme-style5 .blog-spotlight-number{background:#1e3a8a;color:#fff}
body.blog-theme-style5 .blog-panel h3,
body.blog-theme-style5 .blog-section-title h2{font-family:Georgia,"Times New Roman",serif;text-transform:uppercase;letter-spacing:.08em}

body.blog-theme-style6{background:#fff6fb}
body.blog-theme-style6 .blog-hero-card,
body.blog-theme-style6 .blog-showcase-feature,
body.blog-theme-style6 .blog-showcase-rail,
body.blog-theme-style6 .blog-panel,
body.blog-theme-style6 .blog-filter-card,
body.blog-theme-style6 .blog-post-card,
body.blog-theme-style6 .blog-readable-card,
body.blog-theme-style6 .blog-single-hero{background:rgba(255,255,255,.94);border:1px solid rgba(219,39,119,.18);border-radius:10px;box-shadow:0 22px 55px rgba(219,39,119,.13)}
body.blog-theme-style6 .blog-showcase-copy h2,
body.blog-theme-style6 .blog-hero-copy h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:#9d174d;text-shadow:none}
body.blog-theme-style6 .blog-style-badge,
body.blog-theme-style6 .blog-spotlight-number{background:#db2777;color:#fff}
body.blog-theme-style6 .blog-panel-avatar,
body.blog-theme-style6 .blog-hero-avatar{border-radius:30px}

body.blog-post-page.blog-theme-style1 .blog-single-hero{background:#101826;color:#fff}
body.blog-post-page .blog-single-hero{
  margin-bottom:0!important;
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}
body.blog-post-page .blog-single-layout{
  margin-top:0!important;
  row-gap:0!important;
}
body.blog-post-page .blog-readable-card,
body.blog-post-page .blog-single-layout > .blog-sidebar > .blog-panel:first-child{
  border-top-left-radius:0!important;
  border-top-right-radius:0!important;
  margin-top:0!important;
}
body.blog-post-page .blog-readable-card{padding:24px 26px}
body.blog-post-page .blog-readable-body{font-size:17px;line-height:1.85;color:#1f2937}
body.blog-post-page .blog-readable-body h2{font-size:34px;margin:24px 0 12px}
body.blog-post-page .blog-readable-body h3{font-size:28px;margin:22px 0 10px}
body.blog-post-page .blog-readable-body blockquote{margin:28px 0;padding:18px 20px;border-left:4px solid #8b5cf6;background:rgba(139,92,246,.06);font-style:italic}

.blog-editor-lightbox{position:fixed;inset:0;z-index:2147483500;isolation:isolate;pointer-events:auto}
.blog-editor-lightbox-dialog{position:relative;z-index:2}
body.blog-editor-modal-open{overflow:hidden}
body.blog-editor-modal-open .blog-page-shell{position:relative;z-index:1}

.blog-editor-lightbox-backdrop{z-index:0;pointer-events:auto}
.blog-editor-lightbox-dialog{pointer-events:auto}
.blog-editor-lightbox .blog-file-btn{position:relative;overflow:hidden}
.blog-editor-lightbox .blog-file-btn input[type="file"]{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  display:block!important;
  opacity:0!important;
  cursor:pointer!important;
}

@media (max-width: 1120px){
  .blog-showcase-grid,.blog-showcase-feature{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .blog-showcase-grid{margin:0 0 14px;gap:14px}
  .blog-showcase-feature{border-radius:0;min-height:0}
  .blog-showcase-copy{padding:18px}
  .blog-showcase-rail{border-radius:0;padding:16px}
  .blog-spotlight-item{grid-template-columns:64px 30px minmax(0,1fr)}
}

.blog-inline-edit,.blog-inline-delete{display:inline-flex;align-items:center;justify-content:center;border:0;background:#eef2ff;color:#3730a3;border-radius:999px;padding:6px 10px;font-weight:800;text-decoration:none;cursor:pointer}.blog-inline-delete{background:#fee2e2;color:#991b1b}

/* Blog theme consistency pass */
body.blog-page{
  --blog-theme-surface:color-mix(in srgb,var(--card,#fff) 94%,var(--bg,#f8fafc));
  --blog-theme-soft:color-mix(in srgb,var(--bg,#f8fafc) 72%,var(--card,#fff));
  --blog-theme-accent-soft:color-mix(in srgb,var(--accent,#2563eb) 14%,var(--card,#fff));
  --blog-theme-shadow:0 14px 34px rgba(15,23,42,.09);
}
body.blog-page .blog-style-badge{display:none!important}
body.blog-page .blog-panel,
body.blog-page .blog-hero-card,
body.blog-page .blog-single-hero,
body.blog-page .blog-filter-card,
body.blog-page .blog-post-card:not(.has-card-wallpaper),
body.blog-page .blog-readable-card:not(.has-card-wallpaper){
  background:var(--blog-theme-surface)!important;
  border-color:var(--line,rgba(15,23,42,.1))!important;
  color:var(--text,#1c1e21)!important;
  box-shadow:var(--blog-theme-shadow)!important;
}
body.blog-page .blog-panel h2,
body.blog-page .blog-panel h3,
body.blog-page .blog-post-body h3 a,
body.blog-page .blog-section-title h2,
body.blog-page .blog-side-post strong,
body.blog-page .blog-owner-panel p,
body.blog-page .blog-about,
body.blog-page .blog-contact-list a,
body.blog-page .blog-contact-list span{
  color:var(--text,#1c1e21)!important;
}
body.blog-page .blog-tagline,
body.blog-page .blog-post-body p,
body.blog-page .blog-side-post small,
body.blog-page .blog-side-empty,
body.blog-page .blog-editor-launch-copy,
body.blog-page .blog-signature-mini span,
body.blog-page .blog-signature-create span{
  color:var(--muted,#65676b)!important;
}
body.blog-page .blog-side-post,
body.blog-page .blog-side-empty,
body.blog-page .blog-about,
body.blog-page .blog-contact-list a,
body.blog-page .blog-contact-list span,
body.blog-page .blog-signature-mini,
body.blog-page .blog-signature-create,
body.blog-page .blog-hero-meta span,
body.blog-page .blog-section-title span,
body.blog-page .blog-post-meta-line span,
body.blog-page .blog-filter-form input,
body.blog-page .blog-filter-form select,
body.blog-page .blog-post-action-menu .content-card-reaction-bar{
  background:var(--blog-theme-soft)!important;
  border-color:var(--line,rgba(15,23,42,.1))!important;
  color:var(--text,#1c1e21)!important;
}
body.blog-page .blog-hero-info,
body.blog-page .blog-single-heading{
  background:var(--blog-theme-surface)!important;
  color:var(--text,#1c1e21)!important;
}
body.blog-page .blog-hero-copy h1,
body.blog-page .blog-single-heading h1{
  color:var(--text,#1c1e21)!important;
  text-shadow:none!important;
}
body.blog-page .blog-owner-tools-launch{
  background:linear-gradient(135deg,var(--blog-theme-accent-soft),var(--blog-theme-surface))!important;
}
body.blog-page .blog-categories-panel .blog-tags{
  gap:8px;
}
body.blog-page .blog-categories-panel .blog-primary-link{
  background:var(--blog-theme-accent-soft)!important;
  border-color:color-mix(in srgb,var(--accent,#2563eb) 22%,var(--line,#d9dde3))!important;
  color:var(--accent,#2563eb)!important;
}
body.blog-page .blog-post-menu-toggle{
  background:var(--blog-theme-accent-soft)!important;
  color:var(--text,#1c1e21)!important;
  border:1px solid var(--line,rgba(15,23,42,.12))!important;
  box-shadow:0 10px 22px rgba(15,23,42,.12)!important;
}
body.blog-page .blog-post-menu-toggle:hover,
body.blog-page .blog-post-menu-toggle:focus-visible,
body.blog-page .blog-post-menu-toggle[aria-expanded="true"]{
  background:var(--accent,#2563eb)!important;
  color:var(--button-text,#fff)!important;
}
body.blog-page .blog-post-action-menu{
  background:var(--blog-theme-surface)!important;
  border-color:var(--line,rgba(15,23,42,.1))!important;
  box-shadow:0 24px 62px rgba(15,23,42,.18)!important;
}
body.blog-page .blog-inline-edit,
body.blog-page .blog-post-action-menu .content-action-btn,
body.blog-page .blog-post-action-menu .share-count-chip,
body.blog-page .blog-post-action-menu .wallpaper-mini-btn{
  background:var(--blog-theme-soft)!important;
  color:var(--text,#1c1e21)!important;
  border:1px solid var(--line,rgba(15,23,42,.1))!important;
}
body.blog-page .blog-inline-delete{
  background:color-mix(in srgb,#ef4444 12%,var(--card,#fff))!important;
  color:#991b1b!important;
}

/* Sngine-inspired blog directory and post views */
body.blog-feed-page,
body.blog-post-page{
  background:#eef1f5!important;
}
body.blog-feed-page .blog-page-shell{
  width:100%!important;
  max-width:none!important;
  padding:0 0 42px!important;
}
body.blog-feed-page .blog-directory-hero-card{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  margin:0!important;
  background:transparent!important;
  overflow:visible!important;
}
body.blog-feed-page .blog-directory-hero-card .blog-hero-banner{
  height:295px!important;
  border-radius:0!important;
  background:linear-gradient(112deg,#227ecf 0%,#0496c7 52%,#6b7db9 100%)!important;
  overflow:hidden!important;
}
body.blog-feed-page .blog-directory-hero-card .blog-hero-banner > img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  opacity:.14!important;
  mix-blend-mode:multiply!important;
}
body.blog-feed-page .blog-directory-hero-card .blog-hero-overlay{
  display:block!important;
  background:radial-gradient(circle at 92% 8%,rgba(15,23,42,.10) 0 90px,transparent 92px),linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,0))!important;
}
body.blog-feed-page .blog-directory-hero-card .blog-hero-top{
  left:50%!important;
  right:auto!important;
  top:14px!important;
  width:min(1140px,calc(100% - 32px))!important;
  transform:translateX(-50%)!important;
  z-index:5!important;
}
body.blog-feed-page .blog-directory-hero-card .blog-hero-info{
  display:none!important;
}
.blog-directory-hero-copy{
  position:absolute;
  inset:0;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
  color:#fff;
  padding:42px 18px 24px;
}
.blog-directory-hero-copy h1{
  margin:0;
  color:#fff!important;
  text-shadow:none!important;
  font-size:clamp(28px,3vw,42px);
  line-height:1.1;
  font-weight:850;
  letter-spacing:0;
}
.blog-directory-hero-copy p{
  margin:0;
  font-size:18px;
  line-height:1.4;
  font-weight:700;
}
.blog-directory-search{
  width:min(560px,92vw);
  min-height:54px;
  display:grid;
  grid-template-columns:minmax(0,1fr)112px;
  margin-top:12px;
  overflow:hidden;
  border-radius:7px;
  background:#fff;
  box-shadow:0 16px 38px rgba(15,23,42,.14);
}
.blog-directory-search input,
.blog-directory-search button{
  border:0;
  min-width:0;
  font:inherit;
}
.blog-directory-search input{
  padding:0 22px;
  color:#111827;
  font-weight:700;
}
.blog-directory-search button{
  background:#fff;
  color:#111827;
  font-weight:900;
  cursor:pointer;
  border-left:1px solid rgba(15,23,42,.08);
}
.blog-directory-search button:hover,
.blog-directory-search button:focus-visible{
  background:#f8fafc;
  outline:none;
}
.blog-directory-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
.blog-directory-meta span,
.blog-directory-meta button{
  min-height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(255,255,255,.16);
  color:#fff;
  padding:0 12px;
  font-weight:850;
  backdrop-filter:blur(8px);
}
.blog-directory-meta button{
  cursor:pointer;
}
.blog-directory-hero-art{
  position:absolute;
  left:max(42px,calc((100vw - 1140px)/2));
  bottom:24px;
  z-index:2;
  width:260px;
  height:190px;
  opacity:.46;
}
.blog-directory-paper{
  position:absolute;
  left:0;
  top:6px;
  width:180px;
  height:160px;
  border:1px solid rgba(15,23,42,.16);
  background:rgba(255,255,255,.08);
}
.blog-directory-paper:before{
  content:"";
  position:absolute;
  left:16px;
  top:24px;
  width:54px;
  height:42px;
  background:rgba(91,107,222,.72);
  box-shadow:0 58px 0 -20px rgba(255,255,255,.52),74px 26px 0 -22px rgba(255,255,255,.52),74px 52px 0 -22px rgba(255,255,255,.52),16px 84px 0 -23px rgba(255,255,255,.52),16px 108px 0 -23px rgba(255,255,255,.52);
}
.blog-directory-person{
  position:absolute;
  right:38px;
  bottom:0;
  width:38px;
  height:118px;
  border-radius:24px 24px 6px 6px;
  background:#4764d9;
}
.blog-directory-person:before{
  content:"";
  position:absolute;
  top:-18px;
  left:7px;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#2f4f7f;
}
.blog-directory-person:after{
  content:"";
  position:absolute;
  left:-12px;
  top:34px;
  width:58px;
  height:8px;
  border-radius:999px;
  background:#4b7ec8;
  transform:rotate(-25deg);
}
.blog-directory-plant{
  position:absolute;
  right:0;
  bottom:8px;
  width:8px;
  height:52px;
  background:#2f8d74;
  border-radius:999px;
}
.blog-directory-plant:before{
  content:"";
  position:absolute;
  left:-12px;
  top:8px;
  width:16px;
  height:16px;
  border-radius:999px;
  background:#47b694;
  box-shadow:18px 18px 0 -2px #47b694,-9px 35px 0 -3px #47b694;
}
body.blog-feed-page .blog-directory-layout{
  width:min(1140px,calc(100% - 32px))!important;
  margin:26px auto 0!important;
  display:block!important;
}
body.blog-feed-page .blog-left-sidebar,
body.blog-feed-page .blog-right-sidebar{
  display:none!important;
}
body.blog-feed-page .blog-main{
  min-width:0;
}
.blog-directory-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(15,23,42,.10);
}
.blog-directory-toolbar h2{
  margin:0;
  font-size:16px;
  font-weight:900;
  color:#111827;
  letter-spacing:0;
}
.blog-directory-toolbar p{
  margin:4px 0 0;
  color:#64748b;
  font-weight:750;
}
.blog-directory-filter-form{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.blog-directory-filter-form select,
.blog-directory-filter-form button{
  min-height:38px;
  border:0;
  border-radius:999px;
  padding:0 14px;
  background:#fff;
  color:#111827;
  font-weight:900;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
}
.blog-directory-filter-form button{
  background:#111827;
  color:#fff;
  cursor:pointer;
}
body.blog-feed-page .blog-section-title{
  display:none!important;
}
body.blog-feed-page .blog-posts-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  justify-content:stretch!important;
  align-items:stretch!important;
}
body.blog-feed-page .blog-post-card:not(.has-card-wallpaper){
  overflow:hidden!important;
  border:0!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#111827!important;
}
body.blog-feed-page .blog-post-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(15,23,42,.12)!important;
}
body.blog-feed-page .blog-post-image-link{
  height:170px!important;
  border-radius:0!important;
}
body.blog-feed-page .blog-post-image{
  object-position:center 35%!important;
}
body.blog-feed-page .blog-post-body{
  padding:12px 12px 14px!important;
  gap:8px!important;
}
body.blog-feed-page .blog-post-meta-line span{
  border:0!important;
  background:transparent!important;
  color:#687386!important;
  padding:0!important;
  font-size:12px!important;
  font-weight:800!important;
}
body.blog-feed-page .blog-post-body h3{
  margin:0!important;
  font-size:19px!important;
  line-height:1.16!important;
  font-weight:950!important;
  text-transform:uppercase;
  letter-spacing:0!important;
}
body.blog-feed-page .blog-post-body h3 a{
  color:#111827!important;
}
body.blog-feed-page .blog-post-body p{
  color:#202938!important;
  line-height:1.45!important;
  font-size:14px!important;
}
.blog-card-author-row{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:8px;
  align-items:center;
  margin-top:auto;
}
.blog-card-author-row img{
  width:28px;
  height:28px;
  border-radius:999px;
  object-fit:cover;
}
.blog-card-author-row strong,
.blog-card-author-row small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.blog-card-author-row strong{
  color:#6673dd;
  font-size:13px;
  font-weight:850;
}
.blog-card-author-row small{
  color:#99a1ad;
  font-size:12px;
  font-weight:750;
}
body.blog-feed-page .blog-post-stats,
body.blog-feed-page .blog-tags{
  display:none!important;
}

body.blog-post-page .blog-page-shell{
  width:min(1140px,calc(100% - 32px))!important;
  max-width:1140px!important;
  padding:24px 0 56px!important;
}
body.blog-post-page .blog-single-concept-layout{
  display:grid!important;
  grid-template-columns:minmax(0,760px) minmax(300px,370px)!important;
  gap:22px!important;
  justify-content:center!important;
  align-items:start!important;
}
body.blog-post-page .blog-single-main{
  max-width:760px!important;
  min-width:0!important;
}
.blog-single-article-card{
  background:#fff!important;
  color:#111827!important;
  border:0!important;
  border-radius:12px!important;
  box-shadow:none!important;
  overflow:hidden;
}
.blog-single-article-head{
  padding:28px 28px 18px;
}
.blog-single-breadcrumb{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
  color:#6873ee;
  font-size:12px;
  font-weight:950;
}
.blog-single-breadcrumb a{
  color:#2563eb;
  text-decoration:none;
  background:#f3f6ff;
  border-radius:6px;
  padding:4px 8px;
}
.blog-single-breadcrumb span:last-child{
  background:#f3f6ff;
  border-radius:6px;
  padding:4px 8px;
}
.blog-single-article-head h1{
  margin:0 0 18px;
  color:#111827!important;
  font-size:30px;
  line-height:1.16;
  font-weight:650;
  letter-spacing:0!important;
  text-shadow:none!important;
}
.blog-single-author-row{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.blog-single-author-row > img{
  width:52px;
  height:52px;
  border-radius:999px;
  object-fit:cover;
}
.blog-single-author-row strong,
.blog-single-author-row small{
  display:block;
}
.blog-single-author-row strong,
.blog-single-author-row a{
  color:#6673dd!important;
  text-decoration:none;
  font-weight:750;
}
.blog-single-author-row small{
  margin-top:2px;
  color:#99a1ad;
  font-size:12px;
  font-weight:750;
}
.blog-single-stat-row{
  display:flex;
  align-items:center;
  gap:8px;
  color:#64748b;
  font-size:12px;
  font-weight:850;
}
.blog-single-stat-row span{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
}
.blog-single-stat-row b{
  min-width:48px;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:#f6f7fb;
  color:#6673dd;
}
.blog-single-cover-frame{
  position:relative;
  margin:0 28px 24px;
  background:#e5e7eb;
  overflow:hidden;
}
.blog-single-cover-frame .blog-single-cover{
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:16/10;
  object-fit:cover;
  display:block;
}
.blog-single-cover-actions{
  position:absolute;
  top:14px;
  right:14px;
  z-index:5;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.blog-banner-actions-toggle{
  display:none;
}
.blog-single-cover-action-menu{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.blog-single-cover-actions .blog-back-profile{
  background:rgba(15,23,42,.72)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.24)!important;
  padding:9px 12px!important;
  min-height:36px;
  border-radius:999px!important;
}
.blog-single-excerpt,
body.blog-post-page .blog-readable-body,
body.blog-post-page .blog-post-signature,
body.blog-post-page .blog-single-tags,
body.blog-post-page .blog-single-action-row,
body.blog-post-page .blog-top-comments-preview{
  max-width:none!important;
  margin-left:28px!important;
  margin-right:28px!important;
}
.blog-single-excerpt{
  margin-bottom:16px;
  color:#202938;
  font-size:16px;
  line-height:1.6;
  font-weight:650;
}
body.blog-post-page .blog-readable-body{
  color:#202938!important;
  font-size:18px!important;
  line-height:1.9!important;
}
body.blog-post-page .blog-readable-body p{
  margin:0 0 18px;
}
body.blog-post-page .blog-single-tags{
  margin-top:20px!important;
  padding-top:18px;
  border-top:1px solid rgba(15,23,42,.08);
}
body.blog-post-page .blog-single-tags a,
body.blog-post-page .blog-categories-panel .blog-primary-link{
  border:0!important;
  border-radius:999px!important;
  background:#e2e7ff!important;
  color:#6570d8!important;
  padding:8px 14px!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase;
  text-decoration:none!important;
  letter-spacing:0!important;
}
.blog-single-action-row{
  margin-top:18px!important;
  padding-top:18px;
  border-top:1px solid rgba(15,23,42,.08);
}
.blog-single-action-row .content-interaction-bar{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px!important;
  max-width:none!important;
}
.blog-single-action-row .content-action-btn,
.blog-single-action-row .content-card-reaction-bar,
.blog-single-action-row .share-count-chip{
  min-height:44px!important;
  border:0!important;
  background:#fff!important;
  color:#111827!important;
  box-shadow:none!important;
  font-weight:900!important;
}
body.blog-post-page .blog-right-sidebar{
  position:sticky!important;
  top:88px!important;
  max-height:calc(100dvh - 104px)!important;
  overflow:auto!important;
  display:flex!important;
  flex-direction:column!important;
  gap:16px!important;
}
body.blog-post-page .blog-panel{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
}
body.blog-post-page .blog-panel h3{
  margin:0 0 16px!important;
  color:#6570ee!important;
  font-size:18px!important;
  font-weight:700!important;
  text-transform:uppercase;
  letter-spacing:0!important;
  padding-bottom:12px;
  border-bottom:1px solid rgba(15,23,42,.10);
  position:relative;
}
body.blog-post-page .blog-panel h3:after{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:64px;
  height:2px;
  background:#6570ee;
}
.blog-single-create-panel .blog-primary-btn{
  width:100%;
  min-height:48px;
  border-radius:6px!important;
  background:#34ce87!important;
  box-shadow:none!important;
  color:#fff!important;
}
.blog-single-side-search{
  display:grid;
  grid-template-columns:minmax(0,1fr)112px;
  min-height:48px;
  overflow:hidden;
  border-radius:6px;
  background:#fff;
}
.blog-single-side-search input,
.blog-single-side-search button{
  border:0;
  min-width:0;
  font:inherit;
}
.blog-single-side-search input{
  padding:0 18px;
  color:#111827;
  font-weight:700;
}
.blog-single-side-search button{
  background:#fff;
  border-left:1px solid rgba(15,23,42,.08);
  color:#111827;
  font-weight:900;
  cursor:pointer;
}
body.blog-post-page .blog-categories-panel .blog-tags{
  gap:8px;
}
body.blog-post-page .blog-side-list{
  gap:14px;
}
body.blog-post-page .blog-side-post{
  display:block!important;
  overflow:hidden;
  padding:0!important;
  border:0!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.blog-post-page .blog-side-post img,
body.blog-post-page .blog-side-post video{
  width:100%!important;
  height:185px!important;
  border-radius:12px 12px 0 0!important;
  object-fit:cover!important;
}
body.blog-post-page .blog-side-post span{
  display:block;
  padding:12px 14px 14px;
}
body.blog-post-page .blog-side-post strong{
  color:#6570ee!important;
  font-size:15px!important;
  line-height:1.25!important;
}
body.blog-post-page .blog-side-post small{
  display:block;
  margin-top:6px;
  color:#8b95a5!important;
}

@media (max-width:1180px){
  body.blog-feed-page .blog-posts-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.blog-post-page .blog-single-concept-layout{grid-template-columns:1fr!important}
  body.blog-post-page .blog-single-main{max-width:none!important}
  body.blog-post-page .blog-right-sidebar{position:static!important;max-height:none!important;overflow:visible!important}
}
@media (max-width:820px){
  body.blog-feed-page .blog-directory-hero-card .blog-hero-banner{height:320px!important}
  .blog-directory-hero-art{display:none}
  body.blog-feed-page .blog-posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .blog-directory-toolbar{align-items:flex-start;flex-direction:column}
  .blog-directory-filter-form{width:100%;justify-content:flex-start}
  .blog-single-author-row{grid-template-columns:46px minmax(0,1fr)}
  .blog-single-stat-row{grid-column:1/-1}
  .blog-single-action-row .content-interaction-bar{grid-template-columns:1fr!important}
}
@media (max-width:560px){
  body.blog-feed-page .blog-directory-layout,
  body.blog-post-page .blog-page-shell{width:100%!important}
  .blog-directory-search,
  .blog-single-side-search{grid-template-columns:1fr}
  .blog-directory-search button,
  .blog-single-side-search button{min-height:44px;border-left:0;border-top:1px solid rgba(15,23,42,.08)}
  body.blog-feed-page .blog-posts-grid{grid-template-columns:1fr!important;gap:12px!important}
  body.blog-feed-page .blog-post-card{border-radius:0!important}
  .blog-single-article-card{border-radius:0!important}
  .blog-single-article-head{padding:22px 18px 16px}
  .blog-single-cover-frame,
  .blog-single-excerpt,
  body.blog-post-page .blog-readable-body,
  body.blog-post-page .blog-post-signature,
  body.blog-post-page .blog-single-tags,
  body.blog-post-page .blog-single-action-row,
  body.blog-post-page .blog-top-comments-preview{
    margin-left:18px!important;
    margin-right:18px!important;
  }
}

/* Mobile blog post edge-to-edge reading and compact banner controls */
@media (max-width:820px){
  body.blog-post-page .layout-grid,
  body.blog-post-page .main-content,
  body.blog-post-page .blog-page-shell,
  body.blog-post-page .blog-single-shell,
  body.blog-post-page .blog-layout,
  body.blog-post-page .blog-single-layout,
  body.blog-post-page .blog-single-main{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  body.blog-post-page .blog-page-shell{
    padding-top:0!important;
    padding-bottom:72px!important;
  }
  body.blog-post-page .blog-single-concept-layout{
    display:block!important;
    gap:0!important;
  }
  body.blog-post-page .blog-right-sidebar,
  body.blog-post-page .blog-single-layout > aside.blog-sidebar{
    display:none!important;
  }
  body.blog-post-page .blog-single-article-card{
    width:100%!important;
    max-width:100%!important;
    border-radius:0!important;
  }
  body.blog-post-page .blog-single-article-head{
    padding:22px max(16px,env(safe-area-inset-left)) 16px max(16px,env(safe-area-inset-right))!important;
  }
  body.blog-post-page .blog-single-cover-frame{
    width:100%!important;
    margin:0 0 20px!important;
    border-radius:0!important;
  }
  body.blog-post-page .blog-single-cover-frame .blog-single-cover{
    width:100%!important;
    border-radius:0!important;
    aspect-ratio:16/9!important;
  }
  body.blog-post-page .blog-single-excerpt,
  body.blog-post-page .blog-readable-body,
  body.blog-post-page .blog-post-signature,
  body.blog-post-page .blog-single-tags,
  body.blog-post-page .blog-single-action-row,
  body.blog-post-page .blog-top-comments-preview{
    margin-left:max(16px,env(safe-area-inset-left))!important;
    margin-right:max(16px,env(safe-area-inset-right))!important;
  }
  body.blog-post-page .blog-single-cover-actions{
    top:10px;
    right:max(10px,env(safe-area-inset-right));
    display:block;
  }
  body.blog-post-page .blog-banner-actions-toggle{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.28);
    border-radius:999px;
    background:rgba(15,23,42,.76);
    color:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.28);
    backdrop-filter:blur(10px);
    cursor:pointer;
  }
  body.blog-post-page .blog-banner-actions-toggle span{
    display:block;
    transform:translateY(-1px) rotate(90deg);
    font-size:18px;
    font-weight:950;
    letter-spacing:1px;
    line-height:1;
  }
  body.blog-post-page .blog-single-cover-action-menu{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    min-width:194px;
    display:none;
    flex-direction:column;
    gap:6px;
    padding:8px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:14px;
    background:rgba(15,23,42,.94);
    box-shadow:0 18px 44px rgba(15,23,42,.34);
    backdrop-filter:blur(14px);
  }
  body.blog-post-page .blog-single-cover-actions.is-open .blog-single-cover-action-menu{
    display:flex;
  }
  body.blog-post-page .blog-single-cover-action-menu .blog-back-profile{
    width:100%;
    justify-content:flex-start;
    border:1px solid rgba(255,255,255,.12)!important;
    background:rgba(255,255,255,.08)!important;
    box-shadow:none!important;
  }
}

/* Final mobile edge-to-edge guard */
@media (max-width:780px){
  body.blog-page .layout-grid,
  body.blog-page .main-content,
  body.blog-page .blog-page-shell,
  body.blog-feed-page .blog-directory-layout,
  body.blog-page .blog-layout,
  body.blog-feed-page .blog-feed,
  body.blog-feed-page .blog-posts-section,
  body.blog-feed-page .blog-posts-grid,
  body.blog-post-page .blog-single-shell,
  body.blog-post-page .blog-single-layout,
  body.blog-post-page .blog-single-concept-layout,
  body.blog-post-page .blog-single-main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    padding-top:0!important;
    gap:0!important;
  }
  body.blog-feed-page .blog-posts-grid,
  body.blog-post-page .blog-single-layout,
  body.blog-post-page .blog-single-concept-layout{
    grid-template-columns:1fr!important;
  }
  body.blog-page .blog-hero-card,
  body.blog-page .blog-filter-card,
  body.blog-page .blog-panel,
  body.blog-feed-page .blog-post-card,
  body.blog-feed-page .blog-empty-state,
  body.blog-post-page .blog-single-article-card,
  body.blog-post-page .blog-single-cover-frame,
  body.blog-post-page .blog-readable-card,
  body.blog-post-page .blog-top-comments-preview{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.blog-post-page .blog-single-cover-frame .blog-single-cover,
  body.blog-feed-page .blog-post-image{
    width:100%!important;
    border-radius:0!important;
  }
  body.blog-post-page .blog-single-excerpt,
  body.blog-post-page .blog-readable-body,
  body.blog-post-page .blog-post-signature,
  body.blog-post-page .blog-single-tags,
  body.blog-post-page .blog-single-action-row,
  body.blog-post-page .blog-top-comments-preview{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:max(16px,env(safe-area-inset-left))!important;
    padding-right:max(16px,env(safe-area-inset-right))!important;
  }
  body.blog-post-page .blog-single-article-head,
  body.blog-feed-page .blog-post-body{
    padding-left:max(16px,env(safe-area-inset-left))!important;
    padding-right:max(16px,env(safe-area-inset-right))!important;
  }
  body.blog-post-page .blog-right-sidebar,
  body.blog-post-page .blog-single-layout > aside.blog-sidebar{
    display:none!important;
  }
}

/* Main blog feed: keep mobile full-bleed and move banner controls into one menu. */
body.blog-feed-page .blog-directory-hero-card .blog-hero-top{
  justify-content:flex-end!important;
  align-items:flex-start!important;
  pointer-events:none;
}
body.blog-feed-page .blog-hero-top-actions{
  position:relative;
  margin-left:auto;
  pointer-events:auto;
}
body.blog-feed-page .blog-hero-top-actions .blog-banner-actions-toggle{
  width:42px;
  height:42px;
  display:grid!important;
  place-items:center;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(15,23,42,.72);
  color:#fff;
  box-shadow:0 14px 32px rgba(15,23,42,.28);
  backdrop-filter:blur(12px);
  cursor:pointer;
}
body.blog-feed-page .blog-hero-top-actions .blog-banner-actions-toggle span{
  display:block;
  transform:translateY(-1px) rotate(90deg);
  font-size:18px;
  font-weight:950;
  line-height:1;
  letter-spacing:1px;
}
body.blog-feed-page .blog-hero-action-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:20;
  width:min(224px,calc(100vw - 24px));
  display:none!important;
  flex-direction:column;
  gap:6px;
  padding:8px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:16px;
  background:rgba(15,23,42,.94);
  box-shadow:0 22px 50px rgba(15,23,42,.36);
  backdrop-filter:blur(16px);
}
body.blog-feed-page .blog-hero-top-actions.is-open .blog-hero-action-menu{
  display:flex!important;
}
body.blog-feed-page .blog-hero-action-menu .blog-back-profile,
body.blog-feed-page .blog-hero-action-menu .blog-owner-settings-link{
  width:100%;
  min-height:40px;
  justify-content:flex-start;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  box-shadow:none!important;
  padding:9px 11px!important;
  text-align:left;
}
body.blog-feed-page .blog-hero-action-menu button{
  font:inherit;
  cursor:pointer;
}
body.blog-feed-page .blog-hero-action-menu .blog-hero-bookmark-action{
  display:block;
}
body.blog-feed-page .blog-hero-action-menu .blog-back-profile.is-active{
  background:linear-gradient(135deg,rgba(124,58,237,.84),rgba(37,99,235,.78))!important;
  border-color:rgba(255,255,255,.24)!important;
}
body.blog-feed-page .blog-hero-action-menu [data-content-count]{
  margin-left:auto;
  min-width:26px;
  min-height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:12px;
}

@media (max-width:780px){
  body.blog-feed-page{
    overflow-x:hidden!important;
  }
  body.blog-feed-page .app-shell,
  body.blog-feed-page .layout-grid,
  body.blog-feed-page .main-content,
  body.blog-feed-page .blog-page-shell,
  body.blog-feed-page .blog-layout,
  body.blog-feed-page .blog-directory-layout,
  body.blog-feed-page .blog-main,
  body.blog-feed-page .blog-posts-section,
  body.blog-feed-page .blog-posts-grid{
    width:100vw!important;
    max-width:100vw!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    gap:0!important;
  }
  body.blog-feed-page .blog-directory-hero-card,
  body.blog-feed-page .blog-directory-hero-card .blog-hero-banner,
  body.blog-feed-page .blog-post-card,
  body.blog-feed-page .blog-empty-state{
    width:100vw!important;
    max-width:100vw!important;
    margin-left:0!important;
    margin-right:0!important;
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.blog-feed-page .blog-directory-hero-card .blog-hero-banner{
    min-height:286px;
  }
  body.blog-feed-page .blog-directory-hero-card .blog-hero-top{
    top:12px!important;
    right:max(10px,env(safe-area-inset-right))!important;
    left:max(10px,env(safe-area-inset-left))!important;
    width:auto!important;
    transform:none!important;
  }
  body.blog-feed-page .blog-directory-hero-copy{
    padding:60px max(16px,env(safe-area-inset-left)) 22px max(16px,env(safe-area-inset-right))!important;
  }
  body.blog-feed-page .blog-directory-search{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:1fr!important;
    border-radius:14px!important;
  }
  body.blog-feed-page .blog-directory-search input{
    min-height:48px;
    padding:0 16px!important;
  }
  body.blog-feed-page .blog-directory-search button{
    min-height:44px;
    border-left:0!important;
    border-top:1px solid rgba(15,23,42,.08)!important;
  }
  body.blog-feed-page .blog-directory-toolbar{
    width:100vw!important;
    margin:0!important;
    padding:18px max(16px,env(safe-area-inset-left)) 12px max(16px,env(safe-area-inset-right))!important;
    box-sizing:border-box!important;
  }
  body.blog-feed-page .blog-directory-filter-form{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  body.blog-feed-page .blog-directory-filter-form select,
  body.blog-feed-page .blog-directory-filter-form button{
    width:100%!important;
  }
  body.blog-feed-page .blog-post-body{
    padding-left:max(16px,env(safe-area-inset-left))!important;
    padding-right:max(16px,env(safe-area-inset-right))!important;
  }
  body.blog-feed-page .blog-sidebar{
    display:none!important;
  }
}
