/* Disneys Online Worlds Archive — starter stylesheet.
   Mobile-first. Real visual design pass comes in step 9. */

:root {
    --bg:          #FFFCF4;
    --ink:         #1B1B1F;
    --ink-soft:    #4A4A55;
    --rule:        #E6DFCB;
    --accent:      #2A5BD7;
    --accent-soft: #F2A0B8;
    --code-bg:     #F4EFE0;
    --max:         1280px;
    --prose:       820px;
    --header-h:    64px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: linear-gradient(180deg, #FFF8E2 0%, #FFE9C7 100%);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 5;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--header-h);
    max-width: var(--max);
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.2px;
    flex: 1 1 auto;
    min-width: 0;
}
.site-logo img {
    height: 38px;
    width: auto;
    flex: 0 0 auto;
}
.site-logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-search {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}
.site-search input[type=search] {
    border: 1px solid var(--rule);
    background: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font: inherit;
    min-width: 0;
    width: 36vw;
    max-width: 220px;
}
.site-search button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 7px 12px;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}
@media (max-width: 480px) {
    .site-logo span { display: none; }
    .site-search input[type=search] { width: 38vw; }
}

/* Main */
.site-main {
    padding: 24px 0 48px;
}
.site-main .wrap { max-width: var(--max); }

/* Keep prose paragraphs at a comfortable reading width without limiting
   the surrounding tables/images. */
.page-body > p,
.page-body > ul,
.page-body > ol,
.page-body > dl,
.page-body > blockquote {
    max-width: var(--prose);
}

