/* ====================================================================
   COLUMNISTS PAGES — page-specific styles
   Shared by both columnists.html (listing) and columnist.html (profile).
==================================================================== */

/* The columnists pages share the category 2-column layout */
.layout.layout-columnists {
    grid-template-columns: 200px 1fr 320px;
}
@media (max-width: 1280px) {
    .layout.layout-columnists { grid-template-columns: 180px 1fr 280px; }
}
@media (max-width: 1024px) {
    .layout.layout-columnists {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* Override the 4-col grid from .main */
.main.columnists-main {
    display: block;
    background: var(--bg);
    height: 100%;
    overflow-y: auto;
    padding: 28px 36px 60px;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d4 transparent;
}
.main.columnists-main::-webkit-scrollbar { width: 6px; }
.main.columnists-main::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 3px; }
@media (max-width: 1024px) {
    .main.columnists-main { height: auto; overflow: visible; padding: 22px 22px 50px; }
}

/* ============ PAGE HEADER ============ */
.cols-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
    border-bottom: 1px solid var(--text-strong);
    padding-bottom: 22px;
    margin-bottom: 24px;
}
.cols-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    font-weight: 600;
}
.cols-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 6px 0 8px;
    line-height: 1;
    letter-spacing: -0.01em;
}
.cols-tagline {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    max-width: 600px;
    line-height: 1.4;
    font-style: italic;
}

/* Editor-only convenience link that jumps to the Customizer with
   the Columnists section pre-focused. Visible only when an admin
   is signed in (PHP guards rendering). Designed to be subtle —
   shouldn't compete with the actual page content. */
.cols-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 12px;
    border: 1px dashed var(--line);
    border-radius: 999px;
    background: transparent;
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: calc(11px * var(--font-scale, 1));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cols-edit-link:hover,
.cols-edit-link:focus {
    color: var(--link-accent, #1f8fff);
    border-color: var(--link-accent, #1f8fff);
    background: rgba(31, 143, 255, 0.05);
}
.cols-edit-link svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
}
.cols-stats {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}
.cols-stats strong { color: var(--text-strong); font-weight: 600; }

@media (max-width: 768px) {
    .cols-header { grid-template-columns: 1fr; gap: 16px; align-items: start; }
    .cols-title { font-size: 40px; }
    .cols-stats { text-align: left; }
}

/* ============ FILTER BAR (listing page) ============ */
.cols-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-label {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 4px;
}
.filter-chip {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s;
}
.filter-chip:hover { color: var(--text-strong); border-color: var(--text-faint); }
.filter-chip.is-active {
    background: var(--text-strong);
    color: var(--bg);
    border-color: var(--text-strong);
}

.cols-search {
    position: relative;
    min-width: 220px;
}
.cols-search input {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px 8px 34px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: var(--text);
    outline: none;
    box-sizing: border-box;
}
.cols-search input:focus {
    border-color: var(--text-strong);
    background: var(--bg);
}
.cols-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    color: var(--text-faint);
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ============ FEATURED COLUMNIST (listing page) ============ */
.featured-col {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    padding: 28px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.featured-col::before {
    content: "Featured columnist";
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    font-weight: 600;
}
.featured-col-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    overflow: hidden;
    background: #2a2a2a;
}
.featured-col-photo svg { width: 100%; height: 100%; display: block; }

.featured-col-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-col-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.featured-col-name {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 4px;
    line-height: 1;
    letter-spacing: -0.01em;
}
.featured-col-name a { color: inherit; text-decoration: none; }
.featured-col-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.featured-col-beat {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.featured-col-bio {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 16px;
}
.featured-col-latest {
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-bottom: 14px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-muted);
}
.featured-col-latest .latest-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    display: block;
}
.featured-col-latest a {
    color: var(--text-strong);
    text-decoration: none;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    display: block;
}
.featured-col-latest a:hover { text-decoration: underline; text-underline-offset: 3px; }

.featured-col-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .featured-col { grid-template-columns: 1fr; padding: 18px; }
    .featured-col-photo { max-width: 200px; }
    .featured-col-name { font-size: 30px; }
}

/* ============ COLUMNISTS GRID ============ */
.cols-section-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--text-strong);
    display: inline-block;
    letter-spacing: -0.005em;
}

.cols-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
@media (max-width: 1280px) {
    .cols-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .cols-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .cols-grid { grid-template-columns: 1fr; }
}

.col-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s;
}
.col-card:hover {
    border-color: var(--text-faint);
    transform: translateY(-2px);
}
.col-card-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #2a2a2a;
    overflow: hidden;
    text-decoration: none;
}
.col-card-photo svg { width: 100%; height: 100%; display: block; }

