/* =============================================
   Publication Pages — Stylesheet
   Loaded after base.css on publication pages
   ============================================= */

:root {
    /* Publication-specific */
    --color-pub-tag: #2a5a8c;
    --color-pub-tag-bg: #e8f0f8;
}

/* ---- Publication Hero ---- */
.pub-hero {
    background: var(--color-primary);
    color: #fff;
    padding: 7rem 2rem 3.5rem;
}

.pub-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.pub-hero-text {
    flex: 1;
}

.pub-hero-back {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.pub-hero-back:hover {
    color: rgba(255, 255, 255, 0.85);
}

.pub-type-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background: rgba(200, 67, 43, 0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.pub-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.pub-hero-meta {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.pub-hero-meta strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.pub-hero-meta a {
    color: #e8c86a;
    text-decoration: underline;
    text-decoration-color: rgba(232, 200, 106, 0.4);
    text-underline-offset: 2px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.pub-hero-meta a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Publication cover/placeholder */
.pub-hero-cover {
    flex: 0 0 220px;
    margin-top: 2rem;
}

.pub-cover-placeholder {
    width: 220px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}

.pub-cover-placeholder .cover-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.pub-cover-placeholder .cover-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.3);
}

.pub-hero-cover img {
    width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ---- Publication Body ---- */
.pub-body {
    padding: 3.5rem 0 5rem;
}

.pub-body-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* Section styling within publication page */
.pub-section {
    margin-bottom: 3rem;
}

.pub-section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-border);
    letter-spacing: -0.01em;
}

.pub-section p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.pub-section p:last-child {
    margin-bottom: 0;
}

/* Author's reflections — distinct from abstract */
.pub-reflections {
    background: var(--color-bg-alt);
    border-radius: 10px;
    padding: 2rem 2.25rem;
    border-left: 4px solid var(--color-accent);
}

.pub-reflections .pub-section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

.pub-reflections p {
    color: var(--color-text);
}

/* Placeholder text styling for content Jonathan hasn't filled in yet */
.placeholder-note {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-style: italic;
    color: var(--color-text-light);
    opacity: 0.7;
}

/* ---- Where to Find It ---- */
.pub-access {
    background: var(--color-primary);
    border-radius: 10px;
    padding: 2rem 2.25rem;
    color: #fff;
}

.pub-access .pub-section-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.pub-access-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pub-access-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
}

.pub-access-link:hover {
    background: rgba(255, 255, 255, 0.13);
}

.pub-access-link .link-icon {
    font-size: 1.3rem;
    flex: 0 0 2rem;
    text-align: center;
}

.pub-access-link .link-details {
    flex: 1;
}

.pub-access-link .link-source {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    display: block;
}

.pub-access-link .link-url {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 0.15rem;
}

.pub-access-link .link-arrow {
    font-size: 1.1rem;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}

.pub-access-link:hover .link-arrow {
    opacity: 0.8;
    transform: translateX(3px);
}

/* Citation block */
.pub-citation {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.pub-citation .pub-section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.citation-block {
    background: var(--color-bg-alt);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text);
    position: relative;
}

.citation-block em {
    font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .pub-hero {
        padding: 6rem 1.5rem 2.5rem;
    }

    .pub-hero-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .pub-hero h1 {
        font-size: 1.8rem;
    }

    .pub-hero-cover {
        flex: none;
        order: -1;
        align-self: center;
    }

    .pub-cover-placeholder {
        width: 160px;
        height: 220px;
    }

    .pub-body-inner {
        padding: 0 1.5rem;
    }

    .pub-access-link {
        flex-wrap: wrap;
    }
}
