/* Public data sections (documents, transparency) */
.sec-body { margin-top: 1.5rem; }
.sec-intro { margin-bottom: 1.5rem; }

.sec-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; padding: 1rem; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.sec-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 10rem; }
.sec-field-grow { flex: 1 1 14rem; }
.sec-field label { font-size: 0.875rem; font-weight: 600; color: var(--text-light); }
.sec-field select, .sec-field input { padding: 0.5rem 0.75rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-white); color: var(--text-color); font: inherit; }

.sec-button { display: inline-block; padding: 0.5rem 1.25rem; border: 1px solid var(--primary-color); border-radius: var(--radius-sm); background: var(--primary-color); color: var(--bg-white); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: var(--transition); }
.sec-button:hover { background: var(--secondary-color); border-color: var(--secondary-color); }
.sec-button-outline { background: transparent; color: var(--primary-color); }
.sec-button-outline:hover { color: var(--bg-white); }

.sec-count { margin: 1.25rem 0 0.75rem; color: var(--text-light); }

.sec-doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.sec-doc-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.sec-doc-card .sec-button { align-self: flex-start; margin-top: auto; }
.sec-doc-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.8125rem; color: var(--text-light); }
.sec-tag { padding: 0.125rem 0.625rem; border-radius: 999px; background: var(--bg-light); color: var(--primary-color); font-weight: 600; }
.sec-tag-year { background: var(--accent-color); color: var(--text-color); }
.sec-doc-title { margin: 0; font-size: 1.0625rem; color: var(--primary-color); }
.sec-doc-description { margin: 0; color: var(--text-light); }

.sec-empty { padding: 2rem; text-align: center; background: var(--bg-light); border-radius: var(--radius-md); color: var(--text-light); }
.sec-empty a { color: var(--secondary-color); }

.sec-block { margin-bottom: 2rem; }
.sec-block h2 { margin-bottom: 0.75rem; color: var(--primary-color); font-size: 1.375rem; }
.sec-table { width: 100%; border-collapse: collapse; }
.sec-table th, .sec-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.sec-table th { width: 14rem; color: var(--text-light); font-weight: 600; }
.sec-file-list { list-style: none; padding: 0; margin: 0; }
.sec-file-list li { display: flex; gap: 1rem; padding: 0.625rem 0; border-bottom: 1px solid var(--border-color); }
.sec-file-list time { flex: 0 0 6.5rem; color: var(--text-light); }
.sec-file-list a { color: var(--secondary-color); }
.sec-steps { margin-bottom: 1rem; }

@media (max-width: 600px) {
    .sec-table th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
    .sec-table td { display: block; }
    .sec-file-list li { flex-direction: column; gap: 0.125rem; }
}

/* Homeroom, program, school periods, timetable */
.sec-level { margin-bottom: 2rem; }
.sec-level h2, .sec-timetable h3, .sec-periods h2 { margin: 0 0 0.75rem; color: var(--primary-color); }
.sec-table-wrap { max-width: 100%; overflow-x: auto; }
.sec-data-table { width: 100%; border-collapse: collapse; background: var(--bg-white); border: 1px solid var(--border-color); }
.sec-data-table th, .sec-data-table td { padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.sec-data-table { min-width: 28rem; }
.sec-data-table th { background: var(--bg-light); color: var(--primary-color); font-weight: 600; }
.sec-muted { color: var(--text-light); font-size: 0.875rem; }
.sec-periods { margin-bottom: 2rem; }
.sec-countdown { margin: 0 0 1rem; padding: 0.75rem 1rem; background: var(--bg-light); border-left: 4px solid var(--accent-color); border-radius: var(--radius-sm); }
.sec-period-vacation td { background: var(--bg-light); }
.sec-timetable { margin-bottom: 2rem; }
.sec-timetable-days { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.sec-timetable-day { padding: 0.75rem 1rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.sec-timetable-day h4 { margin: 0 0 0.5rem; color: var(--primary-color); font-size: 1rem; }
.sec-timetable-day ul { list-style: none; margin: 0; padding: 0; }
.sec-timetable-day li { padding: 0.375rem 0; border-top: 1px solid var(--border-color); }
.sec-timetable-day li:first-child { border-top: 0; }

/* Palmares, inscrieri, home-page blocks */
.sec-data-table.sec-wide-table { min-width: 44rem; }
.sec-tracks { display: grid; gap: 1.5rem; }
.sec-track { padding: 1.25rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.sec-track h2 { margin: 0 0 0.5rem; color: var(--primary-color); }
.sec-track h3 { margin: 1rem 0 0.5rem; font-size: 1.0625rem; }
.sec-track-facts { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.sec-track-docs { margin: 0 0 1rem; padding-left: 1.25rem; }
.home-notices { padding: 1.5rem 0; background: var(--bg-light); }
.home-notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.home-notice { padding: 1rem 1.25rem; background: var(--bg-white); border-left: 4px solid var(--accent-color); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.home-notice-title { margin: 0 0 0.25rem; font-size: 1.25rem; color: var(--primary-color); }
.home-notice-deadline { margin: 0 0 0.5rem; font-weight: 600; }
.home-notice-text { margin: 0 0 0.75rem; }
.home-achievement-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.home-achievement { padding: 1.25rem; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.home-achievement h3 { margin: 0.5rem 0 0.25rem; color: var(--primary-color); }
.home-achievement p { margin: 0 0 0.25rem; }
.home-more { margin: 1rem 0 0; text-align: right; }
.home-more a { color: var(--secondary-color); font-weight: 600; }

/* Section next to the child-page sidebar of its intro page */
.page-layout-with-sidebar .sec-main {
    flex: 1;
    min-width: 0;
}

/* National data: legal holidays, exams, scholarships */
.sec-holidays { list-style: none; margin: 0 0 1rem; padding: 0; }
.sec-holidays li { padding: 0.375rem 0; border-top: 1px solid var(--border-color); }
.sec-holidays li:first-child { border-top: 0; }
.sec-holiday-date { display: inline-block; min-width: 6rem; font-weight: 600; color: var(--primary-color); }
.sec-exams h2, .sec-scholarships h2 { margin: 1.5rem 0 0.75rem; }
.sec-exams h2:first-child, .sec-scholarships h2:first-child { margin-top: 0; }
