/* ============================================================
   SCS Board Meetings — Plugin Styles
   ============================================================ */

/* ── Layout Wrapper ───────────────────────────────────────── */
.scs-board-meetings-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* ── School Sections ──────────────────────────────────────── */
.scs-school-section {
    margin-bottom: 48px;
}

.scs-school-heading {
    font-size: 1.6em;
    font-weight: 700;
    color: #1a3c5e;
    border-bottom: 3px solid #1a3c5e;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.scs-no-meetings {
    color: #666;
    font-style: italic;
    padding: 12px 0;
}

/* ── Meetings Table ───────────────────────────────────────── */
.scs-meetings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.scs-meetings-table thead {
    background: #1a3c5e;
    color: #fff;
}

.scs-meetings-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.scs-meetings-table tbody tr {
    border-bottom: 1px solid #e8ecf0;
    transition: background 0.15s ease;
}

.scs-meetings-table tbody tr:hover {
    background: #f4f7fa;
}

.scs-meetings-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.95em;
}

.scs-meetings-table tbody tr:last-child {
    border-bottom: none;
}

/* ── Agenda Link ──────────────────────────────────────────── */
.scs-agenda-link {
    display: inline-block;
    padding: 5px 14px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    transition: background 0.2s ease;
}

.scs-agenda-link:hover,
.scs-agenda-link:focus {
    background: #135e96;
    color: #fff !important;
    text-decoration: none;
}

/* ── Back Link ────────────────────────────────────────────── */
.scs-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.scs-back-link:hover {
    text-decoration: underline;
}

/* ── Agenda Detail Header ─────────────────────────────────── */
.scs-agenda-header {
    margin-bottom: 32px;
}

.scs-agenda-header h1 {
    font-size: 1.8em;
    color: #1a3c5e;
    margin-bottom: 12px;
}

.scs-meeting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    color: #555;
    font-size: 0.95em;
}

.scs-meta-item strong {
    color: #333;
}

/* ── Category Groups ──────────────────────────────────────── */
.scs-category-group {
    margin-bottom: 28px;
}

.scs-category-heading {
    font-size: 1.15em;
    font-weight: 700;
    color: #1a3c5e;
    background: #edf2f7;
    padding: 10px 16px;
    border-left: 4px solid #2271b1;
    margin-bottom: 12px;
    border-radius: 0 4px 4px 0;
}

/* ── Agenda Items ─────────────────────────────────────────── */
.scs-agenda-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: box-shadow 0.15s ease;
}

.scs-agenda-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.scs-item-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.scs-item-number {
    font-weight: 700;
    color: #2271b1;
    white-space: nowrap;
    font-size: 0.95em;
}

.scs-item-title {
    font-weight: 600;
    font-size: 1.05em;
    color: #222;
}

.scs-item-description {
    color: #555;
    font-size: 0.9em;
    margin: 4px 0 8px;
}

.scs-no-items {
    color: #666;
    font-style: italic;
}

/* ── File Attachments ─────────────────────────────────────── */
.scs-item-files {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.scs-files-label {
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.scs-file-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.scs-file-list li {
    padding: 4px 0;
    font-size: 0.9em;
}

.scs-file-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.scs-file-link:hover {
    text-decoration: underline;
    color: #135e96;
}

.scs-file-icon {
    font-size: 1em;
    vertical-align: middle;
}

.scs-file-size {
    color: #888;
    font-size: 0.85em;
}

.scs-file-unavailable {
    color: #999;
}

/* ── Responsive ───────────────────────────────────────────── */
@media screen and (max-width: 768px) {
    .scs-meetings-table thead {
        display: none;
    }

    .scs-meetings-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 8px 0;
    }

    .scs-meetings-table tbody td {
        display: block;
        padding: 6px 16px;
        text-align: left;
    }

    .scs-meetings-table tbody td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #1a3c5e;
    }

    .scs-meetings-table tbody td:last-child::before {
        content: "";
    }

    .scs-meeting-meta {
        flex-direction: column;
        gap: 6px;
    }

    .scs-item-header {
        flex-direction: column;
        gap: 2px;
    }
}
