/** --------------------------------------------------
*
*   COMPONENTS / CONTENT BLOCKS
*   Text one column SDC
*
*   TABLE OF CONTENTS
*   component properties
*   component spacing
*   layout options
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / FUNCTIONS
*   clamped
*
*   Clamps an output value between a min & max value
*   and interpolates the "preferred" value based on the
*   slope between the breakpoints at which the min/max
*   value should be used as the cut-off.
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / FUNCTIONS
*   rem
*
*   Converts a pixel value to rems.
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #rem
*  -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / FUNCTIONS
*   rnd
*
*   Built-in Sass math:round (and ceil/floor) functions
*   result in whole numbers only.
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #rnd
*  -------------------------------------------------- */
/** --------------------------------------------------
*   #clamped
*  -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / FUNCTIONS
*   iff
*
*   Syntactic sugar around Sass' built-in `if` function that
*   does not require you to pass a value for `$if-false`.
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #iff
*  -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / FUNCTIONS
*   implode
*
*   Variant of PHP array implode to convert list items into a string
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #implode
*  -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / FUNCTIONS
*   internal media query helpers to help convert & interpret MQ's
*
*   TABLE OF CONTENTS
*   mq
*   interpret-features
*   breakpoint-lookup
*   media-concatenate
*   convert units
*
*  -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / FUNCTIONS
*   strip-unit
*
*   Strips the unit of input and returns just the numerical value.
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #strip-unit
*  -------------------------------------------------- */
/** --------------------------------------------------
*   #mq [internal function]
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #interpret-features [internal function]
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #breakpoint-lookup
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #media-concatenate
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #convert units
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / FUNCTIONS
*   space
*
*   Returns the min or max value for a given key on
*   the size scale. Defaults to min (mobile first).
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / FUNCTIONS
*   token
*
*   Checks the design token maps for a given entry
*   and returns the result.
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   COLOR DESIGN TOKENS
*   These should never be used directly for styling.
*   Use abstractions in /variables/colors or components instead.
*
*   TABLE OF CONTENTS
*   color tokens
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   SIZE SCALE DESIGN TOKENS
*   These represent the mobile & desktop device size scale
*   from the Figma file as a min/max value per scale entry.
*   We cannot simply override the properties at a certain
*   breakpoint as this clashes with the component (container)
*   implementation.
*   By adding these tokens, we can at least maintain the naming
*   and values from the Figma file for easier reference without
*   having to resort to manually entering unrelated spacing units
*   all throughout the project.
*
*   TABLE OF CONTENTS
*   size scale tokens
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   TYPOGRAPHY DESIGN TOKENS
*   These should never be used directly for styling.
*   Use abstractions in /variables/font-styles instead.
*
*   TABLE OF CONTENTS
*   typographic tokens
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #token
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #space
*  -------------------------------------------------- */
/** --------------------------------------------------
*
*   COMPONENTS / CONTENT BLOCKS
*   Text one column SDC
*
*   TABLE OF CONTENTS
*   component properties
*   component spacing
*   layout options
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   VARIABLES
*   breakpoints
*
*   INFO
*   breakpoint configuration:
*   - $mq-breakpoints is a list of breakpoints which
*     can be entered in px (recommended), em or rem.
*     Output will always be in em units.
*     Order of the breakpoints in the list does not matter.
*   - $mq-presets is an (optional) list of frequent combos
*
*   SDC
*   Try to minimise the use of breakpoints inside SDC component
*   styles. Container Queries are preferred so the components
*   can adjust themselves without needing awareness of their context.
*   (For instance: on a page with sidebar vs full width)
*
*   TABLE OF CONTENTS
*   custom breakpoints
*   frequently used presets
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #custom breakpoints
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #frequently used presets
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   COMPONENTS / CONTENT BLOCKS
*   Text one column SDC
*
*   TABLE OF CONTENTS
*   component properties
*   component spacing
*   layout options
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / UTILS
*   queries
*
*   INFO
*   Media query mixins to be called directly or with
*   predefined keys configured in [variables/breakpoints]
*   +
*   basic container query mixin (inline-size, width > x)
*   sharing the same breakpoints and conversion logic as our
*   media query mixin
*
*   TABLE OF CONTENTS
*   fallback defaults
*   mq
*   mqset
*   cq
*
*  -------------------------------------------------- */
/** --------------------------------------------------
*   #fallback defaults
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #mq
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #mqset
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #cq
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / UTILS
*   create button variants
*
*   INFO
*   Mixin to generate all button variant & style combos.
*
*   TABLE OF CONTENTS
*   create-button-variants
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #create-button-variants
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / UTILS
*   tokens to custom property
*
*   INFO
*   Mixin to include all typographic related rules
*   based on a given token. Includes fluid type scale.
*
*   TABLE OF CONTENTS
*   tokens-to-custom-property
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #tokens-to-custom-property
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   COMPONENTS / CONTENT BLOCKS
*   Text one column SDC
*
*   TABLE OF CONTENTS
*   component properties
*   component spacing
*   layout options
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / UTILS
*   typography
*
*   INFO
*   Mixin to include all typographic related rules
*   based on a given token. Includes fluid type scale.
*
*   TABLE OF CONTENTS
*   font-styles
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*   #font
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   COMPONENTS / CONTENT BLOCKS
*   Text one column SDC
*
*   TABLE OF CONTENTS
*   component properties
*   component spacing
*   layout options
*
*   -------------------------------------------------- */
/** --------------------------------------------------
*
*   BASE / UTILS
*   visually hidden
*
*   TABLE OF CONTENTS
*   visually hidden
*   visually hidden - focusable
*
*  -------------------------------------------------- */
/** --------------------------------------------------
*  #visually hidden
*  -------------------------------------------------- */
/** --------------------------------------------------
*  #visually hidden - focusable
*  -------------------------------------------------- */
/** --------------------------------------------------
*   #component properties
*   -------------------------------------------------- */
.sdc--type-text-one-col .text-content {
  --sdc-padding-block: 2.5rem;
  --sdc-subtitle-space: 0.25rem;
  --sdc-text-space: 1rem;
  --sdc-actions-space: 1rem;
}
@container textonecol (width > 48em) {
  .sdc--type-text-one-col .text-content {
    --sdc-padding-block: var(--component-section-padding-topbot-max);
    /* these are mostly(?) similar across all components, but for SDC "independence" probably best to repeat? */
    --sdc-subtitle-space: 1rem;
    --sdc-text-space: 1.5rem;
    --sdc-actions-space: 2.5rem;
  }
}

