/* ============================================================
   BLOG DETAILS — extends the Journal token system
   Signature: reading-progress rail on the article, gift-tag
   pull-quotes, and a die-cut author card that echoes the
   listing page's punch-hole cards.
   ============================================================ */

/* ---------- reading progress bar ---------- */
.bd-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10000;
}

#bdProgressBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #C9A15D, #e6c98a);
    transition: width 0.1s linear;
}

/* ---------- breadcrumb ---------- */
.bd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 28px 0 22px;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 12.5px;
}

.bd-breadcrumb a {
    color: #808080;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bd-breadcrumb a:hover {
    color: #334633;
}

.bd-breadcrumb span {
    color: #C9A15D;
    font-size: 9px;
}

.bd-breadcrumb em {
    font-style: normal;
    color: #334633;
    font-weight: 700;
}

/* ---------- article header ---------- */
.bd-header {
    max-width: 780px;
    margin: 0 auto 34px;
    text-align: center;
}

.bd-cat {
    margin: 0 auto 20px;
}

.bd-header h1 {
    font-family: 'Lora', serif;
    font-size: 38px;
    font-weight: 700;
    color: #334633;
    line-height: 1.25;
    margin-bottom: 24px;
}

.bd-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 13px;
    color: #808080;
}

.bd-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bd-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
}

.bd-author-name {
    font-family: 'Lora', serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #334633;
    margin-bottom: 1px !important;
    text-align: left;
}

.bd-author-role {
    font-size: 11px;
    color: #a8a196;
    margin-bottom: 0 !important;
    text-align: left;
}

.bd-meta-dot {
    color: #C9A15D;
}

.bd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bd-meta-item i {
    color: #C9A15D;
    font-size: 12px;
}

/* ---------- hero image ---------- */
.bd-hero-img {
    position: relative;
    max-width: 980px;
    margin: 0 auto 56px;
    border-radius: 4px 24px 4px 4px;
    overflow: hidden;
    aspect-ratio: 16 / 8;
}

.bd-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd-hang-tag {
    position: absolute;
    top: 26px;
    left: 0;
    transform: rotate(-3deg);
    z-index: 2;
}

/* ---------- body grid ---------- */
.bd-body-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto 30px;
}

/* ---------- article typography ---------- */
.bd-article {
    max-width: 720px;
}

.bd-article p {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: #4a4a45;
    margin-bottom: 26px !important;
}

.bd-article h3 {
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 700;
    color: #334633;
    margin: 40px 0 18px;
    position: relative;
    padding-left: 18px;
}

.bd-article h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 2px;
    background: #C9A15D;
}

.bd-pullquote {
    font-family: 'Cormorant Upright', serif;
    font-style: italic;
    font-size: 26px;
    font-weight: 500;
    color: #334633;
    line-height: 1.5;
    padding: 0 0 0 28px;
    border-left: 3px solid #C9A15D;
    margin: 0 0 40px !important;
}

.bd-blockquote {
    background-color: #F7F3F0;
    border-radius: 4px 18px 4px 4px;
    padding: 30px 34px;
    margin: 34px 0 !important;
    position: relative;
}

.bd-blockquote::before {
    content: '\201C';
    position: absolute;
    top: 8px;
    left: 22px;
    font-family: 'Lora', serif;
    font-size: 60px;
    font-weight: 700;
    color: rgba(201, 161, 93, 0.35);
    line-height: 1;
}

.bd-blockquote p {
    font-family: 'Cormorant Upright', serif;
    font-style: italic;
    font-size: 20px;
    color: #334633;
    line-height: 1.55;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
    padding-left: 6px;
}

.bd-inline-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px 18px 4px 4px;
    overflow: hidden;
    margin: 8px 0 36px;
}

.bd-inline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- tags ---------- */
.bd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 44px 0 36px;
    padding-top: 30px;
    border-top: 1px solid #e6e0d5;
}

.bd-tags span {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #334633;
    background-color: rgba(51, 70, 51, 0.06);
    border: 1px solid #e6e0d5;
    padding: 7px 16px;
    border-radius: 20px;
    transition: 0.2s ease;
}

.bd-tags span:hover {
    background-color: #334633;
    color: #fff;
    border-color: #334633;
}

/* ---------- share row ---------- */
.bd-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 26px 0;
    border-top: 1px solid #e6e0d5;
    border-bottom: 1px solid #e6e0d5;
    margin-bottom: 40px;
}

.bd-share-label {
    font-family: 'Lora', serif;
    font-size: 14px;
    font-weight: 700;
    color: #334633;
}

.bd-share-icons {
    display: flex;
    gap: 10px;
}

.bd-share-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #F7F3F0;
    color: #334633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s ease;
}

.bd-share-icons a:hover {
    background-color: #C9A15D;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- author card ---------- */
.bd-author-card {
    display: flex;
    gap: 20px;
    background-color: #F7F3F0;
    border-radius: 4px 20px 4px 4px;
    padding: 28px;
}

.bd-author-card-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
    flex-shrink: 0;
}

.bd-author-card-name {
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 700;
    color: #334633;
    margin-bottom: 2px !important;
}

.bd-author-card-role {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #C9A15D;
    margin-bottom: 10px !important;
}

.bd-author-card-bio {
    font-family: 'Raleway', sans-serif;
    font-size: 13.5px;
    color: #6b6b6b;
    line-height: 1.7;
    margin-bottom: 0 !important;
}

/* ---------- sidebar extras ---------- */
.bd-sidebar {
    position: sticky;
    top: 130px;
}

.bd-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bd-toc-list li {
    border-left: 2px solid #e6e0d5;
    padding: 0 0 14px 16px;
    margin-left: 2px;
}

.bd-toc-list li:last-child {
    padding-bottom: 0;
}

.bd-toc-list a {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6b6b6b;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.bd-toc-list a:hover {
    color: #C9A15D;
}

.bd-cta-card {
    display: flex;
    flex-direction: column;
}

.bd-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #C9A15D;
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 30px;
    width: fit-content;
    margin-top: 18px;
    transition: 0.25s ease;
}

.bd-cta-btn:hover {
    background-color: #b98d47;
    color: #fff;
    gap: 12px;
}

/* ---------- related posts ---------- */
.bd-related {
    margin-bottom: 10px;
}

.bd-related-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .bd-body-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bd-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bd-sidebar .jr-side-card {
        flex: 1 1 260px;
    }

    .bd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .bd-header h1 {
        font-size: 25px;
    }

    .bd-meta-row {
        gap: 8px;
        font-size: 11.5px;
    }

    .bd-hero-img {
        aspect-ratio: 4 / 3;
        border-radius: 4px 16px 4px 4px;
        margin-bottom: 36px;
    }

    .bd-article p {
        font-size: 14.5px;
        line-height: 1.75;
    }

    .bd-article h3 {
        font-size: 18px;
        margin: 30px 0 14px;
    }

    .bd-pullquote {
        font-size: 20px;
        padding-left: 18px;
    }

    .bd-blockquote {
        padding: 22px 20px;
    }

    .bd-blockquote p {
        font-size: 17px;
    }

    .bd-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .bd-author-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .bd-author-card-role,
    .bd-author-card-bio {
        text-align: center;
    }

    .bd-sidebar {
        flex-direction: column;
    }

    .bd-related-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (min-width:576px) and (max-width: 991px) {
    .bd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}