/* ============================================================================
   ADVOKE CV — templates/family-compact.css
   Layout family: compact
   High-density layout for resumes that must fit a lot of content on one
   page. Smaller body type, tighter gaps, multi-column skill grids and
   optional horizontal pairing of entries.
   Used by Compact Professional, Modern Compact, Internship Ready and
   Compact Double Column.
   ============================================================================ */

.resume--compact > .layout--compact {
  display: block;
}

.layout--compact .resume-compact__header {
  padding-bottom: 0.5em;
  margin-bottom: calc(var(--t-section-gap) - 2px);
}

.layout--compact .resume-compact__body--single {
  display: block;
}

.layout--compact .resume-compact__body--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6em 1em;
  align-items: start;
}

.layout--compact .resume-compact__col {
  min-width: 0;
}

.layout--compact .resume-section + .resume-section {
  margin-top: calc(var(--t-section-gap) - 2px);
}

.layout--compact .resume-entry + .resume-entry {
  margin-top: calc(var(--t-block-gap) - 1px);
}

.layout--compact .resume-bullets {
  padding-left: calc(var(--t-bullet-indent) - 2px);
}

.layout--compact .resume-bullet + .resume-bullet {
  margin-top: 0.05em;
}

/* Skills grid in compact templates uses the --t-skills-columns token set by
 * the engine, usually 2 or 3. */
.layout--compact .resume-chips {
  gap: 0.2em 0.35em;
}

.layout--compact .resume-chip {
  padding: 0.12em 0.45em;
  font-size: calc(var(--t-fs-base) - 0.6pt);
}

/* Two-column compact bodies should collapse on print to prevent awkward
 * page-boundary splits. */
@media print {
  .layout--compact .resume-compact__body--grid {
    grid-template-columns: 1fr;
    gap: 3mm;
  }
}