/* ═══════════════════════════════════════════════════════════════
   PUBLICATIONS — Homepage Section & Full Archive/Single Pages
   Design Language: Dark Navy (#0a192f) + Gold (#d4af37) + White
   ═══════════════════════════════════════════════════════════════ */

/* ─── Homepage Publications Teaser ─────────────────────────────── */
.dp-pub-home {
    padding: 110px 5vw;
    background: #0a192f;
    position: relative;
    overflow: hidden;
}

/* Subtle diagonal accent line */
.dp-pub-home::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.dp-pub-home-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header row */
.dp-pub-home-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 30px;
    flex-wrap: wrap;
}

.dp-pub-home-eyebrow {
    color: #d4af37;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.dp-pub-home-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
}

.dp-pub-home-all-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d4af37;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(212,175,55,0.4);
    padding-bottom: 3px;
    white-space: nowrap;
    transition: color 0.25s, border-color 0.25s;
    flex-shrink: 0;
}

.dp-pub-home-all-link::after {
    content: '→';
    transition: transform 0.25s;
}

.dp-pub-home-all-link:hover {
    color: #f0d060;
    border-color: #f0d060;
}

.dp-pub-home-all-link:hover::after {
    transform: translateX(4px);
}

/* Cards grid */
.dp-pub-home-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

/* Featured big card (first child) */
.dp-pub-card {
    background: #0f2540;
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.dp-pub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-color: rgba(212,175,55,0.4);
}

.dp-pub-card--featured {
    grid-row: span 2;
}

.dp-pub-card-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 2px;
    padding: 4px 10px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.dp-pub-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dp-pub-card--featured .dp-pub-card-body {
    padding: 40px;
}

.dp-pub-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 14px;
    font-weight: 700;
    transition: color 0.25s;
}

.dp-pub-card--featured .dp-pub-card-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.dp-pub-card:hover .dp-pub-card-title {
    color: #d4af37;
}

.dp-pub-card-excerpt {
    font-size: 0.925rem;
    color: #94a3b8;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 24px;
}

.dp-pub-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
}

.dp-pub-card-meta-dot {
    width: 4px; height: 4px;
    background: #d4af37;
    border-radius: 50%;
    flex-shrink: 0;
}

.dp-pub-card-read {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d4af37;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: gap 0.25s;
}

.dp-pub-card-read::after { content: '→'; }

.dp-pub-card:hover .dp-pub-card-read {
    gap: 12px;
}

/* Gold accent bar on featured card top */
.dp-pub-card--featured::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #d4af37, #f0d060, #d4af37);
}

@media (max-width: 1024px) {
    .dp-pub-home-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dp-pub-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .dp-pub-home-grid {
        grid-template-columns: 1fr;
    }
    .dp-pub-card--featured { grid-column: span 1; }
    .dp-pub-home-title { font-size: 2rem; }
    .dp-pub-home { padding: 70px 5vw; }
}


/* ─── Publications Archive Page ─────────────────────────────────── */
.dp-pub-archive {
    background: #ffffff;
    min-height: 100vh;
}

/* Hero */
.dp-pub-archive-hero {
    background: #0a192f;
    padding: 120px 5vw 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.dp-pub-archive-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.dp-pub-archive-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 4rem;
    color: #ffffff;
    margin: 0 0 16px;
    font-weight: 700;
}

.dp-pub-archive-hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

.dp-pub-archive-eyebrow {
    color: #d4af37;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

/* Filter pills */
.dp-pub-filters {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 5vw;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dp-pub-filters::-webkit-scrollbar { display: none; }

.dp-pub-filter-btn {
    white-space: nowrap;
    padding: 9px 22px;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    transition: all 0.22s ease;
    font-family: 'Inter', sans-serif;
}

.dp-pub-filter-btn:hover,
.dp-pub-filter-btn.active {
    background: #0a192f;
    border-color: #0a192f;
    color: #d4af37;
}

/* Archive grid */
.dp-pub-archive-grid-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 5vw 100px;
}

.dp-pub-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

/* Archive cards (lighter background) */
.dp-pub-archive-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
}

.dp-pub-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(10,25,47,0.1);
    border-color: rgba(212,175,55,0.5);
}

.dp-pub-archive-card-accent {
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    width: 0;
    transition: width 0.4s ease;
}

.dp-pub-archive-card:hover .dp-pub-archive-card-accent {
    width: 100%;
}

.dp-pub-archive-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dp-pub-archive-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 2px;
    padding: 4px 10px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.dp-pub-archive-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: #0a192f;
    line-height: 1.35;
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.25s;
}

.dp-pub-archive-card:hover .dp-pub-archive-card-title {
    color: #d4af37;
}

.dp-pub-archive-card-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 24px;
}

.dp-pub-archive-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f4f8;
    padding-top: 16px;
}

.dp-pub-archive-card-date {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.dp-pub-archive-card-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a192f;
    font-size: 1rem;
    transition: background 0.25s, color 0.25s;
    flex-shrink: 0;
}

.dp-pub-archive-card:hover .dp-pub-archive-card-arrow {
    background: #d4af37;
    color: #0a192f;
}



/* ─── Single Publication Page ───────────────────────────────────── */

