/*--------------------------------------------------------------
This is your custom stylesheet.

Add your own styles here to make theme updates easier.
To override any styles from other stylesheets, simply copy them into here and edit away.

Make sure to respect the media queries! Otherwise you may
accidentally add desktop styles to the mobile layout.
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
--------------------------------------------------------------*/

/* Strona pojedynczego materiału - kontener treści bez górnego odstępu
   (baner ma przylegać do paska nawigacji jak w LearnDash). */
.single-materialy #primary.content-area {
    padding-top: 0;
}

/* ── Materiały – baner (tytuł, krótki opis, autor, data) ───
   Pełnoszeroki pas jak na starej stronie (LearnDash .bb-learndash-banner):
   wybicie poza kontener treści przez 100vw i wyśrodkowanie zawartości
   do szerokości kolumny. */
.ss-material-single-banner {
    --bb-cover-image-background-color: #647385;

    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 40px;
    padding: 56px 0 48px;
    background-color: var(--bb-cover-image-background-color);
    color: #fff;
}

/* Wewnętrzny wrapper wyrównujący treść banera do kolumny artykułu.
   44px pokrywa się z bocznym paddingiem BuddyBoss (.bb-learndash-banner). */
.ss-material-single-banner > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 44px;
    padding-right: 44px;
}

/* Krótki opis w banerze - odpowiednik .bb-course-excerpt.
   wpautop opakowuje treść w <p>, które ma własne style z motywu -
   dlatego typografię ustawiamy też na wewnętrznym <p>. */
.ss-material-single-excerpt {
    margin-bottom: 20px;
    opacity: .8;
    color: #fff;
}

.ss-material-single-excerpt,
.ss-material-single-excerpt p {
    font-size: 2.125rem;
    letter-spacing: -.24px;
    line-height: 1.3;
    font-weight: 400;
}

.ss-material-single-excerpt p {
    margin: 0;
    color: inherit;
}

.ss-material-single-excerpt p:not(:last-child) {
    margin-bottom: 12px;
}

.ss-material-single-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ss-material-single-meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.ss-material-single-author {
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
}

.ss-material-single-meta-sep,
.ss-material-single-date {
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
}

@media (max-width: 782px) {
    .ss-material-single-banner {
        padding: 36px 0 32px;
    }

    .ss-material-single-banner > * {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ss-material-single-title {
        font-size: 32px;
    }
}


/* ── Materiały – siatka kart ─────────────────────────────── */
.ss-materialy-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
}

.ss-material-card {
    display: flex;
    flex-direction: column;
    width: calc(25% - 18px);
    min-width: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}

.ss-material-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    transform: translateY(-2px);
}

.ss-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.ss-card-thumb--empty {
    background: #e8e8e8;
}

.ss-card-thumb .ss-card-img,
.ss-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    flex: 1;
}

.ss-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: inherit;
}

.ss-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.ss-card-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ss-card-author-name {
    font-size: .85rem;
    color: #555;
}

@media (max-width: 1100px) {
    .ss-material-card {
        width: calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .ss-material-card {
        width: calc(50% - 12px);
        min-width: 0;
    }
}

/* Telefon (także web fallback w aplikacji) - dalej 2 kolumny, ciaśniej. */
@media (max-width: 480px) {
    .ss-materialy-grid {
        gap: 12px;
    }

    .ss-material-card {
        width: calc(50% - 6px);
        border-radius: 10px;
    }

    .ss-card-body {
        gap: 8px;
        padding: 10px;
    }

    .ss-card-title {
        font-size: .9rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .ss-card-author img {
        width: 24px;
        height: 24px;
    }

    .ss-card-author-name {
        font-size: .75rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* ── Materiał – strona pojedyncza ────────────────────────── */
/* Tytuł banera - odpowiednik .bb-course-banner-inner h1.entry-title */
.ss-material-single-title {
    font-size: 48px;
    line-height: 1.25;
    font-weight: 700;
    color: inherit;
    margin-bottom: 15px;
}

.ss-material-single-section {
    margin-bottom: 40px;
}

.ss-material-single-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
}

.ss-material-single-subheading {
    font-size: 1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #444;
}

.ss-material-single-video-group:first-child .ss-material-single-subheading {
    margin-top: 0;
}

/* Plan sesji – accordion */
.ss-material-single-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ss-material-single-accordion-item {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
}

.ss-material-single-accordion-item summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    list-style: none;
}

.ss-material-single-accordion-item summary::-webkit-details-marker {
    display: none;
}

.ss-material-single-accordion-item summary::before {
    content: '›';
    display: inline-block;
    margin-right: 10px;
    transition: transform .15s ease;
}

.ss-material-single-accordion-item[open] summary::before {
    transform: rotate(90deg);
}

.ss-material-single-accordion-content {
    padding: 0 18px 18px;
    line-height: 1.6;
}

/* Nagrania – karty wideo */
.ss-material-single-video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ss-material-single-video-card {
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 14px);
    min-width: 220px;
    text-decoration: none;
    color: inherit;
}

.ss-material-single-video-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}

