/* category/archive rules live near the end of this file (Legacy Archive section) */
.dc-blog-page,
.dc-blog-page * {
    box-sizing: border-box;
}

.dc-blog-page {
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    background: #ffffff;
}

.dc-blog-container {
    width: 100%;
    max-width: 1210px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HERO */

.dc-blog-hero {
    position: relative;
    /* Allow the live-search dropdown to overflow the hero section */
    overflow: visible;
    min-height: 360px;
    color: #ffffff;
    background: #05245f url('../assets/bg_desktop.png') center center / cover no-repeat;
    z-index: 2;
}

.dc-blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(4, 28, 76, 1) 0%, rgba(4, 28, 76, 0.94) 42%, rgba(4, 28, 76, 0.25) 70%, rgba(4, 28, 76, 0.1) 100%),
        var(--dc-hero-image);
    background-size: cover;
    background-position: center right;
    opacity: 0.95;
}

.dc-blog-hero .dc-blog-container {
    position: relative;
    z-index: 2;
}

.dc-blog-hero-content {
    max-width: 40rem;
    padding: 58px 0 34px;
}

.dc-blog-hero .dc-blog-eyebrow {
    margin: 0 0 12px;
    color: #16a34a !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.dc-blog-hero h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(46px, 5.6vw, 51px);
    line-height: 1.12;
    letter-spacing: -0.9px;
    font-weight: 800;
}

.dc-blog-hero p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-size: 17px;
    line-height: 1.55;
}

.dc-blog-search {
    display: flex;
    width: 100%;
    max-width: 550px;
    height: 48px;
    margin-top: 28px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(3, 18, 53, 0.58);
    position: relative;
}

.dc-blog-search input {
    flex: 1;
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
}

.dc-blog-search input::placeholder {
    color: rgba(255,255,255,0.65);
}

