/* Styles for individual note pages (loaded in addition to styles.css) */

/* ── Tables ── */
.note table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    display: block;
}

.note thead th {
    text-align: left;
    padding: 0.4rem 1rem 0.4rem 0;
    border-bottom: 2px solid var(--border);
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: normal;
    white-space: nowrap;
}

.note tbody td {
    padding: 0.55rem 1rem 0.55rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.4;
}

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

.note tbody tr:hover td {
    background-color: color-mix(in srgb, var(--border) 40%, transparent);
}

.note-header {
    margin-bottom: 2.5rem;
}

.back-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.back-link:hover {
    color: var(--accent);
}

.note-header h1 {
    margin: 0 0 0.25rem;
}

.note-date {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0;
    font-style: italic;
}

/* ── Prose ── */
.note h2 {
    /* Override the small-caps nav style for in-note headings */
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
    margin: 2.5rem 0 1rem;
}

.note h3 {
    font-size: 1rem;
    font-weight: bold;
    margin: 1.75rem 0 0.5rem;
}

.note p {
    margin: 0 0 1rem;
}

.note ul,
.note ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

.note li {
    margin-bottom: 0.4rem;
}

/* ── Code ── */
.note code {
    font-family: 'Menlo', 'Consolas', 'Liberation Mono', monospace;
    font-size: 0.875em;
    background: #f0ece0;
    padding: 0.15em 0.35em;
    border-radius: 2px;
}

.note pre {
    background: #f0ece0;
    border-left: 3px solid var(--border);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.note pre code {
    background: none;
    padding: 0;
    font-size: 0.85em;
}

/* ── Blockquote ── */
.note blockquote {
    border-left: 3px solid var(--border);
    margin: 0 0 1rem;
    padding: 0.1rem 0 0.1rem 1.25rem;
    color: var(--muted);
    font-style: italic;
}

.note blockquote p {
    margin-bottom: 0;
}
