/* Blog — list + article pages (3D tree layout) */

.page-blog {
    --bl-ink: #10231f;
    --bl-mist: #eef4f1;
    --bl-cream: #fdfbf7;
    --bl-forest: #145c4c;
    --bl-deep: #0c3d33;
    --bl-gold: #b8893a;
    --bl-gold-soft: #f3e4c4;
    --bl-shadow: 0 18px 40px rgba(16, 35, 31, 0.12);
    --bl-shadow-soft: 0 10px 28px rgba(16, 35, 31, 0.08);
    --bl-banner-ratio: 1727 / 911;
    overflow-x: clip;
}

.page-blog .site-footer {
    padding-bottom: 5.5rem;
}

.page-blog .breadcrumbs a,
.page-blog .site-breadcrumbs a {
    color: var(--bl-gold-soft);
}

.page-blog .breadcrumbs,
.page-blog .site-breadcrumbs {
    color: rgba(244, 247, 245, 0.75);
}

/* Hero */
.bl-hero,
.bl-article-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #f4f7f5;
}

.bl-hero {
    padding: 2.5rem 0 2.25rem;
}

.bl-hero-atmosphere,
.bl-article-hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(155deg, #0c3d33 0%, #145c4c 45%, #c9a45a 130%);
}

.bl-hero-atmosphere::after,
.bl-article-hero-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 28, 24, 0.15), rgba(8, 28, 24, 0.55));
}

.bl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.42;
    animation: hx-float 10s ease-in-out infinite;
}

.bl-orb--a {
    width: 220px;
    height: 220px;
    top: 10%;
    right: 8%;
    background: radial-gradient(circle at 30% 30%, #f3e4c4, transparent 65%);
}

.bl-orb--b {
    width: 140px;
    height: 140px;
    bottom: 14%;
    left: 10%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.35), transparent 70%);
    animation-delay: -3s;
}

.bl-floor {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -8%;
    height: 42%;
    background:
        linear-gradient(to top, rgba(8, 28, 24, 0.7), transparent),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 48px);
    transform: perspective(600px) rotateX(58deg);
    transform-origin: bottom;
    opacity: 0.45;
}

.bl-hero-inner,
.bl-article-hero-inner {
    max-width: 52rem;
}

.bl-eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(243, 228, 196, 0.88);
}

.bl-eyebrow--dark {
    color: var(--bl-forest);
}

.bl-hero h1,
.bl-article-hero h1 {
    margin: 0 0 0.85rem;
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.85rem, 3.4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.bl-lead,
.bl-article-deck {
    margin: 0 0 1.25rem;
    max-width: 42rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(244, 247, 245, 0.88);
}

.bl-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 0 1.35rem;
}

.bl-search input {
    flex: 1 1 16rem;
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font: inherit;
}

.bl-search input::placeholder {
    color: rgba(244, 247, 245, 0.62);
}

.bl-search input:focus {
    outline: 2px solid var(--bl-gold-soft);
    outline-offset: 2px;
}

.bl-btn-solid,
.bl-btn-ghost,
.bl-btn-ghost-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.bl-btn-compact {
    min-height: 2.45rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.82rem;
}

.bl-btn-solid {
    color: #fff8ea;
    background: linear-gradient(135deg, #7a5818, #b8893a 55%, #d4a84a);
    border: none;
    box-shadow: 0 10px 22px rgba(120, 78, 12, 0.28);
}

.bl-btn-ghost {
    color: #f4f7f5;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.bl-btn-ghost-dark {
    color: var(--bl-deep);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 35, 31, 0.1);
    box-shadow: var(--bl-shadow-soft);
}

.bl-btn-solid:hover,
.bl-btn-ghost:hover,
.bl-btn-ghost-dark:hover {
    transform: translateY(-2px);
}

.bl-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.bl-hero-stats div {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(8, 28, 24, 0.35);
    border: 1px solid rgba(243, 228, 196, 0.14);
    backdrop-filter: blur(6px);
}

.bl-hero-stats dt {
    margin: 0 0 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 247, 245, 0.68);
}

.bl-hero-stats dd {
    margin: 0;
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
}

