/* Advanced Fuller School of Massage | Mobile layout repair */

@media (max-width: 850px) {
  /* Use the homepage's existing photo, actions and curve. */
  body.home #main #content #approved-homepage .fuller-welcome {
    position: relative;
    overflow: hidden;
  }

  body.home #main #content #approved-homepage .fuller-welcome-inner {
    width: 100%;
    max-width: none;
    gap: 18px !important;
    padding: 24px 0 0 !important;
  }

  body.home #main #content #approved-homepage .fuller-welcome-copy {
    min-width: 0;
    width: min(calc(100% - 32px), 620px);
    margin-inline: auto;
    text-align: center;
  }

  body.home #main #content #approved-homepage .fuller-welcome-location {
    display: block;
    margin-block-end: 9px;
    font-size: .75rem;
    line-height: 1.4;
    text-wrap: balance;
  }

  body.home #main #content #approved-homepage .fuller-welcome #ap-home-title {
    max-width: 24ch !important;
    margin-inline: auto;
    font-size: clamp(1.45rem, 6.9vw, 2.5rem) !important;
    line-height: 1.1 !important;
    text-wrap: balance;
  }

  body.home #main #content #approved-homepage .fuller-welcome-intro {
    max-width: 44ch;
    margin: 10px auto 0;
    line-height: 1.45;
    text-wrap: balance;
  }

  body.home #main #content #approved-homepage .fuller-welcome-actions {
    justify-content: center;
    gap: 8px !important;
    margin: 16px auto 0;
  }

  body.home #main #content #approved-homepage .fuller-welcome-actions .af-button {
    min-height: 48px;
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
  }

  body.home #main #content #approved-homepage .fuller-welcome-actions .fuller-welcome-school {
    justify-self: stretch;
    width: auto;
    min-height: 48px;
    padding-inline: 10px !important;
    border: 1px solid #97b8b3;
    text-align: center;
    text-decoration: none;
  }

  body.home #main #content #approved-homepage .fuller-welcome-photo {
    display: block;
    width: 100%;
    height: clamp(155px, 48vw, 290px);
    max-height: none !important;
    border-radius: 0;
    aspect-ratio: auto !important;
    object-fit: cover;
    object-position: center 16%;
  }

  body.home #main #content #approved-homepage .fuller-welcome-curve {
    display: block;
    position: absolute;
    inset: auto 0 -1px;
    width: 100%;
    height: clamp(16px, 4.5vw, 27px);
    pointer-events: none;
  }
}

@media (max-width: 700px) {
  /* Keep short page titles on one line when the available width allows it. */
  #main #content :is([id^="fuller-page-"], #fuller-program-overview)
  :is(.service-hero, .detail-hero, .outcomes-hero) :is(.hero-copy, .outcomes-hero-grid) h1 {
    max-inline-size: 100% !important;
    font-size: clamp(1.5rem, 6.6vw, 1.875rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  #main #content #fuller-page-instructors .ip-profiles .ip-profile {
    grid-template-columns: auto minmax(0, 1fr) !important;
    column-gap: clamp(10px, 3.1vw, 16px);
  }

  #main #content #fuller-page-instructors .ip-profile > .ip-info {
    min-width: 0;
  }

  #main #content #fuller-page-instructors .ip-info h2 {
    font-size: clamp(1rem, 4.4vw, 1.1875rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 900px) {
  /* The template's shared image size was stretching portraits to the grid row. */
  #main #content #fuller-page-instructors .ip-profile > img.ip-photo {
    --portrait-size: clamp(3rem, 15vw, 5rem);
    display: block;
    width: var(--portrait-size) !important;
    height: var(--portrait-size) !important;
    max-width: none !important;
    max-height: none !important;
    align-self: start;
    justify-self: start;
    aspect-ratio: 1;
    object-fit: cover !important;
    object-position: center;
  }
}

@media (max-width: 800px) {
  /* Restyle the provider's real verification button in the existing footer slot. */
  body .fusion-footer #fuller-footer .fuller-trustedsite-slot {
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 0;
  }

  body .fusion-footer #fuller-footer .fuller-trustedsite-slot #trustedsite-tm-image {
    min-height: 44px;
    background-size: 84px auto !important;
    background-position: center !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    outline-offset: 3px;
    transition: none !important;
  }
}
/* Advanced Fuller School of Massage | Desktop layout refinement */

