.archive-month-grid {
    /* margin-top: 2rem; */
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #d1d5db;
    border-left: 1px solid #d1d5db;
}

.table th,
.table td {
    border-right: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
}

.table th {
    background-color: #f3f4f6;
    text-align: center;
    font-weight: 600;
    width: 4.5rem;
}

.table td {
    background-color: #ffffff;
}

.archive-month-grid__list {
    /* border-top: 1px solid #d1d5db;
    padding-top: 1.5rem; */
}

.archive-month-grid__section+.archive-month-grid__section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.archive-month-grid__header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.archive-month-grid__year {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
    min-width: 4.5rem;
}

.archive-month-grid__months {
    display: grid;
    grid-template-columns: repeat(12, minmax(2.5rem, auto));
    gap: 0.5rem 1rem;
}
@media(max-width:767px) {
.archive-month-grid__months {
    grid-template-columns: repeat(6, minmax(2.5rem, auto));
}
}
.archive-month-grid__month {
    display: inline-block;
    font-size: 0.95rem;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: center;
}

.archive-month-grid__month:hover,
.archive-month-grid__month:focus {
    color: var(--color-green);
    opacity: 0.7;
}

.archive-month-grid__month.is-current {
    font-weight: 600;
    color: var(--color-green);
    border-bottom: 2px solid var(--color-green);
    padding-bottom: 0.1rem;
}

.archive-month-grid__month.is-empty {
    color: #d1d5db;
    cursor: default;
}

.item-category-index {
    /* padding-top: 1.5rem; */
}

.item-category-index__section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #d1d5db;
}

.item-category-index__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.item-category-index__title-link,
.item-category-index__title-text {
    color: #166534;
    text-decoration: none;
}

.item-category-index__title-link:hover,
.item-category-index__title-link:focus {
    text-decoration: underline;
}

.item-category-index__matrix {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item-category-index__row {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1.25rem;
    align-items: baseline;
}

.item-category-index__year {
    font-weight: 600;
    color: #1f2937;
}

.item-category-index__months {
    display: grid;
    grid-template-columns: repeat(12, minmax(2.5rem, auto));
    gap: 0.5rem 1rem;
}

.item-category-index__month {
    display: inline-block;
    font-size: 0.95rem;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.1rem;
    text-align: center;
}

.item-category-index__month:hover,
.item-category-index__month:focus {
    color: var(--color-green);
    border-bottom-color: var(--color-green);
}

.item-category-index__month.is-empty {
    color: #d1d5db;
    border-bottom-color: transparent;
    cursor: default;
}

.item-category-index__empty {
    font-size: 0.9rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .item-category-index__row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .item-category-index__months {
        grid-template-columns: repeat(6, minmax(2.5rem, auto));
    }
}

.date-index {
}

.date-index__year-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

.date-index__year-link {
    color: #166534;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 0.1rem 0;
}

.date-index__year-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.date-index__year-link:hover::after,
.date-index__year-link:focus::after,
.date-index__year-link.is-current::after {
    background-color: #166534;
}

.date-index__year {
    margin-top: 2rem;
}

.date-index__year-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.date-index__months {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1rem;
}

.date-index__month {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.date-index__month-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 0.5rem;
}

.date-index__calendar {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
}

.date-index__calendar-header,
.date-index__calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(2.5rem, 1fr));
    text-align: center;
    gap: 0.5rem;
}

.date-index__calendar-header {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #4b5563;
}

.date-index__calendar-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    color: #9ca3af;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.date-index__calendar-cell.is-day {
    color: #1f2937;
}

.date-index__calendar-cell.has-articles {
    color: var(--color-green);
    border: 2px solid rgb(6 133 42 / 12%);
    box-sizing: border-box;
    width: 45px;
    height: 45px;
    margin: 0 auto;
}

.date-index__calendar-cell.has-articles:hover,
.date-index__calendar-cell.has-articles:focus {
    background-color: rgb(6 133 42 / 12%);
    border-color: var(--color-green);
    color: var(--color-green);
}

.date-index__calendar-cell.is-selected {
    /* background-color: var(--color-green);
    color: #fff;
    border-color: var(--color-green);
    box-shadow: 0 6px 15px rgba(11, 94, 215, 0.35); */
}

.date-index__calendar-cell.is-empty {
    color: transparent;
}

.date-index__results-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.date-index__results-list {
    display: grid;
    gap: 0.75rem;
}

.date-index__results-link {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-index__results-link:hover,
.date-index__results-link:focus {
    border-color: var(--color-green);
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.15);
}

.date-index__results-date {
    font-size: 0.9rem;
    color: #4b5563;
    min-width: 6rem;
}

.date-index__results-title-text {
    color: #1f2937;
    font-weight: 500;
}

.date-index__results-empty {
    color: #6b7280;
}

.date-index__empty {
    color: #6b7280;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .date-index__months {
        gap: 2rem;
    }

    .date-index__calendar-header,
    .date-index__calendar-grid {
        grid-template-columns: repeat(7, minmax(2rem, 1fr));
    }

    .date-index__calendar-cell {
        height: 2.25rem;
        font-size: 0.85rem;
    }

    .date-index__results-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .date-index__results-date {
        min-width: auto;
    }
}

.pagination {
    margin-top: 2.5rem;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
    color: #fff;
    background-color: var(--color-green);
    border-color: var(--color-green);
}

.pagination .page-numbers.current {
    color: #fff;
    background-color: var(--color-green);
    border-color: var(--color-green);
    cursor: default;
}

.pagination .page-numbers.dots {
    border-color: transparent;
    background-color: transparent;
    color: #6b7280;
    cursor: default;
}
