/* ============================================================
   Blog (templates/blog/*.php, components/blog-card.php). After the
   canvas "Poster Bazaar — blog w kodzie" (Oct 2026): H1 44/34/33 px,
   topics as chips, one guide larger on the first page, cards in three
   columns; a post with its table of contents beside the text, a
   reading column of 760 px, four posters after the first section,
   the questions as an accordion. Caslon always 400, the one beige.
   ============================================================ */

.pb-blog {
    --pb-ink: #23231f;
    --pb-heading: #2a2a2a;
    --pb-body: #3a3a34;
    --pb-muted: #6b6a62;
    --pb-line: #e8e1d5;
    --pb-pill: #cfc8bb;
    --pb-sand: var(--color-surface-warm);
    padding: 0 0 72px;
    color: var(--pb-body);
    font-size: 16px;
    line-height: 1.6;
}

.pb-blog h1,
.pb-blog h2,
.pb-blog h3 {
    color: var(--pb-heading);
    font-family: var(--font-heading);
    font-weight: 400;
}

.pb-blog :focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.pb-blog .pb-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #767676;
    font-size: 12px;
    line-height: 1.6;
}

.pb-blog .pb-crumbs a {
    color: #767676;
}

.pb-blog .pb-crumbs [aria-current] {
    color: var(--pb-ink);
}

.pb-blog-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pb-blog-more:hover {
    color: var(--color-primary-dark);
}

.pb-blog__h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

/* ---- Listing: head and topics ------------------------------ */

.pb-blog__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 48px;
    padding: 20px 0 28px;
}

.pb-blog__intro {
    flex: 1 1 560px;
    min-width: 0;
}

.pb-blog__title,
.pb-post__title {
    margin: 0;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -.005em;
}

.pb-blog__lead {
    max-width: 680px;
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.55;
}

.pb-blog__count {
    margin: 0;
    color: var(--pb-muted);
    font-size: 15px;
}

.pb-blog__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--pb-line);
}

.pb-blog-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--pb-pill);
    border-radius: 999px;
    box-sizing: border-box;
    color: var(--pb-heading);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.pb-blog-chip span {
    color: var(--pb-muted);
    font-weight: 400;
}

.pb-blog-chip[aria-current] {
    border-color: var(--pb-ink);
    background: var(--pb-ink);
    color: #fff;
}

.pb-blog-chip[aria-current] span {
    color: rgba(255, 255, 255, .75);
}

@media (hover: hover) {
    .pb-blog-chip:not([aria-current]):hover {
        border-color: var(--pb-ink);
        color: var(--pb-ink);
    }
}

/* ---- Listing: featured guide -------------------------------- */

.pb-blog__featured {
    padding-top: 40px;
}

.pb-blog__eyebrow {
    margin: 0 0 18px;
    color: var(--pb-muted) !important;
    font-family: var(--font-body) !important;
    font-size: 13px;
    font-weight: 700 !important;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pb-blog-feature {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    overflow: hidden;
    border-radius: 12px;
    background: var(--pb-sand);
    color: inherit;
}

.pb-blog-feature__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.pb-blog-feature__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 48px;
}

.pb-blog-feature__title {
    color: var(--pb-ink);
    font-family: var(--font-heading);
    font-size: 34px;
    line-height: 1.15;
}

.pb-blog-feature__teaser {
    font-size: 17px;
}

.pb-blog-feature__more {
    margin-top: 6px;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---- Cards --------------------------------------------------- */

.pb-blog__latest {
    padding-top: 48px;
}

.pb-blog__latest > .pb-blog__h2 {
    margin-bottom: 24px;
}

.pb-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
}

.pb-blog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: inherit;
}

.pb-blog-card__media {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: var(--pb-sand);
    aspect-ratio: 16 / 10;
}

.pb-blog-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}

.pb-blog-card__topic {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
}

.pb-blog-card__title {
    margin: -4px 0 0;
    color: var(--pb-ink) !important;
    font-size: 22px;
    line-height: 1.25;
}

.pb-blog-card__teaser {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pb-blog-card__meta {
    color: var(--pb-muted);
    font-size: 13px;
}

@media (hover: hover) {
    .pb-blog-card:hover .pb-blog-card__title,
    .pb-blog-feature:hover .pb-blog-feature__title {
        text-decoration: underline;
        text-decoration-color: #c2baab;
        text-underline-offset: 4px;
    }

    .pb-blog-card:hover .pb-blog-card__img {
        transform: scale(1.03);
    }
}

/* ---- Pages ----------------------------------------------------- */

.pb-blog__pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 56px;
}

.pb-blog__pages .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--pb-pill);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--pb-heading);
    font-weight: 700;
}

