.wiki {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: 0.5rem;
}

.wiki-nav {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wiki-nav__label {
    margin: 0.85rem 0 0.2rem;
    color: #c4a35a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wiki-nav button {
    border: 0;
    background: transparent;
    color: #d4d4d4;
    text-align: left;
    font: inherit;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
}

.wiki-nav button.is-active {
    background: rgba(196, 163, 90, 0.16);
    color: #fff;
}

.wiki-crumb {
    margin: 0 0 0.45rem;
    color: #8a8a8a;
    font-size: 0.78rem;
}

.wiki-main h3 {
    margin: 0 0 0.65rem;
}

.wiki-kinds,
.wiki-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0.75rem 0 1rem;
}

.wiki-home-grid {
    grid-template-columns: 1fr 1fr;
}

.wiki-kind,
.wiki-faction {
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    background: #141414;
    padding: 0.9rem 1rem;
}

.wiki-kind strong,
.wiki-faction strong {
    display: block;
    margin-bottom: 0.35rem;
}

.wiki-kind p,
.wiki-faction p {
    margin: 0;
    color: #c8c8c8;
    font-size: 0.9rem;
    line-height: 1.45;
}

button.wiki-faction {
    width: 100%;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

button.wiki-faction:hover {
    border-color: rgba(196, 163, 90, 0.55);
}

.wiki-squads {
    margin: 0.4rem 0 0.8rem;
}

.wiki-squad {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid #2a2a2a;
    color: inherit;
    text-decoration: none;
}

a.wiki-squad:hover span:first-child {
    color: #c4a35a;
}

.wiki-status {
    color: #c4a35a;
    font-size: 0.78rem;
    white-space: nowrap;
}

.wiki-status.is-empty {
    color: #8a8a8a;
}

.archives-drawers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 1.25rem;
}

.archives-drawer {
    border: 1px solid rgba(196, 163, 90, 0.35);
    background: transparent;
    color: #e5e5e5;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    cursor: pointer;
    font: inherit;
}

.archives-drawer.is-active {
    background: #c4a35a;
    color: #111;
    border-color: #c4a35a;
}

.archives-panel[hidden] {
    display: none;
}

body.is-archives-tab .campaign-quick-facts {
    display: none;
}

.archives-hero {
    padding: 1.25rem 0 2rem;
}

.archives-hero h1,
.archives-hero h2 {
    margin: 0 0 0.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.archives-lead {
    max-width: 42rem;
    color: #b0b0b0;
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.archives-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.9rem;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    background: #141414;
    color: inherit;
    text-decoration: none;
}

.archives-card:hover {
    border-color: rgba(196, 163, 90, 0.55);
}

.archives-card__visual {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.55rem;
    align-items: center;
}

.archives-card img,
.archives-fiche__banner img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    background: #1a1a1a;
}

.archives-card__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #0f0f0f;
}

.archives-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.archives-card p,
.archives-meta {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.88rem;
}

.archives-fiche {
    margin-top: 1.25rem;
    padding: 1.1rem;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    background: #121212;
}

.archives-fiche__banner {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.archives-fiche__banner img.logo {
    height: 120px;
    object-fit: contain;
    background: #0f0f0f;
}

.archives-block {
    margin: 0 0 0.9rem;
}

.archives-block h3 {
    margin: 0 0 0.3rem;
    color: #c4a35a;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.archives-filters {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.archives-write {
    max-width: 720px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
}

.archives-write label {
    display: block;
    margin: 0.85rem 0 0.3rem;
    font-size: 0.85rem;
}

.archives-write input[type="text"],
.archives-write textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #404040;
    background: #1a1a1a;
    color: #fff;
    font: inherit;
}

.archives-write .hint {
    color: #94a3b8;
    font-size: 0.78rem;
}

.archives-check {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 0.75rem;
}

.archives-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

.arch-canon {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    gap: 1rem;
    align-items: stretch;
}

.arch-story,
.arch-quote,
.arch-chapter,
.arch-chip {
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    background: #141414;
}

.arch-story {
    padding: 1.1rem 1.2rem;
    max-width: 46rem;
}

.arch-story p,
.arch-more p,
.arch-lead {
    margin: 0 0 0.75rem;
    line-height: 1.55;
    color: #d4d4d4;
}

.arch-kicker {
    margin: 0 0 0.45rem;
    color: #c4a35a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.arch-quote {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 1.1rem 1.15rem;
    color: #f5f5f5;
    font-size: 1.05rem;
    line-height: 1.45;
}

.arch-more {
    margin-top: 0.4rem;
}

.arch-more summary {
    cursor: pointer;
    color: #c4a35a;
    font-size: 0.85rem;
}

.arch-more p {
    margin-top: 0.75rem;
}

.arch-chapters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.arch-chapter {
    padding: 0.9rem 1rem;
}

.arch-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.55rem;
}

button.arch-chip {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    padding: 0.7rem 0.75rem;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

button.arch-chip.is-on {
    border-color: rgba(196, 163, 90, 0.85);
    background: #1a1814;
}

.arch-readout {
    margin: 0.7rem 0 0;
    padding: 0.15rem 0 0.15rem 0.85rem;
    border-left: 2px solid #c4a35a;
    color: #d4d4d4;
    line-height: 1.45;
}

.arch-readout:empty {
    display: none;
}

.arch-chapter h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
}

.arch-chip strong {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
}

.arch-chapter p,
.arch-chip p {
    margin: 0;
    color: #b0b0b0;
    font-size: 0.86rem;
    line-height: 1.45;
}

.arch-chapter.is-featured {
    border-color: rgba(196, 163, 90, 0.7);
}

.arch-chapter.is-locked {
    opacity: 0.55;
}

.arch-chip span {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #c4a35a;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.arch-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.arch-shot {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #141414;
}

.arch-shot.is-wide {
    grid-column: 1 / -1;
}

.arch-shot img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.arch-shot.is-wide img {
    height: 320px;
}

.arch-shot figcaption {
    padding: 0.45rem 0.7rem 0.6rem;
    color: #b0b0b0;
    font-size: 0.78rem;
}

.arch-lead {
    max-width: 46rem;
}

#archivesThreats {
    display: block;
    margin-top: 1.25rem;
}

#archivesEmpty {
    padding: 1.5rem;
    border: 1px dashed #404040;
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 800px) {
    .wiki,
    .wiki-kinds,
    .wiki-home-grid,
    .arch-canon,
    .arch-gallery {
        grid-template-columns: 1fr;
    }

    .wiki-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .arch-shot.is-wide img,
    .arch-shot img {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .archives-fiche__banner {
        grid-template-columns: 1fr;
    }
}
