.menu a.active {
    color: var(--text);
    border-bottom-color: var(--red);
}

.blog-hero {
    padding: 150px 0 70px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.blog-hero .tag {
    margin-bottom: 18px;
}

.blog-hero h1 {
    font-size: clamp(40px, 7vw, 88px);
    margin-bottom: 24px;
}

.blog-hero .desc {
    max-width: 560px;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 8px;
}

.blog-hero .btn {
    margin-top: 22px;
}

.blog-list {
    padding: 70px 0 100px;
    background: var(--bg-alt);
}

.list-eyebrow {
    margin-top: 64px;
    margin-bottom: 24px;
}

.blog-list .container>.list-eyebrow:first-child {
    margin-top: 0;
}

.blog-empty {
    text-align: center;
    padding: 60px 0;
}

.blog-empty h2 {
    font-size: clamp(34px, 5vw, 56px);
    margin-bottom: 14px;
}

.blog-empty p {
    color: var(--muted);
}

.cover {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 100% 0%, rgba(229, 33, 58, .5), transparent 70%),
        radial-gradient(60% 70% at 0% 100%, rgba(18, 177, 58, .42), transparent 70%),
        #0c0d10;
    border-bottom: 1px solid var(--line);
}

.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 32px 32px;
}

.cover::after {
    content: "";
    position: absolute;
    z-index: -1;
    opacity: .5;
    right: -3%;
    bottom: -6%;
    width: 38%;
    height: 85%;
    background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20420%20520%27%3E%3Cg%20fill=%27none%27%20stroke=%27%232be063%27%20stroke-width=%2746%27%3E%3Cpath%20d=%27M40%20300%20L210%20130%20L380%20300%27/%3E%3Cpath%20d=%27M40%20470%20L210%20300%20L380%20470%27%20opacity=%27.5%27/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom / contain;
}

.cover-2 {
    background:
        radial-gradient(60% 70% at 0% 0%, rgba(10, 160, 216, .45), transparent 70%),
        radial-gradient(60% 70% at 100% 100%, rgba(229, 33, 58, .45), transparent 70%),
        #0c0d10;
}

.cover-2::after {
    right: auto;
    left: -3%;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20420%20520%27%3E%3Cg%20fill=%27none%27%20stroke=%27%23ff3b55%27%20stroke-width=%2746%27%3E%3Cpath%20d=%27M40%20300%20L210%20130%20L380%20300%27/%3E%3Cpath%20d=%27M40%20470%20L210%20300%20L380%20470%27%20opacity=%27.5%27/%3E%3C/g%3E%3C/svg%3E");
    background-position: left bottom;
}

.cover-3 {
    background:
        radial-gradient(60% 70% at 100% 100%, rgba(18, 177, 58, .5), transparent 70%),
        radial-gradient(60% 70% at 0% 0%, rgba(229, 33, 58, .4), transparent 70%),
        #0c0d10;
}

.cover-3::after {
    right: 18%;
    width: 30%;
}

.cover-4 {
    background:
        radial-gradient(60% 70% at 100% 0%, rgba(10, 160, 216, .45), transparent 70%),
        radial-gradient(60% 70% at 0% 100%, rgba(18, 177, 58, .45), transparent 70%),
        #0c0d10;
}

.cover-4::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%20420%20520%27%3E%3Cg%20fill=%27none%27%20stroke=%27%23ff3b55%27%20stroke-width=%2746%27%3E%3Cpath%20d=%27M40%20300%20L210%20130%20L380%20300%27/%3E%3Cpath%20d=%27M40%20470%20L210%20300%20L380%20470%27%20opacity=%27.5%27/%3E%3C/g%3E%3C/svg%3E");
}

.cover-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #2be063;
}

.cover-title {
    position: absolute;
    top: 54px;
    left: 16px;
    right: 22%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-family: 'Anton', sans-serif;
    font-size: 30px;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
}

.cover-sub {
    position: absolute;
    left: 16px;
    right: 22%;
    bottom: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    color: #2be063;
    font-weight: 500;
}

