/* PharmacyEG wordmark — Egypt flag in header img + hollow E/G filled with flag texture. */
.pom-mark {
  display: inline-flex;
  align-items: baseline;
  flex-direction: row;
  gap: 0;
  font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: inherit;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}
.pom-mark__text { display: inline-block; unicode-bidi: isolate; }
.pom-mark__om {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  direction: ltr;
  unicode-bidi: isolate;
}
.pom-flag-letter {
  position: relative;
  display: inline-block;
  font-weight: 800;
  line-height: 0.9;
  vertical-align: baseline;
  margin-left: 0.02em;
  direction: ltr;
  unicode-bidi: isolate;
}
.pom-flag-letter::before {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 0.055em rgba(255, 255, 255, 0.95);
  text-stroke: 0.055em rgba(255, 255, 255, 0.95);
  z-index: 0;
  pointer-events: none;
}
.pom-flag-letter > span {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-weight: 800;
  font-size: 1em;
  line-height: 0.9;
  min-width: 0.5em;
  background-image: url("../assets/flags/eg.svg");
  background-repeat: no-repeat;
  /* Wider canvas — each letter shows a slice of the flag (not stretched square). */
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pom-flag-letter[data-letter="E"] > span {
  background-position: 8% 50%;
}
.pom-flag-letter[data-letter="G"] > span {
  background-position: 72% 50%;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .pom-flag-letter > span {
    color: #ce1126;
    -webkit-text-fill-color: #ce1126;
    background: none;
  }
}
.pom-mark--on-dark .pom-flag-letter::before {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.92);
}
.pom-mark--on-light .pom-flag-letter::before {
  -webkit-text-stroke-color: rgba(11, 107, 97, 0.55);
}
.pom-mark--nav { font-size: 1.1rem; }
.pom-mark--hero { font-size: clamp(2.4rem, 7vw, 3.7rem); }
.pom-mark--hero .pom-flag-letter { margin-left: 0.04em; }

/* Flag img beside wordmark — always visible */
img.brand-flag,
.brand .brand-flag,
.topbar-brand .brand-flag,
.site-nav .brand .brand-flag,
.sidebar-brand-mark .brand-flag,
.auth-brand-mark .brand-flag {
  display: inline-block !important;
  width: 22px !important;
  height: 15px !important;
  min-width: 22px !important;
  min-height: 15px !important;
  object-fit: cover !important;
  border-radius: 2px;
  flex-shrink: 0 !important;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.brand,
.topbar-brand,
.site-nav .brand,
.sidebar-brand-mark,
.auth-brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
}
