/**
 * PeopleNetWorth Editorial Contributor & Author Archive Styles
 * Warm cream paper ground, deep navy editorial authority, restrained muted-saffron accents.
 *
 * @package PNW_Theme
 */

.pnw-ed-author-page {
    background-color: #faf8f3;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-bottom: 72px;
    border-top: 1px solid #e6e0d4;
}

.pnw-ed-container {
    width: min(1180px, 92%);
    max-width: 1180px;
    margin: 0 auto;
}

/* Subtle Breadcrumb */
.pnw-ed-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0 14px;
    font-size: 12.5px;
    color: #6b7280;
    letter-spacing: 0.01em;
}

.pnw-ed-breadcrumb a {
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.pnw-ed-breadcrumb a:hover {
    color: #0d213f;
    border-bottom-color: #b94a28;
}

.pnw-ed-breadcrumb .sep {
    color: #9ca3af;
}

/* Author Profile Hero */
.pnw-ed-hero {
    background: #ffffff;
    border: 1px solid #e3ddd2;
    border-top: 3px solid #0d213f;
    border-radius: 6px;
    padding: 34px 36px;
    box-shadow: 0 2px 14px rgba(13, 33, 63, 0.04);
}

.pnw-ed-hero-grid {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.pnw-ed-avatar-wrap {
    flex: 0 0 104px;
}

.pnw-ed-avatar-wrap img {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 6px;
    border: 1px solid #d5ccb9;
    box-shadow: 0 4px 12px rgba(13, 33, 63, 0.08);
}

.pnw-ed-hero-body {
    flex: 1;
    min-width: 0;
}

.pnw-ed-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b94a28;
    margin-bottom: 6px;
}

.pnw-ed-hero-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.18;
    color: #0d213f;
    margin: 0 0 6px 0;
    letter-spacing: -0.015em;
}

.pnw-ed-role-line {
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 14px 0;
}

.pnw-ed-role-line span {
    color: #b94a28;
    margin: 0 8px;
}

.pnw-ed-lead {
    font-size: 15.5px;
    line-height: 1.65;
    color: #3f4b5b;
    margin: 0 0 18px 0;
    max-width: 74ch;
}

.pnw-ed-topic-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pnw-ed-topic-label {
    font-size: 12px;
    font-weight: 500;
    color: #1e3352;
    background: #faf8f3;
    border: 1px solid #ddd6c9;
    padding: 4px 11px;
    border-radius: 4px;
}

/* Dynamic Author Statistics Panel */
.pnw-ed-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #ebe5da;
    gap: 16px;
}

.pnw-ed-stat-item {
    padding-right: 12px;
    border-right: 1px solid #ebe5da;
}

.pnw-ed-stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.pnw-ed-stat-num {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #0d213f;
    line-height: 1.15;
}

.pnw-ed-stat-lbl {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #5b6676;
    letter-spacing: 0.02em;
}

/* Editorial Dossier Band: Biography + Areas of Coverage */
.pnw-ed-dossier-band {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 32px;
    margin-top: 30px;
    background: #f5f1e8;
    border: 1px solid #e3ddd2;
    border-radius: 6px;
    padding: 30px 34px;
}

.pnw-ed-sec-heading {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0d213f;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #d9d1c3;
    line-height: 1.25;
}

.pnw-ed-bio-prose p {
    font-size: 15px;
    line-height: 1.74;
    color: #2d3a4b;
    margin: 0 0 13px 0;
}

.pnw-ed-bio-prose p:last-child {
    margin-bottom: 0;
}

.pnw-ed-coverage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.pnw-ed-coverage-list li {
    font-size: 13.5px;
    font-weight: 600;
    color: #0d213f;
    padding: 9px 10px 9px 12px;
    background: #ffffff;
    border: 1px solid #e1dbd0;
    border-left: 2px solid #b94a28;
    border-radius: 4px;
    line-height: 1.35;
}

/* Editorial Section Framing */
.pnw-ed-section {
    margin-top: 44px;
}

.pnw-ed-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0d213f;
    flex-wrap: wrap;
}