@media (min-width: 1025px) {
  /* Compact the existing Avada header and align its two right-hand rows. */
  .fusion-tb-header > header.fusion-fullwidth:has(.contact-info-pill) {
    padding-block: 12px !important;
  }

  .fusion-tb-header > header.fusion-fullwidth:has(.contact-info-pill) > .fusion-builder-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    width: min(100%, 1248px) !important;
    margin-inline: auto !important;
  }

  .fusion-tb-header > header.fusion-fullwidth:has(.contact-info-pill) > .fusion-builder-row > .fusion-layout-column {
    --awb-spacing-left-large: 0%;
    --awb-spacing-right-large: 0%;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
  }

  .fusion-tb-header > header.fusion-fullwidth:has(.contact-info-pill) > .fusion-builder-row > .fusion-layout-column > .fusion-column-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .fusion-tb-header > header:has(.contact-info-pill) .fusion-image-element {
    --awb-max-width: 120px !important;
  }

  .fusion-tb-header > header:has(.contact-info-pill) .header-icon {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 4px !important;
    text-align: end;
  }

  .fusion-tb-header > header:has(.contact-info-pill) .contact-info-pill {
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .fusion-tb-header > header:has(.contact-info-pill) .contact-info-pill p {
    margin: 0 !important;
  }

  .fusion-tb-header > header:has(.contact-info-pill) .contact-info-pill br {
    display: none;
  }

  /* Avada expands this nested row to 104% for its default column gutters. */
  .fusion-tb-header > header .fusion-builder-row-inner:has(.contact-info-pill) {
    margin-inline: 0 !important;
  }

  .fusion-tb-header > header .fusion-builder-row-inner[style*="width:104%"]:has(.contact-info-pill) {
    box-sizing: border-box;
    padding-inline-end: 4%;
  }

  .fusion-tb-header > header:has(.contact-info-pill) .fusion-builder-row-inner > .fusion-layout-column {
    margin-block: 0 !important;
  }

  .fusion-tb-header > header:has(.contact-info-pill) .fusion-builder-row-inner > .fusion-layout-column > .fusion-column-wrapper {
    margin-inline: 0 !important;
  }

  .fusion-tb-header > header:has(.contact-info-pill) .awb-menu.awb-menu_desktop {
    --awb-gap: clamp(21px, 2.4vw, 35px) !important;
  }

  /* Align the homepage content with the interior page reading width. */
  #main #content #approved-homepage {
    --fuller-desktop-width: min(calc(100% - 88px), 1248px);
  }

  body.home #main #content #approved-homepage .fuller-welcome {
    min-height: clamp(360px, 28vw, 445px);
    padding-block: 40px 62px;
  }

  body.home #main #content #approved-homepage .fuller-welcome-inner {
    width: var(--fuller-desktop-width);
  }

  body.home #main #content #approved-homepage .fuller-welcome #ap-home-title {
    max-inline-size: 100% !important;
    width: auto !important;
    font-size: clamp(2.125rem, 3.05vw, 3rem) !important;
    line-height: 1.12 !important;
    text-wrap: balance;
  }

  body.home #main #content #approved-homepage .fuller-welcome-photo {
    object-position: center 35%;
  }

  body.home #main #content #approved-homepage .fuller-welcome::after {
    background: linear-gradient(90deg, rgb(9 38 43 / 59%), rgb(9 38 43 / 76%) 47%, rgb(9 38 43 / 62%) 76%, rgb(9 38 43 / 46%));
  }

  body.home #main #content #approved-homepage .fuller-welcome-intro {
    margin-top: 12px;
  }

  body.home #main #content #approved-homepage .fuller-welcome-actions {
    margin-top: 18px;
  }

  body.home #main #content #approved-homepage .fuller-welcome-prices {
    margin-top: 4px;
    font-size: .9375rem;
  }

  body.home #main #content #approved-homepage .fuller-next-steps-inner {
    width: var(--fuller-desktop-width);
    gap: 32px;
    padding-block: 26px 30px;
  }

  body.home #main #content #approved-homepage .fuller-next-steps article + article {
    padding-inline-start: 32px;
  }

  body.home #main #content #approved-homepage .af-section > .af-wrap,
  body.home #main #content #approved-homepage .af-visit > .af-wrap {
    width: var(--fuller-desktop-width) !important;
    padding-inline: 0 !important;
  }

  body.home #main #content #approved-homepage > .af-section {
    padding-block: clamp(44px, 4vw, 60px);
  }

  /* Keep short interior titles prominent and align copy beside the existing image. */
  #main #content :is([id^="fuller-page-"], #fuller-program-overview)
  :is(.service-hero, .detail-hero, .outcomes-hero) :is(.hero-copy, .outcomes-hero-grid) h1 {
    max-inline-size: 100%;
    font-size: clamp(2.125rem, 3vw, 2.625rem) !important;
    line-height: 1.13 !important;
    letter-spacing: -.035em;
    text-wrap: balance;
  }

  #main #content :is(#fuller-page-services, #fuller-page-school, #fuller-page-instructors, #fuller-page-licensed, #fuller-page-contact)
  :is(.service-hero, .detail-hero) {
    padding-block: 34px 40px !important;
  }

  body .fusion-footer #fuller-footer .fuller-trustedsite-slot #trustedsite-tm-image {
    border-radius: 6px !important;
    background-position: center !important;
    box-shadow: none !important;
  }
}

