:root {
    --bg: radial-gradient(circle at 20% 20%, #0f172a, #0b1021 45%, #0a0a14);
    --panel: rgba(255, 255, 255, 0.04);
    --card: rgba(255, 255, 255, 0.06);
    --text: #f5f7fb;
    --muted: #9fb1ce;
    --accent: #4fd1c5;
    --accent-2: #7c3aed;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    font-family: "Montserrat", "Segoe UI", "Source Sans Pro", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    padding: 0 1.5rem 3rem;
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom, rgba(10,10,20,0.95), rgba(10,10,20,0.75));
    backdrop-filter: blur(8px);
    z-index: 10;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.brand .title { font-weight: 700; letter-spacing: 0.02em; }
.brand .eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--muted); margin: 0; }

nav a { margin-left: 1rem; padding: 0.45rem 0.75rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text); }
nav a:hover { border-color: var(--accent); }

main { max-width: 1200px; margin: 0 auto; }

.hero { padding: 1rem 0 0.5rem; }
.hero h1 { margin: 0.15rem 0 0.5rem; font-size: 2rem; }
.hero .lede { max-width: 720px; color: var(--muted); }

.card, .panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.card-head, .panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.card h2, .panel h2 { margin: 0.1rem 0; font-size: 1.1rem; }
.title-link { color: var(--text); text-decoration: none; }
.title-link:hover { color: var(--accent); }
.inline-links a { margin-left: 0.4rem; font-size: 0.85rem; color: var(--accent); }
.link-row { margin: 0.2rem 0 0.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.link-row a { color: var(--accent); font-size: 0.95rem; }

.card-body details, .panel-body details {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.4rem 0.8rem;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
}

details summary { cursor: pointer; font-weight: 600; color: var(--text); }
details[open] summary { color: var(--accent); }

.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--muted); margin: 0; }
.lede { color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9rem; }
.text-danger { color: #ff6b6b; }
.pill {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    gap: 0.35rem;
}
.pill.subtle { background: rgba(79, 209, 197, 0.12); border-color: rgba(79, 209, 197, 0.35); }
.pill.neutral { background: rgba(124, 58, 237, 0.18); border-color: rgba(124, 58, 237, 0.4); }

.filter-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 1rem;
}
.filter-pill {
    cursor: pointer;
    color: inherit;
}
.filter-pill.disabled {
    opacity: 0.45;
}
.filter-pill.disabled:hover {
    border-color: var(--border);
}
.filter-pill.active {
    border-color: var(--accent);
    background: rgba(79, 209, 197, 0.24);
    box-shadow: 0 0 12px rgba(79, 209, 197, 0.35);
}
.filter-pill:hover { border-color: var(--accent); }

/* Member attendance tabs */
.tab-btn {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}
.tab-btn.active {
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 12px rgba(79, 209, 197, 0.35);
}

.vote-list .row .title-link,
.vote-list .row strong {
    font-size: 1rem;
    color: #fff;
}
.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.vote-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.6rem;
}
.vote-row .vote-date {
    text-align: right;
    min-width: 120px;
}

.pill.danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.pill.warn { background: rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.4); color: #facc15; }
.vote-card {
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    margin: 0.35rem 0;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}
.vote-accepted { background: rgba(79, 209, 197, 0.08); border-color: rgba(79, 209, 197, 0.4); }
.vote-rejected { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.35); }

.row.links a { margin-right: 0.75rem; }

.list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.list.large > li {
    margin-bottom: 0.5rem;
}

.plain-link { color: var(--muted); font-size: 0.9rem; }

.stack { display: flex; flex-direction: column; gap: 0.75rem; }

.panel summary { font-size: 1.05rem; }
.panel-body { margin-top: 0.35rem; }

.member-meta .pill { margin-top: 0.15rem; display: inline-flex; }
.member-id img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.member-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}
.member-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 160px;
}
.member-card .links a { margin-right: 0.5rem; }
.issue-list summary { cursor: pointer; color: var(--accent); }
.issue-list .list { margin-top: 0.35rem; }
.flutningsmenn { margin: 0.35rem 0 0; }

@media (max-width: 700px) {
    .site-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    nav a { margin-left: 0; margin-right: 0.5rem; }
}
