/* SchoolBoard Wiki Theme */

:root {
    --bg: #f8f9fa;
    --text: #1a1a2e;
    --accent: #2563eb;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --header-bg: #1a1a2e;
    --header-text: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 2rem;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav .logo {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover { color: var(--header-text); }

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1 { font-size: 2rem; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 1.2rem 0 0.5rem; }
h3 { font-size: 1.2rem; margin: 1rem 0 0.3rem; }

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

p { margin: 0.5rem 0; }

ul, ol { margin: 0.5rem 0 0.5rem 1.5rem; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

th {
    background: var(--header-bg);
    color: var(--header-text);
    font-weight: 600;
}

.page-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.page-card h2 { margin-top: 0; }
.page-card time {
    color: #64748b;
    font-size: 0.85rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-size: 0.85rem;
}

.disclaimer {
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.meeting-page h1 {
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
}

.entity-type {
    color: #64748b;
    font-style: italic;
}

/* ── Transcript with segment IDs ──────────────────────── */

.transcript .seg {
    padding: 0.25rem 0.5rem;
    border-left: 3px solid transparent;
    margin: 0.15rem 0;
    transition: background 0.3s;
}

.transcript .seg:nth-child(even) {
    background: #f8fafc;
}

.transcript .seg:hover {
    background: #eef2ff;
    border-left-color: var(--accent);
}

.transcript .seg-highlight {
    background: #fef08a !important;
    border-left-color: #eab308 !important;
    transition: background 0s;
}

.seg-time {
    font-family: monospace;
    font-size: 0.8rem;
    color: #64748b;
    margin-right: 0.5rem;
    min-width: 5em;
    display: inline-block;
}

/* ── Entity mentions table ─────────────────────────────── */

.entity-mentions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.entity-mentions-table th,
.entity-mentions-table td {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    vertical-align: top;
}

.entity-mentions-table th {
    background: var(--header-bg);
    color: var(--header-text);
    font-weight: 600;
}

.entity-mentions-table .q-time {
    white-space: nowrap;
    width: 5em;
}

.entity-mentions-table .q-time a {
    text-decoration: none;
    color: var(--text);
}

.entity-mentions-table .q-time a:hover code {
    text-decoration: underline;
    color: var(--accent);
}

.entity-mentions-table .q-text {
    max-width: 400px;
}

.entity-mentions-table .q-ctx {
    white-space: nowrap;
    width: 5em;
    text-align: center;
}

.entity-mentions-table .q-ctx a {
    text-decoration: none;
    font-size: 0.85rem;
}

.entity-mentions-table tr:hover {
    background: #f1f5f9;
}

@media (max-width: 768px) {
    nav { flex-direction: column; gap: 0.5rem; }
}
