/*
 * Build 0132 — Blogs / Blog functional and presentation refresh.
 * Supplemental styles only. Legacy Blog behavior remains in blog-theme.css where still shared.
 */

.buzzen-blog-refresh {
    --blog-blue: #166fae;
    --blog-blue-dark: #103f63;
    --blog-blue-soft: #eef7fd;
    --blog-gold: #f0b51d;
    --blog-ink: #173e59;
    --blog-muted: #60798a;
    --blog-border: #d8e5ed;
    --blog-card-shadow: 0 10px 28px rgba(31, 75, 104, .08);
}

.buzzen-blog-refresh .buzzen-v5-section-card,
.buzzen-blog-refresh .buzzen-v5-card {
    border-color: var(--blog-border);
}

/* Directory hero */
.buzzen-blog-hub-hero,
.buzzen-blog-reader-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid #cbdde8;
    border-radius: var(--buzzen-radius-lg, 18px);
    box-shadow: var(--blog-card-shadow);
}

.buzzen-blog-hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 28px 30px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 210, 74, .17) 0 12%, transparent 12.5%),
        linear-gradient(125deg, #0d3150 0%, #135783 62%, #1875ab 100%);
}

.buzzen-blog-hub-hero::after {
    content: "";
    position: absolute;
    right: -68px;
    bottom: -88px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .055);
    pointer-events: none;
}

.buzzen-blog-hub-hero > * {
    position: relative;
    z-index: 1;
}

.buzzen-blog-hub-hero .buzzen-v5-kicker {
    color: #ffd454;
}

.buzzen-blog-hub-hero h1 {
    max-width: 800px;
    margin: 6px 0 10px;
    color: #fff;
    font-size: clamp(29px, 3vw, 43px);
    line-height: 1.04;
    letter-spacing: -.02em;
}

.buzzen-blog-hub-hero p {
    max-width: 760px;
    margin: 0;
    color: #d9ebf7;
    font-size: 15px;
    line-height: 1.65;
}

.buzzen-blog-hub-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
}

.buzzen-blog-hub-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #dcecf6;
    font-size: 12px;
    font-weight: 700;
}

.buzzen-blog-hub-stats strong {
    color: #fff;
    font-size: 14px;
}

.buzzen-blog-hub-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 180px;
}

.buzzen-blog-hub-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
}

/* Search / filter panel */
.buzzen-blog-filter-card {
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--blog-card-shadow);
}

.buzzen-blog-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.55fr) minmax(180px, .85fr) minmax(170px, .75fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px 18px 18px;
}

.buzzen-blog-filter-form label {
    display: block;
    margin-bottom: 5px;
    color: #38586d;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.buzzen-blog-filter-search > div {
    position: relative;
}

.buzzen-blog-filter-search i,
.buzzen-blog-search-inline i {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    color: #63859c;
    pointer-events: none;
}

.buzzen-blog-filter-search input,
.buzzen-blog-search-inline input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px 9px 39px;
    border: 1px solid #cddce5;
    border-radius: 10px;
    background: #fbfdff;
    color: #183e58;
    outline: none;
}

.buzzen-blog-filter-search input:focus,
.buzzen-blog-search-inline input:focus,
.buzzen-blog-filter-form .form-select:focus {
    border-color: #58a9d9;
    box-shadow: 0 0 0 3px rgba(27, 121, 189, .11);
}

.buzzen-blog-filter-form .form-select {
    min-height: 42px;
    border-color: #cddce5;
    border-radius: 10px;
    background-color: #fbfdff;
    color: #244a63;
}

.buzzen-blog-filter-actions {
    display: flex;
    gap: 7px;
}

.buzzen-blog-filter-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 800;
}

.buzzen-blog-results-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
    margin: 0 1px 14px;
    padding: 8px 12px;
    border: 1px solid #dce7ed;
    border-radius: 12px;
    background: rgba(255, 255, 255, .68);
}

