/* IT-Wiki стильова шапка — додається окремим файлом, підключається з main.tpl */

/* Breadcrumb */
.wiki-breadcrumb {
    margin: 0 0 16px 0;
    padding: 8px 14px;
    background: #f5f5f7;
    border: 1px solid #e3e3e6;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
}
.wiki-breadcrumb a { color: #2c6fb8; text-decoration: none; }
.wiki-breadcrumb a:hover { text-decoration: underline; }

/* Wiki article header */
.cont_in.wiki-article .cont_title h1 {
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 6px 0;
}
.cont_in.wiki-article .n_oth {
    color: #777;
    font-size: 12px;
}

/* Article body tweaks — trochę чіткіше, як у довіднику */
.cont_in.wiki-article h3 {
    margin-top: 28px;
    font-size: 19px;
    border-bottom: 1px solid #ececec;
    padding-bottom: 4px;
}

/* TOC-row (shortstory у category listing) */
.wiki-toc-row {
    padding: 14px 16px;
    margin: 0 0 10px 0;
    background: #fff;
    border: 1px solid #e3e3e6;
    border-left: 3px solid #2c6fb8;
    border-radius: 0 4px 4px 0;
    transition: background 0.12s;
}
.wiki-toc-row:hover { background: #f7faff; }
.wiki-toc-title {
    font-size: 17px;
    margin: 0 0 4px 0;
    line-height: 1.3;
}
.wiki-toc-title a { color: #1a3d5f; text-decoration: none; }
.wiki-toc-title a:hover { color: #2c6fb8; text-decoration: underline; }
.wiki-toc-descr {
    color: #555;
    font-size: 14px;
    line-height: 1.45;
}
.wiki-toc-descr p { margin: 0; }

/* «Інші статті циклу» */
.cont_in.wiki-see-also {
    margin-top: 24px;
    background: #fafbfc;
    border-left: 3px solid #2d7a2d;
}
.cont_in.wiki-see-also h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #2d7a2d;
    border: none;
    padding: 0;
}
.wiki-related-list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: square;
}
.wiki-related-list li { margin: 4px 0; }
.wiki-related-list a { color: #2c6fb8; }

/* Wiki cycle nav (sidebar block) */
.wiki-cycle-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}
.wiki-cycle-nav li { margin: 6px 0; }
.wiki-cycle-nav a {
    display: block;
    padding: 5px 8px;
    color: #1a3d5f;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}
.wiki-cycle-nav a:hover { background: #e8f0f8; color: #2c6fb8; }

/* Hub-бейдж (резерв — підключиться після xfields) */
.wiki-hub-badge {
    display: inline-block;
    padding: 1px 7px;
    margin-left: 6px;
    font-size: 11px;
    vertical-align: middle;
    background: #2d7a2d;
    color: #fff;
    border-radius: 3px;
    font-weight: normal;
}

/* Fix: breadcrumb не має вилазити за ширину центральної колонки */
.wiki-breadcrumb,
.wiki-breadcrumb .speedbar,
.wiki-breadcrumb #dle-speedbar {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.wiki-breadcrumb .speedbar { padding: 0; background: transparent; border: none; }
.wiki-breadcrumb a { color: #2c6fb8; }

/* Fix #2: старий .speedbar із styles.css має position:absolute — скасовуємо */
.wiki-breadcrumb { position: relative; }
.wiki-breadcrumb .speedbar {
    position: static !important;
    top: auto !important;
    color: #555;
}
.wiki-breadcrumb .speedbar a { color: #2c6fb8 !important; }
