/* ══════════════════════════════════════════
   Elite Creed — Base Typography & Global
   ══════════════════════════════════════════ */

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background: var(--bg-page);
    background-color: var(--bg-page-solid);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    line-height: var(--leading-tight);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}
p:last-child { margin-bottom: 0; }

a {
    color: var(--color-primary);
    transition: color var(--duration-fast);
}
a:hover {
    color: var(--color-primary-strong);
}

strong, b {
    font-weight: var(--fw-semibold);
}

small {
    font-size: var(--fs-small);
}

code {
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    background: rgba(255,255,255,0.06);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}

hr {
    border: none;
    border-top: 1px solid var(--color-border-soft);
    margin: var(--space-6) 0;
}

::selection {
    background: rgba(255, 215, 0, 0.3);
    color: var(--color-text-primary);
}

/* Shared inline icon renderer */
.ph,
.ph-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1em;
    min-height: 1em;
    line-height: 1;
    vertical-align: middle;
    font-style: normal;
    flex-shrink: 0;
}

.ph svg,
.ph-fill svg {
    width: 1em;
    height: 1em;
    display: block;
    overflow: visible;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ph-fill svg .icon-fill {
    fill: currentColor;
    stroke: none;
    opacity: 0.14;
}

.ph-fill svg .icon-stroke-fill {
    fill: currentColor;
    stroke: currentColor;
}

.ph-spin svg {
    animation: spin 0.8s linear infinite;
}

/* Utility classes */
.text-gold    { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-danger  { color: var(--color-danger) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-info    { color: var(--color-info) !important; }
.text-muted   { color: var(--color-text-muted) !important; }
.text-center  { text-align: center !important; }
.text-right   { text-align: right !important; }
.text-small   { font-size: var(--fs-small) !important; }
.text-xs      { font-size: var(--fs-xs) !important; }
.fw-medium    { font-weight: var(--fw-medium) !important; }
.fw-semibold  { font-weight: var(--fw-semibold) !important; }
.fw-bold      { font-weight: var(--fw-bold) !important; }

.mt-0  { margin-top: 0 !important; }
.mt-2  { margin-top: var(--space-2) !important; }
.mt-4  { margin-top: var(--space-4) !important; }
.mt-6  { margin-top: var(--space-6) !important; }
.mt-8  { margin-top: var(--space-8) !important; }
.mb-0  { margin-bottom: 0 !important; }
.mb-2  { margin-bottom: var(--space-2) !important; }
.mb-4  { margin-bottom: var(--space-4) !important; }
.mb-6  { margin-bottom: var(--space-6) !important; }
.mb-8  { margin-bottom: var(--space-8) !important; }

.d-none    { display: none !important; }
.d-block   { display: block !important; }
.d-flex    { display: flex !important; }
.d-grid    { display: grid !important; }
.gap-2     { gap: var(--space-2) !important; }
.gap-4     { gap: var(--space-4) !important; }
.gap-6     { gap: var(--space-6) !important; }
.align-center   { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.flex-wrap  { flex-wrap: wrap !important; }

.w-100 { width: 100% !important; }