.page-header h1 {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 4px;
    color: var(--ink);
    font-weight: 700;
}
.page-meta {
    color: var(--ink-soft);
    font-size: 13px;
    margin: 0 0 6px;
}
.page-meta:last-of-type { margin-bottom: 18px; }
.redirected-from {
    font-style: italic;
}
.redirected-from a {
    color: var(--accent);
    text-decoration: none;
}
.redirected-from a:hover { text-decoration: underline; }
.page-body { word-wrap: break-word; }
.page-body h2 { font-size: 24px; margin-top: 32px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.page-body h3 { font-size: 20px; margin-top: 24px; }
.page-body h4 { font-size: 17px; margin-top: 20px; }
.page-body p  { margin: 0 0 14px; }
.page-body a            { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page-body a:hover      { text-decoration: none; }
.page-body a.ext::after { content: " ↗"; font-size: 0.85em; color: var(--ink-soft); }
.page-body ul, .page-body ol { padding-left: 24px; margin: 0 0 14px; }
.page-body li { margin: 4px 0; }
.page-body hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }

.page-body pre, .page-body code {
    background: var(--code-bg);
    border-radius: 6px;
}
.page-body code { padding: 0 4px; font-size: 0.95em; }
.page-body pre  { padding: 12px; overflow-x: auto; font-size: 14px; }

/* Default table = layout only: no borders, minimal padding, content flows
   naturally. MediaWiki uses {| ... |} both for tabular DATA and for page
   LAYOUT, and we can't tell the two apart structurally — but the wiki's
   own convention is that data tables get class="wikitable" or border="1".
   We style those visibly and leave the rest invisible. */
.page-body table {
    border-collapse: collapse;
    margin: 12px 0;
    max-width: 100%;
}
.page-body table td,
.page-body table th {
    padding: 4px 8px;
    vertical-align: top;
}

/* Visible "data table" styling — only when the table explicitly asks. */
.page-body table.wikitable,
.page-body table[border]:not([border="0"]) {
    width: 100%;
}
.page-body table.wikitable th,
.page-body table.wikitable td,
.page-body table[border]:not([border="0"]) th,
.page-body table[border]:not([border="0"]) td {
    border: 1px solid var(--rule);
    padding: 6px 10px;
}
.page-body table.wikitable th,
.page-body table[border]:not([border="0"]) th {
    background: #FFF3DA;
    text-align: left;
}
.page-body table.wikitable tr:nth-child(even) td,
.page-body table[border]:not([border="0"]) tr:nth-child(even) td {
    background: #FFFAEF;
}

/* Honour the deprecated align="…" attribute that wiki editors still use. */
.page-body td[align="center"], .page-body th[align="center"] { text-align: center; }
.page-body td[align="right"],  .page-body th[align="right"]  { text-align: right;  }
.page-body td[align="left"],   .page-body th[align="left"]   { text-align: left;   }
.page-body td[valign="middle"],.page-body th[valign="middle"]{ vertical-align: middle; }
.page-body td[valign="bottom"],.page-body th[valign="bottom"]{ vertical-align: bottom; }

/* Horizontal scroll only for narrow viewports, and only when the table is
   wide enough to need it — applies to bordered data tables. */
@media (max-width: 720px) {
    .page-body table.wikitable,
    .page-body table[border]:not([border="0"]) {
        display: block;
        overflow-x: auto;
    }

    /* LAYOUT tables (no class, no border) — collapse to flex rows so small
       image cells stay small but text cells expand. When wide content can't
       fit alongside a sibling cell, flex-wrap drops it to its own line.
       This handles both the two-column "welcome | sponsored" header pattern
       and the "bullet image | link" guide list on the Main_Page. */
    .page-body table:not(.wikitable):not([border]:not([border="0"])),
    .page-body table:not(.wikitable):not([border]:not([border="0"])) > tbody {
        display: block;
        width: 100% !important;
        max-width: 100%;
    }
    .page-body table:not(.wikitable):not([border]:not([border="0"])) tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        width: 100%;
        margin-bottom: 4px;
    }
    .page-body table:not(.wikitable):not([border]:not([border="0"])) td,
    .page-body table:not(.wikitable):not([border]:not([border="0"])) th {
        display: block;
        /* basis 280px means two text cells (560px combined) can't fit on a
           sub-560px viewport — they wrap to a stack instead of being squished
           side-by-side. */
        flex: 1 1 280px;
        min-width: 0;
        width: auto !important;
        padding: 2px 14px;            /* horizontal breathing room inside the box */
        text-align: left !important;  /* don't fight |align=center centring in flex */
        /* Force long unbroken runs (and content that ignores the flex basis,
           like a wide <big> heading) to wrap instead of overflowing the box.
           white-space:normal is critical: the Main_Page welcome cell sets
           "white-space:nowrap" inline, which would otherwise prevent ALL
           wrapping on mobile. !important is needed to beat the inline style. */
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    /* Same nowrap-override for any nested element that inlines it. */
    .page-body table:not(.wikitable):not([border]:not([border="0"])) td[style*="nowrap"],
    .page-body table:not(.wikitable):not([border]:not([border="0"])) [style*="nowrap"] {
        white-space: normal !important;
    }
    /* Vertical padding top & bottom of the whole layout box. */
    .page-body table:not(.wikitable):not([border]:not([border="0"])) tr:first-child td,
    .page-body table:not(.wikitable):not([border]:not([border="0"])) tr:first-child th {
        padding-top: 12px;
    }
    .page-body table:not(.wikitable):not([border]:not([border="0"])) tr:last-child td,
    .page-body table:not(.wikitable):not([border]:not([border="0"])) tr:last-child th {
        padding-bottom: 12px;
    }
    /* Anything inside a layout cell must respect the viewport width. */
    .page-body table:not(.wikitable):not([border]:not([border="0"])) td * {
        max-width: 100%;
    }
    /* Cells containing only an inline image/figure shrink to fit so they
       sit beside their sibling text cell rather than wrapping below it. */
    .page-body table:not(.wikitable):not([border]:not([border="0"])) td:has(> .wiki-image:only-child),
    .page-body table:not(.wikitable):not([border]:not([border="0"])) td:has(> a.wiki-image-link:only-child),
    .page-body table:not(.wikitable):not([border]:not([border="0"])) td:has(> figure:only-child) {
        flex: 0 0 auto;
    }
    /* Inside layout tables, neutralise the .align-center / -left / -right
       classes on inline images — those add display:block + margin:auto +
       text-align:center which causes the image's wrapper to grab the full
       cell width and break the flex pairing with the adjacent text cell. */
    .page-body table:not(.wikitable):not([border]:not([border="0"])) .align-center,
    .page-body table:not(.wikitable):not([border]:not([border="0"])) .align-left,
    .page-body table:not(.wikitable):not([border]:not([border="0"])) .align-right {
        display: inline-block;
        margin: 0;
        text-align: left;
        float: none;
    }
    .page-body table img { max-width: 100%; height: auto; }
}

.page-body figure {
    margin: 16px 0;
    text-align: center;
}
.page-body figure img { max-width: 100%; height: auto; }
.page-body figure a.image { display: inline-block; line-height: 0; }
.page-body figcaption { color: var(--ink-soft); font-size: 13px; margin-top: 6px; padding: 0 6px; }
.page-body figcaption .magnify {
    display: inline-block;
    margin-left: 4px;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1em;
    line-height: 1;
}
.page-body figcaption .magnify:hover { text-decoration: none; color: #1a3fa5; }

/* Thumb / frame box — what MediaWiki shows when |thumb or |frame is used. */
.page-body figure.is-thumb,
.page-body figure.has-border {
    border: 1px solid var(--rule);
    background: #fff;
    padding: 6px 6px 4px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    max-width: 100%;
    display: inline-block;
}
.page-body figure.is-thumb img,
.page-body figure.has-border img { border-radius: 2px; }

.page-body .align-left   { float: left;  margin-right: 16px; }
.page-body .align-right  { float: right; margin-left:  16px; }
.page-body .align-center { display: block; margin: 16px auto; text-align: center; }
.page-body .wiki-image img { max-width: 100%; height: auto; vertical-align: middle; }

/* Table of contents — rendered where __TOC__ appears in the page. */
.toc {
    display: inline-block;
    min-width: 240px;
    max-width: 100%;
    background: #FFF8E2;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 12px 18px 14px;
    margin: 18px 0 24px;
    font-size: 14px;
}
.toc-title {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
/* Nested ordered list with CSS-counter numbering: 1, 1.1, 1.1.1, … */
.toc-list,
.toc-list ol {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: none;
    counter-reset: toc;
}
.toc-list ol { padding-left: 18px; }
.toc-list li { margin: 2px 0; counter-increment: toc; }
.toc-list li::before {
    content: counters(toc, ".") " ";
    color: var(--ink-soft);
    margin-right: 6px;
    font-variant-numeric: tabular-nums;
}
.toc-list a {
    color: var(--accent);
    text-decoration: none;
}
.toc-list a:hover { text-decoration: underline; }

/* When clicking a TOC link, give the target heading some breathing room
   under the sticky header. */
.page-body :is(h1, h2, h3, h4, h5, h6) { scroll-margin-top: 72px; }

/* Placeholder for templates that exist in wikitext but not in the DB. */
.missing-template {
    background: #FFF3DA;
    border: 1px dashed #D9B25C;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.9em;
    color: #8A6D2D;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* "← Back to X" link at the top of an article, driven by the referrer. */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    background: #FFF3DA;
    border: 1px solid var(--rule);
    padding: 4px 12px;
    border-radius: 999px;
}
.back-link:hover { background: var(--accent-soft); text-decoration: none; }

/* "Referenced by" (What links here) accordion — the page's place in the wiki. */
.linkshere-section {
    margin-top: 24px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: #FFFCF4;
}
.linkshere-section > summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 16px;
    user-select: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}
.linkshere-section > summary::-webkit-details-marker { display: none; }
.linkshere-section > summary::before {
    content: "▸";
    color: var(--accent);
    font-size: 13px;
    display: inline-block;
    transition: transform 0.15s;
}
.linkshere-section[open] > summary::before { transform: rotate(90deg); }
.lh-label { font-weight: 700; color: var(--ink); }
.lh-hint  { color: var(--ink-soft); font-size: 13px; }
.linkshere-list {
    list-style: none;
    margin: 0;
    padding: 4px 16px 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px 16px;
    max-width: none;
}
.linkshere-list a { color: var(--accent); text-decoration: none; }
.linkshere-list a:hover { text-decoration: underline; }

/* Discussion / Talk page accordion at the bottom of an article. Uses the
   native <details>/<summary> so it works without JavaScript. */
.talk-section {
    margin-top: 32px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: #FFF8E2;
}
.talk-section > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    user-select: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}
.talk-section > summary::-webkit-details-marker { display: none; }
.talk-section > summary::before {
    content: "▸";
    color: var(--accent);
    font-size: 14px;
    margin-right: 2px;
    transition: transform 0.15s;
    display: inline-block;
}
.talk-section[open] > summary::before { transform: rotate(90deg); }
.talk-summary-label {
    font-weight: 700;
    color: var(--ink);
}
.talk-summary-hint {
    color: var(--ink-soft);
    font-size: 13px;
}
.talk-summary-hint a {
    color: var(--accent);
    text-decoration: none;
}
.talk-summary-hint a:hover { text-decoration: underline; }
.talk-body {
    padding: 4px 16px 16px;
    border-top: 1px solid var(--rule);
    background: #FFFCF4;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}
.talk-body > :first-child { margin-top: 12px; }

.page-categories {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    clear: both;
}
.page-categories h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 0 0 8px; border: 0; }
.page-categories ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.page-categories li a {
    display: inline-block;
    background: #FFF3DA;
    border: 1px solid var(--rule);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
}
.page-categories li a:hover { background: var(--accent-soft); }

/* Hint text */
.hint { color: var(--ink-soft); margin: 0 0 18px; }

/* Search results, A-Z index, file pages, category pages */
.search-form {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
}
.search-form input[type=search] {
    flex: 1 1 auto;
    border: 1px solid var(--rule);
    background: #fff;
    padding: 9px 12px;
    border-radius: 8px;
    font: inherit;
}
.search-form button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

.result-list, .page-list, .used-on-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.result-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
}
.result-list a { text-decoration: none; color: var(--accent); font-weight: 600; }
.result-list a:hover { text-decoration: underline; }
.ns-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: #6B2236;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    vertical-align: 1px;
}
.ns-badge.ns-file     { background: #BFE3FF; color: #1A4E73; }
.ns-badge.ns-template { background: #E5DAFF; color: #4C2A91; }
.ns-badge.ns-category { background: #FFE0B0; color: #7A4A0E; }
.redirect-flag {
    margin-left: 8px;
    font-size: 12px;
    color: var(--ink-soft);
    font-style: italic;
}
.match-flag {
    margin-left: 8px;
    font-size: 11px;
    color: #6B5A2E;
    background: #FFF3DA;
    border: 1px solid var(--rule);
    padding: 0 6px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Special:Listusers and Special:Statistics */
.userlist, .stats {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
}
.userlist th, .userlist td,
.stats th, .stats td {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.userlist thead th { background: #FFF3DA; }
.userlist .num, .stats td { text-align: right; }
.stats th { font-weight: 500; color: var(--ink-soft); }
.stats td { font-weight: 600; font-variant-numeric: tabular-nums; }
/* User stub page (User: page exists by name only — no profile written). */
.page-user-stub .user-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 18px;
    max-width: 560px;
    margin: 18px 0;
    padding: 16px 20px;
    background: #FFF8E2;
    border: 1px solid var(--rule);
    border-radius: 8px;
    font-size: 15px;
}
.page-user-stub .user-meta dt {
    color: var(--ink-soft);
    font-weight: 500;
}
.page-user-stub .user-meta dd {
    margin: 0;
    color: var(--ink);
}
.user-stub-links {
    color: var(--ink-soft);
    font-size: 14px;
    margin-top: 16px;
}
.user-stub-links a { color: var(--accent); }

.user-group {
    display: inline-block;
    background: #E5DAFF;
    color: #4C2A91;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.letter-jumper {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 18px;
    padding: 8px;
    background: #FFF3DA;
    border-radius: 8px;
    border: 1px solid var(--rule);
}
.letter-jumper a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--rule);
}
.letter-jumper a:hover, .letter-jumper a.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.page-list li {
    padding: 4px 0;
    border-bottom: 1px dotted var(--rule);
}
.page-list a { color: var(--accent); text-decoration: none; }
.page-list a:hover { text-decoration: underline; }

.pager {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
}
.pager a {
    color: var(--accent);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: #fff;
}
.pager a:hover { background: var(--accent); color: #fff; }

/* Categories index */
.bucket { margin: 24px 0; }
.bucket h2 {
    font-size: 22px;
    margin: 0 0 12px;
    color: var(--accent);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 4px;
}
.cat-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px 16px;
}
.cat-grid li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
}
.cat-grid a {
    color: var(--accent);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-grid a:hover { text-decoration: underline; }
.cat-grid .count {
    color: var(--ink-soft);
    font-size: 13px;
    flex: 0 0 auto;
}

/* Category page (members) */
.member-group { margin: 24px 0; }
.member-group h2 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--ink);
}
.member-group .count { color: var(--ink-soft); font-weight: normal; font-size: 14px; }
.member-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 16px;
}
.member-grid a {
    color: var(--accent);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    padding: 3px 0;
}
.member-grid a:hover { text-decoration: underline; }

