/* ============================================================================
   ADVOKE CV — templates/family-creative.css
   Layout family: creative
   Editorial layouts with an oversized header and asymmetric block rhythm.
   Used by Creative Editorial, Designer Portfolio, Modern Creative,
   Elegant Creative and Creative Minimal.
   ============================================================================ */

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

.layout--creative .resume-creative__header {
  padding-bottom: var(--t-block-gap);
  margin-bottom: var(--t-section-gap);
  border-bottom: 1px solid var(--t-rule);
}

/* When the header has no divider, no visual break is drawn — the spacing
 * alone establishes the rhythm. */
.layout--creative .resume-creative__header .resume-header {
  padding-bottom: 0;
}

.layout--creative .resume-creative__body {
  display: flex;
  flex-direction: column;
  gap: var(--t-section-gap);
}

.layout--creative .resume-creative__block {
  position: relative;
}

/* Inset blocks (used by Creative Editorial) shift right to create a
 * deliberate asymmetry. */
.layout--creative .resume-creative__block--inset {
  padding-left: var(--t-inset-amount, 0);
}

/* Alternating blocks (used by Modern Creative) sit slightly inset on the
 * right when the block index is even. */
.layout--creative .resume-creative__block--alt {
  padding-right: var(--t-inset-amount, 0);
}

/* Oversized name treatment — the creative header sets the name large
 * already through tokens; here we tighten the line height for very large
 * names so they do not overlap the title. */
.layout--creative .resume-header__name {
  line-height: 1.05;
}

/* Numbered headings — used by Modern Creative. The numeral is drawn as a
 * pseudo element and the heading text sits to its right. */
.resume-section__heading--numbered {
  padding-left: 2.2em;
}

.resume-section__heading--numbered::before {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* Drop cap — used by Elegant Creative. */
.resume-section--summary .resume-summary__paragraph:first-of-type::first-letter {
  float: left;
  font-family: var(--t-font-heading);
  font-size: 3em;
  line-height: 0.9;
  font-weight: 700;
  color: var(--t-accent);
  padding: 0.06em 0.12em 0 0;
  margin-right: 0.06em;
}

/* Portfolio cards inside a projects section (used by Designer Portfolio). */
.layout--creative .resume-entries--portfolio {
  display: grid;
  grid-template-columns: repeat(var(--t-portfolio-columns, 2), minmax(0, 1fr));
  gap: 0.7em 1em;
}

.layout--creative .resume-entry--card {
  border: 1px solid var(--t-rule);
  border-left: 3px solid var(--t-accent);
  border-radius: 4px;
  padding: 0.6em 0.75em;
  background: #FDFDFC;
  break-inside: avoid;
}

.layout--creative .resume-entry--card .resume-entry__title {
  font-size: calc(var(--t-fs-base) + 0.2pt);
}