/* Shared, indexable article layout for the Iv Production blog. */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.page-article {
    margin: 0;
}

/*
 * Standalone articles do not include the legacy inline header styles used by
 * the original service pages. Define the complete shared navigation shell
 * here so every article renders like the rest of the site.
 */
body.page-article > .header {
    backdrop-filter: blur(20px);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

body.page-article > .header .header-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
}

body.page-article > .header .logo {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    text-decoration: none;
}

body.page-article > .header .logo img {
    transition: filter 0.3s ease, transform 0.3s ease;
}

body.page-article > .header .nav {
    align-items: center;
    display: flex;
}

body.page-article > .header .nav a {
    position: relative;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* The mobile overlay is moved directly under <body> while it is open. */
body.page-article .mobile-menu-link {
    text-decoration: none;
}

.article-hero {
    align-items: flex-end;
    display: flex;
    isolation: isolate;
    min-height: clamp(36rem, 68vw, 52rem);
    overflow: hidden;
    padding: clamp(8rem, 14vw, 11rem) 0 clamp(4rem, 8vw, 6rem);
    position: relative;
}

.article-hero__media,
.article-hero__media::after,
.article-hero__media img {
    inset: 0;
    position: absolute;
}

.article-hero__media {
    z-index: -2;
}

.article-hero__media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.article-hero__media::after {
    background:
        linear-gradient(90deg, rgba(8, 8, 10, 0.96) 0%, rgba(8, 8, 10, 0.78) 56%, rgba(8, 8, 10, 0.3) 100%),
        linear-gradient(0deg, rgba(8, 8, 10, 0.98) 0%, transparent 58%);
    content: '';
}

.article-container {
    margin: 0 auto;
    max-width: 1220px;
    padding-inline: 2rem;
    width: 100%;
}

.article-hero__content {
    max-width: 57rem;
}

.article-back {
    color: rgba(250, 249, 246, 0.78);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 0.45rem;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    text-decoration: none;
    text-transform: uppercase;
}

.article-back:hover {
    color: var(--gold-light);
}

.article-kicker {
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.article-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3.15rem, 7vw, 6.8rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.92;
    margin: 0 0 1.4rem;
    text-wrap: balance;
}

.article-hero__lead {
    color: rgba(250, 249, 246, 0.78);
    font-size: clamp(1.02rem, 1.7vw, 1.25rem);
    line-height: 1.7;
    margin: 0;
    max-width: 48rem;
}

.article-meta {
    align-items: center;
    color: rgba(250, 249, 246, 0.62);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75rem;
    gap: 0.55rem 1rem;
    margin-top: 1.6rem;
}

.article-meta span + span::before {
    color: var(--gold);
    content: '•';
    margin-right: 1rem;
}

.article-layout {
    align-items: start;
    display: grid;
    gap: clamp(2.5rem, 6vw, 6rem);
    grid-template-columns: 15rem minmax(0, 1fr);
    padding-bottom: clamp(5rem, 9vw, 8rem);
    padding-top: clamp(4rem, 8vw, 7rem);
}

.article-toc {
    border-left: 1px solid rgba(212, 175, 55, 0.35);
    display: grid;
    gap: 0.8rem;
    padding-left: 1.2rem;
    position: sticky;
    top: 7.25rem;
}

.article-toc strong {
    color: var(--gold-light);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-toc nav {
    display: grid;
    gap: 0.6rem;
}

.article-toc a {
    color: rgba(250, 249, 246, 0.63);
    font-size: 0.82rem;
    line-height: 1.4;
    text-decoration: none;
}

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

.article-body {
    max-width: 49rem;
    min-width: 0;
}

.article-body > p:first-child {
    color: var(--light);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.5;
    margin-top: 0;
}

.article-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.06;
    margin: 3.5rem 0 1rem;
    scroll-margin-top: 7rem;
    text-wrap: balance;
}

.article-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    margin: 2.2rem 0 0.7rem;
}

.article-body p,
.article-body li {
    color: rgba(250, 249, 246, 0.72);
    font-size: 1rem;
    line-height: 1.82;
}

