/* Cairn's palette: stone and lichen. Slate grey for the structure, a muted
   green for the accent, because the subject is measurement rather than
   excitement and the pages are mostly tables and numbers. */

:root {
  --md-primary-fg-color: #3f4b53;
  --md-primary-fg-color--light: #5a6873;
  --md-primary-fg-color--dark: #2b343a;
  --md-primary-bg-color: #f6f7f5;
  --md-primary-bg-color--light: #ffffff;
  --md-accent-fg-color: #4f7a5b;
  --md-accent-fg-color--transparent: rgba(79, 122, 91, 0.1);
  --cairn-rule: rgba(63, 75, 83, 0.16);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #29323a;
  --md-accent-fg-color: #7fae8a;
  --md-accent-fg-color--transparent: rgba(127, 174, 138, 0.12);
  --md-default-bg-color: #171c21;
  --cairn-rule: rgba(214, 224, 219, 0.18);
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.4rem;
  width: 1.4rem;
}

/* Tables carry most of the meaning here, so they get room and a clear header. */
.md-typeset table:not([class]) {
  font-size: 0.72rem;
  border: 1px solid var(--cairn-rule);
}

.md-typeset table:not([class]) th {
  background: var(--md-accent-fg-color--transparent);
  font-weight: 600;
  white-space: nowrap;
}

.md-typeset table:not([class]) td:not(:first-child) {
  font-variant-numeric: tabular-nums;
}

/* A number the integrator still has to fill in from a real run. Marked so it
   cannot be mistaken for a measurement. */
.cairn-placeholder {
  background: var(--md-accent-fg-color--transparent);
  border-bottom: 1px dashed var(--md-accent-fg-color);
  padding: 0 0.2em;
  font-variant-numeric: tabular-nums;
}

.md-typeset .cairn-lead {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--md-default-fg-color--light);
}

/* The home page's three claims, side by side on a wide screen. */
.cairn-claims {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 1.5rem 0;
}

.cairn-claims > div {
  border: 1px solid var(--cairn-rule);
  border-radius: 0.2rem;
  padding: 0.9rem 1rem;
}

.cairn-claims h3 {
  margin-top: 0 !important;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--md-accent-fg-color);
}

.cairn-claims p:last-child {
  margin-bottom: 0;
}