.col-card-body { padding: 14px 16px 16px; }

.col-card-name {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 2px;
    line-height: 1.1;
    letter-spacing: -0.005em;
}
.col-card-name a { color: inherit; text-decoration: none; }
.col-card-name a:hover { text-decoration: underline; text-underline-offset: 2px; }

.col-card-beat {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 10px;
}
.col-card-bio {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.col-card-latest {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.col-card-latest-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.col-card-latest-title a { color: var(--text-strong); text-decoration: none; }
.col-card-latest-title a:hover { text-decoration: underline; text-underline-offset: 2px; }

.col-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.col-card-stats {
    font-family: "Inter", sans-serif;
    font-size: 10px;
    color: var(--text-muted);
}
.col-card-stats strong {
    color: var(--text-strong);
    font-weight: 600;
}

/* Follow button (reused across pages) */
.follow-btn {
    background: transparent;
    border: 1px solid var(--text-strong);
    color: var(--text-strong);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.follow-btn:hover { background: var(--text-strong); color: var(--bg); }
.follow-btn[data-following="true"] {
    background: var(--text-strong);
    color: var(--bg);
}
.follow-btn[data-following="true"]::before {
    content: "✓ ";
}
.follow-btn-lg {
    padding: 9px 20px;
    font-size: 12px;
    letter-spacing: 0.08em;
}

/* ============ COLUMNIST PROFILE PAGE — HERO ============ */
/* On profile page, the hero stretches edge-to-edge.
   We zero out the main's lateral padding for the hero block by removing
   its negative margins and applying a wider hero padding instead. */
.main.columnist-main {
    display: block;          /* override the 4-column grid from .main in shared.css */
    background: var(--bg);
    height: 100%;
    overflow-y: auto;
    padding: 0 0 60px;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d4 transparent;
}
.main.columnist-main::-webkit-scrollbar { width: 6px; }
.main.columnist-main::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 3px; }
.main.columnist-main > :not(.colp-hero) {
    margin-left: 36px;
    margin-right: 36px;
}
@media (max-width: 1024px) {
    .main.columnist-main { height: auto; overflow: visible; padding: 0 0 50px; }
    .main.columnist-main > :not(.colp-hero) {
        margin-left: 22px;
        margin-right: 22px;
    }
}

.colp-hero {
    background: #1a1a1a;
    color: #fff;
    padding: 36px 40px;
    margin: 0 0 32px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
}
.colp-hero-photo {
    width: 220px;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    overflow: hidden;
    background: #2a2a2a;
}
.colp-hero-photo svg { width: 100%; height: 100%; display: block; }

.colp-hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.colp-hero-eyebrow {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    margin-bottom: 8px;
}
.colp-hero-name {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 56px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #fff;
}
.colp-hero-beat {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    font-weight: 600;
}
.colp-hero-bio {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 17px;
    color: rgba(255,255,255,0.88);
    line-height: 1.5;
    margin: 0 0 22px;
    max-width: 640px;
}
.colp-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.colp-hero-actions .follow-btn {
    border-color: #fff;
    color: #fff;
}
.colp-hero-actions .follow-btn:hover { background: #fff; color: #1a1a1a; }
.colp-hero-actions .follow-btn[data-following="true"] {
    background: #fff;
    color: #1a1a1a;
}
.colp-social-links {
    display: flex;
    gap: 6px;
}
.colp-social-links a {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.15s;
}
.colp-social-links a:hover {
    background: #fff;
    color: #1a1a1a;
    border-color: #fff;
}
.colp-social-links svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; }

@media (max-width: 768px) {
    .colp-hero {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        margin: 0 0 28px;
        text-align: center;
    }
    .colp-hero-photo { width: 140px; margin: 0 auto; }
    .colp-hero-info { align-items: center; }
    .colp-hero-name { font-size: 36px; }
}

/* ============ STATS BAR ============ */
.colp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 32px 0 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-soft);
    overflow: hidden;
}
.stat-cell {
    padding: 18px 16px;
    border-right: 1px solid var(--line);
    text-align: center;
}
.stat-cell:last-child { border-right: none; }

