@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Alata&display=swap');

.ytm-therapist-page {
    --ytm-cream: #f7f0e8;
    --ytm-plum: #4d1960;
    --ytm-plum-dark: #341043;
    --ytm-plum-soft: #7b4a93;
    --ytm-ink: #23191f;
    --ytm-line: rgba(77, 25, 96, 0.12);
    --ytm-surface: rgba(255, 252, 249, 0.92);
    --ytm-surface-strong: rgba(255, 255, 255, 0.96);
    --ytm-shadow: 0 28px 72px rgba(61, 30, 76, 0.12);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ytm-ink);
    background:
        radial-gradient(circle at top left, rgba(240, 212, 226, 0.92), transparent 34%),
        radial-gradient(circle at top right, rgba(214, 231, 223, 0.78), transparent 30%),
        linear-gradient(180deg, #fdf8f2 0%, #f4ebe3 100%);
    padding: 32px 24px 84px;
}

.ytm-therapist-page *,
.ytm-therapist-page *::before,
.ytm-therapist-page *::after {
    box-sizing: border-box;
}

.ytm-therapist-wrap {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.ytm-therapist-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
    gap: 30px 34px;
    padding: 34px;
    border-radius: 34px;
    border: 1px solid var(--ytm-line);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 38%),
        linear-gradient(145deg, rgba(255, 249, 245, 0.98), rgba(250, 243, 237, 0.96));
    box-shadow: var(--ytm-shadow);
}

.ytm-therapist-hero::before,
.ytm-therapist-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ytm-therapist-hero::before {
    top: -120px;
    right: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(77, 25, 96, 0.08), rgba(77, 25, 96, 0));
}

.ytm-therapist-hero::after {
    bottom: -120px;
    left: -70px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(216, 234, 223, 0.8), rgba(216, 234, 223, 0));
}

.ytm-therapist-photo-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    align-content: start;
}

.ytm-therapist-photo-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5.15;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(77, 25, 96, 0.08), rgba(255, 255, 255, 0.94));
    box-shadow: 0 20px 40px rgba(77, 25, 96, 0.16);
}

.ytm-therapist-photo-frame img,
.ytm-therapist-photo-fallback {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ytm-therapist-photo-fallback {
    display: grid;
    place-items: center;
    color: var(--ytm-plum);
    font-family: "Alata", "Inter", sans-serif;
    font-size: clamp(42px, 7vw, 70px);
    background:
        linear-gradient(160deg, rgba(242, 219, 229, 0.96), rgba(216, 234, 223, 0.92));
}

.ytm-therapist-main {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    align-content: start;
    padding-top: 4px;
}

.ytm-therapist-kicker,
.ytm-therapist-hero-cta-eyebrow,
.ytm-therapist-final-cta-eyebrow,
.ytm-therapist-need-label,
.ytm-therapist-story-item span {
    font-family: "Alata", "Inter", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ytm-therapist-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(77, 25, 96, 0.08);
    color: var(--ytm-plum);
    font-size: 11px;
    font-weight: 400;
}

.ytm-therapist-name {
    margin: 0;
    color: var(--ytm-plum);
    font-family: "Alata", "Inter", sans-serif;
    font-size: clamp(40px, 5.8vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.ytm-therapist-role {
    margin: -2px 0 0;
    color: rgba(34, 24, 31, 0.74);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.4;
    font-weight: 500;
}

.ytm-therapist-about-title,
.ytm-therapist-story-card h2,
.ytm-therapist-story-item h3,
.ytm-therapist-final-cta h2 {
    font-family: "Alata", "Inter", sans-serif;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.ytm-therapist-about-title {
    margin: 6px 0 0;
    color: var(--ytm-plum);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.02;
}

.ytm-therapist-hero-bio,
.ytm-therapist-story-lead,
.ytm-therapist-need-text,
.ytm-therapist-story-item p {
    line-height: 1.75;
    font-size: 15px;
}

.ytm-therapist-hero-bio {
    margin-top: 2px;
    max-width: 760px;
    color: rgba(34, 24, 31, 0.84);
}

.ytm-therapist-hero-bio p {
    margin: 0 0 1em;
}

.ytm-therapist-hero-bio p:last-child {
    margin-bottom: 0;
}

.ytm-therapist-hero-cta,
.ytm-therapist-compatibility-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 6px;
    padding: 22px 24px;
    border-radius: 26px;
}

.ytm-therapist-hero-cta--match {
    background: linear-gradient(145deg, rgba(77, 25, 96, 0.08), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(77, 25, 96, 0.12);
    box-shadow: 0 16px 30px rgba(77, 25, 96, 0.08);
}

.ytm-therapist-compatibility-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(77, 25, 96, 0.14);
    box-shadow: 0 16px 30px rgba(77, 25, 96, 0.08);
}

.ytm-therapist-hero-cta-copy,
.ytm-therapist-compatibility-content {
    display: grid;
    gap: 6px;
}

.ytm-therapist-hero-cta-eyebrow,
.ytm-therapist-final-cta-eyebrow {
    color: var(--ytm-plum);
    font-size: 11px;
    font-weight: 400;
}

.ytm-therapist-hero-cta-text,
.ytm-therapist-compatibility-content p {
    margin: 0;
    color: rgba(34, 24, 31, 0.78);
    font-size: 15px;
    line-height: 1.6;
}

.ytm-therapist-compatibility-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(77, 25, 96, 0.08);
    color: var(--ytm-plum);
    font-size: 24px;
    line-height: 1;
}

.ytm-therapist-compatibility-content h3 {
    margin: 0;
    color: var(--ytm-plum);
    font-family: "Alata", "Inter", sans-serif;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 400;
}

.ytm-therapist-button,
.ytm-therapist-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: "Alata", "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ytm-therapist-button {
    background: var(--ytm-plum);
    color: #fff;
    box-shadow: 0 16px 30px rgba(77, 25, 96, 0.2);
}

.ytm-therapist-button-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ytm-plum);
    border: 1px solid var(--ytm-line);
}