.pb-blog__pages .page-numbers.current {
    border-color: var(--pb-ink);
    background: var(--pb-ink);
    color: #fff;
}

.pb-blog__pages .prev,
.pb-blog__pages .next {
    padding: 0 16px;
    border: 0;
    color: var(--color-primary);
}

.pb-blog__pages .dots {
    border: 0;
}

/* ---- Post: head and picture ---------------------------------- */

/* After the canvas (revised): crumbs, head, picture, contents and text
   in one centred block of 1084 px (contents 260 + gap 64 + text 760).
   The head stacks topic, title, lead and byline across the block; the
   picture below runs the same width, whole: the pictures are 16:9
   rooms with the posters near the top, so any crop cut them. */
.pb-blog--post .pb-crumbs,
.pb-post__head,
.pb-post__hero,
.pb-post__layout {
    max-width: calc(260px + 64px + 760px);
    margin-inline: auto;
    box-sizing: border-box;
}

.pb-post__head {
    padding-top: 28px;
}

/* The head runs the picture's width; only the lead keeps a reading measure. */
.pb-post__head .pb-post__lead {
    max-width: 820px;
}

.pb-post__topic {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
}

.pb-post__title {
    margin-top: 12px;
    line-height: 1.1;
}

.pb-post__lead {
    margin: 18px 0 0;
    font-size: 20px;
    line-height: 1.55;
}

.pb-post__byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pb-line);
}

.pb-post__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pb-post__author > span {
    display: flex;
    flex-direction: column;
}

.pb-post__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.pb-post__name {
    color: var(--pb-ink);
    font-family: var(--font-heading);
    font-size: 17px;
    line-height: 1.3;
}

.pb-post__role,
.pb-post__dates {
    color: var(--pb-muted);
    font-size: 13px;
}

.pb-post__dates {
    margin: 0;
    font-size: 14px;
}

.pb-post__hero {
    margin-top: 36px;
    margin-bottom: 0;
}

.pb-post__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

/* ---- Post: contents beside the text --------------------------- */

.pb-post__layout {
    display: flex;
    align-items: flex-start;
    gap: 40px 64px;
    padding: 48px 0 24px;
}

.pb-toc {
    position: sticky;
    top: 120px;
    flex: 0 0 260px;
}

.pb-toc__title {
    margin-bottom: 12px;
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    list-style: none;
    pointer-events: none;
}

.pb-toc__title::-webkit-details-marker {
    display: none;
}

.pb-toc__count {
    display: none;
}

.pb-toc__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--pb-line);
    list-style: none;
}

.pb-toc__list li {
    margin: 0;
}

.pb-toc__list a {
    display: block;
    margin-left: -1px;
    padding: 8px 0 8px 16px;
    border-left: 2px solid transparent;
    color: var(--pb-muted);
    font-size: 15px;
    line-height: 1.4;
}

.pb-toc__list a:hover {
    color: var(--pb-ink);
}

.pb-toc__list a[aria-current] {
    border-left-color: var(--color-primary);
    color: var(--pb-ink);
    font-weight: 600;
}

/* ---- Post: the text ------------------------------------------- */

.pb-post__body {
    flex: 1 1 560px;
    min-width: 0;
    max-width: 760px;
}

.pb-post__body > section:first-child > h2:first-child,
.pb-post__body > h2:first-child {
    margin-top: 0;
}

.pb-post__body p,
.pb-post__body li {
    color: var(--pb-body);
    font-size: 17px;
    line-height: 1.7;
}

.pb-post__body p {
    margin: 0 0 18px;
}

.pb-post__body ul,
.pb-post__body ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.pb-post__body li {
    margin-bottom: 6px;
}

.pb-post__body h2 {
    margin: 48px 0 16px;
    font-size: 30px;
    line-height: 1.2;
    scroll-margin-top: 120px;
}

.pb-post__body h3 {
    margin: 28px 0 10px;
    font-size: 22px;
    line-height: 1.3;
    scroll-margin-top: 120px;
}

.pb-post__body a:not(.pb-blog-more):not(.pb-card *):not(.pb-btn) {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pb-post__body strong {
    color: var(--pb-ink);
}

.pb-post__body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.pb-post__body figure {
    margin: 28px 0 32px;
}

.pb-post__body .wp-block-table {
    overflow-x: auto;
}

.pb-post__body table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: var(--pb-body);
    font-size: 15px;
}

.pb-post__body th {
    padding: 10px 12px;
    border: 0;
    border-bottom: 2px solid var(--pb-ink);
    color: var(--pb-ink);
    font-weight: 700;
    text-align: left;
    text-transform: none;
}

.pb-post__body td {
    padding: 12px;
    border: 0;
    border-bottom: 1px solid var(--pb-line);
}

