/**
 * Стили раздела «Сведения об образовательной организации» (/sveden/*)
 */

/* ==========================================================================
   1. САЙДБАР
   ========================================================================== */
.sveden-nav-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 8px;
    position: sticky;
    top: 20px;
}

.sveden-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sveden-nav-link {
    display: block;
    padding: 8px 12px;
    font-size: var(--font-body-s);
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    text-decoration: none;
    line-height: 1.25;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sveden-nav-link:hover {
    background-color: #f1f5f9;
    color: var(--vstts-accent-primary);
}

/* Активный пункт */
.sveden-nav-link.is-active,
.sveden-nav-item.is-active .sveden-nav-link {
    background-color: var(--vstts-bg-base-03);
    color: var(--vstts-accent-primary);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--vstts-accent-primary);
    cursor: default;
    pointer-events: none;
}

/* ==========================================================================
   2. КОНТЕНТНЫЕ СЕКЦИИ
   ========================================================================== */
.sveden-section {
    font-size: var(--font-body-l); 
    font-weight: 400;
    color: #1e2a3c;
    margin-top: 0;
    margin-bottom: 32px;
    padding-bottom: 8px;
}

.sveden-section h2 {
    font-size: var(--font-h3);
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 16px;
}

/* ==========================================================================
   3. ТАБЛИЦЫ
   ========================================================================== 
*/
.sveden-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    font-size: var(--font-body-m);
    border-radius: 0;
}

.sveden-table th {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    font-weight: bold;
    vertical-align: middle;
}

.sveden-table td {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    color: #334155;
    font-weight: 400;
    vertical-align: top;
    line-height: 1.35;
}

.sveden-table tr:hover td {
    background-color: #f8fafc;
}

table>caption {
  margin:0 0 8px 0;
  padding:0;
}

/* ==========================================================================
   4. КАРТОЧКА ДОКУМЕНТА
   ========================================================================== */
.sveden-doc-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    width: fit-content;
    min-width: 150px; 
    max-width: 600px;
    transition: background-color 0.2s ease;
}

.sveden-doc-card:hover {
    background: rgba(112, 182, 246, 0.15);
}

.sveden-doc-title {
    font-weight: 600;
    font-size: var(--font-body-l);
    color: var(--vstts-text-primary);
    margin-bottom: 4px;
}

.sveden-doc-date {
    font-size: var(--font-body-s);
    color: #64748b;
    margin-bottom: 8px;
}

.sveden-doc-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sveden-doc-btn {
    font-size: var(--font-body-m);
    color: var(--bs-link-color);
    text-decoration: underline;
    font-weight: 500;
}

.sveden-doc-btn:hover {
    color: var(--bs-link-hover-color);
}

/* ==========================================================================
   5. ПЛАШКА ОТСУТСТВИЯ СВЕДЕНИЙ
   ========================================================================== */
.doc-absent {
    padding: 12px 16px;
    background-color: #f8fafc;
    border-left: 3px solid #94a3b8;
    color: #475569;
    font-style: italic;
    font-size: var(--font-body-m);
    margin: 8px 0;
}

.itemprop-empty {
    display: inline;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-style: italic;
}


/* ==========================================================================
   ПЛИТКА КОРНЕВОЙ СТРАНИЦЫ /SVEDEN/
   ========================================================================== */
.sveden-tile-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sveden-tile-card:hover {
    background-color: #ebf3fc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.sveden-tile-content {
    flex: 1;
    min-width: 0;
}

.sveden-tile-arrow {
    font-size: var(--font-h4);
    color: var(--vstts-accent-primary);
    flex-shrink: 0;
}

.sveden-places-list {
    padding-left: 1.25em;
    margin: 0;
}

.sveden-places-list li {
    margin-bottom: 0.75em;
    line-height: 1.35;
}

.sveden-places-list li:last-child {
    margin-bottom: 0;
}

/* Отступ между несколькими карточками документов в ячейке таблицы */
td > .sveden-doc-card:not(:last-child) {
    margin-bottom: 0.5em;
}