.ytm-therapist-button:hover,
.ytm-therapist-button-secondary:hover {
    transform: translateY(-2px);
}

.ytm-therapist-content {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.ytm-therapist-grid {
    display: grid;
    gap: 20px;
}

.ytm-therapist-story-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 30px;
    background: var(--ytm-surface);
    border: 1px solid rgba(77, 25, 96, 0.08);
    box-shadow: 0 18px 45px rgba(77, 25, 96, 0.08);
}

.ytm-therapist-story-card h2 {
    margin: 0;
    color: var(--ytm-plum);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
}

.ytm-therapist-story-card--connection {
    background:
        linear-gradient(180deg, rgba(255, 252, 249, 0.93), rgba(248, 240, 234, 0.96));
}

.ytm-therapist-connection-art {
    position: absolute;
    inset: -8% -4% -10%;
    background-image: url('../images/ytm-connection-arms.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: min(1120px, 126%) auto;
    opacity: 0.22;
    pointer-events: none;
}

.ytm-therapist-story-copy {
    position: relative;
    z-index: 1;
}

.ytm-therapist-story-lead {
    margin: 12px 0 0;
    max-width: 78ch;
    color: rgba(34, 24, 31, 0.72);
}

.ytm-therapist-need-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.ytm-therapist-need {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(77, 25, 96, 0.08);
    background: linear-gradient(180deg, rgba(249, 244, 255, 0.96), rgba(244, 236, 248, 0.9));
    box-shadow: 0 10px 24px rgba(77, 25, 96, 0.05);
}

.ytm-therapist-need:nth-child(3n + 2) {
    background: linear-gradient(180deg, rgba(255, 248, 237, 0.96), rgba(248, 240, 231, 0.9));
}

.ytm-therapist-need:nth-child(3n) {
    background: linear-gradient(180deg, rgba(252, 239, 243, 0.96), rgba(247, 232, 238, 0.9));
}

.ytm-therapist-need summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ytm-therapist-need summary::-webkit-details-marker {
    display: none;
}

.ytm-therapist-need summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-left: auto;
    border-radius: 999px;
    background: rgba(77, 25, 96, 0.08);
    color: var(--ytm-plum);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    order: 2;
}

.ytm-therapist-need[open] summary::after {
    content: "âˆ’";
}

