body {
    background-color: #070c14; 
    
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #cbd5e1; 
    padding: 1vw;
    margin: 0;
    min-height: 100vh;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(3, 15, 25, 0.85);
    border-bottom: 2px solid #00f0ff;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
    backdrop-filter: blur(5px); 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-sizing: border-box;
    z-index: 1000;
}

.logo {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    margin: 0;
}

.topbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.topbar li {
    margin-left: 20px;
}

.topbar a {
    color: #00f0ff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

/* Hover state mimics game warnings (Yellow accent) */
.topbar a:hover {
    color: #ffe600;
    border-bottom: 2px solid #ffe600;
    text-shadow: 0 0 5px rgba(255, 230, 0, 0.5);
}

/* --- Content Typography & Structural Layout --- */
.content {
    padding-top: 20px;
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1200px; /* Keeps long text lines bounded and easy to track */
    margin: 0 auto;
}

/* Primary Document Header */
h1 {
    margin-top: 100px; /* Pushes cleanly below the fixed topbar */
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    font-size: 2.2rem;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.content h2 {
    color: #ffffff;
    text-transform: uppercase;
    border-left: 4px solid #00f0ff;
    padding-left: 12px;
    margin-top: 40px;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.content h3 {
    color: #00f0ff;
    margin-top: 25px;
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    font-size: 1rem;
}

strong {
    color: #ffe600; /* Uses the UI yellow accent for key focus elements */
}

.content ul {
    list-style: none; /* Strip default bullets */
    padding-left: 20px;
    margin-bottom: 20px;
}

.content ul li {
    position: relative;
    margin-bottom: 8px;
}

.content ul li::before {
    content: "\2014"; /* Safe hex code for an em-dash, fixes encoding glitch */
    color: #00f0ff;
    font-weight: bold;
    position: absolute;
    left: -25px; /* Pushed out slightly further so it doesn't overlap text */
    text-shadow: 0 0 4px rgba(0, 240, 255, 0.8);
}

.content ul ul {
    margin-top: 8px;
    padding-left: 25px;
}

.content ul ul li::before {
    content: "\203A"; /* Safe hex code for a '›' caret character */
    color: #ffe600; 
    left: -20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: rgba(6, 18, 30, 0.6);
    border: 1px solid #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
    font-size: 0.9rem;
}

th {
    background-color: rgba(0, 240, 255, 0.15);
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    text-align: left;
}

td {
    padding: 12px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    vertical-align: top;
}

tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

tbody tr td:first-child {
    color: #ffe600;
    font-weight: bold;
    text-align: center;
}

td br {
    content: "";
    margin-bottom: 4px;
    display: block;
}

#reports_container {
    display: flex;
    flex-direction: column;
    gap: 40px; 
    margin-top: 30px;
}

#report {
    background-color: rgba(12, 22, 36, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-left: 5px solid #00f0ff; 
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Week Heading Date (e.g., Week 10, Monday...) */
#report h2 {
    color: #ffffff;
    margin-top: 0;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 12px;
}

/* Sub-containers inside reports (Group vs Individual dividers) */
#report_sub_container {
    margin-top: 25px;
}

/* Sub-container section titles (e.g., Group Status Report) */
#report_sub_container h3 {
    color: #00f0ff;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Small Sub-headers (e.g., Weekly Status Summary, Group Morale) */
#report_sub_container h4 {
    color: #ffe600; /* Subtle warm yellow for tracking secondary metrics */
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-top: 20px;
    margin-bottom: 8px;
}

/* Paragraph handling inside modules */
#report_sub_container p {
    font-size: 0.98rem;
    margin-top: 0;
    margin-bottom: 14px;
    color: #cbd5e1;
}

/* --- Media / Screenshots Elements --- */
img {
    display: block;
    max-width: 100%; /* Keeps screenshots responsive */
    height: auto;
    margin: 15px 0 25px 0;
    border: 1px solid #00f0ff; /* Clean HUD frame outline */
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    border-radius: 2px;
}

/* --- Document Safe Lists & Links --- */
#report_sub_container ul {
    list-style: none; /* Strip stock bullet markers */
    padding-left: 20px;
    margin-bottom: 20px;
}

#report_sub_container ul li {
    position: relative;
    margin-bottom: 8px;
    font-size: 0.98rem;
}

/* Secure hex characters to avoid string corruption (Glitch Fix) */
#report_sub_container ul li::before {
    content: "\2014"; /* Unicode Em-Dash */
    color: #00f0ff;
    font-weight: bold;
    position: absolute;
    left: -25px;
    text-shadow: 0 0 4px rgba(0, 240, 255, 0.8);
}

/* Styling for Individual Report Team Member Lists */
#report_sub_container ul li a {
    color: #00f0ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

#report_sub_container ul li a:hover {
    color: #ffe600;
    text-decoration: underline;
}

/* ── section dividers ── */
.section-label {
    font-size: 30px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 56px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

h2 {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 16px;
    line-height: 1.3;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin: 24px 0 8px;
}

p { margin-bottom: 14px; }

p:last-child { margin-bottom: 0; }

/* ── question blocks ── */
.q-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 20px;
}

.q-block .q-number {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ── member quotes ── */
.member-entry {
    border-left: 2px solid var(--accent-dim);
    padding: 10px 16px;
    margin: 14px 0;
    background: rgba(91,143,255,.04);
    border-radius: 0 6px 6px 0;
}

.member-entry .member-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── code block ── */
pre {
    background: #0d1018;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 13px;
    color: #8fbbff;
    overflow-x: auto;
    margin: 12px 0;
    line-height: 1.6;
}

/* ── callout / tip box ── */
.callout {
    background: rgba(91,143,255,.07);
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 14px 0;
    font-size: 14px;
}

/* ── links ── */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── stats bar ── */
.stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0 32px;
}

.stat-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.stat-chip strong {
    color: var(--text-bright);
    font-weight: 600;
}

/* ── sub-list answer ── */
.sub-answer {
    margin-top: 12px;
}

.sub-answer p:first-child {
    margin-top: 0;
}
