/* Stack each profile portrait above the full-width biography. */
.teamSectionPage .primaryContent .block_JqQQxTwjWe4jTdOF:has(> .blockImg, > img) {
  grid-template-columns: minmax(0, 1fr) !important;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF > .blockImg,
.teamSectionPage .block_JqQQxTwjWe4jTdOF > img {
  justify-self: center;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF :is(.contentTitle, .primaryMeta) {
  text-align: center !important;
}

.teamSectionPage .block_JqQQxTwjWe4jTdOF > .blockImg {
  box-sizing: border-box !important;
  padding: 0 !important;
}
.teamSectionPage .primaryContent .block_JqQQxTwjWe4jTdOF {
  box-sizing: border-box !important;
}
/* Team profile pages */
.teamSectionPage .primaryContent .block_JqQQxTwjWe4jTdOF {
  box-sizing: border-box;
  display: grid !important;
  align-items: start;
  gap: clamp(20px, 4vw, 48px);
  width: min(calc(100% - 32px), 980px) !important;
  margin: 0 auto clamp(28px, 5vw, 62px) !important;
  padding: clamp(20px, 4.5vw, 52px) !important;
  background: #fff !important;
  color: #2e382a !important;
  border: 1px solid #dbe3d5 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
.teamSectionPage .primaryContent .block_JqQQxTwjWe4jTdOF:has(> .blockImg, > img) {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF > .blockImg,
.teamSectionPage .block_JqQQxTwjWe4jTdOF > img {
  float: none !important;
  width: 100% !important;
  max-width: 220px !important;
  margin: 0 auto !important;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF .blockImg .contentImg,
.teamSectionPage .block_JqQQxTwjWe4jTdOF > img {
  border-radius: 50% !important;
  box-shadow: none !important;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF > img {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF .blockText,
.teamSectionPage .block_JqQQxTwjWe4jTdOF .blockInnerContent {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #2e382a !important;
  text-shadow: none !important;
  text-align: left;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF .contentTitle,
.teamSectionPage .block_JqQQxTwjWe4jTdOF .contentTitle span {
  color: #24311f !important;
  font: 500 clamp(28px, 4.5vw, 46px)/1.12 Georgia, serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
  overflow-wrap: anywhere;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF .primaryMeta,
.teamSectionPage .block_JqQQxTwjWe4jTdOF .primaryMeta span {
  color: #405333 !important;
  font: 500 16px/1.45 system-ui, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF [itemprop="description"],
.teamSectionPage .block_JqQQxTwjWe4jTdOF [itemprop="description"] :is(p, div, span, li) {
  color: #2e382a !important;
  font: 400 16px/1.7 system-ui, sans-serif !important;
  text-shadow: none !important;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF [itemprop="description"] p + p {
  margin-top: 1em;
}
.teamSectionPage .block_JqQQxTwjWe4jTdOF [itemprop="description"] a,
.teamSectionPage .oty-team-return {
  color: #405333 !important;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.teamSectionPage .oty-team-return {
  display: inline-block;
  margin-top: 1.25rem;
  font: 500 15px/1.5 system-ui, sans-serif;
}
@media (max-width: 650px) {
  .teamSectionPage .primaryContent .block_JqQQxTwjWe4jTdOF:has(> .blockImg, > img) {
    grid-template-columns: minmax(0, 1fr);
  }
  .teamSectionPage .block_JqQQxTwjWe4jTdOF > .blockImg,
  .teamSectionPage .block_JqQQxTwjWe4jTdOF > img {
    max-width: 168px !important;
  }
}
/* Align Team portraits along the top edge of each card row. */
.teamSectionPage .primaryContent .itemPreview:has(img) {
  justify-content: flex-start;
}
.teamSectionPage .primaryContent .itemPreview > img[alt="Mackenzie Marcus"] {
  margin-bottom: 12px !important;
}
/* Keep former staff out of the Team directory. */
.teamSectionPage .itemPreview:has(.contentTitle a[href$="/margaux-maertens"]),
.teamSectionPage .itemPreview:has(.contentTitle a[href$="/raina-gulick"]) {
  display: none !important;
}
.teamSectionPage .blockWrap_ba1cfd6212544cb181ae79ba43db86a6[hidden] {
  display: none !important;
}

/* Former team members */
.teamSectionPage .itemPreview:has(.contentTitle a[href$="/taylor-payne"]),
.teamSectionPage .itemPreview:has(.contentTitle a[href$="/maia-hawkins"]) {
  display: none !important;
}
/* Team directory typography and flat cards */
.teamSectionPage .primaryContent .pageTitleContainer,
.teamSectionPage .primaryContent .itemPreview,
.teamSectionPage .primaryContent .itemPreview .itemImg,
.teamSectionPage .primaryContent .itemPreview .contentImg,
.teamSectionPage .primaryContent .itemPreview .itemContent {
  box-shadow: none !important;
  text-shadow: none !important;
}
.teamSectionPage .primaryContent .pageTitleContainer * {
  text-shadow: none !important;
}
.teamSectionPage .primaryContent .pageTitle,
.teamSectionPage .primaryContent .pageTitle span,
.teamSectionPage .primaryContent .blockText > .contentTitle,
.teamSectionPage .primaryContent .blockText > .contentTitle span {
  color: #24311f !important;
}
.teamSectionPage .primaryContent .itemPreview {
  background: #fff !important;
  border: 1px solid #dbe3d5 !important;
  border-radius: 12px !important;
}
.teamSectionPage .primaryContent .itemPreview .itemContent,
.teamSectionPage .primaryContent .itemPreview .itemInnerContent,
.teamSectionPage .primaryContent .itemPreview .itemInnerContent *,
.teamSectionPage .primaryContent .itemPreview .scTruncateEllipsis {
  color: #2e382a !important;
  text-shadow: none !important;
}
.teamSectionPage .primaryContent .itemPreview .moreLink {
  color: #405333 !important;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.teamSectionPage .primaryContent .itemPreview .itemInnerContent {
  font: 400 15px/1.55 system-ui, sans-serif;
}
/* Team directory */
.teamSectionPage .primaryContent .pageTitleContainer {
  background: #faf9f4;
  border: 1px solid #e3e8dc;
  border-radius: 16px;
  padding: clamp(24px, 5vw, 54px) clamp(16px, 4vw, 42px);
  text-align: center;
  margin-bottom: 24px;
}
.teamSectionPage .primaryContent .pageTitle,
.teamSectionPage .primaryContent .blockText > .contentTitle {
  color: #24311f !important;
  font: 500 clamp(28px, 4.4vw, 48px)/1.15 Georgia, serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.teamSectionPage .primaryContent .pageSubtitle {
  color: #405333 !important;
  font: 400 clamp(16px, 2vw, 19px)/1.5 system-ui, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.teamSectionPage .primaryContent .itemsCollectionContent {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 32px !important;
}
.teamSectionPage .primaryContent .itemsCollectionContent::before,
.teamSectionPage .primaryContent .itemsCollectionContent::after {
  content: none !important;
}
.teamSectionPage .primaryContent .itemPreview {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: clamp(14px, 2vw, 22px);
  text-align: center;
  background: #f5f7f1;
  border: 1px solid #e0e7d9;
  border-radius: 14px;
}
.teamSectionPage .primaryContent .itemPreview .itemImg {
  float: none !important;
  position: static !important;
  width: min(100%, 148px) !important;
  margin: 0 auto 12px !important;
}
.teamSectionPage .primaryContent .itemPreview .itemContent {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0;
}
.teamSectionPage .primaryContent .itemPreview .contentTitle,
.teamSectionPage .primaryContent .itemPreview .contentTitle a {
  color: #24311f !important;
  font: 500 clamp(20px, 2vw, 25px)/1.2 Georgia, serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.teamSectionPage .primaryContent .itemPreview .primaryMeta {
  color: #405333 !important;
  font: 400 15px/1.45 system-ui, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
@media (max-width: 950px) {
  .teamSectionPage .primaryContent .itemsCollectionContent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .teamSectionPage .primaryContent .itemsCollectionContent {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Center the footer menu within the desktop page. */
@media (min-width: 768px) {
  .footerContent .footerInner {
    box-sizing: border-box;
    width: 100%;
    margin-inline: 0 !important;
  }
  .footerContent .unstyledList:has(> li > a) {
    justify-content: center;
  }
  .footerContent .blockContainer:has(.unstyledList > li > a) .contentTitle {
    text-align: center;
  }
}
/* Keep Rates links available inside the phone menu. */
@media (max-width: 767px) {
  #navTopLevel .oty-rates-menu > .oty-rates-subnav {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding-inline-start: 1em;
  }
}
/* Readable page titles at phone widths. */
@media (max-width: 767px) {
  h1.contentTitle:not(.dividerTitle), h2.contentTitle:not(.dividerTitle) {
    font-size: clamp(25px, 7vw, 34px) !important;
    line-height: 1.2 !important;
    letter-spacing: .025em !important;
    overflow-wrap: anywhere;
  }
}
/* Footer links */
@media (min-width: 768px) {
  .footerContent .unstyledList:has(> li > a) { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; }
  .footerContent .unstyledList:has(> li > a) > li { margin: 0; }
}
/* === OTY Homepage Styles (SpaceCraft-safe) === */
.oty-hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff;
  background-image: url('/images/oldtownyoga-hero.jpg'); /* replace with your uploaded image path */
  background-size: cover; background-position: center;
}
.oty-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.oty-hero__inner { position: relative; z-index: 1; padding: 0 1rem; max-width: 900px; }
.oty-logo { position: absolute; top: 2rem; left: 2rem; z-index: 2; width: 160px; height: auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
.oty-hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.15; margin: 0 0 .75rem; font-weight: 800; }
.oty-hero p.lede { font-size: clamp(1.1rem, 2.2vw, 1.5rem); opacity: .95; margin: 0 0 1.25rem; }
.oty-btn { display: inline-block; padding: .9rem 1.3rem; border-radius: 14px; font-weight: 700; text-decoration: none; background: #f59e0b; color: #fff; }
.oty-btn:hover { background: #d4880a; }

.oty-uvp { background: #fff; color: #111; text-align: center; padding: 5rem 1.5rem; }
.oty-uvp h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 .75rem; }
.oty-uvp p { max-width: 860px; margin: 0 auto; color: #525252; font-size: 1.1rem; }

.oty-services { background: #f5f5f5; padding: 4rem 1.5rem; }
.oty-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px){ .oty-grid { grid-template-columns: repeat(3, 1fr); } }
.oty-card { background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.06); padding: 2rem; text-align: center; }
.oty-card h3 { margin: .5rem 0 .25rem; font-size: 1.2rem; }
.oty-card p { color: #616161; margin: 0; font-size: 1rem; }
.oty-icon-img { width: 56px; height: 56px; margin: 0 auto .75rem; display: block; opacity: .95; object-fit: contain; }

.oty-cta { background: #f59e0b; color: #fff; text-align: center; padding: 4rem 1.5rem; }
.oty-cta h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 .75rem; }
.oty-cta p { max-width: 760px; margin: 0 auto 1rem; }
.oty-cta .oty-btn--light { background: #fff; color: #92400e; }
.oty-cta .oty-btn--light:hover { background: #fafafa; }
/**********
 SCHEDULE
**********/
/*date/class row font size and height*/
html div.healcode table.schedule tr th,
html div.healcode table.enrollments tr th, 
html div.healcode table.healcode-appointments tr th, 
html div.healcode ol.enrollment_list li.cancelled div tr th {
    padding: 1em .5em;
    font-size: 16px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
/*time/sign-up height*/
html div.healcode table.schedule tr td, 
html div.healcode table.schedule tr th, 
html div.healcode table.enrollments tr td, 
html div.healcode table.enrollments tr th, 
html div.healcode table.healcode-appointments tr td, 
html div.healcode table.healcode-appointments tr th, 
html div.healcode ol.enrollment_list li.cancelled div tr td, 
html div.healcode ol.enrollment_list li.cancelled div tr th {
    padding: 1em .5em;
}
html div.healcode .header select {
    margin: 1em .5em;
}
html div.healcode .header .date_links .week_links {
    padding: 1em 0;
}
html div.healcode .week_links a, 
html div.healcode .healcode-date-links-area a, 
html div.healcode .week_links a, div.healcode .week_links a:visited, 
html div.healcode .healcode-date-links-area a, 
html div.healcode .healcode-date-links-area a:visited {
    padding: 1em 0;
    font-size: 12px;
}
/*class/instructor dropdown height*/
html div.healcode .header select {
    height: 38px;
}
/*button radius and animation*/
html div.healcode a.hc-button, 
html div.healcode input.hc-button {
    -moz-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -o-border-radius: 2px;
    border-radius: 2px;
}
/*other button radius*/
html div.healcode .week_links span.next_week a, 
html div.healcode .healcode-date-links-area span.healcode-next a {
    -moz-border-radius-topright: 2px;
    -webkit-border-top-right-radius: 2px;
    -o-border-top-right-radius: 2px;
    -ms-border-top-right-radius: 2px;
    -khtml-border-top-right-radius: 2px;
    border-top-right-radius: 2px;
    -moz-border-radius-bottomright: 2px;
    -webkit-border-bottom-right-radius: 2px;
    -o-border-bottom-right-radius: 2px;
    -ms-border-bottom-right-radius: 2px;
    -khtml-border-bottom-right-radius: 2px;
    border-bottom-right-radius: 2px;
}
html div.healcode .week_links span.previous_week a, 
html div.healcode .healcode-date-links-area span.healcode-previous a {
    -moz-border-radius-topleft: 2px;
    -webkit-border-top-left-radius: 2px;
    -o-border-top-left-radius: 2px;
    -ms-border-top-left-radius: 2px;
    -khtml-border-top-left-radius: 2px;
    border-top-left-radius: 2px;
    -moz-border-radius-bottomleft: 2px;
    -webkit-border-bottom-left-radius: 2px;
    -o-border-bottom-left-radius: 2px;
    -ms-border-bottom-left-radius: 2px;
    -khtml-border-bottom-left-radius: 2px;
    border-bottom-left-radius: 2px;
}
html div.healcode .header .date_links .healcode-jump-to-date input {
    background-position: 6px 8px;
    padding: 1em 0 1em 30px;
    width: 92%;
}
html div.healcode .header input[type="text"] {
    border-radius: 2px;
}

/**********
  CLASSES
**********/  
html div.healcode .healcode-image-area {      
    display: none;  
}    
html div.healcode .class_list .class_offered_link {      
    padding: 1em;      
    -webkit-border-radius: 0;      
    -moz-border-radius: 0;      
    -moz-box-shadow: 0 0 0 transparent;      
    -webkit-box-shadow: 0 0 0 transparent;      
    box-shadow: 0 0 0 transparent;      
} 
html div.healcode {  
    font-size: 15px;  
}  
html div.healcode .class_list .class_description {     
    padding-bottom: 15px;      
    padding-top: 15px;      
    line-height: 1.7em;  
}  
html div.healcode .class_list h1.class_name {      
    font-size: 20px;      
    text-transform: uppercase;  
}  
html div.healcode img {  
    display: none;  
}

div.healcode select {
  color: black;
}
/* Match the four service pages to the Red Light Therapy header. */
.primaryContent > :is(.blockWrap_a455fb5d2b434201ac84a38ba750b9de, .blockWrap_b718c7bddee4497b9d4521a462763fa1, .blockWrap_e63ca91d78bd42d0969b1be14909ba6a) {
  display: none !important;
}
.primaryContent:has(> :is(.blockWrap_cca1acc104c84dbd822c783c1ac25462, .blockWrap_fd2a637ad4384e18964626e28e7c7dce, .blockWrap_a35d4a41acbf406482b053caef1bae62, .blockWrap_ac2030db923241deaccb6f9b341636e5)) > :is(.pageTitleContainer, .blockContainer, .itemsCollectionContainer) {
  margin-block: 0 8px !important;
}
.primaryContent > :is(.blockWrap_cca1acc104c84dbd822c783c1ac25462, .blockWrap_fd2a637ad4384e18964626e28e7c7dce, .blockWrap_a35d4a41acbf406482b053caef1bae62, .blockWrap_ac2030db923241deaccb6f9b341636e5) {
  box-sizing: border-box;
  min-height: 132px;
  padding: 40px 16px 24px !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.primaryContent > :is(.blockWrap_cca1acc104c84dbd822c783c1ac25462, .blockWrap_fd2a637ad4384e18964626e28e7c7dce, .blockWrap_a35d4a41acbf406482b053caef1bae62, .blockWrap_ac2030db923241deaccb6f9b341636e5) .pageTitle {
  color: #171717 !important;
  font-size: clamp(28px, 4vw, 38px) !important;
  line-height: 1.15 !important;
  font-weight: 400 !important;
  text-transform: none !important;
}

/* Keep the title-to-image spacing equal when the Red Light subtitle is shown. */
.primaryContent > :is(.blockWrap_cca1acc104c84dbd822c783c1ac25462, .blockWrap_fd2a637ad4384e18964626e28e7c7dce, .blockWrap_a35d4a41acbf406482b053caef1bae62, .blockWrap_ac2030db923241deaccb6f9b341636e5) { min-height: 141px; }
.oty-service-overview { grid-auto-rows: 1fr; }
.oty-service-overview img { object-fit: contain; background: #24221c; }

.oty-service-overview article img { object-fit: contain; background: #24221c; }
/* Match the service-page title treatment across interior pages. */
.primaryContent > .pageTitleContainer:has(.pageTitle) { padding-top:40px !important; }
.primaryContent :is(.pageTitle,#oty-visit-title,.block_ab8caed80e374b6589255190f631774f .contentTitle,.block_dbb8ba809c6046d5b6da276961639f9e .contentTitle,.block_b98187c6cc6c41eebf2dda7d25a3e36e .contentTitle),
.primaryContent :is(.pageTitle,#oty-visit-title,.block_ab8caed80e374b6589255190f631774f .contentTitle,.block_dbb8ba809c6046d5b6da276961639f9e .contentTitle,.block_b98187c6cc6c41eebf2dda7d25a3e36e .contentTitle) > span,
.primaryContent :is(.pageTitle,#oty-visit-title,.block_ab8caed80e374b6589255190f631774f .contentTitle,.block_dbb8ba809c6046d5b6da276961639f9e .contentTitle,.block_b98187c6cc6c41eebf2dda7d25a3e36e .contentTitle) > span > span {
  color:#568203 !important;
  text-transform:uppercase !important;
}
.primaryContent > :is(.blockWrap_ab8caed80e374b6589255190f631774f,
  .blockWrap_dbb8ba809c6046d5b6da276961639f9e,
  .blockWrap_b98187c6cc6c41eebf2dda7d25a3e36e) { padding-top:40px !important; }
.primaryContent > :is(.blockWrap_fd9a3d643a344feb8d3dff95cf5c3271,
  .blockWrap_ae58bc1bb7aa4d98a62dce0bb939c5cd,
  .blockWrap_a9cb1aff9f404527936fb9f6bbf358ba,
  .blockWrap_f34be6c6d5fb479ba81ddf2d6011caf9,
  .blockWrap_abe5e561a4b842f4b5ae1ad5235a73cf) { margin:0 !important; padding:0 !important; min-height:0 !important; }
.primaryContent .blockWrap_c155da4a96fe438caf9a08e6de5350f7 .oty-visit { padding-top:0; }

.primaryContent > .blockWrap_c155da4a96fe438caf9a08e6de5350f7 { padding-top:32px !important; }

/* OTY global navigation and footer */
.headerAndNavContent,
.headerAndNavContentInner,
.headerAndNavContent .headerContainer,
.headerAndNavContent .navContainer {
  background: #faf9f4;
}
.headerAndNavContent {
  border-bottom: 1px solid #dbe0d3;
}
.navContent a {
  color: #405333 !important;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
}
.navContent > ul > li > a {
  font-size: 15px;
  border-radius: 5px;
}
.navContent a:hover,
.navContent a.selected {
  background: #e9eee3;
  color: #24311f !important;
}
.navContent .subNav {
  background: #faf9f4 !important;
  border-color: #dbe0d3 !important;
}
.navContent a:focus-visible,
.footerContent a:focus-visible {
  outline: 2px solid #688716;
  outline-offset: 3px;
}
.footerContainer,
.footerContent {
  background: #e9eee3;
  color: #24311f;
}
.footerContent {
  border-top: 1px solid #dbe0d3;
}
.footerContent .footerInner {
  padding: clamp(24px, 4vw, 52px) clamp(16px, 4vw, 48px);
}
.footerContent h2,
.footerContent h2 span {
  color: #24311f !important;
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: normal;
  text-transform: none;
}
.footerContent a {
  color: #405333 !important;
}
.footerContent .unstyledList a {
  display: inline-block;
  padding: .3em .55em;
  border-radius: 5px;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.footerContent a:hover {
  background: #faf9f4;
  color: #24311f !important;
}