/* ============================================
   LAYOUT: Header — Obsidian Aurora
   ============================================
   Flat header — text & icons on page background.
   No card/island wrapper.
   ============================================ */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: transparent;
  color: var(--text);
  padding: 4px 24px 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 28px;
  gap: 24px;
  border: none;
}

.header-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
}

/* Emphasised word — serif italic accent (prototype <em> / .serif-it) */
.header-content h1 em,
.header-content .serif-it {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.header-content h1 i {
  color: var(--color-primary);
  font-size: 1.1em;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

.header-content p {
  color: var(--text-dim);
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 640px;
}

/* Column so page-specific actions (e.g. Export CSV) stack UNDER the icon row
   instead of pushing it left. The icons keep their own horizontal row. */
.header-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.header-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* =================== Responsive =================== */

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    align-items: center;   /* base is flex-end (column) — re-centre on mobile */
    flex-wrap: wrap;
  }

  .header-content h1 {
    font-size: 1.35rem;
    justify-content: center;
  }
}