.buzzen-blog-results-bar > div:first-child {
    display: flex;
    flex-direction: column;
    margin-right: auto;
}

.buzzen-blog-results-bar strong {
    color: #24475d;
    font-size: 13px;
}

.buzzen-blog-results-bar > div:first-child span {
    color: #728896;
    font-size: 11px;
}

.buzzen-blog-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 260px;
    padding: 6px 9px;
    border: 1px solid #cfe3ef;
    border-radius: 999px;
    background: #eff8fd;
    color: #245a7c;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Directory / article two-column frame */
.buzzen-blog-refresh-layout,
.buzzen-blog-reader-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 16px;
    align-items: start;
}

.buzzen-blog-refresh-layout main,
.buzzen-blog-reader-layout main {
    min-width: 0;
}

.buzzen-blog-refresh-sidebar {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.buzzen-blog-refresh-sidebar .buzzen-blog-side-card {
    margin: 0;
    padding: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 22px rgba(34, 75, 100, .065);
}

.buzzen-blog-refresh-sidebar .buzzen-blog-side-card h2 {
    margin: 1px 0 9px;
    color: #173f5b;
    font-size: 18px;
}

/* Modern post cards */
.buzzen-blog-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 15px;
}

.buzzen-blog-modern-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 270px;
    overflow: hidden;
    border: 1px solid #d8e5ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 75, 104, .055);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.buzzen-blog-modern-card:hover {
    transform: translateY(-2px);
    border-color: #bad9ea;
    box-shadow: 0 12px 28px rgba(31, 75, 104, .10);
}

.buzzen-blog-modern-card > header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 13px;
    border-bottom: 1px solid #edf2f5;
    background: #fbfdff;
}

.buzzen-blog-modern-author {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.buzzen-blog-modern-author img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cbdde8;
}

.buzzen-blog-modern-author span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.buzzen-blog-modern-author strong {
    overflow: hidden;
    color: #214b66;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buzzen-blog-modern-author small {
    color: #7a8f9c;
    font-size: 10.5px;
}

.buzzen-blog-private-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff3cb;
    color: #795b08;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.buzzen-blog-modern-body {
    flex: 1;
    padding: 15px 15px 11px;
}

.buzzen-blog-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef7fd;
    color: #2676a8;
    font-size: 10.5px;
    font-weight: 850;
    text-decoration: none;
}

.buzzen-blog-modern-body h3 {
    margin: 0 0 8px;
    color: #153f5d;
    font-size: 18px;
    line-height: 1.25;
}

.buzzen-blog-modern-body h3 a {
    color: inherit;
    text-decoration: none;
}

.buzzen-blog-modern-body h3 a:hover,
.buzzen-blog-modern-card > footer > a:hover {
    color: #0d74b4;
}

.buzzen-blog-modern-body p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #5c7382;
    font-size: 12.5px;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.buzzen-blog-modern-card > footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-top: 1px solid #edf2f5;
    background: #fbfdff;
}

.buzzen-blog-modern-stats {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-right: auto;
    color: #6e8797;
    font-size: 10.5px;
    font-weight: 750;
}

.buzzen-blog-modern-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.buzzen-blog-modern-card > footer > a {
    color: #156fa9;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.buzzen-blog-refresh-empty {
    margin: 16px;
    min-height: 130px;
}

.buzzen-blog-refresh-empty div {
    display: flex;
    flex-direction: column;
}

.buzzen-blog-refresh-empty strong {
    color: #2b4e64;
}

.buzzen-blog-refresh-empty span {
    color: #738996;
}

.buzzen-blog-category-list {
    display: grid;
    gap: 5px;
}

.buzzen-blog-category-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #416176;
    font-size: 11.5px;
    font-weight: 750;
    text-decoration: none;
}

.buzzen-blog-category-list a strong {
    margin-left: auto;
    color: #698190;
    font-size: 10.5px;
}

