/*
 * Copyright (c) 2026, Salesforce, Inc.,
 * All rights reserved.
 * For full license text, see the LICENSE.txt file
 */

[class*='slds-template_'] {
  --_slds-c-template-sizing-gap: 1rem;
  --_slds-c-template-profile-sizing-gap: 8rem 0.75rem 0.75rem;
}

.slds-template__container {
  position: relative;
  height: 100%;
  width: 100%;
}

.slds-template_default {
  padding: var(--_slds-c-template-sizing-gap);

  &.slds-brand-band::before {
    position: fixed;
    top: 5.625rem;
  }

  &.slds-brand-band.slds-brand-band_medium::after {
    position: fixed;
    top: 15rem;
  }
}

.slds-template_bottom-magnet {
  padding: var(--_slds-c-template-sizing-gap) var(--_slds-c-template-sizing-gap) 0
    var(--_slds-c-template-sizing-gap);
}

.slds-template_profile {
  padding: var(--_slds-c-template-profile-sizing-gap);
}

/* This template is typically used on a content area where there's a left sticky nav especially when it will scroll and needs no right or bottom gutter */
.slds-template__content {
  padding: var(--_slds-c-template-sizing-gap) var(--_slds-c-template-sizing-gap) 0
    var(--_slds-c-template-sizing-gap);
}

/* This template is used on an iframe with an app inside that will scroll and needs no right or bottom gutter */
.slds-template_app {
  padding: var(--_slds-c-template-sizing-gap) 0 0 var(--_slds-c-template-sizing-gap);
}

/* This template is used on the oneAloha wrapper surrounding an iframed page and has now been extended so that it effectively neutralizes the space created by brand band */
.slds-template_iframe {
  width: calc(100% + (var(--_slds-c-template-sizing-gap) * 2));
  height: calc(100% + (var(--_slds-c-template-sizing-gap) * 2));
  margin: calc(var(--_slds-c-template-sizing-gap) * -1);
  background-color: var(--slds-g-color-surface-container-1);
}
