/* Project / experience / document entries and contact rows.
   Mobile-first: one column with the tag under the description;
   two columns with a right-aligned tag from 768px up. */

.entry {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.entry:first-of-type { border-top: 1px solid var(--color-border); }

.entry-title {
  color: var(--color-accent);
  font-size: var(--text-small);
  font-weight: 500;
}
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover, .entry-title a:focus-visible { text-decoration: underline; }

.entry-sub {
  color: var(--color-text-soft);
  font-size: var(--text-small);
  line-height: var(--leading-normal);
  margin-top: 0.25rem;
  max-width: var(--measure);
  overflow-wrap: anywhere;
}
.entry-meta {
  color: var(--color-text-muted);
  font-size: var(--text-min);
  margin-top: 0.25rem;
}

.entry-tag {
  font-size: var(--text-min);
  color: var(--color-warning);
  padding: 2px 6px;
  border: 1px solid var(--color-warning);
  border-radius: 2px;
  height: fit-content;
  opacity: 0.85;
  letter-spacing: 0.06em;
  white-space: nowrap;
  justify-self: start;
}

@media (min-width: 768px) {
  .entry { grid-template-columns: 1fr auto; }
  .entry-tag { justify-self: auto; }
}

/* Contact rows — stacked label/value on phones, one line from 600px */
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-small);
  overflow-wrap: anywhere;
  transition: color 0.12s;
}
.contact-link:first-of-type { border-top: 1px solid var(--color-border); }
.contact-link:hover, .contact-link:focus-visible { color: var(--color-accent); }
.contact-link.static { cursor: default; }
.contact-link .cl-prefix {
  color: var(--color-text-muted);
  font-size: var(--text-min);
}

@media (min-width: 600px) {
  .contact-link {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .contact-link .cl-prefix { min-width: 80px; }
}