.buzzen-blog-category-list a:hover,
.buzzen-blog-category-list a.is-active {
    border-color: #cfe2ed;
    background: #eff8fd;
    color: #146da7;
}

/* Article reader */
.buzzen-blog-reader-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 265px;
    background: linear-gradient(135deg, #fff 0%, #f3f9fd 70%, #fff8dd 100%);
}

.buzzen-blog-reader-hero-copy {
    min-width: 0;
    padding: 27px 30px;
}

.buzzen-blog-reader-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
}

.buzzen-blog-reader-labels > a,
.buzzen-blog-reader-labels > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 5px 10px;
    border: 1px solid #cfe2ed;
    border-radius: 999px;
    background: linear-gradient(135deg, #f2f9fd, #e8f5fb);
    color: #146da7;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(18, 78, 116, .06);
}

.buzzen-blog-reader-labels > a i,
.buzzen-blog-reader-labels > span i {
    color: #1783c4;
}

.buzzen-blog-reader-labels > a:hover,
.buzzen-blog-reader-labels > a:focus-visible {
    border-color: #efb62f;
    background: linear-gradient(135deg, #fff9df, #fff2bd);
    color: #8d6400;
    text-decoration: none;
}

.buzzen-blog-reader-labels > a:hover i,
.buzzen-blog-reader-labels > a:focus-visible i {
    color: #d69a0e;
}

.buzzen-blog-reader-hero h1 {
    max-width: 820px;
    margin: 0 0 14px;
    color: #143f5c;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.buzzen-blog-reader-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #526f82;
    text-decoration: none;
}

.buzzen-blog-reader-author img {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #c4d9e5;
}

.buzzen-blog-reader-author span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.buzzen-blog-reader-author strong {
    color: #204c68;
    font-size: 13px;
}

.buzzen-blog-reader-author small {
    color: #728998;
    font-size: 11px;
}

.buzzen-blog-reader-hero-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #103754, #176b9c);
    color: #fff;
}

.buzzen-blog-reader-hero-side::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -55px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(255, 210, 74, .12);
}

.buzzen-blog-reader-hero-side > * {
    position: relative;
    z-index: 1;
}

.buzzen-blog-reader-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.buzzen-blog-reader-stats span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 61px;
    padding: 7px 4px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    text-align: center;
}

.buzzen-blog-reader-stats strong {
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
}

.buzzen-blog-reader-stats small {
    margin-top: 2px;
    color: #c7dfed;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.buzzen-blog-reader-hero-side .btn {
    border-radius: 9px;
    font-weight: 800;
}

.buzzen-blog-reading-card,
.buzzen-blog-comments-card {
    overflow: hidden;
    background: #fff;
    box-shadow: var(--blog-card-shadow);
}

.buzzen-blog-reader-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 11px 15px;
    border-bottom: 1px solid #e7eef2;
    background: #f9fcfe;
}

.buzzen-blog-reader-toolbar .btn {
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
}

.buzzen-blog-reader-toolbar form {
    margin: 0;
}

.buzzen-blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #42687f;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
}

.buzzen-blog-like-manager {
    margin: 12px 16px 0;
    padding: 8px 10px;
    border: 1px solid #dbe7ee;
    border-radius: 9px;
    background: #fbfdff;
    color: #49677a;
    font-size: 11px;
}

.buzzen-blog-like-manager summary {
    cursor: pointer;
    font-weight: 800;
}

.buzzen-blog-like-manager > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 8px;
}

.buzzen-blog-like-manager > div > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef6fa;
}

.buzzen-blog-reading-body {
    min-height: 180px;
    padding: 24px 27px 28px;
    color: #294b61;
    font-size: 14px;
    line-height: 1.72;
    overflow-wrap: anywhere;
}

.buzzen-blog-reading-body img,
.buzzen-blog-reading-body video,
.buzzen-blog-reading-body iframe {
    max-width: 100%;
}

.buzzen-blog-post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 12px;
    border-top: 1px solid #e7eef2;
}

