/* GOR-139: razor-sharp native HTML/CSS site titles on kacema.org + study.kacema.org
   Replaces blurry raster wordmarks (kacema.webp / logostudy.webp).
   Does not modify kacema-header-gor129.css. Do not load on kacema.nl. */

a.kacema-logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}
a.kacema-logo-link:focus-visible {
  outline: 3px solid #1a365d;
  outline-offset: 4px;
}

/* Hide the low-res raster wordmark once the vector text is in place;
   hide it immediately too so the blurry bitmap never paints on Retina. */
a.kacema-logo-link .gatsby-image-wrapper,
a.kacema-logo-link img {
  display: none !important;
}

.kacema-wordmark {
  font-family: Arial, "Trebuchet MS", Helvetica, sans-serif;
  font-size: 74px;
  line-height: 1em;
  font-weight: bold;
  font-style: normal;
  text-transform: capitalize;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.kacema-wordmark span {
  margin: 0 5px 0 0;
  padding: 0;
}

/* kacema.org / kacema.nl official MUSUMA palette (C matches the live #D70204 default) */
.kacema-wordmark-musuma .first { color: #8B252C; }
.kacema-wordmark-musuma .second { color: #C52D2E; }
.kacema-wordmark-musuma .third,
.kacema-wordmark-musuma .thirth { color: #D70204; }
.kacema-wordmark-musuma .fourth { color: #F68B3B; }
.kacema-wordmark-musuma .fifth { color: #FFB645; }
.kacema-wordmark-musuma .sixth { color: #C2B628; }
.kacema-wordmark-musuma .seventh { color: #515D1B; }
.kacema-wordmark-musuma .eightth { color: #09724C; }
.kacema-wordmark-musuma .nineth { color: #0B477F; }
.kacema-wordmark-musuma .tenth { color: #3D418B; }
.kacema-wordmark-musuma .eleventh { color: #603879; }
.kacema-wordmark-musuma .twelveth { color: #C1308A; }

/* study.kacema.org palette sampled from the existing logostudy.jpg wordmark */
.kacema-wordmark-study .l1 { color: #B71707; }
.kacema-wordmark-study .l2 { color: #B71707; }
.kacema-wordmark-study .l3 { color: #FB6801; }
.kacema-wordmark-study .l4 { color: #FB6801; }
.kacema-wordmark-study .l5 { color: #F5B901; }
.kacema-wordmark-study .l6 { color: #F5B901; }
.kacema-wordmark-study .l7 { color: #A9BD1D; }
.kacema-wordmark-study .l8 { color: #A9BD1D; }
.kacema-wordmark-study .l9 { color: #507008; }
.kacema-wordmark-study .l10 { color: #077076; }
.kacema-wordmark-study .l11 { color: #077076; }
.kacema-wordmark-study .l12 { color: #0D96DE; }
.kacema-wordmark-study .l13 { color: #1517FF; }
.kacema-wordmark-study .l14 { color: #6C13F9; }
.kacema-wordmark-study .l15 { color: #C406B2; }

/* Same breakpoints as kacema.nl GOR-132, so all four sites share font-size + line-height */
@media screen and (max-width: 1024px) {
  .kacema-wordmark {
    font-size: 54px;
    line-height: 1em;
  }
}
@media screen and (max-width: 768px) {
  .kacema-wordmark {
    font-size: 39px;
    line-height: 1em;
  }
}
@media screen and (max-width: 480px) {
  .kacema-wordmark {
    font-size: 32px;
    line-height: 1em;
    letter-spacing: 0;
  }
  /* Longer "KACEMA STUDY FUND" keeps the same 32px size; tighten tracking so it stays on one line */
  .kacema-wordmark-study span {
    margin: 0;
  }
}

/* Let the wordmark use the full header width (study title is longer than musuma).
   Scoped to the sticky logo row only — does not affect page content. */
.sticky.top-0.bg-white .flex.items-center.justify-center.gap-5.pt-3 > .lg\:w-2\/3 {
  width: auto !important;
  max-width: 100% !important;
  flex: 0 1 auto;
}
