/* ==========================================================================
   Utilities — small single-purpose helpers, plus the WordPress core alignment
   and caption classes every theme has to provide.
   ========================================================================== */

/* --- WordPress core classes --------------------------------------------- */

.alignleft {
    float: left;
    margin-inline-end: var( --stsed-space-sm );
    margin-block-end: var( --stsed-space-2xs );
}

.alignright {
    float: right;
    margin-inline-start: var( --stsed-space-sm );
    margin-block-end: var( --stsed-space-2xs );
}

.aligncenter {
    display: block;
    margin-inline: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var( --stsed-text-sm );
    color: var( --stsed-color-text-muted );
    margin-block-start: var( --stsed-space-3xs );
}

.sticky,
.gallery-caption,
.bypostauthor {
    /* Required by the theme review guidelines; no styling needed. */
}

/* --- Helpers ------------------------------------------------------------ */

.stsed-u-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset( 50% );
    white-space: nowrap;
    border: 0;
}

.stsed-u-muted {
    color: var( --stsed-color-text-muted );
}

.stsed-u-small {
    font-size: var( --stsed-text-sm );
}

.stsed-u-center {
    text-align: center;
}

.stsed-u-flow > * + * {
    margin-block-start: var( --stsed-space-sm );
}

.stsed-u-no-margin {
    margin: 0;
}