/** --------------------------------------------------
*   #component spacing
*   -------------------------------------------------- */
.text-one-col-cq {
  container: textonecol/inline-size;
}
.text-one-col-cq .text-content {
  padding-block: var(--sdc-padding-block);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--unit-2);
}
@container textonecol (width > 48em) {
  .text-one-col-cq .text-content {
    gap: var(--unit-5) var(--unit-2);
  }
}

.sdc-text-one-col__content {
  max-width: var(--text-width);
  grid-column: 1/12;
}
.sdc-text-one-col__content > .subtitle:is(* + *) {
  margin-top: var(--sdc-subtitle-space);
}
.sdc-text-one-col__content > .text:is(* + *) {
  margin-top: var(--sdc-text-space);
}

/** --------------------------------------------------
*   #layout options
*   -------------------------------------------------- */
.sdc--type-text-one-col .sdc-text-one-col__content ul,
.sdc--type-text-one-col .sdc-text-one-col__content ol {
  display: inline-block;
}
.sdc--type-text-one-col.text-one-col--default .sdc-text-one-col__content {
  margin-inline: 0;
}
.sdc--type-text-one-col.text-one-col--default .sdc-text-one-col__content,
.sdc--type-text-one-col.text-one-col--default .sdc--type-action-bar {
  grid-column: 1/span 12;
}
@container textonecol (width > 48em) {
  .sdc--type-text-one-col.text-one-col--default .sdc-text-one-col__content {
    grid-column: 1/span 9;
  }
  .sdc--type-text-one-col.text-one-col--default .sdc--type-action-bar {
    grid-column: 10/span 12;
    margin-block-start: 0;
  }
  .sdc--type-text-one-col.text-one-col--default .sdc--type-action-bar .sdc-inner--action-bar {
    flex-flow: row-reverse wrap;
  }
}
.sdc--type-text-one-col.text-one-col--center .sdc-text-one-col__content,
.sdc--type-text-one-col.text-one-col--center .sdc--type-action-bar {
  grid-column: 1/span 12;
}
.sdc--type-text-one-col.text-one-col--center .sdc-text-one-col__content {
  margin-inline: auto;
  text-align: center;
}
.sdc--type-text-one-col.text-one-col--center .sdc-text-one-col__content ul:not(.check-list, .checklist-checks),
.sdc--type-text-one-col.text-one-col--center .sdc-text-one-col__content ol:not(.check-list, .checklist-checks) {
  margin-inline: auto;
}
.sdc--type-text-one-col.text-one-col--center .sdc-text-one-col__content ul:not(.check-list, .checklist-checks) li,
.sdc--type-text-one-col.text-one-col--center .sdc-text-one-col__content ol:not(.check-list, .checklist-checks) li {
  text-align: left;
}
@container textonecol (width > 48em) {
  .sdc--type-text-one-col.text-one-col--center .sdc-text-one-col__content ul:not(.check-list, .checklist-checks),
  .sdc--type-text-one-col.text-one-col--center .sdc-text-one-col__content ol:not(.check-list, .checklist-checks) {
    max-width: 70%;
  }
}
.sdc--type-text-one-col.text-one-col--center .sdc-inner--action-bar {
  justify-content: center;
}
.sdc--type-text-one-col.text-one-col--buttons-right .sdc-text-one-col__content {
  flex: 1;
  grid-column: 1/span 12;
}
@container textonecol (width > 48em) {
  .sdc--type-text-one-col.text-one-col--buttons-right .sdc-text-one-col__content {
    grid-column: 1/span 9;
  }
}
.sdc--type-text-one-col.text-one-col--buttons-right .sdc--type-action-bar {
  flex: 0 0 auto;
  grid-column: 1/span 12;
  display: flex;
  flex-wrap: wrap;
  container: unset;
}
@container textonecol (width > 48em) {
  .sdc--type-text-one-col.text-one-col--buttons-right .sdc--type-action-bar {
    justify-content: flex-end;
    grid-column: 10/span 12;
  }
}
@container textonecol (width > 48em) {
  .sdc--type-text-one-col.text-one-col--buttons-right .sdc-inner-container {
    display: flex;
    align-items: start;
  }
}
.sdc--type-text-one-col:has(.sdc-inner--action-bar:empty) .sdc--type-action-bar {
  display: none;
}
