/* ============================================================
   ULC BLOG — editorial layout
============================================================ */
.blog-page {
    background: #041f17;
}

.blog-page #navbar.scrolled {
    background: rgba(4, 31, 23, .9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.blog-main {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-hero {
    min-height: 700px;
    padding: 175px 0 100px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        radial-gradient(circle at 50% 25%, rgba(47, 214, 111, .2), transparent 32%),
        linear-gradient(180deg, #073b28 0%, #041f17 100%);
    background-size: 56px 56px, 56px 56px, auto, auto;
    isolation: isolate;
}

.blog-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: min(880px, 80vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(47, 214, 111, .5), transparent);
}

.blog-orb {
    position: absolute;
    border: 1px solid rgba(47, 214, 111, .16);
    border-radius: 50%;
    z-index: -1;
}

.blog-orb::before,
.blog-orb::after {
    content: '';
    position: absolute;
    inset: 12%;
    border: inherit;
    border-radius: inherit;
}

.blog-orb::after {
    inset: 30%;
}

.blog-orb-one {
    width: 420px;
    height: 420px;
    top: 80px;
    left: -235px;
}

.blog-orb-two {
    width: 360px;
    height: 360px;
    right: -190px;
    bottom: -80px;
}

.blog-hero-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1.4rem;
    color: var(--green-mint);
    font-family: var(--font-display);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.blog-eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(47, 214, 111, .12);
}

.blog-title {
    max-width: 920px;
    margin: 0 auto 1.35rem;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 6.2rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.055em;
}

.blog-title span {
    color: var(--amber);
}

.blog-lead {
    max-width: 700px;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-search {
    width: min(680px, 100%);
    min-height: 62px;
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 24px 65px rgba(0, 0, 0, .25);
    backdrop-filter: blur(18px);
    transition: border-color var(--transition), background var(--transition);
}

.blog-search:focus-within {
    border-color: rgba(47, 214, 111, .65);
    background: rgba(255, 255, 255, .1);
}

.blog-search svg {
    width: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.blog-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--white);
    font: inherit;
}

.blog-search input::placeholder {
    color: rgba(232, 245, 235, .5);
}

.blog-search button {
    align-self: stretch;
    padding: 0 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--amber);
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
}

.blog-search button:hover {
    background: var(--green-neon);
    transform: translateX(-2px);
}

.blog-quick-stats {
    margin-top: 1.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .8rem;
    color: rgba(232, 245, 235, .58);
    font-size: .83rem;
}

.blog-quick-stats strong {
    color: var(--white);
    font-weight: 600;
}

.blog-quick-stats i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--amber);
}

.topic-bar {
    position: relative;
    z-index: 3;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(4, 31, 23, .94);
}

.topic-bar-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topic-label {
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, .12);
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.topic-list {
    display: flex;
    align-items: center;
    gap: .65rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.topic-list::-webkit-scrollbar {
    display: none;
}

.topic-chip {
    flex: 0 0 auto;
    padding: .55rem 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: .84rem;
    cursor: pointer;
    transition: var(--transition);
}

.topic-chip:hover,
.topic-chip.active {
    border-color: rgba(47, 214, 111, .55);
    background: var(--amber-glow);
    color: var(--amber);
}

.blog-section {
    padding: 100px 0;
    background: #05251b;
}

.latest-section {
    background:
        radial-gradient(circle at 90% 5%, rgba(47, 214, 111, .08), transparent 26%),
        #041f17;
}

.section-head {
    margin-bottom: 2.2rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.blog-section .section-label,
.community-panel .section-label {
    margin-bottom: .75rem;
    color: var(--green-mint);
}

.blog-section .section-title {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.15rem);
    letter-spacing: -.035em;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    color: var(--text-light);
    font-size: .9rem;
    font-weight: 600;
    transition: var(--transition);
}

.section-link:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.result-count {
    color: var(--text-muted);
    font-size: .9rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 1.4rem;
}

.feature-card,
.post-card,
.blog-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .035);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .16);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.feature-card:hover,
.post-card:hover,
.blog-card:hover {
    border-color: rgba(47, 214, 111, .32);
    background: rgba(255, 255, 255, .052);
    transform: translateY(-5px);
}

