// Branthia wordmark — real logo, inlined so every path inherits currentColor (adapts to theme).
// Geometry from uploads/Branthia-f279b5d4.svg (clean, corrected). viewBox 0 0 362.8 77.
const LOGO_INNER = `
  <path d="M16.3,1.4v74.3H0V1.4h16.3ZM30,45.5H11v-13.7h18.2c2.9,0,5.2-.7,6.7-2.1,1.5-1.4,2.3-3.4,2.3-6.1s-.8-4.6-2.3-5.9c-1.5-1.3-3.8-2-6.7-2H12.2V1.4h18.8c7.5,0,13.4,1.8,17.6,5.5,4.3,3.7,6.4,8.7,6.4,15.1s-1.1,8-3.2,11c-2.1,3-5.3,5.2-9.3,6.4v-1.4c4.4.9,7.7,2.9,10,5.8,2.3,2.9,3.5,6.7,3.5,11.4s-1,8.1-2.9,11.1c-1.9,3.1-4.7,5.4-8.4,7-3.7,1.6-8.3,2.4-13.6,2.4H12.2v-14.3h17.9c3,0,5.3-.7,6.8-2.1,1.5-1.4,2.3-3.4,2.3-6.2s-.8-4.5-2.4-5.8c-1.6-1.3-3.8-2-6.8-2h0Z"></path>
  <path d="M92.4,29.6v-4.1c-1.1-.3-2.1-.5-3.1-.6-1-.1-1.9-.2-2.9-.2-4.1,0-7.3,1.1-9.7,3.3-1.5,1.4-2.7,3.1-3.5,5l-.8-7.4h-14.6v50.1h15.5v-21.8c0-5,1.3-8.5,3.8-10.6s6-3.2,10.4-3.2h.6c.3-3.5,1.4-6.5,3.3-9.2.3-.4.6-.9,1-1.3Z"></path>
  <path d="M106.4,77c-5.3,0-9.5-1.5-12.6-4.4-3.1-2.9-4.7-6.8-4.7-11.7s1.6-8.3,4.8-11c3.2-2.7,7.8-4.4,13.8-4.8l14.1-1.1v-.8c0-1.7-.3-3.1-1-4.2-.7-1.1-1.6-1.9-2.9-2.5s-2.8-.9-4.7-.9c-3.3,0-5.8.6-7.5,1.8-1.7,1.2-2.6,2.9-2.6,5.2h-12.9c0-3.8,1-7.1,2.9-9.9,1.9-2.8,4.7-5,8.3-6.5,3.6-1.5,7.8-2.3,12.5-2.3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0-5.8.6-7.5,1.8-1.7,1.2-2.6,2.9-2.6,5.2h-12.9c0-3.8,1-7.1,2.9-9.9,1.9-2.8,4.7-5,8.3-6.5,3.6-1.5,7.8-2.3,12.5-2.3s9,.9,12.4,2.6c3.4,1.7,6,4.3,7.7,7.6,1.8,3.3,2.7,7.4,2.7,12.3v29.3h-13.7l-1-6.6c-.8,2.3-2.7,4.2-5.7,5.7-3,1.5-6.3,2.3-10.1,2.3h0ZM318.9,65.6c2.9,0,5.4-.7,7.2-2.2s2.8-3.6,2.8-6.5v-2.7l-7.8.7c-3.3.3-5.7.8-7.1,1.7-1.4.8-2.1,2.1-2.1,3.7s.6,3.1,1.7,4c1.1.9,2.9,1.3,5.2,1.3h0Z"></path>
  <polygon points="362.8 61.8 362.8 75.7 348.9 75.7 348.9 61.8 362.8 61.8 362.8 61.8"></polygon>
`;

function BranthiaLogo({ height = 26, style = {}, title = "Branthia" }) {
  return (
    <svg
      role="img"
      aria-label={title}
      viewBox="0 0 362.8 77"
      fill="currentColor"
      preserveAspectRatio="xMinYMid meet"
      style={{ height, width: height === "auto" ? "100%" : "auto", display: "block", ...style }}
      dangerouslySetInnerHTML={{ __html: LOGO_INNER }}
    />
  );
}

Object.assign(window, { BranthiaLogo });
