.writers-page,
.writers-page * {
    box-sizing: border-box;
}

.writers-page {
    --wr-primary: var(--ahbab-red);
    --wr-dark: var(--ahbab-red-dark);
    --wr-gold: var(--ahbab-gold);
    --wr-yellow: var(--ahbab-yellow);
    --wr-bg: var(--ahbab-bg);
    --wr-panel: var(--ahbab-panel);
    --wr-text: var(--ahbab-text);
    --wr-muted: var(--ahbab-muted);
    --wr-border: rgba(255, 201, 74, .24);
    width: 100%;
    max-width: 100%;
    color: var(--wr-text);
    overflow-x: clip;
}

.writers-shell {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.writers-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 28px;
    align-items: center;
    min-height: 320px;
    padding: clamp(28px, 5vw, 56px);
    overflow: hidden;
    border: 1px solid var(--wr-border);
    border-radius: 34px;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 201, 74, .18), transparent 32%),
        radial-gradient(circle at 96% 2%, rgba(181, 8, 18, .46), transparent 38%),
        linear-gradient(135deg, var(--wr-bg), var(--wr-dark) 52%, var(--wr-bg));
    box-shadow: 0 26px 70px rgba(0, 0, 0, .34);
}

.writers-hero::after {
    position: absolute;
    inset-inline-start: -12%;
    bottom: -48%;
    width: 76%;
    height: 80%;
    background: linear-gradient(90deg, transparent, rgba(255, 201, 74, .16), transparent);
    content: "";
    pointer-events: none;
    transform: rotate(-8deg);
}

.writers-hero-main,
.writers-hero-logo {
    position: relative;
    z-index: 1;
}

.writers-eyebrow {
    display: block;
    color: var(--wr-gold);
    font-weight: 900;
}

.writers-hero h1 {
    margin: 10px 0 0;
    color: var(--wr-text);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 950;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.writers-hero-logo {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 201, 74, .20);
    border-radius: 36px;
    background: rgba(0, 0, 0, .22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.writers-hero-logo img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .38));
}

.writers-counts,
.writers-statline,
.writers-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.writers-counts {
    margin-top: 22px;
}

.writers-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 201, 74, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: var(--wr-text);
    font-weight: 900;
}

.writers-toolbar {
    padding: 18px;
    border: 1px solid var(--wr-border);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(36, 5, 8, .90), rgba(14, 2, 4, .92));
}

.writers-toolbar form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 210px 120px auto;
    gap: 12px;
    align-items: end;
    min-width: 0;
}

.writers-field {
    min-width: 0;
}

.writers-label {
    display: block;
    margin-bottom: 8px;
    color: var(--wr-muted);
    font-weight: 850;
}

.writers-control {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 201, 74, .22);
    border-radius: 16px;
    outline: none;
    background: rgba(0, 0, 0, .24);
    color: var(--wr-text);
    font-size: 16px;
}

.writers-control::placeholder {
    color: rgba(255, 247, 221, .48);
}

.writers-control:focus {
    border-color: rgba(255, 201, 74, .72);
    box-shadow: 0 0 0 3px rgba(255, 201, 74, .12);
}

select.writers-control option {
    background: var(--wr-bg);
    color: var(--wr-text);
}

.writers-actions {
    display: flex;
    gap: 8px;
}

.writers-btn,
.writers-btn-outline,
.writers-link,
.writers-page-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 950;
    text-decoration: none;
}

.writers-btn,
.writers-btn-outline {
    min-height: 48px;
    padding: 11px 18px;
    white-space: nowrap;
}

.writers-btn {
    border: 0;
    background: linear-gradient(135deg, var(--wr-yellow), var(--wr-gold));
    color: var(--wr-bg);
    cursor: pointer;
}

.writers-btn-outline {
    border: 1px solid rgba(255, 201, 74, .24);
    background: rgba(255, 255, 255, .055);
    color: var(--wr-text);
}

.writers-featured {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    min-width: 0;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--wr-border);
    border-radius: 30px;
    background: linear-gradient(145deg, var(--wr-panel), var(--wr-bg));
    box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.writers-avatar-link {
    display: block;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
}

