/* =========================================================
   LUMISCHEMA AUTHOR ARCHIVE
   The outer container and sidebar grid intentionally mirror
   css/news-single.css and the Single-News page.
   ========================================================= */

.lc-author-archive {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Author page uses the same inner grid as single.php; override GeneratePress
   sidebar float/width rules that can otherwise squeeze widget text vertically. */

.lc-author-archive .lc-news-layout > #secondary *,
.lc-author-archive .lc-news-layout > #right-sidebar * {
    max-width: 100%;
    box-sizing: border-box;
}

.lc-author-archive .lc-author-main {
    min-width: 0;
    width: 100%;
    padding: 0 0 20px;
    box-sizing: border-box;
}

.lc-author-archive .lc-author-header {
    margin-bottom: 28px;
}

.lc-author-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.lc-author-avatar {
    display: block;
    width: 76px !important;
    height: 76px !important;
    flex: 0 0 76px;
    border-radius: 50%;
    object-fit: cover;
}

.lc-author-profile-text {
    min-width: 0;
}

.lc-author-eyebrow {
    margin: 0 0 5px;
    color: #0878E8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
}

.lc-author-profile-text h1 {
    margin: 0;
    color: #071D33;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.lc-author-bio {
    margin-top: 18px;
    color: #526477;
    font-size: 14px;
    line-height: 1.7;
}

.lc-author-bio > *:first-child {
    margin-top: 0;
}

.lc-author-bio > *:last-child {
    margin-bottom: 0;
}

.lc-author-content-note {
    margin: 15px 0 0;
    color: #66788b;
    font-size: 12px;
}

/* Three-column heading: title left, type pills truly centered, count right. */
.lc-author-results-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DCE5EF;
}

.lc-author-results-heading h2 {
    margin: 0;
    color: #071D33;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}

.lc-author-type-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.lc-author-type-pills .ls-news-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #D9DEE7;
    border-radius: 18px;
    background: #FFFFFF;
    color: #475467;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.lc-author-type-pills .ls-news-category-pill:hover,
.lc-author-type-pills .ls-news-category-pill.is-active {
    border-color: #172337;
    background: #172337;
    color: #FFFFFF;
}

.lc-author-published-count {
    justify-self: end;
    color: #66788b;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

.lc-author-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 16px;
}

.lc-author-card {
    min-width: 0;
}

.lc-author-type-label {
    display: inline-block;
    max-width: 65%;
    padding: 4px 7px;
    border-radius: 4px;
    background: #EEF6FF;
    color: #0878E8;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .35px;
}

.lc-author-type-label.is-review {
    background: #172337;
    color: #FFFFFF;
}

.lc-author-card .ls-news-card-title {
    font-size: 14px;
    line-height: 1.35;
}

.lc-author-pagination {
    margin-top: 30px;
    text-align: center;
}

.lc-author-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lc-author-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #DCE5EF;
    border-radius: 5px;
    color: #475467;
    font-size: 12px;
    text-decoration: none;
}

.lc-author-pagination .page-numbers.current {
    border-color: #172337;
    background: #172337;
    color: #FFFFFF;
}

.lc-author-pagination a.page-numbers:hover {
    border-color: #0878E8;
    background: #0878E8;
    color: #FFFFFF;
}

.lc-author-empty {
    padding: 28px 20px;
    border: 1px solid #DCE5EF;
    border-radius: 7px;
    background: #F8FAFC;
    text-align: center;
}

.lc-author-empty h2 {
    margin: 0 0 8px;
    color: #071D33;
    font-size: 18px;
}

.lc-author-empty p {
    margin: 0;
    color: #66788b;
    font-size: 13px;
}

@media (max-width: 1000px) {
    

    .lc-author-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    

    

    

    .lc-author-archive .lc-author-main {
        width: 100%;
        min-width: 0;
    }

    

    .lc-author-profile {
        gap: 12px;
    }

    .lc-author-avatar {
        width: 60px !important;
        height: 60px !important;
        flex-basis: 60px;
    }

    .lc-author-profile-text h1 {
        font-size: 25px;
    }

    .lc-author-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }
}

