/*
 * v2 "Renkli Alanlar", wave D: /bireysel, /kurumsal, /bireysel-liste, /kurumsal-liste, /profil/{slug},
 * /demo-basvuru. Tokens only (docs/design/tasarim-sistemi.md); everything is
 * scoped under .bm-wd so no other page is affected. Domain colours come from .bm-d-* (--c / --t).
 */

/* Container: the theme's 1320px measure, same as every other page (owner decision 2026-09-27). */
.bm-wd .bm-section {
    padding: var(--bm-section-y) 0;
}
.bm-wd .bm-page-head .bm-page-title {
    font-size: 52px;
}
.bm-wd .bm-page-head .bm-chips {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.bm-wd .bm-chip .bm-icon {
    width: 16px;
    height: 16px;
    color: var(--c, var(--bm-brand));
}
.bm-wd .bm-button .bm-icon {
    width: 18px;
    height: 18px;
}

/* Landing head: actions under the lead */
.bm-wd .wd-hero {
    max-width: 760px;
}
.bm-wd .wd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Benefit block: CMS bullets left, real screenshot right */
.bm-wd .wd-benefit__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 40px 64px;
    align-items: center;
}
.bm-wd .wd-benefit__grid--text {
    grid-template-columns: minmax(0, 1fr);
}
.bm-wd .wd-benefits {
    display: grid;
    gap: 14px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}
.bm-wd .wd-benefits li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-card);
    background: #fff;
    color: var(--bm-ink);
    font-weight: 600;
    line-height: 1.4;
}
.bm-wd .wd-benefits__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--t, var(--bm-brand-tint));
    color: var(--c, var(--bm-brand));
}
.bm-wd .wd-benefits__icon .bm-icon {
    width: 22px;
    height: 22px;
}
.bm-wd .wd-benefit__media {
    width: 100%;
}

/* Map band */
.bm-wd .wd-map .bm-list-head .bm-h3 {
    margin: 0;
}
.bm-wd .wd-map .bm-list-head__count {
    margin: 0;
}

/* Partner logo cell grid (/kurumsal) */
.bm-wd .wd-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-card);
    overflow: hidden;
    background: #fff;
}
.bm-wd .wd-logo-grid li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 20px;
    border-right: 1px solid var(--bm-border);
    border-bottom: 1px solid var(--bm-border);
    margin: 0 -1px -1px 0;
}
.bm-wd .wd-logo-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.bm-wd .wd-logo-grid img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
}

/* Directory: filter aside + result cards */
.bm-wd .wd-list {
    padding-top: 48px;
}
.bm-wd .bm-filter-aside form {
    margin: 0;
}
.bm-wd .bm-filter-aside .bm-input {
    width: 100%;
}
.bm-wd .wd-filter-submit {
    margin-top: 12px;
}
.bm-wd .bm-list-head {
    min-height: 40px;
}
.bm-wd .bm-list-head__count {
    margin: 0;
}
.bm-wd .wd-chip-clear {
    text-decoration: none;
}
.bm-wd .wd-chip-clear:hover {
    border-color: var(--bm-brand);
}
.bm-wd .wd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bm-wd .wd-person,
.bm-wd .wd-org {
    gap: 16px;
}
.bm-wd .wd-person:hover,
.bm-wd .wd-org:hover {
    border-color: var(--bm-brand);
}
.bm-wd .wd-person__head,
.bm-wd .wd-org__head {
    display: flex;
    align-items: center;
    gap: 16px;
}
.bm-wd .wd-person__avatar {
    flex: none;
    width: 56px;
    height: 56px;
    border: 0;
    background: var(--bm-brand-tint);
    font-size: 18px;
}
.bm-wd .wd-person .bm-card__title,
.bm-wd .wd-org .bm-card__title {
    font-size: 19px;
    font-weight: 700;
}
.bm-wd .bm-card__title a {
    color: var(--bm-ink);
    text-decoration: none;
}
.bm-wd .bm-card__title a:hover {
    color: var(--bm-brand);
}
.bm-wd .wd-org__logo {
    flex: none;
    width: 96px;
    height: 72px;
    margin: 0;
    padding: 8px;
}
.bm-wd .wd-org__logo img {
    max-height: 56px;
}
.bm-wd .wd-meta-pin {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bm-wd .wd-meta-pin .bm-icon {
    width: 16px;
    height: 16px;
}
.bm-wd .wd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bm-wd .wd-tags .bm-chip {
    font-size: 13px;
    padding: 5px 12px;
}
.bm-wd .wd-chip-plain {
    background: var(--bm-soft);
}
.bm-wd .wd-contact {
    margin: 0;
}
.bm-wd .wd-contact .bm-icon {
    width: 16px;
    height: 16px;
    align-self: center;
    color: var(--bm-muted);
}
.bm-wd .wd-person__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--bm-border);
    font-size: 15px;
}
.bm-wd .wd-person__foot .bm-text-link {
    font-weight: 600;
    text-decoration: none;
}
.bm-wd .wd-social {
    color: var(--bm-muted);
    font-weight: 500;
    text-decoration: none;
}
.bm-wd .wd-social:hover {
    color: var(--bm-brand);
}

