.atlas-page--detail {
    background: var(--atlas-paper);
}

.wall-detail {
    width: 100%;
    margin: 0;
    padding: 0 0 clamp(72px, 10vw, 150px);
    color: var(--atlas-ink);
}

.manifest-artifact-stage {
    position: relative;
    display: grid;
    min-height: min(820px, calc(100svh - 72px));
    align-items: center;
    overflow: hidden;
    padding: clamp(90px, 9vw, 150px) clamp(28px, 6vw, 96px) 72px;
    background-color: var(--atlas-paper);
    background-image: radial-gradient(
        circle,
        rgba(11, 42, 74, 0.22) 1.25px,
        transparent 1.5px
    );
    background-position: 0 0;
    background-size: 20px 20px;
}

.manifest-artifact-stage__back {
    position: absolute;
    z-index: 4;
    top: calc(var(--header-clearance, 72px) + 20px);
    left: clamp(28px, 6vw, 96px);
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--atlas-ink);
    font-size: 0.78rem;
    text-decoration: none;
}

.manifest-artifact-stage__back:hover,
.manifest-artifact-stage__back:focus-visible {
    color: var(--atlas-blue);
}

.manifest-artifact-stage__source {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: clamp(46px, 13vw, 210px);
    display: grid;
    justify-items: center;
    gap: 18px;
    transform: translateY(-50%);
}

.manifest-artifact-stage__source span {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    border: 1px solid var(--atlas-blue);
    border-radius: 50%;
    background: var(--atlas-paper);
}

.manifest-artifact-stage__source span::before,
.manifest-artifact-stage__source span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--atlas-blue);
    transform: translate(-50%, -50%);
}

.manifest-artifact-stage__source span::before {
    width: 42px;
    height: 1px;
}

.manifest-artifact-stage__source span::after {
    width: 1px;
    height: 42px;
}

.manifest-artifact-stage__source strong {
    font-size: 0.76rem;
    font-weight: 620;
}

.manifest-artifact-stage__tether {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: clamp(64px, calc(13vw + 18px), 228px);
    width: clamp(190px, 25vw, 420px);
    height: 1px;
    background: var(--atlas-blue);
}

.manifest-artifact {
    position: relative;
    z-index: 3;
    justify-self: end;
    width: clamp(40rem, 46vw, 46rem);
    min-height: 480px;
    margin-right: clamp(0px, 3vw, 50px);
    padding: clamp(30px, 4vw, 58px);
    border-radius: 2px;
    background: var(--atlas-surface);
}

.manifest-artifact::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--manifest-color, var(--atlas-blue));
}

.manifest-artifact > img {
    display: block;
    width: 100%;
    max-height: 390px;
    margin-bottom: clamp(28px, 4vw, 48px);
    object-fit: cover;
}

.manifest-artifact__pin {
    position: absolute;
    top: 22px;
    left: 50%;
    display: block;
    width: 9px;
    height: 9px;
    border: 2px solid var(--atlas-surface);
    border-radius: 50%;
    background: var(--manifest-color, var(--atlas-blue));
    box-shadow: 0 0 0 1px var(--manifest-color, var(--atlas-blue));
    transform: translateX(-50%);
}

