body.page-template-page-scp-foundation-cn-branch .grid-base,
body.page-template-page-scp-foundation-cn-branch .grid-glow {
    opacity: 0.12;
}

.scp-archive-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 8%, rgba(181, 18, 27, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(9, 9, 9, 0.98), rgba(18, 17, 15, 0.96) 46%, rgba(5, 5, 5, 0.99)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px);
    color: #f4f1e8;
}

.scp-archive-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(112px, 14vh, 160px) 0 96px;
}

.scp-archive-hero,
.scp-briefing,
.scp-file-card,
.scp-empty-state {
    border: 1px solid rgba(244, 241, 232, 0.18);
    background: rgba(11, 11, 10, 0.82);
    box-shadow: 0 0 0 1px rgba(181, 18, 27, 0.16), 0 22px 70px rgba(0, 0, 0, 0.42);
}

.scp-archive-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 42px);
}

.scp-archive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(244, 241, 232, 0.05), transparent),
        repeating-linear-gradient(90deg, rgba(244, 241, 232, 0.04) 0 1px, transparent 1px 90px);
    opacity: 0.5;
}

.scp-clearance-line,
.scp-file-topline,
.scp-status-label,
.scp-section-heading p,
.scp-file-meta {
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scp-clearance-line {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #d9d2bf;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(244, 241, 232, 0.18);
    padding-bottom: 16px;
}

.scp-clearance-line span::before {
    content: "[ ";
    color: #b5121b;
}

.scp-clearance-line span::after {
    content: " ]";
    color: #b5121b;
}

.scp-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: clamp(22px, 4vw, 42px);
    align-items: center;
    margin-top: 32px;
}

.scp-emblem {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 3px solid #f4f1e8;
    outline: 1px solid rgba(181, 18, 27, 0.82);
    outline-offset: -12px;
    background:
        radial-gradient(circle, rgba(244, 241, 232, 0.92), rgba(244, 241, 232, 0.62) 54%, rgba(181, 18, 27, 0.18)),
        #080808;
    overflow: hidden;
}

.scp-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.22);
    mix-blend-mode: multiply;
}

.scp-kicker {
    margin: 0 0 8px;
    color: #b5121b;
    font-family: "ZCOOLQingKeHuangYou-Regular", Consolas, monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.scp-hero-copy h1,
.scp-section-heading h2,
.scp-briefing h2 {
    margin: 0;
    font-family: "ZCOOLQingKeHuangYou-Regular", "Arial Narrow", sans-serif;
    letter-spacing: 0.06em;
}

.scp-hero-copy h1 {
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    line-height: 0.92;
}

.scp-lede-question {
    margin: 20px 0 6px;
    color: #f4f1e8;
    font-family: "ZCOOLQingKeHuangYou-Regular", "Arial Narrow", sans-serif;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    letter-spacing: 0.08em;
}

.scp-hero-copy p:last-child {
    max-width: 760px;
    color: #d9d2bf;
    line-height: 1.8;
}

.scp-foundation-link {
    color: #f4f1e8;
    text-decoration: none;
    border-bottom: 1px solid rgba(181, 18, 27, 0.9);
}

.scp-foundation-link:hover,
.scp-foundation-link:focus-visible {
    color: #fff;
    background: rgba(181, 18, 27, 0.24);
    outline: none;
}

.scp-status-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 34px;
    background: rgba(244, 241, 232, 0.18);
}

.scp-status-grid > div {
    padding: 16px;
    background: rgba(7, 7, 7, 0.9);
}

.scp-status-label {
    display: block;
    color: #9f9684;
    font-size: 0.72rem;
    margin-bottom: 8px;
}

.scp-status-grid strong {
    display: block;
    color: #f4f1e8;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.scp-briefing {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: center;
    margin-top: 22px;
    padding: 24px;
}

