.guide-site-footer { width: 100%; padding: .9rem .6rem; }
.guide-site-footer__links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .7rem;
}
.guide-site-footer__links a { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 640px) {
  .guide-site-footer__links { flex-direction: column; align-items: start; gap: .6rem; }
}

/* Preserve the official wordmark colors and contrast on a dark background. */
[data-md-color-scheme="slate"] .md-logo img {
  background: white;
  border-radius: 4px;
  padding: 4px;
  box-sizing: content-box;
}

/* Keep LED names readable while showing their physical colours beside them. */
.led-colour {
  display: inline-flex;
  align-items: baseline;
  gap: .3em;
  white-space: nowrap;
  font-weight: 700;
}
.led-colour::before {
  content: "";
  display: inline-block;
  flex: none;
  width: .7em;
  height: .7em;
  border: 1px solid #77818c;
  border-radius: 50%;
  background: var(--led-colour);
}
.led-colour[data-led-colour="white"] { --led-colour: #fff; }
.led-colour[data-led-colour="orange"] { --led-colour: #ff9500; }
.led-colour[data-led-colour="yellow"] { --led-colour: #ffcc00; }
.led-colour[data-led-colour="blue"] { --led-colour: #007aff; }
.led-colour[data-led-colour="purple"] { --led-colour: #af52de; }
.led-colour[data-led-colour="teal"] { --led-colour: #30b0c7; }
.led-colour[data-led-colour="red"] { --led-colour: #ff3b30; }
.led-colour[data-led-colour="green"] { --led-colour: #34c759; }

/* The product chooser only. Product guides retain the standard Zensical layout. */
.guide-home {
  --guide-accent: #247da0;
  --guide-line: rgba(91, 113, 124, .2);
  padding-bottom: 1rem;
}
.guide-home__intro { max-width: 42rem; margin: .6rem 0 2rem; }
.md-typeset .guide-home__eyebrow,
.md-typeset .guide-product__eyebrow {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--guide-accent);
}
.md-typeset .guide-home h1.guide-home__eyebrow {
  margin: 0 0 .75rem;
  line-height: 1.5;
  text-transform: uppercase;
}
.guide-home__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.md-typeset a.guide-product {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: .8rem;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  box-shadow: 0 4px 16px rgba(21, 49, 64, .04);
  transition: border-color .18s, box-shadow .18s;
}
.md-typeset a.guide-product:hover {
  border-color: var(--guide-accent);
  box-shadow: 0 8px 24px rgba(21, 49, 64, .1);
}
.md-typeset a.guide-product:focus-visible { outline: 3px solid var(--guide-accent); outline-offset: 4px; }
.guide-product__photo { aspect-ratio: 3 / 2; overflow: hidden; background: white; border-bottom: 1px solid var(--guide-line); }
.md-typeset .guide-product__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.md-typeset .guide-product--beam .guide-product__photo img { object-position: center 70%; }
.guide-product__content { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.4rem 1.4rem; }
.md-typeset .guide-product__eyebrow { margin: 0 0 .4rem; }
.md-typeset .guide-product h2 { margin: 0; font-size: 1.65rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.guide-product__action { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; color: var(--guide-accent); font-size: .8rem; font-weight: 650; }
.guide-product__action > span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1px solid var(--guide-line); border-radius: 50%; font-size: 1rem; }
/* Compact second row keeps the main guides prominent. */
.guide-home__products--secondary { margin-top: 1.2rem; }
.md-typeset a.guide-product--secondary { flex-direction: row; align-items: stretch; }
.guide-product--secondary .guide-product__photo { flex: 0 0 30%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--guide-line); }
.md-typeset .guide-product--secondary .guide-product__photo img { object-fit: contain; }
.guide-product--secondary .guide-product__content { min-width: 0; padding: 1rem; }
.md-typeset .guide-product--secondary h2 { font-size: 1.2rem; }
.guide-product--secondary .guide-product__action { gap: .5rem; font-size: .7rem; margin-top: .6rem; }
.guide-product--secondary .guide-product__action > span { flex: none; width: 1.4rem; height: 1.4rem; }
.guide-home__support { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.8rem; padding: 1.3rem 0; border-bottom: 1px solid var(--guide-line); }
.md-typeset .guide-home__support h2 { margin: 0 0 .25rem; font-size: .9rem; font-weight: 650; }
.md-typeset .guide-home__support p { margin: 0; font-size: .75rem; color: var(--md-default-fg-color--light); }
.md-typeset a.guide-home__support-link { font-size: .8rem; font-weight: 650; white-space: nowrap; color: var(--guide-accent); }
[data-md-color-scheme="slate"] .guide-home { --guide-accent: #70c4e2; --guide-line: rgba(180, 204, 216, .22); }
@media (max-width: 640px) {
  .guide-home__intro { margin: .5rem 0 1.3rem; }
  .guide-home__products { grid-template-columns: 1fr; gap: 1rem; }
  .guide-product__content { padding: 1.1rem; }
  .guide-home__support { flex-direction: column; gap: .75rem; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .md-typeset a.guide-product { transition: none; }
}
