/* ========================================
   POST DETAIL PAGE
   ======================================== */

/* ---- Reveal ---- */
.pd-main .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.pd-main .reveal.is-revealed {
    opacity: 1;
    transform: none;
}

/* ---- Wrapper ---- */
.pd-main {
    background: var(--color-light-cream);
    width: 100%;
    overflow-x: clip;
}

/* ========================================
   COVER IMAGE
   ======================================== */
.pd-cover {
    position: relative;
    height: clamp(160px, 22vw, 280px);
    overflow: hidden;
    background: var(--color-dark-navy);
}

.pd-cover--empty {
    height: 80px;
}

.pd-cover__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.pd-cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 10, 30, 0.10) 0%,
        rgba(0, 10, 30, 0.55) 100%
    );
}

/* ========================================
   CONTAINER
   ======================================== */
.pd-container {
    max-width: var(--size-container-max);
    margin: 0 auto;
    padding: 0 60px 120px;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.pd-breadcrumb {
    padding: 28px 0 0;
}

.pd-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.pd-breadcrumb__list li {
    color: rgba(0, 33, 71, 0.3);
}

.pd-breadcrumb__list a {
    color: rgba(0, 33, 71, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.pd-breadcrumb__list a:hover {
    color: var(--color-dark-navy);
}

.pd-breadcrumb__list [aria-current="page"] {
    color: var(--color-dark-navy);
}

/* ========================================
   HEADER
   ======================================== */
.pd-header {
    padding: 48px 0 56px;
    max-width: 820px;
}

.pd-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.pd-header__badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #fff;
    background: var(--color-gold);
    padding: 6px 14px;
}

.pd-header__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark-navy);
    letter-spacing: 0.05em;
}

.pd-header__meta-item svg {
    width: 18px;
    height: 18px;
}

.pd-header__title {
    font-family: var(--font-serif-display);
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-dark-navy);
    margin: 0 0 36px;
}

.pd-header__excerpt {
    border-left: 3px solid var(--color-gold);
    padding: 4px 0 4px 24px;
    margin: 0;
}

.pd-header__excerpt p {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.75;
    color: rgba(0, 33, 71, 0.65);
    margin: 0;
}

/* ========================================
   BODY + SIDEBAR LAYOUT
   ======================================== */
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
}

/* ========================================
   ARTICLE BODY (Quill output)
   ======================================== */
.pd-body {
    min-width: 0;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0, 33, 71, 0.08);
}

.pd-body p {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--color-text-body-dark);
    margin: 0 0 1.4em;
}

.pd-body h1,
.pd-body h2,
.pd-body h3,
.pd-body h4 {
    font-family: var(--font-serif-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-dark-navy);
    margin: 2em 0 0.6em;
}

.pd-body h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.pd-body h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.pd-body h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-sans); }
.pd-body h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-sans); }

.pd-body strong { font-weight: 700; }
.pd-body em { font-style: italic; }

.pd-body a {
    color: var(--color-dark-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 33, 71, 0.3);
    transition: text-decoration-color 0.2s;
}

.pd-body a:hover {
    text-decoration-color: var(--color-dark-navy);
}

.pd-body ul,
.pd-body ol {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-body-dark);
    padding-left: 1.5em;
    margin: 0 0 1.4em;
}

.pd-body blockquote {
    border-left: 3px solid var(--color-gold);
    padding: 6px 0 6px 24px;
    margin: 2em 0;
}

.pd-body blockquote p {
    font-style: italic;
    color: rgba(0, 33, 71, 0.6);
    margin: 0;
}

.pd-body pre,
.pd-body code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background: rgba(0, 33, 71, 0.04);
    border-radius: 4px;
    padding: 2px 6px;
}

.pd-body pre {
    padding: 20px 24px;
    overflow-x: auto;
    margin: 0 0 1.4em;
    line-height: 1.6;
}

.pd-body pre code {
    background: none;
    padding: 0;
}

.pd-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 2em 0;
}

/* ========================================
   SIDEBAR
   ======================================== */
.pd-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pd-sidebar__block {
    background: #fff;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
    padding: 32px 28px;
}

.pd-sidebar__heading {
    font-family: var(--font-serif-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-dark-navy);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 33, 71, 0.08);
    letter-spacing: -0.01em;
}

/* Related list */
.pd-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pd-related__link {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.pd-related__link:hover {
    opacity: 0.72;
}

.pd-related__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    overflow: hidden;
    background: var(--color-dark-navy);
}

.pd-related__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.4);
    transition: filter 0.3s;
}

.pd-related__link:hover .pd-related__thumb img {
    filter: grayscale(0);
}

.pd-related__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-dark-navy);
    opacity: 0.7;
}

.pd-related__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

.pd-related__title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-dark-navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-related__date {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(0, 33, 71, 0.35);
}

/* CTA card */
.pd-sidebar__cta {
    background: var(--color-dark-navy);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.pd-sidebar__cta-text {
    font-family: var(--font-serif-display);
    font-size: 1.2rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

.pd-sidebar__cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-gold);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    line-height: 1.4;
    padding: 16px 20px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.pd-sidebar__cta-btn:hover {
    background: #c4955f;
    transform: translateY(-2px);
}

.pd-sidebar__cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.pd-sidebar__cta-phone:hover {
    color: #fff;
}

/* ========================================
   BACK LINK
   ======================================== */
.pd-back {
    margin-top: 64px;
}

.pd-back__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(0, 33, 71, 0.5);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
    transition: color 0.2s, gap 0.3s;
}

.pd-back__link:hover {
    color: var(--color-dark-navy);
    gap: 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1100px) {
    .pd-layout {
        grid-template-columns: 1fr 280px;
        gap: 56px;
    }
}

@media (max-width: 900px) {
    .pd-container {
        padding: 0 40px 80px;
    }

    .pd-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .pd-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .pd-sidebar__block,
    .pd-sidebar__cta {
        flex: 1 1 280px;
    }
}

@media (max-width: 600px) {
    .pd-container {
        padding: 0 24px 60px;
    }

    .pd-cover {
        height: clamp(200px, 50vw, 320px);
    }

    .pd-header {
        padding: 32px 0 40px;
    }

    .pd-sidebar {
        flex-direction: column;
    }

    .pd-sidebar__block,
    .pd-sidebar__cta {
        flex: none;
        width: 100%;
    }
}