.ss-material-single-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-material-single-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 36px;
    margin: -18px 0 0 -26px;
    background: rgba(255, 0, 0, .85);
    border-radius: 8px;
}

.ss-material-single-video-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    transform: translate(-40%, -50%);
}

.ss-material-single-video-title {
    margin-top: 10px;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Materiały / Wisdomlettery – siatka PDF */
.ss-material-single-pdf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.ss-material-single-pdf-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(25% - 21px);
    min-width: 160px;
    text-decoration: none;
    color: inherit;
}

.ss-material-single-pdf-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
    color: #1b1b1b;
}

.ss-material-single-pdf-icon svg {
    width: 100%;
    height: 100%;
}

.ss-material-single-pdf-badge {
    position: absolute;
    bottom: -4px;
    right: -10px;
    background: #d92b2b;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 2px 5px;
    border-radius: 4px;
}

.ss-material-single-pdf-title {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Artykuły – galeria */
.ss-material-single-articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.ss-material-single-article-card {
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 16px);
    min-width: 220px;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    background: #fff;
}

.ss-material-single-article-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f0f0f0;
}

.ss-material-single-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-material-single-article-title {
    padding: 12px 14px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Ankiety / linki dodatkowe */
.ss-material-single-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}

.ss-material-single-link-btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: #1b1b1b;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s ease;
}

.ss-material-single-link-btn:hover {
    background: #333;
    color: #fff;
}

@media (max-width: 768px) {
    .ss-material-single-video-card,
    .ss-material-single-pdf-card,
    .ss-material-single-article-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .ss-material-single-video-card,
    .ss-material-single-pdf-card,
    .ss-material-single-article-card {
        width: 100%;
    }
}


/* ══ Archiwum Wisdomletterów (/wisdomletter/) ═══════════════
   Dwie kolumny identycznych kart: numer + zdjęcie + nagłówek
   + opis + przycisk "Czytaj więcej" (prowadzi wprost do PDF). */
.ss-wl-archive {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 20px 64px;
}

.ss-wl-archive-header {
    margin-bottom: 32px;
}

.ss-wl-archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.ss-wl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 56px;
    row-gap: 64px;
}

.ss-wl-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ss-wl-card-number {
    font-size: 2.125rem;
    line-height: 42px;
    font-weight: 700;
    color: var(--bb-headings-color, #1E2132);
    margin: 0 0 20px;
}

.ss-wl-card-thumb {
    width: 100%;
    margin-bottom: 24px;
}

.ss-wl-card-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.ss-wl-card-thumb--empty {
    aspect-ratio: 16 / 9;
    border: 1px solid #bfbfbf;
}

.ss-wl-card-heading {
    font-size: 38px;
    line-height: 44px;
    font-weight: bold;
    letter-spacing: -0.7px;
    color: #002240;
    margin: 0 0 10px;
}

.ss-wl-card-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
}

.ss-wl-card-desc p {
    margin: 0 0 12px;
}

.ss-wl-card-desc p:last-child {
    margin-bottom: 0;
}

.ss-wl-card-btn {
    display: inline-block;
    margin-top: auto;
    padding: 16px 26px;
    background: #0d0d0d;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: background .15s ease;
}

.ss-wl-card-btn:hover {
    background: #333;
    color: #fff;
}

.ss-wl-archive-empty {
    font-size: 1rem;
    color: #666;
}

@media (max-width: 782px) {
    .ss-wl-grid {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }

    .ss-wl-card-heading {
        font-size: 1.5rem;
    }
}

/* ── Wisdomletter – modal z podglądem PDF ─────────────────── */
.ss-wl-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.ss-wl-modal[hidden] {
    display: none;
}

.ss-wl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 28, .72);
}

.ss-wl-modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1000px, 100%);
    height: min(90vh, 100%);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
}

.ss-wl-modal-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #1E2132;
    color: #fff;
}

