/* =========================================================
   helpers.css
   Small one-job classes used straight in the HTML,
   e.g. <p class="muted small mb-2">.
   Spacing scale:  1 = 5px   2 = 10px   3 = 20px
   ========================================================= */

/* ---------- Text ---------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }

.bold   { font-weight: bold; }
.normal { font-weight: normal; }

.small  { font-size: 13px; }
.large  { font-size: 18px; }
.xlarge { font-size: 26px; }

.muted      { color: var(--muted); }
.text-blue  { color: var(--blue); }
.text-red   { color: var(--red); }
.text-white { color: var(--white); }

.mono       { font-family: var(--font-heading); }
.pre-wrap   { white-space: pre-wrap; }
.capitalize { text-transform: capitalize; }

.truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- Backgrounds ---------- */
.bg-grey      { background-color: #f3f1e7; }
.bg-dark-grey { background-color: var(--muted); color: var(--white); }

/* ---------- Borders ---------- */
.bordered   { border: 1px solid var(--line); }
.border-red { border-color: var(--red); }
.no-border  { border: none; }

.line-below {
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
}

.line-above {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

/* ---------- Spacing ---------- */
.m-0  { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 20px; }
.ml-1 { margin-left: 5px; }
.mr-1 { margin-right: 5px; }
.ml-auto { margin-left: auto; }

.p-0       { padding: 0; }
.padded-sm { padding: 5px 8px; }
.padded    { padding: 12px; }

/* ---------- Flexbox ---------- */
.flex           { display: flex; }
.flex-column    { flex-direction: column; }
.flex-wrap      { flex-wrap: wrap; }
.space-between  { justify-content: space-between; }
.justify-end    { justify-content: flex-end; }
.align-center   { align-items: center; }
.align-start    { align-items: flex-start; }
.grow           { flex: 1; }
.gap-1          { gap: 5px; }
.gap-2          { gap: 10px; }

.grid  { display: grid; }
.block { display: block; }
.hidden { display: none; }

/* ---------- Sizes ---------- */
.full-width   { width: 100%; }
.w-auto       { width: auto; }
.min-w-150    { min-width: 150px; }
.max-w-250    { max-width: 250px; }
.narrow       { max-width: 600px; }
.page-width   { max-width: 1000px; }
.center-block { margin-left: auto; margin-right: auto; }

/* boxes that scroll when the content is long */
.scroll-y    { overflow-y: auto; }
.max-h-300   { max-height: 300px; }
.max-h-500   { max-height: 500px; }
.max-h-90vh  { max-height: 90vh; }
.chart-box   { height: 300px; }

/* ---------- Other ---------- */
.clickable   { cursor: pointer; }
.float-right { float: right; }