.ytm-therapist-need-label {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ytm-plum);
    font-family: "Alata", "Inter", sans-serif;
    font-size: clamp(17px, 1.5vw, 18px);
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.02em;
    order: 1;
}

.ytm-therapist-need-title {
    display: none;
    flex: 0 0 100%;
    min-width: 0;
    order: 3;
    margin: 2px 0 0;
    color: var(--ytm-ink);
    font-family: "Alata", "Inter", sans-serif;
    font-size: clamp(18px, 1.8vw, 20px);
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.ytm-therapist-need-text {
    display: none;
    margin: 0;
    padding: 0 18px 18px;
    color: rgba(34, 24, 31, 0.82);
    font-size: 14px;
    line-height: 1.55;
}

.ytm-therapist-need[open] summary {
    align-items: center;
}

.ytm-therapist-need[open] .ytm-therapist-need-title {
    display: block;
}

.ytm-therapist-need[open] .ytm-therapist-need-text {
    display: block;
}

.ytm-therapist-story-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.ytm-therapist-story-item {
    padding: 18px;
    border-radius: 24px;
    background: var(--ytm-surface-strong);
    border: 1px solid rgba(77, 25, 96, 0.08);
    box-shadow: 0 12px 26px rgba(77, 25, 96, 0.05);
}

.ytm-therapist-story-item span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(77, 25, 96, 0.08);
    color: var(--ytm-plum);
    font-size: 11px;
    font-weight: 400;
}

.ytm-therapist-story-item h3 {
    margin: 0;
    color: var(--ytm-plum);
    font-size: 22px;
    line-height: 1.1;
}

.ytm-therapist-story-item p {
    margin: 10px 0 0;
    color: rgba(34, 24, 31, 0.82);
}

.ytm-therapist-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 30px;
    border-radius: 30px;
}

.ytm-therapist-final-cta--match {
    background: linear-gradient(135deg, #5e1a73 0%, #7c3aa0 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(77, 25, 96, 0.18);
}

.ytm-therapist-final-cta--compatibility {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 236, 248, 0.92));
    border: 1px solid rgba(77, 25, 96, 0.12);
    box-shadow: 0 16px 34px rgba(77, 25, 96, 0.08);
}

.ytm-therapist-final-cta-copy {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.ytm-therapist-final-cta h2 {
    margin: 0;
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.05;
}

.ytm-therapist-final-cta--match .ytm-therapist-final-cta-eyebrow,
.ytm-therapist-final-cta--match h2 {
    color: #fff;
}

.ytm-therapist-final-cta--compatibility .ytm-therapist-final-cta-eyebrow,
.ytm-therapist-final-cta--compatibility h2 {
    color: var(--ytm-plum);
}

.ytm-therapist-final-cta--match .ytm-therapist-button,
.ytm-therapist-final-cta--compatibility .ytm-therapist-button-secondary {
    justify-self: end;
}

@media (max-width: 960px) {
    .ytm-therapist-hero {
        grid-template-columns: 1fr;
    }

    .ytm-therapist-photo-card {
        max-width: 420px;
    }

    .ytm-therapist-hero-cta,
    .ytm-therapist-compatibility-card,
    .ytm-therapist-final-cta {
        grid-template-columns: 1fr;
    }

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

    .ytm-therapist-final-cta--match .ytm-therapist-button,
    .ytm-therapist-final-cta--compatibility .ytm-therapist-button-secondary {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .ytm-therapist-page {
        padding: 18px 14px 48px;
    }

    .ytm-therapist-hero,
    .ytm-therapist-story-card,
    .ytm-therapist-final-cta {
        padding: 22px;
        border-radius: 24px;
    }

    .ytm-therapist-story-list,
    .ytm-therapist-need-grid {
        grid-template-columns: 1fr;
    }

    .ytm-therapist-button,
    .ytm-therapist-button-secondary {
        width: 100%;
    }

    .ytm-therapist-hero-cta,
    .ytm-therapist-compatibility-card {
        padding: 18px;
    }

    .ytm-therapist-connection-art {
        background-size: min(900px, 180%) auto;
        opacity: 0.18;
    }
}