/* Use a square portrait from the tablet breakpoint up. */
@media (min-width: 901px) {
  #main #content #fuller-page-instructors .ip-profile > img.ip-photo {
    width: 80px !important;
    height: 80px !important;
    align-self: start;
    justify-self: start;
    aspect-ratio: 1;
    object-fit: cover !important;
  }
}

/* The shorter heading and two actions leave room for the existing photo. */
#main #content #approved-homepage .fuller-welcome-actions .af-button {
  text-align: center;
}

#main #content #approved-homepage .fuller-next-steps article {
  min-width: 0;
}

/* Keep the date and the longer, more precise label together on narrow phones. */
@media (max-width: 450px) {
  #main #content :is(#approved-homepage, [id^="fuller-page-"])
  .afsm-class-date-card dl > div {
    column-gap: 8px;
  }

  #main #content :is(#approved-homepage, [id^="fuller-page-"])
  .afsm-class-date-card dd {
    white-space: nowrap;
  }
}

/* Shared visual foundations for the public Fuller templates. */
:root {
  --fuller-paper: #fcfbf8;
  --fuller-mist: #edf4f0;
  --fuller-line: #d4e1db;
  --fuller-deep-teal: #123c40;
  --fuller-image-radius: 16px;
}

.fusion-tb-header > header.fusion-fullwidth:has(.contact-info-pill) {
  box-shadow: 0 1px 0 rgb(20 58 62 / 9%);
}

#main #content :is([id^="fuller-page-"], #fuller-program-overview)
:is(.service-hero, .detail-hero, .outcomes-hero) {
  background: var(--fuller-paper);
}

#main #content :is([id^="fuller-page-"], #fuller-program-overview)
:is(.service-hero, .detail-hero) .hero-image {
  border-radius: var(--fuller-image-radius) !important;
  overflow: hidden;
  box-shadow: 0 14px 26px -20px rgb(18 60 64 / 55%);
}

#main #content :is([id^="fuller-page-"], #fuller-program-overview)
:is(.ms-section.ms-soft, .fs-credentials) {
  background-color: var(--fuller-mist);
}

#main #content #fuller-page-services #ms-pricing .ms-pricing-grid > .ms-card,
#main #content #fuller-page-instructors .ip-profiles > .ip-profile {
  border-color: var(--fuller-line) !important;
}

#main #content #fuller-page-instructors .ip-profiles > .ip-profile {
  box-shadow: 0 8px 24px -22px rgb(18 60 64 / 55%);
}

