body {
    background: var(--manifest-detail-backdrop, var(--page-gradient));
    background-attachment: fixed;
}

body.dark-theme {
    background: var(--manifest-detail-backdrop, var(--page-gradient));
}

.wall-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-4) var(--space-16);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.wall-detail__hero {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    background: var(--color-bg-primary);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.wall-detail__eyebrow {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-500);
    margin-bottom: var(--space-1);
}

.wall-detail__hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
}

.wall-detail__tagline {
    font-size: var(--text-lg);
    color: var(--neutral-600);
}

.wall-detail__chips {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.wall-detail__chips span {
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
    padding: 0.4rem 1rem;
    font-size: var(--text-sm);
}

.wall-detail__hero-actions {
    display: flex;
    gap: var(--space-2);
}

.wall-detail__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background: transparent;
}

.wall-detail__cta:not(.is-secondary) {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.wall-detail__cta.is-secondary {
    background: transparent;
}

.wall-detail__hero-actions button {
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
}

.wall-detail__hero-actions button:first-child {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.wall-detail__hero-actions .is-secondary {
    background: transparent;
}

.wall-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(280px, 1fr);
    gap: var(--space-6);
}

.wall-detail__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.wall-detail__gallery {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.wall-detail__gallery-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-3);
}

.wall-detail__gallery-frame {
    border: 1px dashed var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    color: var(--neutral-500);
}

.wall-detail__gallery-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.wall-detail__gallery-steps button {
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
    padding: 0.35rem 0.85rem;
    background: transparent;
}

.wall-detail__body {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    background: var(--color-bg-primary);
}

.wall-detail__body h2 {
    margin-bottom: var(--space-3);
}

.wall-detail__body ul {
    list-style: disc;
    padding-left: var(--space-6);
    color: var(--neutral-600);
}

.wall-detail__discussion {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.wall-detail__discussion-header {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.wall-detail__discussion-header button {
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
    padding: 0.5rem 1.5rem;
    background: transparent;
    font-weight: 600;
}

.wall-comment {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
}

.wall-comment__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.wall-comment header {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.wall-detail__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: sticky;
    top: var(--space-6);
    align-self: start;
}

.wall-detail__card {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.wall-detail__card dl {
    display: grid;
    gap: var(--space-3);
}

.wall-detail__card dt {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-500);
}

.wall-detail__card dd {
    margin: 0;
    font-weight: 600;
}

.wall-detail__vote {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.wall-detail__vote button {
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-light);
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
}

.wall-detail__metrics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.wall-detail__metrics li {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.wall-detail__metrics strong {
    font-size: var(--text-2xl);
}

.manifest-gallery-frame img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.manifest-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    height: 280px;
    background: rgba(130, 50, 50, 0.05);
    border: 1px dashed rgba(130, 50, 50, 0.35);
    border-radius: var(--radius-xl);
    color: var(--color-text-tertiary);
}

.manifest-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.manifest-meta-grid div {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.95);
}

.manifest-meta-grid dt {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-1);
}

.manifest-meta-grid dd {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.manifest-timeline .wall-comment__avatar {
    background: rgba(130, 50, 50, 0.15);
    color: var(--color-text-primary);
    border: 1px solid rgba(130, 50, 50, 0.35);
}

@media (max-width: 960px) {
    .wall-detail__grid {
        grid-template-columns: 1fr;
    }

    .wall-detail__sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .wall-detail {
        padding: var(--space-6) var(--space-3) var(--space-10);
    }

    .wall-detail__hero h1 {
        font-size: var(--text-3xl);
    }

    .wall-detail__gallery-track {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Wall Detail Skeleton Loading
   =========================== */

/* Hero Skeleton */
.skeleton-detail-hero {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    background: var(--color-bg-primary);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.skeleton-detail-hero .skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.skeleton-detail-hero .skeleton-eyebrow {
    height: 0.65rem;
    width: 100px;
}

.skeleton-detail-hero .skeleton-title {
    height: 2.5rem;
    width: 70%;
}

.skeleton-detail-hero .skeleton-tagline {
    height: 1.25rem;
    width: 50%;
}

.skeleton-detail-hero .skeleton-chips {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.skeleton-detail-hero .skeleton-chip {
    height: 32px;
    width: 80px;
    border-radius: var(--radius-full);
}

.skeleton-detail-hero .skeleton-actions {
    display: flex;
    gap: var(--space-2);
}

/* Gallery Skeleton */
.skeleton-detail-gallery {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.skeleton-gallery-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-3);
}

.skeleton-gallery-frame {
    height: 140px;
    border-radius: var(--radius-xl);
}

.skeleton-gallery-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Body Section Skeleton */
.skeleton-detail-body {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.skeleton-detail-body .skeleton-heading {
    height: 1.5rem;
    width: 40%;
}

.skeleton-detail-body .skeleton-paragraph {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Discussion Skeleton */
.skeleton-detail-discussion {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.skeleton-comment {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
}

.skeleton-comment .skeleton-avatar {
    width: 48px;
    height: 48px;
}

.skeleton-comment-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Sidebar Card Skeleton */
.skeleton-detail-card {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.skeleton-detail-card .skeleton-dl {
    display: grid;
    gap: var(--space-3);
}

.skeleton-detail-card .skeleton-dl-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.skeleton-detail-card .skeleton-dt {
    height: 0.65rem;
    width: 60px;
}

.skeleton-detail-card .skeleton-dd {
    height: 1rem;
    width: 100px;
}

/* Metrics Skeleton */
.skeleton-metrics-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.skeleton-metric-item {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.skeleton-metric-item .skeleton-value {
    height: 1.75rem;
    width: 60%;
}

.skeleton-metric-item .skeleton-label {
    height: 0.75rem;
    width: 80%;
}

/* Meta Grid Skeleton */
.skeleton-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.skeleton-meta-item {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

body.dark-theme .skeleton-meta-item {
    background: rgba(15, 23, 42, 0.8);
}