.pnw-ed-section-header h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0d213f;
    margin: 0 0 6px 0;
    line-height: 1.22;
}

.pnw-ed-section-sub {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    max-width: 72ch;
    line-height: 1.55;
}

.pnw-ed-archive-meta-note {
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}

/* Featured Political Analysis Band */
.pnw-ed-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.pnw-ed-featured-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ddd6c9;
    border-top: 3px solid #b94a28;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pnw-ed-featured-card:hover {
    border-color: #0d213f;
    box-shadow: 0 8px 24px rgba(13, 33, 63, 0.08);
}

.pnw-ed-featured-media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #0d213f;
    overflow: hidden;
}

.pnw-ed-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.pnw-ed-featured-card:hover .pnw-ed-featured-media img {
    transform: scale(1.02);
}

.pnw-ed-featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0d213f;
    color: #faf8f3;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 3px;
}

.pnw-ed-featured-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pnw-ed-featured-body h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0d213f;
    margin: 0 0 10px 0;
}

.pnw-ed-featured-card:hover .pnw-ed-featured-body h3 {
    color: #b94a28;
}

.pnw-ed-card-excerpt {
    font-size: 14px;
    line-height: 1.62;
    color: #475569;
    margin: 0 0 18px 0;
}

/* Filter & Search Controls */
.pnw-ed-toolbar {
    background: #ffffff;
    border: 1px solid #e3ddd2;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pnw-ed-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.pnw-ed-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    background: #faf8f3;
    border: 1px solid #ddd6c9;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.pnw-ed-filter-pill:hover {
    border-color: #0d213f;
    color: #0d213f;
}

.pnw-ed-filter-pill.is-active {
    background: #0d213f;
    border-color: #0d213f;
    color: #faf8f3;
}

.pnw-ed-filter-count {
    font-size: 11px;
    opacity: 0.78;
}

.pnw-ed-filter-select {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: #0d213f;
    background: #faf8f3;
    border: 1px solid #cfc7b8;
    border-radius: 4px;
    padding: 7px 10px;
}

.pnw-ed-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 320px;
    min-width: 220px;
}

.pnw-ed-search-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    color: #0d213f;
    background: #faf8f3;
    border: 1px solid #cfc7b8;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.pnw-ed-search-input:focus {
    border-color: #0d213f;
    background: #ffffff;
}

.pnw-ed-search-btn {
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #faf8f3;
    background: #0d213f;
    border: 1px solid #0d213f;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.16s ease;
}

.pnw-ed-search-btn:hover {
    background: #173561;
}

.pnw-ed-active-query-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #f5f1e8;
    border: 1px solid #dfd7c8;
    border-left: 3px solid #b94a28;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #1e293b;
}

.pnw-ed-reset-link {
    font-weight: 700;
    color: #b94a28;
    text-decoration: none;
}

.pnw-ed-reset-link:hover {
    text-decoration: underline;
}

/* Latest Publications 2-Column Editorial Grid */
.pnw-ed-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.pnw-ed-article-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e3ddd2;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pnw-ed-article-card:hover {
    border-color: #0d213f;
    box-shadow: 0 6px 20px rgba(13, 33, 63, 0.06);
}

.pnw-ed-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #0d213f;
    overflow: hidden;
}

.pnw-ed-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pnw-ed-card-media-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d213f 0%, #1c355e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(250, 246, 238, 0.35);
}

.pnw-ed-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pnw-ed-card-kicker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b94a28;
}

.pnw-ed-read-time {
    color: #6b7280;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.pnw-ed-card-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.32;
    color: #0d213f;
    margin: 0 0 10px 0;
}

.pnw-ed-article-card:hover .pnw-ed-card-title {
    color: #b94a28;
}

.pnw-ed-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #efeae1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
}

.pnw-ed-card-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pnw-ed-updated-tag {
    color: #0d213f;
    font-weight: 600;
    background: #f3efe6;
    padding: 1px 6px;
    border-radius: 3px;
}

.pnw-ed-read-cta {
    font-weight: 700;
    color: #0d213f;
    white-space: nowrap;
}