.writers-avatar-link.large {
    width: 210px;
    height: 210px;
    border-radius: 36px;
}

.writers-avatar-link.small {
    width: 82px;
    height: 82px;
    border-radius: 23px;
}

.writers-avatar-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writers-featured h2,
.writers-card h3 {
    margin: 0;
    font-weight: 950;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.writers-featured h2 {
    margin-top: 8px;
    font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.writers-featured h2 a,
.writers-card h3 a {
    color: var(--wr-text);
    text-decoration: none;
}

.writers-title {
    margin-top: 7px;
    color: var(--wr-gold);
    font-weight: 900;
}

.writers-bio {
    margin: 12px 0 18px;
    color: var(--wr-muted);
    line-height: 1.9;
}

.writers-statline {
    margin-bottom: 18px;
    color: var(--wr-muted);
    font-size: .92rem;
}

.writers-latest-article {
    display: grid;
    gap: 6px;
    margin: 14px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 201, 74, .20);
    border-radius: 14px;
    background: rgba(0, 0, 0, .20);
}

.writers-latest-article span {
    color: var(--wr-muted);
    font-size: .8rem;
    font-weight: 850;
}

.writers-latest-article a {
    color: var(--wr-gold);
    font-weight: 950;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.writers-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.writers-section-head h2 {
    margin: 0;
    color: var(--wr-text);
    font-weight: 950;
}

.writers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    min-width: 0;
}

.writers-card {
    height: 100%;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(255, 201, 74, .18);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--wr-panel), var(--wr-bg));
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.writers-card:hover {
    border-color: rgba(255, 201, 74, .48);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .25);
    transform: translateY(-4px);
}

.writers-card-head {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.writers-card .writers-bio {
    min-height: 54px;
    margin: 0 0 16px;
}

.writers-link {
    min-height: 42px;
    padding: 9px 14px;
    background: var(--wr-gold);
    color: var(--wr-bg);
}

.writers-empty {
    padding: 34px;
    border: 1px dashed rgba(255, 201, 74, .34);
    border-radius: 28px;
    background: rgba(255, 255, 255, .04);
    color: var(--wr-muted);
    text-align: center;
}

.writers-empty h2 {
    margin: 0;
    color: var(--wr-text);
    font-weight: 950;
}

.writers-empty .writers-btn-outline {
    margin-top: 16px;
}

.writers-pagination {
    justify-content: center;
}

.writers-page-chip {
    min-width: 44px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--wr-border);
    background: rgba(255, 255, 255, .055);
    color: var(--wr-text);
}

.writers-page-chip.active,
.writers-page-chip:hover {
    border-color: transparent;
    background: var(--wr-gold);
    color: var(--wr-bg);
}

.writers-page-chip.wide {
    padding-inline: 17px;
}

.writers-page :where(a, button, input, select):focus-visible {
    outline: 3px solid var(--wr-gold);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .writers-toolbar form {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 767px) {
    .writers-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 24px 18px;
        border-radius: 24px;
    }

    .writers-hero-logo {
        justify-self: start;
        width: 128px;
        height: 128px;
        border-radius: 28px;
    }

    .writers-hero-logo img {
        width: 92px;
        height: 92px;
    }

    .writers-counts {
        display: grid;
        grid-template-columns: 1fr;
    }

    .writers-chip {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .writers-toolbar {
        padding: 14px;
        border-radius: 22px;
    }

    .writers-toolbar form,
    .writers-grid {
        grid-template-columns: 1fr;
    }

    .writers-featured {
        grid-template-columns: 1fr;
        align-items: start;
        border-radius: 24px;
    }

    .writers-avatar-link.large {
        width: min(100%, 360px);
        height: 260px;
    }

    .writers-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .writers-card {
        border-radius: 24px;
    }

    .writers-card .writers-bio {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .writers-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .writers-btn,
    .writers-btn-outline {
        width: 100%;
    }

    .writers-card-head {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .writers-avatar-link.small {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .writers-page-chip.wide {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .writers-card {
        transition: none;
    }
}
