/* CV stylesheet for arnabkdey.org/cv */
/* Note: pandoc org reader emits class="CENTER" (uppercase) for #+BEGIN_CENTER */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
  background: #fff;
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 3rem 4rem;
}

/* hide the redundant document-level title (name appears in CENTER block) */
h1.title { display: none; }

/* ---- header block (#+BEGIN_CENTER -> div.CENTER) ---- */

div.CENTER {
  text-align: center;
  margin-bottom: 1.75rem;
}

div.CENTER p {
  text-align: center;
  margin: 0.2rem 0;
  line-height: 1.6;
}

/* name — injected span wrapping first line of CENTER block */
span.cv-name {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* suppress empty paragraphs from stripped latex vspace commands */
p:empty { display: none; }

/* ---- section headings: * Heading -> h2 ---- */

h2 {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant: small-caps;
  color: rgb(28, 144, 153);
  border-bottom: 1.5px solid rgb(28, 144, 153);
  padding-bottom: 0.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* ---- subsection: ** Heading -> h3 (institution names) ---- */

h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.1rem;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

/* ---- sub-subsection: *** Heading -> h4 (degree titles) ---- */

h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-top: 0.75rem;
  margin-bottom: 0.15rem;
}

p {
  margin: 0.25rem 0;
}

ol, ul {
  padding-left: 1.4rem;
  margin: 0.3rem 0;
}

li {
  margin-bottom: 0.25rem;
}

a {
  color: rgb(28, 144, 153);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p.back-link {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: #888;
}

@media print {
  h1.title { display: none; }
  body { font-size: 11pt; padding: 0; }
  a { color: #000; }
  h2 { border-bottom-color: #000; color: #000; }
  h3 { border-bottom-color: #999; }
}

@media (max-width: 600px) {
  body { padding: 1.5rem 1.25rem 2.5rem; }
}
