/* Past list page UI override (image-based layout) */
.past-section {
    padding: 10px 12px var(--spacing-md);
}

.past-section .past-menu-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: #fffaf2;
    border: 1px solid #ffe3b4;
    border-radius: 6px;
}

.past-section .past-menu-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.past-section .past-menu-title {
    font-size: calc(var(--font-size-base) + 1px);
    font-weight: 700;
    color: var(--color-blue);
    line-height: 1.35;
}

.past-section .past-menu-desc {
    font-size: var(--font-size-sm);
    color: #333;
    line-height: 1.4;
    word-break: keep-all;
}

.past-section .past-menu-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d6dce2;
}

.past-section .past-menu-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.past-section .past-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 52px;
    padding: 0 14px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-dark-gray);
    text-decoration: none;
    background: transparent;
    border: none;
    border-bottom: 5px solid transparent;
    border-radius: 0;
    margin-bottom: 0;
    white-space: nowrap;
}

.past-section .past-chip.active {
    color: var(--color-text);
    font-weight: 700;
    background: transparent;
    border-bottom: 5px solid var(--color-basic);
}

.past-section .past-select {
    height: 30px;
    padding: 0 16px 0 2px;
    font-size: var(--font-size-base);
    color: #111;
    border: none;
    border-bottom: 1px solid #1b1b1b;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' fill='%23111'%3E%3Cpath d='M4.5 7L1 2h7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.past-section .past-select:focus {
    outline: none;
    border-bottom-color: #3d84c6;
}

.past-section .past-select-category {
    height: 32px;
    width: 96px;
    padding: 4px 22px 4px 8px;
    font-size: calc(var(--font-size-sm) + 2px);
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid var(--color-gray);
    border-radius: 4px;
    background-color: var(--color-white);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    margin-bottom: 0;
}

.past-section .past-select-category option {
    font-size: calc(var(--font-size-sm) + 2px);
}

.past-section .past-select-category.active {
    color: var(--color-text);
    font-weight: 700;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray);
    text-decoration: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.past-section .past-select-category:focus {
    border-color: var(--color-basic);
}

.past-section .past-select-pagesu {
    width: 92px;
    font-size: var(--font-size-sm);
    text-decoration: underline;
}

.past-section .past-menu-controls .tab-year-select {
    margin-left: 0;
    flex: 0 0 auto;
    height: 32px;
    padding: 4px 22px 4px 8px;
    font-size: calc(var(--font-size-sm) + 2px);
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid var(--color-gray);
    border-radius: 4px;
    background-color: var(--color-white);
    color: var(--color-text);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

.past-section .past-menu-controls-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: var(--font-size-sm);
    color: #111;
}

.past-section .past-sort-link {
    color: #111;
    text-decoration: underline;
}

.past-section .past-sort-divider,
.past-section .past-sort-bracket {
    color: #111;
}

.past-section .past-search-row {
    display: flex;
    padding: 0 0 8px;
    background: transparent;
}

.past-section .past-search-row .today-search-bar {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
}

.past-section .past-search-row .today-search-input {
    flex: 0 0 68%;
    max-width: 220px;
    height: 32px;
    padding: 6px 8px;
    font-size: var(--font-size-sm);
}

.past-section .past-search-row .today-search-btn {
    font-size: 18px;
}

.past-section .today-list {
    border-top: 1px solid #d6dce2;
}

.past-section .today-list-item {
    padding: 12px 10px;
    border-bottom: 1px solid #cfd7df;
    gap: 8px;
}

.past-section .today-list-item:nth-child(odd) {
    background-color: #f0f6ff;
}

.past-section .today-status-btn {
    display: inline-block;
    width: 70px;
    min-width: 70px;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.past-section .today-status-btn.status-apply,
.past-section .today-status-btn.status-studying,
.past-section .today-status-btn.status-completed {
    border-width: 1px;
    border-style: solid;
}

.past-section .today-status-btn.status-apply {
    color: var(--color-black);
    background: var(--color-white);
    border-color: var(--color-blue);
}

.past-section .today-status-btn.status-studying {
    color: var(--color-blue);
    background: var(--color-white);
    border-color: var(--color-blue);
}

.past-section .today-status-btn.status-completed {
    color: var(--color-dark-gray);
    background: var(--color-lightgray);
    border-color: var(--color-gray);
}

.past-section .past-detail-post-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.past-section .past-detail-post-form .today-status-btn {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.past-section .past-status-empty {
    display: inline-block;
    width: 48px;
    height: 1px;
}

@media (min-width: 600px) {
    .past-section .past-menu-header {
        gap: 10px;
    }

    .past-section .past-menu-desc {
        font-size: var(--font-size-base);
    }

    .past-section .past-search-row .today-search-input {
        max-width: 280px;
    }
}

@media (min-width: 1025px) {
    .past-section .past-menu-controls {
        gap: 16px;
    }

    .past-section .past-search-row .today-search-input {
        max-width: 320px;
    }
}