.dc-blog-search button {
    width: 118px;
    border: 0;
    background: #16a34a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}

.dc-blog-search button:hover {
    background: #16a34a;
}

.dc-live-search {
    position: absolute;
    left: -1px;
    right: -1px;
    top: calc(100% + 10px);
    background: rgba(3, 18, 53, 0.98);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    border-radius: 10px;
    overflow: hidden;
    display: none;
    z-index: 999;
}

.dc-live-search.open {
    display: block;
}

.dc-live-item {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    color: #fff;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.dc-live-item:first-child {
    border-top: 0;
}

.dc-live-item:hover {
    background: rgba(255,255,255,0.06);
}

.dc-live-title {
    font-weight: 800;
    font-size: 14px;
    line-height: 1.25;
}

.dc-live-meta {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dc-live-cat {
    color: #588eff;
}

.dc-live-empty {
    padding: 12px 14px;
    color: rgba(255,255,255,0.82);
    font-size: 13px;
}

.dc-blog-topics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.dc-blog-topics span {
    margin-right: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.dc-blog-topics a {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 6px 13px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 5px;
    background: rgba(255,255,255,0.08);
    color: #dbeafe;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

.dc-blog-topics a.active,
.dc-blog-topics a:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

/* CONTENT */

.dc-blog-content-section {
    padding: 42px 0 46px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.dc-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 338px;
    gap: 56px;
    align-items: start;
}

.dc-section-kicker {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.dc-section-kicker.green {
    color: #16a34a;
}

.dc-section-kicker.blue {
    color: #588eff;
}

.dc-featured-card {
    display: grid;
    grid-template-columns: 48% 52%;
    overflow: hidden;
    min-height: 248px;
    margin-bottom: 34px;
    border: 1px solid #d8e0ec;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.04);
}

.dc-featured-media {
    display: block;
    min-height: 248px;
    background: #0b2e71;
    text-decoration: none;
}

.dc-featured-media img {
    width: 100%;
    height: 100%;
    min-height: 248px;
    display: block;
    object-fit: cover;
}

.dc-featured-info {
    padding: 30px 30px 26px;
}

.dc-card-category {
    display: inline-block;
    margin-bottom: 10px;
    color: #588eff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
}

.dc-featured-info h2 {
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.22;
    letter-spacing: -0.35px;
}

.dc-featured-info h2 a,
.dc-latest-info h3 a {
    color: #111827;
    text-decoration: none;
}

.dc-featured-info h2 a:hover,
.dc-latest-info h3 a:hover,
.dc-popular-row:hover strong {
    color: #155bd5;
}

.dc-featured-info p {
    max-width: 420px;
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.dc-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 22px 0 24px;
    color: #64748b;
    font-size: 12px;
}

.dc-read-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 26px;
    border-radius: 4px;
    background: #16a34a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.dc-read-button:hover {
    background: #16a34a;
}

.dc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 14px;
    border-bottom: 1px solid #dbe3ef;
}

.dc-section-header .dc-section-kicker {
    margin-bottom: 13px;
}

.dc-section-header > a {
    margin-bottom: 13px;
    color: #155bd5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.dc-latest-list {
    display: grid;
    gap: 0;
}

.dc-latest-card {
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr) 95px;
    gap: 22px;
    padding: 16px 0;
}

.dc-latest-media {
    display: block;
    height: 98px;
    overflow: hidden;
    border-radius: 3px;
    background: #0b2e71;
    text-decoration: none;
}

.dc-latest-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dc-latest-info h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -0.25px;
}

.dc-latest-info p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.dc-latest-date {
    padding-top: 26px;
    color: #64748b;
    font-size: 12px;
    text-align: right;
}

.dc-latest-date small {
    display: block;
    margin-top: 5px;
}

/* SIDEBAR */

.dc-blog-sidebar {
    display: grid;
    gap: 30px;
}

.dc-sidebar-card,
.dc-local-card,
.dc-insights-card {
    border: 1px solid #d8e0ec;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.dc-sidebar-card h3,
.dc-local-card h3,
.dc-insights-card h3 {
    margin: 0;
    padding: 20px 21px 14px;
    color: #155bd5;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Specific: Most Popular Guides heading */
.dc-blog-sidebar .dc-sidebar-card h3 {
    color: #588eff;
}

/* Specific: Local Tech Insights heading */
.dc-insights-card h3 {
    color: #588eff;
}

.dc-popular-row {
    display: grid;
    grid-template-columns: 30px 70px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-height: 86px;
    padding: 13px 18px;
    border-top: 1px solid #e5eaf2;
    text-decoration: none;
}

.dc-popular-number {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dbeafe;
    color: #155bd5;
    font-size: 12px;
    font-weight: 900;
}

.dc-popular-image {
    display: block;
    width: 70px;
    height: 52px;
    overflow: hidden;
    border-radius: 3px;
    background: #0b2e71;
}

.dc-popular-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dc-popular-text strong {
    display: block;
    color: #111827;
    font-size: 14px;
    line-height: 1.3;
    transition: 0.2s ease;
}

.dc-popular-text small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

.dc-local-card,
.dc-insights-card {
    position: relative;
    padding-bottom: 24px;
    background: linear-gradient(135deg, #f8fbff 0%, #eaf2ff 100%);
}

.dc-local-card::after,
.dc-insights-card::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 42px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #155bd5 0 8px, transparent 9px),
        repeating-conic-gradient(from 0deg, rgba(21,91,213,0.1) 0deg 12deg, transparent 12deg 24deg);
    opacity: 0.55;
}

.dc-local-card p,
.dc-insights-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0 21px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.dc-local-card ul,
.dc-insights-card ul {
    position: relative;
    z-index: 2;
    margin: 18px 0 20px;
    padding: 0 21px;
    list-style: none;
}

.dc-local-card li,
.dc-insights-card li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 22px;
    color: #334155;
    font-size: 13px;
}

.dc-local-card li::before,
.dc-insights-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.5%2012.5L10.5%2014.5L15.5%209.5%22%20stroke%3D%22%2316a34a%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M7%203.33782C8.47087%202.48697%2010.1786%202%2012%202C17.5228%202%2022%206.47715%2022%2012C22%2017.5228%2017.5228%2022%2012%2022C6.47715%2022%202%2017.5228%202%2012C2%2010.1786%202.48697%208.47087%203.33782%207%22%20stroke%3D%22%2316a34a%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}

.dc-local-card a,
.dc-insights-card a {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-left: 21px;
    color: #588eff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dc-local-card a:hover,
.dc-insights-card a:hover {
    text-decoration: underline;
}

/* "View all articles" link in Latest Articles header */
.dc-blog-section-head a {
    color: #588eff;
    font-weight: 700;
    text-decoration: none;
}

.dc-blog-section-head a:hover {
    text-decoration: underline;
}

/* Blog header link icon */
.dc-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dc-view-all .dc-inline-ico {
    width: 18px;
    height: 18px;
    display: block;
}

.dc-view-all .dc-inline-ico path {
    stroke: #588eff;
}

/* FALLBACK IMAGE */

.dc-image-fallback {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: rgba(255,255,255,0.85);
    background: linear-gradient(135deg, #08245d, #155bd5);
    font-weight: 800;
    text-align: center;
}

.dc-image-fallback.small {
    font-size: 13px;
}

/* BENEFITS */

.dc-blog-benefits {
    border-top: 1px solid #e5eaf2;
    border-bottom: 1px solid #e5eaf2;
    background: #ffffff;
}

.dc-benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.dc-benefits-grid div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 13px;
    align-items: start;
}

.dc-benefits-grid span {
    grid-row: span 2;
}

.dc-benefit-ico svg {
    width: 3rem;
}

.dc-benefits-grid strong {
    color: #111827;
    font-size: 13px;
    line-height: 1.3;
}

.dc-benefits-grid p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

/* CTA */

.dc-blog-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #073d96 0%, #083485 100%);
    color: #ffffff;
    border-bottom: 4px solid #0b47b680;
    padding: 1rem;
}

/* Footer-style diagonal pattern ornaments */
.dc-blog-cta::before,
.dc-blog-cta::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    background-image: linear-gradient(
        135deg,
        transparent 0%,
        transparent 48%,
        rgba(255, 255, 255, 0.05) 48%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 50%,
        transparent 56%,
        rgba(255, 255, 255, 0.04) 56%,
        rgba(255, 255, 255, 0.04) 58%,
        transparent 58%,
        transparent 64%,
        rgba(255, 255, 255, 0.03) 64%,
        rgba(255, 255, 255, 0.03) 66%,
        transparent 66%
    );
    pointer-events: none;
    opacity: 0.9;
}

