/* work.css — experience / education / certifications / skills (work.php) */

.stack { margin-top: var(--section); }
.stack .eyebrow { display: block; margin-bottom: 1.5rem; }

.entries {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2rem);
}

/* "Show more" / "Show less" buttons JS/home.js inserts after .worklist/.entries
   once a list has more rows than fit on the first batch. */
.revealmore { margin-top: 1.75rem; display: flex; gap: .75rem; }

.entry__meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry__title {
  margin-top: .6rem;
  font-family: var(--font-desc);
  font-size: clamp(.92rem, .87rem + .4vw, 1.02rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.entry__org {
  margin-top: .35rem;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry__note { margin-top: .5rem; color: var(--muted); font-family: var(--font-desc); font-size: .85rem; line-height: 1.7; }
.entry--tight .entry__title,
.entry__body--tight .entry__title { margin-top: .5rem; }

/* Education rows get a circular badge (crest/emblem once uploaded, initial
   letter otherwise) — same visual language as .workrow__avatar. */
.entry--edu { display: flex; gap: 1rem; align-items: flex-start; }
/* Without this, JS/home.js's "Show more" reveal (which sets [hidden]) would
   have no visual effect here — display:flex above is an author rule, and an
   author rule always wins over the UA stylesheet's [hidden]{display:none},
   regardless of specificity. Same fix as .workrow[hidden] in global.css. */
.entry--edu[hidden] { display: none; }
.entry__badge {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 700;
}
.entry--edu-v1 .entry__badge { background: var(--text); color: var(--ground); }
.entry--edu-v2 .entry__badge { background: var(--accent); color: var(--ground); }
.entry--edu-v3 .entry__badge { background: var(--surface-2); color: var(--text); border: 1px solid var(--rule); }
.entry--edu-v4 .entry__badge { background: var(--pill); color: var(--accent); }
.entry__badge img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; padding: 7px; box-sizing: border-box; }
.entry__body { flex: 1 1 auto; min-width: 0; }

/* Certification rows get the same circular badge as Education above (logo
   once uploaded, initials otherwise) and the same 4-colour rotation as the
   home page's certcard badges (.certcard--v1..4 in global.css) — same
   [hidden] fix as .entry--edu for the same reason: display:flex here is an
   author rule and would otherwise silently defeat JS/home.js's reveal. */
.entry--cert { display: flex; gap: 1rem; align-items: flex-start; }
.entry--cert[hidden] { display: none; }
.entry--cert-v1 .entry__badge { background: var(--text); color: var(--ground); }
.entry--cert-v2 .entry__badge { background: var(--accent); color: var(--ground); }
.entry--cert-v3 .entry__badge { background: var(--surface-2); color: var(--text); border: 1px solid var(--rule); }
.entry--cert-v4 .entry__badge { background: var(--pill); color: var(--accent); }
/* Cert initials can run up to 4 characters (issuer/title, same fallback rule
   as the home page's certcard__badge) vs Education's single letter — same
   smaller size and tracking as certcard__badge in global.css so 4 characters
   actually fit the circle instead of overflowing at Education's 1-letter size. */
.entry--cert .entry__badge { font-size: .58rem; letter-spacing: -.02em; text-align: center; }

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
}
.skills__name {
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
}
.skills__list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ---- proof of work (PCB / IoT build photos) ---- */
.proofgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}
.proofgrid__item {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.proofgrid__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proofgrid__caption {
  padding: .7rem .85rem;
  font-family: var(--font-desc);
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
