/* ==========================================================================
   udi-theme — single blog post. No Figma design: editorial layout styled to
   the site's tokens. Centered reading column, breadcrumbs, author box and
   previous/next navigation. Reference: jogapiekna.com (old layout).
   ========================================================================== */

.post {
    padding-block: 40px 96px;
}

/* Reading column (text blocks); the hero image is a touch wider. */
.post__col {
    max-width: 820px;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.post__crumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #7f7f7f;
}

.post__crumb a {
    color: #7f7f7f;
    transition: color 0.15s ease;
}

.post__crumb a:hover,
.post__crumb a:focus-visible {
    color: var(--c-primary);
    text-decoration: underline;
    text-underline-position: from-font;
}

.post__crumb span[aria-current] {
    color: var(--c-heading);
}

.post__crumb-sep {
    display: inline-flex;
    color: #cbcbcb;
}

.post__crumb-sep .udi-icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Head: category pill, title, meta
   -------------------------------------------------------------------------- */
.post__head {
    margin-top: 28px;
}

.post__cat {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    background: var(--c-primary);
    border-radius: 100px;
    color: var(--c-white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: opacity 0.15s ease;
}

.post__cat:hover,
.post__cat:focus-visible {
    opacity: 0.85;
}

.post__title {
    margin: 20px 0 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.15;
    color: var(--c-heading);
}

.post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.4;
    color: #7f7f7f;
}

.post__meta-sep {
    color: #cbcbcb;
}

.post__meta-author {
    color: var(--c-heading);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hero (featured image)
   -------------------------------------------------------------------------- */
.post__hero {
    max-width: 1040px;
    margin: 44px auto 0;
}

.post__hero-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
}

/* --------------------------------------------------------------------------
   Article content (WYSIWYG) — shared look with the product WYSIWYG blocks
   -------------------------------------------------------------------------- */
.post__content {
    margin-top: 48px;
    color: var(--c-ink);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.7;
}

.post__content > :first-child {
    margin-top: 0;
}

.post__content > :last-child {
    margin-bottom: 0;
}

.post__content h2 {
    margin: 48px 0 20px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.2;
    color: var(--c-heading);
}

.post__content h3 {
    margin: 36px 0 16px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.25;
    color: var(--c-heading);
}

.post__content h4 {
    margin: 28px 0 12px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: var(--c-heading);
}

.post__content p {
    margin: 0 0 22px;
}

.post__content ul,
.post__content ol {
    margin: 0 0 22px;
    padding-left: 1.4em;
}

.post__content li {
    margin-bottom: 10px;
}

.post__content li:last-child {
    margin-bottom: 0;
}

.post__content a {
    color: var(--c-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post__content a:hover,
.post__content a:focus-visible {
    text-decoration: none;
}

.post__content strong {
    font-weight: 600;
}

.post__content blockquote {
    margin: 32px 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--c-primary);
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(22px, 2.2vw, 26px);
    font-style: italic;
    line-height: 1.4;
    color: var(--c-heading);
}

.post__content blockquote p:last-child {
    margin-bottom: 0;
}

.post__content img {
    height: auto;
    border-radius: 14px;
}

.post__content figure {
    margin: 32px 0;
}

.post__content figcaption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #7f7f7f;
    text-align: center;
}

.post__content .aligncenter {
    display: block;
    margin-inline: auto;
}

/* Paged posts (<!--nextpage-->) */
.post__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    font-size: 15px;
}

.post__pages a,
.post__pages > span > span {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid var(--c-black);
    border-radius: 50%;
}

.post__pages a:hover {
    background: #feeff8;
}

/* --------------------------------------------------------------------------
   Author box
   -------------------------------------------------------------------------- */
.author-box {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 64px;
    padding: 36px;
    background: #fbf7f8;
    border-radius: 20px;
}

.author-box__photo {
    flex: 0 0 auto;
    width: 150px;
}

.author-box__img {
    display: block;
    width: 150px;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
}

.author-box__info {
    flex: 1 1 auto;
    min-width: 0;
}

.author-box__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-primary);
}

.author-box__name {
    margin: 10px 0 0;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: var(--c-heading);
}

.author-box__role {
    margin: 6px 0 0;
    font-size: 16px;
    font-style: italic;
    line-height: 1.4;
    color: var(--c-text);
}

.author-box__bio {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--c-text);
}

.author-box__bio p {
    margin: 0 0 12px;
}

.author-box__bio p:last-child {
    margin-bottom: 0;
}

/* Contact buttons (phone + e-mail): pink outline pills */
.author-box__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.author-box__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--c-primary);
    border-radius: 100px;
    color: var(--c-primary);
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.author-box__contact:hover,
.author-box__contact:focus-visible {
    background: var(--c-primary);
    color: var(--c-white);
}

.author-box__contact .udi-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Previous / next navigation
   -------------------------------------------------------------------------- */
.post__nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #ececec;
}

.post__navlink {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 48%;
}

.post__navlink--empty {
    visibility: hidden;
}

.post__navlink--next {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.post__navdir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post__navdir .udi-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.post__navlink--prev:hover .post__navdir .udi-icon {
    transform: translateX(-3px);
}

.post__navlink--next:hover .post__navdir .udi-icon {
    transform: translateX(3px);
}

.post__navtitle {
    color: var(--c-heading);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.post__navlink:hover .post__navtitle,
.post__navlink:focus-visible .post__navtitle {
    color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .post {
        padding-block: 24px 64px;
    }

    .post__hero {
        margin-top: 32px;
    }

    .post__hero-img {
        aspect-ratio: 3 / 2;
        border-radius: 14px;
    }

    .post__content {
        margin-top: 36px;
        font-size: 17px;
    }

    .author-box {
        flex-direction: column;
        gap: 20px;
        padding: 28px 24px;
    }

    .author-box__photo {
        width: 120px;
    }

    .author-box__img {
        width: 120px;
        height: 150px;
    }

    .post__nav {
        flex-direction: column;
        gap: 24px;
    }

    .post__navlink,
    .post__navlink--next {
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
        margin-left: 0;
    }

    .post__navlink--empty {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post__navdir .udi-icon {
        transition: none;
    }
}
