/* ── Classic Theme ──────────────────────────────────────────
 * Clean, minimal design — based on the original General CV.
 * Fonts: Inter + Newsreader. Light background, subtle green accents.
 * Optimized for letter-size print output.
 * ──────────────────────────────────────────────────────────── */

/* @palette bg:#ffffff text:#1c1c1c muted:#999999 accent:#059669 border:#eeeeee */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Newsreader:ital,wght@0,400;1,400&display=swap');

/* ── Page ─────────────────────────────────────────────────── */

.cv-page.cv-classic {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: #1c1c1c;
  background: #fff;
  line-height: 1.45;
  font-size: 12.5px;
  width: 8.5in;
  min-height: 11in;
  max-height: 11in;
  overflow: hidden;
  padding: 0.45in 0.55in;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Row / Column layout ──────────────────────────────────── */

.cv-classic .cv-row { margin-bottom: 0; }
.cv-classic .cv-row-grid { display: grid; gap: 20px; }
.cv-classic .cv-cell { min-width: 0; }

/* ── Header ───────────────────────────────────────────────── */

.cv-classic .cv-header { margin-bottom: 14px; }

.cv-classic .cv-header-main {
  display: flex;
  flex-direction: column;  /* ATS: job title flows under the name, not at the far right */
  align-items: flex-start;
}

.cv-classic h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.cv-classic .cv-subtitle {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
}

.cv-classic .cv-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #bbf7d0;
  margin-left: 8px;
  vertical-align: middle;
}

.cv-classic .cv-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  font-size: 11.5px;
  color: #555;
  margin-top: 6px;
}

.cv-classic .cv-contact a { color: #059669; text-decoration: none; }
.cv-classic .cv-sep { margin: 0 6px; color: #ccc; }

/* ── Text block ───────────────────────────────────────────── */

.cv-classic .cv-text-section { margin-bottom: 14px; }

.cv-classic .cv-text {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

/* ── Sections ─────────────────────────────────────────────── */

.cv-classic .cv-section { margin-bottom: 14px; }

.cv-classic .cv-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  margin: 0 0 8px 0;
  padding: 0;
  font-kerning: none;  /* ATS: kerned 'AT' makes EDUCATION extract as E D U C AT I O N */
}

/* ── Entries (experience, education, any list) ────────────── */

.cv-classic .cv-entry { margin-bottom: 10px; }

.cv-classic .cv-entry-header {
  display: flex;
  justify-content: flex-start;  /* ATS: dates stay on the job's line, not the right edge */
  flex-wrap: wrap;
  column-gap: 6px;
  align-items: baseline;
}

.cv-classic .cv-entry-title { font-size: 13px; font-weight: 600; margin: 0; }
.cv-classic .cv-entry-role { font-size: 12px; color: #555; }
.cv-classic .cv-entry-date { font-size: 11px; color: #888; white-space: nowrap; }
.cv-classic .cv-entry-meta { font-size: 11px; color: #666; margin: 2px 0 0 0; }

.cv-classic .cv-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}

.cv-classic .cv-bullets li {
  font-size: 12px;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
  margin-bottom: 2px;
}

.cv-classic .cv-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #ccc;
}

/* ── Key-Value (skills, languages, metadata) ──────────────── */

.cv-classic .cv-kv-grid {
  display: grid;
  grid-template-columns: 1fr;  /* ATS: one column, so each label keeps its value */
  gap: 4px 24px;
}

.cv-classic .cv-kv-row {
  display: block;  /* ATS: label and value flow as one line of text */
  font-size: 12px;
  line-height: 1.6;
}

.cv-classic .cv-kv-label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.cv-classic .cv-kv-label::after { content: ':'; }
.cv-classic .cv-kv-value { color: #555; }

/* ── Grid cards (projects, highlights, portfolio) ─────────── */

.cv-classic .cv-grid {
  display: grid;
  gap: 8px;
}

.cv-classic .cv-grid-2 { grid-template-columns: 1fr 1fr; }
.cv-classic .cv-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.cv-classic .cv-grid-card {
  padding: 8px 10px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
}

.cv-classic .cv-grid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.cv-classic .cv-grid-card-title { font-size: 12.5px; font-weight: 600; }
.cv-classic .cv-grid-card-title a { color: #059669; text-decoration: none; }
.cv-classic .cv-grid-card-sub { font-size: 10px; color: #888; }

.cv-classic .cv-grid-card-desc {
  font-size: 11.5px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

.cv-classic .cv-grid-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.cv-classic .cv-tag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #059669;
  border: 1px solid #bbf7d0;
}

/* ── Print ────────────────────────────────────────────────── */

@media print {
  .cv-page.cv-classic {
    padding: 0.45in 0.55in;
    max-width: none;
    box-shadow: none;
  }

  @page { size: letter; margin: 0; }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
