.article-detail-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 180px 0 118px;
    background:
        radial-gradient(circle at 14% 10%, rgba(248, 250, 252, 0.07), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(107, 114, 128, 0.12), transparent 26%),
        linear-gradient(135deg, #080b0a 0%, #101614 42%, #070908 100%);
    color: var(--color-text-light);
}

.article-detail-page::before {
    content: "";
    position: absolute;
    top: -180px;
    left: -180px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(248, 250, 252, 0.055);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(248, 250, 252, 0.06), transparent 66%);
    pointer-events: none;
}

.article-detail-page::after {
    content: "";
    position: absolute;
    right: -220px;
    bottom: 18%;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(248, 250, 252, 0.045), transparent 66%);
    pointer-events: none;
}

.article-detail-bg-word {
    position: absolute;
    right: -3vw;
    top: 118px;
    color: rgba(248, 250, 252, 0.035);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 15rem);
    font-weight: 950;
    letter-spacing: -0.095em;
    line-height: 0.8;
    pointer-events: none;
}

.article-detail-shell {
    position: relative;
    z-index: 2;
    width: min(100% - 64px, 1480px);
    margin-inline: auto;
}

.article-detail-back {
    margin-bottom: 28px;
}

.article-detail-back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(248, 250, 252, 0.12);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.06);
    color: rgba(248, 250, 252, 0.78);
    font-size: 0.9rem;
    font-weight: 850;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.article-detail-back a:hover {
    transform: translateY(-1px);
    border-color: rgba(248, 250, 252, 0.24);
    background: rgba(248, 250, 252, 0.1);
    color: var(--color-text-light);
}

.article-detail-hero {
    max-width: 1120px;
    margin-bottom: 42px;
}

.article-detail-kicker-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.article-detail-category,
.article-detail-date {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: rgba(248, 250, 252, 0.66);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-detail-category {
    padding: 0px 0px 20px 0px;
}

.article-detail-category.muted {
    color: rgba(248, 250, 252, 0.44);
}

.article-detail-date {
    color: rgba(248, 250, 252, 0.48);
}

.article-detail-hero h1 {
    max-width: 1180px;
    margin-bottom: 26px;
    color: var(--color-text-light);
    font-size: clamp(3.1rem, 6.1vw, 6.4rem);
    line-height: 0.92;
    letter-spacing: -0.085em;
}

.article-detail-excerpt {
    max-width: 880px;
    color: rgba(248, 250, 252, 0.72);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    line-height: 1.65;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
    color: rgba(248, 250, 252, 0.52);
    font-size: 0.92rem;
    font-weight: 760;
}

.article-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-author-byline a {
    color: rgba(248, 250, 252, 0.86);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: rgba(248, 250, 252, 0.28);
    text-underline-offset: 5px;
}

.article-author-byline a:hover {
    color: #ffffff;
    text-decoration-color: rgba(248, 250, 252, 0.58);
}

.article-detail-image-wrap,
.article-detail-image-fallback {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 34px;
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(248, 250, 252, 0.08), rgba(248, 250, 252, 0.025)),
        rgba(248, 250, 252, 0.035);
    box-shadow: var(--shadow-dark);
}

.article-detail-image-wrap {
    height: min(56vw, 620px);
    min-height: 360px;
}

.article-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.86) contrast(1.04);
}

.article-detail-image-fallback {
    min-height: 460px;
    display: grid;
    place-items: center;
}

.article-detail-image-fallback::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(248, 250, 252, 0.055);
    border-radius: 28px;
    pointer-events: none;
}

.article-detail-image-fallback::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -150px;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(248, 250, 252, 0.08), transparent 66%);
    pointer-events: none;
}

.article-detail-image-fallback div {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    text-align: center;
}

.article-detail-image-fallback span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1px solid rgba(248, 250, 252, 0.16);
    border-radius: 28px;
    background: rgba(248, 250, 252, 0.08);
    color: rgba(248, 250, 252, 0.9);
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 950;
}

.article-detail-image-fallback p {
    color: rgba(248, 250, 252, 0.58);
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.36fr);
    gap: 28px;
    align-items: start;
}

.article-detail-content {
    min-width: 0;
    padding: 48px;
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.88)),
        #ffffff;
    color: var(--color-text);
    box-shadow: var(--shadow-dark);
}

.article-detail-content > *:first-child {
    margin-top: 0;
}

