/* Square, restrained controls and editorial navigation. */
.portal-theme .btn, .portal-theme button, .portal-theme input[type="submit"],
.portal-theme input[type="button"], .portal-theme .search-submit,
.portal-theme .top-icons a, .portal-theme .nav-top-1 a,
.portal-theme .portal-section-more, .portal-theme .portal-section-add,
.portal-theme .portal-share-action, .portal-theme .portal-support,
.portal-theme .form-control, .portal-theme .search-field,
.portal-theme .gminy-linki ul, .portal-theme .promo-1 .inner,
.portal-theme .promo-ext > a:first-child, .portal-theme .portal-classifieds-block,
.portal-theme .last-wrapper, .portal-theme .nf-container, .portal-theme .nf-wrapper,
.portal-theme .ogloszenie .galeria, .portal-theme .ogloszenie .galeria .glowne .inner,
.portal-theme .ogloszenie .tresc, .portal-theme .ogloszenie .kontakt,
.portal-theme .sidebar-cena, .portal-theme .sidebar-kontakt,
.portal-theme .ad-wizytowka, .portal-theme img { border-radius: 0 !important; }

.portal-theme .top-icons a {
    display: flex;
    min-height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px;
    border: 1px solid #e1e7ed;
    background: #fff;
    color: #233c51;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}
.portal-theme .top-icons a i { display: block; margin: 0; color: #245878 !important; font-size: 20px; line-height: 1; }
.portal-theme .top-icons a:hover, .portal-theme .top-icons a:focus-visible { border-color: #12385f; background: #12385f; color: #fff; }
.portal-theme .top-icons a:hover i, .portal-theme .top-icons a:focus-visible i { color: #fff !important; }
.portal-theme .tg-btn { min-width: 44px; min-height: 44px; color: #164a76; }
.portal-theme .nav-top-1 a { font-weight: 500; }
.portal-theme .btn-danger.cat-ico { background: #fff !important; border-color: #d9e3ea !important; color: #24435c !important; }
.portal-theme .btn-danger.cat-ico i { color: #245878 !important; }
.portal-theme .btn-danger.cat-ico:hover { background: #12385f !important; border-color: #12385f !important; color: #fff !important; }
.portal-theme .btn-danger.cat-ico:hover i { color: #fff !important; }

/* The lead headline sits on a dark panel at every screen size. */
.portal-theme .promo-1 h2 { color: #fff; }

.portal-sharing { margin: 22px 0 28px; }
.portal-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-top: 1px solid #dce4eb; border-bottom: 1px solid #dce4eb; }
.portal-share-label { margin-right: 4px; color: #526779; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.portal-share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d1dce6;
    background: #fff;
    color: #243c50;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.portal-share-action i { font-size: 16px; line-height: 1; }
.portal-share-action img { width: 16px; height: 16px; object-fit: contain; }
.portal-share-facebook i { color: #1f5b9a; }
.portal-share-x i { color: #111; }
.portal-share-google i { color: #1761c2; }
.portal-theme .portal-share-action:hover { border-color: #164a76; background: #f2f6fa; color: #12385f; }
.portal-theme .portal-share-action:focus-visible { outline: 3px solid #2487cf; outline-offset: 2px; }
.portal-support { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; background: #fff5cd; border-left: 3px solid #e3b326; color: #4b3b14; font-size: 14px; font-weight: 600; line-height: 1.4; }
.portal-support span { flex: 1; }
.portal-theme .portal-support:hover { background: #ffecad; color: #342800; }
@media (max-width: 767.98px) {
    .portal-sharing { margin: 18px 0 24px; }
    .portal-share { gap: 6px; }
    .portal-share-label { flex: 0 0 100%; margin: 0 0 2px; }
    .portal-share-action { flex: 1 1 calc(50% - 6px); min-width: 0; min-height: 44px; padding: 8px 6px; font-size: 13px; }
    .portal-support { font-size: 13px; }
    .portal-theme .top-icons a { min-height: 58px; }

    /* A compact news row: headline on the left, thumbnail on the right. */
    .portal-theme .promo-ext {
        display: flow-root;
        float: none;
        margin: 0 0 12px;
        padding: 0 0 12px;
        border-bottom: 1px solid #dce4eb;
    }
    .portal-theme .promo-ext > a:first-child {
        display: inline;
        overflow: visible;
        background: transparent;
    }
    .portal-theme .promo-ext > a:first-child img {
        float: right;
        width: 34%;
        max-width: 132px;
        height: auto;
        margin: 0 0 0 12px;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }
    .portal-theme .promo-ext .date { margin: 0 0 4px; font-size: 11px; }
    .portal-theme .promo-ext h3 { margin: 0; font-size: 16px !important; font-weight: 600; line-height: 1.3 !important; }
    .portal-theme .category-list .post, .portal-theme .category-list .event { padding: 12px 0; }
    .portal-theme .category-list .post > a:first-child img,
    .portal-theme .category-list .event > a:first-child img {
        float: right;
        width: 34%;
        max-width: 132px;
        height: auto;
        margin: 0 0 0 12px;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }
    .portal-theme .category-list .post h2, .portal-theme .category-list .event h2 { font-size: 16px; line-height: 1.3; }
}
@media (min-width: 481px) and (max-width: 991.98px) {
    .portal-theme .top-icons-wrapper > ul.hidden-sm {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        float: none !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .portal-theme .top-icons-wrapper > ul.hidden-sm li { width: auto; min-width: 0; margin: 0 !important; }
    .portal-theme .top-icons-wrapper > ul.hidden-sm li a { width: 100% !important; font-size: 12px; }
}
@media (max-width: 480px) {
    /* Both rows use the same grid, including while Bootstrap animates the menu. */
    .portal-theme .top-icons-wrapper { padding-right: 0 !important; }
    .portal-theme .top-icons-wrapper #top-ico.show,
    .portal-theme .top-icons-wrapper #top-ico.collapsing,
    .portal-theme .top-icons-wrapper > ul.mobile-only {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        float: none !important;
        width: 100%;
        margin: 0 0 8px;
        padding: 0;
    }
    .portal-theme .top-icons-wrapper .top-icons li {
        width: auto;
        min-width: 0;
        margin: 0 !important;
    }
    .portal-theme .top-icons-wrapper .top-icons li a { width: 100%; }
    .portal-theme .top-icons-wrapper + .mobile-only { width: 100% !important; padding: 0; }
}