.dc-blog-cta::before {
    top: -120px;
    right: -140px;
}

.dc-blog-cta::after {
    bottom: -120px;
    left: -140px;
    transform: rotate(180deg);
}

.dc-blog-cta-inner {
    position: relative;
    z-index: 2;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 25px;
    padding-bottom: 25px;
}

.dc-cta-lede {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.dc-cta-ico {
    width: 7rem;
    height: 7rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #2f66c1;
    border-radius: 99999px;
}

.dc-cta-ico svg {
    width: 54px;
    height: 54px;
    display: block;
}

.dc-cta-copy {
    min-width: 0;
}

.dc-blog-cta h2 {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.dc-blog-cta p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 14px;
}

.dc-blog-cta-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.dc-cta-green,
.dc-cta-outline {
    min-width: 180px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
}

.dc-cta-green {
    background: #16a34a;
    color: #ffffff;
}

.dc-cta-outline {
    border: 1px solid rgba(255,255,255,0.45);
    color: #ffffff;
}

/* RESPONSIVE */

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

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

    .dc-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .dc-blog-hero-content {
        padding: 48px 0 30px;
    }

    .dc-blog-search {
        height: auto;
        flex-direction: column;
    }

    .dc-blog-search input {
        min-height: 48px;
    }

    .dc-blog-search button {
        width: 100%;
        min-height: 48px;
    }

    .dc-featured-card,
    .dc-latest-card {
        grid-template-columns: 1fr;
    }

    .dc-latest-date {
        padding-top: 0;
        text-align: left;
    }

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

    .dc-benefits-grid {
        grid-template-columns: 1fr;
    }

    .dc-blog-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-cta-ico {
        width: 46px;
        height: 46px;
    }

    .dc-cta-ico svg {
        width: 46px;
        height: 46px;
    }
}

/* LEGACY POSTS (classic WP content) */