.article-detail-content > *:last-child {
    margin-bottom: 0;
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4,
.article-detail-content h5,
.article-detail-content h6 {
    margin: 1.65em 0 0.65em;
    color: var(--color-text);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.article-detail-content h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.article-detail-content h3 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.article-detail-content p {
    margin-bottom: 1.25em;
    color: rgba(8, 11, 10, 0.72);
    font-size: 1.04rem;
    line-height: 1.78;
}

.article-detail-content a {
    color: var(--color-text);
    font-weight: 850;
    text-decoration: underline;
    text-decoration-color: rgba(8, 11, 10, 0.28);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.article-detail-content a:hover {
    text-decoration-color: rgba(8, 11, 10, 0.58);
}

.article-detail-content ul,
.article-detail-content ol {
    display: grid;
    gap: 10px;
    margin: 0 0 1.35em 1.25em;
    color: rgba(8, 11, 10, 0.72);
}

.article-detail-content ul {
    list-style: disc;
}

.article-detail-content ol {
    list-style: decimal;
}

.article-detail-content li {
    padding-left: 4px;
    line-height: 1.72;
}

.article-detail-content blockquote {
    margin: 2em 0;
    padding: 26px;
    border: 1px solid rgba(8, 11, 10, 0.08);
    border-left: 5px solid rgba(8, 11, 10, 0.86);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(8, 11, 10, 0.05), transparent 34%),
        #f4f6f4;
}

.article-detail-content blockquote p {
    margin: 0;
    color: rgba(8, 11, 10, 0.78);
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.6;
    letter-spacing: -0.035em;
}

.article-detail-content img {
    width: 100%;
    height: auto;
    margin: 2em 0;
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(8, 11, 10, 0.12);
}

.article-detail-content code {
    padding: 3px 7px;
    border: 1px solid rgba(8, 11, 10, 0.08);
    border-radius: 8px;
    background: rgba(8, 11, 10, 0.055);
    color: var(--color-text);
    font-size: 0.92em;
}

.article-detail-content pre {
    overflow-x: auto;
    margin: 2em 0;
    padding: 24px;
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 24px;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
}

.article-detail-content pre code {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.article-detail-content table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid rgba(8, 11, 10, 0.08);
    border-radius: 20px;
    background: #ffffff;
}

.article-detail-content th,
.article-detail-content td {
    padding: 16px;
    border-bottom: 1px solid rgba(8, 11, 10, 0.075);
    text-align: left;
    vertical-align: top;
}

.article-detail-content th {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 900;
}

.article-detail-content td {
    color: rgba(8, 11, 10, 0.7);
}

.article-detail-content tr:last-child td {
    border-bottom: 0;
}

.article-detail-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 18px;
}

.article-side-card {
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(248, 250, 252, 0.1);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(248, 250, 252, 0.08), rgba(248, 250, 252, 0.025)),
        rgba(248, 250, 252, 0.035);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
}

.article-side-card.primary {
    background:
        radial-gradient(circle at top right, rgba(248, 250, 252, 0.08), transparent 36%),
        linear-gradient(145deg, rgba(248, 250, 252, 0.09), rgba(248, 250, 252, 0.026)),
        rgba(248, 250, 252, 0.04);
}

.article-side-label {
    display: inline-flex;
    margin-bottom: 16px;
    color: rgba(248, 250, 252, 0.5);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-side-card h3 {
    margin-bottom: 14px;
    color: var(--color-text-light);
    font-size: 1.45rem;
    letter-spacing: -0.055em;
}

.article-side-card p {
    margin-bottom: 22px;
    color: rgba(248, 250, 252, 0.64);
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-side-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid rgba(248, 250, 252, 0.86);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    color: var(--color-bg-dark);
    font-weight: 900;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.article-side-button:hover {
    transform: translateY(-1px);
    border-color: #ffffff;
    background: #ffffff;
}

.article-service-list,
.article-related-list {
    display: grid;
    gap: 10px;
}

.article-service-list a,
.article-related-item {
    display: block;
    padding: 14px;
    border: 1px solid rgba(248, 250, 252, 0.08);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.045);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.article-service-list a {
    color: rgba(248, 250, 252, 0.76);
    font-size: 0.92rem;
    font-weight: 850;
}

.article-service-list a:hover,
.article-related-item:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 250, 252, 0.18);
    background: rgba(248, 250, 252, 0.075);
}

.article-related-item strong {
    display: block;
    margin-bottom: 7px;
    color: rgba(248, 250, 252, 0.9);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    line-height: 1.22;
    letter-spacing: -0.035em;
}

.article-related-item span {
    display: block;
    color: rgba(248, 250, 252, 0.55);
    font-size: 0.86rem;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .article-detail-layout {
        grid-template-columns: 1fr;
    }

    .article-detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-side-card.primary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .article-detail-page {
        padding: 155px 0 78px;
    }

    .article-detail-bg-word {
        display: none;
    }

    .article-detail-shell {
        width: min(100% - 28px, 1180px);
    }

    .article-detail-hero h1 {
        font-size: clamp(2.55rem, 13vw, 4rem);
    }

    .article-detail-image-wrap {
        min-height: 240px;
        height: 58vw;
        border-radius: 26px;
    }

    .article-detail-image-fallback {
        min-height: 310px;
        border-radius: 26px;
    }

    .article-detail-layout {
        gap: 18px;
    }

    .article-detail-content {
        padding: 28px;
        border-radius: 26px;
    }

    .article-detail-content p {
        font-size: 1rem;
    }

    .article-detail-content blockquote {
        padding: 22px;
        border-radius: 18px;
    }

    .article-detail-content pre {
        padding: 20px;
        border-radius: 18px;
    }

    .article-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .article-side-card,
    .article-side-card.primary {
        grid-column: auto;
        padding: 24px;
        border-radius: 24px;
    }
}