/* =============================================================
   DEVELOPER — all-developers index + developer profile
   Loaded by developers.html and developer.html.

   Cards, section headings, fact strips, form fields and contact
   rows come from components.css. Only what is specific to these
   two pages lives here.
   ============================================================= */

/* ============ ALL DEVELOPERS — GRID ============ */
.dgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.dcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: .24s ease
}

.dcard:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px)
}

.dcard__top {
  display: flex;
  align-items: center;
  gap: 13px
}

.dcard__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-2);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.04em
}

.dcard__id {
  min-width: 0
}

.dcard__id h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0
}

.dcard__id p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 3px 0 0
}

.dcard__nums {
  padding: 5px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden
}

.dcard__nums div {
  background: var(--white);
  padding: 10px 11px;
  text-align: center
}

.dcard__nums b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -.02em
}

.dcard__nums small {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

.dcard__zones {
  display: flex;
  gap: 5px;
  flex-wrap: wrap
}

.dcard__zones span {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--bg-2);
  color: var(--ink-2)
}

.dcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line)
}

.dcard__foot .verified {
  font-size: 10.5px
}

/* ============ PROFILE HERO ============ */
.dhero {
  background: var(--navy);
  color: #fff;
  padding: 34px 0 30px
}

.dhero__in {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap
}

.dhero__logo {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  flex: none;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.04em
}

.dhero__id {
  flex: 1;
  min-width: 240px
}

.dhero__id h1 {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0;
  line-height: 1.15
}

.dhero__id>p {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin: 7px 0 0;
  max-width: 56ch;
  line-height: 1.65
}

.dhero__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px
}

.dhero__tags span {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14)
}

.dhero__tags .is-accent {
  background: rgba(235, 174, 33, .14);
  border-color: rgba(235, 174, 33, .32);
  color: var(--accent)
}

.dhero__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none
}

.dhero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13)
}

.dhero__stats b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.025em
}

.dhero__stats small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55)
}

/* ============ IN-PAGE NAV ============ */
.dnav {
  position: sticky;
  top: 90px;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line)
}

.dnav__in {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 24px;
  max-width: var(--maxw);
  margin: 0 auto
}

.dnav a {
  padding: 14px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: .15s
}

.dnav a:hover {
  color: var(--teal)
}

.dnav a.is-on {
  color: var(--ink);
  border-bottom-color: var(--teal)
}

/* ============ PAGE GRID ============ */
.dpage {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  padding: 26px 0 64px
}

.dpage__side {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.dpage__main {
  min-width: 0
}

/* ============ PROJECT LISTINGS TABLE ============ */
.ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px
}

.ptable th {
  text-align: left;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 0 11px 9px;
  border-bottom: 1px solid var(--line)
}

.ptable td {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle
}

.ptable tr:last-child td {
  border-bottom: 0
}

.ptable tbody tr:hover {
  background: var(--bg)
}

.ptable a {
  font-weight: 700
}

.ptable a:hover {
  color: var(--teal)
}

.ptable .num {
  text-align: right;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap
}

.pstat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--bg-2);
  color: var(--ink-2);
  white-space: nowrap
}

.pstat--live {
  background: var(--teal-soft);
  color: var(--teal)
}

.pstat--done {
  background: rgba(11, 46, 89, .07);
  color: var(--navy)
}

/* ============ CONTACT INFORMATION ============ */
.cinfo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.cline {
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md)
}

.cline__ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-soft);
  flex: none;
  display: grid;
  place-items: center
}

.cline__ico svg {
  width: 15px;
  height: 15px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8
}

.cline small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px
}

.cline b {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5
}

.cline p {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0
}

.cmap {
  margin-top: 12px;
  height: 190px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line);
  background: var(--bg-2);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px
}

.cmap span {
  font-size: 11.5px;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.6
}

/* ============ RESPONSIVE ============ */
@media (max-width:1024px) {
  .dgrid {
    grid-template-columns: repeat(2, 1fr)
  }

  .dpage {
    grid-template-columns: 1fr
  }

  .dpage__side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap
  }

  .dpage__side>* {
    flex: 1;
    min-width: 270px
  }

  .dhero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
  }

  .dnav {
    top: 0
  }
}

@media (max-width:640px) {

  .dgrid,
  .cinfo {
    grid-template-columns: 1fr
  }

  .dhero {
    padding: 26px 0 24px
  }

  .dhero__in {
    gap: 16px
  }

  .dhero__logo {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    font-size: 20px
  }

  .dhero__id h1 {
    font-size: 23px
  }

  .dhero__cta {
    flex-direction: row;
    width: 100%
  }

  .dhero__cta .btn {
    flex: 1;
    justify-content: center
  }

  .dpage__side {
    flex-direction: column
  }

  .ptable {
    font-size: 11.5px
  }

  .ptable th,
  .ptable td {
    padding-left: 7px;
    padding-right: 7px
  }

  .ptable .hide-sm {
    display: none
  }
}