/* Modern blog system — hero + catalog + article */

.blog-modern { background: #f6f7f9; }

.bm-hero {
    position: relative;
    overflow: clip;
    padding: clamp(2rem, 4vw, 3rem) 0 1.6rem;
    background:
        radial-gradient(720px 280px at 90% 0%, rgba(142, 213, 87, .22), transparent 60%),
        radial-gradient(560px 240px at 8% 30%, rgba(245, 180, 39, .12), transparent 55%),
        linear-gradient(180deg, #eef8ea 0%, #f6f7f9 75%);
}

.bm-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 1.4rem;
    align-items: stretch;
}

.bm-kicker {
    display: inline-flex;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dcefd0;
    color: #4f9a22;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: .85rem;
}

.bm-hero h1 {
    margin: 0 0 .7rem;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.55;
    color: #2b2f33;
}

.bm-hero h1 em {
    font-style: normal;
    color: #7fc945;
}

.bm-hero p {
    margin: 0 0 1.1rem;
    color: #6a6a6a;
    line-height: 1.9;
    max-width: 34rem;
}

.bm-hero-search {
    display: flex;
    max-width: 460px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e8ec;
    box-shadow: 0 12px 28px rgba(40, 50, 60, .06);
    margin-bottom: 1.1rem;
}

.bm-hero-search input {
    flex: 1;
    border: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    padding: .95rem 1rem !important;
}

.bm-hero-search button {
    border: 0;
    background: #8ed557;
    color: #fff;
    font-weight: 800;
    padding: 0 1.15rem;
    cursor: pointer;
}

.bm-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.bm-stats div {
    min-width: 88px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: .65rem .8rem;
}

.bm-stats b {
    display: block;
    font-size: 1.05rem;
    color: #2b2f33;
}

.bm-stats span {
    font-size: .75rem;
    color: #959595;
    font-weight: 700;
}

.bm-random {
    --rand-accent: #7fc945;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 22px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e4eadc;
    box-shadow:
        0 18px 40px rgba(40, 55, 40, .08),
        0 0 0 1px rgba(127, 201, 69, .06);
    transition: transform .28s ease, box-shadow .28s ease;
}
.bm-random:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(40, 55, 40, .14);
}
.bm-random.tone-a { --rand-accent: #7fc945; }
.bm-random.tone-b { --rand-accent: #5b4b8a; }
.bm-random.tone-c { --rand-accent: #0ea5e9; }
.bm-random.tone-d { --rand-accent: #f59e0b; }

.bm-random-kicker {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 2;
    padding: .28rem .62rem;
    border-radius: 999px;
    background: rgba(20, 32, 26, .78);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.bm-random-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--rand-accent) 40%, white), transparent 48%),
        linear-gradient(145deg, #1f2937, color-mix(in srgb, var(--rand-accent) 36%, #111827));
}
.bm-random-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.bm-random:hover .bm-random-media img { transform: scale(1.06); }
.bm-random-media > span:first-child {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 900;
}
.bm-random-cat {
    position: absolute;
    left: .85rem;
    bottom: .85rem;
    z-index: 1;
    padding: .22rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #1f2937;
    font-size: .7rem;
    font-weight: 800;
    max-width: calc(100% - 1.7rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-random-body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .95rem 1rem 1.05rem;
    flex: 1;
}
.bm-random-body strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.55;
    color: #1f2933;
}
.bm-random-body p {
    margin: 0;
    color: #6b7280;
    font-size: .84rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bm-random-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    margin-top: auto;
    padding-top: .15rem;
    color: #8b919a;
    font-size: .74rem;
    font-weight: 700;
}
.bm-random-meta em {
    margin-right: auto;
    font-style: normal;
    color: #4f9a22;
    font-weight: 800;
}

.bm-featured-stack {
    display: grid;
    gap: .7rem;
}

.bm-feat {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: .75rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 14px;
    padding: .55rem;
    box-shadow: 0 8px 20px rgba(60, 67, 84, .05);
}

.bm-feat.is-main {
    grid-template-columns: 1fr;
}

.bm-feat.is-main .media {
    aspect-ratio: 16 / 9;
    height: auto;
}

.bm-feat .media {
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.3rem;
}

.bm-feat .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bm-feat .body span {
    display: block;
    color: #7fc945;
    font-size: .75rem;
    font-weight: 800;
    margin-bottom: .2rem;
}

.bm-feat .body strong {
    display: block;
    color: #3c4354;
    font-size: .92rem;
    line-height: 1.55;
}

.bm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.bm-tags a {
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #f3f5f7;
    color: #5c646c;
    font-size: .78rem;
    font-weight: 700;
}

.bm-tags a:hover,
.bm-tags a.active {
    background: #eef8ea;
    color: #4f9a22;
}

.bm-news p {
    margin: 0 0 .7rem;
    color: #6a6a6a;
    font-size: .86rem;
    line-height: 1.8;
}

.bm-news form {
    display: grid;
    gap: .45rem;
}

.bm-news input {
    margin: 0 !important;
    border-radius: 10px;
}

.bm-news button {
    border: 0;
    border-radius: 10px;
    background: #8ed557;
    color: #fff;
    font-weight: 800;
    min-height: 42px;
    cursor: pointer;
}

.bp-excerpt {
    margin: 0 0 .55rem;
    color: #959595;
    font-size: .84rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-badge {
    background: #f5b427 !important;
    left: auto;
    right: 10px;
}

/* —— Blog listing cards (replaces missing .sg-card) —— */
.bm-body {
    padding-top: 1.2rem;
    padding-bottom: 2rem;
}

.bm-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .85rem 1rem;
    margin: 0 0 1.25rem;
}

.bm-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    color: #2b2f33;
}

.bm-sort {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.bm-sort a {
    padding: .42rem .8rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e7ecef;
    color: #5c646c;
    font-size: .82rem;
    font-weight: 700;
    transition: .15s ease;
}

.bm-sort a:hover {
    border-color: #d4ebc0;
    color: #2f6512;
}

.bm-sort a.active {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.bm-layout {
    align-items: start;
}

.bp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.bp-grid > .sc-empty {
    grid-column: 1 / -1;
}

.bp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(40, 50, 60, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bp-card:hover {
    transform: translateY(-3px);
    border-color: #d7ebc4;
    box-shadow: 0 14px 32px rgba(40, 50, 60, .1);
}

.bp-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    background: #eef3ef;
}

.bp-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.bp-card:hover .bp-card__media img {
    transform: scale(1.04);
}

.bp-card__letter {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
}

.bp-card__badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: #f5b427;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(245, 180, 39, .35);
}

.bp-card__body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1rem 1.05rem .35rem;
    flex: 1 1 auto;
    min-width: 0;
}

.bp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .7rem;
    font-size: .75rem;
    font-weight: 700;
    color: #8a9198;
}