@media (max-width: 420px) {
    

    .lc-author-results-heading {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .lc-author-type-pills {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
    }

    .lc-author-published-count {
        grid-column: 2;
        grid-row: 1;
    }

    .lc-author-card .ls-news-card-title {
        font-size: 13px;
    }
}

/* Keep the author archive's GeneratePress sidebar in the same stable grid as Single-News. */

/* =========================================================
   AUTHOR PAGE — MATCH THE ACTUAL SINGLE-NEWS OUTER LAYOUT
   Fix the GeneratePress content-area width before applying the
   internal content/sidebar grid, so the sidebar cannot be squeezed
   into a second nested 30% column.
   ========================================================= */

/* Keep widget content inside the real sidebar column without breaking words vertically. */
body.author .lc-author-archive .lc-news-layout > #secondary a,
body.author .lc-author-archive .lc-news-layout > #right-sidebar a {
    overflow-wrap: anywhere;
    word-break: normal;
}
body.author .lc-author-archive .lc-news-layout > #secondary img,
body.author .lc-author-archive .lc-news-layout > #secondary iframe,
body.author .lc-author-archive .lc-news-layout > #secondary video,
body.author .lc-author-archive .lc-news-layout > #right-sidebar img,
body.author .lc-author-archive .lc-news-layout > #right-sidebar iframe,
body.author .lc-author-archive .lc-news-layout > #right-sidebar video {
    max-width: 100%;
    height: auto;
}

/* Space the author card below the site header, matching Single-News. */
body.author .lc-author-archive .lc-author-header {
    margin-top: 0;
    margin-bottom: 28px;
}

