/* public/CSS/PAGES/_HOME_/common.css
   Classes shared by several sections of the home page. */

/* A part of the profile: the heading on the left, the content on the right
   (stacked on phones). */
.profile-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.profile-section-inner {
  display: grid;
  gap: 24px;
}

.profile-section-content {
  min-width: 0;
}

@media (min-width: 860px) {
  .profile-section {
    padding: 80px 0;
  }

  .profile-section-inner {
    grid-template-columns: 240px 1fr;
    gap: 48px;
  }

  .profile-section-heading {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

/* The green "open to work" dot (intro and contact). */
.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-dot);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-dot) 22%, transparent);
}

/* Small rounded labels for skills. */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chip {
  padding: 5px 12px;
  border-radius: 999px;
  background-color: var(--chip-background);
  color: var(--chip-text);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* One experience or education entry (Sections/Components/timeline_entry.ejs). */
.timeline {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.timeline-entry {
  position: relative;
  padding: 0 0 36px 28px;
  border-left: 1px solid var(--border);
}

.timeline-entry:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--body-text);
  background-color: var(--page-background);
}

.timeline-entry-current::before {
  background-color: var(--body-text);
}

.timeline-organisation {
  margin-top: 2px;
  font-weight: 500;
}

.timeline-organisation a {
  color: inherit;
  text-decoration: none;
}

.timeline-organisation a:hover {
  text-decoration: underline;
}

.timeline-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted-text);
  font-size: 0.9375rem;
}

.timeline-period {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.9;
}

.timeline-description {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 64ch;
}

.timeline-entry .chip-list {
  margin-top: 16px;
}