.feature-media,
.blog-card-media,
.post-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
}

.feature-media {
    aspect-ratio: 16 / 9;
}

.feature-media::after,
.blog-card-media::after,
.post-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 21, 14, .5));
    pointer-events: none;
}

.feature-media img,
.blog-card-media img,
.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s ease;
}

.feature-card:hover img,
.post-card:hover img,
.blog-card:hover img {
    transform: scale(1.045);
}

.feature-media .tag,
.blog-card-media .tag {
    position: absolute;
    z-index: 2;
    left: 1.2rem;
    top: 1.2rem;
}

.tag {
    backdrop-filter: blur(10px);
}

.tag-amber {
    border-color: rgba(47, 214, 111, .3);
}

.feature-body {
    padding: 1.65rem 1.7rem 1.8rem;
}

.post-meta {
    color: rgba(184, 207, 192, .72);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.feature-body h3,
.post-card h3,
.blog-card h3 {
    margin: .7rem 0 .65rem;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.feature-body h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.feature-body h3 a,
.post-card h3 a,
.blog-card h3 a {
    transition: color var(--transition);
}

.feature-body h3 a:hover,
.post-card h3 a:hover,
.blog-card h3 a:hover {
    color: var(--amber);
}

.feature-body p,
.post-card p,
.blog-card p {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.72;
}

.feature-footer,
.blog-card-footer {
    margin-top: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.read-time {
    color: rgba(184, 207, 192, .58);
    font-size: .78rem;
}

.story-link {
    color: var(--amber);
    font-size: .86rem;
    font-weight: 700;
}

.stacked-posts {
    display: grid;
    gap: 1.4rem;
}

.post-card {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    min-height: 190px;
}

.post-card-media {
    min-height: 100%;
}

.post-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.post-card h3 {
    font-size: 1.05rem;
}

.post-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.post-card .story-link {
    margin-top: auto;
    padding-top: .75rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card-media {
    aspect-ratio: 16 / 10;
}

.blog-card-body {
    padding: 1.35rem 1.4rem 1.5rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.blog-card h3 {
    font-size: 1.18rem;
}

.blog-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.blog-loading,
.blog-empty {
    grid-column: 1 / -1;
    padding: 2.5rem;
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    text-align: center;
}

.blog-community {
    padding: 90px 0 110px;
    background: #041f17;
}

.community-panel {
    position: relative;
    min-height: 420px;
    padding: clamp(2rem, 6vw, 4.5rem);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    align-items: center;
    gap: 3rem;
    border: 1px solid rgba(47, 214, 111, .22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 20%, rgba(100, 255, 146, .2), transparent 28%),
        linear-gradient(135deg, #0b5a39, #073522 65%, #052a1e);
    box-shadow: 0 35px 90px rgba(0, 0, 0, .22);
}

.community-panel::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    right: -100px;
    bottom: -210px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255, 255, 255, .025), 0 0 0 110px rgba(255, 255, 255, .02);
}

.community-copy {
    position: relative;
    z-index: 1;
}

.community-copy h2 {
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.community-copy p {
    max-width: 590px;
    margin-bottom: 1.6rem;
    color: var(--text-muted);
}

.community-mark {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: min(360px, 100%);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    text-align: center;
    transform: rotate(-7deg);
}

.community-mark span {
    color: var(--green-mint);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .28em;
}

.community-mark strong {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.45rem);
    line-height: 1;
}

.community-mark i {
    margin-top: .75rem;
    color: var(--text-muted);
    font-size: .7rem;
    font-style: normal;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ============================================================
   NOTION BLOG ARTICLE
============================================================ */
.blog-post-page {
    min-height: 100vh;
    padding-bottom: 80px;
}

.blog-post-hero {
    padding: 140px 0 48px;
}

.blog-post-hero .blog-title {
    max-width: 980px;
    margin: .8rem 0 1rem;
    text-align: left;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.blog-post-cover {
    margin: 2rem 0 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .04);
}

.blog-post-cover:empty {
    display: none;
}

.blog-post-cover img {
    display: block;
    width: 100%;
    max-height: 540px;
    object-fit: cover;
}

.blog-post-content {
    max-width: 860px;
    color: rgba(255, 255, 255, .88);
    font-size: 1.05rem;
    line-height: 1.9;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin: 2.2rem 0 1rem;
    font-family: var(--font-display);
    line-height: 1.2;
}

.blog-post-content p,
.blog-post-content ul,
.blog-post-content ol,
.blog-post-content blockquote,
.blog-post-content figure,
.blog-post-content pre {
    margin: 0 0 1.2rem;
}

.blog-post-content ul,
.blog-post-content ol {
    padding-left: 1.3rem;
}

.blog-post-content blockquote {
    padding-left: 1rem;
    border-left: 3px solid var(--amber);
    color: var(--text-muted);
}

.blog-post-content img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.blog-post-content figcaption {
    margin-top: .5rem;
    color: var(--text-muted);
    font-size: .9rem;
    text-align: center;
}

@media (max-width: 1050px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .stacked-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .community-panel {
        grid-template-columns: 1fr .7fr;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: 640px;
        padding: 140px 0 80px;
    }

    .blog-title {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }

    .blog-search {
        min-height: 56px;
    }

    .blog-search button {
        padding: 0 1rem;
        font-size: .82rem;
    }

    .blog-quick-stats i,
    .blog-quick-stats span:last-child {
        display: none;
    }

    .topic-bar-inner {
        min-height: 72px;
        gap: 1rem;
    }

    .topic-label {
        padding-right: 1rem;
    }

    .blog-section {
        padding: 74px 0;
    }

    .section-head {
        align-items: flex-start;
    }

    .stacked-posts,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .community-panel {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .community-mark {
        display: none;
    }
}

@media (max-width: 520px) {
    .blog-hero {
        min-height: 610px;
    }

    .blog-title br {
        display: none;
    }

    .blog-lead {
        font-size: .95rem;
    }

    .blog-search {
        padding-left: 16px;
    }

    .blog-search button {
        width: 48px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        position: relative;
    }

    .blog-search button::after {
        content: '→';
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: var(--navy);
        font-size: 1.1rem;
    }

    .topic-label {
        display: none;
    }

    .section-head {
        margin-bottom: 1.6rem;
        flex-direction: column;
        gap: .8rem;
    }

    .post-card {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 166px;
    }

    .post-card-body {
        padding: 1rem;
    }

    .post-card p,
    .post-card .story-link {
        display: none;
    }

    .community-panel {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .post-card,
    .blog-card,
    .feature-media img,
    .blog-card-media img,
    .post-card-media img {
        transition: none;
    }
}
/* Related posts */
.related-posts {
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.related-posts-heading {
    margin-bottom: 24px;
}

.related-posts-heading .section-kicker {
    margin: 0 0 .4rem;
    color: var(--amber);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.related-posts-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.related-post-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .035);
}

.related-post-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.related-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.related-post-card:hover .related-post-media img {
    transform: scale(1.04);
}

.related-posts-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 20px;
    background: rgba(255, 193, 7, .1);
    color: var(--amber);
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
}

.related-post-body {
    padding: 20px;
}

.related-post-body h3 {
    margin: .65rem 0 .75rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.35;
}

.related-post-body h3 a {
    color: inherit;
    text-decoration: none;
}

.related-post-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-posts-status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text-muted);
}

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

@media (max-width: 768px) {
    .related-posts {
        margin-top: 56px;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}
