/* ============================================================
   Language switch (EN | ES)
   Small pill above the H1, only on pages that have a translation
   (so far: the Madrid FBI page and its Spanish version at
   /es/huellas-fbi-madrid). Both items are plain links: Google
   follows them, and each page also lists the other in its
   <link rel="alternate" hreflang> tags. No automatic redirect by
   browser language, on purpose.
   ============================================================ */
.bp-lang-switch {
  display: flex;
  justify-content: flex-end;
  margin: -36px 0 14px; /* sits in the hero's top padding */
}

.bp-lang-switch__group {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid #d5e0ea;
  border-radius: 999px;
  background: #fff;
}

.bp-lang-switch a {
  display: inline-block;
  min-width: 38px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  color: #004c80;
  text-decoration: none;
}

.bp-lang-switch a:hover,
.bp-lang-switch a:focus-visible {
  background: #eef4f9;
  color: #004c80;
  text-decoration: none;
}

.bp-lang-switch a[aria-current="page"] {
  background: #004c80;
  color: #fff;
  cursor: default;
}

/* Guide pages (FBI guides and their /es/ versions): a plain right-aligned
   row above the H1, no negative margin (these pages have no hero padding). */
.bp-lang-switch--inline {
  margin: 0 0 6px;
}

/* Blog posts that have a Spanish version: the switch sits at the right end
   of the breadcrumb row ("Home › Blog › …"). Takes over the breadcrumb's
   width and padding from css/blog-post.css. */
.bp-crumb-row {
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 32px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-crumb-row .bp-breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.bp-crumb-row .bp-lang-switch {
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 768px) {
  .bp-crumb-row {
    padding: 0 20px 12px;
  }
}

/* "Blueprint Spain · Actualizado en noviembre de 2026" is longer than the
   English line: on phones let it wrap to a second line instead of squeezing
   each part into a narrow column. */
#bp-ssr-content .bp-meta {
  flex-wrap: wrap;
  row-gap: 2px;
}

#bp-ssr-content .bp-meta > span {
  white-space: nowrap;
}
