/* ============================================================
   icon-list.css — icon circle + title + description
   ============================================================
   Rows of a filled circular icon beside a stacked title + description
   — e.g. the role list on a project page.
   Conventions: _shared/bricks-builder/css-conventions.md

   Last updated: 2026-10-11 (auto-stamped by the pre-commit hook)
   ============================================================ */
.icon-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
}

.icon-list-item {
    display: flex;
    flex-direction: row;
    /* Bricks forces flex-wrap: wrap on every Block under 768px, which
       pushed the text below the icon on phones. The icon stays on the
       left at every width (Katrine, 06-09-2026). */
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--space-s);
}

/* Filled brand circle; the icon inside is centred and sits in white.
   The circle is the icon plus a ring of space, so it follows the tokens. */
.icon-list-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    inline-size: calc(var(--icon-s) + 2 * var(--space-2xs));
    block-size: calc(var(--icon-s) + 2 * var(--space-2xs));
    border-radius: var(--radius-full);
    background-color: var(--action-primary);
    color: var(--text-on-dark);
}
/* House SVG icon (SVG element on project pages, Icon element in the
   design-system demo; both put their classes ON the <svg>). */
.icon-list-icon svg {
    block-size: var(--icon-s);
    inline-size: auto;
}

/* Title + description render as <p> tags with browser default margins
   (Bricks doesn't reset them) — zero them and set ONE small gap under
   the title. Proximity principle: tight inside a title/description pair
   (--space-2xs), airy between list items (--space-m on .icon-list). */
.icon-list-title {
    margin-block: 0 var(--space-2xs);
    font-size: var(--text-m);
    font-weight: 700;
    line-height: var(--line-height-heading);
    color: var(--text-heading);
}

.icon-list-text {
    margin-block: 0;
    font-size: var(--text-s);
    color: var(--text-secondary);
}
