/* Widen the article content column and shrink the side margins,
   so the page uses more of the screen on wide monitors while still
   staying centered and readable on smaller ones. */
.page-columns.page-layout-article {
  grid-template-columns:
    [screen-start] 1.5em
    [screen-start-inset] 1fr
    [page-start page-start-inset body-start-outset body-start] 1.5em
    [body-content-start] minmax(500px, 1100px)
    [body-content-end] 1.5em
    [body-end body-end-outset page-end-inset page-end] 1fr
    [screen-end-inset] 1.5em
    [screen-end];
}

.navbar-title {
  font-weight: 600;
}

.cv-header h1 {
  margin-bottom: 0.2em;
}

.cv-photo {
  border-radius: 50%;
  width: 140px;
  float: right;
}

.cv-jumpnav {
  font-size: 0.9em;
  padding: 0.6em 0;
  margin-bottom: 1em;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  clear: both;
}

.cv-jumpnav a {
  text-decoration: none;
  color: #1a4d8f;
}

.cv-entry {
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 0.6em 1em;
  margin-bottom: 0.7em;
}

.cv-entry summary {
  cursor: pointer;
  list-style: none;
}

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

.cv-entry summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.5em;
  color: #1a4d8f;
  transition: transform 0.15s ease;
}

.cv-entry[open] summary::before {
  transform: rotate(90deg);
}

.cv-entry ul {
  margin-top: 0.7em;
  margin-bottom: 0.2em;
}

/* Projects page: card grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25em;
  margin-top: 1.5em;
}

.project-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.1em 1.3em;
  background: #fff;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.4em;
  font-size: 1.15em;
}

.badge-row {
  margin-bottom: 0.6em;
}

.badge {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 12px;
  margin-right: 0.4em;
  margin-bottom: 0.3em;
}

.badge-type-research {
  background: #e6e6fa;
  color: #4b0082;
}

.badge-type-personal {
  background: #e0f4ea;
  color: #1a7a4c;
}

.badge-status-complete {
  background: #e6f0ff;
  color: #1a4d8f;
}

.badge-status-progress {
  background: #fff3e0;
  color: #8a5a00;
}

.skill-tags {
  font-size: 0.85em;
  color: #555;
  margin-bottom: 0.7em;
}

.project-card details {
  margin-top: 0.5em;
  font-size: 0.92em;
}

.project-card summary {
  cursor: pointer;
  font-weight: 600;
  color: #1a4d8f;
}

.project-card details p {
  margin-top: 0.6em;
}