/* Developers section (/developers/, /developers/{slug}/) — enqueued only on
   those pages by inc/developers.php. Palette follows style.css tokens. */

.developer-hero {
    padding: 32px 0 24px;
    background: #f5f8fc;
    border-bottom: 1px solid #eaecf0;
}
.developer-hero .breadcrumbs { margin-bottom: 20px; }
.developer-hero__head { display: flex; gap: 24px; align-items: flex-start; }
.developer-hero__logo {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eaecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.developer-hero__logo img { max-width: 84%; max-height: 84%; width: auto; height: auto; object-fit: contain; }
.developer-hero__initials,
.developer-card__initials {
    font-size: 40px;
    font-weight: 700;
    color: #204266;
    line-height: 1;
}
.developer-hero__intro { min-width: 0; flex: 1 1 auto; }
.developer-hero__title { margin: 0 0 6px; font-size: 36px; line-height: 1.2; color: #101828; }
.developer-hero__legal { margin: 0 0 14px; font-size: 15px; color: #667085; }
.developer-facts {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.developer-facts__item {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.developer-facts__label { font-size: 12px; color: #667085; text-transform: uppercase; letter-spacing: 0.02em; }
.developer-facts__value { font-size: 16px; font-weight: 600; color: #101828; overflow-wrap: anywhere; }
a.developer-facts__value { color: #204266; text-decoration: underline; text-underline-offset: 2px; }

.developer-body { padding: 32px 0 8px; }
.developer-article h2 { margin-top: 28px; }
.developer-article h2:first-child { margin-top: 0; }

.developer-projects { padding: 24px 0 40px; }
.developer-projects__heading { margin: 0 0 20px; font-size: 28px; line-height: 1.25; }
.developer-projects__subheading { margin: 28px 0 14px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.developer-projects__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 13px;
    background: #eef2f7;
    color: #204266;
    font-size: 14px;
    font-weight: 600;
}
.developer-projects__grid { gap: 24px; }
.developer-project-card .card-image-wrapper { position: relative; }
.developer-project-card__image { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px 12px 0 0; background: #f2f4f7; }
.developer-project-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.developer-project-card__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #204266;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.developer-project-card__badge--resale { background: #1aa356; }
.developer-project-card .card-info { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: #667085; }

.developer-faq { padding-top: 8px; }
.developer-back { margin: 8px auto 32px; }

/* Index */
.developer-hero--archive .developer-hero__title { margin-bottom: 10px; }
.developers-intro { max-width: 760px; margin: 0; font-size: 17px; line-height: 1.55; color: #475467; }
.developers-search { margin-top: 18px; max-width: 420px; }
.developers-search__input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    background: #fff;
}
.developers-search__input:focus { outline: none; border-color: #204266; box-shadow: 0 0 0 3px rgba(32, 66, 102, 0.12); }
.developers-list-section { padding: 28px 0 40px; }
.developers-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.developer-card[hidden] { display: none; }
.developer-card__link {
    display: flex;
    gap: 14px;
    height: 100%;
    box-sizing: border-box;
    padding: 16px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.developer-card__link:hover { border-color: #204266; box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08); }
.developer-card__logo {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f5f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.developer-card__logo img { max-width: 84%; max-height: 84%; object-fit: contain; }
.developer-card__initials { font-size: 24px; }
.developer-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.developer-card__name { font-size: 17px; font-weight: 600; color: #101828; }
.developer-card__count { font-size: 14px; font-weight: 600; color: #204266; }
.developer-card__excerpt { font-size: 14px; line-height: 1.45; color: #667085; }
.developers-empty { color: #667085; }

@media (max-width: 1024px) {
    .developers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .developer-hero { padding: 20px 0 18px; }
    .developer-hero__head { gap: 14px; }
    .developer-hero__logo { flex-basis: 64px; width: 64px; height: 64px; border-radius: 12px; }
    .developer-hero__initials { font-size: 28px; }
    .developer-hero__title { font-size: 26px; }
    .developer-facts__item { padding: 6px 10px; }
    .developer-facts__value { font-size: 15px; }
    .developer-projects__heading { font-size: 22px; }
    .developers-grid { grid-template-columns: minmax(0, 1fr); }
}