.stat-number {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.stat-label {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

@media (max-width: 640px) {
    .colp-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============ PINNED ARTICLE ============ */
.colp-pinned {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    padding: 24px;
    background: var(--bg-soft);
    border: 1px solid var(--text-strong);
    border-radius: 6px;
    margin-bottom: 32px;
    position: relative;
}
.colp-pinned::before {
    content: "📌 Editor's pick";
    position: absolute;
    top: -10px;
    left: 18px;
    background: var(--text-strong);
    color: var(--bg);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
}
body.theme-negative .colp-pinned::before,
body.theme-low-contrast .colp-pinned::before {
    color: #1a1a1a;
}
.pinned-img {
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    background: #2a2a2a;
    text-decoration: none;
}
.pinned-img svg { width: 100%; height: 100%; display: block; }
.pinned-info { display: flex; flex-direction: column; justify-content: center; }
.pinned-meta {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.pinned-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.15;
    margin: 0 0 10px;
    letter-spacing: -0.005em;
}
.pinned-title a { color: inherit; text-decoration: none; }
.pinned-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pinned-deck {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 14px;
}
.pinned-footer {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-faint);
    margin-top: auto;
}

@media (max-width: 640px) {
    .colp-pinned { grid-template-columns: 1fr; padding: 18px; }
    .pinned-title { font-size: 20px; }
}

/* ============ TABS ============ */
.colp-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}
.colp-tabs::-webkit-scrollbar { display: none; }
.colp-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s;
}
.colp-tab:hover { color: var(--text-strong); }
.colp-tab.is-active {
    color: var(--text-strong);
    font-weight: 600;
}
.colp-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--text-strong);
}
.colp-tab .tab-count {
    color: var(--text-faint);
    font-weight: 400;
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
}

/* ============ ARTICLES GRID (profile page) ============ */
.colp-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    margin-bottom: 28px;
}
@media (max-width: 768px) {
    .colp-articles { grid-template-columns: 1fr; }
}

.colp-article-card { display: flex; flex-direction: column; }
.colp-article-img {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    background: #2a2a2a;
    margin-bottom: 12px;
    text-decoration: none;
    filter: grayscale(40%);
    transition: filter 0.4s;
}
.colp-article-img:hover { filter: grayscale(0%); }
.colp-article-img svg { width: 100%; height: 100%; display: block; }
.colp-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.colp-article-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.18;
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}
.colp-article-title a { color: inherit; text-decoration: none; }
.colp-article-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.colp-article-deck {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.colp-article-footer {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    color: var(--text-faint);
    margin-top: auto;
}

/* Empty / not-found state */
.colp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

/* ============ RIGHT SIDEBAR (profile page) ============ */
.colp-sidebar {
    background: var(--bg);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    padding: 24px 22px 32px;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d4 transparent;
    font-family: "Inter", sans-serif;
}
.colp-sidebar::-webkit-scrollbar { width: 4px; }
.colp-sidebar::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 2px; }
@media (max-width: 1024px) {
    .colp-sidebar { height: auto; border-left: none; border-top: 1px solid var(--line); }
}

.colp-side-block {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.colp-side-block:last-child { border-bottom: none; padding-bottom: 0; }

.colp-side-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--text-strong);
    letter-spacing: -0.005em;
}

.colp-bio-full {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 13px;
    color: var(--text);
    line-height: 1.55;
    margin: 0;
}
.colp-bio-full p { margin: 0 0 10px; }
.colp-bio-full p:last-child { margin-bottom: 0; }

