@charset "UTF-8";

/* Balanced professional palette: between bright blue and grayscale */

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;

  --text: #374151;
  --muted: #6b7280;

  /* Between previous blue and monochrome */
  --heading: #22324d;
  --accent: #5a78b8;
  --accent-hover: #3f63ad;

  --border: #e5e7eb;

  --maxw: 980px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--text);
}

main,
.container,
.cv-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 27px 20px 40px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

p,
ul,
ol {
  margin: 0 0 9px 0;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.3;
}

h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--heading);
  padding-bottom: 9px;
  margin: 0 0 17px 0;
  border-bottom: 3px solid var(--accent);
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  padding: 10px 18px;
  margin: 0 0 13px 0;
  border-radius: 6px;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
}

/* Header */

.cv-header {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  position: relative;
}

.cv-pdf-cards {
  position: absolute;
  right: 20px;
  bottom: 20px;

  display: flex;
  gap: 10px;
}

.cv-pdf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  padding: 10px 12px;

  min-width: 92px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 10px;

  color: var(--accent);

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);

  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cv-pdf-card svg {
  width: 28px;
  height: 28px;
}

.cv-pdf-card:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);

  transform: translateY(-2px);

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);

  text-decoration: none;
}

.cv-pdf-icon {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  flex: 0 0 auto;
}

.cv-pdf-label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.cv-title {
  margin-bottom: 0.25rem;
}

.cv-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 14px 0;
}

.cv-contact {
  display: grid;
  gap: 0.25rem;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.cv-actions a {
  display: inline-block;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid var(--border);
}

.cv-actions a:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  text-decoration: none;
}

/* Nav */

.cv-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--surface);
  padding: 16px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 16px;
}

.cv-nav a {
  display: inline-block;
  padding: 5px 10px;
  background: #f9fafb;
  border-radius: 4px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.cv-nav a:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  text-decoration: none;
}

/* Sections */

.cv-section {
  background: var(--surface);
  padding: 18px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 16px;
  scroll-margin-top: 24px;
}

#interests p {
  padding-inline: 6px;
}

/* Lists */

.cv-list,
.cv-inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cv-entry {
  margin-bottom: 14px;
  padding: 13px;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.cv-entry-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  align-items: baseline;
}

.cv-entry-main {
  min-width: 0;
}

.cv-entry-title {
  font-weight: 600;
  color: var(--heading);
}

.cv-entry-org-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  align-items: baseline;
  margin-top: 0.15rem;
}

.cv-entry-org {
  color: var(--text);
  font-weight: 400;
}

.cv-entry-company,
.cv-entry-degree {
  font-weight: 600;
  color: var(--heading);
}

.cv-entry-group,
.cv-entry-field {
  color: var(--text);
  font-weight: 400;
}

.cv-entry-group::before,
.cv-entry-field::before {
  content: "•";
  margin: 0 0.18rem;
  color: var(--muted);
}

.cv-entry-meta,
.cv-entry-location {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.cv-entry-details {
  margin-top: 0.5rem;
}

/* FIXED BULLETS */

.cv-entry-details ul,
.cv-section ul:not(.cv-list):not(.cv-inline-list),
.cv-section ol:not(.cv-list):not(.cv-inline-list) {
  margin: 0.45rem 0 0 0;
  padding-left: 1.35rem;
  list-style-position: outside;
}

.cv-entry-details li,
.cv-section ul:not(.cv-list):not(.cv-inline-list) li,
.cv-section ol:not(.cv-list):not(.cv-inline-list) li {
  margin-bottom: 0.35rem;
  padding-left: 0.1rem;
}

/* Publication / poster entries */

.cv-inline-list li {
  margin-bottom: 11px;
  line-height: 1.6;
  padding: 13px;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.cv-inline-list li:last-child {
  margin-bottom: 0;
}

/* Skills */

.cv-skills {
  display: grid;
  gap: 10px;
}

.cv-skill-row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 12px;
  padding: 12px 13px;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.cv-skill-row strong {
  color: var(--heading);
  font-weight: 600;
}

/* Footer */

.cv-footnote,
footer {
  margin-top: 27px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Tablet */

@media (max-width: 768px) {
  main,
  .container,
  .cv-page {
    padding: 30px 16px 36px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .cv-entry-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-skill-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Mobile */

@media (max-width: 480px) {
  main,
  .container,
  .cv-page {
    padding: 20px 12px 30px;
  }

  h1 {
    font-size: 1.6rem;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 1.05rem;
    padding: 10px 14px;
    margin-bottom: 14px;
  }

  .cv-header,
  .cv-section {
    padding: 20px 16px;
  }

  .cv-pdf-cards {
    position: static;
    margin-top: 16px;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .cv-pdf-card {
    width: fit-content;
  }

  .cv-nav {
    padding: 14px;
  }

  .cv-entry,
  .cv-inline-list li,
  .cv-skill-row {
    padding: 14px;
    font-size: 0.95rem;
  }

  footer,
  .cv-footnote {
    margin-top: 35px;
    font-size: 0.85rem;
  }
}

@media print {

  .cv-section,
  .cv-entry,
  .cv-inline-list li,
  .cv-skill-row {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

}

/* Collapsible sections */

details.cv-section {
  padding-top: 14px;
}

details.cv-section summary {
  cursor: pointer;
  list-style: none;
  display: block;

  /* Important for mobile browsers */
  -webkit-appearance: none;
  appearance: none;
}

details.cv-section summary::-webkit-details-marker {
  display: none;
}

details.cv-section summary::marker {
  display: none;
}

details.cv-section summary h2 {
  position: relative;
  margin-bottom: 0;
  padding-right: 36px;
}

details.cv-section summary h2::after {
  content: "−";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
}

details.cv-section:not([open]) summary h2::after {
  content: "+";
}

details.cv-section[open] summary {
  margin-bottom: 13px;
}