.ss-wl-modal-title {
    flex: 1 1 auto;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-wl-modal-open {
    flex-shrink: 0;
    font-size: .85rem;
    color: #fff;
    text-decoration: underline;
}

.ss-wl-modal-open:hover {
    color: #cfd3e6;
}

.ss-wl-modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.ss-wl-modal-close:hover {
    color: #cfd3e6;
}

.ss-wl-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    background: #525659;
}

.ss-wl-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

body.ss-wl-modal-open-body {
    overflow: hidden;
}


/* ── BuddyPanel – ikony social media (Facebook/LinkedIn) ───
   .side-panel-inner ma overflow:hidden + wysokość ograniczoną do reszty
   ekranu, a .side-panel-menu-container ma height:100% (z motywu głównego)
   - przez to .socialvalues jako kolejny element w normalnym przepływie
   ląduje poza widocznym obszarem. Zamiana .side-panel-inner na flex
   column pozwala menu się przewijać (flex:1 + overflow-y:auto), a pasek
   social media zostaje zawsze przypięty na dole panelu. */
.side-panel-inner {
    display: flex;
    flex-direction: column;
}

.side-panel-menu-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.socialvalues {
    flex-shrink: 0;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-content: stretch;
    flex-wrap: nowrap;
    justify-content: center;
}

.socialvalues a {
    border: 1px solid #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    padding: 6px;
    color: #000;
    margin: 5px;
}


/* ══ Wydarzenia (CPT wydarzenia) ═══════════════════════════════════════ */

/* --- wspólny blok daty (dzień tygodnia / dzień miesiąca) -------------- */
.ss-wyd-date {
    flex-shrink: 0;
    text-align: center;
    line-height: 1.1;
    width: 56px;
}

.ss-wyd-date-wd {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #c0392b;
}

.ss-wyd-date-m {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #c0392b;
}

.ss-wyd-date-d {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1E2132;
}

.ss-wyd-date-y {
    display: block;
    font-size: .78rem;
    color: #777;
}

/* --- Widżet "Kalendarz APP" (sidebar aktywności) ---------------------- */
.ss-wyd-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ss-wyd-widget-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f3;
}

.ss-wyd-widget-item:last-child {
    border-bottom: 0;
}

.ss-wyd-widget-item .ss-wyd-date {
    width: 44px;
}

.ss-wyd-widget-item .ss-wyd-date-d {
    font-size: 1.5rem;
}

.ss-wyd-widget-body {
    min-width: 0;
}

.ss-wyd-widget-title {
    display: block;
    font-weight: 600;
    line-height: 1.3;
    color: #1E2132;
}

.ss-wyd-widget-when {
    display: block;
    margin-top: 2px;
    font-size: .8rem;
    color: #777;
}

.ss-wyd-widget-empty {
    margin: 0;
    font-size: .9rem;
    color: #777;
}

.ss-wyd-widget-all {
    display: inline-block;
    margin-top: 10px;
    font-size: .85rem;
    font-weight: 600;
}

/* --- Wyniki wyszukiwania (/?s=...): siatka 3 kolumny ------------------ */
.ss-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ss-search-card {
    border: 1px solid #eef0f3;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ss-search-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.ss-search-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #f3f4f6;
    overflow: hidden;
}

.ss-search-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-search-card-thumb--empty {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e9eaee 100%);
}

