/* Base type and a small, fixed set of layout utilities. Spacing steps: 0 2 4 6 8 12 16 20 24 32 40 48. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--fg); font: 400 14px/20px var(--font-sans);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
a.link, .link { color: var(--primary); cursor: pointer; }
a.link:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
svg.ic { display: inline-block; flex-shrink: 0; vertical-align: -3px; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding-left: 20px; }
li + li { margin-top: 4px; }
hr, .divider { border: 0; border-top: 1px solid var(--border); margin: 0; width: 100%; }
button { font: inherit; color: inherit; }

/* Type */
.h1 { font: 600 24px/32px var(--font-display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h2 { font: 600 18px/26px var(--font-display); margin: 0; }
.h3 { font: 600 15px/22px var(--font-sans); margin: 0; }
.lead { font-size: 15px; line-height: 23px; color: var(--muted-fg); }
.small { font-size: 13px; line-height: 18px; }
.xs { font-size: 12px; line-height: 16px; }
.big { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; }
.eyebrow { font: 500 11.5px/16px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted-fg); }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.muted { color: var(--muted-fg); }
.subtle { color: var(--subtle-fg); }
.b { font-weight: 600; }
.m { font-weight: 500; }
.strike { text-decoration: line-through; color: var(--subtle-fg); }
.ok-fg { color: var(--ok); } .warn-fg { color: var(--warn); } .bad-fg { color: var(--bad); } .info-fg { color: var(--info); }
.primary-fg { color: var(--primary); }
.tr { text-align: right; } .tc { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.balance { text-wrap: balance; }

/* Flex and grid */
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.jend { justify-content: flex-end; }
.jcenter { justify-content: center; }
.start { align-items: flex-start; }
.end { align-items: flex-end; }
.center { align-items: center; }
.stretch { align-items: stretch; }
.base { align-items: baseline; }
.grow { flex: 1 1 0; min-width: 0; }
.shrink0 { flex-shrink: 0; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 1fr) 340px; }   /* content + right rail */
.cols-side { grid-template-columns: 260px minmax(0, 1fr); }   /* left rail + content */
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-all { grid-column: 1 / -1; }

.gap-0 { gap: 0; } .gap-2 { gap: 2px; } .gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.ml-auto { margin-left: auto; }
.p-0 { padding: 0; } .p-8 { padding: 8px; } .p-12 { padding: 12px; } .p-16 { padding: 16px; } .p-20 { padding: 20px; }
.p-24 { padding: 24px; } .px-16 { padding-left: 16px; padding-right: 16px; } .py-8 { padding-top: 8px; padding-bottom: 8px; }

.w-full { width: 100%; }
.w-120 { width: 120px; } .w-160 { width: 160px; } .w-200 { width: 200px; } .w-240 { width: 240px; }
.w-320 { width: 320px; } .w-400 { width: 400px; }
.maxw-480 { max-width: 480px; } .maxw-640 { max-width: 640px; } .maxw-720 { max-width: 720px; } .maxw-960 { max-width: 960px; }
.relative { position: relative; }
.rounded { border-radius: var(--radius); }
.fill-muted { background: var(--muted); } .fill-surface { background: var(--surface); } .fill-bg { background: var(--bg); }
.fill-accent { background: var(--accent); }
.bordered { border: 1px solid var(--border); }
.bt { border-top: 1px solid var(--border); } .bb { border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .only-phone { display: none !important; } }
@media (max-width: 767px) {
  .hide-phone { display: none !important; }
  .cols-2, .cols-3, .cols-main, .cols-side { grid-template-columns: minmax(0, 1fr); }
  .cols-4, .cols-5, .cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3 { grid-column: auto; }
  .grid.phone-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
