/* Explain: Styles for meeting minutes and schedule layout, aligning elements consistently. */
/* 회의 일정·회의록 목록 — 날짜 블록·회의명·구분 배지·파일 링크의 위치와 줄 간격을
   모든 행에서 같게 맞추고, 항목 수가 늘어도 목록이 흔들리지 않도록 정리합니다. */

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

.assembly-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.9rem 1.15rem;
    border: 1px solid var(--border-color);
    border-radius: 1.15rem;
    background: #ffffff;
    padding: 0.95rem 1.25rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.assembly-row:hover {
    border-color: var(--accent-color);
    box-shadow: 0 14px 30px rgba(15, 36, 68, 0.1);
}

/* 날짜 블록 — 모든 행에서 같은 크기·같은 위치 */
.assembly-date {
    display: flex;
    width: 3.9rem;
    min-height: 3.9rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    border-radius: 0.9rem;
    background: var(--accent-soft);
    padding: 0.35rem;
    line-height: 1.15;
    text-align: center;
}

.assembly-date .y { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); }
.assembly-date .m { font-size: 0.72rem; font-weight: 700; color: var(--accent-color); }
.assembly-date .d { font-size: 1.18rem; font-weight: 900; line-height: 1.1; color: var(--primary-color); }

/* 회의명·구분 배지 영역 — 배지 줄 높이를 고정해 회의명 시작 위치를 일정하게 유지 */
.assembly-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.4rem;
}

.assembly-meta {
    display: flex;
    min-height: 1.6rem;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.assembly-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.5em * 2);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.assembly-title a {
    color: inherit;
    transition: color 200ms ease;
}

.assembly-title a:hover {
    color: var(--accent-color);
}

.assembly-info {
    display: flex;
    min-height: 1.4rem;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.assembly-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* 설명 — 최대 두 줄로 고정해 행 높이가 흔들리지 않도록 정리 */
.assembly-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.7em * 2);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

/* 파일 링크 — 오른쪽 같은 위치에 고정 */
.assembly-side {
    display: flex;
    flex-shrink: 0;
    min-width: 7.5rem;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0.1rem;
}

.assembly-file {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    padding: 0 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
    transition: background 200ms ease, border-color 200ms ease;
}

.assembly-file:hover {
    border-color: var(--accent-color);
    background: var(--accent-soft);
}

/* 좁은 화면 — 날짜 블록 아래로 내용과 파일 링크를 나란히 정리 */
@media (max-width: 640px) {
    .assembly-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
    }

    .assembly-date {
        justify-self: flex-start;
    }

    .assembly-side {
        justify-content: flex-start;
        padding-top: 0;
    }

    .assembly-side:empty {
        display: none;
    }
}