/* Articles pages have no theme hero — collapse the 900px header band but
 * keep a dark backdrop so the white nav text remains legible. */
.page-template-page-articles header,
body.article-md-post header {
    height: auto !important;
    min-height: 0 !important;
    background-image: none !important;
    background-color: #060a14 !important;
    padding-bottom: 1rem;
}

/* ── Article Single ──────────────────────────────────────────────────── */

.article-hero {
    padding: 4rem 0 3rem;
    background: #060a14;
    color: #fff;
    text-align: center;
}

.article-date {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a0a8b4;
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.25rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin: 0;
    text-transform: none !important;
    color: #fff !important;
    text-align: center;
}

.article-body {
    padding: 3rem 0 4rem;
}

.article-body .container {
    max-width: 720px;
}

.article-body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #222;
}

.article-body h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: #111 !important;
    text-transform: none !important;
    text-align: left !important;
    letter-spacing: 0 !important;
}

.article-body h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #111 !important;
    text-transform: none !important;
    text-align: left !important;
    letter-spacing: 0 !important;
}

.article-body h4 {
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: #111 !important;
    text-transform: none !important;
    text-align: left !important;
    letter-spacing: 0 !important;
}

.article-body ul,
.article-body ol {
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

.article-body li {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.article-body a {
    color: #063478;
    text-decoration: underline;
}

.article-body a:hover {
    color: #041e50;
}

.article-body blockquote {
    border-left: 4px solid #063478;
    margin: 1.75rem 0;
    padding: 0.5rem 1.25rem;
    font-style: italic;
    color: #444;
}

.article-body blockquote p {
    margin-bottom: 0;
}

/* 16:9 responsive iframe wrapper */
.article-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
}

.article-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Articles Index ──────────────────────────────────────────────────── */

/* Hero — mirrors rebuild-pages .rebuild-hero exactly */
.articles-hero {
    background: #25292c;
    padding: 80px 20px 70px;
    text-align: center;
}

.articles-hero h1 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-text-stroke-width: 0 !important;
    font-size: 48px !important;
    line-height: 1.15 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    margin: 0 auto 24px !important;
    max-width: 900px;

    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-bottom: 35px;
}

.articles-hero__rule {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--blue);
    margin: 0 auto 24px;
}

.articles-hero__lead {
    color: #d3d3d3 !important;
    font-size: 22px !important;
    line-height: 1.5 !important;
    margin: 0 auto !important;
    max-width: 700px;
    letter-spacing: 0.5px;
    text-align: center !important;

    font-weight: 500;
}

/* Block — white section with generous padding */
.articles-block {
    background: #ffffff;
    padding: 80px 20px 100px;
}

.articles-block__inner {
    max-width: 1140px;
    margin: 0 auto;
}

/* Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

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

/* Cards */
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 32px 28px;
    border-bottom: 3px solid var(--blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    color: inherit !important;
    text-transform: none; /* reset global a { text-transform: uppercase } */
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-bottom-width 0.2s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(6, 52, 120, 0.18);
    border-bottom-width: 5px;
    color: inherit !important;
    text-decoration: none !important;
}

.article-card-date {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--blue) !important;
    text-align: left !important;
    margin: 0 0 14px !important;
}

.article-card-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #25292c !important;
    -webkit-text-fill-color: #25292c !important;
    -webkit-text-stroke-width: 0 !important;
    text-transform: none !important;
    text-align: left !important;
    letter-spacing: 0 !important;
    margin: 0 0 14px !important;
    /* 3-line clamp for visual rhythm */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin: 0 0 20px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* push CTA to bottom of card */
}

.article-card-cta {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto; /* sticks to bottom in flex column */
    transition: gap 0.2s ease;
}

.article-card:hover .article-card-cta {
    gap: 10px;
}