@media (min-width: 851px) {
  body.home #main #content #approved-homepage .fuller-welcome::after {
    background:
      radial-gradient(ellipse at 47% 42%, rgb(8 34 38 / 83%) 0%, rgb(8 34 38 / 59%) 36%, transparent 76%),
      linear-gradient(90deg, rgb(12 45 48 / 70%) 0%, rgb(12 45 48 / 40%) 61%, rgb(12 45 48 / 27%) 100%);
  }

  body.home #main #content #approved-homepage .fuller-welcome-photo {
    object-position: center 29%;
  }
}

/* Give the homepage introduction and the class schedule separate columns. */
body.home #main #content #approved-homepage #education {
  background: var(--fuller-paper);
}

body.home #main #content #approved-homepage.af-home.ap-approved #education .af-school-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(20px, 2.5vw, 34px) !important;
}

body.home #main #content #approved-homepage #education .home-education-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

body.home #main #content #approved-homepage #education .home-education-intro h2 {
  font-size: clamp(1.7rem, 2.55vw, 2.5rem) !important;
  line-height: 1.14;
}

body.home #main #content #approved-homepage #education .home-education-intro .home-education-hours {
  display: grid;
  gap: 2px;
  margin-block-start: 16px !important;
  color: #485e63;
}

body.home #main #content #approved-homepage #education .home-education-hours strong {
  color: var(--fuller-deep-teal);
}

body.home #main #content #approved-homepage #education .home-education-intro .af-actions {
  justify-content: flex-start;
  gap: 8px;
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates {
  grid-column: auto;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--fuller-line);
  border-radius: var(--fuller-image-radius);
  background: var(--fuller-mist);
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates > h3 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-cards {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-block-start: 1px solid #c7dad2;
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-card {
  padding: 13px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-card + .afsm-class-date-card {
  border-block-start: 1px solid #c7dad2;
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-card h4 {
  margin: 0 0 7px;
  font-size: 1.0625rem;
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-card dl {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: none;
  grid-row: auto;
  grid-column: auto;
  align-items: baseline;
  gap: 5px 10px;
  padding-block: 5px;
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-card dt {
  margin: 0;
  font-size: .875rem;
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-card dd {
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.home #main #content #approved-homepage #education .afsm-home-class-dates .home-class-completion-note {
  margin: 10px 0 0 !important;
  color: #485e63;
  font-size: .875rem !important;
  line-height: 1.55;
}

body.home #main #content #approved-homepage #education .home-school-resources {
  padding-block-start: 6px;
  border-color: var(--fuller-line);
}

#main #content :is([id^="fuller-page-"], #fuller-program-overview) .afsm-class-date-band {
  background: var(--fuller-mist);
}

@media (min-width: 640px) {
  body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(12px, 1.5vw, 24px);
  }

  body.home #main #content #approved-homepage #education .afsm-home-class-dates .afsm-class-date-card + .afsm-class-date-card {
    padding-inline-start: clamp(12px, 1.5vw, 24px);
    border-block-start: 0;
    border-inline-start: 1px solid #c7dad2;
  }
}

@media (min-width: 1100px) {
  body.home #main #content #approved-homepage.af-home.ap-approved #education .af-school-grid {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr) !important;
    align-items: center;
  }

  body.home #main #content #approved-homepage #education .home-education-intro h2 {
    max-width: 20ch;
    text-wrap: balance;
  }

  body.home #main #content #approved-homepage #education .home-education-intro header p {
    max-width: 46ch;
  }
}

@media (max-width: 560px) {
  body.home #main #content #approved-homepage #education .home-education-intro .af-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Carry the same proportions and colors into syllabi, policies and forms. */
#main #content :is([id^="fuller-page-syllabus-"], #fuller-page-policies, #fuller-page-tuition,
  #fuller-page-privacy-policy, #fuller-page-service-policy, #fuller-page-gift-card-policy) .sy-layout {
  min-inline-size: 0;
}

#main #content :is([id^="fuller-page-syllabus-"], #fuller-page-policies, #fuller-page-tuition,
  #fuller-page-privacy-policy, #fuller-page-service-policy, #fuller-page-gift-card-policy) .sy-chapter {
  min-inline-size: 0;
  scroll-margin-block-start: 1rem;
}

