:root {
    --bg: #0e1116;
    --text: #eaeaea;
    --muted: #b5b5b5;
    --border: #2a2f36;
    --link: #7ec4ff;
    --maxw: 880px;
    --paper-num-color: #4fdc8a;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

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

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 48px 20px 64px;
}

header {
    margin-bottom: 48px;
}

.meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
}

h1 {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 16px;
    color: var(--muted);
    max-width: 70ch;
}

.repo-ref {
    margin: 12px 0 48px;
    font-size: 14px;
    color: var(--muted);
}

.repo-ref a {
    color: inherit;
    text-decoration: none;
}

.repo-ref a span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: var(--text);
}

.repo-ref a:hover span {
    text-decoration: underline;
}

.github-link a {
    color: var(--muted);
}

.github-link a:hover {
    color: var(--text);
}

.github-link a {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    transition: color 0.2s ease;
}

.github-link a:hover {
    color: var(--text);
    text-decoration: none;
}

.github-link svg {
    width: 24px;
    height: 24px;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 18px;
    margin: 0 0 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

p {
    margin: 0 0 12px;
    font-size: 15px;
}

ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

li { margin-bottom: 6px; }

footer {
    margin-top: 64px;
    font-size: 13px;
    color: var(--muted);
}

/* Links */
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.link-card {
    display: block;
    padding: 14px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    color: inherit;
    transition: transform 0.08s ease, border-color 0.15s ease;
    text-align: center;
}

.link-card:hover {
    border-color: rgba(126, 196, 255, 0.45);
    transform: translateY(-1px);
    text-decoration: none;
}

.link-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.link-sub {
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 640px) {
    .link-grid { grid-template-columns: 1fr; }
}

/* Schedule */
.muted { color: var(--muted); }
.unmuted { color: var(--text); }

.table-wrap {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}

table.schedule {
    width: 100%;
    border-collapse: collapse;
}

table.schedule thead th {
    text-align: left;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.18);
}

table.schedule tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: 14px;
}

table.schedule tbody tr:last-child td {
    border-bottom: none;
}

.col-date { width: 150px; white-space: nowrap; }
.col-type { width: 100px; white-space: nowrap; }
.col-links { width: 160px; }

.links-cell a { color: var(--link); }
.links-cell .sep { color: var(--muted); margin: 0 6px; }

/* Paper discussion rows */
.topic-paper .paper-num {
    color: var(--paper-num-color);
    font-size: 13px;
    margin-right: 3px;
}
.topic-paper .paper-title {
    font-weight: 500;
    color: var(--text);
}
.topic-paper .paper-citation {
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}
.topic-paper .paper-title::after {
    content: " ";
}

.topic-paper-muted .paper-num {
    color: var(--muted);
    font-size: 13px;
    margin-right: 3px;
}
.topic-paper-muted .paper-title {
    font-weight: 500;
    color: var(--muted);
}
.topic-paper-muted .paper-citation {
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}
.topic-paper-muted .paper-title::after {
    content: " ";
}

@media (max-width: 760px) {
    .col-links { width: auto; }
    table.schedule thead { display: none; }
    table.schedule, table.schedule tbody, table.schedule tr, table.schedule td { display: block; width: 100%; }
    table.schedule tbody td { border-bottom: none; padding: 10px 14px; }
    table.schedule tbody tr {
        border-bottom: 1px solid var(--border);
        padding: 6px 0;
    }
    table.schedule tbody tr:last-child { border-bottom: none; }
    table.schedule tbody td:first-child { color: var(--muted); font-size: 13px; }
}

/* Schedule tools */
.table-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 12px;
}

.search {
    width: min(520px, 100%);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.search::placeholder { color: rgba(181,181,181,0.75); }

.search:focus {
    border-color: rgba(126, 196, 255, 0.45);
}

.small { font-size: 13px; }

  /* screen-reader only label */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 760px) {
    .table-tools { flex-direction: column; align-items: stretch; }
    #schedule-count { margin-top: -4px; }
}