/* Dark archive theme, coordinated with the responsive homepage. */
body.crf-archive {
    margin: 0;
    background: #090909;
    color: #f0f0f0;
    font: 16px/1.6 Arial, Helvetica, sans-serif;
    color-scheme: dark;
}
.archive-shell, .archive-shell * { box-sizing: border-box; }
.archive-shell { max-width: 1100px; margin: auto; padding: 30px 24px; }
.archive-shell a { color: #ffb44d; }
.archive-shell a:hover { color: #ffd18a; text-decoration: underline; }
.archive-shell a:focus-visible,
.archive-shell summary:focus-visible,
.archive-shell select:focus-visible,
.archive-shell button:focus-visible {
    outline: 3px solid #61a7ff;
    outline-offset: 3px;
}
.archive-heading h1 {
    margin: 4px 0 8px;
    color: #f5f5f5;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
}
.archive-heading p { margin: 7px 0 12px; color: #ccc; }
.archive-heading .archive-eyebrow {
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .75rem;
    color: #ffb44d;
    font-weight: bold;
}
.archive-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 24px 0 12px;
}
.archive-filter label { color: #eee; }
.archive-filter select, .archive-filter button {
    min-height: 44px;
    padding: 9px 13px;
    font: inherit;
    border: 1px solid #999;
    border-radius: 4px;
    background: #f4f4f4;
    color: #111;
    color-scheme: light;
}
.archive-filter button {
    background: #ffa323;
    color: #111;
    cursor: pointer;
    font-weight: bold;
    border-color: #ffa323;
}
.archive-filter button:hover { background: #ffc16a; }
.archive-explanation {
    color: #bcbcbc;
    max-width: 820px;
    font-size: .875rem;
    margin: 16px 0 24px;
}
.archive-year {
    background: #181818;
    border: 1px solid #363636;
    border-radius: 7px;
    margin-bottom: 18px;
    overflow: hidden;
}
.archive-year > summary {
    cursor: pointer;
    padding: 16px 18px;
    min-height: 54px;
    font-size: 1.12rem;
    font-weight: bold;
    background: #242424;
    color: #f5f5f5;
}
.archive-year > summary:hover { background: #2c2c2c; }
.archive-year > summary::marker { color: #ffa323; }
.archive-total {
    display: block;
    font-size: .82rem;
    font-weight: normal;
    color: #c8c8c8;
    margin-top: 4px;
}
.archive-year[open] > summary { border-bottom: 3px solid #ffa323; }
.archive-year-body { padding: 6px 20px 18px; }
.archive-month { margin-top: 18px; }
.archive-month h2 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: #f0f0f0;
    font-size: 1rem;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #414141;
}
.archive-month h2 span { font-size: .8rem; font-weight: normal; color: #bcbcbc; }
.archive-updates { list-style: none; margin: 0; padding: 0; }
.archive-updates li {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    overflow-wrap: anywhere;
}
.archive-updates li > a {
    display: inline-block;
    padding: 4px 0;
    color: #ffb44d;
    font-weight: 600;
    text-decoration: none;
}
.archive-updates li > a:hover { color: #ffd18a; text-decoration: underline; }
.archive-update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    color: #bcbcbc;
    font-size: .82rem;
}
.archive-visits { color: #aaa; font-size: .8rem; margin-top: 26px; }
.archive-empty { color: #ccc; }
@media (max-width: 600px) {
    .archive-shell { padding: 20px 12px; }
    .archive-year-body { padding: 4px 14px 16px; }
    .archive-year > summary { padding: 14px; }
    .archive-filter label { flex-basis: 100%; }
    .archive-filter select { flex: 1; min-width: 0; }
}
