/* ═══════════════════════════════════════════════════════════════════════
   Homepage — Our Boards section (partials/_boards_home.php)
   Design: Figma "DIYKIT — Our Boards", page 03. A dark "hardware lab" band
   in both site themes on purpose: it is the one section of the homepage
   that is DIYKIT's own product line, and it should read as different from
   the catalogue grids around it. Scoped under .dkhb.
   ═══════════════════════════════════════════════════════════════════════ */
.dkhb {
  --hb-ink: #0b1519; --hb-card: #111c21; --hb-line: rgba(255,255,255,.09);
  --hb-text: #e2edf2; --hb-mut: #b9d6cb; --hb-dim: #8fb3a6; --hb-green: #00d98f; --hb-blue: #2f7df6;
  position: relative; overflow: hidden; color: var(--hb-text);
  padding: 96px 0 88px;
  background:
    radial-gradient(45% 55% at 8% 0%, rgba(47,125,246,.20), transparent 70%),
    radial-gradient(45% 60% at 100% 100%, rgba(0,217,143,.16), transparent 70%),
    var(--hb-ink);
  font-family: 'DM Sans', system-ui, sans-serif;
}
.dkhb::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
          mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.dkhb__wrap { position: relative; display: grid; gap: 44px; }

/* Header */
.dkhb__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: end; }
.dkhb__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: 'JetBrains Mono', monospace; }
.dkhb__kicker span { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--hb-green); }
.dkhb__kicker i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #9fdcc4; border: 1px solid rgba(0,217,143,.4); border-radius: 5px; padding: 3px 8px; }
.dkhb__title { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; font-size: clamp(36px, 4.4vw, 58px); color: #fff; }
.dkhb__title em { font-style: normal; color: var(--hb-green); }
.dkhb__intro p { margin: 0 0 20px; font-size: 17px; line-height: 1.7; color: var(--hb-mut); }
.dkhb__cta { display: flex; flex-wrap: wrap; gap: 10px; }

.dkhb__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px;
  padding: 13px 20px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: filter .15s, border-color .15s, color .15s; }
.dkhb__btn--primary { background: var(--hb-green); color: #06140e; }
.dkhb__btn--primary:hover { filter: brightness(1.08); color: #06140e; }
.dkhb__btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.dkhb__btn--ghost:hover { color: var(--hb-green); border-color: var(--hb-green); }
.dkhb__btn--sm { padding: 10px 16px; font-size: 14.5px; }
/* Buy sits beside "View board" on a board that is actually on sale. Outlined
   in the green rather than filled, so it reads as the second action and does
   not fight the primary button next to it. */
.dkhb__btn--buy { color: var(--hb-green); border-color: var(--hb-green); background: transparent; }
.dkhb__btn--buy:hover { background: var(--hb-green); color: #06140e; }

/* Cards */
.dkhb__grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dkhb__grid--1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.dkhb__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dkhb__card { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden;
  background: var(--hb-card); border: 1px solid var(--hb-line); transition: transform .25s, border-color .25s; }
.dkhb__card:hover { transform: translateY(-3px); border-color: rgba(0,217,143,.35); }

/* The photo is absolutely placed inside a fixed-ratio plate. As a normal
   grid child, a portrait photo (the GPIO card) set the plate's height and
   stretched its card to twice the height of its neighbour. */
.dkhb__media { position: relative; display: block; aspect-ratio: 17 / 10;
  background:
    linear-gradient(to right, rgba(11,21,25,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(11,21,25,.06) 1px, transparent 1px) 0 0 / 28px 28px,
    #e9f1ee; }
.dkhb__media img { position: absolute; top: 56px; left: 32px; width: calc(100% - 64px); height: calc(100% - 80px); object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.22)); transition: transform .35s; }
.dkhb__card:hover .dkhb__media img { transform: scale(1.025); }
.dkhb__badges { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.dkhb__rev { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: var(--hb-ink); border-radius: 6px; padding: 5px 9px; }
.dkhb__chip { --c: #7b8f99; display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 9px;
  color: color-mix(in srgb, var(--c) 72%, #0b1519); background: color-mix(in srgb, var(--c) 18%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.dkhb__chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.dkhb__chip--in-stock, .dkhb__chip--available { --c: #00a86e; }
.dkhb__chip--register, .dkhb__chip--preorder  { --c: #1f66d9; }
.dkhb__chip--coming-soon                      { --c: #b7760c; }
.dkhb__chip--prototype                        { --c: #6f43d6; }

.dkhb__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 30px 26px; flex: 1; }
.dkhb__namerow { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dkhb__name { margin: 0 0 4px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.dkhb__name a { color: #fff; text-decoration: none; }
.dkhb__name a:hover { color: var(--hb-green); }
.dkhb__sub { margin: 0; font-size: 15px; font-weight: 600; color: var(--hb-green); }
.dkhb__stat { text-align: right; flex: none; max-width: 38%; }
.dkhb__stat b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 700; color: #fff; line-height: 1; }
.dkhb__stat span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--hb-dim); line-height: 1.35; }
.dkhb__desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--hb-mut); }
.dkhb__feat { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.dkhb__feat li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.5; color: var(--hb-text); }
.dkhb__feat li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--hb-green); }
.dkhb__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.dkhb__link { color: #fff; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.dkhb__link:hover { color: var(--hb-green); }
.dkhb__jump { margin-left: auto; display: inline-flex; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--hb-dim); }
.dkhb__jump a { color: var(--hb-dim); text-decoration: none; }
.dkhb__jump a:hover { color: var(--hb-green); }
.dkhb__jump i { font-style: normal; opacity: .6; }

/* Strip */
.dkhb__strip { display: flex; align-items: stretch; border: 1px solid var(--hb-line); border-radius: 14px; background: rgba(255,255,255,.03); }
.dkhb__strip-item { flex: 1; display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.08); font-size: 14.5px; font-weight: 600; color: var(--hb-text); }
.dkhb__strip-item i { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; color: var(--hb-green);
  background: rgba(0,217,143,.14); border-radius: 6px; padding: 4px 7px; }
.dkhb__strip-link { display: flex; align-items: center; padding: 0 22px; color: var(--hb-green); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.dkhb__strip-link:hover { color: #fff; }

@media (max-width: 1020px) {
  .dkhb__head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .dkhb__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dkhb__strip { flex-wrap: wrap; }
  .dkhb__strip-item { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .dkhb__strip-link { padding: 14px 22px; }
}
@media (max-width: 760px) {
  .dkhb { padding: 56px 0 48px; }
  .dkhb__wrap { gap: 28px; }
  .dkhb__grid, .dkhb__grid--3 { grid-template-columns: 1fr; }
  .dkhb__media { aspect-ratio: 4 / 3; }
  .dkhb__media img { top: 52px; left: 16px; width: calc(100% - 32px); height: calc(100% - 68px); }
  /* One status chip on a phone: two wrapped onto a second row and sat on
     top of the photo. The interest button is right below in the card. */
  .dkhb__badges .dkhb__chip--register, .dkhb__badges .dkhb__chip--preorder { display: none; }
  .dkhb__body { padding: 20px 18px 22px; }
  .dkhb__jump { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dkhb__card, .dkhb__media img { transition: none; }
  .dkhb__card:hover, .dkhb__card:hover .dkhb__media img { transform: none; }
}
