/*** CMP-SHOW-HEADER.CSS v1.3
- Identity card + horizontal meta strip for the Show detail page.
- Used by: templates/components/mc/sections/beta/show/cmp-show-header.html
- Identity sits below the band hero. Typographic continuity with mp-label
  (4em serif title, same eyebrow rhythm) so all entry-point pages read as
  one system.
- Eyebrow / title / meta-label typography comes from mp-general.css; this
  file owns layout and the meta-value treatment.
##########################
***/

/* #region # IDENTITY ########################## */

.mp-show .show-thumb { display: none; }

.mp-show .show-identity {
  padding-bottom: var(--space-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow meta"
    "title   title"
    "excerpt excerpt";
  column-gap: 3rem;
  row-gap: var(--space-md);
  align-items: baseline;
  border-bottom: 2px solid var(--color-black);
}

/* Title + optional subtitle occupy a single grid cell so no extra row is
   reserved when the subtitle is absent. Subtitle sits tight under title. */
.mp-show .show-title-group { grid-area: title; }
.mp-show .show-title-group .show-subtitle { margin-top: var(--space-xs); }

.mp-show .show-eyebrow {
  grid-area: eyebrow;
  align-self: center;
  margin: 0;
}

.mp-show .show-title {
  grid-area: title;
}

.mp-show .show-subtitle {
  grid-area: sub;
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--type-md);
  color: var(--color-shade);
}

.mp-show .show-description {
  grid-area: excerpt;
}

/* Right-baselined count, same language as label-identity-meta. */
.mp-show .show-identity-meta {
  grid-area: meta;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: baseline;
  column-gap: var(--space-xs);
  margin: 0;
}

.mp-show .show-identity-meta-count {
  color: var(--color-black);
  font-variant-numeric: tabular-nums lining-nums;
}

/* #endregion */

/* #region # META STRIP ########################## */

.mp-show .show-meta {
  display: flex;
  flex-flow: row wrap;
  gap: 0.75rem 2.5rem;
  padding: 1.5rem 0 var(--space-md) 0;
  border-bottom: 1px solid var(--color-shade);
}

.mp-show .show-meta-item {
  display: inline-flex;
  flex-flow: row wrap;
  align-items: baseline;
  gap: var(--space-xs) 0.75rem;
}

.mp-show .show-meta-label {
  flex: 0 0 auto;
}

.mp-show .show-meta-value {
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  color: var(--color-black);
}

.mp-show .show-meta-value a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.mp-show .show-meta-value ul {
  display: inline;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mp-show .show-meta-value li { display: inline; }

.mp-show .show-meta-value li + li::before {
  content: " · ";
  color: var(--color-shade);
  padding: 0 0.15em;
}

/* #endregion */

/* #region # RESPONSIVE ########################## */

@media (max-width: 800px) {
  .mp-show .show-identity {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "excerpt"
      "meta";
  }
  .mp-show .show-identity-meta { justify-self: start; }
}

/* #endregion */
