/* =============================================================
   cv.css  –  drop into assets/ and link from _layouts/default.html
   Implements jakegut-style CV layout on top of LatexJekyll base.
   ============================================================= */


/* ── Section headings (h1) ──────────────────────────────────── */
/*
  Renders like:
    WORK EXPERIENCE ─────────────────────────────────────────
  Uses a pseudo-element ruled line, no extra markup needed.
*/

h1.cv-section-heading,
.cv-section-heading {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid #000;
  padding-bottom: 2px;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}


/* ── Entry headers: left title + right-aligned date ─────────── */
/*
  Usage in kramdown:
    {:.cv-entry-header}
    **Job Title** · Company Name <span>2022 – Present</span>

  Renders the <span> pushed to the far right via flexbox.
*/

.cv-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.75em;
  font-weight: bold;
  margin-bottom: 0;
}

.cv-entry-header span {
  font-style: italic;
  white-space: nowrap;
  margin-left: 1em;
  flex-shrink: 0;
}


/* ── Entry subheader (location/institution line) ─────────────── */
/*
  Usage:
    {:.cv-entry-subheader}
    Bangalore, India

  Renders as a smaller, italic grey line beneath the header.
*/

.cv-entry-subheader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-style: italic;
  font-size: 0.88em;
  color: #444;
  margin-top: 0;
  margin-bottom: 0.2em;
}

.cv-entry-subeheader span {
  font-style: italic;
  white-space: nowrap;
  margin-left: 1em;
  flex-shrink: 0;
}

/* ── Bullet lists under entries ──────────────────────────────── */

.cv-entry-header + ul,
.cv-entry-subheader + ul {
  margin-top: 0.25em;
}

ul {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  padding-left: 1.5em;
}

/* ── Skills rows: label left, skills right ───────────────────── */
/*
  Usage:
    {:.cv-skills-row}
    **Proficient** <span>Ruby, Rails, Docker ...</span>
*/

.cv-skills-row {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.cv-skills-row strong {
  white-space: nowrap;
  min-width: 6em;   /* aligns all skill labels in a column */
}

.cv-skills-row span {
  color: #222;
}


/* ── Horizontal rules between sections ───────────────────────── */

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1em 0;
}


/* ── General page / body tweaks ──────────────────────────────── */

body {
  font-family: "Computer Modern", "Latin Modern", Georgia, serif;
  font-size: 11pt;
  line-height: 1.5;
  color: #111;
}

/* Keep the page narrow and centered like a printed CV */
.page-content,
.wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

/* Tighten heading spacing */
h1, h2, h3 {
  margin-bottom: 0.2em;
}

h2 {
  font-size: 1rem;
  font-weight: bold;
}

/* Links in CV: undecorated, inherit colour */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Print styles – looks clean when printed or saved as PDF */
@media print {
  body {
    font-size: 10pt;
  }

  .page-content,
  .wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  h1.cv-section-heading,
  .cv-section-heading {
    border-bottom-color: #000;
  }

  a {
    color: #000;
  }
}