.buzzen-blog-post-nav > div + div {
    border-left: 1px solid #e7eef2;
}

.buzzen-blog-post-nav a,
.buzzen-blog-post-nav > div > span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 12px 15px;
    color: #2d5974;
    text-decoration: none;
}

.buzzen-blog-post-nav .is-next a,
.buzzen-blog-post-nav .is-next > span {
    justify-content: flex-end;
    text-align: right;
}

.buzzen-blog-post-nav small {
    display: block;
    color: #8496a1;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.buzzen-blog-post-nav .is-disabled > span {
    color: #9eacb4;
    background: #fafcfd;
}

/* Comments */
.buzzen-blog-comments-card {
    margin-top: 14px;
}

.buzzen-blog-comments-body {
    padding: 0 16px;
}

.buzzen-blog-comment {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f5;
}

.buzzen-blog-comment:last-child {
    border-bottom: 0;
}

.buzzen-blog-comment.is-highlighted {
    margin: 6px -8px;
    padding: 14px 8px;
    border: 1px solid #efd276;
    border-radius: 10px;
    background: #fff9e8;
}

.buzzen-blog-comment-avatar img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #d4e2ea;
}

.buzzen-blog-comment-body {
    min-width: 0;
}

.buzzen-blog-comment-body > header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.buzzen-blog-comment-body > header > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-right: auto;
}

.buzzen-blog-comment-body > header a {
    color: #1d587b;
    text-decoration: none;
}

.buzzen-blog-comment-body > header span {
    color: #8597a2;
    font-size: 10px;
}

.buzzen-blog-comment-body p {
    margin: 0;
    color: #405f72;
    font-size: 12.5px;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.buzzen-blog-comment-entry {
    padding: 15px 17px 18px;
    border-top: 1px solid #e6edf2;
    background: #fbfdfe;
}

.buzzen-blog-comment-help {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    color: #748b99;
    font-size: 10.5px;
}

.buzzen-blog-comment-help strong {
    white-space: nowrap;
}

.buzzen-blog-pagination {
    padding: 14px 14px 16px;
    border-top: 1px solid #edf2f5;
}

/* Author/sidebar */
.buzzen-blog-author-card {
    text-align: center;
}

.buzzen-blog-author-card > a:first-child {
    display: inline-block;
    margin: 0 auto 10px;
}

.buzzen-blog-author-card > a:first-child img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #c7dbe7, 0 7px 16px rgba(35, 75, 102, .1);
}

.buzzen-blog-author-card p {
    margin: 0 0 12px;
    color: #718794;
    font-size: 11px;
}

.buzzen-blog-author-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.buzzen-blog-author-actions .btn {
    font-size: 10.5px;
    font-weight: 800;
}

.buzzen-blog-tool-list {
    display: grid;
    gap: 6px;
}

.buzzen-blog-tool-list a,
.buzzen-blog-tool-list button {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #d9e5ec;
    border-radius: 8px;
    background: #fbfdff;
    color: #365e77;
    font: inherit;
    font-size: 11.5px;
    font-weight: 750;
    text-align: left;
    text-decoration: none;
}

.buzzen-blog-tool-list button {
    color: #a94040;
}

.buzzen-blog-tool-list form {
    margin: 0;
}

/* Search page */
.buzzen-blog-search-inline {
    position: relative;
    min-width: 0;
}

.buzzen-blog-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

/* User-blog listing can reuse the modern card grid. */
.buzzen-blog-user-page .buzzen-blog-card-grid {
    padding: 15px;
}

/* Make keyboard focus as clear as mouse hover. */
.buzzen-blog-refresh a:focus-visible,
.buzzen-blog-refresh button:focus-visible,
.buzzen-blog-refresh input:focus-visible,
.buzzen-blog-refresh select:focus-visible,
.buzzen-blog-refresh textarea:focus-visible {
    outline: 3px solid rgba(22, 111, 174, .25);
    outline-offset: 2px;
}


