/* =========================================================================
   TOP NOTICE BAR — obvestilo nad headerjem (FABLE tema)
   Vklop/izklop, besedilo, povezava in trajanje skritja: uredi v
   Videz > Nastavitve teme (oc-content/themes/fable/admin/settings.php).
   Markup: fable_top_notice() v functions.php, hook 'body_top' (header.php).
   ========================================================================= */
.fable-top-notice {
    --fable-notice-bg: #1a1a1a;
    --fable-notice-color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--fable-notice-bg);
    color: var(--fable-notice-color);
    padding: 10px 44px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.fable-top-notice-link {
    color: var(--fable-notice-color);
    text-decoration: underline;
}

.fable-top-notice-link:hover {
    opacity: .85;
}

.fable-top-notice-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .15);
    border: none;
    color: var(--fable-notice-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fable-top-notice-close:hover {
    background: rgba(255, 255, 255, .3);
}

.fable-top-notice-hidden {
    display: none !important;
}

/* Sobivanje z core admin trakom (#header-admin), enak vzorec kot pri
   header.site-header v style-child.css: dva selektorja, class fallback
   + :has() za prikaz brez flash-a na prvi izris. */
body.osc-has-admin-header .fable-top-notice,
body:has(#header-admin) .fable-top-notice {
    margin-top: 34px;
}

@media screen and (max-width: 767px) {
    .fable-top-notice {
        padding: 10px 38px;
        font-size: 12.5px;
    }
    body.osc-has-admin-header .fable-top-notice,
    body:has(#header-admin) .fable-top-notice {
        margin-top: 46px;
    }
}
