/* ==========================================================================
   publication-details.css — Publication Details page styles
   Figma nodes: 539-19322 (full page), 539-19330 (content section)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO — italic orange "Publications"
   -------------------------------------------------------------------------- */

.pd-hero-title-em {
    font-style: italic;
    color: #f16522;
}

/* --------------------------------------------------------------------------
   2. OUTER SECTION WRAPPER
   -------------------------------------------------------------------------- */

.pd-section {
    background: #ffffff;
    padding: 100px 0 100px;
}

.pd-inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 clamp(24px, 7.24vw, 139px);
    display: flex;
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
}

/* --------------------------------------------------------------------------
   3. MAIN CONTENT COLUMN  (848px)
   -------------------------------------------------------------------------- */

.pd-main {
    width: 848px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

/* ── Paper header (above article card) ────────────────────────────────── */

.pd-paper-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-paper-meta-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pd-cat-pill {
    display: inline-block;
    padding: 4px 12px;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
}

.pd-cat--mental {
    background: #e8702a;
}
.pd-cat--nutrition {
    background: #1e7b74;
}
.pd-cat--social {
    background: #1e7b74;
}

.pd-journal-pill {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 11.52px;
    letter-spacing: 0.04em;
    color: rgba(13, 27, 42, 0.7);
}

.pd-paper-title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: #1c2b4a;
    margin: 0;
}

.pd-paper-authors {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: rgba(13, 27, 42, 0.6);
    margin: 0;
}

.pd-authors-label {
    font-weight: 600;
    color: #0d1b2a;
    margin-right: 6px;
}

.pd-author-inline-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-author-inline-link:hover {
    color: #f16522;
}

/* ── Article card ──────────────────────────────────────────────────────── */

.pd-article {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-card, 25px);
    overflow: hidden;
}

/* Article image */
.pd-article-img {
    width: 100%;
    height: 424px;
    overflow: hidden;
    flex-shrink: 0;
}

.pd-article-img-src {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article body text content */
.pd-article-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Meta row */
.pd-meta-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.pd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pd-meta-icon {
    flex-shrink: 0;
    display: block;
}

.pd-meta-text {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 15.9px;
    line-height: 150%;
    color: rgba(13, 27, 42, 0.8);
}

/* Body paragraphs */
.pd-body-text {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 17.22px;
    line-height: 150%;
    color: rgba(13, 27, 42, 0.7);
    margin: 0;
}

/* Tags row */
.pd-tags-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pd-tags-label {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 11.92px;
    line-height: 17.22px;
    color: rgba(13, 27, 42, 0.6);
    flex-shrink: 0;
}

.pd-tags-list {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
}

.pd-tag {
    display: inline-block;
    background: #eaeaea;
    padding: 3px 10.6px;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 11.92px;
    line-height: 17.22px;
    color: rgba(13, 27, 42, 0.6);
}

/* Share row */
.pd-share-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.pd-share-label {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 16.46px;
    line-height: 25.17px;
    color: #f16522;
    flex-shrink: 0;
}

.pd-share-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.pd-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: #f16522;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.pd-share-btn:hover {
    opacity: 0.75;
}

/* ── Author bio ────────────────────────────────────────────────────────── */

.pd-author-bio {
    display: flex;
    flex-direction: row;
    gap: 32px;
    background: #f8f7f4;
    padding: 32px;
    border-radius: var(--radius-card, 25px);
    overflow: hidden;
}

.pd-author-img-wrap {
    flex-shrink: 0;
}

.pd-author-img {
    width: 132.5px;
    height: 132.5px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-card, 25px);
}

.pd-author-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pd-author-name {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 17.22px;
    line-height: 25.17px;
    color: #1c2b4a;
    margin: 0;
}

.pd-author-desc {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 17.22px;
    line-height: 27.83px;
    color: rgba(13, 27, 42, 0.6);
    margin: 0;
}

.pd-author-link {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 14.57px;
    line-height: 21.2px;
    color: #f16522;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pd-author-link:hover {
    text-decoration: underline;
}

/* ── Comment form ──────────────────────────────────────────────────────── */

.pd-comment-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pd-comment-heading {
    font-family: "DM Sans", sans-serif;
    font-weight: 800;
    font-size: 31.8px;
    line-height: 42.4px;
    color: #1c2b4a;
    margin: 0;
}

.pd-comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-form-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.pd-field-wrap {
    flex: 1;
}

.pd-field {
    width: 100%;
    padding: 16px 32px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-btn, 25px);
    background: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 17.22px;
    line-height: 25.17px;
    color: rgba(13, 27, 42, 0.8);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.pd-field::placeholder {
    color: rgba(13, 27, 42, 0.4);
}

.pd-field:focus {
    border-color: #f16522;
}

.pd-textarea-wrap {
    width: 100%;
}

.pd-textarea {
    min-height: 180px;
    resize: vertical;
}

.pd-privacy-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding-left: 2px;
}

.pd-checkbox {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #f16522;
}

.pd-privacy-label {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 12.92px;
    line-height: 15.9px;
    color: rgba(13, 27, 42, 0.8);
    cursor: pointer;
}

