/* =========================================================
   THINK INDUSTRIES — shared layout for mission (level) pages
   ========================================================= */
:root {
    --bg-dark: #0a0b10;
    --accent-green: #00ff41;
    --accent-blue: #00d4ff;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(0, 255, 65, 0.3);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}
body::before {
    content: " "; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%);
    background-size: 100% 3px;
}
a { color: var(--accent-blue); }
.nav-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: rgba(10, 11, 16, 0.95); position: sticky; top: 0; z-index: 50;
}
.back-link { color: var(--accent-blue); text-decoration: none; font-weight: bold; font-size: 0.9rem; }
.nav-right { display: flex; gap: 14px; align-items: center; font-family: monospace; font-size: 0.8rem; }
.nav-right a { color: var(--accent-green); text-decoration: none; }
.container { max-width: 1100px; margin: 30px auto; padding: 0 16px; }
.briefing-box {
    background: var(--glass); border: 1px solid var(--border); padding: 32px; border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.08);
}
@media (max-width: 600px) { .briefing-box { padding: 18px 12px; } .container { margin: 15px auto; padding: 0 10px; } }
h1 {
    color: var(--accent-green); text-transform: uppercase; letter-spacing: 3px; margin: 0 0 6px;
    border-left: 4px solid var(--accent-green); padding-left: 15px; font-size: clamp(1.3rem, 4vw, 2rem);
}
.subtitle { color: #9aa; margin: 0 0 20px; }
.lesson { margin-top: 46px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); scroll-margin-top: 80px; }
.lesson > h2 { color: var(--accent-blue); font-size: 1.35rem; margin: 0 0 10px; }
.lesson > h2 .num { font-family: monospace; color: var(--accent-green); margin-right: 8px; }
h3 { color: #fff; font-size: 1.05rem; margin: 22px 0 6px; }
code { background: #000; color: var(--accent-green); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
pre.ti-code code { background: none; padding: 0; }
.step-card { margin: 15px 0; padding: 12px 16px; border-left: 3px solid var(--accent-blue); background: rgba(0, 212, 255, 0.04); border-radius: 0 8px 8px 0; }
table.ref { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 12px 0; }
table.ref th, table.ref td { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 8px; text-align: left; vertical-align: top; }
table.ref th { color: var(--accent-blue); font-weight: normal; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
table.ref code { white-space: nowrap; }
@media (max-width: 700px) {
    table.ref { display: block; overflow-x: auto; font-size: 0.82rem; }
    table.ref code { white-space: normal; word-break: break-word; }
    table.ref th, table.ref td { padding: 6px 5px; }
}
.table-wrap { overflow-x: auto; }
.status-footer { margin: 40px 0 20px; text-align: center; font-family: monospace; color: #555; }
