/*
 * Ownmind Accessibility - FRZL v3.0.0
 * UWAGA: Celowo NIE dotykamy CSS podmenu i nawigacji UAEL
 * aby nie konfliktowac z ich logiką wyswietlania.
 */

/* =============================================================
   1. FOCUS - widoczny wskaznik klawiatury
   ============================================================= */
*:focus {
    outline: 3px solid #c8a400 !important;
    outline-offset: 2px !important;
}
*:focus:not(:focus-visible) {
    outline: none !important;
}
*:focus-visible {
    outline: 3px solid #c8a400 !important;
    outline-offset: 2px !important;
}

/* =============================================================
   2. SKIP LINK
   ============================================================= */
.ownmind-skip-link {
    position: absolute;
    top: -200px;
    left: 8px;
    z-index: 999999;
    background: #c8a400;
    color: #fff !important;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0 0 6px 6px;
    text-decoration: none !important;
    transition: top 0.15s ease;
    border: 2px solid #fff;
}
.ownmind-skip-link:focus {
    top: 0 !important;
    outline: 3px solid #fff !important;
    outline-offset: 2px !important;
}

/* =============================================================
   3. BADGE TYP PLIKU - ukryty w nav, widoczny w tresci
   ============================================================= */
.ownmind-file-badge,
.ownmind-file-size {
    display: inline-block;
}

/* Ukryj w CALOSCI nawigacji - CSS nieomylny */
header .ownmind-file-badge,
header .ownmind-file-size,
nav .ownmind-file-badge,
nav .ownmind-file-size,
#site-header .ownmind-file-badge,
#site-header .ownmind-file-size,
#masthead .ownmind-file-badge,
#masthead .ownmind-file-size,
.elementor-nav-menu .ownmind-file-badge,
.elementor-nav-menu .ownmind-file-size,
.uael-nav-menu .ownmind-file-badge,
.uael-nav-menu .ownmind-file-size,
.main-navigation .ownmind-file-badge,
.main-navigation .ownmind-file-size {
    display: none !important;
}

.ownmind-file-badge {
    margin-left: 8px;
    font-size: 0.72em;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 1px 7px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.5);
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.6;
}

.ownmind-file-size {
    margin-left: 5px;
    font-size: 0.72em;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    vertical-align: middle;
    white-space: nowrap;
}

.ownmind-file-size::before {
    content: '\2022 ';
    opacity: 0.6;
}

/* =============================================================
   4. ZAKLADKI - fokus
   ============================================================= */
.tabs-item:focus,
.tabs-item:focus-visible,
.elementor-tab-title:focus,
.elementor-tab-title:focus-visible {
    outline: 3px solid #c8a400 !important;
    outline-offset: 2px !important;
}

.tabs-item[aria-selected="true"],
.elementor-tab-title[aria-selected="true"] {
    border-bottom: 3px solid #c8a400;
}

.tabs-item {
    cursor: pointer;
}

/* =============================================================
   5. PRZYCISKI DO POBRANIA
   Tlo ciemniejsze #7d5f00 = kontrast 5.47:1 z bialym (WCAG AA)
   ============================================================= */
.tab-content a[href$=".pdf"],
.tab-content a[href$=".docx"],
.tab-content a[href$=".doc"],
.tab-content a[href$=".xlsx"],
.tab-content a[href$=".xls"],
.tab-content a[href$=".zip"],
.tab-content a[href$=".ZIP"],
.tab-content a[href$=".pptx"],
.tab-content a[href$=".odt"] {
    color: #ffffff !important;
    background-color: #7d5f00 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.tab-content a[href$=".pdf"]:hover,
.tab-content a[href$=".docx"]:hover,
.tab-content a[href$=".doc"]:hover,
.tab-content a[href$=".xlsx"]:hover,
.tab-content a[href$=".zip"]:hover,
.tab-content a[href$=".ZIP"]:hover {
    background-color: #5a4400 !important;
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* =============================================================
   6. TEKST I LISTY
   ============================================================= */
.tab-content p,
.tab-content li,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li,
.elementor-text-editor p,
.elementor-text-editor li,
.entry-content p,
.entry-content li {
    text-align: left !important;
}

.tab-content p,
.elementor-widget-text-editor p,
.elementor-text-editor p,
.entry-content p {
    line-height: 1.8;
    margin-bottom: 1.1em;
    word-break: break-word;
}

.tab-content ul,
.tab-content ol,
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.elementor-text-editor ul,
.elementor-text-editor ol,
.entry-content ul,
.entry-content ol {
    padding-left: 1.7rem;
    margin-top: 0.5rem;
    margin-bottom: 1.1rem;
    line-height: 1.8;
}

.tab-content ul li,
.elementor-widget-text-editor ul li,
.elementor-text-editor ul li,
.entry-content ul li {
    list-style-type: disc;
    margin-bottom: 0.45rem;
}

.tab-content ol li,
.elementor-widget-text-editor ol li,
.elementor-text-editor ol li,
.entry-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.45rem;
}