.pd-privacy-link {
    color: #f16522;
    text-decoration: underline;
}

.pd-submit-btn {
    align-self: flex-start;
    padding: 16px 54px;
    background: #f16522;
    color: #ffffff;
    border: none;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 16.86px;
    line-height: 25.17px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pd-submit-btn:hover {
    background: #d9551a;
}

/* --------------------------------------------------------------------------
   4. SIDEBAR  (471px)
   -------------------------------------------------------------------------- */

.pd-sidebar {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Generic widget */
.pd-sb-widget {
    display: flex;
    flex-direction: column;
}

.pd-sb-boxed {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: var(--radius-card, 25px);
    overflow: hidden;
}

/* Sidebar widget header */
.pd-sb-widget-header {
    padding: 16px 24px;
    background: #f8f7f4;
    border-bottom: 1px solid #e5e7eb;
}

.pd-sb-heading,
.pd-sb-widget-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d1b2a;
    margin: 0;
}

/* ── Search widget ─────────────────────────────────────────────────────── */

.pd-sb-search {
    gap: 16px;
}

.pd-sb-search-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 60px 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-btn, 25px);
    background: #ffffff;
    position: relative;
}

.pd-sb-search-icon {
    flex-shrink: 0;
    display: block;
    opacity: 0.5;
}

.pd-sb-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: rgba(13, 27, 42, 0.8);
    padding: 0;
}

.pd-sb-search-input::placeholder {
    color: rgba(13, 27, 42, 0.4);
}

/* ── Categories ────────────────────────────────────────────────────────── */

.pd-sb-categories {
    list-style: none;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pd-sb-cat {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 14.34px;
    line-height: 21.2px;
    color: rgba(13, 27, 42, 0.6);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.pd-sb-cat:hover,
.pd-sb-cat--active {
    color: #f16522;
}

/* ── Recent Posts ──────────────────────────────────────────────────────── */

.pd-sb-posts {
    list-style: none;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-sb-post-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

.pd-sb-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pd-sb-post-link {
    display: flex;
    flex-direction: row;
    gap: 16px;
    text-decoration: none;
}

.pd-sb-post-img-wrap {
    flex-shrink: 0;
    width: 79.5px;
    height: 79.5px;
    overflow: hidden;
}

.pd-sb-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-sb-post-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.pd-sb-post-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 14.57px;
    line-height: 21.2px;
    color: #333333;
    transition: color 0.2s ease;
}

.pd-sb-post-link:hover .pd-sb-post-title {
    color: #f16522;
}

.pd-sb-post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 13.25px;
    line-height: 19.87px;
    color: #999999;
}

.pd-sb-post-icon {
    display: block;
    flex-shrink: 0;
    opacity: 0.5;
}

/* ── Comments sidebar ──────────────────────────────────────────────────── */

.pd-sb-comments {
    list-style: none;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-sb-comment-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
}

.pd-sb-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pd-sb-comment-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
}

.pd-sb-comment-icon {
    flex-shrink: 0;
    display: block;
    margin-top: 3px;
    opacity: 0.5;
}

.pd-sb-comment-text {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 14.57px;
    line-height: 21.2px;
    color: rgba(13, 27, 42, 0.6);
    transition: color 0.2s ease;
}

.pd-sb-comment-link:hover .pd-sb-comment-text {
    color: #f16522;
}

/* ── Tags cloud ────────────────────────────────────────────────────────── */

.pd-sb-tags {
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.pd-sb-tag {
    display: inline-block;
    background: #f8f7f4;
    border: 1px solid #e5e7eb;
    padding: 4px 12px;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 11.9px;
    line-height: 17.22px;
    color: rgba(13, 27, 42, 0.6);
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.pd-sb-tag:hover {
    background: #f16522;
    border-color: #f16522;
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1400px) {
    .pd-main {
        width: 700px;
    }

    .pd-article-img {
        height: 360px;
    }
}

@media (max-width: 1199px) {
    .pd-inner {
        padding-left: 40px;
        padding-right: 40px;
        gap: 48px;
    }

    .pd-main {
        width: 600px;
    }

    .pd-article-img {
        height: 300px;
    }

    .pd-paper-title {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .pd-section {
        padding: 72px 0 80px;
    }

    .pd-inner {
        flex-direction: column;
        padding-left: 28px;
        padding-right: 28px;
        gap: 56px;
    }

    .pd-main {
        width: 100%;
    }

    .pd-sidebar {
        width: 100%;
    }

    .pd-article-img {
        height: 320px;
    }

    .pd-author-bio {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .pd-section {
        padding: 56px 0 60px;
    }

    .pd-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pd-paper-title {
        font-size: 20px;
    }

    .pd-article-img {
        height: 220px;
    }

    .pd-article-body {
        padding: 20px;
    }

    .pd-body-text {
        font-size: 15px;
    }

    .pd-form-row {
        flex-direction: column;
    }

    .pd-comment-heading {
        font-size: 24px;
        line-height: 1.3;
    }

    .pd-submit-btn {
        width: 100%;
        text-align: center;
    }
}
