/* ==========================================================================
   Portfolio Page
   ========================================================================== */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-card);
}

.cert-card h3,
.event-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0;
}

/* scoped: `.meta` is a generic name and this card is its only consumer */
.cert-card .meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted-on-ink);
}

.cert-card .small {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-on-ink);
  margin: 0;
}

/* the card foot holds one lone button — base .card-foot is space-between,
   which would pin it left */
.cert-card .card-foot {
  justify-content: center;
}

.portfolio-empty {
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Events — paper annotations, black as decoration

   Deliberately not a card: portfolio now leads with ink experience cards and
   closes with an ink certificate grid, and a third slab between them would
   read as one undifferentiated black page. Same family as the education
   timeline on About — paper on an ink spine, black surfacing only as the
   result chip and the tag brackets.
   ========================================================================== */

.event-list {
  display: grid;
  gap: var(--s5); /* was --gap-card; annotations need the air the education
                      list uses, not card-grid spacing */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* .event-card carries base .bar for the 3px ink border + 10px padding */

.event-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s2);
}

.event-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  /* also normalises this page's capitalised MONTHS against experience.js's
     lowercase MONTHS — both go through this transform, so source case is
     invisible and the two sections read consistently */
  text-transform: uppercase;
  color: var(--muted);
}

.event-place {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: var(--s1) 0 0;
}

/* the loudest thing on a paper surface: the result, inverted */
.event-result {
  margin-top: var(--s2);
}

.event-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin: var(--s2) 0;
}

/* ==========================================================================
   Certificate modal — paper surface, it wraps a white document
   ========================================================================== */

.cert-frame {
  width: 100%;
  height: 60vh;
  min-height: 260px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

/* paper surface, so the divider is --rule, not the ink card's --rule-on-ink */
.cert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
}

.cert-actions-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