/* Feed */
.bl-feed {
    position: relative;
    padding: 2.5rem 0 3.5rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(184, 137, 58, 0.08), transparent 42%),
        radial-gradient(circle at 88% 72%, rgba(20, 92, 76, 0.07), transparent 38%),
        linear-gradient(180deg, #f7faf8 0%, #eef4f1 100%);
}

.bl-feed-head {
    margin-bottom: 1.35rem;
}

.bl-results-note {
    margin: 0 0 1.25rem;
    color: var(--bl-ink);
}

/* Topic rail (tree root) */
.bl-topic-rail {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.35rem 0.15rem 1rem;
    margin: 0 0 1.35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.bl-topic-btn {
    flex: 0 0 auto;
    min-width: 9.5rem;
    padding: 0.75rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(16, 35, 31, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--bl-shadow-soft);
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bl-topic-btn span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(16, 35, 31, 0.48);
}

.bl-topic-btn strong {
    display: block;
    margin: 0.2rem 0;
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    font-size: 0.92rem;
    color: var(--bl-ink);
}

.bl-topic-btn small {
    display: block;
    font-size: 0.72rem;
    color: rgba(16, 35, 31, 0.58);
}

.bl-topic-btn:hover {
    transform: translateY(-2px);
}

.bl-topic-btn.is-active {
    border-color: rgba(20, 92, 76, 0.28);
    background: linear-gradient(145deg, #fff, #f3faf7);
    box-shadow: var(--bl-shadow);
}

.bl-topic-btn.is-active span {
    color: var(--bl-forest);
}

/* Featured card */
.bl-feature {
    position: relative;
    margin: 0 0 1.35rem;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #0c3d33, #145c4c 55%, #1a6b58);
    color: #f4f7f5;
    box-shadow: var(--bl-shadow);
    transform-style: preserve-3d;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bl-feature-glow {
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 70%;
    background: radial-gradient(circle, rgba(243, 228, 196, 0.28), transparent 68%);
    pointer-events: none;
}

.bl-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.bl-feature-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: var(--bl-banner-ratio);
    overflow: hidden;
    background: #f7faf8;
    align-self: start;
}

.bl-feature-media img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.bl-feature-copy {
    display: grid;
    align-content: center;
    align-self: stretch;
    gap: 0.75rem;
    padding: 1.35rem 1.5rem 1.5rem;
    min-height: 100%;
}

.bl-feature-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(243, 228, 196, 0.88);
}

.bl-feature-kicker span {
    display: inline-flex;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(243, 228, 196, 0.16);
}

.bl-feature-title {
    margin: 0;
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.2;
}

.bl-feature-title a {
    color: inherit;
    text-decoration: none;
}

.bl-feature-excerpt {
    margin: 0;
    line-height: 1.55;
    color: rgba(244, 247, 245, 0.86);
}

/* Cards grid */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.bl-grid > *,
.bl-feature-grid > * {
    min-width: 0;
}

.bl-grid--related {
    margin-top: 0.5rem;
}

.bl-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16, 35, 31, 0.08);
    box-shadow: var(--bl-shadow-soft);
    transform-style: preserve-3d;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bl-card:hover {
    box-shadow: var(--bl-shadow);
}

.bl-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: var(--bl-banner-ratio);
    overflow: hidden;
    background: #f7faf8;
    border-bottom: 1px solid rgba(16, 35, 31, 0.06);
}

.bl-card-media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.bl-card-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
}

.bl-card-body {
    display: grid;
    gap: 0.65rem;
    padding: 1.05rem 1.1rem 1.15rem;
}

.bl-card-meta,
.bl-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    align-items: center;
    font-size: 0.76rem;
    color: rgba(16, 35, 31, 0.62);
}

.bl-article-meta--hero {
    color: rgba(244, 247, 245, 0.78);
}

.bl-card-meta--light {
    color: rgba(244, 247, 245, 0.72);
}

.bl-tag {
    display: inline-flex;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f3d36;
    background: rgba(20, 92, 76, 0.14);
}

.bl-tag--light {
    color: #fff8ea;
    background: rgba(243, 228, 196, 0.16);
}

.bl-card-title {
    margin: 0;
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    font-size: 1.12rem;
    line-height: 1.25;
}

.bl-card-title a {
    color: var(--bl-ink);
    text-decoration: none;
}

