/* CelebWikiHub Profiles — clean magazine styling (sits on top of
   GeneratePress). Light, photo-first, tabloid/magazine feel. All
   components carry their own colours so they work on any theme
   background. No frameworks, no webfonts. */

.cwh-single,
.cwh-archive {
    --cwh-accent: #b91c1c;
    --cwh-accent2: #1d4ed8;
    --cwh-panel: #ffffff;
    --cwh-soft: #f8fafc;
    --cwh-border: #e2e8f0;
    --cwh-text: #0f172a;
    --cwh-muted: #64748b;
    max-width: 1024px;
    margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.cwh-breadcrumb {
    font-size: 14px;
    color: #64748b;
    margin: 6px 0 10px;
}
.cwh-breadcrumb a { color: var(--cwh-accent2); text-decoration: none; }
.cwh-breadcrumb a:hover { text-decoration: underline; }
.cwh-crumb-sep { margin: 0 6px; color: #94a3b8; }
.cwh-crumb-current { color: #475569; }

.cwh-title {
    margin: 0 0 14px;
    line-height: 1.2;
}

/* ---------- Profile header + quick facts ---------- */
.cwh-profile-head {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.cwh-profile-photo {
    flex: 0 0 280px;
    max-width: 280px;
}
.cwh-profile-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .15);
}
.cwh-profile-intro { flex: 1 1 320px; min-width: 280px; }
.cwh-profession {
    font-size: 18px;
    color: var(--cwh-muted);
    margin: 0 0 14px;
}

.cwh-facts {
    width: 100%;
    border-collapse: collapse;
    background: var(--cwh-panel);
    border: 1px solid var(--cwh-border);
    border-radius: 10px;
    overflow: hidden;
    font-size: 15px;
}
.cwh-facts th,
.cwh-facts td {
    text-align: left;
    padding: 9px 14px;
    border-bottom: 1px solid var(--cwh-border);
    vertical-align: top;
}
.cwh-facts tr:last-child th,
.cwh-facts tr:last-child td { border-bottom: 0; }
.cwh-facts th {
    width: 38%;
    background: var(--cwh-soft);
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Social links ---------- */
.cwh-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.cwh-social-link {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--cwh-soft);
    border: 1px solid var(--cwh-border);
    color: var(--cwh-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.cwh-social-link:hover { border-color: var(--cwh-accent); color: var(--cwh-accent); }

/* ---------- Content boxes ---------- */
.cwh-box {
    background: var(--cwh-panel);
    border: 1px solid var(--cwh-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 20px;
}
.cwh-box h2 { margin-top: 0; }
.cwh-related { margin: 26px 0 8px; }

/* ---------- FAQs ---------- */
.cwh-faq {
    border-top: 1px solid var(--cwh-border);
    padding: 12px 0 4px;
}
.cwh-faq:first-child { border-top: 0; padding-top: 0; }
.cwh-faq h3 { margin: 0 0 6px; font-size: 17px; }
.cwh-faq p { margin: 0 0 10px; color: #334155; }

/* ---------- Cards / grids ---------- */
.cwh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}
.cwh-card {
    display: block;
    background: var(--cwh-panel);
    border: 1px solid var(--cwh-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--cwh-text);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cwh-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.cwh-card-photo { display: block; background: #e2e8f0; }
.cwh-card-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.cwh-card-body { display: block; padding: 10px 12px 12px; }
.cwh-card-name {
    display: block;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
}
.cwh-card-line {
    display: block;
    font-size: 13px;
    color: var(--cwh-muted);
    margin-top: 3px;
}
.cwh-card-facts { color: var(--cwh-accent); font-weight: 600; }

/* ---------- Category tiles ---------- */
.cwh-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}
.cwh-cat-tile {
    display: block;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #f8fafc;
    text-decoration: none;
}
.cwh-cat-tile:hover { background: linear-gradient(135deg, #7f1d1d, #b91c1c); }
.cwh-cat-name { display: block; font-size: 18px; font-weight: 700; }
.cwh-cat-count { display: block; font-size: 13px; opacity: .8; margin-top: 4px; }

/* ---------- Search ---------- */
.cwh-search {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto 20px;
}
.cwh-search input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--cwh-border);
    border-radius: 999px;
    font-size: 16px;
}
.cwh-search button {
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--cwh-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- A–Z index ---------- */
.cwh-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
}
.cwh-az-nav a {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    padding: 6px 8px;
    border: 1px solid var(--cwh-border);
    border-radius: 8px;
    background: var(--cwh-soft);
    color: var(--cwh-text);
    font-weight: 700;
    text-decoration: none;
}
.cwh-az-nav a:hover { background: var(--cwh-accent); color: #fff; }
.cwh-az-group h2 {
    border-bottom: 2px solid var(--cwh-accent);
    padding-bottom: 4px;
}
.cwh-az-list { list-style: none; margin: 0 0 18px; padding: 0; }
.cwh-az-list li { padding: 5px 0; border-bottom: 1px solid var(--cwh-border); }
.cwh-az-prof { color: var(--cwh-muted); font-size: 14px; }

/* ---------- Sidebar widget ---------- */
.cwh-widget-list { list-style: none; margin: 0; padding: 0; }
.cwh-widget-list li { margin: 0 0 10px; }
.cwh-widget-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
}
.cwh-widget-list img {
    width: 48px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 48px;
}

.cwh-empty { color: var(--cwh-muted); }
.cwh-pagination { margin: 18px 0; text-align: center; }
.cwh-archive-intro { margin-bottom: 16px; color: #334155; }

@media (max-width: 640px) {
    .cwh-profile-photo { flex-basis: 100%; max-width: 100%; }
    .cwh-profile-photo img { aspect-ratio: 16 / 10; }
    .cwh-facts th { white-space: normal; }
}