.ss-search-card-type {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(30, 33, 50, .75);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ss-search-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ss-search-card-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 4px;
    color: var(--bb-headings-color, #1E2132);
}

.ss-search-card-subtitle {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #555;
}

.ss-search-card-excerpt {
    font-size: .85rem;
    line-height: 1.5;
    color: var(--bb-body-text-color, #555);
}

@media (max-width: 1024px) {
    .ss-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .ss-search-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Archiwum -------------------------------------------------------- */
.ss-wyd-archive {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.ss-wyd-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.ss-wyd-search-field {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}

.ss-wyd-search-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #333;
}

.ss-wyd-search-icon svg {
    width: 100%;
    height: 100%;
}

.ss-wyd-search-field input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    font-size: 1rem;
    background: transparent;
}

.ss-wyd-search-btn {
    flex-shrink: 0;
    padding: 12px 22px;
    background: #0d0d0d;
    color: #fff;
    font-weight: 600;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.ss-wyd-search-btn:hover {
    background: #333;
}

/* --- Przełącznik Lista / Miesiąc ---------------------------------- */
.ss-wyd-viewswitch {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding-left: 14px;
    margin-left: 4px;
    border-left: 1px solid #e0e0e0;
}

.ss-wyd-viewswitch-btn {
    font-size: .95rem;
    font-weight: 600;
    color: #9a9a9a;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.ss-wyd-viewswitch-btn:hover {
    color: #1E2132;
}

.ss-wyd-viewswitch-btn.is-active {
    color: #1E2132;
    border-bottom-color: #1E2132;
}

.ss-wyd-viewswitch-btn[aria-disabled="true"] {
    opacity: .4;
    pointer-events: none;
}

/* --- Pasek nawigacji: [Dzisiaj]  "maj 2026"  ‹ › ------------------- */
.ss-wyd-navbar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 24px 0 8px;
}

.ss-wyd-today {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: #1E2132;
    text-decoration: none;
    background: #fff;
}

a.ss-wyd-today:hover {
    border-color: #1E2132;
}

.ss-wyd-today--current {
    opacity: .45;
    cursor: default;
}

.ss-wyd-navbar-label {
    flex: 1 1 auto;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1E2132;
}

.ss-wyd-navbar-label strong {
    font-weight: 700;
}

.ss-wyd-nav-arrows {
    flex-shrink: 0;
    display: inline-flex;
    gap: 22px;
}

.ss-wyd-nav-arrow,
.ss-wyd-nav-arrow:hover,
.ss-wyd-nav-arrow:focus,
.ss-wyd-nav-arrow:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1E2132 !important;
    text-decoration: none !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.ss-wyd-nav-arrow svg {
    width: 24px;
    height: 24px;
    display: block;
}

.ss-wyd-nav-arrow:hover,
.ss-wyd-nav-arrow:focus {
    opacity: .55;
}

/* --- Nagłówek miesiąca ("maj 2026" + linia) ----------------------- */
.ss-wyd-month-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0 8px;
}

.ss-wyd-month-head span {
    flex-shrink: 0;
    font-size: .95rem;
    color: #444;
}

.ss-wyd-month-head::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e2e2e2;
}

.ss-wyd-empty {
    margin: 24px 0 0;
    padding: 22px;
    background: #f6f6f8;
    border: 1px solid #ececec;
    border-radius: 8px;
    text-align: center;
    color: #666;
}

/* --- Lista kafelków (białe karty z ramką i cieniem) --------------- */
.ss-wyd-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
}

.ss-wyd-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.ss-wyd-card:hover {
    border-color: #d5d5d5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.ss-wyd-card > .ss-wyd-date {
    min-height: 1px;
    align-self: start;
    padding-top: 4px;
}

.ss-wyd-card-body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ss-wyd-card-when {
    margin: 0 0 6px;
    font-size: .92rem;
    color: #8a8a8a;
}

.ss-wyd-card-title {
    margin: 0 0 10px;
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 700;
}

.ss-wyd-card-title a {
    color: #1E2132;
    text-decoration: none;
}

.ss-wyd-card-title a:hover {
    text-decoration: underline;
}

.ss-wyd-card-excerpt {
    font-size: .92rem;
    line-height: 1.6;
    color: #8a8a8a;
}

.ss-wyd-card-thumb {
    display: block;
    width: 320px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.ss-wyd-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ss-wyd-card-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-wyd-card-thumb--empty span {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .ss-wyd-card {
        grid-template-columns: 56px minmax(0, 1fr);
        align-items: start;
    }

    .ss-wyd-card-thumb {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 460px;
    }
}

@media (max-width: 560px) {
    .ss-wyd-navbar {
        flex-wrap: wrap;
    }

    .ss-wyd-navbar-label {
        order: 3;
        flex-basis: 100%;
    }

    .ss-wyd-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .ss-wyd-card > .ss-wyd-date {
        display: flex;
        gap: 8px;
        align-items: baseline;
        width: auto;
    }
}

/* --- Nagłówki sekcji w widoku Lista ------------------------------ */
.ss-wyd-section-title {
    margin: 12px 0 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #555;
}

.ss-wyd-section-title--past {
    margin-top: 28px;
    font-size: 1.9rem;
    font-weight: 700;
    color: #1E2132;
}

.ss-wyd-list > .ss-wyd-section-title:first-child {
    margin-top: 0;
}

/* --- Paginacja listy: grube chevrony SVG ‹ › --------------------- */
.ss-wyd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 44px;
}

/* !important - motyw BuddyBoss narzuca a:hover z tłem/podkreśleniem */
.ss-wyd-page-arrow,
.ss-wyd-page-arrow:hover,
.ss-wyd-page-arrow:focus,
.ss-wyd-page-arrow:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1E2132 !important;
    text-decoration: none !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.ss-wyd-page-arrow svg {
    width: 26px;
    height: 26px;
    display: block;
}