.article-body ul,
.article-body ol {
    display: grid;
    gap: 0.7rem;
    margin: 1.2rem 0 2rem;
    padding-left: 1.35rem;
}

.article-body li::marker {
    color: var(--gold);
    font-weight: 700;
}

.article-note {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 10px;
    margin: 2.2rem 0;
    padding: 1.4rem 1.55rem;
}

.article-note strong {
    color: var(--gold-light);
    display: block;
    font-size: 0.73rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.article-note p {
    font-size: 0.91rem;
    margin: 0;
}

.article-cta {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(250, 249, 246, 0.14);
    border-radius: 12px;
    margin-top: 4rem;
    padding: clamp(1.7rem, 4vw, 2.7rem);
}

.article-cta h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin: 0 0 0.8rem;
}

.article-cta p {
    margin: 0 0 1.4rem;
}

/*
 * Article pages do not load the legacy per-page button foundation. Reuse the
 * unified navigation CTA skin and provide only the structural styles that a
 * navigation link normally receives from .nav a.
 */
body.page-article .article-cta__button {
    align-items: center;
    border: 0;
    color: #121215 !important;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: clamp(0.88rem, 1.4vw, 0.96rem);
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.035em;
    line-height: 1.35;
    min-height: 3.25rem;
    padding: 0.9rem 1.35rem !important;
    -webkit-text-decoration-line: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-shadow: none;
    text-transform: uppercase;
}

body.page-article .article-cta__button:hover,
body.page-article .article-cta__button:focus-visible,
body.page-article .article-cta__button:active,
body.page-article .article-cta__button:visited {
    color: #121215 !important;
    -webkit-text-decoration-line: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* The global glossy sweep used by navigation CTAs can wash over a text node.
   Article actions stay crisp in every browser and interaction state. */
body.page-article .article-cta__button::after {
    display: none;
}

/* Keep the secondary article-directory action button-like as well. */
body.page-article .article-related__header .btn-outline {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    -webkit-text-decoration-line: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

body.page-article .article-related__header .btn-outline:hover,
body.page-article .article-related__header .btn-outline:focus-visible,
body.page-article .article-related__header .btn-outline:active,
body.page-article .article-related__header .btn-outline:visited {
    -webkit-text-decoration-line: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}

.article-related {
    background: #0d0d10;
    border-top: 1px solid rgba(250, 249, 246, 0.12);
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.article-related__header {
    align-items: end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.article-related h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    margin: 0;
}

.article-related__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-related__card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(250, 249, 246, 0.13);
    border-radius: 10px;
    color: var(--light);
    display: grid;
    padding: 1.5rem;
    text-decoration: none;
    transition: border-color 240ms ease, transform 240ms ease;
}

.article-related__card span {
    color: var(--gold-light);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-related__card strong {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.65rem;
}

.article-related__card:hover {
    border-color: rgba(212, 175, 55, 0.62);
    transform: translateY(-3px);
}

.article-footer {
    background: #09090b;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    padding: 3rem 0;
}

.article-footer__inner {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.article-footer__brand img {
    display: block;
    height: 42px;
    width: auto;
}

.article-footer__brand p {
    color: rgba(250, 249, 246, 0.58);
    font-size: 0.8rem;
    margin: 0.7rem 0 0;
}

.article-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    justify-content: flex-end;
}

.article-footer__links a {
    color: rgba(250, 249, 246, 0.72);
    font-size: 0.78rem;
    text-decoration: none;
}

.article-footer__links a:hover {
    color: var(--gold-light);
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-toc {
        position: static;
    }
}

@media (max-width: 680px) {
    .article-container {
        padding-inline: 1.1rem;
    }

    .article-hero {
        min-height: 44rem;
    }

    .article-hero__media::after {
        background:
            linear-gradient(180deg, rgba(8, 8, 10, 0.28) 0%, rgba(8, 8, 10, 0.94) 63%, rgba(8, 8, 10, 0.99) 100%);
    }

    .article-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

    .article-meta span + span::before {
        content: none;
    }

    .article-related__header,
    .article-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .article-footer__links {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .article-related__card {
        transition: none;
    }
}
