/**
 * MDR Site Core — Icon System styles
 *
 * Design rules:
 *  - Icons inherit the current text color via fill: currentColor.
 *  - Default size is 1em so icons scale naturally with surrounding font-size.
 *  - inline-flex keeps icons vertically centred next to text without extra markup.
 *  - No width/height lives on the <svg> element — CSS is the single source of truth.
 */

/* ============================================================================
   Base
   ============================================================================ */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
}

.icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    pointer-events: none;
}

/* ============================================================================
   Relative size modifiers  (scale with the surrounding font-size)
   ============================================================================ */

.icon--sm  { width: 0.75em; height: 0.75em; }
.icon--lg  { width: 1.5em;  height: 1.5em;  }
.icon--xl  { width: 2em;    height: 2em;    }
.icon--2xl { width: 3em;    height: 3em;    }

/* ============================================================================
   Fixed pixel size modifiers  (use when outside a flowing text context)
   ============================================================================ */

.icon--16 { width: 16px; height: 16px; }
.icon--20 { width: 20px; height: 20px; }
.icon--24 { width: 24px; height: 24px; }
.icon--32 { width: 32px; height: 32px; }
.icon--48 { width: 48px; height: 48px; }