.ss-wyd-page-arrow:hover,
.ss-wyd-page-arrow:focus {
    opacity: .55;
}

.ss-wyd-page-arrow--disabled {
    opacity: .25;
    cursor: default;
}

.ss-wyd-page-count {
    font-size: .95rem;
    color: #777;
    min-width: 44px;
    text-align: center;
}

/* --- Single -------------------------------------------------------- */
.ss-wyd-single {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.ss-wyd-status {
    margin: 24px 0 28px;
    padding: 18px 20px;
    background: #f6f6f8;
    border: 1px solid #ececec;
    border-radius: 8px;
    color: #666;
}

.ss-wyd-single-head {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.ss-wyd-date--lg {
    width: auto;
}

.ss-wyd-date--lg .ss-wyd-date-d {
    font-size: 2.4rem;
}

.ss-wyd-single-title {
    font-size: 2.6rem;
    line-height: 1.15;
    font-weight: 700;
    color: #1E2132;
    margin: 0;
}

.ss-wyd-single-when {
    margin: 8px 0 0;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: #999;
}

.ss-wyd-single-thumb {
    margin: 0 0 32px;
    background: #000;
}

.ss-wyd-single-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.ss-wyd-single-thumb--empty {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-wyd-single-thumb--empty span {
    color: #fff;
    font-size: 6rem;
    font-weight: 700;
}

.ss-wyd-single-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.ss-wyd-single-content p {
    margin: 0 0 18px;
}

.ss-wyd-single-content a {
    word-break: break-word;
}

/* --- "Dodaj do kalendarza" --------------------------------------- */
.ss-wyd-addcal {
    position: relative;
    margin: 32px 0;
}

/* !important - motyw BuddyBoss narzuca własne button:hover (szare tło,
   biały tekst), co upodabnia przycisk do nieaktywnego. */
.ss-wyd-addcal-toggle,
.ss-wyd-addcal-toggle:hover,
.ss-wyd-addcal-toggle:focus,
.ss-wyd-addcal-toggle:active,
.ss-wyd-addcal-toggle[aria-expanded="true"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #fff !important;
    color: #1E2132 !important;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    box-shadow: none !important;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.ss-wyd-addcal-toggle:hover,
.ss-wyd-addcal-toggle:focus,
.ss-wyd-addcal-toggle[aria-expanded="true"] {
    border-color: #1E2132;
}

.ss-wyd-addcal-toggle .ss-wyd-addcal-ico,
.ss-wyd-addcal-toggle .ss-wyd-addcal-caret {
    color: #1E2132;
}

.ss-wyd-addcal-ico {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.ss-wyd-addcal-ico svg {
    width: 100%;
    height: 100%;
}

.ss-wyd-addcal-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    padding: 6px;
    z-index: 20;
}

.ss-wyd-addcal-menu a {
    display: block;
    padding: 10px 14px;
    color: #1E2132;
    text-decoration: none;
    border-radius: 4px;
    font-size: .95rem;
}

.ss-wyd-addcal-menu a:hover {
    background: #f2f2f5;
}

/* --- box "Szczegóły" ------------------------------------------------ */
.ss-wyd-details {
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid #ececec;
}

.ss-wyd-details-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #555;
    margin: 0 0 18px;
}

.ss-wyd-details-ico {
    width: 18px;
    height: 18px;
    display: inline-block;
    color: #888;
}

.ss-wyd-details-ico svg {
    width: 100%;
    height: 100%;
}

.ss-wyd-details-list {
    margin: 0;
}

.ss-wyd-details-list dt {
    font-weight: 700;
    color: #1E2132;
    margin-top: 14px;
}

.ss-wyd-details-list dt:first-child {
    margin-top: 0;
}

.ss-wyd-details-list dd {
    margin: 2px 0 0;
    color: #333;
}

.ss-wyd-details-list dd a {
    color: #2f6fdb;
    word-break: break-all;
}

@media (max-width: 900px) {
    .ss-wyd-row {
        grid-template-columns: 52px 1fr;
    }

    .ss-wyd-row-thumb {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .ss-wyd-search {
        flex-wrap: wrap;
    }

    .ss-wyd-search-btn {
        width: 100%;
    }

    .ss-wyd-single-title {
        font-size: 1.8rem;
    }

    .ss-wyd-row-title {
        font-size: 1.3rem;
    }
}