/* Build 0135 — Blog directory/readability polish. */
.buzzen-blog-modern-body h3 {
    margin-bottom: 9px;
    font-size: 20px;
    line-height: 1.22;
    font-weight: 850;
    letter-spacing: -.01em;
}

.buzzen-blog-modern-body h3 a {
    display: block;
}

.buzzen-blog-popular-modern-list,
.buzzen-blog-comment-modern-list {
    display: grid;
    gap: 8px;
}

.buzzen-blog-popular-modern-list .buzzen-blog-popular-item,
.buzzen-blog-comment-modern-list .buzzen-blog-recent-comment {
    padding: 0;
    border: 0;
}

.buzzen-blog-popular-link {
    display: grid;
    grid-template-columns: 24px 38px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 9px;
    border: 1px solid #dbe8ef;
    border-radius: 10px;
    background: linear-gradient(135deg, #fbfdff, #f5fafe);
    box-shadow: 0 3px 10px rgba(32, 81, 112, .04);
    transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.buzzen-blog-popular-link:hover,
.buzzen-blog-popular-link:focus {
    border-color: #bcd9e9;
    background: #f1f9fd;
    color: #174f72;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(32, 81, 112, .08);
}

.buzzen-blog-popular-rank {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #e8f5fc;
    color: #1573ad;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
}

.buzzen-blog-popular-link > img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cadae4;
}

.buzzen-blog-popular-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.buzzen-blog-popular-copy > strong {
    display: -webkit-box;
    overflow: hidden;
    color: #214e69;
    font-size: 13.5px;
    line-height: 1.3;
    font-weight: 850;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.buzzen-blog-popular-copy > small {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #718894;
    font-size: 11.5px;
    line-height: 1.3;
    font-weight: 650;
}

.buzzen-blog-popular-copy > small span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.buzzen-blog-popular-arrow {
    color: #9ab0bd;
    font-size: 10px;
}

.buzzen-blog-comment-modern-list .buzzen-blog-recent-comment {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid #dbe8ef;
    border-radius: 10px;
    background: #fbfdff;
    box-shadow: 0 3px 10px rgba(32, 81, 112, .035);
}

.buzzen-blog-recent-comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.buzzen-blog-recent-comment-head > img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cadae4;
}

.buzzen-blog-recent-comment-head > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.buzzen-blog-comment-modern-list .buzzen-blog-comment-author {
    overflow: hidden;
    color: #176a9e !important;
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 850 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buzzen-blog-recent-comment-head time {
    color: #82949f;
    font-size: 10.5px;
    line-height: 1.25;
    font-weight: 650;
}

.buzzen-blog-comment-modern-list .buzzen-blog-comment-preview {
    display: -webkit-box;
    overflow: hidden;
    color: #496779 !important;
    font-size: 13px;
    line-height: 1.48;
    font-weight: 600 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.buzzen-blog-comment-context {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding-top: 6px;
    border-top: 1px solid #edf3f6;
    color: #2678a7 !important;
    font-size: 11.5px;
    line-height: 1.35;
    font-weight: 800 !important;
    overflow-wrap: anywhere;
}

.buzzen-blog-comment-context i {
    flex: 0 0 auto;
    color: #e0a91f;
    transform: rotate(90deg);
}

.buzzen-blog-comment-delete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #efc6c6;
    border-radius: 8px;
    background: #fff8f8;
    color: #b33e3e;
    font: inherit;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.buzzen-blog-comment-delete:hover,
.buzzen-blog-comment-delete:focus {
    border-color: #d98787;
    background: #ffeded;
    color: #972b2b;
    box-shadow: 0 4px 10px rgba(171, 54, 54, .08);
}

.buzzen-blog-tool-list .buzzen-blog-tool-danger {
    border-color: #edc7c7;
    background: #fff7f7;
    color: #ad3535;
}

.buzzen-blog-tool-list .buzzen-blog-tool-danger:hover,
.buzzen-blog-tool-list .buzzen-blog-tool-danger:focus {
    border-color: #db8f8f;
    background: #ffeded;
    color: #8f2828;
}

@media (max-width: 991.98px) {
    .buzzen-blog-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .buzzen-blog-refresh-layout,
    .buzzen-blog-reader-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .buzzen-blog-refresh-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .buzzen-blog-reader-hero {
        grid-template-columns: minmax(0, 1fr) 230px;
    }
}

@media (max-width: 767.98px) {
    .buzzen-blog-hub-hero,
    .buzzen-blog-reader-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .buzzen-blog-hub-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

    .buzzen-blog-reader-hero-side {
        padding: 17px 20px;
    }

    .buzzen-blog-card-grid,
    .buzzen-blog-search-grid,
    .buzzen-blog-refresh-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .buzzen-blog-filter-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .buzzen-blog-filter-actions .btn {
        flex: 1;
    }

    .buzzen-blog-reader-toolbar {
        align-items: stretch;
    }

    .buzzen-blog-back-link {
        width: 100%;
        margin-left: 0;
        padding-top: 3px;
    }
}

@media (max-width: 575.98px) {
    .buzzen-blog-hub-hero,
    .buzzen-blog-reader-hero-copy {
        padding: 22px 18px;
    }

    .buzzen-blog-hub-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .buzzen-blog-card-grid {
        padding: 10px;
    }

    .buzzen-blog-modern-card {
        min-height: 0;
    }

    .buzzen-blog-modern-card > footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .buzzen-blog-modern-stats {
        margin-right: 0;
    }

    .buzzen-blog-reader-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .buzzen-blog-reading-body {
        padding: 20px 16px 23px;
        font-size: 13.5px;
    }

    .buzzen-blog-post-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .buzzen-blog-post-nav > div + div {
        border-top: 1px solid #e7eef2;
        border-left: 0;
    }

    .buzzen-blog-comment {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .buzzen-blog-comment-avatar img {
        width: 34px;
        height: 34px;
    }

    .buzzen-blog-comment-help {
        flex-direction: column;
        gap: 2px;
    }

    .buzzen-blog-author-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

.buzzen-blog-homepage-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    margin-top: 10px;
    color: #39708f;
    font-size: 10.5px;
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* Build 0140: match the canonical /groups category-browser treatment. */
.buzzen-blog-directory-page .buzzen-blog-category-list {
    display: grid;
    gap: 6px;
    max-height: 420px;
    padding-right: 3px;
    overflow: auto;
    scrollbar-gutter: stable;
}

.buzzen-blog-directory-page .buzzen-blog-category-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 39px;
    padding: 8px 10px;
    border: 1px solid rgba(34, 103, 154, .1);
    border-radius: 9px;
    background: #f9fcfe;
    color: #315d7c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.buzzen-blog-directory-page .buzzen-blog-category-list a:hover,
.buzzen-blog-directory-page .buzzen-blog-category-list a:focus-visible,
.buzzen-blog-directory-page .buzzen-blog-category-list a.is-active {
    border-color: rgba(27, 121, 189, .25);
    background: #eaf5fc;
    color: #145f95;
}

.buzzen-blog-directory-page .buzzen-blog-category-list a.is-active {
    box-shadow: inset 3px 0 #f5ad24;
}

.buzzen-blog-directory-page .buzzen-blog-category-list strong {
    min-width: 28px;
    margin-left: auto;
    color: #6a8292;
    font-size: 12px;
    font-weight: 750;
    text-align: right;
}

@media (max-width: 991.98px) {
    .buzzen-blog-directory-page .buzzen-blog-category-card {
        grid-column: 1 / -1;
    }

    .buzzen-blog-directory-page .buzzen-blog-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .buzzen-blog-directory-page .buzzen-blog-category-card {
        grid-column: auto;
    }

    .buzzen-blog-directory-page .buzzen-blog-category-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