/* Pills remain centered in the heading row and can be dragged horizontally. */
body.author .lc-author-type-pills {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    cursor: grab;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
body.author .lc-author-type-pills::-webkit-scrollbar { display: none; }
body.author .lc-author-type-pills.is-dragging { cursor: grabbing; user-select: none; }
body.author .lc-author-type-pills .ls-news-category-pill { flex: 0 0 auto; }


/* =========================================================
   AUTHOR PROFILE CARD (redesign)
   Same family as the device / review heroes: soft blue-grey card, brand-blue
   top line, shadow. Photo with ring, AUTHOR label, name, job title + "since",
   profile links, bio, four stats. Then "Latest from <name>" with red-selected chips.
   ========================================================= */
.ls-author-card {
    margin: 0 0 22px;
    padding: 20px;
    background: #f6f9fe;
    border: 1px solid #d6e4fb;
    border-top: 4px solid #0b5fd8;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(7, 29, 51, .08);
}
.ls-author-top { display: flex; align-items: center; gap: 18px; }
.ls-author-photo { flex: 0 0 104px; width: 104px; height: 104px; padding: 4px; border-radius: 50%; background: #fff; border: 2px solid #0b5fd8; box-sizing: border-box; }
.ls-author-photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ls-author-id { min-width: 0; }
.ls-author-eyebrow { display: inline-flex; margin-bottom: 6px; padding: 3px 10px; border-radius: 6px; background: #071D33; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.ls-author-id h1 { margin: 0 0 4px; color: #071D33; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; font-weight: 800; letter-spacing: -.4px; }
.ls-author-role { display: block; color: #4a5d7a; font-size: 13px; }
.ls-author-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ls-author-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid #d3deec; border-radius: 999px; background: #fff; color: #071D33; font-size: 12px; font-weight: 700; text-decoration: none; }
.ls-author-links a:hover { border-color: #0b5fd8; color: #0b5fd8; }
.ls-author-links svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ls-author-bio { margin: 16px 0 0; color: #33465f; font-size: 14px; line-height: 1.65; }
.ls-author-bio p { margin: 0 0 8px; }
.ls-author-bio p:last-child { margin-bottom: 0; }
.ls-author-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.ls-author-stats > div { padding: 10px 12px; background: #fff; border: 1px solid #e1e9f4; border-radius: 10px; }
.ls-author-stats dt { color: #4a5d7a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ls-author-stats dd { margin: 2px 0 0; color: #071D33; font-size: 20px; font-weight: 800; line-height: 1.2; }

.ls-author-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.ls-author-filter h2 { margin: 0; padding-left: 10px; border-left: 4px solid #0b5fd8; color: #071D33; font-size: 18px; font-weight: 800; line-height: 1.2; }
.ls-author-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ls-author-chips .ls-arch-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid #d6e4fb; border-radius: 999px; background: #fff; color: #0b2a52; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ls-author-chips .ls-arch-chip:hover { border-color: #0b5fd8; color: #0b2a52; }
.ls-author-chips .ls-arch-chip.is-on { background: #c62828; border-color: #c62828; color: #fff; }
.ls-author-chips .ls-arch-chip small { padding: 0 6px; border-radius: 999px; background: #e7effb; color: #0b2a52; font-size: 11px; font-weight: 700; line-height: 18px; }
.ls-author-chips .ls-arch-chip.is-on small { background: #fff; color: #c62828; }

@media (max-width: 640px) {
    .ls-author-card { padding: 16px; }
    .ls-author-top { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ls-author-photo { flex-basis: 84px; width: 84px; height: 84px; }
    .ls-author-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ls-author-chips { margin-left: 0; }
}

/* Top row: photo + role / since / links on the left, AUTHOR label + name at the far right. */
.ls-author-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ls-author-role { color: #071D33; font-size: 14px; font-weight: 700; }
.ls-author-since { color: #4a5d7a; font-size: 12px; }
.ls-author-meta .ls-author-links { margin-top: 8px; }
.ls-author-top .ls-author-id { margin-left: auto; text-align: right; align-self: center; }
.ls-author-top .ls-author-id h1 { margin: 0; }
/* Bio in navy. */
.ls-author-bio { color: #071D33; }
@media (max-width: 640px) {
    .ls-author-top .ls-author-id { margin-left: 0; text-align: left; align-self: flex-start; order: 1; }
    .ls-author-top .ls-author-meta { order: 2; }
    .ls-author-top .ls-author-photo { flex: none; }
}

/* Pagination (.ls-pager) styles now live in news-category.css, shared with the News archive. */

/* =========================================================
   AUTHOR GRID + FILTER (v2)
   4 cards per row (3 on tablets, 2 on phones). The filter pills are a
   single draggable row that scrolls sideways when there are many.
   ========================================================= */
.lc-author-archive .lc-author-post-grid.ls-pcard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .lc-author-archive .lc-author-post-grid.ls-pcard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px)  { .lc-author-archive .lc-author-post-grid.ls-pcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.ls-author-filter { flex-wrap: nowrap; }
.ls-author-filter h2 { flex: 0 0 auto; white-space: nowrap; }
.ls-author-chips {
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}
.ls-author-chips::-webkit-scrollbar { display: none; }
.ls-author-chips.is-dragging { cursor: grabbing; }
.ls-author-chips.is-dragging a { pointer-events: none; }
.ls-author-chips .ls-arch-chip { flex: 0 0 auto; }
/* Soft fade on the side that has more pills hidden. */
.ls-author-chips.has-more-right { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ls-author-chips.has-more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.ls-author-chips.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }

/* Loading state while a filter / page loads in place. */
.ls-author-results { transition: opacity .15s ease; }
.ls-author-results.is-loading { opacity: .45; pointer-events: none; }

@media (max-width: 640px) {
    .ls-author-filter { flex-wrap: wrap; }
    .ls-author-chips { flex: 1 1 100%; margin-left: 0; }
}
.ls-author-links svg.ls-ico { width: 15px; height: 15px; }

/* Verified badge (administrators and editors) after the author's name. */
.ls-author-id h1 { display: inline-flex; align-items: center; gap: 8px; }
.ls-author-verified { display: inline-flex; flex: 0 0 auto; }
.ls-author-verified svg.ls-ico { width: 24px; height: 24px; }
@media (max-width: 640px) { .ls-author-verified svg.ls-ico { width: 20px; height: 20px; } }