.cover-num {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: 'Anton', sans-serif;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .55);
}

.featured {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--card);
    border: 1px solid var(--line);
}

.featured .cover {
    min-height: 380px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
}

.featured .cover-title {
    top: 72px;
    font-size: 54px;
    right: 18%;
}

.featured .cover-sub {
    font-size: 19px;
    bottom: 28px;
}

.featured .cover-num {
    font-size: 30px;
}

.featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
}

.featured-body h2 {
    font-size: clamp(30px, 3.6vw, 46px);
    margin: 18px 0 16px;
}

.featured-body p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 520px;
}

.featured:hover h2,
.post-card:hover h3 {
    color: var(--red);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.post-meta .badge {
    padding: 4px 10px;
    background: var(--red);
    color: #fff;
    letter-spacing: 1.6px;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
}

.featured .read-link {
    margin-top: 0;
    align-self: flex-start;
}

.read-link svg {
    width: 15px;
    height: 15px;
    color: var(--red);
    transition: transform .2s ease;
}

.featured:hover .read-link svg,
.post-card:hover .read-link svg {
    transform: translateX(5px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
}

.post-card .cover {
    aspect-ratio: 16 / 10;
}

.post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 26px 28px;
}

.post-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    line-height: 1.3;
    margin: 14px 0 10px;
    transition: color .2s ease;
}

.post-card p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 22px;
}

.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 48px;
}

.pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--line);
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.pager a:hover {
    border-color: var(--red);
    color: var(--red);
}

.pager a.current {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.pager svg {
    width: 16px;
    height: 16px;
}

.post-head {
    padding: 130px 0 60px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    font-family: 'Syne', sans-serif;
    font-size: 10.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted);
}

.crumbs a:hover {
    color: var(--red);
}

.crumbs svg {
    width: 13px;
    height: 13px;
}

.crumbs span {
    color: var(--text);
}

.post-head h1 {
    font-size: clamp(34px, 5.6vw, 68px);
    max-width: 980px;
    margin-bottom: 22px;
}

.post-lead {
    max-width: 700px;
    font-size: clamp(16px, 2vw, 19px);
    color: var(--muted);
    margin-bottom: 30px;
}

.post-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted);
}

.post-byline span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-byline svg {
    width: 15px;
    height: 15px;
    color: var(--red);
}

.post-wrap {
    padding: 70px 0 90px;
}

.post-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 70px;
    align-items: start;
}

.post-body {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.85;
}

.post-body>p:first-child {
    font-size: 19px;
    color: var(--text);
}

.post-body h2 {
    font-family: 'Anton', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.3px;
    text-transform: uppercase;
    margin: 48px 0 16px;
    scroll-margin-top: 96px;
}

.post-body p {
    margin-bottom: 20px;
    color: #343b43;
}

.post-body strong {
    color: var(--text);
}

.post-body ul,
.post-body ol {
    margin: 0 0 24px;
    padding-left: 22px;
}

.post-body ul {
    list-style: disc;
}

.post-body ol {
    list-style: decimal;
}

.post-body li {
    margin-bottom: 10px;
    color: #343b43;
    padding-left: 4px;
}

.post-body li::marker {
    color: var(--red);
}

.post-body a {
    color: var(--red);
    text-decoration: underline;
}