.bp-card__meta span:first-child {
    color: #4f9a22;
}

.bp-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.55;
}

.bp-card__title a {
    color: #2b2f33;
}

.bp-card__title a:hover {
    color: #4f9a22;
}

.bp-card__excerpt {
    margin: 0;
    color: #7a828a;
    font-size: .86rem;
    line-height: 1.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .85rem;
    padding: .85rem 1.05rem 1.05rem;
    margin-top: auto;
    border-top: 1px solid #f1f3f5;
    color: #8a9198;
    font-size: .78rem;
    font-weight: 700;
}

.bp-card__foot span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.bp-card__foot a {
    margin-inline-start: auto;
    color: #4f9a22;
    font-weight: 800;
}

.bp-card__foot a:hover {
    color: #2f6512;
}

.bp-mini {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.bp-mini a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
}

.bp-mini .thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
}

.bp-mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bp-mini strong { display: block; font-size: .84rem; line-height: 1.5; color: #3c4354; margin-bottom: .15rem; }
.bp-mini a:hover strong { color: #7fc945; }
.bp-mini span { color: #959595; font-size: .74rem; }

.tone-a { background: linear-gradient(135deg, #2f80ed, #56ccf2); }
.tone-b { background: linear-gradient(135deg, #8ed557, #56c08a); }
.tone-c { background: linear-gradient(135deg, #f5b427, #f2994a); }
.tone-d { background: linear-gradient(135deg, #1f3a2e, #2f5d45); }

/* Compatibility for older related-card markup */
.blog-modern .sg-card,
.bg-related .sg-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 16px;
    overflow: hidden;
}

.blog-modern .sg-card-media,
.bg-related .sg-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
}

.blog-modern .sg-card-media img,
.bg-related .sg-card-media img,
.blog-modern .sg-card-media .ph,
.bg-related .sg-card-media .ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.blog-modern .sg-card-body,
.bg-related .sg-card-body {
    padding: .9rem 1rem 1rem;
}

.blog-modern .sg-card-title,
.bg-related .sg-card-title {
    margin: 0 0 .35rem;
    font-size: .98rem;
    line-height: 1.55;
}

.blog-modern .sg-card-meta,
.bg-related .sg-card-meta {
    color: #8a9198;
    font-size: .78rem;
    font-weight: 700;
}

/* Single article */
.bg-page {
    --brand: #8ed557;
    --brand-2: #7fc945;
    --ink: #3c4354;
    --mute: #959595;
    --line: #ededed;
    background: #f6f7f9;
    color: var(--ink);
    padding-bottom: 2.5rem;
}

.bg-page .container {
    width: min(1180px, 94%);
    margin-inline: auto;
}

.bm-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #8ed557, #f5b427);
    z-index: 300;
}

.bm-article-hero {
    padding: 1.5rem 0 1.8rem;
    color: #fff;
}

.bm-article-hero.tone-a { background: linear-gradient(135deg, #1f5fbf, #56ccf2); }
.bm-article-hero.tone-b { background: linear-gradient(135deg, #3f8f2a, #8ed557); }
.bm-article-hero.tone-c { background: linear-gradient(135deg, #c98512, #f5b427); }
.bm-article-hero.tone-d { background: linear-gradient(135deg, #163328, #2f5d45); }

.bm-article-hero .bg-breadcrumb,
.bm-article-hero .bg-breadcrumb a { color: rgba(255,255,255,.85); }
.bm-article-hero .bg-breadcrumb a:hover { color: #fff; }

.bm-article-top { max-width: 820px; }
.bm-chip {
    display: inline-flex;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: .8rem;
}

.bm-article-top h1 {
    margin: 0 0 .7rem;
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    line-height: 1.55;
}

.bm-article-top .lead {
    margin: 0 0 1rem;
    color: rgba(255,255,255,.88);
    line-height: 1.9;
    font-size: 1.02rem;
}

.bm-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .9rem;
    font-size: .84rem;
    font-weight: 600;
    color: rgba(255,255,255,.82);
}

.bg-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    font-size: .84rem;
    margin-bottom: 1rem;
}

.bg-article-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-areas: "side main";
    gap: 1.25rem;
    padding: 1.2rem 0 1rem;
}

.bg-article-layout > div:first-child { grid-area: main; min-width: 0; }
.bg-article-layout > .bg-side { grid-area: side; }

.bg-article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(60, 67, 84, .06);
}

.bg-article__cover { aspect-ratio: 21 / 9; }
.bg-article__cover img,
.bg-article__cover .ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bg-article__cover .ph {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
}

.bg-article__content { padding: 1.5rem 1.5rem 1.8rem; }

.bm-prose {
    line-height: 2.1;
    font-size: 1.05rem;
    color: #3c4354;
}

.bm-prose h2, .bm-prose h3 {
    margin: 1.4rem 0 .7rem;
    line-height: 1.6;
}

.bm-prose p { margin: 0 0 1rem; }
.bm-prose ul, .bm-prose ol { margin: 0 0 1rem; padding-inline-start: 1.3rem; }
.bm-prose a { color: #4f9a22; font-weight: 700; }
.bm-prose img { max-width: 100%; border-radius: 12px; }
.bm-prose pre, .bm-prose code {
    background: #f3f5f7;
    border-radius: 8px;
}
.bm-prose pre { padding: 1rem; overflow: auto; }

.bm-prose .vpf-callout {
    margin: 1rem 0 1.2rem;
    padding: .95rem 1.05rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: .98rem;
    line-height: 1.85;
}
.bm-prose .vpf-callout.is-tip {
    background: linear-gradient(135deg, #f0f8e6, #e8f4fc);
    border-color: #c5e0a8;
    color: #35522a;
}
.bm-prose .vpf-callout.is-warn {
    background: linear-gradient(135deg, #fff6e8, #fff1e4);
    border-color: #f0c98a;
    color: #6b4310;
}
.bm-prose .vpf-callout.is-ok {
    background: linear-gradient(135deg, #e9f7ef, #eef8e4);
    border-color: #9fd4b0;
    color: #1f5a38;
}
.bm-prose .vpf-checklist,
.bm-prose .pd-checklist {
    list-style: none;
    padding-inline-start: 0;
}
.bm-prose .vpf-checklist li,
.bm-prose .pd-checklist li {
    position: relative;
    padding: .35rem .75rem .35rem 0;
    padding-inline-start: 1.85rem;
}
.bm-prose .vpf-checklist li::before,
.bm-prose .pd-checklist li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .55rem;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 6px;
    border: 2px solid #7fc945;
    background: linear-gradient(180deg, #8fd84f, #62a832) content-box;
    box-shadow: 0 0 0 3px rgba(127, 201, 69, .12);
    background-clip: content-box;
    padding: .18rem;
}
.bm-prose .vpf-rich-hr {
    border: 0;
    height: 1px;
    margin: 1.4rem 0;
    background: linear-gradient(90deg, transparent, #c9d9b4, transparent);
}
.bm-prose .vpf-code {
    background: #1e241c;
    color: #e4f0d8;
    border-radius: 12px;
    direction: ltr;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.bm-prose .vpf-code code {
    background: none;
    color: inherit;
}
.bm-prose figure {
    margin: 1.15rem 0 1.35rem;
}
.bm-prose figcaption {
    margin-top: .45rem;
    text-align: center;
    color: #6b7280;
    font-size: .85rem;
    font-weight: 700;
}

.bm-actions {
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid #f0f2f4;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
    justify-content: space-between;
}

.bm-like {
    border: 0;
    border-radius: 999px;
    background: #fff1f2;
    color: #e11d48;
    font-weight: 800;
    padding: .65rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
}

.bm-like.is-on { background: #e11d48; color: #fff; }
.bm-like b {
    background: rgba(0,0,0,.08);
    border-radius: 999px;
    padding: .1rem .45rem;
    font-size: .78rem;
}

.bm-share { display: flex; flex-wrap: wrap; gap: .4rem; }
.bm-share a, .bm-share button {
    border: 1px solid #e5e8ec;
    background: #fff;
    border-radius: 999px;
    padding: .45rem .8rem;
    font-size: .8rem;
    font-weight: 700;
    color: #5c646c;
    cursor: pointer;
}

.bm-author {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: .85rem;
    padding: 1rem;
    border-radius: 14px;
    background: #f7f8fa;
}

.bm-author .av,
.bm-comment .av {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #8ed557;
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
}

.bm-author p {
    margin: .25rem 0 0;
    color: #6a6a6a;
    font-size: .88rem;
    line-height: 1.8;
}

/* Author profile card on article — pro studio */
.bm-author-pro {
    position: relative;
    overflow: hidden;
    margin-top: 1.75rem;
    border-radius: 26px;
    border: 1px solid #d7e6c8;
    background:
        radial-gradient(700px 260px at 100% -20%, rgba(143, 216, 79, .2), transparent 55%),
        linear-gradient(165deg, #fbfef8 0%, #f2f8ea 42%, #ffffff 100%);
    box-shadow:
        0 24px 50px rgba(20, 32, 26, .08),
        inset 0 1px 0 rgba(255, 255, 255, .8);
}
.bm-author-pro__stage {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) minmax(180px, .85fr);
    gap: 1.1rem 1.25rem;
    align-items: center;
    padding: 1.35rem 1.35rem 1.15rem;
    color: #f4fff0;
    background:
        radial-gradient(420px 220px at 90% 10%, rgba(143, 216, 79, .28), transparent 60%),
        linear-gradient(135deg, #0d1711, #173220 55%, #214a2e);
    overflow: hidden;
}
.bm-author-pro__orbit {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px dashed rgba(214, 242, 180, .25);
    right: -70px;
    top: -90px;
    animation: bm-orbit 18s linear infinite;
    pointer-events: none;
}
.bm-author-pro__orbit--2 {
    width: 140px;
    height: 140px;
    right: 40px;
    top: auto;
    bottom: -50px;
    animation-duration: 12s;
    animation-direction: reverse;
    border-style: solid;
    border-color: rgba(143, 216, 79, .16);
}
@keyframes bm-orbit {
    to { transform: rotate(360deg); }
}
.bm-author-pro__avatar {
    position: relative;
    z-index: 1;
    width: 112px;
    height: 112px;
    border-radius: 28px;
    overflow: hidden;
    display: block;
    border: 3px solid rgba(255, 255, 255, .85);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
    background: #234a31;
}
.bm-author-pro__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bm-author-pro__online {
    position: absolute;
    inset: auto 10px 10px auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8fd84f;
    border: 2px solid #12301c;
    box-shadow: 0 0 0 0 rgba(143, 216, 79, .55);
    animation: bm-author-pulse 2.2s ease-out infinite;
}
@keyframes bm-author-pulse {
    70% { box-shadow: 0 0 0 12px rgba(143, 216, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(143, 216, 79, 0); }
}
.bm-author-pro__identity {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.bm-author-pro__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .55rem;
}
.bm-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 850;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .1);
    color: #e8f7d4;
}
.bm-chip i { font-style: normal; }
.bm-chip.tone-role { background: rgba(143, 216, 79, .18); border-color: rgba(143, 216, 79, .35); }
.bm-chip.tone-gold { background: rgba(245, 180, 39, .2); border-color: rgba(245, 180, 39, .4); color: #ffe7a3; }
.bm-chip.tone-amber { background: rgba(251, 191, 36, .18); border-color: rgba(251, 191, 36, .35); color: #fde68a; }
.bm-chip.tone-green { background: rgba(143, 216, 79, .18); border-color: rgba(143, 216, 79, .35); color: #d6f2b4; }
.bm-author-pro__identity h3 {
    margin: 0 0 .45rem;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 900;
    line-height: 1.3;
}
.bm-author-pro__identity h3 a {
    color: #f4fff0;
    text-decoration: none;
}
.bm-author-pro__identity h3 a:hover { color: #c8e8a0; }
.bm-author-pro__identity p {
    margin: 0;
    color: rgba(230, 245, 214, .86);
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.85;
    max-width: 38rem;
}
.bm-author-pro__tenure {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: .7rem;
    align-items: center;
    padding: .85rem .9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
}
.bm-author-pro__tenure-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #9a5b00;
    background: linear-gradient(160deg, #fff8e8, #ffefd0);
    border: 1px solid rgba(240, 217, 160, .7);
}
.bm-author-pro__tenure strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
}
.bm-author-pro__tenure span {
    display: block;
    margin-top: .12rem;
    font-size: .74rem;
    font-weight: 800;
    color: rgba(230, 245, 214, .78);
}
.bm-author-pro__tenure em {
    display: block;
    margin-top: .2rem;
    font-style: normal;
    font-size: .72rem;
    font-weight: 700;
    color: rgba(214, 242, 180, .72);
}
.bm-author-pro__tenure--gold .bm-author-pro__tenure-ico {
    background: linear-gradient(160deg, #fff4cc, #f5c542);
}
.bm-author-pro__tenure--amber .bm-author-pro__tenure-ico {
    background: linear-gradient(160deg, #fff8eb, #fbbf24);
}
.bm-author-pro__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    padding: 1rem 1.25rem 0;
}
.bm-author-stat {
    display: grid;
    gap: .2rem;
    justify-items: start;
    padding: .85rem .9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #e4efd8;
    box-shadow: 0 10px 22px rgba(20, 32, 26, .04);
}
.bm-author-stat .ico {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #eef8e0;
    color: #4d7c2e;
    margin-bottom: .15rem;
}
.bm-author-stat strong {
    font-size: 1.15rem;
    font-weight: 900;
    color: #14201a;
    font-variant-numeric: tabular-nums;
}
.bm-author-stat > span:last-child {
    font-size: .74rem;
    font-weight: 800;
    color: #718379;
}
.bm-author-pro__medals {
    padding: 1.05rem 1.25rem 0;
}
.bm-author-pro__medals-head {
    margin-bottom: .75rem;
}
.bm-author-pro__medals-head strong {
    display: block;
    font-size: .98rem;
    font-weight: 900;
    color: #14201a;
}
.bm-author-pro__medals-head span {
    display: block;
    margin-top: .15rem;
    font-size: .78rem;
    font-weight: 750;
    color: #6f8a58;
}
.bm-author-pro__medals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .6rem;
}
.bm-medal-tile {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .7rem .75rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5eedc;
    box-shadow: 0 10px 22px rgba(20, 32, 26, .04);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.bm-medal-tile:hover {
    transform: translateY(-2px);
    border-color: #cfe8b0;
    box-shadow: 0 14px 28px rgba(20, 32, 26, .08);
}
.bm-medal-tile__badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #9a5b00;
    background: linear-gradient(160deg, #fff8e8, #ffefd0);
    border: 1px solid #f0d9a0;
}
.bm-medal-tile__badge.is-emoji {
    font-size: 1.35rem;
    color: inherit;
}
.bm-medal-tile b {
    display: block;
    font-size: .88rem;
    font-weight: 900;
    color: #14201a;
}
.bm-medal-tile em {
    display: block;
    margin-top: .18rem;
    font-style: normal;
    font-size: .74rem;
    font-weight: 700;
    color: #7a8b80;
    line-height: 1.55;
}
.bm-medal-tile.is-tenure.tone-gold .bm-medal-tile__badge {
    background: linear-gradient(160deg, #fff4cc, #f5c542);
    border-color: #e8c24a;
}
.bm-medal-tile.is-tenure.tone-amber .bm-medal-tile__badge {
    background: linear-gradient(160deg, #fff8eb, #fbbf24);
}
.bm-medal-tile.is-tenure.tone-green .bm-medal-tile__badge {
    background: linear-gradient(160deg, #f3faeb, #b7e98a);
    border-color: #9fd86a;
}
.bm-author-pro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1.05rem 1.25rem 1.25rem;
}
.bm-author-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .6rem 1.1rem;
    border-radius: 13px;
    font: inherit;
    font-size: .88rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}
.bm-author-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.bm-author-btn.primary {
    background: linear-gradient(180deg, #8fd84f, #62a832);
    color: #fff;
    box-shadow: 0 12px 24px rgba(98, 168, 50, .25);
}
.bm-author-btn.soft {
    background: #eef8e0;
    color: #35522a;
    border: 1px solid #d0e8b0;
}
.bm-author-btn.ghost {
    background: #fff;
    color: #4b5563;
    border: 1px solid #e5ebe3;
}

@media (max-width: 980px) {
    .bm-author-pro__stage {
        grid-template-columns: 96px minmax(0, 1fr);
    }
    .bm-author-pro__tenure { grid-column: 1 / -1; }
    .bm-author-pro__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .bm-author-pro__stage {
        grid-template-columns: 1fr;
        padding: 1.15rem;
    }
    .bm-author-pro__avatar {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }
    .bm-author-pro__stats {
        grid-template-columns: 1fr;
        padding-inline: 1rem;
    }
    .bm-author-pro__medals,
    .bm-author-pro__actions {
        padding-inline: 1rem;
    }
    .bm-author-pro__actions .bm-author-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .bm-author-pro__orbit,
    .bm-author-pro__online { animation: none !important; }
}

.bm-comments {
    margin-top: 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.25rem;
}

.bm-comments h3 { margin: 0 0 1rem; }
.bm-alert {
    background: #eef8ea;
    color: #3f7a18;
    border-radius: 10px;
    padding: .7rem .9rem;
    margin-bottom: .8rem;
    font-weight: 700;
}
.bm-alert.err { background: #fff1f2; color: #e11d48; }

.bm-comment-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin-bottom: .55rem;
}

.bm-comment-form input,
.bm-comment-form textarea {
    margin: 0 !important;
    width: 100%;
}

.bm-comment-form button {
    margin-top: .55rem;
    border: 0;
    background: #8ed557;
    color: #fff;
    font-weight: 800;
    border-radius: 10px;
    min-height: 44px;
    padding: 0 1.2rem;
    cursor: pointer;
}

.bm-comment-list { margin-top: 1.2rem; display: grid; gap: .85rem; }
.bm-comment {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: .75rem;
    padding-top: .85rem;
    border-top: 1px solid #f1f3f5;
}
.bm-comment .av { width: 48px; height: 48px; font-size: 1rem; }
.bm-comment strong { display: block; }
.bm-comment span { color: #959595; font-size: .75rem; }
.bm-comment p { margin: .35rem 0 0; line-height: 1.85; color: #3c4354; }

.bg-related { margin-top: 1.25rem; }
.bg-related h3 { margin: 0 0 1rem; font-size: 1.1rem; }

.bg-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 90px;
}

.bg-widget {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem 1rem;
}

.bg-widget h3 {
    margin: 0 0 .9rem;
    font-size: .98rem;
    font-weight: 800;
}

.bg-popular { display: flex; flex-direction: column; gap: .75rem; }
.bg-popular a {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: .7rem;
    align-items: center;
}
.bg-popular .thumb {
    width: 54px; height: 54px; border-radius: 12px; overflow: hidden;
    display: grid; place-items: center; color: #fff; font-weight: 800;
}
.bg-popular .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bg-popular strong { display: block; font-size: .86rem; line-height: 1.55; color: var(--ink); margin-bottom: .2rem; }
.bg-popular a:hover strong { color: var(--brand-2); }
.bg-popular span { color: var(--mute); font-size: .75rem; }

.bg-cta {
    background: linear-gradient(145deg, #122019, #1d3126);
    color: #fff;
    border: 0;
}
.bg-cta h3 { color: #fff; }
.bg-cta p { margin: 0 0 1rem; color: rgba(255,255,255,.75); font-size: .88rem; line-height: 1.8; }
.bg-cta a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; padding: .75rem 1rem; border-radius: 10px;
    background: var(--brand); color: #fff; font-weight: 800;
}

@media (max-width: 980px) {
    .bm-hero-grid { grid-template-columns: 1fr; }
    .bp-grid { grid-template-columns: 1fr; }
    .bg-article-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "main" "side";
    }
    .bg-side { position: static; }
}

@media (max-width: 640px) {
    .bm-hero { padding: 1.4rem 0 1.1rem; }
    .bm-hero-search { max-width: none; }
    .bm-stats div { min-width: calc(50% - .35rem); flex: 1 1 calc(50% - .35rem); }
    .bm-head { align-items: flex-start; }
    .bm-sort { width: 100%; }
    .bm-sort a { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 640px) {
    .bm-comment-form .row { grid-template-columns: 1fr; }
}
