/* ═══════════════════════════════════════════════════════════════════════════
   verified-resume.css — Shared styles for the "verified resume" component
   Designed for readability. Every detail intentional.
   ═══════════════════════════════════════════════════════════════════════════ */

.vr-header {
  padding: 28px 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.vr-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.vr-role {
  font-size: 15px;
  color: #a09aa8;
  font-weight: 500;
}
.vr-location {
  font-size: 12px;
  color: #6b5f7a;
  margin-top: 4px;
}
.vr-tier {
  font-family: 'Space Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: right;
  line-height: 1.1;
  margin-bottom: 8px;
}
.vr-top-badge-row {
  display: block;
  text-align: right;
  margin-bottom: 12px;
}
.vr-top-badge {
  display: inline-block;
  padding: 3px 9px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 3px;
}
.vr-tier-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #6b5f7a;
  margin-top: 3px;
  text-align: right;
}

/* Stats bar */
.vr-stats {
  padding: 16px 28px;
  display: flex;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  align-items: center;
}
.vr-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #6b5f7a;
  margin-bottom: 3px;
}
.vr-stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
}

/* Sections */
.vr-section {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.vr-section-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #a09aa8;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.vr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vr-dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  margin-right: 8px;
}

/* Career history */
.vr-job {
  padding: 16px 0 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  border-left: 2px solid transparent;
}
.vr-job:last-child {
  border-bottom: none;
}
.vr-job-current {
  border-left-color: #a78bfa;
}
.vr-job-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.vr-job-org {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.vr-job-role {
  font-size: 14px;
  color: #a09aa8;
  margin-bottom: 3px;
}
.vr-job-period {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #a09aa8;
  letter-spacing: 0.02em;
}
.vr-job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* Badges — clear distinction between verified and unverified */
.vr-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.vr-badge-verified {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.vr-badge-unverified {
  background: rgba(107, 95, 122, 0.06);
  color: #6b5f7a;
  border: 1px solid rgba(107, 95, 122, 0.15);
}

/* Skill tags — larger, more readable */
.vr-skill-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(107, 95, 122, 0.08);
  border: 1px solid rgba(107, 95, 122, 0.15);
  color: #6b5f7a;
}
.vr-skill-verified {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* Skills wrap */
.vr-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Certs & education */
.vr-cert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.vr-cert:last-child {
  border-bottom: none;
}
.vr-cert-name {
  font-size: 15px;
  font-weight: 600;
}

/* Items (contributions) */
.vr-item {
  font-size: 13px;
  color: #a09aa8;
  padding: 5px 0;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Footer */
.vr-footer {
  padding: 12px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #4a4458;
  display: flex;
  justify-content: space-between;
}

/* ── Overflow guards ────────────────────────────────────────────────────
   The "Other Verified Activity" section can contain long URLs / DOI strings
   / publication titles with no natural break points. Apply aggressive
   per-character wrapping ONLY to the specific containers that hold that
   content (pub cards, accordion bodies, raw anchor tags) — NOT section-
   wide, because the cascade ate into the Verified Skills flex chips and
   broke "AWS Certification" character-by-character. */
.vr-section {
  max-width: 100%;
  box-sizing: border-box;
}
.vr-section a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.vr-pub-card,
.vr-link-card {
  max-width: 100%;
  box-sizing: border-box;
}
.vr-pub-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.vr-acc-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.vr-acc-body img {
  max-width: 100%;
  height: auto;
}

/* ── Responsive ──────────────────────────────────────────────────────────
   Tablet (≤768): tighten the gutters but keep the two-column rhythm.
   Phone (≤480):  stack the header, compress all chip padding, shrink the
                  tier headline so it never wraps awkwardly.
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .vr-header {
    padding: 22px 18px 20px;
  }
  .vr-stats {
    gap: 22px;
    padding: 14px 18px;
  }
  .vr-section {
    padding: 20px 18px;
  }
  .vr-footer {
    padding: 10px 18px;
  }
  .vr-job-org {
    font-size: 16px;
  }
  .vr-cert-name {
    font-size: 14px;
  }
  .vr-skill-tag {
    font-size: 10px;
    padding: 4px 10px;
  }
  .vr-badge {
    font-size: 9px;
    padding: 3px 9px;
  }
}

@media (max-width: 768px) {
  /* Publication card venue badge shrinks so the content column has room. */
  .vr-pub-venue {
    min-width: 70px !important;
    font-size: 8px !important;
  }
  .vr-pub-card {
    gap: 10px !important;
    padding: 9px 10px !important;
  }
}

@media (max-width: 640px) {
  .vr-header {
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px;
    align-items: flex-start;
  }
  /* Publication card stacks venue-on-top, content-below at phone width. */
  .vr-pub-card {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
  }
  .vr-pub-venue {
    min-width: 0 !important;
    padding-top: 0 !important;
  }
  /* Link cards (patents, talks) tighten further. Ellipsis still kicks in for
     very long titles; outlet line trims too. */
  .vr-link-card {
    padding: 8px 9px !important;
  }
  /* Alloy Code stat: on desktop it floats right via inline margin-left:auto.
     On phone that lands it alone on a new line, right-aligned, which looks
     orphaned. Pull it back into the left-aligned stat row. */
  .vr-stat-share {
    margin-left: 0 !important;
    width: 100%;
  }
  .vr-stat-share .vr-stat-value {
    font-size: 12px !important;
  }
  .vr-header-right {
    text-align: left;
    width: 100%;
  }
  .vr-top-badge-row {
    text-align: left;
  }
  .vr-tier {
    text-align: left;
    font-size: 22px;
  }
  .vr-tier-label {
    text-align: left;
  }
  .vr-name {
    font-size: 20px;
  }
  .vr-role {
    font-size: 13px;
  }
  .vr-stats {
    gap: 18px;
    padding: 14px 16px;
    row-gap: 14px;
  }
  .vr-stat-value {
    font-size: 14px;
  }
  .vr-section {
    padding: 18px 16px;
  }
  .vr-section-title {
    font-size: 9px;
    margin-bottom: 12px;
  }
  .vr-job {
    padding: 14px 0 14px 12px;
  }
  .vr-job-current {
    padding-left: 10px;
  }
  .vr-job-org {
    font-size: 14px;
  }
  .vr-job-role {
    font-size: 12px;
  }
  .vr-job-period {
    font-size: 11px;
  }
  .vr-job-header {
    gap: 8px;
  }
  .vr-footer {
    padding: 10px 16px;
    font-size: 7px;
  }
  .vr-skill-tag {
    font-size: 9px;
    padding: 3px 8px;
  }
  .vr-badge {
    font-size: 9px;
    padding: 3px 8px;
  }
  .vr-item {
    font-size: 12px;
  }
}

/* Very narrow (≤380): collapse a couple more aggressive items */
@media (max-width: 380px) {
  .vr-header {
    padding: 16px 12px;
  }
  .vr-stats {
    padding: 12px 12px;
    gap: 14px;
    row-gap: 12px;
  }
  .vr-section {
    padding: 16px 12px;
  }
  .vr-name {
    font-size: 18px;
  }
  .vr-tier {
    font-size: 20px;
  }
}