.pnw-ed-article-card:hover .pnw-ed-read-cta,
.pnw-ed-featured-card:hover .pnw-ed-read-cta {
    color: #b94a28;
}

/* Pagination */
.pnw-ed-pagination {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #e3ddd2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pnw-ed-page-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pnw-ed-page-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    font-size: 13px;
    font-weight: 600;
    color: #0d213f;
    background: #ffffff;
    border: 1px solid #d9d1c3;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pnw-ed-page-links .page-numbers:hover:not(.current):not(.dots) {
    border-color: #0d213f;
    background: #f5f1e8;
}

.pnw-ed-page-links .page-numbers.current {
    background: #0d213f;
    border-color: #0d213f;
    color: #faf8f3;
}

.pnw-ed-page-links .page-numbers.dots {
    border: none;
    background: transparent;
    color: #6b7280;
    min-width: auto;
    padding: 0 4px;
}

/* Empty State */
.pnw-ed-empty {
    background: #ffffff;
    border: 1px solid #e3ddd2;
    border-radius: 6px;
    padding: 44px 24px;
    text-align: center;
}

.pnw-ed-empty p {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #4b5563;
}

.pnw-ed-btn-primary {
    display: inline-block;
    background: #0d213f;
    color: #faf8f3;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
}

/* Editorial Transparency Section */
.pnw-ed-trust-box {
    margin-top: 48px;
    background: #ffffff;
    border: 1px solid #e3ddd2;
    border-top: 3px solid #b94a28;
    border-radius: 6px;
    padding: 30px 34px;
}

.pnw-ed-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.pnw-ed-trust-item {
    background: #faf8f3;
    border: 1px solid #e6dfd3;
    border-radius: 4px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
}

.pnw-ed-trust-num {
    font-size: 11px;
    font-weight: 700;
    color: #b94a28;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.pnw-ed-trust-item h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0d213f;
    margin: 0 0 7px 0;
}

.pnw-ed-trust-item p {
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 12px 0;
}

.pnw-ed-trust-item a {
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: #0d213f;
    text-decoration: none;
    border-bottom: 1px solid #d5ccb9;
    align-self: flex-start;
    padding-bottom: 1px;
}

.pnw-ed-trust-item a:hover {
    color: #b94a28;
    border-bottom-color: #b94a28;
}

.pnw-ed-policy-links {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #ebe5da;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    font-size: 12.5px;
}

.pnw-ed-policy-links span {
    font-weight: 700;
    color: #0d213f;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.pnw-ed-policy-links a {
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid #d8d1c5;
}

.pnw-ed-policy-links a:hover {
    color: #b94a28;
    border-bottom-color: #b94a28;
}

/* Tablet & Mobile Responsiveness (360px, 390px, 430px safe) */
@media (max-width: 960px) {
    .pnw-ed-dossier-band {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    .pnw-ed-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pnw-ed-stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pnw-ed-stat-item:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 720px) {
    .pnw-ed-container {
        width: 94%;
    }
    .pnw-ed-hero {
        padding: 22px 18px;
    }
    .pnw-ed-hero-grid {
        flex-direction: column;
        gap: 16px;
    }
    .pnw-ed-avatar-wrap {
        flex: none;
    }
    .pnw-ed-avatar-wrap img {
        width: 78px;
        height: 78px;
    }
    .pnw-ed-coverage-list {
        grid-template-columns: 1fr;
    }
    .pnw-ed-featured-grid,
    .pnw-ed-articles-grid,
    .pnw-ed-trust-grid {
        grid-template-columns: 1fr;
    }
    .pnw-ed-toolbar {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
    }
    .pnw-ed-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .pnw-ed-search-form {
        width: 100%;
        flex: none;
        min-width: 0;
    }
    .pnw-ed-featured-body,
    .pnw-ed-card-body,
    .pnw-ed-trust-box,
    .pnw-ed-dossier-band {
        padding: 18px 16px;
    }
    .pnw-ed-pagination {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .pnw-ed-hero-title {
        font-size: 1.55rem;
    }
    .pnw-ed-stat-num {
        font-size: 1.45rem;
    }
    .pnw-ed-page-links .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}