.pb-post__body figcaption {
    margin-top: 10px;
    color: var(--pb-muted);
    font-size: 13px;
    text-align: left;
}

.pb-post__body blockquote {
    margin: 28px 0;
    padding: 4px 0 4px 22px;
    border-left: 2px solid var(--color-primary);
    font-family: var(--font-heading);
    font-style: italic;
}

/* ---- Post: lists, facts, notes, steps -------------------------- */

.pb-post__body ul {
    padding-left: 0;
    list-style: none;
}

.pb-post__body ul > li {
    position: relative;
    padding-left: 22px;
}

.pb-post__body ul > li::before {
    content: "";
    position: absolute;
    top: .7em;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.pb-post__body ol {
    padding-left: 0;
    list-style: none;
    counter-reset: pb-ol;
}

.pb-post__body ol > li {
    position: relative;
    padding-left: 36px;
    counter-increment: pb-ol;
}

.pb-post__body ol > li::before {
    content: counter(pb-ol);
    position: absolute;
    top: .2em;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pb-sand);
    color: var(--pb-ink);
    font-family: var(--font-heading);
    font-size: 14px;
    line-height: 1;
}

/* "Paleta / Motywy / Format / Ramy": a card of facts, label beside value. */
.pb-facts {
    display: grid;
    margin: 4px 0 24px;
    padding: 6px 22px;
    border: 1px solid var(--pb-line);
    border-radius: 10px;
}

.pb-facts > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 4px 20px;
    padding: 12px 0;
}

.pb-facts > div + div {
    border-top: 1px solid var(--pb-line);
}

.pb-facts dt {
    color: var(--pb-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.9;
    text-transform: uppercase;
}

.pb-facts dd {
    margin: 0;
    color: var(--pb-body);
    font-size: 16px;
    line-height: 1.6;
}

.pb-note {
    margin: 4px 0 24px;
    padding: 18px 22px;
    border-radius: 10px;
    background: var(--pb-sand);
}

.pb-post__body .pb-note p {
    margin: 0;
    font-size: 16px;
}

.pb-post__body .pb-note .pb-note__title {
    margin-bottom: 4px;
    color: var(--pb-ink);
    font-weight: 700;
}

/* "Krok 2 — …": the number as a label above the title. */
.pb-post__body .pb-stepped .pb-step {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pb-post__body h3.pb-stepped .pb-step {
    margin-bottom: 2px;
    font-size: 12px;
}

/* Sections apart: a hairline above each H2 after the first. */
.pb-post__body > section + section > h2:first-child {
    padding-top: 40px;
    border-top: 1px solid var(--pb-line);
}

.pb-post__body .post-sources {
    margin-top: 24px;
    color: var(--pb-muted);
    font-size: 13px;
}

.pb-post__body .post-sources small {
    font-size: inherit;
}

.pb-post__body tbody tr:nth-child(even) td {
    background: #fbfaf7;
}

/* ---- Post: posters after the first section ------------------- */

.pb-blog-products {
    margin: 36px 0;
    padding: 28px;
    border-radius: 12px;
    background: var(--pb-sand);
}

.pb-blog-products__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin-bottom: 18px;
}

.pb-post__body .pb-blog-products__title {
    margin: 0;
    font-size: 22px;
}

.pb-blog-products .pb-grid {
    gap: 24px 16px;
}

/* The cards' own beige mat would vanish on the band. */
.pb-blog-products .pb-card {
    --pb-card-ground: #fff;
}

/* ---- Post: questions ------------------------------------------ */

.pb-blog-faq {
    border-top: 1px solid var(--pb-line);
}

.pb-blog-faq__item {
    border-bottom: 1px solid var(--pb-line);
}

.pb-blog-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 8px 0;
    cursor: pointer;
    list-style: none;
}

.pb-blog-faq__item summary::-webkit-details-marker {
    display: none;
}

.pb-blog-faq__item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--pb-heading);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
}

.pb-blog-faq__item[open] summary::after {
    content: "−";
}

.pb-post__body .pb-blog-faq__q {
    margin: 0;
    color: var(--pb-ink);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.pb-blog-faq__a {
    padding-bottom: 8px;
}

/* ---- Post: rooms (in the text), author, more posts ------------ */

.pb-post__body .pb-related-rooms {
    margin-top: 48px;
}

.pb-post__body .pb-related-rooms ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    padding: 0;
    list-style: none;
}

.pb-post__body .pb-related-rooms li {
    margin: 0;
    font-size: 15px;
}

.pb-post__about {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: 48px;
    padding: 28px;
    border-radius: 12px;
    background: var(--pb-sand);
}

