:root {
    --ld-blue: #29358f;
    --ld-blue-2: #303fa1;
    --ld-navy: #101a52;
    --ld-navy-2: #0d1748;
    --ld-ink: #111a4f;
    --ld-text: #28304b;
    --ld-muted: #66708d;
    --ld-border: #e3e7f1;
    --ld-soft: #f4f6fb;
    --ld-white: #ffffff;
    --ld-shadow: 0 16px 38px rgba(20, 31, 90, .08);
    --ld-font: "Montserrat", "Avenir Next", Arial, sans-serif;
}

.ld-blog,
.ld-blog * {
    box-sizing: border-box;
}

.ld-blog {
    background: #fff;
    color: var(--ld-text);
    font-family: var(--ld-font);
    font-weight: 400;
}

.ld-blog h1,
.ld-blog h2,
.ld-blog h3,
.ld-blog h4,
.ld-blog h5,
.ld-blog h6,
.ld-blog strong,
.ld-blog b {
    font-family: var(--ld-font);
}

.ld-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.ld-eyebrow {
    margin-bottom: 16px;
    color: var(--ld-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ld-eyebrow--light {
    color: #d8ddff;
}

.ld-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ld-btn:hover {
    transform: translateY(-1px);
}

.ld-btn--primary {
    background: var(--ld-blue);
    color: #fff !important;
}

.ld-btn--primary:hover {
    background: var(--ld-navy);
}

.ld-btn--outline {
    border: 1px solid #bfc7df;
    background: #fff;
    color: var(--ld-blue) !important;
}

.ld-btn--light {
    background: #fff;
    color: var(--ld-blue) !important;
}

.ld-btn--ghost {
    border: 1px solid rgba(255, 255, 255, .42);
    color: #fff !important;
}

.ld-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================================================
   ARCHIVE HERO
   ========================================================= */
.ld-archive-hero {
    position: relative;
    overflow: hidden;
    padding: 66px 0 58px;
    background: linear-gradient(180deg, #fbfcff 0%, #fff 100%);
}

.ld-archive-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 115px;
    width: 92px;
    height: 160px;
    background-image: radial-gradient(#b8c1e8 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: .45;
}

.ld-archive-hero__grid {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    align-items: center;
    gap: 72px;
}

.ld-archive-hero__copy h1 {
    max-width: 650px;
    margin: 0 0 24px;
    color: var(--ld-blue);
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.045em;
}

.ld-archive-hero__copy p {
    max-width: 600px;
    margin: 0 0 26px;
    color: var(--ld-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}

.ld-archive-hero__visual {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 16px;
    background: #eef1f8;
    box-shadow: var(--ld-shadow);
}

.ld-archive-hero__visual > img {
    width: 100%;
    height: 340px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.ld-hero-placeholder {
    height: 340px;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef1f8, #e0e5f2);
    color: var(--ld-blue);
    text-align: center;
}

.ld-hero-placeholder span {
    font-size: 82px;
    font-weight: 900;
    letter-spacing: -.08em;
}

.ld-hero-placeholder small {
    max-width: 280px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

/* =========================================================
   LISTING / SEARCH / SIDEBAR
   ========================================================= */
.ld-listing {
    padding: 52px 0 84px;
}

.ld-listing-tools {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ld-border);
}

.ld-listing-tools__label {
    display: block;
    margin-bottom: 5px;
    color: var(--ld-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.ld-listing-tools h2 {
    margin: 0;
    color: var(--ld-ink);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.ld-search {
    width: 280px;
    min-height: 44px;
    display: flex;
    overflow: hidden;
    border: 1px solid #aeb7cd;
    border-radius: 7px;
    background: #fff;
}

.ld-search:focus-within {
    border-color: var(--ld-blue);
    box-shadow: 0 0 0 3px rgba(41, 53, 143, .08);
}

.ld-search input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    padding: 9px 12px;
    background: #fff;
    color: var(--ld-text);
    font-family: var(--ld-font);
    font-size: 12px;
    font-weight: 500;
}

.ld-search button {
    width: 44px;
    flex: 0 0 44px;
    border: 0;
    background: #fff;
    color: var(--ld-blue);
    font-size: 18px;
    cursor: pointer;
}

.ld-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 22px;
    align-items: start;
}

.ld-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ld-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ld-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ld-shadow);
}

.ld-card__media {
    height: 225px;
    display: block;
    overflow: hidden;
    background: var(--ld-soft);
}

.ld-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.ld-card:hover .ld-card__media img {
    transform: scale(1.025);
}

.ld-card__placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    background: #f2f4fa;
    color: var(--ld-blue);
}

.ld-card__placeholder svg {
    width: 48px;
    height: 48px;
}

.ld-card__body {
    padding: 20px;
}

.ld-kicker {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--ld-blue) !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .06em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.ld-card__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.ld-card__title a {
    color: var(--ld-ink) !important;
    font-weight: 900;
    text-decoration: none !important;
}

.ld-card__excerpt {
    min-height: 62px;
    color: var(--ld-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

.ld-card__excerpt p {
    margin: 0;
}

.ld-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid #edf0f6;
    color: #737d98;
    font-size: 10px;
    font-weight: 500;
}

.ld-read {
    color: var(--ld-blue) !important;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.ld-sidebar__card {
    position: sticky;
    top: 110px;
    padding: 18px;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    background: #fff;
}

.ld-sidebar__card h2 {
    margin: 0 0 14px;
    color: var(--ld-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
}

.ld-sidebar__card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 8px;
    border-bottom: 1px solid #edf0f6;
    color: var(--ld-ink) !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}

.ld-sidebar__card a:last-child {
    border-bottom: 0;
}

.ld-sidebar__card a b {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ld-soft);
    color: var(--ld-blue);
    font-weight: 800;
}

.ld-sidebar__card a.is-active {
    border-radius: 7px;
    background: var(--ld-soft);
    color: var(--ld-blue) !important;
}

.ld-pagination {
    margin-top: 30px;
}

.ld-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.ld-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ld-border);
    border-radius: 5px;
    color: var(--ld-blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.ld-pagination .current {
    background: var(--ld-blue);
    color: #fff;
}

.ld-empty {
    grid-column: 1 / -1;
    padding: 40px;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    background: #fff;
}

.ld-empty h2 {
    margin: 0 0 8px;
    color: var(--ld-ink);
    font-size: 24px;
    font-weight: 900;
}

.ld-empty p {
    margin: 0;
    color: var(--ld-muted);
    line-height: 1.6;
}

/* =========================================================
   COMPACT ARCHIVES
   ========================================================= */
.ld-archive-hero--compact {
    padding: 58px 0;
}

.ld-archive-hero--compact h1 {
    max-width: 850px;
    margin: 0;
    color: var(--ld-blue);
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.035em;
}

.ld-archive-description {
    max-width: 720px;
    margin-top: 18px;
    color: var(--ld-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.ld-single-hero {
    padding: 56px 0 32px;
}

.ld-single-hero__inner {
    max-width: 1000px;
}

.ld-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: #7a839b;
    font-size: 11px;
    font-weight: 600;
}

.ld-breadcrumbs a {
    color: var(--ld-blue) !important;
    text-decoration: none !important;
}

.ld-single-hero h1 {
    max-width: 1000px;
    margin: 8px 0 20px;
    color: var(--ld-ink);
    font-size: clamp(42px, 5.4vw, 70px);
    font-weight: 900;
    line-height: 1.01;
    letter-spacing: -.045em;
}

.ld-single-dek {
    max-width: 840px;
    color: var(--ld-muted);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
}

.ld-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    color: #7c859a;
    font-size: 11px;
    font-weight: 600;
}

.ld-single-image {
    max-height: 620px;
    margin: 8px 0 46px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ld-soft);
}

.ld-single-image img {
    width: 100%;
    height: auto;
    max-height: 620px;
    display: block;
    object-fit: cover;
}

.ld-article-layout {
    display: grid;
    grid-template-columns: 60px minmax(0, 760px) 280px;
    gap: 38px;
    align-items: start;
    padding-bottom: 58px;
}

.ld-article-share {
    position: sticky;
    top: 115px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.ld-article-share > span {
    margin-bottom: 5px;
    color: #8a92a5;
    font-size: 10px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.ld-article-share a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--ld-blue);
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
}

.ld-article-content {
    min-width: 0;
    color: #323a55;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.82;
}

.ld-article-content > p:first-child {
    color: #2c3554;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.7;
}

.ld-article-content h2 {
    margin: 42px 0 16px;
    color: var(--ld-ink);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.ld-article-content h3 {
    margin: 34px 0 14px;
    color: var(--ld-ink);
    font-size: 23px;
    font-weight: 800;
}

.ld-article-content p,
.ld-article-content ul,
.ld-article-content ol {
    margin: 0 0 22px;
}

.ld-article-content blockquote {
    margin: 30px 0;
    padding: 22px 24px;
    border-left: 4px solid var(--ld-blue);
    background: var(--ld-soft);
    color: #34406d;
}

.ld-article-content img {
    border-radius: 9px;
}

.ld-article-side {
    position: sticky;
    top: 110px;
}

.ld-side-cta {
    padding: 24px;
    border-radius: 10px;
    background: var(--ld-navy);
    color: #fff;
}

.ld-side-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.16;
}

.ld-side-cta p {
    margin-bottom: 17px;
    color: #d9def3;
    font-size: 12px;
    line-height: 1.6;
}

.ld-related-mini {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
}

.ld-related-mini h2 {
    margin: 0 0 14px;
    color: var(--ld-ink);
    font-size: 16px;
    font-weight: 900;
}

.ld-related-mini > a {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #edf0f6;
    text-decoration: none !important;
}

.ld-related-mini img {
    width: 62px;
    height: 54px;
    border-radius: 5px;
    object-fit: cover;
}

.ld-related-mini b {
    display: block;
    color: var(--ld-ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.ld-related-mini small {
    display: block;
    margin-top: 5px;
    color: #8a92a5;
    font-size: 9px;
}

.ld-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin-bottom: 50px;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
}

.ld-post-nav > a {
    padding: 22px;
    color: var(--ld-ink) !important;
    text-decoration: none !important;
}

.ld-post-nav > a + a {
    border-left: 1px solid var(--ld-border);
    text-align: right;
}

.ld-post-nav span {
    display: block;
    margin-bottom: 5px;
    color: #8690a6;
    font-size: 10px;
}

.ld-post-nav strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .ld-archive-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .ld-content-grid {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .ld-article-layout {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .ld-article-side {
        display: none;
    }
}

@media (max-width: 860px) {
    .ld-content-grid {
        grid-template-columns: 1fr;
    }

    .ld-sidebar {
        grid-row: 2;
    }

    .ld-sidebar__card {
        position: static;
    }

    .ld-sidebar__card a {
        min-height: 44px;
    }
}

@media (max-width: 767px) {
    .ld-shell {
        width: min(calc(100% - 28px), 1180px);
    }

    .ld-archive-hero {
        padding: 44px 0 38px;
    }

    .ld-archive-hero::before {
        display: none;
    }

    .ld-archive-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ld-archive-hero__copy h1 {
        font-size: 42px;
        line-height: 1;
    }

    .ld-archive-hero__copy p {
        font-size: 14px;
    }

    .ld-archive-hero__visual,
    .ld-archive-hero__visual > img,
    .ld-hero-placeholder {
        min-height: 260px;
        height: 260px;
    }

    .ld-listing {
        padding: 36px 0 60px;
    }

    .ld-listing-tools {
        display: block;
    }

    .ld-listing-tools h2 {
        font-size: 25px;
    }

    .ld-search {
        width: 100%;
        margin-top: 16px;
    }

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

    .ld-card__media {
        height: 220px;
    }

    .ld-card__title {
        font-size: 19px;
    }

    .ld-single-hero {
        padding: 36px 0 22px;
    }

    .ld-single-hero h1 {
        font-size: 40px;
    }

    .ld-single-dek {
        font-size: 16px;
    }

    .ld-single-image {
        margin-bottom: 30px;
    }

    .ld-article-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ld-article-share {
        position: static;
        flex-direction: row;
        justify-content: flex-start;
    }

    .ld-article-share > span {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .ld-article-content {
        font-size: 16px;
    }

    .ld-article-content > p:first-child {
        font-size: 18px;
    }

    .ld-article-content h2 {
        font-size: 26px;
    }

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

    .ld-post-nav > a + a {
        border-top: 1px solid var(--ld-border);
        border-left: 0;
        text-align: left;
    }
}
