/* ==========================================================================
   Laser Polyclinic: doctors list (archive-doctor.php) and profile (single-doctor.php)
   Shared type and blocks (.lp-page, .lp-card, .lp-section…) and the page
   header (.lp-page-head, .lp-crumbs, .lp-h1) live in site.css.
   ========================================================================== */

.lp-page h1,
.lp-page h2,
.lp-page h3,
.lp-page p,
.lp-page ol,
.lp-page dl,
.lp-page dd {
    margin: 0;
}

/* ==========================================================================
   Doctors list
   ========================================================================== */

/* Grid */
.lp-doctors-list {
    padding-top: 48px;
}

.lp-doctors-list__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lp-doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

/* Phones */
@media (max-width: 639px) {
    .lp-doctors-list {
        padding-block: 20px 48px;
    }

    .lp-doctors-list__inner {
        gap: 12px;
    }

    .lp-doctors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   Doctor profile
   ========================================================================== */

.lp-doc-hero {
    background: var(--lp-surface-cream);
    padding-block: 32px clamp(48px, 6vw, 80px);
}

.lp-doc-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.lp-doc-hero__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px 64px;
}

.lp-doc-hero__photo {
    flex: 0 1 420px;
    min-width: 0;
    height: 520px;
    border-radius: var(--lp-radius-xl);
    border: 1px solid var(--lp-line);
    background: var(--lp-gold-200);
    overflow: hidden;
}

.lp-doc-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.lp-doc-hero__photo .lp-icon {
    stroke-width: 1.1;
}

.lp-doc-hero__copy {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.lp-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: var(--lp-radius-pill);
    border: 1px solid var(--lp-line);
    background: var(--lp-surface);
    color: var(--lp-gold-700);
    font-size: 14px;
    line-height: 24px;
    font-weight: 600;
}

.lp-doc-badge:has(.lp-doc-badge__disc) {
    padding-inline-start: 6px;
}

.lp-doc-badge__disc {
    width: 26px;
    height: 26px;
}

.lp-doc-badge__disc img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.lp-doc-hero__spec {
    font-size: 20px;
    line-height: 34px;
    color: var(--lp-ink-muted);
}

.lp-doc-hero .lp-actions {
    padding-top: 0;
}

/* About + appointment info */
.lp-doc-about__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 56px;
}

.lp-doc-about__bio {
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Commitments */
.lp-commits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.lp-commit {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.lp-commit__disc {
    width: 56px;
    height: 56px;
    color: var(--lp-gold-400);
}

.lp-commit__disc img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* Other doctors */
.lp-others {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.lp-other,
.lp-other:visited {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    color: var(--lp-ink);
    text-decoration: none;
}

.lp-other:hover {
    color: var(--lp-ink);
}

.lp-other__photo {
    width: 88px;
    height: 88px;
    border-radius: var(--lp-radius-pill);
    background: var(--lp-gold-200);
    color: var(--lp-gold-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.lp-other__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.lp-other__photo .lp-icon {
    stroke-width: 1.3;
}

.lp-other__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex-grow: 1;
}

.lp-other__name {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}

.lp-other__spec {
    font-size: 14px;
    line-height: 24px;
    color: var(--lp-ink-muted);
}

.lp-other__more {
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
    color: var(--lp-gold-700);
}

@media (max-width: 767px) {
    .lp-doc-hero {
        padding-block: 16px 32px;
    }

    .lp-doc-hero__inner {
        gap: 16px;
    }

    .lp-doc-hero__row {
        gap: 16px;
    }

    .lp-doc-hero__photo {
        flex-basis: 100%;
        height: 380px;
        border-radius: var(--lp-radius-lg);
    }

    .lp-doc-hero__copy {
        flex-basis: 100%;
        gap: 8px;
    }

    .lp-crumbs ol {
        font-size: 13px;
        line-height: 22px;
    }

    .lp-page .lp-doc-hero .lp-h1 {
        font-size: 32px;
        line-height: 48px;
    }

    .lp-doc-badge {
        font-size: 13px;
        line-height: 22px;
    }

    .lp-doc-badge__disc {
        width: 24px;
        height: 24px;
    }

    .lp-doc-hero__spec {
        font-size: 17px;
        line-height: 30px;
    }

    .lp-doc-hero .lp-actions {
        align-self: stretch;
        flex-direction: column;
        gap: 10px;
        padding-top: 8px;
    }

    .lp-doc-hero .lp-actions .lp-btn {
        height: 48px;
    }

    .lp-doc-about {
        padding-block: 40px;
    }

    .lp-doc-about__inner {
        gap: 24px;
    }

    .lp-doc-about__bio {
        gap: 16px;
    }

    .lp-doctors-page .lp-section--cream {
        padding-block: 40px;
    }

    .lp-commits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .lp-commit {
        padding: 16px;
        gap: 8px;
        box-shadow: none;
    }

    .lp-commit__disc {
        width: 44px;
        height: 44px;
    }

    .lp-commit__disc .lp-icon,
    .lp-commit__disc img {
        width: 22px;
        height: 22px;
    }

    .lp-commit .lp-h3 {
        font-size: 17px;
        line-height: 28px;
    }

    .lp-commit .lp-muted {
        font-size: 14px;
        line-height: 24px;
    }

    /* Other doctors: a swipe row of small cards. */
    .lp-doc-others {
        padding-block: 40px 48px;
    }

    .lp-doc-others .lp-stack {
        gap: 16px;
    }

    .lp-doc-others .lp-section-head--split {
        flex-wrap: nowrap;
        align-items: center;
    }

    .lp-doc-others .lp-h2 {
        font-size: 22px;
        line-height: 34px;
    }

    .lp-doc-others .lp-link {
        flex-shrink: 0;
    }

    .lp-others {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        margin-inline: calc(-1 * var(--lp-gutter));
        padding: 4px var(--lp-gutter) 12px;
        scroll-padding-inline: var(--lp-gutter);
    }

    .lp-others::-webkit-scrollbar {
        display: none;
    }

    .lp-other {
        flex: 0 0 200px;
        scroll-snap-align: start;
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 20px 14px;
        box-sizing: border-box;
    }

    .lp-other__photo {
        width: 80px;
        height: 80px;
    }

    .lp-other__text {
        align-items: center;
    }

    .lp-other__name {
        font-size: 17px;
        line-height: 26px;
    }

    .lp-other__spec {
        font-size: 13px;
        line-height: 22px;
    }

    .lp-other__more {
        display: none;
    }
}