/* Profile strip */
.bm-wd .wd-profile {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: none;
}
.bm-wd .wd-profile__avatar {
    flex: none;
    width: 112px;
    height: 112px;
    background: #fff;
    font-size: 34px;
}
.bm-wd .wd-profile .bm-page-title {
    font-size: 44px;
}
.bm-wd .wd-profile__title {
    margin-top: 8px;
}
.bm-wd .wd-profile__chips {
    margin: 18px 0 0 !important;
}
.bm-wd .wd-profile__chips .bm-chip--white {
    background: #fff;
    border-color: var(--bm-border);
}
.bm-wd .bm-detail .bm-block:first-of-type {
    padding-top: 24px;
}
/* no tab bar above it: the first heading lines up with the top of the aside */
.bm-wd .wd-detail-main > .bm-block:first-child {
    padding-top: 0;
}
.bm-wd .wd-prose {
    color: var(--bm-text);
}
.bm-wd .wd-prose p {
    margin: 0 0 14px;
}
.bm-wd .wd-certs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bm-wd .wd-cert {
    display: block;
    overflow: hidden;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-card);
    color: var(--bm-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.bm-wd .wd-cert:hover {
    border-color: var(--bm-brand);
}
.bm-wd .wd-cert img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--bm-surface);
}
.bm-wd .wd-cert span {
    display: block;
    padding: 10px 12px;
}
.bm-wd .wd-profile-empty {
    margin: 24px 0 0;
    max-width: none;
}
.bm-wd .wd-contact-card__top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bm-wd .wd-contact-card__top .bm-avatar {
    flex: none;
    width: 48px;
    height: 48px;
    border: 0;
    background: var(--bm-brand-tint);
}
.bm-wd .wd-contact-card__top strong {
    display: block;
    color: var(--bm-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.bm-wd .wd-incl {
    margin: 0;
    padding: 0;
    border-top: 0;
}
.bm-wd .wd-aside-label {
    margin: 22px 0 10px;
    color: var(--bm-muted);
    font-size: 14px;
    font-weight: 600;
}
.bm-wd .wd-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bm-wd .wd-socials .bm-button {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 15px;
}
.bm-wd .wd-aside-back {
    margin-top: 16px;
    font-size: 15px;
    text-decoration: none;
}

/* Demo request: CMS intro left, form right */
.bm-wd .wd-demo-section {
    padding-top: 56px;
}
.bm-wd .wd-demo {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px 56px;
    align-items: start;
}
.bm-wd .wd-demo__intro .bm-h2 {
    font-size: 30px;
}
.bm-wd .wd-demo__items {
    display: grid;
    gap: 18px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.bm-wd .wd-demo__items li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.bm-wd .wd-demo__items strong {
    display: block;
    color: var(--bm-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}
.bm-wd .wd-demo__items li > span:last-child {
    color: var(--bm-text);
    font-size: 16px;
    line-height: 1.5;
}
.bm-wd .wd-demo__note {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 28px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bm-soft);
    color: var(--bm-text);
    font-size: 15px;
}
.bm-wd .wd-demo__note .bm-dot {
    position: relative;
    top: -1px;
}
.bm-wd .wd-demo__contact {
    margin-top: 24px;
    height: auto;
}
.bm-wd .wd-demo__form {
    position: sticky;
    top: calc(var(--bm-header-h) + 24px);
}

/* Two columns: the "Toplam N kurum" row sits above the cards only, so the filter box starts level with
   the first card (as on /yazdirilabilir-kaynaklar). The results wrapper hands its children to the grid. */
@media (min-width: 992px) {
    .bm-wd .wd-list .bm-listing {
        row-gap: 0;
    }
    .bm-wd .wd-list .wd-results {
        display: contents;
    }
    .bm-wd .wd-list .wd-results > * {
        grid-column: 2;
    }
    .bm-wd .wd-list .bm-filter-aside {
        grid-column: 1;
        grid-row: 2 / span 2;
    }
}
@media (max-width: 1199.98px) {
    .bm-wd .wd-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 991.98px) {
    .bm-wd .bm-page-head .bm-page-title,
    .bm-wd .wd-profile .bm-page-title {
        font-size: 34px;
    }
    .bm-wd .wd-benefit__grid,
    .bm-wd .wd-demo {
        grid-template-columns: minmax(0, 1fr);
    }
    .bm-wd .wd-demo__form {
        position: static;
    }
    .bm-wd .wd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bm-wd .wd-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .bm-wd .wd-list {
        padding-top: 32px;
    }
}
@media (max-width: 639.98px) {
    .bm-wd {
        font-size: 16px;
    }
    .bm-wd .bm-page-head .bm-page-title,
    .bm-wd .wd-profile .bm-page-title {
        font-size: 30px;
    }
    .bm-wd .wd-actions .bm-button {
        flex: 1 1 100%;
    }
    .bm-wd .wd-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .bm-wd .wd-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bm-wd .wd-logo-grid li {
        min-height: 96px;
        padding: 14px;
    }
    .bm-wd .wd-certs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bm-wd .wd-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .bm-wd .wd-profile__avatar {
        width: 88px;
        height: 88px;
        font-size: 28px;
    }
    .bm-wd .wd-demo__intro .bm-h2 {
        font-size: 26px;
    }
    .bm-wd .bm-filter-aside {
        padding: 20px;
    }
}

/* Global .bm-btn inside .bm-inner: keep its own colours over `.bm-inner a`. */
.bm-wd .bm-btn--primary,
.bm-wd .bm-btn--primary:hover {
    color: #fff;
}
.bm-wd .bm-btn--outline {
    color: var(--bm-ink);
}
.bm-wd .bm-btn--outline:hover,
.bm-wd .bm-btn--outline:focus-visible {
    color: #fff;
}

/* Chips on the tint page head sit on white so the tint does not disappear into the band. */
.bm-wd .bm-page-head .bm-chip {
    background: #fff;
    border-color: var(--bm-border);
}
.bm-wd .bm-section-head--row {
    max-width: none;
}

@media (max-width: 991.98px) {
    /* The page lead already explains the demo; on one column the form comes first, the intro after it. */
    .bm-wd .wd-demo__form {
        order: -1;
    }
}
