/* Colours of linnerprogramming.com: teal #365B56 (primary), #2A4641 (dark), #5c8d87 (secondary),
   #f5f5f5 (light). Links, buttons and the step numbers take the teal; everything else is
   Material's. The slate scheme gets lighter teals on a teal-tinted dark background, so links
   and code stay readable there. */
:root {
  --md-primary-fg-color: #365b56;
  --md-primary-fg-color--light: #5c8d87;
  --md-primary-fg-color--dark: #2a4641;
  --md-accent-fg-color: #5c8d87;
  --md-accent-fg-color--transparent: rgba(92, 141, 135, 0.12);
  --md-typeset-a-color: #365b56;
  --hub-tint: rgba(92, 141, 135, 0.12);
  --hub-mark: #365b56;
}
[data-md-color-scheme="slate"] {
  --md-hue: 170deg;
  --md-primary-fg-color: #2a4641;
  --md-primary-fg-color--light: #5c8d87;
  --md-primary-fg-color--dark: #1f3531;
  --md-accent-fg-color: #9fd0c8;
  --md-accent-fg-color--transparent: rgba(159, 208, 200, 0.12);
  --md-typeset-a-color: #8fc4bc;
  --hub-tint: rgba(143, 196, 188, 0.14);
  --hub-mark: #9fd0c8;
}
[data-md-color-scheme="slate"] .md-typeset .md-button {
  color: #9fd0c8;
  border-color: #9fd0c8;
}
[data-md-color-scheme="slate"] .md-typeset .md-button--primary {
  background-color: #5c8d87;
  border-color: #5c8d87;
  color: #fff;
}

.md-typeset h1, .md-typeset h2 { font-weight: 600; letter-spacing: -0.01em; }
.md-typeset code { font-size: 0.8em; }
/* reference tables: a key or a default never breaks mid-word */
.md-typeset table td:first-child code, .md-typeset table td:nth-child(2) code { white-space: nowrap; }

/* ---- landing page (overrides/home.html) */
.hub-hero { padding: 1.5rem 0 1rem; }
.hub-hero h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 30rem;
  color: var(--md-default-fg-color);
}
.hub-hero p { font-size: 0.95rem; max-width: 36rem; }
.hub-hero .md-button { margin: 0.5rem 0.5rem 0 0; }
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.hub-grid > div {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-top: 3px solid var(--hub-mark);
  border-radius: 0.2rem;
  padding: 1rem 1.1rem;
  background: var(--md-code-bg-color);
}
.hub-grid h3 { margin: 0 0 0.4rem; font-size: 0.9rem; font-weight: 600; }
.hub-grid p { margin: 0; font-size: 0.72rem; line-height: 1.55; }
.hub-steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.hub-steps li { position: relative; padding-left: 2.4rem; margin-bottom: 0.8rem; }
.hub-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0.05rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
  background: var(--hub-tint);
  color: var(--hub-mark);
}
@media (max-width: 44.9em) {
  .hub-hero h1 { font-size: 1.6rem; }
}