/* File pages */
.file-display {
    margin: 0 0 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 8px;
    text-align: center;
}
.file-display img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 4px;
}
.file-original { display: inline-block; }
.file-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 16px;
    margin: 0 0 18px;
    font-size: 14px;
}
.file-meta dt { color: var(--ink-soft); }
.file-meta dd { margin: 0; color: var(--ink); }

/* Old-revision banner */
.old-revision-banner {
    background: #FFF3DA;
    border: 1px solid #E0C879;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 0 16px;
    font-size: 14px;
    color: #6B5A2E;
}
.old-revision-banner a { color: var(--accent); }

/* Revision history table */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 18px;
    font-size: 14px;
}
.history-table th, .history-table td {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.history-table thead th { background: #FFF3DA; }
.history-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-table tr.is-current td { background: #FFFAEF; }
.history-table .cur-tag {
    display: inline-block;
    font-size: 11px;
    background: var(--accent);
    color: #fff;
    border-radius: 3px;
    padding: 0 5px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.history-table .d-pos { color: #1A7A3C; }
.history-table .d-neg { color: #B5341F; }
.history-table .d-zero { color: var(--ink-soft); }
.history-table .minor {
    font-weight: 700;
    color: var(--ink-soft);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 0 4px;
    font-size: 11px;
}
.history-table .comment { color: var(--ink-soft); }

/* Footer */
.site-footer {
    border-top: 1px solid var(--rule);
    background: #FFF8E2;
    padding: 18px 0 28px;
    color: var(--ink-soft);
    font-size: 14px;
}
.site-footer .wrap { max-width: 960px; }
.site-footer p { margin: 0 0 8px; }
.site-footer nav a {
    color: var(--ink);
    text-decoration: none;
    margin-right: 14px;
}
.site-footer nav a:hover { color: var(--accent); }
