/* Resource header — shared detail-page header. Matches the visual
   language introduced on the element show page so that all
   "resource detail" pages (cycles, elements, etc.) share one
   prominent title + actions block. */
.resource-header {
  background: #fff;
  border: 3px solid var(--secondary-color);
  border-radius: 0.25rem;
  padding: 1.25rem 1.5rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.resource-header-main {
  flex: 1 1 auto;
  min-width: 0;
}

.resource-header-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}

.resource-header-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: -0.01em;
}

.resource-header-subtitle {
  font-size: 0.88rem;
  color: var(--border-emphasis);
  margin: 0 0 0.65rem;
  font-style: italic;
}

.resource-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: flex-start;
}

@media (max-width: 700px) {
  .resource-header {
    flex-direction: column;
    padding: 1rem 1rem 0.85rem;
  }
  .resource-header-actions {
    width: 100%;
  }
}