/* Force the WP main/post wrappers to be truly full-width */
.dp-pub-single,
.dp-pub-single.wp-block-group,
.dp-pub-single > .wp-block-post-content,
.dp-pub-single .wp-block-post-content,
.dp-pub-single .is-layout-constrained,
.dp-pub-single .is-layout-flow {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Article wrapper injected by the_content filter */
.dp-pub-article {
    width: 100%;
    background: #ffffff;
    padding: 60px 0 20px;
}

/* ── Hero: always full bleed ── */
.dp-pub-single-hero {
    background: #0a192f;
    width: 100%;
    padding: 120px 6vw 70px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.dp-pub-single-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Reading column centred inside the hero */
.dp-pub-single-hero-inner {
    max-width: 840px;
    margin: 0 auto;
    width: 100%;
}

/* ── Breadcrumb ── */
.dp-pub-single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
    flex-wrap: wrap;
}

.dp-pub-single-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.dp-pub-single-breadcrumb a:hover { color: #d4af37; }
.dp-pub-single-breadcrumb-sep { color: #334155; }

/* ── Category pill ── */
.dp-pub-single-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
    border: 1px solid rgba(212,175,55,0.45);
    border-radius: 2px;
    padding: 5px 14px;
    margin-bottom: 22px;
}

/* ── Title ── */
.dp-pub-single-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
    color: #ffffff;
    line-height: 1.18;
    margin: 0 0 28px;
    font-weight: 700;
}

/* ── Meta row ── */
.dp-pub-single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
}

.dp-pub-single-meta-sep {
    width: 4px; height: 4px;
    background: #d4af37;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Gold divider stripe: full-width ── */
.dp-pub-single-divider {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #d4af37 0%, rgba(212,175,55,0.15) 60%, transparent 100%);
}

/* ── Article body: centred reading column, not capped ── */
.dp-pub-single-wrap {
    width: 100%;
    background: #ffffff;
}

/* ── Article content: reading column via padding, not max-width ── */
.dp-pub-article p,
.dp-pub-article h2,
.dp-pub-article h3,
.dp-pub-article ul,
.dp-pub-article ol {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.dp-pub-article p {
    font-size: 1.08rem;
    color: #334155;
    line-height: 1.85;
    margin-bottom: 26px;
    padding-left: 6vw;
    padding-right: 6vw;
}

.dp-pub-article h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: #0a192f;
    margin: 54px auto 18px;
    padding: 0 6vw 12px;
    border-bottom: 2px solid rgba(212,175,55,0.25);
}

.dp-pub-article h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #0a192f;
    margin: 32px auto 12px;
    padding: 0 6vw;
}

.dp-pub-article ul,
.dp-pub-article ol {
    padding-left: calc(6vw + 24px);
    padding-right: 6vw;
    margin-bottom: 26px;
}

.dp-pub-article li {
    font-size: 1.03rem;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 9px;
}

/* ── Pull-quote callout ── */
.dp-pub-callout {
    background: #f8f9ff;
    border-left: 4px solid #d4af37;
    padding: 28px calc(6vw + 4px) 28px calc(6vw + 28px);
    margin: 40px auto;
    border-radius: 0 6px 6px 0;
    max-width: 820px;
    box-sizing: border-box;
}

.dp-pub-callout p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem !important;
    color: #1e3a5f !important;
    font-style: italic;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.7 !important;
}

/* ── Key Takeaways dark box ── */
.dp-pub-takeaways {
    background: #0a192f;
    border-radius: 6px;
    padding: 36px 40px;
    margin: 48px auto;
    max-width: 760px;
    width: calc(100% - 12vw);
    box-sizing: border-box;
}

.dp-pub-takeaways-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    color: #d4af37;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dp-pub-takeaways-title::before {
    content: '✦';
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dp-pub-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dp-pub-takeaways li {
    font-size: 0.97rem !important;
    color: #cbd5e1 !important;
    padding: 11px 0 11px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
    margin-bottom: 0 !important;
    line-height: 1.6;
    max-width: 100% !important;
    padding-left: 22px !important;
    padding-right: 0 !important;
    width: auto !important;
}

.dp-pub-takeaways li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: 700;
}

.dp-pub-takeaways li:last-child { border-bottom: none; }

/* ── Back button area ── */
.dp-pub-back-wrap {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    padding: 8px 6vw 70px;
    box-sizing: border-box;
}

.dp-pub-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0a192f;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #0a192f;
    padding: 14px 30px;
    border-radius: 2px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.dp-pub-back-btn::before { content: '←'; margin-right: 4px; }

.dp-pub-back-btn:hover {
    background: #0a192f;
    color: #d4af37;
    border-color: #0a192f;
}

/* ── Responsive breakpoints ── */
@media (max-width: 900px) {
    .dp-pub-single-hero { padding: 100px 5vw 60px; }
    .dp-pub-archive-hero h1 { font-size: 2.8rem; }
    .dp-pub-related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .dp-pub-single-hero { padding: 80px 5vw 50px; }
    .dp-pub-archive-hero h1 { font-size: 2rem; }
    .dp-pub-related-grid { grid-template-columns: 1fr; }

    .dp-pub-article p,
    .dp-pub-article h2,
    .dp-pub-article h3 { padding-left: 5vw; padding-right: 5vw; }

    .dp-pub-article ul,
    .dp-pub-article ol { padding-left: calc(5vw + 20px); padding-right: 5vw; }

    .dp-pub-callout { padding: 22px 5vw 22px calc(5vw + 24px); }

    .dp-pub-takeaways { padding: 26px 22px; width: calc(100% - 10vw); }

    .dp-pub-back-wrap { padding: 8px 5vw 50px; }
}

@media (max-width: 400px) {
    .dp-pub-single-hero { padding: 70px 4vw 40px; }
    .dp-pub-single-meta { gap: 10px; font-size: 0.78rem; }
    .dp-pub-takeaways { padding: 22px 16px; width: calc(100% - 8vw); }
    .dp-pub-article p,
    .dp-pub-article h2,
    .dp-pub-article h3 { padding-left: 4vw; padding-right: 4vw; }
}