.legacy-post {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 24px 24px 64px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.legacy-post > *:first-child {
    margin-top: 0;
}

.legacy-post > *:last-child {
    margin-bottom: 0;
}

.legacy-post h1,
.legacy-post h2,
.legacy-post h3,
.legacy-post h4,
.legacy-post h5,
.legacy-post h6 {
    margin: 1.1em 0 0.55em;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.legacy-post h1 {
    font-size: clamp(28px, 3.1vw, 40px);
}

.legacy-post h2 {
    font-size: clamp(22px, 2.4vw, 30px);
}

.legacy-post h3 {
    font-size: clamp(18px, 2vw, 24px);
}

.legacy-post p,
.legacy-post ul,
.legacy-post ol,
.legacy-post blockquote,
.legacy-post pre,
.legacy-post table,
.legacy-post figure {
    margin: 0 0 1.05em;
}

.legacy-post a {
    color: #588eff;
    text-decoration: none;
}

.legacy-post a:hover {
    color: #155bd5;
}

.legacy-post ul,
.legacy-post ol {
    padding-left: 1.25em;
}

.legacy-post li {
    margin: 0.35em 0;
}

.legacy-post img,
.legacy-post video,
.legacy-post iframe,
.legacy-post embed,
.legacy-post object {
    max-width: 100%;
}

.legacy-post img {
    height: auto;
    vertical-align: middle;
}

.legacy-post figure img {
    display: block;
}

.legacy-post figcaption,
.legacy-post .wp-caption-text {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.legacy-post blockquote {
    padding: 14px 16px;
    border-left: 4px solid rgba(88, 142, 255, 0.55);
    background: #f8fbff;
    color: #334155;
}

.legacy-post blockquote > :last-child {
    margin-bottom: 0;
}

.legacy-post pre,
.legacy-post code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.legacy-post pre {
    padding: 14px 16px;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    background: #f8fafc;
    overflow-x: auto;
    line-height: 1.55;
    font-size: 14px;
}

.legacy-post hr {
    border: 0;
    border-top: 1px solid #e5eaf2;
    margin: 1.6em 0;
}

.legacy-post table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.legacy-post th,
.legacy-post td {
    border: 1px solid #e5eaf2;
    padding: 10px 12px;
    vertical-align: top;
}

.legacy-post thead th {
    background: #f8fafc;
    font-weight: 800;
}

/* Classic editor alignment helpers */
.legacy-post .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.legacy-post .alignleft {
    float: left;
    margin: 0.35em 1.15em 0.9em 0;
}

.legacy-post .alignright {
    float: right;
    margin: 0.35em 0 0.9em 1.15em;
}

@media (max-width: 700px) {
    .legacy-post {
        padding-left: 18px;
        padding-right: 18px;
        font-size: 16px;
    }

    .legacy-post table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .legacy-post .alignleft,
    .legacy-post .alignright {
        float: none;
        margin: 0 0 1.05em;
    }
}

/* LEGACY ARCHIVE (categories / paged posts) */

.dc-archive-page {
    background: #ffffff;
}

.legacy-archive-head {
    margin: 10px 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5eaf2;
}

.legacy-archive-head h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(34px, 4.2vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.legacy-archive-description {
    max-width: 64ch;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.legacy-archive-description p {
    margin: 0.6em 0 0;
}

.legacy-archive-list {
    display: grid;
    gap: 2.4rem;
}

.legacy-archive-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    margin-bottom: 0rem;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.03),
        0 10px 24px rgba(15, 23, 42, 0.045);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.legacy-archive-item:hover {
    transform: translateY(-1px);
    border-color: rgba(88, 142, 255, 0.45);
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.03),
        0 14px 34px rgba(15, 23, 42, 0.06);
}

.legacy-archive-image {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #08245d, #155bd5);
    aspect-ratio: 4 / 3;
}

.legacy-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.legacy-image-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 14px;
    color: rgba(255,255,255,0.88);
    font-weight: 800;
    text-align: center;
}

.legacy-archive-content {
    min-width: 0;
}

.legacy-archive-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.legacy-archive-content h2 a {
    color: #0f172a;
    text-decoration: none;
}

.legacy-archive-content h2 a:hover {
    color: #155bd5;
}

.legacy-archive-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.legacy-archive-excerpt {
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.legacy-archive-excerpt p {
    margin: 0;
}

.legacy-read-more {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(88, 142, 255, 0.32);
    background: rgba(88, 142, 255, 0.10);
    color: #155bd5;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: 160ms ease;
}

.legacy-read-more:hover {
    border-color: rgba(88, 142, 255, 0.55);
    background: rgba(88, 142, 255, 0.16);
    transform: translateY(-1px);
}

.legacy-read-more:focus-visible {
    outline: 3px solid rgba(88, 142, 255, 0.35);
    outline-offset: 2px;
}

/* Pagination: Apple-ish pill buttons */
.legacy-pagination {
    text-align: center;
    font-size: 22px;
    margin: 0;
}

.legacy-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.legacy-pagination .page-numbers {
    min-width: 40px;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #e5eaf2;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: 160ms ease;
}

.legacy-pagination .page-numbers:hover {
    border-color: rgba(88, 142, 255, 0.55);
    background: rgba(88, 142, 255, 0.11);
    transform: translateY(-1px);
}

.legacy-pagination .page-numbers.current {
    border-color: rgba(88, 142, 255, 0.85);
    background: linear-gradient(180deg, rgba(88, 142, 255, 0.22), rgba(88, 142, 255, 0.14));
    color: #0b2e71;
}

.legacy-pagination .page-numbers.next,
.legacy-pagination .page-numbers.prev {
    padding: 0 16px;
    gap: 8px;
}

.legacy-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    min-width: 22px;
    padding: 0 8px;
    color: #64748b;
    transform: none;
}

.legacy-pagination .page-numbers:focus-visible {
    outline: 3px solid rgba(88, 142, 255, 0.35);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .legacy-pagination .nav-links {
        border-radius: 18px;
        padding: 10px;
        justify-content: flex-start;
    }
}

@media (max-width: 740px) {
    .legacy-archive-item {
        grid-template-columns: 1fr;
    }

    .legacy-archive-image {
        aspect-ratio: 16 / 9;
    }
}