.phdGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.phdCard {
  position: relative;
  border-left: 4px solid #ccc;
  background: #fafafa;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border 0.2s ease;
}

.phdCard[open] {
  border-left-color: var(--link-color);
}

.phdSummary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  margin: 0;
}

.phdSummary::-webkit-details-marker {
  display: none;
}

.phdSummary * {
  pointer-events: none;
}

.phdSummary a {
  pointer-events: auto;
}

.phdTopic {
  display: block;
  margin-top: 0.25rem;
}

.phdIconRow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.phdIconRow i {
  width: 1.2em;
  text-align: center;
}

.phdDivider {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: #ccc;
  margin: 0 0.3rem;
}

.phdDetails {
  margin-top: 0.5rem;
  padding: 0 1rem 0.75rem;
  font-size: 0.85rem;
  opacity: 0.85;
  cursor: pointer;
}

.phdCard:not([open]) .phdDetails {
  display: none;
}

.phdDetails ul {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.phdDetails li {
  background: #eee;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Theme */
.phdTheme {
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}

/* Method */
.phdMethod {
  background: rgba(52, 152, 219, 0.1);
  color: #21618c;
}

/* Context */
.phdContext {
  background: rgba(46, 204, 113, 0.1);
  color: #1e8449;
}

/* Supervision */
.phdSupervision {
  background: rgba(155, 89, 182, 0.1);
  color: #6c3483;
}

.phdMeta {
  font-size: 0.8rem;
  font-weight: bold;
  opacity: 0.7;
  text-align: right;
  margin-top: 0.5rem;
}

@media (hover: hover) {

.phdCard {
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease,
    border 0.2s ease;
}

.phdCard:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-left-color: var(--link-color);
}

}

@media (hover: none) {

.phdSummary::after {
  content: "Tap to expand";
  display: block;
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 0.25rem;
}

.phdCard[open] .phdSummary::after {
  content: "Tap to collapse";
}

}

.phdCard:active {
  transform: translateY(0);
}