.colp-awards {
    list-style: none;
    padding: 0;
    margin: 0;
}
.colp-awards li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.colp-awards li:last-child { border-bottom: none; }
.award-year {
    color: var(--text-faint);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.award-text { color: var(--text); line-height: 1.35; }

.colp-newsletter {
    background: var(--bg-soft);
    border-radius: 6px;
    padding: 16px;
}
.colp-newsletter-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 4px;
}
.colp-newsletter-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 10px;
}
.colp-newsletter input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    font-family: "Inter", sans-serif;
    font-size: 12px;
    color: var(--text);
    box-sizing: border-box;
    margin-bottom: 6px;
    outline: none;
}
.colp-newsletter input:focus { border-color: var(--text-strong); }
.colp-newsletter button {
    width: 100%;
    background: var(--text-strong);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    padding: 8px;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.colp-newsletter button:hover { opacity: 0.85; }

.colp-related {
    list-style: none;
    padding: 0;
    margin: 0;
}
.colp-related li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.colp-related li:last-child { border-bottom: none; }
.colp-related .col-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8a060, #5a3f1a);
}
.colp-related li:nth-child(2n) .col-avatar { background: linear-gradient(135deg, #4a6a8a, #1a2a4a); }
.colp-related li:nth-child(3n) .col-avatar { background: linear-gradient(135deg, #5a4a8a, #2a1a4a); }
.colp-related-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-strong);
}
.colp-related-name a { color: inherit; text-decoration: none; }
.colp-related-name a:hover { text-decoration: underline; }
.colp-related-beat {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ============ LISTING PAGE — MOST FOLLOWED SIDEBAR ============ */
.cols-side-block {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.cols-side-block:last-child { border-bottom: none; padding-bottom: 0; }

.cols-side-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0 0 14px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--text-strong);
}

.most-followed-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rank;
}
.most-followed-list li {
    display: grid;
    /* Compact grid: rank + photo + name/followers + button. The name
       column shrinks via min-width: 0 in .mf-info — the button column
       is `auto` so it expands to fit "✓ Following" without breaking. */
    grid-template-columns: 18px 32px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}
.most-followed-list li:last-child { border-bottom: none; }
.most-followed-list .rank {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    text-align: center;
    line-height: 1;
}
.most-followed-list .mf-photo {
    width: 32px; height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
}
.most-followed-list .mf-photo svg { width: 100%; height: 100%; display: block; }
.mf-info {
    /* Critical for grid children with long text inside ellipsis. */
    min-width: 0;
    overflow: hidden;
}
.mf-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.15;
    /* Name truncates with ellipsis if it doesn't fit — never wraps,
       never pushes the button out of the row. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mf-name a { color: inherit; text-decoration: none; }
.mf-name a:hover { text-decoration: underline; }
.mf-followers {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compact follow button used inside this list. We override the
   default `.follow-btn` styles only when it lives inside the
   most-followed sidebar — the larger card/profile variants stay
   untouched. */
.most-followed-list .follow-btn {
    /* Tight padding so "✓ FOLLOWING" fits even in a 240px-wide
       sidebar column. */
    padding: 4px 10px;
    font-size: 9px;
    letter-spacing: 0.04em;
    line-height: 1.2;
    /* `min-width: 0` on the grid track is set via `auto`, but we also
       guard against the button itself reserving more width than its
       text needs. */
    min-width: 0;
}
.most-followed-list .follow-btn[data-following="true"]::before {
    /* Drop the prefix space to save horizontal pixels. */
    content: "✓";
    margin-right: 3px;
}

.cols-sidebar-right {
    background: var(--bg);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    padding: 22px 22px 32px;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: #d4d4d4 transparent;
    font-family: "Inter", sans-serif;
}
.cols-sidebar-right::-webkit-scrollbar { width: 4px; }
.cols-sidebar-right::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 2px; }
@media (max-width: 1024px) {
    .cols-sidebar-right { height: auto; border-left: none; border-top: 1px solid var(--line); }
}

/* ============ FONT-SCALE OVERRIDES (accessibility) ============ */
.cols-title              { font-size: calc(56px * var(--font-scale, 1)) !important; }
.cols-tagline            { font-size: calc(16px * var(--font-scale, 1)) !important; }
.cols-section-title      { font-size: calc(22px * var(--font-scale, 1)) !important; }
.featured-col-name       { font-size: calc(38px * var(--font-scale, 1)) !important; }
.featured-col-bio        { font-size: calc(15px * var(--font-scale, 1)) !important; }
.col-card-name           { font-size: calc(20px * var(--font-scale, 1)) !important; }
.col-card-bio            { font-size: calc(13px * var(--font-scale, 1)) !important; }
.colp-hero-name          { font-size: calc(56px * var(--font-scale, 1)) !important; }
.colp-hero-bio           { font-size: calc(17px * var(--font-scale, 1)) !important; }
.stat-number             { font-size: calc(28px * var(--font-scale, 1)) !important; }
.pinned-title            { font-size: calc(26px * var(--font-scale, 1)) !important; }
.colp-article-title      { font-size: calc(20px * var(--font-scale, 1)) !important; }
.colp-side-title,
.cols-side-title         { font-size: calc(16px * var(--font-scale, 1)) !important; }

/* Font family (serif/sans toggle) */
body.font-serif .cols-title,            body.font-sans .cols-title,
body.font-serif .cols-tagline,          body.font-sans .cols-tagline,
body.font-serif .cols-section-title,    body.font-sans .cols-section-title,
body.font-serif .featured-col-name,     body.font-sans .featured-col-name,
body.font-serif .featured-col-bio,      body.font-sans .featured-col-bio,
body.font-serif .col-card-name,         body.font-sans .col-card-name,
body.font-serif .col-card-bio,          body.font-sans .col-card-bio,
body.font-serif .colp-hero-name,        body.font-sans .colp-hero-name,
body.font-serif .colp-hero-bio,         body.font-sans .colp-hero-bio,
body.font-serif .pinned-title,          body.font-sans .pinned-title,
body.font-serif .colp-article-title,    body.font-sans .colp-article-title,
body.font-serif .colp-bio-full,         body.font-sans .colp-bio-full,
body.font-serif .stat-number,           body.font-sans .stat-number,
body.font-serif .colp-side-title,       body.font-sans .colp-side-title,
body.font-serif .cols-side-title,       body.font-sans .cols-side-title {
    font-family: var(--font-display) !important;
}
