/* FMJ SQUAD wiki - same OLED black + gold as the main site and WolfRAT itself */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a00; color: #e8e8d0; line-height: 1.65; min-height: 100vh;
}
a { color: #e8c840; }
a:hover { color: #fff0a0; }

/* --- top bar (matches the home page) --- */
nav.top {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(10, 10, 0, 0.95); border-bottom: 1px solid #3a3a00; backdrop-filter: blur(10px);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 12px 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.nav-logo { font-size: 1.4rem; font-weight: bold; color: #e8c840; text-decoration: none; letter-spacing: 3px; white-space: nowrap; }
.nav-logo span { color: #888; font-weight: normal; font-size: 0.85rem; letter-spacing: 1px; }
.nav-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.nav-links a { color: #a8a870; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.here { color: #e8c840; }
.menu-btn {
    display: none; background: #1a1a05; color: #e8c840; border: 1px solid #3a3a00;
    border-radius: 6px; padding: 6px 12px; font-size: 0.9rem; cursor: pointer;
}

/* --- layout --- */
.shell { max-width: 1280px; margin: 0 auto; padding: 84px 24px 60px; display: flex; gap: 32px; align-items: flex-start; }
aside.side {
    width: 250px; flex: 0 0 250px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto;
    background: #0e0e02; border: 1px solid #2a2a00; border-radius: 10px; padding: 14px 10px;
}
aside.side h4 { color: #6a6a30; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; padding: 10px 10px 4px; }
aside.side a {
    display: block; padding: 7px 10px; border-radius: 6px; color: #c8c890; text-decoration: none; font-size: 0.93rem;
    border-left: 3px solid transparent;
}
aside.side a:hover { background: #1a1a05; color: #e8c840; }
aside.side a.here { background: #1f1f06; color: #e8c840; border-left-color: #e8c840; font-weight: 600; }
aside.side a .ico { display: inline-block; width: 1.5em; }
.side-search {
    width: 100%; padding: 8px 10px; margin-bottom: 6px; background: #0a0a00; color: #e8e8d0;
    border: 1px solid #3a3a00; border-radius: 6px; font-size: 0.9rem;
}
.side-search:focus { outline: none; border-color: #e8c840; }
#search-results { display: none; padding: 4px 0 8px; }
#search-results a { font-size: 0.86rem; }
#search-results small { display: block; color: #6a6a30; }

main.page { flex: 1 1 auto; min-width: 0; }
.crumbs { color: #6a6a30; font-size: 0.85rem; margin-bottom: 10px; }
.crumbs a { color: #a8a870; text-decoration: none; }
h1 { color: #e8c840; font-size: 2.2rem; letter-spacing: 2px; text-shadow: 0 0 30px rgba(232, 200, 64, 0.25); line-height: 1.2; }
.lead { color: #c8c890; font-size: 1.12rem; margin: 10px 0 22px; max-width: 760px; }
h2 {
    color: #e8c840; font-size: 1.4rem; margin: 38px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #2a2a00;
}
h3 { color: #f0d860; font-size: 1.08rem; margin: 24px 0 8px; }
p { margin: 10px 0; max-width: 820px; }
ul, ol { margin: 10px 0 10px 24px; max-width: 800px; }
li { margin: 5px 0; }
strong { color: #fff4c0; }
code, kbd {
    font-family: Consolas, 'Courier New', monospace; background: #15150a; color: #f0d860;
    border: 1px solid #2a2a00; border-radius: 4px; padding: 1px 6px; font-size: 0.92em; white-space: nowrap;
}
.btn-name { color: #e8c840; font-weight: 600; white-space: nowrap; }

/* --- boxes --- */
.box, .tip, .warn, .note { border-radius: 8px; padding: 12px 16px; margin: 16px 0; max-width: 820px; border: 1px solid; }
.tip p:first-of-type, .warn p:first-of-type, .note p:first-of-type { margin-top: 0; }
.tip p:last-child, .warn p:last-child, .note p:last-child { margin-bottom: 0; }
.tip { background: #0f1400; border-color: #3a4a00; }
.tip::before { content: "TIP"; color: #b8e040; }
.warn { background: #1a0e00; border-color: #5a3000; }
.warn::before { content: "WATCH OUT"; color: #ff9a40; }
.note { background: #0e0e02; border-color: #3a3a00; }
.note::before { content: "GOOD TO KNOW"; color: #e8c840; }
.tip::before, .warn::before, .note::before { display: block; font-size: 0.7rem; letter-spacing: 2px; font-weight: bold; margin-bottom: 4px; }

/* --- tables --- */
table { border-collapse: collapse; margin: 14px 0; width: 100%; max-width: 900px; font-size: 0.95rem; }
th { text-align: left; color: #e8c840; background: #1a1a05; padding: 9px 12px; border: 1px solid #2a2a00; }
td { padding: 8px 12px; border: 1px solid #2a2a00; vertical-align: top; }
tr:nth-child(even) td { background: #0e0e02; }
td:first-child { white-space: nowrap; }
td.wrap:first-child { white-space: normal; }
.who { font-size: 0.72rem; letter-spacing: 1px; border-radius: 10px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.who.all { background: #12200a; color: #a0e060; border: 1px solid #2a4a10; }
.who.mod { background: #201a05; color: #e8c840; border: 1px solid #4a3a00; }

/* --- screenshots --- */
figure { margin: 18px 0 22px; max-width: 900px; }
figure img {
    width: 100%; height: auto; display: block; border: 1px solid #3a3a00; border-radius: 8px;
    box-shadow: 0 0 30px rgba(232, 200, 64, 0.08); cursor: zoom-in;
}
figure.small { max-width: 460px; }
figcaption { color: #6a6a30; font-size: 0.85rem; margin-top: 6px; }
#zoom { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.92); cursor: zoom-out; padding: 20px; }
#zoom img { max-width: 100%; max-height: 100%; margin: auto; display: block; position: relative; top: 50%; transform: translateY(-50%); }

/* --- home cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; }
.card {
    display: block; text-decoration: none; background: #0e0e02; border: 1px solid #2a2a00; border-radius: 10px;
    padding: 16px; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: #e8c840; transform: translateY(-2px); }
.card .t { color: #e8c840; font-weight: 600; font-size: 1.05rem; }
.card .d { color: #a8a870; font-size: 0.9rem; margin-top: 4px; }
.hero-wiki { padding: 8px 0 6px; }

/* --- on this page + prev/next --- */
.toc { background: #0e0e02; border: 1px solid #2a2a00; border-radius: 8px; padding: 10px 16px; margin: 6px 0 8px; max-width: 520px; }
.toc b { color: #6a6a30; font-size: 0.72rem; letter-spacing: 2px; }
.toc a { display: block; text-decoration: none; color: #c8c890; padding: 2px 0; font-size: 0.93rem; }
.toc a:hover { color: #e8c840; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 46px; padding-top: 18px; border-top: 1px solid #2a2a00; }
.pager a { text-decoration: none; background: #15150a; border: 1px solid #3a3a00; border-radius: 8px; padding: 10px 16px; color: #e8c840; }
.pager a:hover { border-color: #e8c840; }
.pager small { display: block; color: #6a6a30; }
footer { text-align: center; color: #5a5a30; font-size: 0.82rem; padding: 26px 24px 40px; border-top: 1px solid #1a1a00; }
footer a { color: #8a8a50; }

@media (max-width: 880px) {
    .shell { flex-direction: column; padding-top: 74px; gap: 14px; }
    aside.side { display: none; position: static; width: 100%; flex: none; max-height: none; }
    aside.side.open { display: block; }
    .menu-btn { display: inline-block; }
    .nav-links { display: none; }
    h1 { font-size: 1.7rem; }
    td:first-child { white-space: normal; }
}

/* --- scroll bars in the site's colours (the browser default is a white slab) --- */
* { scrollbar-width: thin; scrollbar-color: #4a4a10 #0a0a00; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a00; }
::-webkit-scrollbar-thumb { background: #3a3a00; border-radius: 6px; border: 2px solid #0a0a00; }
::-webkit-scrollbar-thumb:hover { background: #e8c840; }