.manifest-artifact__category {
    margin: 0 0 14px;
    color: var(--atlas-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.manifest-artifact h1 {
    max-width: 13ch;
    margin: 0;
    color: var(--atlas-ink);
    font-size: clamp(2.8rem, 5vw, 5.8rem);
    font-weight: 510;
    line-height: 0.92;
    letter-spacing: -0.058em;
}

.manifest-artifact__message {
    max-width: 36ch;
    margin: clamp(24px, 3vw, 40px) 0 0;
    color: var(--atlas-muted);
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    line-height: 1.55;
}

.manifest-artifact footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: clamp(36px, 5vw, 70px);
    padding-top: 18px;
    border-top: 1px solid var(--atlas-line);
    color: var(--atlas-muted);
    font-size: 0.76rem;
}

.manifest-detail__below {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.manifest-artifact-facts,
.manifest-public-facts,
.manifest-comments {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr);
    gap: clamp(36px, 7vw, 110px);
    padding: clamp(52px, 7vw, 94px) 0;
    border-top: 1px solid var(--atlas-line);
}

.manifest-artifact-facts > header p,
.manifest-public-facts > header p {
    margin: 0 0 8px;
    color: var(--atlas-blue);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.manifest-artifact-facts h2,
.manifest-public-facts h2,
.manifest-comments h2 {
    margin: 0;
    color: var(--atlas-ink);
    font-size: clamp(1.7rem, 2.8vw, 3rem);
    font-weight: 520;
    line-height: 1;
    letter-spacing: -0.04em;
}

.manifest-meta-grid,
.manifest-public-facts dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
}

.manifest-meta-grid > div,
.manifest-public-facts dl > div {
    padding: 0 0 20px;
    border-bottom: 1px solid var(--atlas-line);
}

.manifest-meta-grid dt,
.manifest-public-facts dt {
    margin: 0 0 10px;
    color: var(--atlas-muted);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.manifest-meta-grid dd,
.manifest-public-facts dd {
    margin: 0;
    color: var(--atlas-ink);
    font-size: 1rem;
    font-weight: 600;
}

.manifest-comments {
    grid-template-areas:
        "heading content"
        "action content";
}

.manifest-comments__header {
    grid-area: heading;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.manifest-comments__header span {
    color: var(--atlas-blue);
    font-size: 0.75rem;
}

.manifest-comments__input-box,
.manifest-comments__login-btn {
    grid-area: action;
    align-self: start;
}

.manifest-comments__input-box {
    display: grid;
    gap: 12px;
}

.manifest-comments__input-box textarea {
    min-height: 120px;
    resize: vertical;
    border: 0;
    border-bottom: 1px solid var(--atlas-line);
    padding: 14px 0;
    color: var(--atlas-ink);
    background: transparent;
}

.manifest-comments__input-box button,
.manifest-comments__login-btn {
    width: fit-content;
    min-height: 44px;
    border: 1px solid var(--atlas-blue);
    border-radius: 2px;
    padding: 0 18px;
    color: #fff;
    background: var(--atlas-blue);
    font-weight: 620;
    text-decoration: none;
}

.manifest-comments__login-btn {
    display: inline-flex;
    align-items: center;
}

.manifest-comments__feed {
    grid-area: content;
    display: grid;
    gap: 0;
}

.manifest-comments__feed > p {
    margin: 0;
    color: var(--atlas-muted);
}

.wall-comment {
    display: block;
    padding: 22px 0;
    border: 0;
    border-bottom: 1px solid var(--atlas-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wall-comment header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--atlas-muted);
    font-size: 0.75rem;
}

.wall-comment p {
    margin: 10px 0 0;
}

.wall-empty {
    display: grid;
    min-height: 70svh;
    place-content: center;
    justify-items: start;
    width: min(720px, calc(100% - 48px));
    margin: 0 auto;
}

.wall-empty h1 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 510;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.wall-empty p {
    max-width: 38rem;
    color: var(--atlas-muted);
}

.wall-empty a {
    color: var(--atlas-blue);
}

@media (max-width: 980px) {
    .manifest-artifact-stage {
        min-height: auto;
        grid-template-rows: auto auto auto;
        gap: 26px;
        padding-top: 100px;
    }

    .manifest-artifact-stage__source {
        position: relative;
        top: auto;
        left: auto;
        grid-row: 1;
        justify-self: start;
        transform: none;
    }

    .manifest-artifact-stage__tether {
        position: relative;
        top: auto;
        left: 8px;
        grid-row: 2;
        width: 1px;
        height: 42px;
        background: var(--atlas-blue);
    }

    .manifest-artifact {
        grid-row: 3;
        justify-self: center;
        width: min(46rem, 100%);
        margin: 0;
    }
}

@media (max-width: 700px) {
    .manifest-artifact-stage {
        padding: calc(var(--header-clearance, 80px) + 180px) 16px 44px;
        background-size: 18px 18px;
    }

    .manifest-artifact-stage__back {
        top: calc(var(--header-clearance, 80px) + 125px);
        left: 16px;
    }

    .manifest-artifact {
        min-height: 0;
        padding: 28px 22px;
    }

    .manifest-artifact h1 {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .manifest-artifact footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .manifest-detail__below {
        width: min(100% - 32px, 1180px);
    }

    .manifest-artifact-facts,
    .manifest-public-facts,
    .manifest-comments {
        display: block;
        padding: 46px 0;
    }

    .manifest-meta-grid,
    .manifest-public-facts dl {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .manifest-comments__input-box,
    .manifest-comments__login-btn,
    .manifest-comments__feed {
        margin-top: 30px;
    }
}
