/* Eldritch Clockwork — CP437 Global Font Override (IBM VGA 8x16) */

/* 1) Register font */
@font-face{
  font-family: 'IBM-VGA-8x16';
  src: url('/fonts/Web437_IBM_VGA_8x16.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 2) Make it the default (loaded AFTER Core) */
html {
  font-size: 16px; /* multiples keep pixels crisp */
}

body,
h1, h2, h3, h4, h5, h6,
p, small, strong, em, span, a, li, dt, dd,
table, th, td,
code, pre, kbd, samp,
label, input, button, select, textarea,
.nav, .navbar, .dropdown-menu,
.badge, .ec-breadcrumb, .card, .modal,
.alert, .btn, .form-control {
  font-family: 'IBM-VGA-8x16', ui-monospace, Menlo, Consolas, monospace !important;
  line-height: 1;
  letter-spacing: 0;
  font-synthesis: none;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: pixelated;
  font-variant-ligatures: none;
  font-kerning: none;
}

/* Keep icon fonts intact (Font Awesome, etc.) */
.fa, .fas, .far, .fab {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
  -webkit-font-smoothing: antialiased;
  image-rendering: auto;
}

/* Mild vertical breathing room for controls */
.btn,
.form-control,
.input-group-text,
.badge { line-height: 1.2; }

/* Opt-out helper: apply to containers that should keep system UI fonts */
.use-system,
.use-system *:not(i):not(.fa):not(.fas):not(.far):not(.fab) {
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  image-rendering: auto;
  line-height: 1.3;
}

/* Normalize common components that Bootstrap sets smaller in px */
.navbar, .nav, .dropdown-menu,
.sidebar, .ec-col, .ec-panel, .panel, .card,
.list-group, .table, .modal, .badge,
.btn, .form-control, .input-group, .input-group-text {
  font-size: 1rem !important;
}

/* Keep small text intentionally small if you want it */
.small, small { font-size: 0.875rem; }         /* 14px on a 16px base */

/* Optional: headings tuned to the grid (crisp multiples of 16) */
h1 { font-size: 32px; }  /* 2x */
h2 { font-size: 24px; }  /* 1.5x */
h3 { font-size: 20px; }

/* --- Baseline: kill Core's 14px shorthand and force 16px everywhere --- */
html { font-size: 16px; }                       /* 1rem = 16px */
body {
  font: normal 1rem/1 'IBM-VGA-8x16', ui-monospace, Menlo, Consolas, monospace !important;
}

/* --- Normalize components Core shrinks --- */
.navbar, .nav, .dropdown-menu,
.sidebar, .ec-col, .ec-panel, .panel, .card,
.list-group, .table, .modal,
.btn, .form-control, .input-group, .input-group-text,
.badge { font-size: 1rem !important; }

/* Keep “small text” intentionally smaller (optional) */
.small, small, .small-note { font-size: 0.875rem !important; } /* 14px */

/* --- Your specific issue: Who’s Online rows using 12px via .meta --- */
/* If you have a container id/class, use it here for scoping. Replace #whos-online if needed. */
.row2.meta,
.row1.meta {
  font-size: 1rem !important;   /* 16px */
  line-height: 1;               /* VGA feel */
}

/* If the panel has a wrapper, prefer this scoped version instead: */
/*
#whos-online .row1,
#whos-online .row2,
#whos-online .row1.meta,
#whos-online .row2.meta { font-size: 1rem !important; line-height: 1; }
*/

/* normalize stubborn meta/time chips */
.row1.meta, .row2.meta, .ago, time.dt { font-size: 1rem !important; line-height: 1; }

/* Reset <b>/<strong>/<em> to normal weight/style */
b, strong, em, i {
  font-weight: 400;
  font-style: normal;
}
