/* ==========================================================================
   Subbrand Logotype — per Figma 9490-13930
   ----------------------------------------------------------------------------
   The Platinumlist logotype (mark + wordmark) with an EDITABLE subtitle line
   below, left-aligned under the wordmark. Use it to brand a sub-product page,
   e.g. "Platinumlist / marketing highlights" or "… / for organisers".

   Everything scales from a single custom property, --pl-logo-w (the logotype
   width). The subtitle's size, indent and offset are derived from it so the
   lock-up stays correct at any size. The mark+wordmark is drawn from the
   shipped logo SVGs; the subtitle is real text (set it to whatever you need).

   Colour variants (pair the logo colour with the subtitle colour):
     .pl-logo-subbrand--dark    (default) black logo  + ink subtitle
     .pl-logo-subbrand--white             white logo  + white subtitle  (on dark)
     .pl-logo-subbrand--cyan              cyan logo   + cyan subtitle
     .pl-logo-subbrand--purple            purple logo + purple subtitle

   Arabic / RTL: add dir="rtl" — the lock-up mirrors and the Arabic logo is
   used automatically; combine with a colour variant as usual.

   Markup:
     <span class="pl-logo-subbrand pl-logo-subbrand--dark" style="--pl-logo-w:220px">
       <span class="pl-logo-subbrand-logo" role="img" aria-label="Platinumlist"></span>
       <span class="pl-logo-subbrand-sub">marketing highlights</span>
     </span>
   ========================================================================== */
.pl-logo-subbrand {
  --pl-logo-w: 200px;
  --pl-logo-sub: var(--content-primary, #221327);
  --pl-logo-img: url('../../assets/logo-horizontal-black.svg');
  --pl-logo-ratio: 641 / 123;     /* Latin lock-up aspect ratio */
  display: inline-block;
  line-height: 0;
}

/* Mark + "Platinumlist" wordmark, drawn from the shipped SVG */
.pl-logo-subbrand-logo {
  display: block;
  inline-size: var(--pl-logo-w);
  aspect-ratio: var(--pl-logo-ratio);
  background: var(--pl-logo-img) no-repeat left center / contain;
}

/* Editable subtitle — sits under the wordmark (indented past the mark) */
.pl-logo-subbrand-sub {
  display: block;
  /* Per Figma 9490:13947 the subtitle top sits ~1.6px above the logotype's
     bottom edge — it tucks into the empty space below the wordmark rather than
     clearing the full mark. Pull it up with a small negative offset. */
  margin-block-start: calc(var(--pl-logo-w) * -0.01);
  margin-inline-start: calc(var(--pl-logo-w) * 0.255);
  font-family: var(--font-family-default);
  font-weight: var(--font-weight-medium, 500);
  font-size: calc(var(--pl-logo-w) * 0.074);
  line-height: 1.167;
  letter-spacing: 0;
  color: var(--pl-logo-sub);
  white-space: nowrap;
}

/* ---- Colour variants ---- */
.pl-logo-subbrand--dark {
  --pl-logo-img: url('../../assets/logo-horizontal-black.svg');
  --pl-logo-sub: var(--content-primary, #221327);
}
.pl-logo-subbrand--white {
  --pl-logo-img: url('../../assets/logo-horizontal-white.svg');
  --pl-logo-sub: #ffffff;
}
.pl-logo-subbrand--cyan {
  --pl-logo-img: url('../../assets/logo-horizontal-blue.svg');
  --pl-logo-sub: var(--accent-badge, #79E2FF);
}
.pl-logo-subbrand--purple {
  --pl-logo-img: url('../../assets/logo-horizontal-purple.svg');
  --pl-logo-sub: var(--poodle-primary, #7E05E8);
}

/* ---- Arabic / RTL ---- */
.pl-logo-subbrand:dir(rtl),
[dir="rtl"] .pl-logo-subbrand {
  --pl-logo-ratio: 641 / 133;     /* Arabic lock-up aspect ratio */
  --pl-logo-img: url('../../assets/logo-ar-horizontal-black.svg');
}
.pl-logo-subbrand--white:dir(rtl),
[dir="rtl"] .pl-logo-subbrand--white { --pl-logo-img: url('../../assets/logo-ar-horizontal-white.svg'); }
.pl-logo-subbrand--cyan:dir(rtl),
[dir="rtl"] .pl-logo-subbrand--cyan { --pl-logo-img: url('../../assets/logo-ar-horizontal-blue.svg'); }
.pl-logo-subbrand--purple:dir(rtl),
[dir="rtl"] .pl-logo-subbrand--purple { --pl-logo-img: url('../../assets/logo-ar-horizontal-purple.svg'); }
.pl-logo-subbrand:dir(rtl) .pl-logo-subbrand-sub,
[dir="rtl"] .pl-logo-subbrand .pl-logo-subbrand-sub {
  font-family: var(--font-family-default-ar, var(--font-family-default));
}
