/**
 * Polyh: Article Meta — layout skeleton only. Colours and type come from the
 * widget's own controls, so the strip works on a light or a dark ground.
 */

.polyh-ameta {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

/* Alignment is set by a control on .polyh-ameta (text-align); the flex items
   have to follow it, hence align-items rather than a second control. */
.polyh-ameta {
  align-items: center;
}

.polyh-ameta[style*="text-align: left"],
.polyh-ameta[style*="text-align:left"] {
  align-items: flex-start;
}

.polyh-ameta[style*="text-align: right"],
.polyh-ameta[style*="text-align:right"] {
  align-items: flex-end;
}

/* The trailing crumb is the article's own title and can be 60+ characters, so
   every box between the nav and that text must be allowed to shrink. A flex
   item's automatic minimum is min-content, which is what makes an un-hinted
   breadcrumb 411px wide inside a 390px viewport and pushes the whole page
   sideways — measured on planningonpurpose at 390px, 2026-08-19. min-width:0
   down the chain is the precondition for the ellipsis rule below to do anything. */
.polyh-ameta,
.polyh-ameta__crumbs {
  max-width: 100%;
  min-width: 0;
}

.polyh-ameta__crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: inherit;
  gap: .1rem .45rem;
  max-width: 100%;
  min-width: 0;
}

.polyh-ameta__crumbs li {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  max-width: 100%;
  min-width: 0;
}

/* The last crumb is the only one allowed to truncate — the crumbs above it are
   the navigable ones and must stay readable. */
.polyh-ameta__crumbs li:last-child {
  overflow: hidden;
}

.polyh-ameta__crumbs li:last-child [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.polyh-ameta__crumbs li::before {
  content: none;
}

.polyh-ameta__crumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.polyh-ameta__crumbs a:hover,
.polyh-ameta__crumbs a:focus-visible {
  border-bottom-color: currentColor;
}

.polyh-ameta__sep {
  opacity: .55;
}

.polyh-ameta__byline,
.polyh-ameta__dates {
  margin: 0;
  max-width: 62ch;
}

.polyh-ameta__byline a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}


/* Eyebrow — a label, so it must not inherit paragraph rhythm from the theme. */
.polyh-ameta__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .22em;
}
