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

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

}

.pcb-bottom{
  padding: 5%;
}

body {
  background-color: #eef1f5;
}

.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;
}

@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 10px;
  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);
}

.page-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 680px;
}

.main {
  padding: 1.5rem;
  border-right: 0.5px solid rgba(16, 26, 46, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.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;
  align-items: center;
}

.module {
  background: rgba(16, 26, 46, 0.03);
  border: 0.5px solid rgba(16, 26, 46, 0.18);
  padding: 0.75rem;
  max-width: 600px;
}

.mod-hdr {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form — the connector block */
.connector-block {
  background: rgba(16, 26, 46, 0.03);
  border: 1px solid rgba(16, 26, 46, 0.25);
  padding: 1.25rem;
  position: relative;
}

.connector-block::before {
  content: 'J1';
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.3);
  position: absolute;
  top: 6px;
  left: 10px;
}

.connector-block::after {
  content: 'CONTACT-HEADER-2×4';
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.2);
  position: absolute;
  top: 6px;
  right: 10px;
}

.pin-field {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0;
  margin-bottom: 1px;
  align-items: stretch;
}

.pin-label-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(16, 26, 46, 0.2);
  background: rgba(16, 26, 46, 0.05);
  border-right: none;
  padding: 4px;
  gap: 2px;
}

.pin-num {
  font-family: 'Fira Code', monospace;
  font-size: 7px;
  color: rgba(16, 26, 46, 0.35);
}

.pin-rect {
  width: 10px;
  height: 7px;
  background: rgba(16, 26, 46, 0.15);
  border: 0.5px solid rgba(16, 26, 46, 0.45);
}

.field-body {
  display: flex;
  flex-direction: column;
}

.field-ref {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.3);
  padding: 4px 8px 2px;
  background: rgba(16, 26, 46, 0.04);
  border: 0.5px solid rgba(16, 26, 46, 0.15);
  border-bottom: none;
  letter-spacing: 0.08em;
}

.pcb-input {
  width: 100%;
  background: #eef1f5;
  border: 0.5px solid rgba(16, 26, 46, 0.25);
  color: #101a2e;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.15s;
}

.pcb-input:focus {
  border-color: rgba(16, 26, 46, 0.6);
  background: rgba(16, 26, 46, 0.04);
}

.pcb-input::placeholder {
  color: rgba(16, 26, 46, 0.2);
}

.pcb-select {
  width: 100%;
  background: #eef1f5;
  border: 0.5px solid rgba(16, 26, 46, 0.25);
  color: rgba(16, 26, 46, 0.7);
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  padding: 8px 10px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.pcb-select:focus {
  border-color: rgba(16, 26, 46, 0.6);
}

.pcb-select option {
  background: #eef1f5;
}

.pcb-textarea {
  width: 100%;
  background: #eef1f5;
  border: 0.5px solid rgba(16, 26, 46, 0.25);
  color: #101a2e;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  padding: 8px 10px;
  outline: none;
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
  transition: border-color 0.15s;
}

.pcb-textarea:focus {
  border-color: rgba(16, 26, 46, 0.6);
  background: rgba(16, 26, 46, 0.04);
}

.pcb-textarea::placeholder {
  color: rgba(16, 26, 46, 0.2);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.terminator {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0;
  margin-top: 1px;
}

.term-pin {
  border: 0.5px solid rgba(16, 26, 46, 0.2);
  background: rgba(16, 26, 46, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn {
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  background: rgba(16, 26, 46, 0.12);
  border: 0.5px solid rgba(16, 26, 46, 0.5);
  color: #101a2e;
  padding: 10px 16px;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.submit-btn:hover {
  background: rgba(16, 26, 46, 0.2);
}

.submit-btn-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.submit-btn:hover .tx-led {
  background: #1f8a3c;
  box-shadow: 0 0 4px rgba(31, 138, 60, 0.5);
}

/* Availability table */
.avail-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(16, 26, 46, 0.1);
  border: 0.5px solid rgba(16, 26, 46, 0.18);
}

.avail-cell {
  background: #eef1f5;
  padding: 0.5rem 0.4rem;
  text-align: center;
}

.avail-day {
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  color: rgba(16, 26, 46, 0.35);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.avail-slot {
  width: 100%;
  height: 5px;
  margin-bottom: 2px;
  border-radius: 0;
}

.avail-slot.on {
  background: rgba(16, 26, 46, 0.5);
}

.avail-slot.part {
  background: rgba(255, 180, 50, 0.5);
}

.avail-slot.off {
  background: rgba(16, 26, 46, 0.08);
}

/* Routing diagram */
.route-diagram {
  background: rgba(16, 26, 46, 0.02);
  border: 0.5px solid rgba(16, 26, 46, 0.15);
  padding: 0.75rem;
}

/* IO table */
.io-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 1px;
  gap: 0;
}

.io-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(16, 26, 46, 0.18);
  background: rgba(16, 26, 46, 0.04);
  padding: 4px 6px;
  min-width: 26px;
  gap: 2px;
}

.io-pin-rect {
  width: 8px;
  height: 5px;
  background: rgba(16, 26, 46, 0.15);
  border: 0.5px solid rgba(16, 26, 46, 0.4);
}

.io-pin-num {
  font-family: 'Fira Code', monospace;
  font-size: 7px;
  color: rgba(16, 26, 46, 0.3);
}

.io-body {
  flex: 1;
  border: 0.5px solid rgba(16, 26, 46, 0.15);
  border-left: none;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.io-name {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: rgba(16, 26, 46, 0.5);
}

.io-val {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: rgba(16, 26, 46, 0.7);
}

.io-val a {
  font-family: 'Fira Code', monospace;
  font-size: 9px;
  color: rgba(16, 26, 46, 0.7);
}

.io-link {
  text-decoration: none;
}

.io-link:hover .io-val {
  color: #101a2e;
}

/* Status register */
.status-bit {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 5px 0;
}

.bit-box {
  width: 10px;
  height: 10px;
  border: 0.5px solid rgba(16, 26, 46, 0.4);
  font-family: 'Fira Code', monospace;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bit-box.hi {
  background: rgba(16, 26, 46, 0.35);
  color: #101a2e;
}

.bit-box.lo {
  background: rgba(16, 26, 46, 0.05);
  color: rgba(16, 26, 46, 0.3);
}

.bit-label {
  font-size: 11px;
  color: rgba(35, 48, 74, 0.65);
}

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

.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;
}


.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;
}

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;
  }

  /* --- Main content + sidebar ("LinkedIn integration coming soon") stack --- */
  .page-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .main {
    padding: 1rem;
    border-right: none;
    border-bottom: 0.5px solid rgba(16, 26, 46, 0.1);
  }

  .sidebar {
    padding: 1rem;
  }

  /* --- Form fields: pin-number column shrinks slightly, two-col fields stack --- */
  .pin-field {
    grid-template-columns: 22px 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  /* --- Availability table: fewer columns so each day stays legible --- */
  .avail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- IO rows (Email / LinkedIn / GitHub / Location): let the value
         wrap below the label instead of overflowing the row --- */
  .io-pin {
    min-width: 22px;
  }

  .io-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}