@charset "UTF-8";
/* ==========================================================================
   typography.css — fonts, headings, links, code, blockquotes, tables, hr.
   Mirrors the frontend's .wiki-content prose rules.
   ========================================================================== */

b, strong, label, th {
    font-weight: 600;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: normal;
    color: rgb(var(--c-fg-muted));
}

#body strong, #body b { color: rgb(var(--c-fg)); }

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: rgb(var(--c-fg));
    text-rendering: optimizeLegibility;
}

h1 {
    text-align: left;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgb(var(--c-line));
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: .5rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid rgb(var(--c-line));
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: .4rem;
    letter-spacing: normal;
}

h4 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: .3rem;
    letter-spacing: normal;
}

h5 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: .3rem;
    letter-spacing: normal;
}

h6 {
    font-size: .9rem;
    margin-top: 1rem;
    margin-bottom: .3rem;
    letter-spacing: normal;
    color: rgb(var(--c-fg-muted));
}

/* --- Links --- */
#body a {
    color: rgb(var(--c-accent));
    text-decoration: none;
}
#body a:hover {
    color: rgb(var(--c-accent-hover));
    text-decoration: underline;
}

/* --- Code --- */
code, kbd, pre, samp {
    font-family: var(--font-mono);
}

code {
    font-size: .9em;
    color: rgb(var(--c-fg));
    background: rgb(var(--c-raised));
    border: 1px solid rgb(var(--c-line));
    border-radius: 4px;
    padding: .1em .3em;
    vertical-align: baseline;
}

kbd {
    font-size: .85em;
    color: rgb(var(--c-fg));
    background: rgb(var(--c-raised));
    border: 1px solid rgb(var(--c-line-strong));
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: .05em .35em;
}

pre {
    margin: 1.5rem 0;
    padding: 1rem;
    overflow-x: auto;
    font-size: .875rem;
    line-height: 1.6;
    color: rgb(var(--c-fg));
    background: rgb(var(--c-raised));
    border: 1px solid rgb(var(--c-line));
    border-radius: var(--radius-card);
}
pre code {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: inherit;
}

/* --- Blockquotes — the frontend's accent-edged quote, as a callout --- */
blockquote {
    position: relative;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem 1rem 3.25rem;
    background: rgb(var(--c-surface));
    border: 1px solid rgb(var(--c-line));
    border-left: 2px solid rgb(var(--c-accent));
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

blockquote::before {
    content: "\F02FC"; /* mdi-information */
    font-family: "Material Design Icons";
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgb(var(--c-accent));
    font-size: 1.25rem;
    line-height: 1.35;
}

blockquote > p {
    color: rgb(var(--c-fg-muted));
    margin: 0;
}
blockquote > p:first-child { padding-top: 0; }

blockquote cite {
    display: block;
    text-align: right;
    color: rgb(var(--c-fg-subtle));
}

/* --- Tables --- */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    font-size: .875rem;
    table-layout: auto;
    border: 1px solid rgb(var(--c-line));
}

th {
    background-color: rgb(var(--c-raised));
    color: rgb(var(--c-fg));
    font-weight: 600;
    text-align: left;
    padding: .5rem .75rem;
    border: 1px solid rgb(var(--c-line));
}

td {
    padding: .5rem .75rem;
    border: 1px solid rgb(var(--c-line));
}

/* --- HR --- */
hr {
    border: 0;
    border-bottom: 1px solid rgb(var(--c-line));
    margin: 2rem 0;
}

/* --- markdown-notices (! / !! / !!! / !!!!) --- */
.notices {
    margin: 1.5rem 0;
    padding: .75rem 1rem;
    border: 1px solid rgb(var(--c-line));
    border-left-width: 2px;
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    background: rgb(var(--c-surface));
    color: rgb(var(--c-fg-muted));
}
.notices p { padding-top: 0 !important; }
.notices.yellow { border-left-color: rgb(var(--c-warn)); background: rgb(var(--c-warn) / .08); }
.notices.red { border-left-color: rgb(var(--c-danger)); background: rgb(var(--c-danger) / .08); }
.notices.blue { border-left-color: rgb(var(--c-info)); background: rgb(var(--c-info) / .08); }
.notices.green { border-left-color: rgb(var(--c-accent)); background: rgb(var(--c-accent) / .08); }
