:root {
  /*Max Width*/
  --max-width: 1000px;
  
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rajdhani', sans-serif;

}

body {
  background-color: #eef1f5;
}

.pcb-bottom{
  padding: 5%;
}

.nav-wrap {
  background: #eef1f5;
  font-family: 'Rajdhani', sans-serif;
  color: #23304a;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(16, 26, 46, 0.2);
  position: relative;
  overflow: hidden;
}

.nav-silkscreen {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.nav-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}

.nav-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #101a2e;
  letter-spacing: 0.03em;
}

.nav-brand-ref {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.35);
  letter-spacing: 0.1em;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 26, 46, 0.7);
  border: 0.5px solid rgba(16, 26, 46, 0.25);
  background: rgba(16, 26, 46, 0.05);
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(16, 26, 46, 0.12);
  border-color: rgba(16, 26, 46, 0.5);
  color: #101a2e;
}

.nav-link .pin {
  width: 5px;
  height: 4px;
  border: 0.5px solid rgba(16, 26, 46, 0.5);
  background: rgba(16, 26, 46, 0.2);
  display: inline-block;
  flex-shrink: 0;
}

.nav-link:hover .pin {
  background: rgba(16, 26, 46, 0.5);
}

.logo {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #101a2e;
  line-height: 1.3;
}

.pcb-bottom {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid rgba(16, 26, 46, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pcb-bottom-meta {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: rgba(16, 26, 46, 0.35);
  line-height: 1.7;
}




@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600&family=Fira+Code:wght@300;400;500&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.pcb {
  background: #eef1f5;
  font-family: 'Rajdhani', sans-serif;
  color: #23304a;
  position: relative;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
}

.silk {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.z1 {
  position: relative;
  z-index: 1;
}

.mono {
  font-family: 'Fira Code', monospace;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 0.5px solid rgba(16, 26, 46, 0.15);
}

.nav-tab {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  padding: 4px 12px;
  border: 0.5px solid rgba(16, 26, 46, 0.2);
  color: rgba(16, 26, 46, 0.4);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-tab.active {
  background: rgba(16, 26, 46, 0.12);
  color: #101a2e;
  border-color: rgba(16, 26, 46, 0.5);
}

.toolbar {
  padding: 0.75rem 1.5rem;
  border-bottom: 0.5px solid rgba(16, 26, 46, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 4px;
}

.filter-btn {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  padding: 3px 10px;
  border: 0.5px solid rgba(16, 26, 46, 0.2);
  color: rgba(16, 26, 46, 0.45);
  cursor: pointer;
  background: transparent;
  letter-spacing: 0.06em;
  transition: all 0.1s;
}

.filter-btn.on {
  background: rgba(16, 26, 46, 0.12);
  border-color: rgba(16, 26, 46, 0.5);
  color: #101a2e;
}

.toolbar-right {
  margin-left: auto;
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.3);
}

.board {
  padding: 1.25rem 1.5rem;
}

.sec-hdr {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 5px;
  border-bottom: 0.5px solid rgba(16, 26, 46, 0.12);
  display: flex;
  justify-content: space-between;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(16, 26, 46, 0.12);
  border: 0.5px solid rgba(16, 26, 46, 0.2);
  margin-bottom: 1px;
}

.tile {
  background: #eef1f5;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s;
  
}

.tile:hover {
  background: #e4e8ee;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
}

.tile.analog::before {
  background: rgba(16, 26, 46, 0.5);
  
}

.tile.digital::before {
  background: rgba(100, 200, 255, 0.5);
}

.tile.power::before {
  background: rgba(255, 180, 50, 0.5);
}

.tile.embedded::before {
  background: rgba(200, 130, 255, 0.5);
}

.tile-ref {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.25);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tile-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(16, 26, 46, 0.2);
  border: 0.5px solid rgba(16, 26, 46, 0.4);
}

.tile-status.done {
  background: rgba(16, 26, 46, 0.5);
}

.tile-status.wip {
  background: rgba(255, 180, 50, 0.6);
  border-color: rgba(255, 180, 50, 0.8);
}

.tile-schematic {
  margin: 8px 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-title {
  font-size: 14px;
  font-weight: 600;
  color: #101a2e;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 3px;
}

.tile-sub {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: rgba(16, 26, 46, 0.4);
  margin-bottom: 8px;
}

.tile-desc {
  font-size: 11px;
  color: rgba(35, 48, 74, 0.55);
  line-height: 1.5;
  margin-bottom: 8px;
}

.tile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 8px;
}

.tag {
  font-family: 'Fira Code', monospace;
  font-size: 7px;
  padding: 2px 5px;
  border: 0.5px solid rgba(16, 26, 46, 0.2);
  color: rgba(16, 26, 46, 0.5);
}

.tag.cat {
  border-color: rgba(16, 26, 46, 0.4);
  color: rgba(16, 26, 46, 0.8);
  background: rgba(16, 26, 46, 0.07);
}

.tile-metrics {
  display: flex;
  gap: 10px;
  border-top: 0.5px solid rgba(16, 26, 46, 0.1);
  padding-top: 8px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: #101a2e;
}

.metric-key {
  font-family: 'Fira Code', monospace;
  font-size: 7px;
  color: rgba(16, 26, 46, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tile-arrow {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 14px;
  color: rgba(16, 26, 46, 0.25);
}

.tile:hover .tile-arrow {
  color: rgba(16, 26, 46, 0.6);
}

.featured {
  grid-column: 1 / 3;
}

.featured .tile-schematic {
  height: 70px;
}

.featured .tile-title {
  font-size: 17px;
}

.featured .tile-desc {
  font-size: 12px;
}

.footer {
  padding: 0.6rem 1.5rem;
  border-top: 0.5px solid rgba(16, 26, 46, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-meta {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.3);
}

.cta-btn {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  border: 0.5px solid rgba(16, 26, 46, 0.35);
  background: rgba(16, 26, 46, 0.08);
  color: rgba(16, 26, 46, 0.7);
  padding: 5px 14px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-frame{
  width: 100%;
}

a,
a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: inherit;
}

/* =========================================================
   MOBILE RESPONSIVE STYLES
   Everything below only applies at narrow widths.
   Desktop layout/behaviour above is untouched.
   ========================================================= */
@media (max-width: 720px) {

  /* --- Nav bar: stack brand above a wrapping row of links --- */
  .nav-wrap {
    padding: 0 0.75rem;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 0;
    gap: 0.6rem;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 5px;
  }

  .nav-link {
    padding: 6px 10px;
    flex: 1 1 auto;
    justify-content: center;
  }

  /* --- Toolbar filters wrap instead of overflowing --- */
  .toolbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .toolbar-right {
    margin-left: 0;
    width: 100%;
  }

  .board {
    padding: 1rem;
  }

  /* --- Tile grid: one column instead of three, so every project
         (including the featured one) stacks full-width --- */
  .tile-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    grid-column: 1 / -1;
  }

  .featured .tile-schematic {
    height: 54px;
  }

  .featured .tile-title {
    font-size: 14px;
  }

  .featured .tile-desc {
    font-size: 11px;
  }

  /* --- Metrics row wraps if there isn't room for all of them inline --- */
  .tile-metrics {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}