/* Hardware hero on the landing page: the board is the first thing you see */
.lc-hero-board {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 2rem auto 0.5rem;
}

/* Decorative brand graphic, used as a slim band low on the page */
.lc-band {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 2.5rem auto 0;
  opacity: 0.75;
}

/* Board render at the top of the hardware page */
.lc-board {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 1.5rem auto 2rem;
}

/* Images inside grid cards: full-bleed across the card top */
.md-typeset .grid.cards > ul > li > img:first-child,
.md-typeset .grid.cards > ul > li > p:first-child > img {
  display: block;
  width: 100%;
  margin: 0 0 0.8rem;
  border-radius: 0.2rem;
}

/* Photos and renders get a subtle frame so they read as content, not decoration */
.md-typeset img[src*="test-setup"] {
  border-radius: 0.3rem;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.18);
}

/* Social / website links in the footer copyright, on every page */
.lc-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em 1.2em;
}
.lc-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: inherit;
  text-decoration: none;
}
.lc-social svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex-shrink: 0;
}
.lc-social:hover {
  color: #0a66c2;
}

/* In-house cost chart on the challenge page */
.lc-cost-chart {
  display: block;
  width: 100%;
  max-width: 660px;
  height: auto;
  margin: 0 auto;
}

/* Playful live "monitoring" counters on the landing page */
.lc-live {
  border: 1px solid var(--md-default-fg-color--lightest, rgba(0,0,0,.07));
  border-radius: 0.5rem;
  background: var(--md-code-bg-color);
  padding: 1.1rem 1.3rem 1rem;
  margin: 1.5rem 0;
}
.lc-live__head {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light);
}
.lc-live__dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: #17c964;
  box-shadow: 0 0 0 0 rgba(23, 201, 100, 0.6);
  animation: lc-pulse 1.6s infinite;
}
@keyframes lc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(23,201,100,.6); }
  70%  { box-shadow: 0 0 0 0.5em rgba(23,201,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(23,201,100,0); }
}
.lc-live__tag {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.15em 0.5em;
  border-radius: 0.7em;
  color: var(--md-default-fg-color--light);
  background: var(--md-default-fg-color--lightest, rgba(0,0,0,.06));
}
.lc-live__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.9rem;
}
@media (max-width: 30rem) {
  .lc-live__grid { grid-template-columns: 1fr; }
}
.lc-live__num {
  font-family: var(--md-code-font-family, monospace);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--md-primary-fg-color);
  font-variant-numeric: tabular-nums;
}
.lc-live__label {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.2rem;
}
.lc-live__note {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  color: var(--md-default-fg-color--light);
  opacity: 0.7;
}


/* Architecture diagram - specific styling */
.lc-arch-diagram .mermaid {
  text-align: center;
  max-width: 300px;
  margin: 2rem auto;
}