/* ============================================================
   info-box.css — tip / notice box with an info icon
   ============================================================
   A rounded, tinted box for a short tip or notice. Put the class straight
   on a Bricks Text element and write the tip in it. The info icon
   (Font Awesome Solid circle-info) is drawn by the CSS (mask
   technique, like the ticked lists), so no icon element is needed.
   Inner heading/paragraph spacing comes from the editor rhythm set in
   Bricks: Theme Styles › Contextual spacing (not from a CSS file).
   Conventions: _shared/bricks-builder/css-conventions.md

   Last updated: 2026-10-12 (auto-stamped by the pre-commit hook)
   ============================================================ */
.info-box {
    position: relative;                /* anchors the info icon */
    background-color: var(--surface-info);
    color: var(--text-on-light);       /* the box stays light in dark mode */
    border: var(--border-width-base) solid var(--border-info);
    border-radius: var(--radius-3);
    padding: var(--space-m);
    /* extra start padding = room for the info icon */
    padding-inline-start: calc(var(--space-m) + 1.4em + var(--space-xs));
}

/* The info icon — background-color shows THROUGH the mask, so the
   icon takes the token colour. */
.info-box::before {
    content: "";
    position: absolute;
    inset-inline-start: var(--space-m);
    inset-block-start: var(--space-m);  /* level with the first line */
    inline-size: 1.4em;
    block-size: 1.4em;
    background-color: var(--text-info);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/%3E%3C/svg%3E") no-repeat center / contain;
}