.pb-post__body .pb-post__about-photo {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.pb-post__body .pb-post__about p {
    margin: 0;
}

.pb-post__body .pb-post__about-name {
    color: var(--pb-ink);
    font-family: var(--font-heading);
    font-size: 22px;
}

.pb-post__body .pb-post__about-role {
    margin-bottom: 10px;
    color: var(--pb-muted);
    font-size: 14px;
}

.pb-post__body .pb-post__about-bio {
    margin-bottom: 6px;
    font-size: 16px;
}

.pb-post__related {
    padding-top: 40px;
    border-top: 1px solid var(--pb-line);
}

.pb-post__related-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 24px;
}

.pb-blog__grid--related .pb-blog-card__title {
    font-size: 21px;
}

/* ---- Tablets --------------------------------------------------- */

@media (max-width: 1024px) {
    .pb-blog__title,
    .pb-post__title {
        font-size: 34px;
    }

    .pb-blog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 24px;
    }

    .pb-blog-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .pb-blog-feature__media img {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .pb-blog-feature__body {
        padding: 28px;
    }

    .pb-post__layout {
        flex-direction: column;
        gap: 24px;
        padding-top: 24px;
    }

    .pb-post__body {
        flex-basis: auto;
        width: 100%;
        max-width: 760px;
    }

    /* Folded above the text: a beige bar that opens the list. */
    .pb-toc {
        position: static;
        flex-basis: auto;
        width: 100%;
        max-width: 760px;
    }

    .pb-toc__fold {
        border-radius: 10px;
        background: var(--pb-sand);
    }

    .pb-toc__title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        margin: 0;
        padding: 0 18px;
        color: var(--pb-ink);
        font-size: 16px;
        letter-spacing: 0;
        text-transform: none;
        cursor: pointer;
        pointer-events: auto;
    }

    .pb-toc__title::after {
        content: "+";
        font-size: 22px;
        font-weight: 300;
    }

    .pb-toc__fold[open] .pb-toc__title::after {
        content: "−";
    }

    .pb-toc__count {
        display: inline;
        margin-left: 4px;
        margin-right: auto;
        font-weight: 400;
    }

    .pb-toc__list {
        margin: 0 18px 14px;
    }
}

/* ---- Phones ---------------------------------------------------- */

@media (max-width: 767px) {
    /* The post's title is the H1 right below; in the crumbs it took two lines. */
    .pb-blog--post .pb-crumbs > span:nth-last-child(-n + 2) {
        display: none;
    }

    .pb-blog__title {
        font-size: 33px;
    }

    .pb-post__title {
        font-size: 31px;
        line-height: 1.12;
    }

    .pb-blog__lead,
    .pb-post__lead {
        font-size: 17px;
    }

    .pb-blog__head {
        padding-bottom: 4px;
    }

    .pb-blog__count {
        display: none;
    }

    /* Chips scroll sideways in one row. */
    .pb-blog__topics {
        flex-wrap: nowrap;
        margin: 0 -15px;
        padding: 14px 15px 20px;
        overflow-x: auto;
        border-bottom: 0;
        scrollbar-width: none;
    }

    .pb-blog__featured {
        padding-top: 8px;
    }

    .pb-blog-feature__title {
        font-size: 25px;
    }

    .pb-blog__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .pb-blog__grid--related {
        gap: 18px;
    }

    .pb-blog__grid--related .pb-blog-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        gap: 4px 14px;
    }

    .pb-blog__grid--related .pb-blog-card__media {
        grid-row: span 3;
        aspect-ratio: 4 / 3;
        border-radius: 8px;
    }

    .pb-blog__grid--related .pb-blog-card__topic {
        display: none;
    }

    .pb-blog__grid--related .pb-blog-card__title {
        margin: 0;
        font-size: 17px;
    }

    .pb-post__dates {
        width: 100%;
        font-size: 13px;
    }

    .pb-post__hero {
        margin: 22px -15px 0;
    }

    .pb-post__img {
        border-radius: 0;
    }

    .pb-post__body h2 {
        margin-top: 40px;
        font-size: 26px;
    }

    .pb-post__body h3 {
        font-size: 20px;
    }

    .pb-blog-products {
        margin: 28px -15px;
        padding: 24px 15px;
        border-radius: 0;
    }

    .pb-post__body .pb-blog-products__title {
        font-size: 21px;
    }

    .pb-post__body .pb-related-rooms ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .pb-facts {
        padding: 4px 16px;
    }

    .pb-facts > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .pb-post__body > section + section > h2:first-child {
        padding-top: 32px;
    }

    .pb-post__about {
        flex-direction: column;
        gap: 14px;
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-blog-card__img {
        transition: none;
    }

    .pb-blog-card:hover .pb-blog-card__img {
        transform: none;
    }
}
