/* =========================================================
   DZIENNIK POLICKI – INFOBAR
   ========================================================= */

.dp-infobar {
    --dp-navy: #01182a;
    --dp-red: #c0130e;
    --dp-white: #ffffff;
    --dp-yellow: #ffcc00;

    width: 100%;
    background: var(--dp-navy);
    color: var(--dp-white);
    border-top: 4px solid var(--dp-red);
    box-sizing: border-box;
	
	clear: both;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.dp-infobar *,
.dp-infobar *::before,
.dp-infobar *::after {
    box-sizing: border-box;
}

.dp-infobar__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 1600px);
    margin: 0 auto;
}

/* Pojedynczy kafelek */

.dp-infobar__item {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 96px;
    padding: 20px 24px;
    gap: 15px;
    color: var(--dp-white);
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.dp-infobar__item:last-child {
    border-right: 0;
}

.dp-infobar__item--link:hover,
.dp-infobar__item--link:focus-visible {
    color: var(--dp-white);
    background: var(--dp-red);
    text-decoration: none;
}

.dp-infobar__item--link:focus-visible {
    outline: 3px solid var(--dp-yellow);
    outline-offset: -3px;
}

/* Ikony główne */

.dp-infobar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    color: var(--dp-white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.dp-infobar__item--link:hover .dp-infobar__icon,
.dp-infobar__item--link:focus-visible .dp-infobar__icon {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.dp-infobar__icon svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Tekst */

.dp-infobar__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.25;
}

.dp-infobar__text strong {
    display: block;
    margin: 0 0 5px;
    color: var(--dp-white);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.dp-infobar__text span {
    display: block;
    min-width: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dp-infobar__item--link:hover .dp-infobar__text span,
.dp-infobar__item--link:focus-visible .dp-infobar__text span {
    color: rgba(255, 255, 255, 0.9);
}

/* Social media */

.dp-infobar__item--social {
    justify-content: space-between;
    gap: 18px;
}

.dp-infobar__socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 7px;
}

.dp-infobar__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--dp-white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.dp-infobar__socials a:hover,
.dp-infobar__socials a:focus-visible {
    color: var(--dp-white);
    background: var(--dp-red);
    transform: translateY(-2px);
    text-decoration: none;
}

.dp-infobar__socials a:focus-visible {
    outline: 2px solid var(--dp-yellow);
    outline-offset: 2px;
}

.dp-infobar__socials svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
    stroke: none;
}

.dp-infobar__socials a[aria-label="Instagram"] svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.dp-infobar__socials a[aria-label="YouTube"] svg {
    fill: currentColor;
}

.dp-infobar__socials .dp-infobar__play {
    fill: var(--dp-navy);
    stroke: none;
}

.dp-infobar__socials a[aria-label="YouTube"]:hover .dp-infobar__play,
.dp-infobar__socials a[aria-label="YouTube"]:focus-visible .dp-infobar__play {
    fill: var(--dp-white);
}

/* =========================================================
   TABLETY
   Dwa równe kafelki w jednym rzędzie
   ========================================================= */

@media (max-width: 1100px) {
    .dp-infobar__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dp-infobar__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .dp-infobar__item:nth-child(2n) {
        border-right: 0;
    }

    .dp-infobar__item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

/* =========================================================
   TELEFONY
   Jeden kafelek w jednym rzędzie
   ========================================================= */

@media (max-width: 640px) {
    .dp-infobar__inner {
        grid-template-columns: 1fr;
    }

    .dp-infobar__item {
        min-height: 82px;
        padding: 16px 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .dp-infobar__item:nth-last-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .dp-infobar__item:last-child {
        border-bottom: 0;
    }

    .dp-infobar__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .dp-infobar__icon svg {
        width: 23px;
        height: 23px;
    }

    .dp-infobar__item--social {
        align-items: center;
    }

    .dp-infobar__socials {
        margin-left: auto;
    }
}

/* Bardzo wąskie ekrany */

@media (max-width: 390px) {
    .dp-infobar__item--social {
        align-items: flex-start;
        flex-direction: column;
    }

    .dp-infobar__socials {
        justify-content: flex-start;
        margin-left: 0;
    }
}