.callout {
    margin: 34px 0;
    padding: 22px 26px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

.post-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.post-end span {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.post-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 20px;
}

.toc {
    padding: 26px 24px 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.toc h4,
.side-cta-label {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.toc a {
    display: block;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
}

.toc a:hover {
    color: var(--red);
}

.side-cta {
    padding: 28px 24px;
    background: var(--text);
    color: #fff;
}

.side-cta h4 {
    font-family: 'Anton', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.side-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
    margin-bottom: 22px;
}

.post-nav-wrap {
    padding: 0 0 80px;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
}

.post-nav-item {
    display: block;
    padding: 28px 30px;
    background: var(--card);
}

.post-nav-item.next {
    text-align: right;
}

.post-nav-item.empty {
    pointer-events: none;
}

.post-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
}

.post-nav-item.next .post-nav-label {
    justify-content: flex-end;
}

.post-nav-label svg {
    width: 14px;
    height: 14px;
    color: var(--red);
}

.post-nav-item strong {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

.post-nav-item:not(.empty):hover strong {
    color: var(--red);
}

.related {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
}

.related .section-title {
    margin-bottom: 40px;
}

@media (max-width: 1100px) {
    .post-grid {
        gap: 44px;
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

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

    .featured .cover {
        min-height: 260px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

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

    .post-side {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .blog-hero {
        padding: 120px 0 50px;
    }

    .blog-list {
        padding: 50px 0 72px;
    }

    .post-head {
        padding: 110px 0 44px;
    }

    .post-wrap {
        padding: 48px 0 64px;
    }

    .featured-body {
        padding: 32px 26px;
    }
}

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

    .blog-hero .btn {
        width: 100%;
    }

    .post-side {
        grid-template-columns: 1fr;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body>p:first-child {
        font-size: 17px;
    }

    .post-body h2 {
        font-size: 26px;
        margin-top: 38px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-item.next {
        text-align: left;
    }

    .post-nav-item.next .post-nav-label {
        justify-content: flex-start;
    }

    .post-nav-item.empty {
        display: none;
    }

    .post-end .btn {
        width: 100%;
    }

    .featured .cover-title {
        font-size: 40px;
    }

    .featured .cover-num {
        font-size: 24px;
    }
}

.table-wrap {
    overflow-x: auto;
}

.post-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-size: 16px;
}

.post-table th,
.post-table td {
    padding: 13px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.post-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--muted);
}

.post-table tbody th {
    width: 40%;
}

.post-table td {
    color: var(--text);
}

.post-table td a {
    font-weight: 700;
}

.blog-filter {
    margin-bottom: 40px;
}

.blog-search {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin-bottom: 20px;
}

.blog-search-input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--red);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid var(--line);
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    transition: border-color .2s, color .2s;
}

.chip span {
    font-size: 11px;
    color: var(--muted);
}

.chip:hover {
    border-color: var(--red);
    color: var(--red);
}

.chip.on {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.chip.on span {
    color: rgba(255, 255, 255, .7);
}

.filter-note {
    margin-top: 18px;
    font-size: 15px;
    color: var(--muted);
}

.filter-note a,
.blog-empty a {
    color: var(--red);
    text-decoration: underline;
}

.post-head .eyebrow a {
    color: inherit;
}

@media (max-width: 600px) {
    .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-right: -20px;
        padding-right: 20px;
    }

    .chip {
        flex: none;
    
    .post-table {
        font-size: 14px;
    }

    .post-table th,
    .post-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
}

.cover > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured .cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
}

.post-cover {
    max-width: 640px;
    margin-bottom: 32px;
}

.post-cover img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}

.cover,
.featured .cover {
    background: none;
    border-bottom: 0;
}

.cover::before,
.cover::after {
    display: none;
}

/* ---------- Blog page: articles listed line by line (one row per article) ---------- */
.blog-list .blog-grid {
    grid-template-columns: 1fr;
}

.blog-list .post-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: stretch;
}

.blog-list .post-card .cover {
    aspect-ratio: auto;
    min-height: 190px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
}

.blog-list .post-card-body {
    justify-content: center;
    padding: 28px 34px;
}

.blog-list .post-card h3 {
    font-size: 21px;
    margin: 12px 0 10px;
}

.blog-list .post-card p {
    font-size: 14.5px;
    max-width: 680px;
    margin-bottom: 18px;
}

.post-cat {
    color: var(--red);
}

@media (max-width: 800px) {
    .blog-list .post-card {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .blog-list .post-card-body {
        padding: 22px 24px;
    }
}

@media (max-width: 600px) {
    .blog-list .post-card {
        grid-template-columns: 1fr;
    }

    .blog-list .post-card .cover {
        aspect-ratio: 16 / 10;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}
