/* The Power BI | Fabric Apps switch on both portfolio heroes (KAN-66, design Q4).
   Two links between sibling pages, /portfolio/ and /portfolio/fabric-apps/, drawn as one
   segmented pill with the current page's half filled. Both pages load this file after
   all.css through stylesheets: in their front matter. */
body.page-portfolio .pf-switch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  margin-top: 1.4rem;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #e7e9ee;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

body.page-portfolio .pf-switch a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border: 0 !important;
  border-radius: 999px;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1;
  color: #565d6e !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body.page-portfolio .pf-switch a:hover {
  color: #0c0e14 !important;
  background: #f5f6f9;
}

body.page-portfolio .pf-switch a[aria-current="page"],
body.page-portfolio .pf-switch a[aria-current="page"]:hover {
  color: #ffffff !important;
  background: #0c0e14;
}

body.page-portfolio .pf-switch a:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

body.page-portfolio .pf-switch .count {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.7;
}
