/* A consistent editorial treatment for the existing portal layout. */
:root {
    --portal-ink: #1b2b3b;
    --portal-blue-dark: #12385f;
    --portal-blue-link: #174b77;
    --portal-line: #dce4eb;
    --portal-surface: #f5f7fa;
}
.portal-theme { color: var(--portal-ink); background: #f5f7fa; }
.portal-theme a { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.portal-theme .nav-top-1 { box-shadow: 0 2px 8px rgba(13, 39, 63, .10); }
.portal-theme .nav-top-1 a { font-size: 14px; border-radius: 4px; }
.portal-theme .top-icons a { border-color: #dce4eb; background: #fff; color: #294359; }
.portal-theme .top-icons a:hover { background: #12385f; border-color: #12385f; color: #fff; }
.portal-theme .gminy-linki ul { gap: 0; border-radius: 5px; overflow: hidden; background: #12385f; }
.portal-theme .gminy-linki a { padding: 11px 8px; font-size: 15px; line-height: 1.25; }
.portal-theme .gminy-linki a:hover { background: #235880; }
.portal-theme .box-header { border-top: 2px solid #164a76; padding-top: 14px; }
.portal-theme .portal-section-heading { color: #193b5a; letter-spacing: -.015em; }
.portal-theme .portal-section-heading .portal-section-title { color: inherit; }
.portal-theme .video-box .portal-section-heading .portal-section-title { color: #fff; }
.portal-theme .video-box.portal-interventions .portal-section-heading .portal-section-title { color: #243548; }
.portal-theme .portal-section-heading .portal-section-more { background: #164a76; border-color: #164a76; font-weight: 600; }
.portal-theme .portal-section-heading .portal-section-more:hover { background: #0d3455; border-color: #0d3455; }
.portal-theme .promo-ext { margin-bottom: 26px; }
.portal-theme .promo-ext > a:first-child { display: block; overflow: hidden; border-radius: 5px; background: #e9eef3; }
.portal-theme .promo-ext > a:first-child img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .2s ease; }
.portal-theme .promo-ext > a:first-child:hover img { transform: scale(1.025); }
.portal-theme .promo-ext .date { display: block; margin-top: 10px; color: #697988; font-size: 12px; font-weight: 500; }
.portal-theme .promo-ext h3 { margin: 5px 0 0; padding: 0; color: #1b2b3b; font-size: 20px; font-weight: 600; line-height: 1.32 !important; }
.portal-theme .promo-ext h3 a { color: inherit; }
.portal-theme .promo-ext h3 a:hover { color: #17649b; }
.portal-theme .promo-1 .inner { overflow: hidden; border-radius: 6px; }
.portal-theme .promo-1 h2 { padding: 14px 16px; background: #12385f; font-weight: 600; line-height: 1.28; }
.portal-theme .news-list { line-height: 1.4; }
.portal-theme .news-list li a { padding: 9px 0; line-height: 1.35; border-color: #e0e7ed; }
.portal-theme .btn { border-radius: 5px; font-weight: 500; }
.portal-theme .btn-danger { background-color: #bb201c !important; border-color: #bb201c !important; color: #fff; }
.portal-theme .btn-danger:hover { background-color: #981915 !important; border-color: #981915 !important; }
.portal-theme .portal-classifieds-block { --classifieds-bg: #fff7d7; --classifieds-header: #ffed9b; --classifieds-image: #f5e8b1; border: 1px solid #eedb90; border-radius: 7px; overflow: hidden; }
.portal-theme .portal-classifieds-block.zwierzeta-ogl { --classifieds-bg: #eef8f1; --classifieds-header: #23764b; --classifieds-image: #d8ecde; border-color: #c9e6d2; }
.portal-theme .portal-classifieds-block .portal-section-title { color: #93261d; }
.portal-theme .portal-classifieds-block.zwierzeta-ogl .portal-section-title { color: #fff; }
.portal-theme .portal-classifieds-block .last-wrapper { background-color: #fff; border: 1px solid rgba(31, 50, 65, .12); }
.portal-theme .portal-classifieds-block .title { font-weight: 600; }
.portal-theme .portal-classifieds-categories { border-color: #e5d394; }
.portal-theme .portal-classifieds-mobile .adbox { background: rgba(255, 255, 255, .72); border: 1px solid rgba(31, 50, 65, .08); }
.portal-theme .nf-container { background: #fff7d7; border: 1px solid #eedb90; border-radius: 7px; }
.portal-theme .nf-wrapper { border-color: #e3e8ed; }
.portal-theme .category-list .post, .portal-theme .category-list .event { padding: 18px 0; margin: 0; border-color: var(--portal-line); }
.portal-theme .category-list .post img, .portal-theme .category-list .event img { border-radius: 5px; }
.portal-theme .category-list .post h2, .portal-theme .category-list .event h2 { line-height: 1.3; }
.portal-theme .post-entry { color: #263747; }
.portal-theme .con-post .post-title { color: #172f46; }
.portal-theme .footer { color: #617080; }
.portal-theme .footer a { color: #315b7c; }

/* The classified detail keeps its gallery, description, contact and sidebar order. */
.portal-classified-page { background: #f4f6f8; }
.portal-classified-page .ogloszenie-tytul { display: flow-root; margin: 12px 0; padding: 18px 0; border-bottom: 1px solid var(--portal-line); }
.portal-classified-page .ogloszenie-tytul h1 { margin: 0; color: #18334d; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 700; }
.portal-classified-page .title-cat-link { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 16px 6px 0; padding: 0; background: #164a76; border-radius: 6px; font-size: 19px; }
.portal-classified-page .ogloszenie .top-info { color: #697988; font-size: 14px; margin-bottom: 16px; }
.portal-classified-page .ogloszenie .galeria { padding: 14px; border: 1px solid var(--portal-line); border-radius: 8px; background: #edf1f5; }
.portal-classified-page .ogloszenie .galeria .glowne { margin-bottom: 12px; border: 0; padding: 0; }
.portal-classified-page .ogloszenie .galeria .glowne .inner { padding: 16px; border-radius: 5px; background: #263746; }
.portal-classified-page .ogloszenie .galeria .glowne img { max-height: 560px; object-fit: contain; }
.portal-classified-page .ogloszenie .galeria .thumb { flex: 0 0 25%; width: 25%; }
.portal-classified-page .ogloszenie .galeria .thumb img { max-width: 100%; border-radius: 5px; border: 2px solid #fff; }
.portal-classified-page .ogloszenie .classified-description-title { color: #193b5a; font-size: 21px; font-weight: 600; }
.portal-classified-page .ogloszenie .tresc { padding: 24px; margin: 20px 0; border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; color: #263747; font-size: 17px; line-height: 1.7; }
.portal-classified-page .classified-description > :last-child { margin-bottom: 0; }
.portal-classified-page .classified-description a { color: #145e96; text-decoration: underline; }
.portal-classified-page .classified-description img, .portal-classified-page .classified-description table { max-width: 100%; }
.portal-classified-page .ogloszenie .param { margin-top: 20px; border-color: var(--portal-line); border-radius: 6px; }
.portal-classified-page .ogloszenie .kontakt, .portal-classified-page .sidebar-cena, .portal-classified-page .sidebar-kontakt, .portal-classified-page .ad-wizytowka { border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(30, 53, 72, .05); }
.portal-classified-page .ogloszenie .kontakt { padding: 24px; }
.portal-classified-page .sidebar-cena, .portal-classified-page .sidebar-kontakt { padding: 20px; }
.portal-classified-page .ogloszenie .informacje { padding: 16px 0; border-top: 1px solid var(--portal-line); border-bottom: 1px solid var(--portal-line); }
@media (max-width: 767.98px) {
    .portal-theme .promo-ext h3 { font-size: 18px; }
    .portal-theme .promo-1 h2 { padding: 12px; font-size: 20px; }
    .portal-classified-page .ogloszenie .tresc, .portal-classified-page .ogloszenie .kontakt { padding: 18px; }
    .portal-classified-page .ogloszenie .top-info .text-right { text-align: left !important; }
}
@media (prefers-reduced-motion: reduce) { .portal-theme .promo-ext > a:first-child:hover img { transform: none; } }
