/* css styles */

/* Give the content column more room (default image column is 42%) */
div.quarto-about-trestles .about-entity {
  flex: 0 0 30%;
}

/* Give the hero text column room to breathe */
#hero-heading h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--bs-border-color);
  font-size: 1.35rem;
}

/* --- Experience / Projects / Education entries --- */
.exp-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.exp-item .logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
  margin: 0;
  margin-top: 4px;
}

/* native ![]() wraps the logo in a <p> — kill its margin so it aligns */
.exp-item > p {
  margin: 0;
}

.exp-item .exp-body {
  flex: 1;
  min-width: 0;
}

/* single-line entries (e.g. Education): center text against the logo */
.exp-item.exp-edu {
  align-items: center;
}

.exp-item .exp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  line-height: 1.35;
}

/* role and date are separate paragraphs so flex can space them apart */
.exp-item .exp-head p {
  margin: 0;
}

.exp-item .exp-role {
  font-weight: 600;
}

/* small "open site" icon button next to a project name */
.exp-item .proj-link {
  margin-left: 0.4rem;
  color: var(--bs-link-color, #2761e3);
  font-size: 0.85rem;
  text-decoration: none;
}

.exp-item .proj-link:hover {
  color: var(--bs-link-hover-color, #1d4bb8);
}

.exp-item .exp-company {
  font-weight: 400;
  color: var(--bs-secondary-color);
}

.exp-item .exp-date {
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  white-space: nowrap;
  margin-top: 0px;
  margin-left: auto;
  text-align: right;
}

/* --- Project thumbnails --- */
.exp-item .thumb {
  width: 150px;
  aspect-ratio: 16 / 10;
  object-fit: contain;          /* show the whole shot rather than cropping to fill */
  flex-shrink: 0;
  margin: 0;
}

/* real screenshots stand on their own; only the "no preview yet" placeholder
   needs a frame to read as a box */
.exp-item .thumb[src$="placeholder.svg"] {
  border: 1px solid var(--bs-border-color);
}

/* rows with a thumbnail centre their text against the image */
.exp-item:has(.thumb) {
  align-items: center;
}

/* --- Experience timeline --- */
/* a rail runs down the centre of the logos; each opaque logo masks it into a node */
.timeline .exp-item {
  position: relative;
  margin-bottom: 0;
  padding-bottom: 1.6rem;
}

.timeline .exp-item::before {
  content: "";
  position: absolute;
  left: 21px;              /* logo is 44px wide, so its centre sits at 22px */
  top: 4px;                /* matches .logo's margin-top */
  height: 100%;
  width: 2px;
  background: var(--bs-border-color);
}

/* nothing to connect to below the final role */
.timeline .exp-item:last-child::before {
  display: none;
}

.timeline .exp-item .logo {
  position: relative;      /* lift the logo above the rail */
  background: var(--bs-body-bg);
}

.exp-item ul {
  margin: 0.20rem 0 0;
  padding-left: 1.05rem;
  font-size: 0.95rem;
}

.exp-item ul li {
  margin-bottom: 0.15rem;
}
