/*
 * Article header (single posts) — added 2026-09-03.
 *
 * Tightens the header stack (breadcrumb → eyebrow → title → meta row) and aligns it to the
 * 845px article column so the article, not the header, takes the fold.
 *
 * Lives outside style.css on purpose: style.css is Tailwind/mix build output and most of the
 * utilities needed here are not compiled into it. Enqueued from inc/handle-theme-assets.php.
 *
 * Colour tokens mirror tailwind.config.js: blue #005777, blue-light #e6f5fb,
 * gray-medium #595959, gray-blue #c3c8c9.
 */

/* Breadcrumb: theme default is a fluid 2.5–5rem top pad; pull it in and align to the column */
.single-post .breadcrumbs {
  max-width: 845px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.single-post .article-header {
  max-width: 845px;
  margin: 1.25rem auto 1.5rem;
}

.single-post .article-header .category {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.single-post .article-header h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

/* One row: byline · date · tags  ........  Share: f X in ⧉  (wraps on narrow screens) */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 1rem;
}

.article-meta__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
}

/* middot separators between byline / date / tag group */
.article-meta__info > * + *::before {
  content: "\00B7";
  margin-right: 0.5rem;
  color: #595959;
}

.article-meta .published-date {
  color: #595959;
}

.article-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.tag-chip,
.tag-chip:visited {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #005777;
  border: 1px solid #c3c8c9;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.tag-chip:hover,
.tag-chip:focus {
  background-color: #e6f5fb;
  border-color: #005777;
  color: #005777;
}

/* the share partial carries its own stacked top margin; not wanted inside the meta row */
.article-meta .social-media-share {
  margin-top: 0;
}

@media (max-width: 640px) {
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  /* chips get their own line on phones; drop the leading middot so it can't orphan */
  .article-meta__info > .article-tags {
    flex-basis: 100%;
  }
  .article-meta__info > .article-tags::before {
    content: none;
    margin: 0;
  }
}
