/* D2 Pioneer Biography — Layout B (Sidebar Portrait) */

/* ── Screen reader text ── */
.screen-reader-text {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
.screen-reader-text:focus {
    position: static !important; width: auto !important; height: auto !important;
    padding: 12px 24px !important; margin: 0 !important; overflow: visible !important;
    clip: auto !important; background: #d4a84b !important; color: #fff !important;
    font-size: 14px !important; font-weight: 700 !important; z-index: 100000 !important;
    display: block !important;
}

/* ── Header ── */
.d2p-header {
    background: #3a3a3a;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #d4a84b;
}
.d2p-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.d2p-header .d2p-container { display: flex; align-items: center; justify-content: space-between; }
.d2p-logo { color: #d4a84b; font-size: 20px; font-weight: 700; text-decoration: none; }
.d2p-nav a { color: #ccc; margin-left: 28px; font-size: 14px; text-decoration: none; }
.d2p-nav a:hover { color: #d4a84b; }

/* ── Breadcrumb ── */
.d2p-breadcrumb { padding: 16px 0; font-size: 13px; color: #999; }
.d2p-breadcrumb a { color: #999; text-decoration: none; }
.d2p-breadcrumb a:hover { color: #d4a84b; }
.d2p-breadcrumb span { margin: 0 6px; }

/* ── Layout ── */
.d2p-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    padding: 40px 0 60px;
}

/* ── Sidebar ── */
.d2p-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.d2p-sidebar-portrait { text-align: center; margin-bottom: 24px; }
.d2p-sidebar-portrait img {
    width: 220px; height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #d4a84b;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.d2p-sidebar-name { text-align: center; margin-bottom: 24px; }
.d2p-sidebar-name h1 { font-size: 26px; font-weight: 700; margin: 0 0 4px; color: #3a3a3a; }
.d2p-dates { color: #d4a84b; font-size: 16px; font-weight: 500; }

/* Quick facts */
.d2p-sidebar-facts {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
.d2p-sidebar-facts h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
    color: #999; margin-bottom: 16px;
}
.d2p-fact {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid #eee; font-size: 13px;
}
.d2p-fact:last-child { border-bottom: none; }
.d2p-fact-label { color: #999; }
.d2p-fact-value { font-weight: 600; color: #3a3a3a; text-align: right; }

/* Timeline */
.d2p-sidebar-timeline {
    background: #3a3a3a;
    border-radius: 8px;
    padding: 24px;
}
.d2p-sidebar-timeline h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
    color: #d4a84b; margin-bottom: 16px;
}
.d2p-timeline-item {
    padding: 8px 0;
    border-bottom: 1px solid #4a4a4a;
    font-size: 13px;
}
.d2p-timeline-item:last-child { border-bottom: none; }
.d2p-timeline-year { color: #d4a84b; font-weight: 700; font-size: 15px; }
.d2p-timeline-event { color: #ccc; margin-top: 2px; }

/* ── Main Content ── */
.d2p-content { line-height: 1.8; }
.d2p-content h2 {
    font-size: 30px; font-weight: 700; margin: 0 0 24px; color: #3a3a3a;
}
.d2p-content h3 {
    font-size: 22px; font-weight: 600; margin: 36px 0 16px; color: #3a3a3a;
}
.d2p-content p {
    font-size: 16px; margin-bottom: 20px; color: #555;
}
.d2p-content ul, .d2p-content ol {
    margin: 0 0 20px 20px; color: #555; font-size: 16px;
}
.d2p-content li { margin-bottom: 8px; }
.d2p-content strong { color: #3a3a3a; }

/* Quotes */
.d2p-content blockquote {
    background: linear-gradient(135deg, #faf6ee 0%, #f5eed8 100%);
    border-left: 4px solid #d4a84b;
    padding: 28px 32px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    font-size: 17px;
    font-style: italic;
    color: #3a3a3a;
    line-height: 1.7;
}
.d2p-content blockquote cite {
    display: block;
    font-size: 13px;
    color: #999;
    font-style: normal;
    margin-top: 10px;
}

/* ── Related Books ── */
.d2p-books {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}
.d2p-books h2 {
    font-size: 24px;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 24px;
}
.d2p-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.d2p-book-card {
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.d2p-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.d2p-book-cover {
    background: #f5f0e8;
    padding: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.d2p-book-cover img {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}
.d2p-book-info {
    padding: 14px;
}
.d2p-book-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #3a3a3a;
    margin: 0 0 6px;
    line-height: 1.3;
}
.d2p-book-price {
    font-size: 15px;
    font-weight: 700;
    color: #d4a84b;
}

/* ── Back link ── */
.d2p-back { padding: 40px 0; text-align: center; }
.d2p-back a {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 15px; color: #d4a84b; font-weight: 600; text-decoration: none;
}
.d2p-back a:hover { text-decoration: underline; }

/* ── Footer ── */
.d2p-footer {
    background: #3a3a3a; color: #999;
    padding: 32px 0; text-align: center; font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .d2p-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .d2p-sidebar {
        position: static;
    }
    .d2p-sidebar-portrait img {
        width: 160px; height: 160px;
    }
    .d2p-header .d2p-container {
        flex-direction: column;
        gap: 12px;
    }
    .d2p-nav a { margin-left: 16px; }
}