.bl-card-title a:hover {
    color: var(--bl-forest);
}

.bl-card-excerpt {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(16, 35, 31, 0.72);
}

.bl-card-link {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bl-forest);
    text-decoration: none;
}

.bl-card-link:hover {
    color: var(--bl-gold);
}

/* CTA + dock */
.bl-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2rem;
    padding: 1.35rem 1.5rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 35, 31, 0.08);
    box-shadow: var(--bl-shadow);
}

.bl-cta-card h2 {
    margin: 0.35rem 0 0.55rem;
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    font-size: 1.35rem;
    color: var(--bl-deep);
}

.bl-cta-card p {
    margin: 0;
    line-height: 1.55;
    color: rgba(16, 35, 31, 0.72);
}

.bl-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.bl-dock {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 40;
    display: flex;
    gap: 0.45rem;
    padding: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 35, 31, 0.08);
    box-shadow: 0 16px 36px rgba(16, 35, 31, 0.16);
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
}

.bl-dock-btn {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--bl-deep);
    background: transparent;
}

.bl-dock-btn--primary {
    color: #fff8ea;
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Infinite scroll status */
.eh-infinite {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    min-height: 3rem;
}

.eh-infinite-status {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(16, 35, 31, 0.68);
}

.eh-infinite.is-loading .eh-infinite-status {
    color: var(--bl-forest, #145c4c);
}

.eh-infinite.is-done .eh-infinite-status {
    opacity: 0.72;
}

.bl-empty {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.bl-empty-actions,
.bl-article-footer {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
}

.bl-share,
.bl-article-footer-links,
.bl-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.bl-share-note {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(16, 35, 31, 0.62);
    text-align: center;
}

.bl-feed-note {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: rgba(16, 35, 31, 0.55);
}

/* Article page */
.bl-article-hero {
    padding: 2.25rem 0 1.75rem;
}

.bl-article-cover {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.bl-cover-frame {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--bl-shadow);
    transform-style: preserve-3d;
    background: #f7faf8;
    aspect-ratio: var(--bl-banner-ratio);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl-article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.bl-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
    padding-bottom: 2.5rem;
}

.bl-guide {
    position: sticky;
    top: 6.5rem;
}

.bl-guide-card {
    padding: 1rem 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 35, 31, 0.08);
    box-shadow: var(--bl-shadow-soft);
    transform-style: preserve-3d;
}

.bl-guide-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bl-forest);
}

.bl-guide-title {
    margin: 0 0 0.85rem;
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    font-size: 1.05rem;
    color: var(--bl-deep);
}

.bl-outline-tree {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.bl-outline-node--h3 {
    padding-left: 0.85rem;
}

.bl-outline-link {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: start;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(16, 35, 31, 0.78);
    transition: background 0.18s ease, color 0.18s ease;
}

.bl-outline-link:hover {
    background: rgba(20, 92, 76, 0.06);
    color: var(--bl-deep);
}

.bl-outline-link.is-active {
    background: rgba(20, 92, 76, 0.1);
    color: var(--bl-deep);
    box-shadow: inset 3px 0 0 var(--bl-gold);
}

.bl-outline-index {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(16, 35, 31, 0.42);
}

.bl-outline-text {
    font-size: 0.82rem;
    line-height: 1.35;
}

.bl-article-main {
    min-width: 0;
}

.bl-article-content {
    max-width: 46rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--bl-ink);
    overflow-wrap: anywhere;
}

.bl-article-content figure {
    margin: 0 0 1rem;
    max-width: 100%;
}

.bl-article-content figcaption {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    color: rgba(16, 35, 31, 0.62);
}

.bl-article-content h2,
.bl-article-content h3,
.bl-article-content h4 {
    scroll-margin-top: 6.5rem;
    margin: 1.75rem 0 0.75rem;
    font-family: 'Outfit', 'Poppins', system-ui, sans-serif;
    line-height: 1.25;
    color: var(--bl-deep);
}

.bl-article-content h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.bl-article-content h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.bl-article-content p,
.bl-article-content ul,
.bl-article-content ol,
.bl-article-content blockquote {
    margin: 0 0 1rem;
}

.bl-article-content a {
    color: var(--bl-forest);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

.bl-article-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--bl-shadow-soft);
}

