/*
 * Evidence card component styles for andrerowe.com
 * Category: PROFESSIONAL EXPERIENCE (component styles)
 * Version 2.0, October 4, 2026 (restyle, look only: hairline card, serif title, refined badges; same five category
 * hues and shape icons, same reconstructed banner). Reads fonts from portfolio.css when present, falls back to system.
 * All badge text and background pairs meet WCAG AA contrast (4.5:1 or better).
 */
:root {
  --ev-ink: #15212a;
  --ev-muted: #515c64;
  --ev-line: #d9ded9;
  --ev-line-strong: #a9b3ad;
  --ev-paper: #ffffff;
  --ev-accent: #0c6a5f;
  --ev-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  /* Category colors: five distinct hues, each paired with white text (contrast 7:1 or better), plus a distinct shape icon */
  --ev-cat-pro: #15212a;  /* ink: PROFESSIONAL EXPERIENCE (diamond) */
  --ev-cat-rec: #0b5f5a;  /* deep teal: RECONSTRUCTED PROFESSIONAL ARTIFACT (square, dashed banner, hatched card) */
  --ev-cat-aca: #5b2f91;  /* violet: ACADEMIC PROJECT (triangle) */
  --ev-cat-sim: #8f3a0c;  /* burnt orange: SIMULATED PROFESSIONAL PROJECT (circle) */
  --ev-cat-lab: #8a1546;  /* crimson: HANDS-ON LAB (star) */
}

.ev-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

evidence-card { display: block; }

.ev-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ev-paper);
  color: var(--ev-ink);
  border: 1px solid var(--ev-line);
  border-top: 3px solid var(--ev-cat-pro);
  border-radius: 3px;
  padding: 24px 24px 20px;
  height: 100%;
  box-sizing: border-box;
}
.ev-card--pro { border-top-color: var(--ev-cat-pro); }
.ev-card--rec { border-top-color: var(--ev-cat-rec); }
.ev-card--aca { border-top-color: var(--ev-cat-aca); }
.ev-card--sim { border-top-color: var(--ev-cat-sim); }
.ev-card--lab { border-top-color: var(--ev-cat-lab); }

.ev-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.ev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 4px 8px;
  border: 1px solid transparent;
  overflow-wrap: anywhere;
}
.ev-badge__icon { font-size: 0.8em; line-height: 1; }

/* Category badges: filled, white text, distinct hue and distinct shape icon */
.ev-cat { color: #ffffff; }
.ev-cat--pro { background: var(--ev-cat-pro); border-color: var(--ev-cat-pro); }
.ev-cat--rec { background: var(--ev-cat-rec); border-color: var(--ev-cat-rec); }
.ev-cat--aca { background: var(--ev-cat-aca); border-color: var(--ev-cat-aca); }
.ev-cat--sim { background: var(--ev-cat-sim); border-color: var(--ev-cat-sim); }
.ev-cat--lab { background: var(--ev-cat-lab); border-color: var(--ev-cat-lab); }

/* Status badges: outline styles, so they never read as a category */
.ev-status { background: #ffffff; color: #2f3b45; border-color: var(--ev-line-strong); }
.ev-status--published { background: #e8f3ec; color: #145a2c; border-color: #2e7d46; }
.ev-status--complete { background: #ffffff; color: #145a2c; border-color: #2e7d46; }
/* DESIGNED: dashed amber outline, hollow circle icon. IMPLEMENTED: solid green fill, check icon. */
.ev-status--designed { background: #fff8e6; color: #6b4300; border: 1.5px dashed #b07a00; }
.ev-status--implemented { background: #145a2c; color: #ffffff; border-color: #145a2c; }
.ev-status--progress { background: #ffffff; color: #1f4f8f; border: 1.5px dashed #3a6fb5; }
.ev-status--draft { background: #f3f5f4; color: #3b4750; border-color: var(--ev-line-strong); }
.ev-status--archive { background: #f3f5f4; color: #4d5a62; border-color: #c3cbc6; }

.ev-card__id {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ev-accent);
}

.ev-card__title {
  margin: 0 0 18px;
  font-family: var(--ev-serif);
  font-optical-sizing: auto;
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ev-ink);
  overflow-wrap: anywhere;
}

.ev-card__fields { margin: 0 0 18px; display: grid; gap: 12px; flex: 1 1 auto; align-content: start; }
.ev-field { margin: 0; }
.ev-field__label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ev-muted);
  margin: 0 0 3px;
}
.ev-field__value {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ev-ink);
  overflow-wrap: anywhere;
}

.ev-link { color: var(--ev-accent); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

.ev-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--ev-line);
  padding-top: 14px;
  margin-top: auto;
}
.ev-card__foot-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ev-muted);
}
.ev-card__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 3px;
  border: 1px solid var(--ev-ink);
  background: var(--ev-ink);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ev-card__cta:hover { background: var(--ev-accent); border-color: var(--ev-accent); color: #ffffff; }
.ev-card__unavailable {
  font-size: 0.84rem;
  font-weight: 500;
  color: #3b4750;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px solid #c3cbc6;
  background: #f3f5f4;
}
.ev-card__unavailable--progress { border-style: dashed; color: #1f4f8f; border-color: #3a6fb5; background: #ffffff; }

.ev-card a:focus-visible,
.ev-card__cta:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 3px;
}

/* Grid helper for pages that list cards */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 420px) {
  .ev-grid { grid-template-columns: minmax(0, 1fr); }
  .ev-card { padding: 20px 18px 16px; }
}

/* Reconstructed artifacts: the three-line banner from canonical record section 7, on every card */
.ev-card__banner {
  margin: 0 0 16px;
  padding: 9px 11px;
  border: 1.5px dashed var(--ev-cat-rec);
  border-radius: 2px;
  background: #e8f4f3;
  color: #073f3c;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
}
.ev-card__banner span { display: block; }
.ev-card--rec { background-image: repeating-linear-gradient(135deg, rgba(11, 95, 90, 0.03) 0 10px, transparent 10px 20px); }

@media (prefers-reduced-motion: reduce) {
  .ev-card__cta { transition: none; }
}