#main #content :is([id^="fuller-page-syllabus-"], #fuller-page-policies, #fuller-page-tuition,
  #fuller-page-privacy-policy, #fuller-page-service-policy, #fuller-page-gift-card-policy) .sy-chapter h2 {
  font-size: clamp(1.25rem, 1.75vw, 1.625rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em;
}

#main #content :is([id^="fuller-page-syllabus-"], #fuller-page-policies, #fuller-page-tuition,
  #fuller-page-privacy-policy, #fuller-page-service-policy, #fuller-page-gift-card-policy) .sy-table-wrap {
  max-inline-size: 100%;
  overflow-x: auto;
  border-color: var(--fuller-line);
}

#main #content :is([id^="fuller-page-"], #fuller-program-overview)
:is(.afsm-document-card, .fs-state-result, .afsm-class-date-card) {
  border-color: var(--fuller-line) !important;
}

#main #content :is(.fuller-site, .massage-detail) :is(details.fs-faq-item, details.fq-item, details.fs-policy-detail) {
  border-color: var(--fuller-line) !important;
}

#main #content :is(.fuller-site, .massage-detail)
:is(details.fs-faq-item, details.fq-item, details.fs-policy-detail) > summary {
  min-block-size: 44px;
  overflow-wrap: anywhere;
}

#main #content :is(.fuller-site, .massage-detail)
:is(details.fs-faq-item, details.fq-item, details.fs-policy-detail) > summary:focus-visible {
  outline: 2px solid #205f65;
  outline-offset: 2px;
  border-radius: 4px;
}

#main #content :is(#fuller-page-calendar, #fuller-page-calculator) iframe.fs-tool-frame {
  display: block;
  max-inline-size: 100%;
  border-color: var(--fuller-line);
  border-radius: 12px;
}

#main #content #fuller-public-sitemap .fuller-sitemap-header,
#main #content #fuller-public-sitemap .fuller-sitemap-section {
  border-color: var(--fuller-line);
}

#main #content #fuller-public-sitemap .fuller-sitemap-section a {
  overflow-wrap: anywhere;
}

/* Keep the separate blog and FAQ templates in the same visual system. */
body.page-id-25304 #main #content .fuller-blog-heading {
  max-inline-size: 1248px;
  margin: 0 auto 24px;
  padding-block: 18px 21px;
  border-block-end: 1px solid var(--fuller-line);
}

body.page-id-25304 #main #content .fuller-blog-heading h1,
body.single-avada_faq #main #content .fuller-faq-title {
  margin: 0;
  color: var(--fuller-deep-teal);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem) !important;
  line-height: 1.15 !important;
  text-wrap: balance;
}

body.single-avada_faq #main #content .fuller-faq-title {
  margin-block-end: 16px;
}

body.single-post #main .fusion-tb-published-read-time,
body.single-post #main .fusion-tb-published-read-time + .fusion-meta-tb-sep {
  display: none;
}

body.single-avada_faq #main article:not(:has(#respond, [name="respond"]))
.fusion-meta-info-wrapper > a[href$="#respond"],
body.single-avada_faq #main article:not(:has(#respond, [name="respond"]))
.fusion-meta-info-wrapper > .fusion-inline-sep:has(+ a[href$="#respond"]) {
  display: none !important;
}

body.single-post #main #content .afsm-article-modern .afsm-title {
  line-height: 1.13;
  text-wrap: balance;
}

body.single-jobs #main .job-post .position_description h1.jobs-row-label {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem) !important;
  line-height: 1.16 !important;
  text-wrap: balance;
}

@media (max-width: 700px) {
  #main #content :is([id^="fuller-page-syllabus-"], #fuller-page-policies, #fuller-page-tuition,
    #fuller-page-privacy-policy, #fuller-page-service-policy, #fuller-page-gift-card-policy) .sy-chapter {
    overflow-wrap: anywhere;
  }
}

/* Keep the main article readable while Avada initializes its animations. */
body.single-post #main .fusion-layout-column.fusion-animated:has(> .fusion-column-wrapper .fusion-content-tb .afsm-article-modern) {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}