.bl-article-content blockquote {
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--bl-gold);
    background: rgba(184, 137, 58, 0.08);
    border-radius: 0 12px 12px 0;
}

.bl-article-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(16, 35, 31, 0.08);
}

.bl-related {
    padding: 0 0 3.5rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(184, 137, 58, 0.07), transparent 40%),
        linear-gradient(180deg, transparent, rgba(238, 244, 241, 0.65));
}

.bl-related-head {
    margin-bottom: 0.25rem;
}

.bl-page {
    padding: 2.5rem 0 3rem;
}

/* Homepage embed */
.hb-blog--home {
    padding: 2.5rem 0;
    background:
        radial-gradient(circle at 8% 22%, rgba(20, 92, 76, 0.06), transparent 42%),
        linear-gradient(180deg, #f7faf8 0%, #eef4f1 100%);
}

.hb-blog-head {
    margin-bottom: 1.25rem;
}

.hb-blog-grid {
    margin-bottom: 1.35rem;
}

.hb-blog-card {
    min-width: 0;
}

.hb-blog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.page-home .hb-blog--home .bl-btn-solid,
.page-home .hb-blog--home .bl-btn-ghost-dark {
    min-height: 2.75rem;
}

@media (max-width: 980px) {
    .hb-blog-grid.bl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hb-blog--home {
        padding: 2rem 0;
    }

    .hb-blog-grid.bl-grid {
        grid-template-columns: 1fr;
    }

    .hb-blog-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hb-blog-actions .btn {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .bl-feature-grid {
        grid-template-columns: 1fr;
    }

    .bl-feature-media {
        align-self: stretch;
    }

    .bl-feature-copy {
        min-height: 0;
        padding: 1.15rem 1.2rem 1.35rem;
    }
}

@media (max-width: 980px) {
    .bl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bl-article-layout {
        grid-template-columns: 1fr;
    }

    .bl-guide {
        position: static;
    }

    .bl-cta-card {
        grid-template-columns: 1fr;
    }

    .bl-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .bl-feed {
        padding: 2rem 0 3rem;
    }

    .bl-feed .container,
    .bl-article-cover.container,
    .bl-article-layout.container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .bl-topic-rail {
        margin-inline: -0.25rem;
        padding-inline: 0.25rem 1rem;
    }

    .bl-topic-btn {
        min-width: 8.5rem;
    }

    .bl-feature-title {
        font-size: 1.2rem;
    }

    .bl-card-title {
        font-size: 1.02rem;
    }

    .bl-card-excerpt {
        font-size: 0.88rem;
    }
}

@media (max-width: 640px) {
    .bl-grid,
    .bl-grid--related {
        grid-template-columns: 1fr;
    }

    .bl-hero-stats {
        grid-template-columns: 1fr;
    }

    .bl-search {
        flex-direction: column;
        align-items: stretch;
    }

    .bl-search input,
    .bl-search .btn {
        width: 100%;
    }

    .bl-dock {
        left: max(0.75rem, env(safe-area-inset-left));
        right: max(0.75rem, env(safe-area-inset-right));
        transform: none;
        justify-content: space-between;
    }

    .bl-dock-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding-inline: 0.55rem;
        font-size: 0.72rem;
    }

    .bl-article-content {
        font-size: 0.98rem;
    }

    .bl-article-content h2 {
        font-size: 1.18rem;
    }

    .bl-article-content h3 {
        font-size: 1.02rem;
    }
}

@media (max-width: 420px) {
    .bl-topic-btn strong {
        font-size: 0.84rem;
    }

    .bl-hero h1,
    .bl-article-hero h1 {
        font-size: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bl-orb,
    .bl-card,
    .bl-feature,
    .bl-btn-solid,
    .bl-btn-ghost,
    .bl-btn-ghost-dark,
    .bl-topic-btn {
        animation: none !important;
        transition: none !important;
    }

    .bl-card:hover,
    .bl-feature:hover,
    .bl-btn-solid:hover,
    .bl-btn-ghost:hover,
    .bl-btn-ghost-dark:hover,
    .bl-topic-btn:hover {
        transform: none;
    }

    [data-bl-tilt] {
        transform: none !important;
    }
}
