/* Բոլոր տարբերանշանների ընդհանուր կարգավորում․ չափերը պահվում են ըստ տեղադրման վայրի։ */
.eotf-theme-logo {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* Բեռնման էկրանի տարբերանշանը պահում է հին EOTF գրության նույն տեսողական լայնքը։ */
.site-intro .eotf-mark.eotf-intro-logo-card {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: clamp(300px, 36vw, 610px) !important;
  height: clamp(76px, 9vw, 138px) !important;
  font-size: 0 !important;
}

.site-intro .eotf-svg-intro-logo {
  width: 100% !important;
  height: 100% !important;
  object-position: center center !important;
}

/* Header-ի brand հատվածը այլևս չի պահում առանձին EOTF տեքստ/գիծ/անվանում։ */
.site-header .brand,
.nav-overlay header .brand,
.menu-panel header .brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  min-width: 0 !important;
  overflow: visible !important;
}

/* Header-ի logo holder-ը թափանցիկ է, որովհետև light/dark SVG-ները իրենք են ապահովում ճիշտ ընթեռնելիությունը։ */
.site-header .brand .eotf-header-logo-card,
.nav-overlay header .brand .eotf-header-logo-card,
.menu-panel header .brand .eotf-header-logo-card {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: clamp(236px, 16vw, 310px) !important;
  height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.site-header .brand .eotf-svg-header-logo,
.nav-overlay header .brand .eotf-svg-header-logo,
.menu-panel header .brand .eotf-svg-header-logo {
  width: 100% !important;
  height: 100% !important;
}

/* Գլխավոր էկրանի ներսի logo-ն՝ slogan-ից առաջ։ */
.hero-identity img.eotf-theme-logo {
  width: clamp(190px, 21vw, 330px) !important;
  height: auto !important;
}

/* Աջ կողմի մեխանիզմի/քառակուսու ներսի logo-ն պահում ենք կենտրոնում՝ առանց չափերը պայթեցնելու։ */
.machine > b img.eotf-theme-logo,
.system-orbit > b img.eotf-theme-logo {
  width: min(82%, 310px) !important;
  height: auto !important;
  margin: 0 auto !important;
  object-position: center center !important;
}

/* Verification/credentials պատմության logo-ն։ */
.credential-story > img.eotf-theme-logo {
  width: clamp(190px, 22vw, 330px) !important;
  height: auto !important;
}

/* Էկրան 02/08-ի աջ կողմի system-orbit քառակուսու ներսի տեքստը ցերեկային ռեժիմում մնում է սպիտակ։ */
.public-shell[data-theme="light"] .system-orbit > b small,
.public-shell[data-theme="light"] .machine > b small {
  color: #ffffff !important;
}

/* Mobile header․ logo-ն այլևս չի մտնում գիշերային/ցերեկային կոճակի տակ։ */
@media (max-width: 680px) {
  .site-header {
    grid-template-columns: minmax(0, auto) 1fr !important;
    column-gap: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .site-header > p {
    display: none !important;
  }

  .site-header > section {
    justify-self: end !important;
    gap: 6px !important;
    min-width: 0 !important;
    z-index: 2 !important;
  }

  .site-header .brand .eotf-header-logo-card,
  .nav-overlay header .brand .eotf-header-logo-card,
  .menu-panel header .brand .eotf-header-logo-card {
    width: clamp(132px, 35vw, 160px) !important;
    height: 38px !important;
  }

  .site-header .theme-toggle {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
  }

  .site-header .theme-toggle span {
    display: none !important;
  }

  .site-header .language-switcher,
  .site-header > section > div {
    min-width: 0 !important;
  }

  .site-header .language-switcher button,
  .site-header > section > div button {
    min-width: 36px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .site-header .menu-button {
    min-width: 34px !important;
    padding-left: 4px !important;
    padding-right: 0 !important;
    gap: 5px !important;
  }

  .hero-identity img.eotf-theme-logo {
    width: clamp(172px, 55vw, 250px) !important;
  }

  .machine > b img.eotf-theme-logo,
  .system-orbit > b img.eotf-theme-logo {
    width: 74% !important;
  }

  .site-intro .eotf-mark.eotf-intro-logo-card {
    width: min(82vw, 430px) !important;
    height: clamp(58px, 19vw, 102px) !important;
  }
}

/* Շատ նեղ mobile էկրանների համար լրացուցիչ փոքրացում։ */
@media (max-width: 390px) {
  .site-header .brand .eotf-header-logo-card,
  .nav-overlay header .brand .eotf-header-logo-card,
  .menu-panel header .brand .eotf-header-logo-card {
    width: 122px !important;
    height: 34px !important;
  }

  .site-header > section {
    gap: 4px !important;
  }

  .site-header .theme-toggle {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }

  .site-header .language-switcher button,
  .site-header > section > div button {
    min-width: 32px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* ---------------------------------------------
   v6 - remove white card/background behind logos
   --------------------------------------------- */
.hero-identity img.eotf-theme-logo,
.credential-story > img.eotf-theme-logo {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Safety: if logo appears inside any generic hero/credential wrapper, keep it transparent. */
.hero-identity .eotf-theme-logo,
.credential-story .eotf-theme-logo {
  background: transparent !important;
  box-shadow: none !important;
}
