/* ============================================================================
   HEY LSIP — Minutes repository page
   ============================================================================ */

.minutes-page {
    padding: 2rem 1.25rem 3rem;
}

.minutes-group {
    margin-bottom: 3rem;
}

.minutes-group-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #28a745;
    display: inline-block;
}

.minutes-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
}

.minutes-table thead th {
    background: #f8f8f4;
    color: #222;
    text-align: left;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid #e6e6e6;
}

.minutes-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.minutes-table tbody tr:last-child td {
    border-bottom: none;
}

.minutes-table tbody tr:hover {
    background: #fafafa;
}

.minutes-date {
    white-space: nowrap;
    color: #555;
    font-size: 0.9rem;
    width: 130px;
}

.minutes-summary {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.minutes-summary p { margin-bottom: 0.5rem; }
.minutes-summary p:last-child { margin-bottom: 0; }

.minutes-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border: 1px solid #28a745;
    border-radius: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.minutes-download:hover {
    background: #28a745;
    color: #fff;
}

.minutes-download .material-symbols-outlined {
    font-size: 1.1rem;
}

@media (max-width: 700px) {
    .minutes-table thead { display: none; }
    .minutes-table, .minutes-table tbody, .minutes-table tr, .minutes-table td { display: block; width: 100%; }
    .minutes-table tr { padding: 1rem; border-bottom: 1px solid #f0f0f0; }
    .minutes-table tbody td { padding: 0.25rem 0; border: none; }
    .minutes-date { width: auto; }
    .text-end { text-align: left !important; }
    .minutes-download { margin-top: 0.5rem; }
}

/* ── AI summary affordance ────────────────────────────────────────────────── */

.minutes-ai-row {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.minutes-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 1.5px solid #14387a;
    border-radius: 999px;
    background: #fff;
    color: #14387a;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    line-height: 1.1;
}

.minutes-ai-btn:hover:not(:disabled) {
    background: #14387a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(20, 56, 122, 0.18);
}

.minutes-ai-btn .material-symbols-outlined { font-size: 1rem; }

.minutes-ai-btn.is-loading {
    cursor: progress;
    color: #555;
    border-color: #c9c5b8;
}

.minutes-ai-btn.is-loading .material-symbols-outlined {
    animation: minutes-ai-spin 1.1s linear infinite;
}

@keyframes minutes-ai-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.minutes-ai-hint {
    color: #777;
    font-size: 0.8rem;
}

.minutes-ai-error {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    background: #fef0ee;
    border: 1px solid #f5c2c0;
    color: #8a1f15;
    font-size: 0.85rem;
}
.minutes-ai-error .material-symbols-outlined { font-size: 1.05rem; }
.minutes-ai-retry {
    background: transparent;
    border: 0;
    color: #8a1f15;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
}

/* The summary panel itself — a soft callout that visually distinguishes
 * machine-generated copy from the human-authored Body summary above. */
.minutes-ai-panel {
    width: 100%;
    margin-top: 0.25rem;
    border: 1px solid #d8e0ee;
    border-radius: 10px;
    background: linear-gradient(180deg, #f4f7fc 0%, #fbfcfe 100%);
    overflow: hidden;
}

.minutes-ai-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid #e3e9f3;
    background: rgba(20, 56, 122, 0.04);
}

.minutes-ai-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #14387a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.minutes-ai-panel__badge .material-symbols-outlined { font-size: 1rem; }

.minutes-ai-panel__close {
    background: transparent;
    border: 0;
    color: #6a6f78;
    cursor: pointer;
    padding: 0.15rem;
    display: flex;
    border-radius: 4px;
}
.minutes-ai-panel__close:hover { background: rgba(20, 56, 122, 0.08); color: #14387a; }
.minutes-ai-panel__close .material-symbols-outlined { font-size: 1.05rem; }

.minutes-ai-panel__body {
    padding: 0.9rem 1.1rem 0.5rem;
    color: #2a2f36;
    font-size: 0.93rem;
    line-height: 1.55;
}
.minutes-ai-panel__body p { margin: 0 0 0.7rem; }
.minutes-ai-panel__body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #14387a;
    margin: 0.4rem 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.minutes-ai-panel__body ul {
    margin: 0 0 0.6rem;
    padding-left: 1.2rem;
}
.minutes-ai-panel__body li { margin-bottom: 0.25rem; }

.minutes-ai-panel__foot {
    padding: 0.45rem 1.1rem 0.7rem;
    color: #6a6f78;
    font-size: 0.75rem;
    font-style: italic;
}