.scp-briefing-stamp {
    justify-self: start;
    color: #b5121b;
    border: 3px solid currentColor;
    padding: 8px 14px;
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.08em;
    transform: rotate(-4deg);
}

.scp-briefing p {
    margin: 10px 0 0;
    color: #d9d2bf;
    line-height: 1.75;
}

.scp-quote-stack {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.scp-quote-stack blockquote {
    margin: 0;
    padding: 16px 18px;
    border-left: 3px solid #b5121b;
    background: rgba(181, 18, 27, 0.08);
}

.scp-quote-stack blockquote p {
    margin: 0;
    color: #f4f1e8;
}

.scp-quote-stack cite {
    display: block;
    margin-top: 10px;
    color: #9f9684;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.82rem;
    font-style: normal;
    text-align: right;
}

.scp-index {
    margin-top: 46px;
}

.scp-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 2px solid #b5121b;
    padding-bottom: 14px;
    margin-bottom: 22px;
}

.scp-section-heading p {
    margin: 0;
    color: #9f9684;
    font-size: 0.8rem;
}

.scp-section-heading h2 {
    color: #f4f1e8;
    font-size: clamp(1.55rem, 3.5vw, 2.6rem);
}

.scp-file-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.scp-file-card {
    position: relative;
    min-height: 300px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scp-file-card::after {
    content: "SECURE CONTAIN PROTECT";
    position: absolute;
    right: -34px;
    bottom: 22px;
    color: rgba(244, 241, 232, 0.045);
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    transform: rotate(-90deg);
    pointer-events: none;
}

.scp-file-card:hover,
.scp-file-card:focus-within {
    border-color: rgba(181, 18, 27, 0.85);
    background: rgba(18, 13, 13, 0.92);
    transform: translateY(-2px);
}

.scp-file-hitbox {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.scp-file-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #b5121b;
    font-size: 0.75rem;
    margin-bottom: 18px;
}

.scp-file-card h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.25;
}

.scp-file-card h3 a {
    color: #f4f1e8;
    text-decoration: none;
}

.scp-file-card h3 a:focus-visible {
    outline: 2px solid #f4f1e8;
    outline-offset: 4px;
}

.scp-file-excerpt {
    position: relative;
    z-index: 2;
    color: #cfc6b4;
    line-height: 1.7;
    margin: 18px 0;
    flex: 1;
}

.scp-file-meta {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 6px;
    color: #9f9684;
    font-size: 0.76rem;
    border-top: 1px dashed rgba(244, 241, 232, 0.2);
    padding-top: 12px;
}

.scp-file-tags {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.scp-file-tags a {
    color: #f4f1e8;
    border: 1px solid rgba(181, 18, 27, 0.72);
    background: rgba(181, 18, 27, 0.16);
    padding: 5px 9px;
    text-decoration: none;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
}

.scp-file-tags a:hover,
.scp-file-tags a:focus-visible {
    background: #b5121b;
    outline: none;
}

.scp-empty-state {
    padding: 28px;
    color: #d9d2bf;
}

.scp-empty-state strong {
    color: #b5121b;
    font-family: Consolas, "Courier New", monospace;
}

.scp-return {
    margin-top: 52px;
    text-align: center;
}

@media (max-width: 980px) {
    .scp-hero-layout,
    .scp-briefing {
        grid-template-columns: 1fr;
    }

    .scp-emblem {
        width: 138px;
    }

    .scp-status-grid,
    .scp-file-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .scp-archive-shell {
        width: min(100% - 22px, 1180px);
        padding-top: 104px;
    }

    .scp-clearance-line,
    .scp-section-heading {
        display: block;
    }

    .scp-clearance-line span {
        display: block;
        margin-bottom: 8px;
    }

    .scp-status-grid,
    .scp-file-grid {
        grid-template-columns: 1fr;
    }

    .scp-archive-hero,
    .scp-briefing,
    .scp-file-card {
        padding: 18px;
    }
}
