/* ============================================================================
   VEERHA — INDIGO SLATE
   Base layer: reset, type scale, layout primitives.

   This file and components.css are the two the engineering team lifts. The
   design-system pages have their own chrome in sheet.css — kept separate so
   nothing presentational about the documentation leaks into the product.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* hidden means hidden. Without this, any component that sets display (a flex
   callout, a grid card) silently overrides the attribute and stays on screen. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--ui);
  font-size: var(--t-body-s);
  line-height: var(--t-body-l);
  font-weight: var(--t-body-w);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;   /* figures align in columns */
}

h1, h2, h3, h4, h5, h6, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }


/* --- TYPE ROLES ----------------------------------------------------------
   Hierarchy comes from weight, scale and spacing before it comes from
   colour (v2 §10). */

.t-display {
  font-size: var(--t-display-s); line-height: var(--t-display-l);
  font-weight: var(--t-display-w); letter-spacing: var(--t-display-k);
}
.t-page {
  font-size: var(--t-page-s); line-height: var(--t-page-l);
  font-weight: var(--t-page-w); letter-spacing: var(--t-page-k);
}
.t-section {
  font-size: var(--t-section-s); line-height: var(--t-section-l);
  font-weight: var(--t-section-w); letter-spacing: var(--t-section-k);
}
.t-card {
  font-size: var(--t-card-s); line-height: var(--t-card-l);
  font-weight: var(--t-card-w); letter-spacing: var(--t-card-k);
}
.t-body   { font-size: var(--t-body-s);  line-height: var(--t-body-l); }
.t-strong { font-size: var(--t-body-s);  line-height: var(--t-body-l); font-weight: 600; }
.t-small  { font-size: var(--t-small-s); line-height: var(--t-small-l); }
.t-meta   { font-size: var(--t-meta-s);  line-height: var(--t-meta-l);  font-weight: var(--t-meta-w); }

/* The uppercase eyebrow. Used by every signature pattern. */
.label {
  font-size: var(--t-micro-s); line-height: var(--t-micro-l);
  font-weight: var(--t-micro-w); letter-spacing: var(--label-tracking);
  text-transform: uppercase; color: var(--text-muted);
}

.num      { font-family: var(--num); font-variant-numeric: tabular-nums; }

/* `.num` is for IDENTIFIERS and BARE FIGURES — record codes (OPP-0061), times
   (10:42), scores (91), deltas (72 → 91), durations (2 min).

   It is NOT for formatted currency, anywhere. A monospace comma takes a full
   character cell, so "₹43,700" renders as "₹43 , 700" and reads as broken —
   and the gap gets worse with Indian grouping ("₹1 , 10 , 400"). Body text
   already carries tabular-nums, so amounts in the UI face align digit-for-
   digit on their own, which is the only alignment a money column needs.

   Three components set mono on their numeric slot (.v-stat__n, .v-table__num,
   .v-kv dd). Put `.amount` on a currency figure sitting in any of them and it
   returns to the UI face. See components.css. */
.muted    { color: var(--text-muted); }
.faint    { color: var(--text-faint); }
.secondary{ color: var(--text-secondary); }


/* --- LAYOUT PRIMITIVES ---------------------------------------------------
   12 columns, one grid. Major page elements align to it; nothing is
   positioned independently (v2 §12). */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s-8) var(--gutter) var(--s-20);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--colgap);
}
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }
/* Narrow screens: quarter tiles pair up, everything wider takes the row.
   Numbers: --bp-tablet / --bp-phone in tokens.css. */
@media (max-width: 1024px) {
  .col-3 { grid-column: span 6; }
  .col-4, .col-5, .col-7, .col-8 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .grid { gap: var(--s-3); }
  .col-6 { grid-column: span 12; }
}

.band { margin-top: var(--sect-gap); }

.stack     { display: flex; flex-direction: column; gap: var(--s-4); }
.stack-sm  { display: flex; flex-direction: column; gap: var(--s-2); }
.row       { display: flex; align-items: center; gap: var(--s-3); }
.row-tight { display: flex; align-items: center; gap: var(--s-2); }
.spread    { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.wrap      { flex-wrap: wrap; }
.grow      { flex: 1; min-width: 0; }

/* The default separator. A divider should be subtle enough to disappear
   when scanning and present when reading (v2 §15). */
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
