@font-face { font-family: 'YTM Fredoka'; src: url('../fonts/fredoka/Fredoka-variable.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }
body.home:has(.ytm-home--reference) { background:#531f65; }
body.home:has(.ytm-home--reference) #primary,
body.home:has(.ytm-home--reference) .site-content > .ast-container,
body.home:has(.ytm-home--reference) .ast-article-single { margin-block:0; padding:0; background:transparent; }
body.home:has(.ytm-home--reference) .entry-header { display:none; }
.ytm-home.ytm-home--reference { --ref-purple:#531f65; --ref-lilac:#cc9be7; --ref-orange:#ead3f5; font-family:'YTM Fredoka',sans-serif; color:var(--ref-purple); background:#531f65; padding:28px 20px 45px; }
.ytm-home--reference .ytm-home-wrap { width:min(100%,1040px); max-width:1040px; margin:0 auto; background:linear-gradient(120deg,#ffffff,#f0e7f7); border-radius:70px; padding:30px; overflow:visible; }
.ytm-home--reference * { box-sizing:border-box; }
.ytm-home--reference [hidden] { display:none!important; }
.ytm-home--reference img { display:block; max-width:100%; height:auto; object-fit:contain; }
.ytm-home--reference h1,.ytm-home--reference h2,.ytm-home--reference p { color:inherit; font-family:inherit; margin:0; }
.ytm-home--reference .ytm-ref-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ytm-home--reference .ytm-ref-hero { background:linear-gradient(115deg,#dba6e6,#cc9be7); border-radius:48px; padding:50px 35px 65px; }
.ytm-home--reference h1 { font-size:clamp(32px,5vw,66px); font-weight:600; text-align:center; line-height:1.12; }
.ytm-home--reference h1 img { width:100%; }
.ytm-home--reference .ytm-ref-arm { position:relative; z-index:2; pointer-events:none; width:100%; margin:-36px 0 -25px; }
.ytm-home--reference .ytm-ref-arm img { width:100%; }
.ytm-home--reference .ytm-ref-arm [data-ref-english] { display:block; border-radius:99px; padding:18px; background:#531f65; color:#fffbd7; text-align:center; font-size:clamp(18px,3vw,34px); }
.ytm-home--reference .ytm-ref-benefits { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.ytm-home--reference details { position:relative; margin:0; min-width:0; }
.ytm-home--reference summary { cursor:pointer; list-style:none; }
.ytm-home--reference summary::-webkit-details-marker { display:none; }
.ytm-home--reference summary:focus-visible,.ytm-home--reference a:focus-visible,.ytm-home--reference button:focus-visible { outline:3px solid #531f65; outline-offset:5px; }
.ytm-home--reference .ytm-ref-tile { aspect-ratio:1; border-radius:48px; overflow:hidden; }
.ytm-home--reference .ytm-ref-tile summary { display:grid; place-items:center; width:100%; height:100%; padding:35px; }
.ytm-home--reference .ytm-ref-journal { background:#531f65; }
.ytm-home--reference .ytm-ref-journal summary img { height:100%; width:auto; max-height:365px; transform:rotate(-9deg); }
.ytm-home--reference .ytm-ref-fit { background:var(--ref-orange); }
.ytm-home--reference .ytm-ref-fit summary img { width:80%; }
.ytm-home--reference .ytm-ref-reveal { padding:24px; background:linear-gradient(120deg,#ffffff,#f0e7f7); color:#531f65; text-align:center; }
.ytm-home--reference .ytm-ref-tile .ytm-ref-reveal,.ytm-home--reference .ytm-ref-profile .ytm-ref-reveal { position:absolute; inset:auto 0 0; z-index:3; border-radius:28px 28px 0 0; }
.ytm-home--reference .ytm-ref-reveal p { font-size:clamp(18px,2.1vw,24px); line-height:1.35; margin-bottom:16px; }
.ytm-home--reference .ytm-ref-cta { display:inline-flex; justify-content:center; align-items:center; padding:12px 22px; min-height:46px; border-radius:30px; border:1px solid #531f65; background:#531f65; color:#fffbd7; font:500 17px/1.25 'YTM Fredoka',sans-serif; text-decoration:none; cursor:pointer; }
.ytm-home--reference .ytm-ref-cta:disabled { cursor:default; opacity:.6; }
.ytm-home--reference .ytm-ref-band { display:flex; height:42px; margin:20px 0; border-radius:999px; overflow:hidden; background:#e6d6f1; }
.ytm-home--reference .ytm-ref-band i { flex:1; border-radius:0 999px 999px 0; margin-left:-20px; }
.ytm-home--reference .ytm-ref-band i:nth-child(1){background:#531f65;flex:2.2;z-index:5;margin-left:0;}
.ytm-home--reference .ytm-ref-band i:nth-child(2){background:#cc9be7;z-index:4;}
.ytm-home--reference .ytm-ref-band i:nth-child(3){background:#f4b1d1;z-index:3;}
.ytm-home--reference .ytm-ref-band i:nth-child(4){background:#9860b2;z-index:2;}
.ytm-home--reference .ytm-ref-lower { display:grid; grid-template-columns:1.65fr 1fr; gap:22px; }
.ytm-home--reference .ytm-ref-profile { border:2px solid #9860b2; border-radius:48px; overflow:hidden; }
.ytm-home--reference .ytm-ref-profile summary { display:flex; flex-direction:column; justify-content:space-between; height:100%; padding:28px 22px; gap:35px; }
.ytm-home--reference .ytm-ref-person { display:flex; align-items:center; gap:20px; }
.ytm-home--reference .ytm-ref-person > img { width:34%; background:#e6b3ec; border-radius:50%; padding:15px; }
.ytm-home--reference .ytm-ref-lines { flex:1; display:grid; gap:18px; }
.ytm-home--reference .ytm-ref-lines i { display:block; height:26px; border-radius:30px; background:#531f65; }
.ytm-home--reference .ytm-ref-lines i:last-child { background:#cc9be7; width:90%; }
.ytm-home--reference .ytm-ref-marks { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.ytm-home--reference .ytm-ref-marks img { width:21%; aspect-ratio:1; object-fit:contain; }
.ytm-home--reference .ytm-ref-patterns { display:grid; gap:18px; }
.ytm-home--reference .ytm-ref-patterns img { width:100%; height:100%; object-fit:cover; border-radius:36px; aspect-ratio:1.55; }
.ytm-home--reference .ytm-ref-how { margin:20px 0; border-radius:28px; border:1px solid #cc9be7; overflow:hidden; }
.ytm-home--reference .ytm-ref-how summary { padding:16px 26px; text-align:center; font-size:22px; }
.ytm-home--reference .ytm-ref-how ol { text-align:left; max-width:580px; margin:24px auto 0; padding-left:24px; font-size:18px; line-height:1.5; }
.ytm-home--reference .ytm-ref-how li { margin:10px 0; }
.ytm-home--reference .ytm-ref-foundation { background:linear-gradient(110deg,#ebbaeb,#e9baec); border-radius:48px; padding:30px; }
.ytm-home--reference .ytm-ref-foundation-intro,
.ytm-home--reference .ytm-family-info { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px; align-items:center; }
.ytm-home--reference .ytm-ref-foundation-intro > div:first-child { padding-right:25px; border-right:2px solid #cc9be7; }
.ytm-home--reference .ytm-ref-foundation-intro p { font-size:clamp(21px,2.7vw,31px); line-height:1.25; margin-bottom:20px; }
.ytm-home--reference .ytm-ref-foundation .ytm-ref-pending { font-size:14px; margin:12px 0 0; }
.ytm-home--reference .ytm-family-info { margin:clamp(28px,5vw,56px) 0 32px; padding:0 30px; background:transparent; color:inherit; }
.ytm-family-info__image { display:block; width:100%; height:auto; border-radius:20px; }
.ytm-family-info__copy { display:grid; justify-items:start; gap:12px; }
.ytm-home--reference .ytm-family-info__copy h2 { font-size:clamp(28px,4vw,42px); font-weight:600; line-height:1.12; }
.ytm-home--reference .ytm-family-info__copy p { font-size:clamp(17px,2vw,20px); line-height:1.45; }
.ytm-home--reference .ytm-family-info summary { display:flex; align-items:center; gap:10px; min-height:44px; }
.ytm-home--reference .ytm-family-info summary::before { content:""; width:.5em; height:.5em; border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(-45deg); flex:none; }
.ytm-home--reference .ytm-family-info details[open] summary::before { transform:rotate(45deg); }
.ytm-home--reference .ytm-family-info a.ytm-ref-cta { color:#fffbd7; }
.ytm-home--reference .ytm-family-info a.ytm-ref-cta:hover { background:#3e174d; }
body.home:has(.ytm-home--reference) .ytm-lang-switch { top:16px; bottom:auto; }
@media(max-width:700px) {
 .ytm-home.ytm-home--reference { padding:18px 10px 30px; }
 .ytm-home--reference .ytm-home-wrap { padding:15px; border-radius:40px; }
 .ytm-home--reference .ytm-ref-hero { padding:35px 12px 40px; border-radius:28px; }
 .ytm-home--reference .ytm-ref-arm { margin:-15px 0 10px; }
 .ytm-home--reference .ytm-ref-benefits { grid-template-columns:1fr; gap:15px; }
 .ytm-home--reference .ytm-ref-tile { border-radius:34px; }
 .ytm-home--reference .ytm-ref-tile summary { padding:25px; }
 .ytm-home--reference .ytm-ref-journal summary img { max-height:265px; }
 .ytm-home--reference .ytm-ref-band { height:26px; margin:16px 0; }
 .ytm-home--reference .ytm-ref-lower { grid-template-columns:1fr; gap:16px; }
 .ytm-home--reference .ytm-ref-profile { min-height:270px; border-radius:34px; }
 .ytm-home--reference .ytm-ref-profile summary { padding:22px; }
 .ytm-home--reference .ytm-ref-patterns { gap:14px; }
 .ytm-home--reference .ytm-ref-patterns img { aspect-ratio:2.3; border-radius:30px; }
 .ytm-home--reference .ytm-ref-foundation { padding:24px; border-radius:34px; }
 .ytm-home--reference .ytm-ref-foundation-intro,
 .ytm-home--reference .ytm-family-info { grid-template-columns:1fr; gap:20px; }
 .ytm-home--reference .ytm-family-info { padding:0; }
 .ytm-home--reference .ytm-ref-foundation-intro { text-align:center; }
 .ytm-home--reference .ytm-ref-foundation-intro > div:first-child { border-right:0; padding:0; }
}
body.home:has(.ytm-home--reference) .ytm-language-selector { top:12px; bottom:auto; right:16px; }
@media(max-width:700px) { body.home:has(.ytm-home--reference) .ytm-language-selector { top:12px; bottom:auto; right:68px; } }
/* Nine independent home accesses; the panel itself is never interactive. */
.ytm-home--reference [data-ref-disclosure][open] { z-index:20; }
.ytm-home--reference .ytm-ref-reveal h3 { font:600 clamp(19px,2vw,25px)/1.2 'YTM Fredoka',sans-serif; color:#531f65; margin:0 0 12px; }
.ytm-home--reference .ytm-ref-reveal p { font-size:17px; line-height:1.4; }
.ytm-home--reference .ytm-ref-reveal ol { text-align:left; margin:0 0 18px; padding-left:24px; font-size:17px; line-height:1.5; }
.ytm-home--reference .ytm-ref-lower { align-items:stretch; }
.ytm-home--reference .ytm-ref-profile { position:relative; padding:24px; overflow:visible; min-height:0; display:flex; flex-direction:column; justify-content:space-between; gap:24px; }
.ytm-home--reference .ytm-ref-profile:has(details[open]) { z-index:21; }
.ytm-home--reference .ytm-ref-person { gap:20px; }
.ytm-home--reference .ytm-ref-person details { position:static; width:34%; flex-shrink:0; }
.ytm-home--reference .ytm-ref-person summary { display:grid; place-items:center; padding:12px; gap:0; background:#e6b3ec; border-radius:50%; aspect-ratio:1; }
.ytm-home--reference .ytm-ref-person summary img { width:100%; }
.ytm-home--reference .ytm-ref-marks { gap:12px; }
.ytm-home--reference .ytm-ref-marks details { position:static; width:calc((100% - 36px)/4); }
.ytm-home--reference .ytm-ref-marks summary { display:grid; place-items:center; padding:12px; gap:0; aspect-ratio:1; height:auto; border-radius:50%; background:#ead3f5; }
.ytm-home--reference .ytm-ref-marks details:nth-child(2) summary { background:#f4c5de; }
.ytm-home--reference .ytm-ref-marks details:nth-child(3) summary { background:#f4ecfa; }
.ytm-home--reference .ytm-ref-marks details:nth-child(4) summary { background:#efddfa; }
.ytm-home--reference .ytm-ref-marks img { width:100%; height:100%; }
.ytm-home--reference .ytm-ref-profile .ytm-ref-reveal { inset:100% 0 auto; border-radius:0 0 24px 24px; border:2px solid #9860b2; }
.ytm-home--reference .ytm-ref-patterns { grid-template-rows:1fr 1fr; gap:16px; }
.ytm-home--reference .ytm-ref-pattern { border-radius:30px; min-height:135px; background-size:cover; background-position:center; }
.ytm-home--reference .ytm-ref-pattern-how { background-image:url('../home/reference-flowers-large.webp'); }
.ytm-home--reference .ytm-ref-pattern-foundation { background-image:url('../home/reference-flowers-small.webp'); }
.ytm-home--reference .ytm-ref-pattern > summary { min-height:135px; height:100%; display:grid; place-items:center; padding:14px; }
.ytm-home--reference .ytm-ref-question { display:grid; place-items:center; width:72px; height:72px; border-radius:50%; background:linear-gradient(120deg,#ffffff,#f0e7f7); color:#531f65; font:500 64px/1 'YTM Fredoka',sans-serif; }
.ytm-home--reference .ytm-ref-pattern .ytm-ref-reveal { position:absolute; top:100%; left:0; width:max(100%,300px); max-width:calc(100vw - 54px); right:0; border:2px solid #9860b2; border-radius:0 0 24px 24px; }
.ytm-home--reference .ytm-ref-patterns .ytm-ref-reveal { left:auto; }
.ytm-home--reference .ytm-ref-foundation { margin-top:22px; }
@media(max-width:700px) {
 .ytm-home--reference .ytm-ref-profile { padding:18px; gap:22px; }
 .ytm-home--reference .ytm-ref-person summary { padding:10px; }
 .ytm-home--reference .ytm-ref-marks { gap:8px; }
 .ytm-home--reference .ytm-ref-marks details { width:calc((100% - 24px)/4); }
 .ytm-home--reference .ytm-ref-marks summary { padding:9px; }
 .ytm-home--reference .ytm-ref-pattern .ytm-ref-reveal { width:100%; max-width:none; }
 .ytm-home--reference .ytm-ref-tile .ytm-ref-reveal { padding:18px; }
}


.ytm-home--reference .ytm-ref-marks { border-top:2px solid #cc9be7; padding-top:20px; }

/* Supplied triptych in a wide lilac panel; compatibility returns beside Journal. */
.ytm-home--reference .ytm-ref-triptych { background:#cc9be7; border-radius:38px; padding:18px; margin:26px 0 24px; }
.ytm-home--reference .ytm-ref-triptych img { width:100%; height:360px; object-fit:contain; }
@media(max-width:700px) {
 .ytm-home--reference .ytm-ref-triptych { border-radius:28px; padding:12px; margin:18px 0; }
 .ytm-home--reference .ytm-ref-triptych img { height:auto; }
}

/* Match the supplied lettering silhouette to the outer purple background. */
.ytm-home--reference #ytm-home-title { position:relative; color:#531f65; }
.ytm-home--reference #ytm-home-title img[data-ref-spanish] { visibility:hidden; }
.ytm-home--reference #ytm-home-title:has(img[data-ref-spanish]:not([hidden]))::after { content:""; position:absolute; inset:0; background:#531f65; -webkit-mask:url('../home/reference-headline.webp') center / contain no-repeat; mask:url('../home/reference-headline.webp') center / contain no-repeat; pointer-events:none; }
/* Reuse Match's approved arms only around the home composition. */
body.home:has(.ytm-home--reference) {
  background:linear-gradient(rgba(250,242,236,.72),rgba(250,242,236,.72)),url('https://yourtherapymatch.com/wp-content/uploads/2026/04/Diseno-sin-titulo-5.png') center / cover no-repeat fixed;
}
body.home:has(.ytm-home--reference) .site,
body.home:has(.ytm-home--reference) .site-content,
body.home:has(.ytm-home--reference) .site-content > .ast-container { background:transparent; }

/* Three supplied panels: spacing only between images, never at the outer sides. */
.ytm-home--reference .ytm-ref-triptych { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; padding:0; border-radius:0; align-items:start; }
.ytm-home--reference .ytm-ref-triptych img { display:block; width:100%; height:auto; object-fit:contain; border-radius:0; }

.ytm-home--reference .ytm-ref-test-intro { margin:18px auto 24px; max-width:850px; color:#531f65; text-align:center; font-size:clamp(18px,2.2vw,26px); line-height:1.45; font-weight:600; }

.ytm-home--reference a.ytm-ref-arm { display:block; cursor:pointer; }
.ytm-home--reference a.ytm-ref-arm:focus-visible { outline:3px solid #531f65; outline-offset:4px; }
.ytm-home--reference .ytm-triptych-step { position:relative; min-width:0; }
.ytm-home--reference .ytm-triptych-step summary { position:relative; cursor:pointer; list-style:none; }
.ytm-home--reference .ytm-triptych-step summary::-webkit-details-marker { display:none; }
.ytm-home--reference .ytm-triptych-step summary:focus-visible { outline:3px solid #531f65; outline-offset:3px; }
.ytm-home--reference .ytm-triptych-number { position:absolute; bottom:12px; right:12px; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#531f65; color:#fffbd7; font-weight:700; }
.ytm-home--reference .ytm-triptych-back { position:absolute; inset:0; padding:24px; background:#cc9be7; color:#531f65; flex-direction:column; justify-content:center; gap:18px; }
.ytm-home--reference .ytm-triptych-step[open] > .ytm-triptych-back { display:flex; }
.ytm-home--reference .ytm-triptych-back h2 { font:500 clamp(22px,2.5vw,32px)/1.15 'YTM Fredoka',sans-serif; color:inherit; margin:0; }
.ytm-home--reference .ytm-triptych-back p { margin:0; font-size:18px; line-height:1.5; }
.ytm-home--reference .ytm-triptych-back button { background:#531f65; color:#fffbd7; border:0; border-radius:24px; padding:12px 18px; cursor:pointer; font:inherit; }
@media(max-width:700px) {
 .ytm-home--reference .ytm-triptych-step { display:contents; }
 .ytm-home--reference .ytm-triptych-step summary { grid-row:1; }
 .ytm-home--reference .ytm-triptych-back { position:static; grid-column:1/-1; grid-row:2; padding:20px; }
 .ytm-home--reference .ytm-triptych-number { width:24px; height:24px; bottom:6px; right:4px; font-size:14px; }
}
@media(max-width:700px) {
 .ytm-home--reference .ytm-triptych-step::details-content { display:contents; }
 .ytm-home--reference .ytm-triptych-step:not([open]) > .ytm-triptych-back { display:none; }
}

/* Purple and white surfaces keep the approved two-tone graphics distinct. */
.ytm-home--reference .ytm-ref-pattern { background-color:#b684cf; background-blend-mode:luminosity; }

.ytm-home--reference .ytm-ref-foundation-intro img { display:block; width:min(100%,330px); height:auto; margin-inline:auto; }
