:root {
    --yellow: #ffc300;
    --max: 1440px;
    --gutter: clamp(24px, 5.55vw, 50px);
    --radius: 8px;
    --blog-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* body {
    -webkit-font-smoothing: antialiased;
} */
.site-shell {
    width: min(100%, var(--max));
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.button {
    min-height: 48px;
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid #000;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.button:hover {
    transform: translateY(-2px);
}
.button-dark {
    background: #000;
    color: #fff;
}
.button-dark:hover {
    background: #272727;
    color: #fff;
}
.button-outline {
    background: #fff;
    color: #000;
}
.button-outline:hover {
    background: #f5f5f5;
}
/** GUIDES PAGE CSS START **/
.guides-section {
    padding: 80px 0px 64px;
}
.latest-digital-lab-heading h6 {
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: 0;
}
.latest-digital-lab-heading h1 {
    margin: 0;
}
/** GUIDES PAGE CSS END **/

/** GUIDES PAGE CSS END **/
.section.blog-category-tabs-section {
    padding-top: 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 56px 32px;
}
.blog-grid.glossary-grid {
    gap: 80px 32px;
}
.article-card {
    min-width: 0;
    transition: opacity 420ms var(--blog-ease), transform 520ms var(--blog-ease);
    transition-delay: var(--reveal-delay, 0ms);
}
.article-card.is-reveal-ready {
    opacity: 0;
    transform: translateY(12px);
}
.article-card.is-reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.article-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 16px;
}
.article-card__media {
    margin: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    height: 100%;
    height: 187px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.article-card__media img {
    width: 100%;
    height: auto;
    /* aspect-ratio: 1; */
    object-fit: contain;
    border-radius: 12px;
    transition: opacity 180ms ease;
}
.article-card__body {
    display: grid;
    gap: 8px;
}
.article-card__topic {
    margin: 0;
    color: #555;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.article-card__title {
    margin: 0;
    letter-spacing: 0;
    text-wrap: unset;
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
}
.article-card__body p {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #000000;
    letter-spacing: 0;
}
.article-card__byline {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}
.article-card__byline > img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.article-card__byline span {
    display: grid;
    gap: 2px;
}
.article-card__byline strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 120%;
    color: #000000;
}
.article-card__byline time {
    font-weight: 500;
    font-size: 11px;
    line-height: 13px;
    color: #555555;
}
.article-card__link:hover .article-card__media img {
    opacity: .88;
}
.article-card__link:hover .article-card__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.blog-results__actions {
    display: flex;
    justify-content: center;
}
.blog-results__actions .blog-show-more {
    margin-top: 56px;
}
.blog-results__actions .blog-show-more[hidden] {
    display: none;
}

/** DIGITAL LAB PAGE RESPONSIVE CSS START **/
@media (max-width: 1679px) {}
@media (max-width: 1439px) {
    .article-card__media {
        height: 160px;
    }
}
@media (max-width: 1279px) {
    .article-card__media {
        height: 147px;
    }
}
@media (max-width: 1199px) {
    .site-shell {
        padding-left: 20px;
        padding-right: 20px;
    }
    .latest-digital-lab-heading h6 {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .latest-digital-lab-heading h1 {
        font-size: 50px;
    }
    .blog-grid {
        gap: 45px 20px;
    }
    .blog-grid.glossary-grid {
        gap: 60px 20px;
    }
    .article-card__media {
        height: 128px;
    }
}
@media (max-width: 1023px) {
    h2 {
        font-size: 32px;
        line-height: 38px;
    }
    .latest-digital-lab-heading h1 {
        font-size: 42px;
        line-height: 115%;
    }
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 56px 32px;
    }
    .blog-grid.glossary-grid {
        gap: 60px 32px;
    }
    .article-card__media {
        height: auto;
    }
}
@media (max-width: 575px) {
    h2 {
        font-size: clamp(35px,4vw,58px);
        line-height: 1.1;
    }
    .guides-section {
        padding: 50px 0px 34px;
    }
    .blog-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 45px 32px;
    }
    .blog-grid.glossary-grid {
        gap: 45px 32px;
    }
    .blog-results__actions .blog-show-more {
        margin-top: 36px;
    }
}
/** DIGITAL LAB PAGE RESPONSIVE CSS END **/

/** ================== DIGITAL LAB BANNER ANIMATION START ==================
 * Mirrors the home page's .home-banner-ani entrance animation (same
 * easing, same stagger steps, same "hero settles / rest rises" split),
 * but scoped under its own class + keyframe names so nothing here can
 * collide with main.css's .home-banner-ani rules if both are ever loaded
 * on the same page.
 * ========================================================================= */
.dl-banner-ani {
    --dl-hero-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes dlHeroRise {
    from { opacity: 0; transform: translate3d(0, 18px, 0); }
    to   { opacity: 1; transform: none; }
}

@keyframes dlHeroSettle {
    from { opacity: 0; transform: scale(1.025); }
    to   { opacity: 1; transform: none; }
}

.dl-banner-ani .latest-digital-lab-heading h6,
.dl-banner-ani .latest-digital-lab-heading h1 {
    animation: dlHeroRise 0.75s var(--dl-hero-ease) backwards;
    animation-delay: var(--dl-hero-delay, 0s);
}

.dl-banner-ani .latest-digital-lab-heading h6 { --dl-hero-delay: 0.06s; }
.dl-banner-ani .latest-digital-lab-heading h1 { --dl-hero-delay: 0.10s; }

@media (prefers-reduced-motion: reduce) {
    .dl-banner-ani .latest-digital-lab-heading h6,
    .dl-banner-ani .latest-digital-lab-heading h1 {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}
/** ================== DIGITAL LAB BANNER ANIMATION END ================== **/

/** WP addition: loading state for the "Show more" button (no static-mockup equivalent). **/
.blog-show-more.is-loading { opacity: 0.7; pointer-events: none; }
.blog-show-more .show-more-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: twopoint-show-more-spin 0.7s linear infinite;
}
.blog-show-more.is-loading .show-more-icon { display: none; }
.blog-show-more.is-loading .show-more-spinner { display: inline-block; }
@keyframes twopoint-show-more-spin {
    to { transform: rotate(360deg); }
}

/** WP addition: clamp long excerpts to 6 lines so cards stay a consistent height. **/
.article-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
