/* Homepage editorial depth: illustrated entrances, stronger color rhythm. */
body.jb-home-refresh{--botanical-leaf:url('../janusbio-botanical/assets/watercolor-leaves.webp');--botanical-care:url('../janusbio-botanical/assets/watercolor-care.webp')}
body.jb-home-refresh .home-hero{min-height:590px;background-color:#e6f1f5}
body.jb-home-refresh .home-hero:after{background:linear-gradient(90deg,#e6f1f5 0%,#e6f1f5f5 31%,#e6f1f5a8 43%,#e6f1f500 61%)}
body.jb-home-refresh .home-hero-copy{padding-top:64px;padding-bottom:92px}
body.jb-home-refresh .home-hero-copy h1{font-size:clamp(39px,4.3vw,62px);letter-spacing:.025em}
body.jb-home-refresh .home-hero-copy h1:after{height:10px;width:220px;opacity:.62;transform:rotate(-2deg)}
body.jb-home-refresh .home-hero-copy .eyebrow{display:inline-block;background:#ffffffb8;border:1px solid #cbdfe5;padding:8px 13px;border-radius:20px}
body.jb-home-refresh .hero-actions .button{background:#df964c;border-color:#df964c;box-shadow:0 6px 0 #c9883c16}
body.jb-home-refresh .hero-actions .button:hover{background:#ca8238;border-color:#ca8238}
body.jb-home-refresh .janusbio-home #care-entrances{padding:48px 0 76px;background:linear-gradient(180deg,#fff 0%,#f5f8f1 100%)}
body.jb-home-refresh #care-entrances .section-top{margin-bottom:32px}
body.jb-home-refresh #care-entrances .section-label{display:inline-flex;align-items:center;gap:12px}
body.jb-home-refresh #care-entrances .section-label:before,body.jb-home-refresh #care-entrances .section-label:after{content:"";width:30px;height:1px;background:#83aa92}
body.jb-home-refresh .care-portals{gap:24px;align-items:stretch}
body.jb-home-refresh .care-portal{display:flex;flex-direction:column;align-items:stretch;border-radius:22px 22px 14px 14px!important;background:#fff;border-color:#d6e2e6;box-shadow:0 10px 26px #365d6b0b;overflow:visible}
body.jb-home-refresh .care-portal:nth-child(2){background:#fff;border-color:#d6e2d3;transform:translateY(16px)}
body.jb-home-refresh .care-portal:nth-child(3){background:#fff;border-color:#e8ddce}
body.jb-home-refresh .care-portal .jb-portal-art{display:block;padding:0;position:relative;background:#edf5f7;border-radius:21px 21px 0 0;isolation:isolate}
body.jb-home-refresh .care-portal:nth-child(2) .jb-portal-art{background:#edf3e8}
body.jb-home-refresh .care-portal:nth-child(3) .jb-portal-art{background:#fcf2e4}
body.jb-home-refresh .jb-portal-art>img{width:100%;height:210px;object-fit:cover;object-position:center 44%;mix-blend-mode:multiply;display:block;border-radius:21px 21px 0 0}
body.jb-home-refresh .care-portal .jb-portal-badge{position:absolute;right:20px;bottom:-24px;width:67px;height:67px;background:#fff;border:1px solid #dce7e7;border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 8px #293e490a}
body.jb-home-refresh .care-portal .sketch-icon{width:54px;height:54px}
body.jb-home-refresh .care-portal>div:not(.jb-portal-art){padding:27px 27px 24px;display:flex;flex-direction:column;flex:1}
body.jb-home-refresh .care-portal b{font-size:9px;letter-spacing:.12em;margin-bottom:10px;max-width:80%}
body.jb-home-refresh .care-portal h3{font-size:23px;margin-bottom:9px}
body.jb-home-refresh .care-portal p{font-size:14px;margin-bottom:20px}
body.jb-home-refresh .care-portal .text-link{margin-top:auto;padding-top:12px;border-top:1px solid #e0e9e9;justify-content:space-between;align-self:stretch}
body.jb-home-refresh .care-portal:hover{transform:translateY(-4px);box-shadow:0 16px 32px #365d6b18}
body.jb-home-refresh .care-portal:nth-child(2):hover{transform:translateY(12px)}
body.jb-home-refresh .janusbio-home main>.section.soft{padding:56px 0;background:linear-gradient(105deg,#dceadf 0%,#e9f1e3 60%,#eef4ec 100%)}
body.jb-home-refresh .story-feature{gap:62px;grid-template-columns:1.08fr 1fr}
body.jb-home-refresh .story-collage{position:relative;background:#f5f8ef;border-radius:45% 45% 18px 18px;padding:12px;box-shadow:10px 13px 0 #b9d0b746}
body.jb-home-refresh .story-photo-main{aspect-ratio:1.32;border-radius:44% 44% 12px 12px;object-fit:cover}
body.jb-home-refresh .story-copy{padding:12px 0}
body.jb-home-refresh .story-copy .section-label{border-left:3px solid #dc9c5a;padding-left:12px}
body.jb-home-refresh .story-copy h2{font-size:clamp(29px,2.6vw,38px);margin-bottom:22px}
body.jb-home-refresh .story-copy .button.outline{margin-top:6px}
body.jb-home-refresh .jb-home-posts{background-color:#fafbf7;padding:65px 0 58px}
body.jb-home-refresh .jb-home-posts .jb-heading{padding-bottom:25px;border-bottom:1px solid #dbe5df;margin-bottom:30px;align-items:end}
body.jb-home-refresh .jb-home-posts .jb-card{border-radius:18px!important;box-shadow:0 5px 18px #293e4907}
body.jb-home-refresh .jb-home-posts .jb-image{height:153px;background:radial-gradient(ellipse at 50% 70%,#c8e0e7 0%,#e9f3f5 55%,#f4f8f7 100%);position:relative;isolation:isolate}
body.jb-home-refresh .jb-home-posts .jb-card:nth-child(3n+2) .jb-image{background:radial-gradient(ellipse at 50% 70%,#c4dabe 0%,#ebf2e4 55%,#f4f7ef 100%)}
body.jb-home-refresh .jb-home-posts .jb-card:nth-child(3n) .jb-image{background:radial-gradient(ellipse at 50% 70%,#edd4b0 0%,#faf0df 55%,#fcf7ef 100%)}
body.jb-home-refresh .jb-home-posts .jb-image:has(.jb-no-image):after{content:"";position:absolute;z-index:-1;right:5px;bottom:0;width:96px;height:145px;background:var(--botanical-leaf) center/contain no-repeat;opacity:.35;pointer-events:none}
/* Featured media fills the same frame; decoration belongs to fallback artwork only. */
body.jb-home-refresh .jb-home-posts .jb-image:has(>img.jb-thumbnail){background:none;overflow:hidden}
body.jb-home-refresh .jb-home-posts .jb-image>img.jb-thumbnail{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
body.jb-home-refresh .jb-article-sketch .sketch-icon{width:130px;height:118px;transform:rotate(-4deg)}
body.jb-home-refresh .jb-home-posts .jb-card:nth-child(even) .sketch-icon{transform:rotate(4deg)}
body.jb-home-refresh .jb-home-posts .jb-content{padding:23px 24px}
body.jb-home-refresh .janus-care-statement{background:#477f98;padding:52px 0;isolation:isolate}
body.jb-home-refresh .janus-care-statement blockquote{color:#fff;font-size:clamp(25px,2.6vw,37px)}
body.jb-home-refresh .janus-care-statement__eyebrow{color:#d5e8ed}
body.jb-home-refresh .janus-care-statement p{color:#e1edf0}
body.jb-home-refresh .janus-care-statement:before,body.jb-home-refresh .janus-care-statement:after{width:210px;height:260px;opacity:.47;top:auto;bottom:-36px;filter:brightness(1.8) saturate(.6)}
body.jb-home-refresh .jbf .jbf-invite{padding:55px 0;background:#eaf1e7}
body.jb-home-refresh .jbf .jbf-invite>.jbf-wrap{padding-right:31%;position:relative}
body.jb-home-refresh .jbf .jbf-invite:after{width:37%;height:100%;top:0;bottom:0;right:0;background:linear-gradient(90deg,#eaf1e7,#eaf1e700 25%),var(--botanical-care) 65% center/cover no-repeat;opacity:1}
body.jb-home-refresh .jbf .jbf-invite .jbf-invite-inner{display:block}
body.jb-home-refresh .jbf .jbf-actions{margin-top:22px;justify-content:flex-start}
@media(max-width:1100px){
 body.jb-home-refresh .jb-portal-art>img{height:175px}
 body.jb-home-refresh .care-portal>div:not(.jb-portal-art){padding:27px 20px 22px}
 body.jb-home-refresh .care-portal h3{font-size:21px}
 body.jb-home-refresh .story-feature{gap:35px}
 body.jb-home-refresh .jbf .jbf-invite>.jbf-wrap{padding-right:28%}
}
@media(max-width:767px){
 body.jb-home-refresh .home-hero{min-height:0}
 body.jb-home-refresh .home-hero:after{display:none}
 body.jb-home-refresh .home-hero-copy{padding:30px 0 18px}
 body.jb-home-refresh .home-hero-copy h1{font-size:clamp(30px,7.8vw,44px)}
 body.jb-home-refresh .home-hero-copy h1:after{width:155px;height:7px}
 body.jb-home-refresh .home-hero-copy .eyebrow{font-size:8px;padding:6px 10px;letter-spacing:.1em}
 body.jb-home-refresh .janusbio-home #care-entrances{padding:32px 0 42px}
 body.jb-home-refresh .care-portals{gap:18px}
 body.jb-home-refresh .care-portal{display:grid;grid-template-columns:38% minmax(0,1fr);border-radius:16px!important;overflow:hidden}
 body.jb-home-refresh .care-portal:nth-child(2),body.jb-home-refresh .care-portal:nth-child(2):hover{transform:none}
 body.jb-home-refresh .care-portal .jb-portal-art{height:100%;border-radius:0}
 body.jb-home-refresh .jb-portal-art>img{height:100%;min-height:220px;object-position:48% center;border-radius:0}
 body.jb-home-refresh .care-portal .jb-portal-badge{width:43px;height:43px;bottom:10px;right:9px}
 body.jb-home-refresh .care-portal .sketch-icon{width:36px;height:36px}
 body.jb-home-refresh .care-portal>div:not(.jb-portal-art){padding:19px 15px}
 body.jb-home-refresh .care-portal b{font-size:7px;max-width:100%;letter-spacing:.06em;line-height:1.6}
 body.jb-home-refresh .care-portal h3{font-size:20px}
 body.jb-home-refresh .care-portal p{font-size:13px;margin-bottom:12px}
 body.jb-home-refresh .care-portal .text-link{font-size:12px;padding-top:9px}
 body.jb-home-refresh .janusbio-home main>.section.soft{padding:32px 0}
 body.jb-home-refresh .story-feature{grid-template-columns:1fr;gap:25px}
 body.jb-home-refresh .story-collage{max-width:500px;margin:0 6px 0 0;padding:8px;box-shadow:6px 8px 0 #b9d0b746}
 body.jb-home-refresh .story-photo-main{aspect-ratio:1.4}
 body.jb-home-refresh .story-copy{padding:6px 0}
 body.jb-home-refresh .story-copy h2{font-size:27px}
 body.jb-home-refresh .jb-home-posts{padding:38px 0}
 body.jb-home-refresh .jb-home-posts .jb-heading{padding-bottom:18px}
 body.jb-home-refresh .jb-home-posts .jb-card{grid-template-columns:100px minmax(0,1fr)}
 body.jb-home-refresh .jb-home-posts .jb-image{height:100%;min-height:180px}
 body.jb-home-refresh .jb-home-posts .jb-image:after{width:75px;height:115px;right:0;opacity:.25}
 body.jb-home-refresh .jb-article-sketch .sketch-icon{width:86px;height:90px}
 body.jb-home-refresh .jb-home-posts .jb-content{padding:19px 16px}
 body.jb-home-refresh .janus-care-statement{padding:42px 0}
 body.jb-home-refresh .janus-care-statement blockquote{font-size:25px}
 body.jb-home-refresh .janus-care-statement:before,body.jb-home-refresh .janus-care-statement:after{width:110px;height:180px;bottom:-35px;opacity:.3}
 body.jb-home-refresh .jbf .jbf-invite{padding:32px 0 210px}
 body.jb-home-refresh .jbf .jbf-invite>.jbf-wrap{padding-right:0}
 body.jb-home-refresh .jbf .jbf-invite:after{width:100%;height:220px;top:auto;bottom:0;background:linear-gradient(180deg,#eaf1e7,#eaf1e700 35%),var(--botanical-care) 75% 54%/cover no-repeat}
}
@media(prefers-reduced-motion:reduce){body.jb-home-refresh .care-portal:hover{transform:none}}

/* Mobile service entrances: show the full illustration above the copy. */
@media(max-width:767px){
 body.jb-home-refresh #care-entrances .care-portals{grid-template-columns:minmax(0,1fr);gap:24px}
 body.jb-home-refresh #care-entrances .care-portal{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;align-items:stretch;overflow:hidden;transform:none}
 body.jb-home-refresh #care-entrances .care-portal .jb-portal-art{width:100%;height:auto;min-height:0;padding:0}
 body.jb-home-refresh #care-entrances .jb-portal-art>.jb-click-image,
 body.jb-home-refresh #care-entrances .jb-portal-art>.jb-click-image>.elementor-widget-container{width:100%;height:auto;min-height:0}
 body.jb-home-refresh #care-entrances .jb-portal-art img{display:block;width:100%;height:auto;min-height:0;aspect-ratio:auto;object-fit:contain;object-position:center;transform:none}
 body.jb-home-refresh #care-entrances .care-portal .jb-portal-badge{width:48px;height:48px;right:18px;bottom:-20px}
 body.jb-home-refresh #care-entrances .care-portal .sketch-icon{width:38px;height:38px}
 body.jb-home-refresh #care-entrances .care-portal>div:not(.jb-portal-art){padding:32px 22px 22px}
 body.jb-home-refresh #care-entrances .care-portal b{font-size:10px;line-height:1.6;letter-spacing:.08em;max-width:100%}
 body.jb-home-refresh #care-entrances .care-portal h3{font-size:23px;line-height:1.5;margin-bottom:10px}
 body.jb-home-refresh #care-entrances .care-portal p{font-size:15px;line-height:1.85;margin-bottom:18px}
 body.jb-home-refresh #care-entrances .care-portal .text-link{font-size:14px;line-height:1.6;min-height:44px;padding-top:12px}
}
