/* Archive browse page */
.archive-page {
    margin: 0;
    background: #f4f1ea;
    color: #1a1a1a;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;
    min-height: 100vh;
}

.archive-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: #fff;
    border-bottom: 1px solid #e4e0d8;
    position: sticky;
    top: 0;
    z-index: 20;
}

.archive-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.archive-brand img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.archive-brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.archive-back {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.archive-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.archive-hero h1 {
    margin: 0 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.archive-hero p {
    margin: 0 0 22px;
    color: #666;
}

.archive-layout {
    display: grid;
    gap: 18px;
}

@media (min-width: 860px) {
    .archive-layout {
        grid-template-columns: 340px 1fr;
        align-items: start;
    }
}

.archive-calendar-card,
.archive-results-card {
    background: #fff;
    border: 1px solid #e4e0d8;
    border-radius: 10px;
    padding: 16px;
}

.archive-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.archive-cal-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.archive-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
}

.archive-weekdays,
.archive-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.archive-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #888;
    padding: 4px 0;
}

.archive-grid button {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-size: 0.88rem;
    cursor: default;
    color: #bbb;
}

.archive-grid button.has-edition {
    background: #f3f8ff;
    border-color: #cfe0ff;
    color: #111;
    cursor: pointer;
    font-weight: 600;
}

.archive-grid button.has-edition::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1a7f37;
    transform: translateX(-50%);
}

.archive-grid button.is-selected {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.archive-grid button.is-selected::after {
    background: #8fdf9f;
}

.archive-grid button.is-today:not(.is-selected) {
    border-color: #0d6efd;
}

.archive-hint {
    margin: 12px 0 0;
    font-size: 0.78rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}

.archive-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1a7f37;
    display: inline-block;
}

.archive-results-card h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
}

.archive-empty {
    color: #777;
    margin: 8px 0;
}

.archive-edition-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #ebe6dc;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
    background: #fffcf7;
}

.archive-edition-card:hover {
    border-color: #cfc8ba;
    background: #fff;
}

.archive-edition-card img,
.archive-edition-ph {
    width: 64px;
    height: 84px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
    flex-shrink: 0;
}

.archive-edition-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.4rem;
}

.archive-edition-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.archive-edition-meta strong {
    font-size: 0.95rem;
    line-height: 1.3;
}

.archive-edition-meta span {
    font-size: 0.8rem;
    color: #777;
}
